* alloc.c (mark_object_loop_halt, mark_object): Use size_t, not int.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
43aae36e
PE
12011-04-03 Paul Eggert <eggert@cs.ucla.edu>
2
b895abce
PE
3 * alloc.c (mark_object_loop_halt, mark_object): Use size_t, not int.
4 Otherwise, GCC 4.6.0 optimizes the loop check away since the check
5 can always succeed if overflow has undefined behavior.
6
1f1d9321 7 * search.c (boyer_moore, wordify): Remove vars set but not used.
6f076cc7 8 (wordify): Omit three unnecessary tests.
1f1d9321 9
c59478bc
PE
10 * indent.c (MULTIBYTE_BYTES_WIDTH): Don't compute wide_column.
11 All callers changed. This avoids the need for an unused var.
12
79b73827
PE
13 * casefiddle.c (casify_region): Remove var that is set but not used.
14
a4db5dfe
PE
15 * dired.c (file_name_completion): Remove var that is set but not used.
16
43aae36e
PE
17 * fileio.c (Finsert_file_contents): Make EOF condition clearer.
18
6abdaa4a
PE
192011-04-02 Paul Eggert <eggert@cs.ucla.edu>
20
2a47c44d 21 * fileio.c (Finsert_file_contents): Avoid signed integer overflow.
163c5f32 22 (Finsert_file_contents): Remove unnecessary code checking fd.
2a47c44d 23
a37c69bf
PE
24 * minibuf.c (read_minibuf_noninteractive): Use size_t for sizes.
25 Check for integer overflow on size calculations.
26
328ab8e7
PE
27 * buffer.c (Fprevious_overlay_change): Remove var that is set
28 but not used.
29
e5a2a5cb
PE
30 * keyboard.c (menu_bar_items, read_char_minibuf_menu_prompt):
31 Remove vars that are set but not used.
8d84a6eb 32 (timer_check_2): Don't assume timer-list and idle-timer-list are lists.
6b043475 33 (timer_check_2): Mark vars as initialized.
e5a2a5cb 34
a60e5f68
PE
35 * gtkutil.c (xg_get_file_with_chooser): Mark var as initialized.
36
f661cb61 37 * image.c (lookup_image): Remove var that is set but not used.
35fa624f 38 (xbm_load): Use parse_p, for gcc -Werror=unused-but-set-variable.
f661cb61 39
f0397f5a
PE
40 * fontset.c (Finternal_char_font, Ffontset_info): Remove vars
41 that are set but not used.
42
8664db06 43 * xfns.c (make_invisible_cursor): Don't return garbage
03733ee7 44 if XCreateBitmapFromData fails (Bug#8410).
8664db06 45
6abdaa4a
PE
46 * xselect.c (x_get_local_selection, x_handle_property_notify):
47 Remove vars that are set but not used.
48
d1fdcab7
PE
492011-04-01 Paul Eggert <eggert@cs.ucla.edu>
50
0ce7538d 51 * xfns.c (x_create_tip_frame): Remove var that is set but not used.
6abdaa4a 52 (make_invisible_cursor): Initialize a possibly-uninitialized variable.
0ce7538d 53
9ae848fc
PE
54 * xterm.c (x_scroll_bar_to_input_event) [!USE_GTK]:
55 Remove var that is set but not used.
0b918413
PE
56 (scroll_bar_windows_size): Now size_t, not int.
57 (x_send_scroll_bar_event): Use size_t, not int, for sizes.
58 Check for overflow.
9ae848fc 59
a5a62657
PE
60 * xfaces.c (realize_named_face): Remove vars that are set but not used.
61 (map_tty_color) [!defined MSDOS]: Likewise.
62
5c5cdd39
PE
63 * term.c (tty_write_glyphs): Use size_t; this avoids overflow warning.
64
66ebf983
PE
65 * coding.c: Remove vars that are set but not used.
66 (DECODE_COMPOSITION_RULE): Remove 2nd arg, which is unused.
67 All callers changed.
68 (decode_coding_utf_8, decode_coding_utf_16 decode_coding_emacs_mule):
69 (decode_coding_iso_2022, encode_coding_sjis, encode_coding_big5):
70 (decode_coding_charset): Remove vars that are set but not used.
71
1be4d761
PE
72 * bytecode.c (Fbyte_code) [!defined BYTE_CODE_SAFE]: Remove var
73 that is set but not used.
74
47553fa8
PE
75 * print.c (print_object): Remove var that is set but not used.
76
1f7196bf 77 Replace 2 copies of readlink code with 1 gnulib version (Bug#8401).
d1fdcab7
PE
78 The gnulib version avoids calling malloc in the usual case,
79 and on 64-bit hosts doesn't have some arbitrary 32-bit limits.
80 * fileio.c (Ffile_symlink_p): Use emacs_readlink.
81 * filelock.c (current_lock_owner): Likewise.
82 * lisp.h (READLINK_BUFSIZE, emacs_readlink): New function.
83 * sysdep.c: Include allocator.h, careadlinkat.h.
84 (emacs_no_realloc_allocator): New static constant.
85 (emacs_readlink): New function.
fdb61804
PE
86 * deps.mk (sysdep.o): Depend on ../lib/allocator.h and on
87 ../lib/careadlinkat.h.
d1fdcab7 88
7200d79c
SM
892011-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
90
03408648 91 Add lexical binding.
7200d79c 92
03408648
SM
93 * window.c (Ftemp_output_buffer_show): New fun.
94 (Fsave_window_excursion):
95 * print.c (Fwith_output_to_temp_buffer): Move to subr.el.
96
97 * lread.c (lisp_file_lexically_bound_p): New function.
98 (Fload): Bind Qlexical_binding.
99 (readevalloop): Remove `evalfun' arg.
100 Bind Qinternal_interpreter_environment.
101 (Feval_buffer): Bind Qlexical_binding.
102 (defvar_int, defvar_bool, defvar_lisp_nopro, defvar_kboard):
103 Mark as dynamic.
104 (syms_of_lread): Declare `lexical-binding'.
105
106 * lisp.h (struct Lisp_Symbol): New field `declared_special'.
107
108 * keyboard.c (eval_dyn): New fun.
109 (menu_item_eval_property): Use it.
ca105506
SM
110
111 * image.c (parse_image_spec): Use Ffunctionp.
ca105506 112
03408648
SM
113 * fns.c (concat, mapcar1): Accept byte-code-functions.
114
115 * eval.c (Fsetq): Handle lexical vars.
116 (Fdefun, Fdefmacro, Ffunction): Make closures when needed.
117 (Fdefconst, Fdefvaralias, Fdefvar): Mark as dynamic.
118 (FletX, Flet): Obey lexical binding.
119 (Fcommandp): Handle closures.
120 (Feval): New `lexical' arg.
121 (eval_sub): New function extracted from Feval. Use it almost
122 everywhere where Feval was used. Look up vars in lexical env.
123 Handle closures.
124 (Ffunctionp): Move from subr.el.
125 (Ffuncall): Handle closures.
126 (apply_lambda): Remove `eval_flags'.
127 (funcall_lambda): Handle closures and new byte-code-functions.
128 (Fspecial_variable_p): New function.
129 (syms_of_eval): Initialize the Vinternal_interpreter_environment var,
130 but without exporting it to Lisp.
23aba0ea 131
23aba0ea 132 * doc.c (Fdocumentation, store_function_docstring):
03408648 133 * data.c (Finteractive_form): Handle closures.
23aba0ea 134
03408648
SM
135 * callint.c (Fcall_interactively): Preserve lexical-binding mode for
136 interactive spec.
ba83908c 137
03408648
SM
138 * bytecode.c (Bstack_ref, Bstack_set, Bstack_set2, BdiscardN): New
139 byte-codes.
140 (exec_byte_code): New function extracted from Fbyte_code to handle new
141 calling convention for byte-code-functions. Add new byte-codes.
ba83908c 142
03408648 143 * buffer.c (defvar_per_buffer): Set new `declared_special' field.
e2abe5a1 144
03408648 145 * alloc.c (Fmake_symbol): Init new `declared_special' field.
e2abe5a1 146
e2abce01
JB
1472011-03-31 Juanma Barranquero <lekktu@gmail.com>
148
149 * xdisp.c (redisplay_internal): Fix prototype.
150
63696a73 1512011-03-31 Eli Zaretskii <eliz@gnu.org>
09725d26 152
63696a73
EZ
153 * xdisp.c (SCROLL_LIMIT): New macro.
154 (try_scrolling): Use it when setting scroll_limit. Limit
155 scrolling to 100 screen lines.
156 (redisplay_window): Even when falling back on "recentering",
157 position point in the window according to scroll-conservatively,
158 scroll-margin, and scroll-*-aggressively variables. (Bug#6671)
159
160 (try_scrolling): When point is above the window, allow searching
161 as far as scroll_max, or one screenful, to compute vertical
162 distance from PT to the scroll margin position. This prevents
163 try_scrolling from unnecessarily failing when
164 scroll-conservatively is set to a value slightly larger than the
165 window height. Clean up the case of PT below the margin at bottom
166 of window: scroll_max can no longer be INT_MAX. When aggressive
167 scrolling is in use, don't let point enter the opposite scroll
168 margin as result of the scroll.
169 (syms_of_xdisp) <scroll-conservatively>: Document the
09725d26
EZ
170 threshold of 100 lines for never-recentering scrolling.
171
e4cc2dfc
JB
1722011-03-31 Juanma Barranquero <lekktu@gmail.com>
173
174 * dispextern.h (move_it_by_lines):
175 * xdisp.c (move_it_by_lines): Remove parameter `need_y_p', unused
176 since 2000-12-29T14:24:09Z!gerd@gnu.org. All callers changed.
177 (message_log_check_duplicate): Remove parameters `prev_bol' and
178 `this_bol', unused since 1998-01-01T02:27:27Z!rms@gnu.org. All callers changed.
179 (redisplay_internal): Remove parameter `preserve_echo_area',
180 unused since 1999-07-21T21:43:52Z!gerd@gnu.org. All callers changed.
181
182 * indent.c (Fvertical_motion):
183 * window.c (window_scroll_pixel_based, Frecenter):
184 Don't pass `need_y_p' to `move_it_by_lines'.
185
1c470562
SM
1862011-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
187
44f230aa
SM
188 * eval.c (struct backtrace): Don't cheat with negative numbers, but do
189 steal a few bits to be more compact.
190 (interactive_p, Fbacktrace, Fbacktrace_frame, mark_backtrace):
191 Remove unneeded casts.
192
1c470562
SM
193 * bytecode.c (Fbyte_code): CAR and CDR can GC.
194
888adce9
ZK
1952011-03-30 Zachary Kanfer <zkanfer@gmail.com> (tiny change)
196
197 * keyboard.c (Fexecute_extended_command): Do log the "suggest key
198 binding" message (bug#7967).
199
f838ed7b
PE
2002011-03-30 Paul Eggert <eggert@cs.ucla.edu>
201
77861b95
PE
202 Fix more problems found by GCC 4.6.0's static checks.
203
de6dbc14
PE
204 * unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]:
205 Remove unused local var.
206
f838ed7b
PE
207 * editfns.c (Fmessage_box): Remove unused local var.
208
792c7b2b
PE
209 * xdisp.c (try_window_reusing_current_matrix, x_produce_glyphs):
210 (note_mode_line_or_margin_highlight, note_mouse_highlight):
211 Omit unused local vars.
c499e557 212 * window.c (shrink_windows): Omit unused local var.
b01a1c29 213 * menu.c (digest_single_submenu): Omit unused local var.
0bc32927
PE
214 * dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]:
215 Omit unused local var.
216
ba0165e1
PE
217 * keyboard.c (parse_modifiers_uncached, parse_modifiers):
218 Don't assume string length fits in int.
32ad8845 219 (keyremap_step, read_key_sequence): Use size_t for sizes.
48011560 220 (read_key_sequence): Don't check last_real_key_start redundantly.
ba0165e1 221
3c59b4c9
PE
222 * callproc.c (Fcall_process, Fcall_process_region): Use SAFE_ALLOCA
223 instead of alloca (Bug#8344).
224
a3eed478 225 * eval.c (Fbacktrace): Don't assume nargs fits in int.
5d5d959d 226 (Fbacktrace_frame): Don't assume nframes fits in int.
a3eed478 227
eb4d412d
PE
228 * syntax.c (scan_sexps_forward): Avoid pointer wraparound.
229
1658b401
PE
230 * xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow
231 concerns.
232
233 * term.c (produce_glyphless_glyph): Remove unnecessary test.
234
235 * cm.c (calccost): Turn while-do into do-while, for clarity.
44f730c8 236
9a2c6e05
PE
237 * keyboard.c (syms_of_keyboard): Use the same style as later
238 in this function when indexing through an array. This also
239 works around GCC bug 48267.
240
03d0a109
PE
241 * image.c (tiff_load): Fix off-by-one image count (Bug#8336).
242
44f730c8
PE
243 * xselect.c (x_check_property_data): Return correct size (Bug#8335).
244
fe75f926
PE
245 * chartab.c (sub_char_table_ref_and_range): Redo for slight
246 efficiency gain, and to bypass a gcc -Wstrict-overflow warning.
247
ffa8c828
PE
248 * keyboard.c, keyboard.h (num_input_events): Now size_t.
249 This avoids undefined behavior on integer overflow, and is a bit
250 more convenient anyway since it is compared to a size_t variable.
251
c5101a77
PE
252 Variadic C functions now count arguments with size_t, not int.
253 This avoids an unnecessary limitation on 64-bit machines, which
254 caused (substring ...) to crash on large vectors (Bug#8344).
255 * lisp.h (struct Lisp_Subr.function.aMANY): Now takes size_t, not int.
256 (DEFUN_ARGS_MANY, internal_condition_case_n, safe_call): Likewise.
77861b95 257 All variadic functions and their callers changed accordingly.
c5101a77
PE
258 (struct gcpro.nvars): Now size_t, not int. All uses changed.
259 * data.c (arith_driver, float_arith_driver): Likewise.
260 * editfns.c (general_insert_function): Likewise.
261 * eval.c (struct backtrace.nargs, interactive_p)
262 (internal_condition_case_n, run_hook_with_args, apply_lambda)
263 (funcall_lambda, mark_backtrace): Likewise.
264 * fns.c (concat): Likewise.
265 * frame.c (x_set_frame_parameters): Likewise.
266 * fns.c (get_key_arg): Now accepts and returns size_t, and returns
267 0 if not found, not -1. All callers changed.
268
dd3f25f7
PE
269 * alloc.c (garbage_collect): Don't assume stack size fits in int.
270 (stack_copy_size): Now size_t, not int.
271 (stack_copy, stack_copy_size): Define only if MAX_SAVE_STACK > 0.
272
461c2ab9
JB
2732011-03-28 Juanma Barranquero <lekktu@gmail.com>
274
275 * coding.c (encode_designation_at_bol): Remove parameter `charbuf_end',
276 unused since 2002-03-01T01:17:24Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
277 All callers changed.
278
279 * lisp.h (multibyte_char_to_unibyte):
280 * character.c (multibyte_char_to_unibyte): Remove parameter `rev_tbl',
281 unused since 2002-03-01T01:16:34Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
282 * character.h (CHAR_TO_BYTE8):
283 * cmds.c (internal_self_insert):
284 * editfns.c (general_insert_function):
285 * keymap.c (push_key_description):
286 * search.c (Freplace_match):
287 * xdisp.c (message_dolog, set_message_1): All callers changed.
288
f6d62986
SM
2892011-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
290
291 * keyboard.c (safe_run_hook_funcall): New function.
292 (safe_run_hooks_1, safe_run_hooks_error, safe_run_hooks): On error,
293 don't set the hook to nil, but remove the offending function instead.
294 (Qcommand_hook_internal): Remove, unused.
295 (syms_of_keyboard): Don't initialize Qcommand_hook_internal nor define
296 Vcommand_hook_internal.
297
298 * eval.c (enum run_hooks_condition): Remove.
299 (funcall_nil, funcall_not): New functions.
300 (run_hook_with_args): Call each function through a `funcall' argument.
301 Remove `cond' argument, now redundant.
302 (Frun_hooks, Frun_hook_with_args, Frun_hook_with_args_until_success)
303 (Frun_hook_with_args_until_failure): Adjust accordingly.
304 (run_hook_wrapped_funcall, Frun_hook_wrapped): New functions.
305
1db5b1ad
JB
3062011-03-28 Juanma Barranquero <lekktu@gmail.com>
307
308 * dispextern.h (string_buffer_position): Remove declaration.
309
310 * print.c (strout): Remove parameter `multibyte', unused since
311 1999-08-21T19:30:21Z!gerd@gnu.org. All callers changed.
312
313 * search.c (boyer_moore): Remove parameters `len', `pos' and `lim',
314 never used since function introduction in 1998-02-08T21:33:56Z!rms@gnu.org.
315 All callers changed.
316
317 * w32.c (_wsa_errlist): Use braces for struct initializers.
318
319 * xdisp.c (string_buffer_position_lim): Remove parameter `w',
320 never used since function introduction in 2001-03-09T18:41:50Z!gerd@gnu.org.
321 All callers changed.
322 (string_buffer_position): Likewise. Also, make static (it's never
323 used outside xdisp.c).
324 (cursor_row_p): Remove parameter `w', unused since
325 2000-10-17T16:08:57Z!gerd@gnu.org. All callers changed.
326 (decode_mode_spec): Remove parameter `precision', introduced during
327 Gerd Moellmann's rewrite at 1999-07-21T21:43:52Z!gerd@gnu.org, but never used.
328 All callers changed.
329
5ffb62aa
JD
3302011-03-27 Jan Djärv <jan.h.d@swipnet.se>
331
332 * nsterm.m (syms_of_nsterm): Use doc: for ns-auto-hide-menu-bar.
333
461c2ab9 3342011-03-27 Anders Lindgren <andlind@gmail.com>
f0a1382a
JD
335
336 * nsterm.m (ns_menu_bar_is_hidden): New variable.
337 (ns_constrain_all_frames, ns_menu_bar_should_be_hidden)
338 (ns_update_auto_hide_menu_bar): New functions.
339 (ns_update_begin): Call ns_update_auto_hide_menu_bar.
340 (applicationDidBecomeActive): Call ns_update_auto_hide_menu_bar and
341 ns_constrain_all_frames.
342 (constrainFrameRect): Return at once if ns_menu_bar_should_be_hidden.
343 (syms_of_nsterm): DEFVAR ns-auto-hide-menu-bar, init to Qnil.
344
5c380ffb
JD
3452011-03-27 Jan Djärv <jan.h.d@swipnet.se>
346
347 * nsmenu.m (runDialogAt): Remove argument to timer_check.
348
9af30bdf
GM
3492011-03-27 Glenn Morris <rgm@gnu.org>
350
351 * syssignal.h: Replace RETSIGTYPE with void.
352 * atimer.c, data.c, dispnew.c, emacs.c, floatfns.c, keyboard.c:
353 * keyboard.h, lisp.h, process.c, sysdep.c, xterm.c:
354 Replace SIGTYPE with void everywhere.
355 * s/usg5-4-common.h (SIGTYPE): Remove definition.
356 * s/template.h (SIGTYPE): Remove commented out definition.
357
e2abce01
JB
3582011-03-26 Eli Zaretskii <eliz@gnu.org>
359
360 * xdisp.c (redisplay_window): Don't check buffer's clip_changed
361 flag as a prerequisite for invoking try_scrolling. (Bug#6671)
362
f868cd8a
JB
3632011-03-26 Juanma Barranquero <lekktu@gmail.com>
364
59eb0929
JB
365 * w32.c (read_unc_volume): Use parameter `henum', instead of
366 global variable `wget_enum_handle'.
367
368 * keymap.c (describe_vector): Remove parameters `indices' and
369 `char_table_depth', unused since 2002-03-01T01:43:26Z!handa@m17n.org.
370 (describe_map, Fdescribe_vector): Adjust calls to `describe_vector'.
371
f868cd8a
JB
372 * keyboard.h (timer_check, show_help_echo): Remove unused parameters.
373
374 * keyboard.c (timer_check): Remove parameter `do_it_now',
375 unused since 1996-04-12T06:01:29Z!rms@gnu.org.
376 (show_help_echo): Remove parameter `ok_to_overwrite_keystroke_echo',
377 unused since 2008-04-19T19:30:53Z!monnier@iro.umontreal.ca.
378
379 * keyboard.c (read_char):
380 * w32menu.c (w32_menu_display_help):
381 * xmenu.c (show_help_event, menu_help_callback):
382 Adjust calls to `show_help_echo'.
383
384 * gtkutil.c (xg_maybe_add_timer):
385 * keyboard.c (readable_events):
386 * process.c (wait_reading_process_output):
387 * xmenu.c (x_menu_wait_for_event): Adjust calls to `timer_check'.
388
389 * insdel.c (adjust_markers_gap_motion):
390 Remove; no-op since 1998-01-02T21:29:48Z!rms@gnu.org.
391 (gap_left, gap_right): Don't call it.
392
2ecf6fdb
CY
3932011-03-25 Chong Yidong <cyd@stupidchicken.com>
394
395 * xdisp.c (handle_fontified_prop): Discard changes to clip_changed
396 incurred during fontification.
397
6b1f9ba4
JB
3982011-03-25 Juanma Barranquero <lekktu@gmail.com>
399
400 * buffer.c (defvar_per_buffer): Remove unused parameter `doc'.
401 (DEFVAR_PER_BUFFER): Don't pass it.
402
403 * dispnew.c (row_equal_p, add_row_entry): Remove unused parameter `w'.
404 (scrolling_window): Don't pass it.
405
0f4a96b5
JB
4062011-03-25 Juanma Barranquero <lekktu@gmail.com>
407
408 * dispextern.h (glyph_matric): Use #if GLYPH_DEBUG, not #ifdef.
409
410 * fileio.c (check_executable) [DOS_NT]: Remove unused variables `len'
411 and `suffix'.
412 (Fset_file_selinux_context) [HAVE_LIBSELINUX]: Move here declaration
413 of variables specific to SELinux and computation of `encoded_absname'.
414
415 * image.c (XPutPixel): Remove unused variable `height'.
416
417 * keyboard.c (make_lispy_event): Remove unused variable `hpos'.
418
419 * unexw32.c (get_section_info): Remove unused variable `section'.
420
421 * w32.c (stat): Remove unused variables `drive_root' and `devtype'.
422 (system_process_attributes): Remove unused variable `sess'.
423 (sys_read): Remove unused variable `err'.
424
425 * w32fns.c (top): Wrap variables with #if GLYPH_DEBUG, not #ifdef.
426 (w32_wnd_proc): Remove unused variable `isdead'.
427 (unwind_create_frame): Use #if GLYPH_DEBUG, not #ifdef.
428 (Fx_server_max_request_size): Remove unused variable `dpyinfo'.
429 (x_create_tip_frame): Remove unused variable `tem'.
430
431 * w32inevt.c (w32_console_read_socket):
432 Remove unused variable `no_events'.
433
434 * w32term.c (x_draw_composite_glyph_string_foreground):
435 Remove unused variable `width'.
436
1149507c
JB
4372011-03-24 Juanma Barranquero <lekktu@gmail.com>
438
439 * w32term.c (x_set_glyph_string_clipping):
440 Don't pass uninitialized region to CombineRgn.
441
9c88f339
JB
4422011-03-23 Juanma Barranquero <lekktu@gmail.com>
443
444 * w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'.
445 (w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer.
446 (Fx_close_connection): Remove unused variable `i'.
447
448 * w32font.c (w32font_draw): Return number of glyphs.
449 (w32font_open_internal): Remove unused variable `i'.
450 (w32font_driver): Add missing initializer.
451
452 * w32menu.c (utf8to16): Remove unused variable `utf16'.
453 (fill_in_menu): Remove unused variable `items_added'.
454
455 * w32term.c (last_mouse_press_frame): Remove static global variable.
456 (w32_clip_to_row): Remove unused variable `f'.
457 (x_delete_terminal): Remove unused variable `i'.
458
459 * w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'.
460 (NOTHING): Remove unused static global variable.
461 (uniscribe_check_otf): Remove unused variable `table'.
462 (uniscribe_font_driver): Add missing initializers.
463
dee091a3
JD
4642011-03-23 Julien Danjou <julien@danjou.info>
465
466 * term.c (Fsuspend_tty, Fresume_tty):
467 * minibuf.c (read_minibuf, run_exit_minibuf_hook):
468 * window.c (temp_output_buffer_show):
469 * insdel.c (signal_before_change):
470 * frame.c (Fhandle_switch_frame):
471 * fileio.c (Fdo_auto_save):
472 * emacs.c (Fkill_emacs):
473 * editfns.c (save_excursion_restore):
474 * cmds.c (internal_self_insert):
475 * callint.c (Fcall_interactively):
476 * buffer.c (Fkill_all_local_variables):
477 * keyboard.c (Fcommand_execute, Fsuspend_emacs, safe_run_hooks_1):
478 Use Frun_hooks.
0f4a96b5 479 (command_loop_1): Use Frun_hooks. Call safe_run_hooks
dee091a3
JD
480 unconditionnaly since it does the check itself.
481
2c520ab5 4822011-03-23 Paul Eggert <eggert@cs.ucla.edu>
f0641eff 483
c9c49752
PE
484 Fix more problems found by GCC 4.5.2's static checks.
485
8abc3f12
PE
486 * coding.c (encode_coding_raw_text): Avoid unnecessary test
487 the first time through the loop, since we know p0 < p1 then.
488 This also avoids a gcc -Wstrict-overflow warning.
489
a2d26660
PE
490 * lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Avoid 'int' overflow
491 leading to a memory leak, possible in functions like
492 load_charset_map_from_file that can allocate an unbounded number
b12ef411 493 of objects (Bug#8318).
a2d26660 494
916c72e9
PE
495 * xmenu.c (set_frame_menubar): Use EMACS_UINT, not int, for indexes
496 that could (at least in theory) be that large.
497
19ab8a18
PE
498 * xdisp.c (message_log_check_duplicate): Return unsigned long, not int.
499 This is less likely to overflow, and avoids undefined behavior if
500 overflow does occur. All callers changed. Use strtoul to scan
501 for the unsigned long integer.
b7cbbd6f
PE
502 (pint2hrstr): Simplify and tune code slightly.
503 This also avoids a (bogus) GCC warning with gcc -Wstrict-overflow.
19ab8a18 504
f0641eff
PE
505 * scroll.c (do_scrolling): Work around GCC bug 48228.
506 See <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48228>.
507
7f650bb9
PE
508 * frame.c (Fmodify_frame_parameters): Simplify loop counter.
509 This also avoids a warning with gcc -Wstrict-overflow.
39f5e519
PE
510 (validate_x_resource_name): Simplify count usage.
511 This also avoids a warning with gcc -Wstrict-overflow.
7f650bb9 512
37dd57d1
PE
513 * fileio.c (Fcopy_file): Report error if fchown or fchmod
514 fail (Bug#8306).
81e56e61 515
699979fc 516 * emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303).
dc1ca6a8 517
401bf9b4
PE
518 * process.c (Fmake_network_process): Use socklen_t, not int,
519 where POSIX says socklen_t is required in portable programs.
520 This fixes a porting bug on hosts like 64-bit HP-UX, where
591b2973 521 socklen_t is wider than int (Bug#8277).
401bf9b4
PE
522 (Fmake_network_process, server_accept_connection):
523 (wait_reading_process_output, read_process_output):
524 Likewise.
525
b93aacde
PE
526 * process.c: Rename or move locals to avoid shadowing.
527 (list_processes_1, Fmake_network_process):
528 (read_process_output_error_handler, exec_sentinel_error_handler):
529 Rename or move locals.
4dc343ee 530 (Fmake_network_process): Define label "retry_connect" only if needed.
0da49335 531 (Fnetwork_interface_info): Fix pointer signedness.
f990b4e5 532 (process_send_signal): Add cast to avoid pointer signedness problem.
7b808126 533 (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros.
c939f91b 534 (create_process): Use 'volatile' to avoid vfork clobbering (Bug#8298).
b93aacde 535
af8a867c 536 Make tparam.h and terminfo.c consistent.
44f230aa
SM
537 * cm.c (tputs, tgoto, BC, UP): Remove extern decls.
538 Include tparam.h instead, since it declares them.
af8a867c
PE
539 * cm.h (PC): Remove extern decl; tparam.h now does this.
540 * deps.mk (cm.o, terminfo.o): Depend on tparam.h.
541 * terminfo.c: Include tparam.h, to check interfaces.
542 (tparm): Make 1st arg a const pointer in decl. Put it at top level.
543 (tparam): Adjust signature to match interface in tparam.h;
544 this removes some undefined behavior. Check that outstring and len
545 are zero, which they always are with Emacs.
546 * tparam.h (PC, BC, UP): New extern decls.
547
0248044d 548 * xftfont.c (xftfont_shape): Now static, and defined only if needed.
001a7ab4 549 (xftfont_open): Rename locals to avoid shadowing.
0248044d 550
8ff096c1 551 * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness.
a00924bb
PE
552 (ftfont_otf_capability, ftfont_shape): Omit decls if not needed.
553 (OTF_TAG_SYM): Omit macro if not needed.
e932860f 554 (ftfont_list): Remove unused local.
49eaafba
PE
555 (get_adstyle_property, ftfont_pattern_entity):
556 (ftfont_lookup_cache, ftfont_open, ftfont_anchor_point):
557 Rename locals to avoid shadowing.
8ff096c1 558
e2be39f6
PE
559 * xfont.c (xfont_list_family): Mark var as initialized.
560
c9735e30
PE
561 * xml.c (make_dom): Now static.
562
8f5201ae
PE
563 * composite.c (composition_compute_stop_pos): Rename local to
564 avoid shadowing.
b246f932
PE
565 (composition_reseat_it): Remove unused locals.
566 (find_automatic_composition, composition_adjust_point): Likewise.
80e079b2 567 (composition_update_it): Mark var as initialized.
11b61122
PE
568 (find_automatic_composition): Mark vars as initialized,
569 with a FIXME (Bug#8290).
8f5201ae 570
760fbc2c
PE
571 character.h: Rename locals to avoid shadowing.
572 * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE):
573 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE):
574 (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, BUF_INC_POS):
575 (BUF_DEC_POS): Be more systematic about renaming local temporaries
576 to avoid shadowing.
577
ff08eb85
PE
578 * textprop.c (property_change_between_p): Remove; unused.
579
fc7bf025
PE
580 * intervals.c (interval_start_pos): Now static.
581
235d7abc
PE
582 * intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
583
44f230aa
SM
584 * atimer.c (start_atimer, append_atimer_lists, set_alarm):
585 Rename locals to avoid shadowing.
3e7d6594 586
50060332
PE
587 * sound.c (wav_play, au_play, Fplay_sound_internal):
588 Fix pointer signedness.
d01f234b 589 (alsa_choose_format): Remove unused local var.
c83b8872
PE
590 (wav_play): Initialize a variable to 0, to prevent undefined
591 behavior (Bug#8278).
50060332 592
c4fc4e30
PE
593 * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
594
918436ed
PE
595 * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes.
596
c939f91b
PE
597 * callproc.c (Fcall_process): Use 'volatile' to avoid vfork
598 clobbering (Bug#8298).
b9c7f648
PE
599 * sysdep.c (sys_subshell): Likewise.
600 Previously, the sys_subshell 'volatile' was incorrectly IF_LINTted out.
7e9123a2 601
6bd8c144
PE
602 * lisp.h (child_setup): Now NO_RETURN unless DOS_NT.
603 This should get cleaned up, so that child_setup has the
604 same signature on all platforms.
605
7710357c 606 * callproc.c (call_process_cleanup): Now static.
cb1d0ef7 607 (relocate_fd): Rename locals to avoid shadowing.
7710357c 608
c59da222
CY
6092011-03-22 Chong Yidong <cyd@stupidchicken.com>
610
611 * xterm.c (x_clear_frame): Remove XClearWindow call. This appears
612 not to be necessary, and produces flickering.
613
66b87493
GM
6142011-03-20 Glenn Morris <rgm@gnu.org>
615
616 * config.in: Remove file.
617
45b6f6d5
JB
6182011-03-20 Juanma Barranquero <lekktu@gmail.com>
619
620 * minibuf.c (Vcompleting_read_function): Don't declare, global variables
621 are now in src/globals.h.
622 (syms_of_minibuf): Remove spurious & from previous change.
623
3ec03f7e
LL
6242011-03-20 Leo <sdl.web@gmail.com>
625
626 * minibuf.c (completing-read-function): New variable.
627 (completing-read-default): Rename from completing-read.
628 (completing-read): Call completing-read-function.
629
b14e3e21
CY
6302011-03-19 Juanma Barranquero <lekktu@gmail.com>
631
632 * xfaces.c (Fx_load_color_file):
633 Read color file from absolute filename (bug#8250).
634
f2b726e6
JB
6352011-03-19 Juanma Barranquero <lekktu@gmail.com>
636
637 * makefile.w32-in: Update dependencies.
638
09f6ff02
EZ
6392011-03-17 Eli Zaretskii <eliz@gnu.org>
640
641 * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
642
29a6015a
PE
6432011-03-17 Paul Eggert <eggert@cs.ucla.edu>
644
a3a6c54e
PE
645 Fix more problems found by GCC 4.5.2's static checks.
646
b766f867
PE
647 * process.c (make_serial_process_unwind, send_process_trap):
648 (sigchld_handler): Now static.
649
be02381c
PE
650 * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
651 That way, the code declares only the vars that it needs.
652 * s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
653 * s/cygwin.h (PTY_ITERATION): Likewise.
654 * s/darwin.h (PTY_ITERATION): Likewise.
655 * s/gnu-linux.h (PTY_ITERATION): Likewise.
656
57048744
PE
657 * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
658 * process.c (allocate_pty): Don't declare stb unless it's needed.
659
7914961c 660 * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
615f2d59
PE
661 (CONSTANTLIM): Remove; unused.
662 (METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
663 Define only if needed.
7914961c 664
b3967b18
PE
665 * unexelf.c (unexec): Name an expression,
666 to avoid gcc -Wbad-function-cast warning.
9ae71512
PE
667 Use a different way to cause a compilation error if anyone uses
668 n rather than nn, a way that does not involve shadowing.
73366a00 669 (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused.
b3967b18 670
29a6015a
PE
671 * deps.mk (unexalpha.o): Remove; unused.
672
43cfc33e 673 New file unexec.h, the (simple) interface for unexec (Bug#8267).
7feda0d2 674 * unexec.h: New file.
ce701a33
PE
675 * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
676 (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
677 Depend on unexec.h.
678 * emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
679 * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
680 * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
381259ef 681 Change as necessary to match prototype in unexec.h.
ce701a33 682
01f44d5a
PE
683 * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
684 shadowing.
4f63c6bb 685 (back_comment, skip_chars): Mark vars as initialized.
01f44d5a 686
a6670b0b
PE
687 * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
688 Rename locals to avoid shadowing.
689
cef2010d 690 * lread.c (read1): Rewrite so as not to use empty "else".
0902fe45 691 (Fload, readevalloop, read1): Rename locals to avoid shadowing.
cef2010d 692
d4d7173a
PE
693 * print.c (Fredirect_debugging_output): Fix pointer signedess.
694
f08b802a
PE
695 * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
696 warning when compiling print.c.
697
3ddb0639
PE
698 * font.c (font_unparse_fcname): Abort in an "impossible" situation
699 instead of using an uninitialized var.
5ad03b97 700 (font_sort_entities): Mark var as initialized.
3ddb0639 701
170a2692
PE
702 * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
703
e663c700
PE
704 * font.c (font_unparse_xlfd): Don't mix pointers to variables with
705 pointers to constants.
89bc529a 706 (font_parse_fcname): Remove unused vars.
7b81e2d0 707 (font_delete_unmatched): Now static.
ea838e10 708 (font_get_spec): Remove; unused.
13a547c6
PE
709 (font_style_to_value, font_prop_validate_style, font_unparse_fcname):
710 (font_update_drivers, Ffont_get_glyphs, font_add_log):
711 Rename or move locals to avoid shadowing.
e663c700 712
2a80c887 713 * fns.c (require_nesting_list, require_unwind): Now static.
612f56df 714 (Ffillarray): Rename locals to avoid shadowing.
2a80c887 715
1384fa33 716 * floatfns.c (domain_error2): Define only if needed.
a885e2ed 717 (Ffrexp, Fldexp): Rename locals to avoid shadowing.
1384fa33 718
8b2c52e9
PE
719 * alloc.c (mark_backtrace): Move decl from here ...
720 * lisp.h: ... to here, so that it can be checked.
721
475545b5 722 * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
d28a2170 723 (Fdefvar): Rewrite so as not to use empty "else".
cfcbfb1a
PE
724 (lisp_indirect_variable): Name an expression,
725 to avoid gcc -Wbad-function-cast warning.
1faed8ae 726 (Fdefvar): Rename locals to avoid shadowing.
475545b5 727
b1349114 728 * callint.c (quotify_arg, quotify_args): Now static.
a3e8cbda 729 (Fcall_interactively): Rename locals to avoid shadowing.
b0e80955 730 Use const pointer when appropriate.
b1349114 731
a2928364
PE
732 * lisp.h (get_system_name, get_operating_system_release):
733 Move decls here, to check interfaces.
734 * process.c (get_operating_system_release): Move decl to lisp.h.
735 * xrdb.c (get_system_name): Likewise.
63c5d10b
PE
736 * editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
737 (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
738 some of which prompt warnings from gcc -Wbad-function-cast.
545b49b4
PE
739 (Fformat_time_string, Fencode_time, Finsert_char):
740 (Ftranslate_region_internal, Fformat):
741 Rename or remove local vars to avoid shadowing.
9710023e 742 (Ftranslate_region_internal): Mark var as initialized.
63c5d10b 743
a415e694
PE
744 * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
745 avoid shadowing.
746
8ef4622d
PE
747 * lisp.h (eassert): Check that the argument compiles, even if
748 ENABLE_CHECKING is not defined.
749
946f9a5b
PE
750 * data.c (Findirect_variable): Name an expression, to avoid
751 gcc -Wbad-function-cast warning.
112396d6 752 (default_value, arithcompare, arith_driver, arith_error): Now static.
b9b84fa9 753 (store_symval_forwarding): Rename local to avoid shadowing.
44f230aa
SM
754 (Fmake_variable_buffer_local, Fmake_local_variable):
755 Mark variables as initialized.
52746918 756 (do_blv_forwarding, do_symval_forwarding): Remove; unused.
946f9a5b 757
e5aab7e7 758 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
ae35e756
PE
759 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
760 Rename locals to avoid shadowing.
dff45157
PE
761 (mark_stack): Move local variables into the #ifdef region where
762 they're used.
7bc26fdb
PE
763 (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
764 ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
765 needed otherwise.
766 (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
767 (GC_STRING_CHARS): Remove; not used.
d40d4be1 768 (Fmemory_limit): Cast sbrk's returned value to char *.
ae35e756 769
e5aab7e7
PE
770 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
771 avoids undefined behavior in theory.
772
4da60324
PE
773 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
774
88043301
PE
775 Use functions, not macros, for up- and down-casing (Bug#8254).
776 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
777 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
778 to use the following functions instead of these macros.
779 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
780 EMACS_INT, since callers assume the returned value fits in int.
781 (upcase1): Likewise, for UPCASE_TABLE.
782 (uppercasep, lowercasep, upcase): New static inline functions.
0da09c43 783 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
db69b0cd 784 the race-condition problem in the old DOWNCASE.
88043301 785
19ed5445
PE
786 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
787 Rename locals to avoid shadowing.
788 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
abbd1bcf
PE
789 (regex_compile, re_search_2, re_match_2_internal):
790 Remove unused local vars.
952db0d7
PE
791 (FREE_VAR): Rewrite so as not to use empty "else",
792 which gcc can warn about.
da053e48 793 (regex_compile, re_match_2_internal): Mark locals as initialized.
b313f9d8
PE
794 (RETALLOC_IF): Define only if needed.
795 (WORDCHAR_P): Likewise. This one is never needed, but is used
796 only in a comment talking about a compiler bug, so put inside
797 the #if 0 of that comment.
798 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
799 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
800 Remove; unused.
19ed5445 801
1f3561e4 802 * search.c (boyer_moore): Rename locals to avoid shadowing.
76ef09b7
PE
803 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
804 (PREV_CHAR_BOUNDARY): Likewise.
1f3561e4 805
ded6f8f7
PE
806 * search.c (simple_search): Remove unused var.
807
dbd37a95
PE
808 * dired.c (compile_pattern): Move decl from here ...
809 * lisp.h: ... to here, so that it can be checked.
810 (struct re_registers): New forward decl.
811
7e47afad
PE
812 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
813
85f24f61
PE
814 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
815 All uses changed.
816 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
817 Rename locals to avoid shadowing.
5671df8f 818 (Fvertical_motion): Mark locals as initialized.
85f24f61 819
181aa2be 820 * casefiddle.c (casify_object, casify_region): Now static.
e45a141a 821 (casify_region): Mark local as initialized.
181aa2be 822
930d429c
PE
823 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
824
7082eac6
PE
825 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
826 New macros, so that the caller can use some names other than
827 gcpro1, gcpro2, etc.
828 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
829 of the new macros.
830 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
831 argument, for consistency with GCPRO2_VAR, etc: it is now the
832 prefix of the variable, not the variable itself. All uses
833 changed.
38b2c076
PE
834 * dired.c (directory_files_internal, file_name_completion):
835 Rename locals to avoid shadowing.
836
15206ed9
PE
837 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
838 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
839 dired.c's scmp function, had undefined behavior.
840 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
841 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
842 * buffer.h: ... to here, because these macros use current_buffer,
843 and the new implementation with inline functions needs to have
844 current_buffer in scope now, rather than later when the macros
845 are used.
846 (downcase, upcase1): New static inline functions.
847 (DOWNCASE, UPCASE1): Reimplement using these functions.
848 This avoids undefined behavior in expressions like
849 DOWNCASE (x) == DOWNCASE (y), which previously suffered
850 from race conditions in accessing the global variables
851 case_temp1 and case_temp2.
852 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
853 * lisp.h (case_temp1, case_temp2): Remove their decls.
854 * character.h (ASCII_CHAR_P): Move from here ...
855 * lisp.h: ... to here, so that the inline functions mentioned
856 above can use them.
857
4a6bea26
PE
858 * dired.c (directory_files_internal_unwind): Now static.
859
f14b7e14
PE
860 * fileio.c (file_name_as_directory, directory_file_name):
861 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
862 Now static.
2893f146
PE
863 (file_name_as_directory): Use const pointers when appropriate.
864 (Fexpand_file_name): Likewise. In particular, newdir might
865 point at constant storage, so make it a const pointer.
fd4ead52 866 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
b14aac08
PE
867 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
868 signedness issues.
f839df0c
PE
869 (Fset_file_times, Finsert_file_contents, auto_save_error):
870 Rename locals to avoid shadowing.
f14b7e14 871
5716756e 872 * minibuf.c (choose_minibuf_frame_1): Now static.
62137a95
PE
873 (Ftry_completion, Fall_completions): Rename or remove locals
874 to avoid shadowing.
5716756e 875
b4c3046a
PE
876 * marker.c (bytepos_to_charpos): Remove; unused.
877
b45db522
PE
878 * lisp.h (verify_bytepos, count_markers): New decls,
879 so that gcc does not warn that these functions aren't declared.
880
85876d07
PE
881 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
882 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
f0cb4a60 883 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
40ef059e 884 (copy_text): Remove unused local var.
85876d07 885
03d78a21 886 * filelock.c (within_one_second): Now static.
b3dd38ab 887 (lock_file_1): Rename local to avoid shadowing.
03d78a21 888
5df8f01b
PE
889 * buffer.c (fix_overlays_before): Mark locals as initialized.
890 (fix_start_end_in_overlays): Likewise. This function should be
891 simplified by using pointers-to-pointers, but that's a different
892 matter.
b1d876f1 893 (switch_to_buffer_1): Now static.
8f54f30a
PE
894 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
895 (report_overlay_modification): Rename locals to avoid shadowing.
c3bd59b5 896
a70072c9 897 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
fbd02d7b 898 Fix pointer signedness issue.
edced198
PE
899 (sys_subshell): Mark local as volatile if checking for lint,
900 to suppress a gcc -Wclobbered warning that does not seem to be right.
15dfd3d9 901 (MAXPATHLEN): Define only if needed.
a70072c9 902
a0977c44
PE
903 * process.c (serial_open, serial_configure): Move decls from here ...
904 * systty.h: ... to here, so that they can be checked.
905
a884fdcc
PE
906 * fns.c (get_random, seed_random): Move extern decls from here ...
907 * lisp.h: ... to here, so that they can be checked.
908
604efe86 909 * sysdep.c (reset_io): Now static.
b8950c94 910 (wait_for_termination_signal): Remove; unused.
604efe86 911
38fc62d9
PE
912 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
913 (copy_keymap_item, append_key, push_text_char_description):
914 Now static.
1004a21a 915 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
dbbb8427 916 (DENSE_TABLE_SIZE): Remove; unused.
c1141155
PE
917 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
918 (describe_map_tree):
919 Rename locals to avoid shadowing.
38fc62d9 920
2f2650da
PE
921 * keyboard.c: Declare functions static if they are not used elsewhere.
922 (echo_char, echo_dash, cmd_error, top_level_2):
923 (poll_for_input, handle_async_input): Now static.
69a058fa
PE
924 (read_char, kbd_buffer_get_event, make_lispy_position):
925 (make_lispy_event, make_lispy_movement, apply_modifiers):
926 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
927 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
928 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
c8a06054 929 (read_key_sequence, read_char): Mark locals as initialized.
3ac94672 930 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
2f2650da 931
a053e86c 932 * keyboard.h (make_ctrl_char): New decl.
da2f2dd9
PE
933 (mark_kboards): Move decl here ...
934 * alloc.c (mark_kboards): ... from here.
a053e86c 935
4752793e
PE
936 * lisp.h (force_auto_save_soon): New decl.
937
74f10ca7 938 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
244fc23d
PE
939 (DEFINE_DUMMY_FUNCTION): New macro.
940 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
941 Use it.
c03cd23f
PE
942 (main): Add casts to avoid warnings
943 if GCC considers string literals to be constants.
74f10ca7 944
022e70d4
PE
945 * lisp.h (fatal_error_signal): Add decl, since it's exported.
946
59d6fe83
PE
947 * dbusbind.c: Pointer signedness fixes.
948 (xd_signature, xd_append_arg, xd_initialize):
949 (Fdbus_call_method, Fdbus_call_method_asynchronously):
950 (Fdbus_method_return_internal, Fdbus_method_error_internal):
951 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
952 (Fdbus_register_signal): Use SSDATA when the context wants char *.
953
78320123
PE
954 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
955 if GCC considers string literals to be constants.
49cebcca 956 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
78320123 957
35ac2a97
SM
9582011-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
959
fb103ca9
SM
960 * print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
961 (print_preprocess, print_object): New macro to fix last change.
962
35ac2a97
SM
963 * print.c (print_preprocess): Don't forget font objects.
964
62973b41
JB
9652011-03-16 Juanma Barranquero <lekktu@gmail.com>
966
967 * emacs.c (USAGE3): Doc fixes.
968
0e48bb22
AS
9692011-03-15 Andreas Schwab <schwab@linux-m68k.org>
970
971 * coding.c (detect_coding_iso_2022): Reorganize code to clarify
972 structure.
973
7684e57b
JB
9742011-03-14 Juanma Barranquero <lekktu@gmail.com>
975
976 * lisp.h (VWindow_system, Qfile_name_history):
977 * keyboard.h (lispy_function_keys) [WINDOWSNT]:
978 * w32term.h (w32_system_caret_hwnd, w32_system_caret_height)
979 (w32_system_caret_x, w32_system_caret_y): Declare extern.
980
981 * w32select.c: Don't #include "keyboard.h".
c96bbc66 982 (run_protected): Add extern declaration for waiting_for_input.
7684e57b
JB
983
984 * w32.c (Qlocal, noninteractive1, inhibit_window_system):
985 * w32console.c (detect_input_pending, read_input_pending)
986 (encode_terminal_code):
987 * w32fns.c (quit_char, lispy_function_keys, Qtooltip)
988 (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x)
989 (w32_system_caret_y, Qfile_name_history):
990 * w32font.c (w32font_driver, QCantialias, QCotf, QClang):
991 * w32inevt.c (reinvoke_input_signal, lispy_function_keys):
992 * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map)
993 (Qoverriding_terminal_local_map, Qmenu_bar_update_hook):
994 * w32proc.c (Qlocal, report_file_error):
995 * w32term.c (Vwindow_system, updating_frame):
996 * w32uniscribe.c (initialized, uniscribe_font_driver):
997 Remove unneeded extern declarations.
998
2aa46d6c
CY
9992011-03-14 Chong Yidong <cyd@stupidchicken.com>
1000
c96bbc66 1001 * buffer.c (Fmake_indirect_buffer): Fix incorrect assertions.
2aa46d6c 1002
cffc6f3b
CY
10032011-03-13 Chong Yidong <cyd@stupidchicken.com>
1004
1005 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
1006 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
1007 These macros can no longer be used for assignment.
1008
44f230aa
SM
1009 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
1010 Assign struct members directly, instead of using BUF_BEGV etc.
cffc6f3b
CY
1011 (record_buffer_markers, fetch_buffer_markers): New functions for
1012 recording and fetching special buffer markers.
1013 (set_buffer_internal_1, set_buffer_temp): Use them.
1014
1015 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
1016
1017 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
1018
1019 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
1020 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
1021
1022 * xdisp.c (hscroll_window_tree):
1023 (reconsider_clip_changes): Use PT instead of BUF_PT.
1024
d251f04b
EZ
10252011-03-13 Eli Zaretskii <eliz@gnu.org>
1026
1027 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
1028 $(EMACS_ROOT)/lib/intprops.h.
1029
f0c77cd1
PE
10302011-03-13 Paul Eggert <eggert@cs.ucla.edu>
1031
3eca4629
PE
1032 Fix more problems found by GCC 4.5.2's static checks.
1033
7c86ee98
PE
1034 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
1035 to unsigned char * to avoid compiler diagnostic.
b0afc268
PE
1036 (xg_free_frame_widgets): Make it clear that a local variable is
1037 needed only if USE_GTK_TOOLTIP.
01e0b5ad
PE
1038 (gdk_window_get_screen): Make it clear that this macro is needed
1039 only if USE_GTK_TOOLTIP.
1e5524e7
PE
1040 (int_gtk_range_get_value): New function, which avoids a diagnostic
1041 from gcc -Wbad-function-cast.
1042 (xg_set_toolkit_scroll_bar_thumb): Use it.
1043 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
1044 diagnostic from gcc -Wbad-function-cast.
65dc836c
PE
1045 (get_utf8_string, xg_get_file_with_chooser):
1046 Rename locals to avoid shadowing.
1047 (create_dialog): Move locals to avoid shadowing.
7c86ee98 1048
41729b81
PE
1049 * xgselect.c (xg_select): Remove unused var.
1050
f0c77cd1
PE
1051 * image.c (four_corners_best): Mark locals as initialized.
1052 (gif_load): Initialize transparent_p to zero (Bug#8238).
1053 Mark another local as initialized.
ec6cf4c6 1054 (my_png_error, my_error_exit): Mark with NO_RETURN.
f0c77cd1 1055
ce0ad53d 1056 * image.c (clear_image_cache): Now static.
d5d5a617 1057 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
e22cffbc 1058 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
77a765fd
PE
1059 (x_edge_detection): Remove unnecessary cast that
1060 gcc -Wbad-function-cast diagnoses.
2037898d 1061 (gif_load): Fix pointer signedness.
6ae141d6
PE
1062 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
1063 (jpeg_load, gif_load): Rename locals to avoid shadowing.
ce0ad53d 1064
3eca4629
PE
10652011-03-11 Paul Eggert <eggert@cs.ucla.edu>
1066
d32df629
PE
1067 Improve quality of tests for time stamp overflow.
1068 For example, without this patch (encode-time 0 0 0 1 1
1069 1152921504606846976) returns the obviously-bogus value (-948597
1070 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
1071 reports time overflow. See
1072 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
b8d9bd41
PE
1073 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
1074 * editfns.c: Include limits.h and intprops.h.
1075 (TIME_T_MIN, TIME_T_MAX): New macros.
1076 (time_overflow): Move earlier, to before first use.
1077 (hi_time, lo_time): New functions, for an accurate test for
1078 out-of-range times.
1079 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
1080 (Fget_internal_run_time): Don't assume time_t fits in int.
1081 (make_time): Use list2 instead of Fcons twice.
1082 (Fdecode_time): More accurate test for out-of-range times.
1083 (check_tm_member): New function.
1084 (Fencode_time): Use it, to test for out-of-range times.
d32df629
PE
1085 (lisp_time_argument): Don't rely on undefined left-shift and
1086 right-shift behavior when checking for time stamp overflow.
8be6f318 1087
fe31d94c
PE
1088 * editfns.c (time_overflow): New function, refactoring common code.
1089 (Fformat_time_string, Fdecode_time, Fencode_time):
1090 (Fcurrent_time_string): Use it.
1091
8be6f318
PE
1092 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
1093 * dired.c (make_time): Move to ...
1094 * editfns.c (make_time): ... here.
1095 * systime.h: Note the move.
1096
09d9db2c 10972011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c47cbdfd 1098
126bc0dc
YM
1099 * fringe.c (update_window_fringes): Remove unused variables.
1100
c47cbdfd
YM
1101 * unexmacosx.c (copy_data_segment): Also copy __got section.
1102 (Bug#8223)
1103
7ac80be9
EZ
11042011-03-12 Eli Zaretskii <eliz@gnu.org>
1105
c96bbc66 1106 * termcap.c [MSDOS]: Include "msdos.h".
058e5dad
EZ
1107 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
1108 Constify `char *' arguments and their references according to
1109 prototypes in tparam.h.
1110
ecb0f94d 1111 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
058e5dad 1112
7ac80be9
EZ
1113 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
1114 Adapt all references accordingly.
1115
1116 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
1117
ef1fd07e
TT
11182011-03-11 Tom Tromey <tromey@redhat.com>
1119
1120 * buffer.c (syms_of_buffer): Remove obsolete comment.
1121
7ef4b50c
EZ
11222011-03-11 Eli Zaretskii <eliz@gnu.org>
1123
1124 * termhooks.h (encode_terminal_code): Declare prototype.
1125
1126 * msdos.c (encode_terminal_code): Don't declare prototype.
1127
1128 * term.c (encode_terminal_code): Now external again, used by
1129 w32console.c and msdos.c.
1130
44f230aa
SM
1131 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)):
1132 Depend on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
7ef4b50c 1133
4b1ec863 11342011-03-11 Paul Eggert <eggert@cs.ucla.edu>
f78faa98 1135
1714f52b 1136 Fix some minor problems found by GCC 4.5.2's static checks.
83316bf4 1137
4b1ec863
PE
1138 * fringe.c (update_window_fringes): Mark locals as initialized
1139 (Bug#8227).
1140 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
bf60f616 1141
524c7aa6
PE
1142 * alloc.c (mark_fringe_data): Move decl from here ...
1143 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
1144 to check its interface.
1145 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
1146
a5c0af81 1147 * fontset.c (free_realized_fontset): Now static.
7519b8cd 1148 (Fset_fontset_font): Rename local to avoid shadowing.
cc6e5db1 1149 (fontset_font): Mark local as initialized.
a9a06e0b 1150 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
a5c0af81 1151
b4716021
PE
1152 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
1153
811e9bac 1154 * xselect.c (x_disown_buffer_selections): Remove; not used.
7b83e2f1 1155 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
aa0daa9f
PE
1156 (x_own_selection, Fx_disown_selection_internal): Rename locals
1157 to avoid shadowing.
1158 (x_handle_dnd_message): Remove local to avoid shadowing.
811e9bac 1159
7e3ab302
PE
1160 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
1161 so that the caller can use some name other than gcpro1.
1162 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
58d2d479
PE
1163 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
1164 (Fx_backspace_delete_keys_p):
1165 Use them to avoid shadowing, and rename vars to avoid shadowing.
1166 (x_decode_color, x_set_name, x_window): Now static.
6b437900 1167 (Fx_create_frame): Add braces to silence GCC warning.
c0951e53 1168 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
06b0c8a0
PE
1169 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
1170 Remove unused locals.
7e3ab302
PE
1171 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
1172 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
1173 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
1174 macros.
f78faa98 1175
e2b13473
PE
1176 * xterm.h (x_mouse_leave): New decl.
1177
77f23912
PE
1178 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
1179 Remove unused functions.
cdf4ba58
PE
1180 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
1181 (x_calc_absolute_position): Now static.
7411c686 1182 (XTread_socket): Don't define label "out" unless it's used.
2b07bcff 1183 Don't declare local "event" unless it's used.
ed7bf3a5
PE
1184 (x_iconify_frame, x_free_frame_resources): Don't declare locals
1185 unless they are used.
38d0b34a
PE
1186 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
1187 (x_fatal_error_signal): Remove; not used.
a6067996
PE
1188 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
1189 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
1190 (x_error_catcher, x_connection_closed, x_error_handler):
1191 (x_error_quitter, xembed_send_message, x_iconify_frame):
1192 (my_log_handler): Rename locals to avoid shadowing.
28f1c698 1193 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
2a8fade0 1194 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
77f23912 1195
44f230aa
SM
1196 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font):
1197 Rename or move locals to avoid shadowing.
6b463e58 1198 (tty_defined_color, merge_face_heights): Now static.
5967d051 1199 (free_realized_faces_for_fontset): Remove; not used.
1e9966ea
PE
1200 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
1201 does not deduce is never used uninitialized.
73719eba
PE
1202 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
1203 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
071048a3 1204
426994c3 1205 * terminal.c (store_terminal_param): Now static.
5489860b 1206
032f1620 1207 * xmenu.c (menu_highlight_callback): Now static.
9d66f88e 1208 (set_frame_menubar): Remove unused local.
d4323972 1209 (xmenu_show): Rename parameter to avoid shadowing.
6d1f7fee
PE
1210 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
1211 since they might point to immutable storage.
281585b0
PE
1212 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
1213 since it's unused otherwise.
032f1620 1214
367c19e5 1215 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
53df7c11 1216 Add a FIXME, since the code still doesn't look right. (Bug#8215)
9f36b9fd
PE
1217 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
1218 avoids a gcc -Wuninitialized diagnostic.
0e086e8f 1219 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
44a3a108
PE
1220 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
1221 does not deduce are never used uninitialized.
70739cbe 1222
07b48fa9
PE
1223 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
1224
8868a238 1225 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
4554d213
PE
1226 * window.c (window_loop, size_window):
1227 (run_window_configuration_change_hook, enlarge_window): Likewise.
8868a238 1228
7e5cf297 1229 * window.c (display_buffer): Now static.
d6550a9f
PE
1230 (size_window): Mark variables that gcc -Wuninitialized
1231 does not deduce are never used uninitialized.
a586633d
PE
1232 * window.h (check_all_windows): New decl, to forestall
1233 gcc -Wmissing-prototypes diagnostic.
5b555da1 1234 * dispextern.h (bidi_dump_cached_states): Likewise.
7e5cf297 1235
f6095868
PE
1236 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
1237 shadowing.
1238 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
726929c4
PE
1239 Include <limits.h>.
1240 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
1241 and to avoid gcc -Wuninitialized warning.
89ef49df
PE
1242 (load_charset_map): Mark variables that gcc -Wuninitialized
1243 does not deduce are never used uninitialized.
53df7c11 1244 (load_charset): Abort instead of using uninitialized var (Bug#8229).
f6095868 1245
f38b440c
PE
1246 * coding.c (coding_set_source, coding_set_destination):
1247 Use "else { /* comment */ }" rather than "else /* comment */;"
1248 for clarity, and to avoid gcc -Wempty-body warning.
2735d060
PE
1249 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
1250 a block, when the outer 'i' will do.
1251 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
1252 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
1253 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
1254 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
1255 (Fdecode_sjis_char, Fdefine_coding_system_internal):
1256 Rename locals to avoid shadowing.
1257 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
e2f1bab9
PE
1258 * coding.c (emacs_mule_char, encode_invocation_designation):
1259 Now static, since they're not used elsewhere.
413bb2db 1260 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
c4a63b12 1261 (decode_coding_object, encode_coding_object, detect_coding_system):
ee05f961
PE
1262 (decode_coding_emacs_mule): Mark variables that gcc
1263 -Wuninitialized does not deduce are never used uninitialized.
160b01f6
PE
1264 (detect_coding_iso_2022): Initialize a local variable that might
1265 be used uninitialized. Leave a FIXME because it's not clear that
53df7c11 1266 this initialization is needed. (Bug#8211)
5f58e762
PE
1267 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
1268 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
1269 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
1270 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
1271 Remove unused macros.
f38b440c 1272
232b38b9 1273 * category.c (hash_get_category_set): Remove unused local var.
9f3b5e69 1274 (copy_category_table): Now static, since it's not used elsewhere.
d0891610 1275 * character.c (string_count_byte8): Likewise.
232b38b9 1276
fb90da1b
PE
1277 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
1278 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
1279
fb93dbc2
PE
1280 * chartab.c (copy_sub_char_table): Now static, since it's not used
1281 elsewhere.
5c156ace
PE
1282 (sub_char_table_ref_and_range, char_table_ref_and_range):
1283 Rename locals to avoid shadowing.
bbcd0949 1284 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
fb93dbc2 1285
7d3b3862 1286 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
630d6892 1287 (BIDI_BOB): Remove unused macro.
7d3b3862 1288
6be7d3da
PE
1289 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
1290 deduce are never used uninitialized.
c2ed9c8b 1291 * term.c (encode_terminal_code): Likewise.
6be7d3da 1292
75f8807f 1293 * term.c (encode_terminal_code): Now static. Remove unused local.
72abad34 1294
50938595
PE
1295 * tparam.h: New file.
1296 * term.c, tparam.h: Include it.
1297 * deps.mk (term.o, tparam.o): Depend on tparam.h.
1298 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
1299 Move these decls to tparam.h, and make them agree with what
1300 is actually in tparam.c. The previous trick of using incompatible
1301 decls in different modules does not conform to the C standard.
1302 All callers of tparam changed to use tparam's actual API.
1303 * tparam.c (tparam1, tparam, tgoto):
1304 Use const pointers where appropriate.
1305
fbceeba2
PE
1306 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
1307 * cm.h (struct cm): Likewise.
1308 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
1309 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
1310 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
1311 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
1312 (turn_on_face, init_tty): Likewise.
1313 * termchar.h (struct tty_display_info): Likewise.
fbceeba2 1314
7f3f1250
PE
1315 * term.c (term_mouse_position): Rename local to avoid shadowing.
1316
e6ca6543
PE
1317 * alloc.c (mark_ttys): Move decl from here ...
1318 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
1319
c40f8d15
AS
13202011-03-11 Andreas Schwab <schwab@linux-m68k.org>
1321
1322 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
1323
cfe0661d
JB
13242011-03-09 Juanma Barranquero <lekktu@gmail.com>
1325
1326 * search.c (compile_pattern_1): Remove argument regp, unused since
1327 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
1328 (compile_pattern): Don't pass it.
1329
0afb4571
J
13302011-03-08 Jan Djärv <jan.h.d@swipnet.se>
1331
1332 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
1333 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
1334 for ! HAVE_GTK3.
1335 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
1336
1337 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
1338
1339 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
1340 gdk_window_get_screen, gdk_window_get_geometry,
1341 gdk_x11_window_lookup_for_display and GDK_KEY_g.
1342 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
1343 (xg_get_pixbuf_from_pixmap): New function.
1344 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
1345 to Pixmap, take frame as parameter, remove GdkColormap parameter.
1346 Call xg_get_pixbuf_from_pixmap instead of
1347 gdk_pixbuf_get_from_drawable.
1348 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
1349 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
1350 (xg_check_special_colors): Use GtkStyleContext and its functions
1351 for HAVE_GTK3.
1352 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
1353 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
1354 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
44f230aa
SM
1355 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes):
1356 Call gtk_widget_get_preferred_size.
0afb4571
J
1357 (xg_frame_resized): gdk_window_get_geometry only takes 5
1358 parameters.
44f230aa
SM
1359 (xg_win_to_widget, xg_event_is_for_menubar):
1360 Call gdk_x11_window_lookup_for_display.
0afb4571
J
1361 (xg_set_widget_bg): New function.
1362 (delete_cb): New function.
1363 (xg_create_frame_widgets): connect delete-event to delete_cb.
1364 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
1365 (xg_set_background_color): Call xg_set_widget_bg.
1366 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
1367 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
1368 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
1369 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
1370 if ! HAVE_GTK3.
1371 (update_frame_tool_bar): Call gtk_widget_hide.
1372 (xg_initialize): Use GDK_KEY_g.
1373
1374 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
1375 if ! HAVE_GTK3
1376 (x_session_initialize): Call gdk_x11_set_sm_client_id.
1377
1378 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
1379 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
1380 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
1381
1c2cc4ef
JB
13822011-03-08 Juanma Barranquero <lekktu@gmail.com>
1383
1384 * w32xfns.c (select_palette): Check success of RealizePalette against
1385 GDI_ERROR, not zero.
1386
7faeca66
BK
13872011-03-07 Ben Key <bkey76@gmail.com>
1388
1389 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
1390 (file_dialog_callback): Fix locating the window handle of the File Name
1391 text field. After disabling it, set focus on the list control.
1392 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
1393 Name text field to "Current Directory" if it does not already have
cfe0661d 1394 another value. (Bug#8181)
7faeca66 1395
cf715c3c
AR
13962011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1397
1398 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
1399 parameter for hbar cursors. Based on a patch by Ben Key
1400 <bkey76@gmail.com>.
1401
ef272f1f
CY
14022011-03-06 Chong Yidong <cyd@stupidchicken.com>
1403
1404 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
1405 change.
1406
5489860b
PE
14072011-03-06 Paul Eggert <eggert@cs.ucla.edu>
1408
5f349a89
PE
1409 current_column: Now returns EMACS_INT, fixing some iftc
1410 that was introduced in the 2002-06-02 change "temporarily"; see
1411 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
7831777b
PE
1412 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
1413 * cmds.c (internal_self_insert): Likewise.
1414 * indent.c (Fcurrent_column): Likewise.
1415 * keymap.c (describe_command): Likewise.
1416 * minibuf.c (read_minibuf): Likewise.
1417 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
1418 to int.
1419 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
1420 Likewise.
1421 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
1422 not int or double, if they might contain a column number.
1423 * indent.c (current_column, Findent_to, indented_beyond_p):
1424 (compute_motion, vmotion): Likewise.
1425 * keymap.c (describe_command): Likewise.
1426 * xdisp.c (pint2str): Likewise.
1427 * indent.c (last_known_column): Now EMACS_INT, not int.
1428 * minibuf.c (minibuf_prompt_width): Likewise.
1429 * indent.c (current_column, current_column_1, position_indentation):
1430 Return EMACS_INT, not double.
1431 * lisp.h (current_column): Likewise.
1432 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
1433 All callers changed.
1434 * lisp.h (indented_beyond_p): Likewise.
1435
e9588e2e
PE
1436 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
1437 from xdisp.c, and make static, since these are used only here.
1438 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
1439 Remove decls.
1440
1e12733b 1441 * cmds.c (internal_self_insert): Reindent to match Emacs style.
179b8720 1442 * xdisp.c (redisplay_window): Likewise.
1e12733b 1443
5489860b
PE
1444 * xdisp.c: Rename or move local decls to avoid shadowing.
1445 (init_iterator, handle_fontified_prop, handle_single_display_spec):
1446 (message_dolog, message_with_string, redisplay_internal):
1447 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
1448 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
1449 (display_line, display_string, rows_from_pos_range):
1450 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
1451 Rename or move local decls.
7b781e9f 1452 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
841081e1
PE
1453 (produce_glyphless_glyph): Make a pointer "const"
1454 since it might point to immutable storage.
cfe0661d 1455 (update_window_cursor): Now static, since it's not used elsewhere.
44f230aa 1456 (SKIP_GLYPHS): Remove unused macro.
5489860b 1457
aa248733
MS
14582011-03-06 Michael Shields <shields@msrl.com> (tiny change)
1459
1460 * window.c (Fnext_window): Doc fix. (Bug#5567)
1461
04cb6840
CY
14622011-03-05 Chong Yidong <cyd@stupidchicken.com>
1463
1464 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
1465
22c28cb8 14662011-03-02 Ken Brown <kbrown@cornell.edu>
5aef9e9a
KB
1467
1468 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1469
6c0dea8a
PE
14702011-03-02 Paul Eggert <eggert@cs.ucla.edu>
1471
1472 Work around some portability problems with symlinks.
1473
1474 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
1475 generate a special message for it. Suggested by Eli Zaretskii in
1476 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
1477 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
1478 Simplify the code by assuming that the readlink and symlink calls
1479 exist, even if they always fail on this host.
1480 (Ffile_readable_p): Likewise, for fifos.
1481 * config.in: Regenerate.
1482
52eb77a6
CY
14832011-02-27 Chong Yidong <cyd@stupidchicken.com>
1484
1485 * frame.c (store_frame_param): Don't store value directly in
1486 buffer_list and buried_buffer_list; copy the list and remove dead
1487 buffers (Bug#7898).
1488
0f7bb05d
EZ
14892011-02-27 Eli Zaretskii <eliz@gnu.org>
1490
40be44e2
EZ
1491 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
1492
01c35094 1493 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
40be44e2 1494
0f7bb05d
EZ
1495 * w32.c (symlink, readlink): New stub functions.
1496
27786b2f
PE
14972011-02-27 Paul Eggert <eggert@cs.ucla.edu>
1498
c783d15b
PE
1499 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
1500 This avoids a gcc warning in some configurations.
1501
76c1cebc
PE
1502 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
1503
0ff162fc
PE
1504 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
1505 (set_menu_bar_lines, x_get_resource_string): New decls.
1506 * msdos.c (set_menu_bar_lines): Omit decl.
1507
fdb0b28b
PE
1508 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
1509 It's always given int values and used as an int. This suppresses
1510 a gcc "comparison of unsigned expression >= 0" warning in some
1511 configurations.
1512
27786b2f
PE
1513 * dispnew.c: Rename locals to avoid shadowing.
1514 (update_text_area, scrolling_window, update_frame_1): Rename locals.
1515
09ad5a91
PE
15162011-02-26 Paul Eggert <eggert@cs.ucla.edu>
1517
1518 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
1519 (copy_glyph_row_contents): Remove; not used.
1520 (frame_row_to_window, check_current_matrix_flags):
1521 (window_change_signal): Now static, since they're not used elsewhere.
1522 (check_current_matrix_flags): Surround with "#if 0", since its
1523 only use is in a comment. Maybe both the comment and the "#if 0"
1524 stuff should be removed?
1525
d2d37ddc
PE
1526 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
1527 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
1528 contexts that actually need it.
1529
003fa8b6
EZ
15302011-02-26 Eli Zaretskii <eliz@gnu.org>
1531
1532 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
1533 (lstat): Define for DJGPP < 2.04.
1534
b1894766
PE
15352011-02-25 Paul Eggert <eggert@cs.ucla.edu>
1536
1537 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
1538 as per recent filemodestring API change. Reported by Jonas Öster in
1539 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
1540
e18c0aa3 15412011-02-23 Ben Key <bkey76@gmail.com>
2c6584e8
BK
1542
1543 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
1544 directly, for bar cursors.
1545
15462011-02-23 Chong Yidong <cyd@stupidchicken.com>
1547
1548 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
1549 into the frame's cursor_width.
1550
617a0e83
SM
15512011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
1552
1553 * print.c (print_object): Never print old-style backquotes.
1554 Obey escapeflag for hash tables as well.
1555
cce7d530 15562011-02-23 Kenichi Handa <handa@m17n.org>
e3b300a4
KH
1557
1558 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
cce7d530 1559 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
e3b300a4 1560
8d40723d
PE
15612011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1562
1563 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
1564
aa0f73d1
WJ
15652011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
1566
1567 * lread.c (openp): Correct Boolean typo in last commit.
1568
bdaa0745
AR
15692011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1570
1571 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
aa0f73d1 1572 key to Emacs, treat as unmodified (go to input manager processing).
bdaa0745 1573
f68c809d
PE
15742011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1575
1576 Assume S_ISLNK etc. work, since gnulib supports this.
1577 * config.in: Regenerate.
1578 * dired.c (lstat): Remove.
1579 (file_name_completion): Assume S_ISDIR works.
1580 (file_name_completion_stat): Assume S_ISLNK works.
1581 Do not bother calling stat unless lstat says it's a symlink.
1582 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
1583 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
1584 (check_writable, Ffile_writable_p, Fset_file_times):
1585 Assume S_ISDIR works.
1586 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
1587 fifos exist.
2f8f196d 1588 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
f68c809d
PE
1589 * filelock.c (S_ISLNK): Remove.
1590 * lread.c (openp): Assume S_ISDIR works.
1591 * xrdb.c (S_ISDIR): Remove.
1592
25c51af3
EZ
15932011-02-21 Eli Zaretskii <eliz@gnu.org>
1594
1595 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
2f8f196d 1596 lib/makefile.w32-in.
25c51af3
EZ
1597 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
1598 (GLOBAL_SOURCES): Remove filemode.c.
1599 (OBJ1): Remove $(BLD)/filemode.$(O).
1600
5c185672
PE
16012011-02-21 Paul Eggert <eggert@cs.ucla.edu>
1602
1603 Import filemode module from gnulib.
1604 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
1605 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
1606 (filemode.o): Remove; this is now in ../lib.
1607 * dired.c: Include <filemode.h>.
1608 (filemodestring): Remove now-redundant decl.
1609 * config.in: Regenerate.
1610
32159fc3
CS
16112011-02-20 Eli Zaretskii <eliz@gnu.org>
1612
1613 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
1614 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
1615
2f8f196d 16162011-02-20 Christoph Scholtes <cschol2112@gmail.com>
32159fc3
CS
1617
1618 * makefile.w32-in: Remove md5.$(O).
1619 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
1620 lib/makefile.w32-in.
1621
61353ac8 16222011-02-20 Paul Eggert <eggert@cs.ucla.edu>
ff05203e 1623
61353ac8
PE
1624 Import crypto/md5 and stdint modules from gnulib.
1625 * Makefile.in (base_obj): Remove md5.o, since this file
1626 is in lib now.
1627 * config.in: Regenerate.
1628 * md5.h, md5.h: Move to ../lib.
1629 * deps.mk (md5.o): Remove.
1630 (fns.o): Depend on ../lib/md5.h, not md5.h.
1631
9d9d12cd
EZ
16322011-02-19 Eli Zaretskii <eliz@gnu.org>
1633
f601db19
EZ
1634 * termcap.c (tputs): Don't declare baud_rate.
1635
9d9d12cd
EZ
1636 * s/msdos.h (strtold): Define to _strtold.
1637
aa56f361
SM
16382011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1639
cbe81f1d
SM
1640 * process.c (Fstart_process, Fmake_serial_process)
1641 (Fmake_network_process, server_accept_connection):
1642 Use empty_unibyte_string.
1643
1644 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
1645
aa56f361
SM
1646 * lread.c (Qdir_ok): New constant.
1647 (syms_of_lread): Initialize it.
1648 (openp): Don't ignore directories if the predicate returns dir-ok.
1649
d6de49a1
EZ
16502011-02-18 Eli Zaretskii <eliz@gnu.org>
1651
42af913d
EZ
1652 * xdisp.c (display_line): Fix the change made for bug#7939.
1653
d6de49a1
EZ
1654 * terminal.c (create_terminal): Use default-keyboard-coding-system
1655 and default-terminal-coding-system to initialize coding systems of
1656 the new terminal. (Bug#7840)
1657
b286858c
SM
16582011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1659
1660 * lisp.h (BYTE_MARK_STACK): New macro.
1661 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
1662
1663 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
1664 (struct byte_stack): Only define `top' and `bottom' if used.
1665 (mark_byte_stack): Only define if used.
1666 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
1667 is not set.
1668 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
1669
1670 * term.c (OUTPUT_IF): Use OUTPUT.
1671
1672 * alloc.c (Fgarbage_collect): When using stack scanning, don't
1673 redundantly scan byte-code stacks, catchlist, and handlerlist.
1674
124c9ff0
JD
16752011-02-17 Jan Djärv <jan.h.d@swipnet.se>
1676
1677 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
1678 (Fns_read_file_name): Replace B_ with BVAR.
1679
1680 * nsterm.m (ns_term_init): Use KVAR.
1681
05c65251
EZ
16822011-02-16 Eli Zaretskii <eliz@gnu.org>
1683
026d69ec
EZ
1684 * msdos.c (internal_terminal_init): Use KVAR.
1685
05c65251
EZ
1686 * w32fns.c (Fx_create_frame): Use KVAR.
1687
1688 * w32term.c (w32_create_terminal): Use KVAR.
1689
1690 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
eef5ce6e 1691 (getloadavg): Declare prototype which was removed from lisp.h.
05c65251
EZ
1692
1693 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
1694
b286858c
SM
1695 * fileio.c (Finsert_file_contents, Fwrite_region):
1696 Remove references to buffer_file_type.
05c65251
EZ
1697 (syms_of_fileio): Don't intern and staticpro
1698 find-buffer-file-type.
1699
1700 * callproc.c (syms_of_callproc): Remove references to
1701 buffer_file_type.
1702
1703 * buffer.c (reset_buffer_local_variables): Don't set
1704 buffer_file_type.
1705 (init_buffer_once): Likewise.
1706 (syms_of_buffer): Don't define buffer-file-type.
1707
1708 * buffer.h (struct buffer): Remove buffer_file_type.
1709
1344aad4
TT
17102011-02-16 Tom Tromey <tromey@parfait>
1711
15f58304
EZ
1712 * callint.c (Fcall_interactively): Update for change to field names.
1713 * doc.c (Fsubstitute_command_keys): Update for change to field names.
1714 * cmds.c (Fself_insert_command): Update for change to field names.
1344aad4 1715 * keymap.c (Fcurrent_active_maps, Fkey_binding)
15f58304 1716 (Fdescribe_buffer_bindings): Update for change to field names.
1344aad4
TT
1717 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
1718 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
15f58304 1719 Update for change to field names.
1344aad4
TT
1720 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
1721 (echo_length, echo_truncate, cmd_error, command_loop_1)
1722 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
1723 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
1724 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
1725 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
15f58304
EZ
1726 Update for change to field names.
1727 * xfns.c (Fx_create_frame): Update for change to field names.
1728 * xterm.c (x_connection_closed, x_term_init): Update for change to
1729 field names.
1344aad4 1730 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
15f58304 1731 Update for change to field names.
1344aad4 1732 * window.c (window_scroll_pixel_based, window_scroll_line_based):
15f58304 1733 Update for change to field names.
1344aad4 1734 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
15f58304 1735 (delete_frame): Update for change to field names.
1344aad4
TT
1736 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
1737 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
1738 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
1739
eb4916d7
TT
17402011-02-16 Tom Tromey <tromey@redhat.com>
1741
1742 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
1743
4b4deea2
TT
17442011-02-16 Tom Tromey <tromey@parfait>
1745
1746 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
1747 * xfaces.c (compute_char_face): Replace B_ with BVAR.
1748 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1749 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1750 (with_echo_area_buffer, setup_echo_area_for_printing)
1751 (set_message_1, update_menu_bar, update_tool_bar)
1752 (text_outside_line_unchanged_p, redisplay_internal)
1753 (try_scrolling, try_cursor_movement, redisplay_window)
1754 (try_window_reusing_current_matrix, row_containing_pos)
1755 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1756 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1757 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1758 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
1759 BVAR.
1760 * window.c (window_display_table, unshow_buffer, window_loop)
1761 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1762 (select_window, Fforce_window_update, temp_output_buffer_show)
1763 (Fset_window_configuration, save_window_save): Replace B_ with
1764 BVAR.
1765 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
1766 Replace B_ with BVAR.
1767 * undo.c (record_point, record_insert, record_delete)
1768 (record_marker_adjustment, record_first_change)
1769 (record_property_change, Fundo_boundary, truncate_undo_list)
1770 (Fprimitive_undo): Replace B_ with BVAR.
1771 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
1772 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
1773 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1774 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1775 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
1776 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1777 (string_match_1, fast_looking_at, newline_cache_on_off)
1778 (search_command, search_buffer, simple_search, boyer_moore)
1779 (Freplace_match): Replace B_ with BVAR.
1780 * process.c (get_process, list_processes_1, Fstart_process)
1781 (Fmake_serial_process, Fmake_network_process)
1782 (read_process_output, send_process, exec_sentinel)
1783 (status_notify, setup_process_coding_systems): Replace B_ with
1784 BVAR.
1785 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
1786 (strout, print_string, temp_output_buffer_setup, print_object):
1787 Replace B_ with BVAR.
1788 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
b286858c
SM
1789 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
1790 Replace B_ with BVAR.
4b4deea2
TT
1791 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1792 (set_marker_both, set_marker_restricted_both, unchain_marker):
1793 Replace B_ with BVAR.
1794 * lread.c (readchar, unreadchar, openp, readevalloop)
1795 (Feval_buffer, Feval_region): Replace B_ with BVAR.
1796 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
1797 * keymap.c (Flocal_key_binding, Fuse_local_map)
1798 (Fcurrent_local_map, push_key_description)
1799 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
1800 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1801 (read_key_sequence): Replace B_ with BVAR.
1802 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
1803 * intervals.c (set_point_both, get_local_map): Replace B_ with
1804 BVAR.
1805 * insdel.c (check_markers, insert_char, insert_1_both)
1806 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1807 (adjust_after_replace, replace_range, del_range_2)
1808 (modify_region, prepare_to_modify_buffer)
1809 (Fcombine_after_change_execute): Replace B_ with BVAR.
1810 * indent.c (buffer_display_table, recompute_width_table)
1811 (width_run_cache_on_off, current_column, scan_for_column)
1812 (Findent_to, position_indentation, compute_motion, vmotion):
1813 Replace B_ with BVAR.
1814 * fringe.c (get_logical_cursor_bitmap)
1815 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1816 with BVAR.
1817 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1818 * font.c (font_at): Replace B_ with BVAR.
1819 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1820 Replace B_ with BVAR.
1821 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1822 (unlock_buffer): Replace B_ with BVAR.
1823 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1824 (Ffile_regular_p, Ffile_selinux_context)
1825 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1826 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1827 (Finsert_file_contents, choose_write_coding_system)
1828 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1829 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1830 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1831 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1832 (save_excursion_restore, Fprevious_char, Fchar_before)
1833 (general_insert_function, Finsert_char, Finsert_byte)
1834 (make_buffer_string_both, Finsert_buffer_substring)
1835 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1836 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1837 (Ftranslate_region_internal, save_restriction_restore)
1838 (Fchar_equal): Replace B_ with BVAR.
1839 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1840 * dispextern.h (WINDOW_WANTS_MODELINE_P)
1841 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1842 * dired.c (directory_files_internal): Replace B_ with BVAR.
1843 * data.c (swap_in_symval_forwarding, set_internal)
1844 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1845 Replace B_ with BVAR.
1846 * composite.c (fill_gstring_header)
1847 (composition_compute_stop_pos, composition_adjust_point)
1848 (Ffind_composition_internal): Replace B_ with BVAR.
1849 * coding.c (decode_coding, encode_coding)
1850 (make_conversion_work_buffer, decode_coding_gap)
1851 (decode_coding_object, encode_coding_object)
1852 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1853 (Funencodable_char_position, Fcheck_coding_systems_region):
1854 Replace B_ with BVAR.
1855 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1856 with BVAR.
1857 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1858 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1859 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1860 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1861 * category.h (Vstandard_category_table): Replace B_ with BVAR.
1862 * category.c (check_category_table, Fcategory_table)
1863 (Fset_category_table, char_category_set): Replace B_ with BVAR.
1864 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1865 BVAR.
1866 * casefiddle.c (casify_object, casify_region): Replace B_ with
1867 BVAR.
1868 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1869 with BVAR.
1870 * callint.c (check_mark, Fcall_interactively): Replace B_ with
1871 BVAR.
1872 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1873 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1874 with BVAR.
1875 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1876 (get_truename_buffer, Fget_buffer_create)
1877 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1878 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1879 (Fbuffer_local_value, buffer_lisp_local_variables)
1880 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1881 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1882 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1883 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1884 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1885 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1886 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1887 (record_overlay_string, overlay_strings, init_buffer_once)
1888 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1889
8678d9e4 18902011-02-16 Eli Zaretskii <eliz@gnu.org>
a73d395b
EZ
1891
1892 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1893 window is changed inside calls to do_pending_window_change.
1894 (Bug#8020)
1895
1f5d53eb
PE
18962011-02-16 Paul Eggert <eggert@cs.ucla.edu>
1897
1898 Remove no-longer needed getloadavg symbols.
1899 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1900 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1901 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1902 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1903 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1904 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1905 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1906 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1907 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1908 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
1909 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
1910 (LDAV_SYMBOL): Remove.
1911 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
1912 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1913
1914 Import getloadavg module from gnulib.
1915 * deps.mk (getloadavg.o): Remove; gnulib now does this.
1916 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
1917 now does this.
1918 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
1919 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
1920 * config.in: Regenerate.
1921
8017fd6b
EZ
19222011-02-15 Eli Zaretskii <eliz@gnu.org>
1923
1924 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1925
75b43359
MWD
19262011-02-14 Michael Welsh Duggan <md5i@md5i.com>
1927
1928 * print.c (float_to_string): Ensure that a decimal point is
1929 printed if using dtoastr (Bug#8033).
1930
fc3ca113
EZ
19312011-02-14 Eli Zaretskii <eliz@gnu.org>
1932
1f5d53eb 1933 * msdos.c (IT_frame_up_to_date):
ef72f149
EZ
1934 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1935
fc3ca113
EZ
1936 * dired.c (directory_files_internal):
1937 * fileio.c (Finsert_file_contents):
1938 * insdel.c (prepare_to_modify_buffer):
1939 * xdisp.c (pos_visible_p):
1940 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1941 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1942 Use B_ for the MS-Windows build.
1943
3928f2b6
JD
19442011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1945
1946 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1947 resource that specifies helvetica for menus and dialogs.
1948
1949 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
1950 (apply_systemfont_to_menu): Set resources *menubar*font and
1951 *popup*font. Remove defflt.
b286858c
SM
1952 (set_frame_menubar, create_and_show_popup_menu):
1953 Call apply_systemfont_to_menu before lw_create_widget.
3928f2b6 1954
4bb81cc2
TT
19552011-02-14 Tom Tromey <tromey@redhat.com>
1956
fc3ca113
EZ
1957 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
1958
4bb81cc2
TT
1959 * keyboard.h: Remove obsolete comment.
1960
5d8ea120
TT
19612011-02-14 Tom Tromey <tromey@parfait>
1962
1963 * composite.c (fill_gstring_header)
1964 (composition_compute_stop_pos, composition_adjust_point)
1965 (Ffind_composition_internal): Use B_.
1966 * intervals.c (set_point_both, get_local_map): Use B_.
1967 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
1968 * process.c (get_process, list_processes_1, Fstart_process)
1969 (Fmake_serial_process, Fmake_network_process)
1970 (read_process_output, send_process, exec_sentinel)
1971 (status_notify, setup_process_coding_systems): Use B_.
1972 * bytecode.c (Fbyte_code): Use B_.
1973 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1974 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1975 (skip_syntaxes, scan_lists): Use B_.
1976 * lread.c (readchar, unreadchar, openp, readevalloop)
1977 (Feval_buffer, Feval_region): Use B_.
1978 * print.c (printchar, strout, print_string, PRINTDECLARE)
1979 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
1980 (print_object): Use B_.
1981 * font.c (font_at): Use B_.
b286858c
SM
1982 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1983 Use B_.
5d8ea120
TT
1984 * callint.c (check_mark, Fcall_interactively): Use B_.
1985 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1986 (save_excursion_restore, Fprevious_char, Fchar_before)
1987 (general_insert_function, Finsert_char, Finsert_byte)
1988 (make_buffer_string_both, Finsert_buffer_substring)
1989 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1990 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1991 (Ftranslate_region_internal, save_restriction_restore)
1992 (Fchar_equal): Use B_.
1993 * data.c (swap_in_symval_forwarding, set_internal)
1994 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1995 Use B_.
1996 * undo.c (record_point, record_insert, record_delete)
1997 (record_marker_adjustment, record_first_change)
1998 (record_property_change, Fundo_boundary, truncate_undo_list)
1999 (Fprimitive_undo): Use B_.
2000 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
2001 (string_match_1, fast_looking_at, newline_cache_on_off)
2002 (search_command, search_buffer, simple_search, boyer_moore)
2003 (Freplace_match): Use B_.
2004 * indent.c (buffer_display_table, recompute_width_table)
2005 (width_run_cache_on_off, current_column, scan_for_column)
b286858c
SM
2006 (Findent_to, position_indentation, compute_motion, vmotion):
2007 Use B_.
5d8ea120
TT
2008 * casefiddle.c (casify_object, casify_region): Use B_.
2009 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
2010 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
2011 * fileio.c (Fexpand_file_name, Ffile_directory_p)
2012 (Ffile_regular_p, Ffile_selinux_context)
2013 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
2014 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
2015 (Finsert_file_contents, choose_write_coding_system)
2016 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
2017 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
2018 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
2019 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
2020 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
b286858c
SM
2021 (set_marker_both, set_marker_restricted_both, unchain_marker):
2022 Use B_.
5d8ea120
TT
2023 * insdel.c (check_markers, insert_char, insert_1_both)
2024 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
2025 (adjust_after_replace, replace_range, del_range_2)
2026 (modify_region, prepare_to_modify_buffer)
2027 (Fcombine_after_change_execute): Use B_.
2028 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
2029 (unlock_buffer): Use B_.
2030 * keymap.c (Flocal_key_binding, Fuse_local_map)
2031 (Fcurrent_local_map, push_key_description)
2032 (Fdescribe_buffer_bindings): Use B_.
2033 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
2034 (read_key_sequence): Use B_.
2035 * fringe.c (get_logical_cursor_bitmap)
2036 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
2037 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
2038 * xfaces.c (compute_char_face): Use B_.
2039 * character.c (chars_in_text, Fget_byte): Use B_.
2040 * category.c (check_category_table, Fcategory_table)
2041 (Fset_category_table, char_category_set): Use B_.
2042 * coding.c (decode_coding, encode_coding)
2043 (make_conversion_work_buffer, decode_coding_gap)
2044 (decode_coding_object, encode_coding_object)
2045 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
b286858c
SM
2046 (Funencodable_char_position, Fcheck_coding_systems_region):
2047 Use B_.
5d8ea120
TT
2048 * charset.c (Ffind_charset_region): Use B_.
2049 * window.c (window_display_table, unshow_buffer, window_loop)
2050 (window_min_size_2, set_window_buffer, Fset_window_buffer)
2051 (select_window, Fforce_window_update, temp_output_buffer_show)
2052 (Fset_window_configuration, save_window_save): Use B_.
2053 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
2054 (message_dolog, update_echo_area, ensure_echo_area_buffers)
2055 (with_echo_area_buffer, setup_echo_area_for_printing)
2056 (set_message_1, update_menu_bar, update_tool_bar)
2057 (text_outside_line_unchanged_p, redisplay_internal)
2058 (try_scrolling, try_cursor_movement, redisplay_window)
2059 (try_window_reusing_current_matrix, row_containing_pos)
2060 (try_window_id, get_overlay_arrow_glyph_row, display_line)
2061 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
2062 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
2063 (get_window_cursor_type, note_mouse_highlight): Use B_.
2064 * frame.c (make_frame_visible_1): Use B_.
2065 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
2066 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
2067 (WINDOW_WANTS_MODELINE_P): Use B_.
2068 * syntax.h (Vstandard_syntax_table): Update.
2069 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
2070 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
2071 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
2072 * character.h (FETCH_CHAR_ADVANCE): Update.
2073 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
2074 * category.h (Vstandard_category_table): Update.
2075 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
2076 names.
2077 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
2078 * buffer.c (swapfield_): New macro.
2079 (Fbuffer_swap_text): Use swapfield_ where appropriate.
2080 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
2081 (Fget_buffer_create, clone_per_buffer_values)
2082 (Fmake_indirect_buffer, reset_buffer)
2083 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
2084 (Fbuffer_local_value, buffer_lisp_local_variables)
2085 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
2086 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
2087 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
2088 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
2089 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
2090 (Fbuffer_swap_text, Fset_buffer_multibyte)
2091 (swap_out_buffer_local_variables, record_overlay_string)
2092 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
2093 Use B_.
2094 * buffer.h (struct buffer): Rename all Lisp_Object fields.
2095 (BUFFER_INTERNAL_FIELD, B_): New macro.
2096 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
2097
42f60557
JD
20982011-02-14 Jan Djärv <jan.h.d@swipnet.se>
2099
2100 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
2101 is null.
2102
2f9a22e2
J
21032011-02-13 Jan Djärv <jan.h.d@swipnet.se>
2104
2105 * callproc.c (Fcall_process):
2106 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
2107 comment.
2108
84eb0351 21092011-02-12 Martin Rudalics <rudalics@gmx.at>
bae1fa42
MR
2110
2111 * window.c (select_window): Check inhibit_point_swap argument when
2112 deciding whether to return immediately.
2113
84eb0351 21142011-02-12 Jan Djärv <jan.h.d@swipnet.se>
9aabf64c
JD
2115
2116 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
2117 zero (Bug#7348).
2118
84eb0351
CY
21192011-02-12 Chong Yidong <cyd@stupidchicken.com>
2120
2121 * config.in (TERMINFO): New definition.
2122
2123 * s/netbsd.h: Use it to choose between terminfo and termcap
2124 (Bug#7642).
2125
33d605d0
PE
21262011-02-12 Paul Eggert <eggert@cs.ucla.edu>
2127
2128 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
2129 The difference doesn't matter here, in practice, and sizeof is
2130 more portable to non-GCC compilers. Also, this makes the code
2131 match the already-existing comment.
2132
c0ad4ea5
AS
21332011-02-12 Andreas Schwab <schwab@linux-m68k.org>
2134
2135 * process.c (create_process): Reset SIGPIPE handler in the child.
2136 * callproc.c (Fcall_process): Likewise. (Bug#5238)
2137
50fd938f
EZ
21382011-02-12 Eli Zaretskii <eliz@gnu.org>
2139
2140 * xdisp.c <this_line_min_pos>: New variable.
2141 (move_it_in_display_line_to): Record in this_line_min_pos the
2142 smallest position iterated across.
2143 (display_line): Use this_line_min_pos to record the smallest
2144 position in the line even if it is not displayed due to
2145 hscrolling. (Bug#7939)
2146
af59aa6e
PE
21472011-02-12 Paul Eggert <eggert@cs.ucla.edu>
2148
cec81b22
PE
2149 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
2150 * md5.h (ATTRIBUTE_ALIGNED): New macro.
2151 (struct md5_ctx): Use it.
2152
af59aa6e
PE
2153 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
2154 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
2155 defined.
2156 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
2157 FC_HINT_STYLE is supported.
2158
02c3706c
JD
21592011-02-11 Jan Djärv <jan.h.d@swipnet.se>
2160
2161 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
2162 Make sure we don't do x_catch_errors twice.
2163
5ac75e8f
GM
21642011-02-10 Glenn Morris <rgm@gnu.org>
2165
2166 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
2167
d37f40ed
EZ
21682011-02-09 Eli Zaretskii <eliz@gnu.org>
2169
5ac75e8f
GM
2170 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
2171 New macros.
d37f40ed
EZ
2172 (globals.h, gl-stamp): New targets.
2173 (clean): Clean gl-stamp and globals.h.
2174
33cd3ee4
AS
21752011-02-09 Andreas Schwab <schwab@linux-m68k.org>
2176
2177 * Makefile.in (gl-stamp): Create globals.h here.
2178 (globals.h): Don't do it here.
2179 (mostlyclean): Clean globals.h and gl-stamp.
2180
f9f2e7f5
PE
21812011-02-09 Paul Eggert <eggert@cs.ucla.edu>
2182
2183 * Makefile.in ($(otherobj)): Depend on globals.h.
2184 Otherwise 'make -j10' failed on my host, because the build lacked
2185 necessary dependencies, e.g., vm-limit.o depends on globals.h.
2186
00b3c7ac
TT
21872011-02-08 Tom Tromey <tromey@redhat.com>
2188
2189 * Makefile.in (NS_OBJC_OBJ): New variable.
2190 (base_obj): Rename from 'obj'.
2191 (obj): New variable.
2192 (globals.h, gl-stamp, $(obj)): New targets.
2193 (GLOBAL_SOURCES): New variable.
2194 * globals.h: Remove.
2195 * nsselect.m (Vselection_alist): Define. Reverts part of
2196 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
2197 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
2198 variable.
2199 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
2200
8f3b2e12
KH
22012011-02-08 Kenichi Handa <handa@m17n.org>
2202
2203 * font.c (Ffont_get): Do not cache :otf value.
2204
4f043d0f
PE
22052011-02-07 Paul Eggert <eggert@cs.ucla.edu>
2206
2207 conform to C89 pointer rules
2208
2209 * dired.c (scmp, file_name_completion):
2210 Change types between char * and unsigned char *, to satisfy C89
2211 rules about pointer type compatibility.
47ce90e4 2212 * casefiddle.c (casify_object, casify_region): Likewise.
a7e979a4 2213 * search.c (Freplace_match, Fregexp_quote): Likewise.
90256841
PE
2214 * alloc.c (make_string, make_specified_string, make_pure_string):
2215 Likewise.
57ace6d0 2216 * data.c (Fstring_to_number): Likewise.
09125ef8
PE
2217 * print.c (float_to_string, PRINTFINISH, printchar, strout):
2218 (print_object): Likewise.
e7f8264d
PE
2219 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
2220 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
2221 (Fformat): Likewise.
a2db9982 2222 * callint.c (Fcall_interactively): Likewise.
f1e59824
PE
2223 * fns.c (string_make_multibyte, string_to_multibyte):
2224 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
2225 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
2226 Likewise.
4a25e32a 2227 * lread.c (read1, hash_string): Likewise.
400a67ff
PE
2228 * process.c (read_process_output, send_process, Fprocess_send_region):
2229 Likewise.
0ca76b1e 2230 * callproc.c (Fcall_process): Likewise.
7469ef5d
PE
2231 * doprnt.c (doprnt): Likewise.
2232 * indent.c (compute_motion): Likewise.
efe0234f 2233 * xfont.c (xfont_decode_coding_xlfd): Likewise.
3ce2f8ac 2234 * ralloc.c (resize_bloc): Likewise.
b19beacc 2235 * image.c (tiff_load): Likewise.
c45e5276 2236 * xml.c (make_dom, parse_region): Likewise.
7469ef5d
PE
2237 * character.c (strwidth): Make its argument const char *, not const
2238 unsigned char *, since more callers prefer it that way. All callers
2239 changed.
4f043d0f 2240
9eee99eb
PE
22412011-02-06 Paul Eggert <eggert@cs.ucla.edu>
2242
4c83cffc
PE
2243 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
2244 Emacs assumes two's complement elsewhere, but the assumption is
2245 easy to remove here, and this suppresses a warning with Sun C 5.8.
2246
82470039
PE
2247 conform to C89 pointer rules
2248
2249 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
2250 (same_x_server, x_term_init):
9eee99eb
PE
2251 Change types between char * and unsigned char *, to satisfy C89
2252 rules about pointer type compatibility.
82470039
PE
2253 * doc.c (get_doc_string, Fsnarf_documentation):
2254 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
2255 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
2256 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 2257 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
2258 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
2259 Likewise.
01c9aa3a 2260 * keymap.c (Ftext_char_description): Likewise.
637de37e 2261 * minibuf.c (Fread_buffer): Likewise.
5976c3fe
PE
2262 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
2263 (DRIVE_LETTER) [defined DOS_NT]:
2264 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
2265 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
2266 (search_embedded_absfilename, Fsubstitute_in_file_name):
2267 (barf_or_query_if_file_exists, Fmake_directory_internal):
2268 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
2269 (Finsert_file_contents, Fwrite_region):
2270 Likewise.
b68864e5
PE
2271 * insdel.c (insert, insert_and_inherit, insert_before_markers):
2272 (insert_before_markers_and_inherit, insert_1, insert_1_both):
2273 Likewise. This changes these functions' signatures, which is
2274 more convenient since most callers use char *. All remaining
2275 callers changed.
2276 * editfns.c (general_insert_function): Change signature to
2277 match changes to insert functions' signatures.
b286858c
SM
2278 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
2279 Use explicit cast when converting between void * and function pointer
01c9aa3a 2280 types, as C89 requires this.
9eee99eb 2281
32299e33
PE
22822011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2283
2284 don't ignore chdir failure
2285 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
2286 failure and exit.
2287 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
2288 remaining unchecked chdir calls in this function; some DOS/NT
2289 expert needs to fix them.
2290 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
2291 in this function; some NextStep expert needs to fix them.
2292
233ba4d9 22932011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
2294
2295 * xfaces.c (Finternal_set_lisp_face_attribute):
2296 Try to clarify some error messages. (Bug#2659)
2297
233ba4d9 22982011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
2299
2300 * editfns.c (save_restriction_restore): Don't forget to invalidate the
2301 current_column cache (bug#7946).
2302
233ba4d9 23032011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
2304
2305 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
2306
2307 * xftfont.c (xftfont_open): Likewise.
2308
233ba4d9 23092011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
2310
2311 * window.c (Fselect_window): Add missing return value.
2312
d67985d3
PE
23132011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2314
25a48bd0
PE
2315 xstrcasecmp: conform to C89 pointer rules
2316 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
2317 to const char *, since they're usually low-level C strings, and
2318 this stays compatible with C89 pointer rules. All callers changed.
2319
2f8f196d 2320 * charset.c: Conform to C89 pointer rules.
dfb6afda
PE
2321 (define_charset_internal): Switch between char * and unsigned char *.
2322
2f8f196d 2323 * xmenu.c: Conform to C89 const rules.
cc618f4e
PE
2324 (xmenu_show, xdialog_show): Declare local var as char *, not
2325 const char *, to stay compatible with C89 const rules.
2326
2f8f196d 2327 * xdisp.c: Conform to C89 pointer rules.
9bcaafce
PE
2328 (store_mode_line_noprop, display_string, reseat_to_string):
2329 (c_string_pos, number_of_chars, message_dolog):
2330 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
2331 (display_mode_element, display_string):
2332 Switch between char * and unsigned char * to stay compatible wth
2333 C89 pointer rules.
2334
2f8f196d 2335 * regex.c: Conform to C89 pointer rules.
5b0534c8
PE
2336 (re_wctype): Add cast, as C89 does not allow assigning between
2337 char * and unsigned char *.
2338 (regex_compile): Likewise.
2339
d67985d3
PE
2340 sync from gnulib to remove HAVE_STDBOOL_H
2341 * config.in: Regenerate.
2342
a5d733f5
EZ
23432011-02-04 Eli Zaretskii <eliz@gnu.org>
2344
f90e08f5
EZ
2345 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
2346 Replace all uses of lisp.h with $(LISP_H), and all uses of
2347 process.h with $(PROCESS_H).
2348 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
2349 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
2350
be50df37
EZ
2351 * deps.mk: Update for recent changes: gnutls support, gnulib
2352 imports, addition of globals.h.
2353
f90e08f5
EZ
2354 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
2355 ../lib/ignore-value.h.
a5d733f5 2356
67342916
PE
23572011-02-03 Paul Eggert <eggert@cs.ucla.edu>
2358
2359 allow C code to suppress warnings about ignored return values
2360
2361 We need to go through the code and for each such warning, either
2362 fix the code to pay attention to the returned value, or tell GCC
2363 that we really do want to ignore the returned value. Here is one
2364 example of how to do the latter.
2365 * sysdep.c: Include <ignore-value.h>.
2366 (sys_subshell): Suppress an undesirable warning about not checking
2367 the returned value of 'write', as there's nothing useful one can
2368 do with that returned value.
2369
36941b32
JD
23702011-02-03 Jan Djärv <jan.h.d@swipnet.se>
2371
2372 * xterm.c (x_connection_closed): Remove all calls that calls
2373 XSync (Bug#7949).
2374
3082f617
EZ
23752011-02-01 Eli Zaretskii <eliz@gnu.org>
2376
2377 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
2378 TIFFClientOpen.
2379
4df0af9b
JD
23802011-02-01 Jan Djärv <jan.h.d@swipnet.se>
2381
2382 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
2383 (x_session_check_input): Change args and return type so it can be used
2384 as argument to add_read_fd. Make static. Remove call to select.
2385 Call kbd_buffer_store_event for emacs_event.
2386 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
2387 (ice_conn_watch_CB): Call add_read_fd.
2388
2389 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
2390 x_session_check_input.
2391 (x_session_initialized): Remove definition.
2392 (x_initialize): Remove setting of x_session_initialized.
2393
2394 * xterm.h (x_session_check_input): Remove declaration.
2395
a4180391
PE
23962011-02-01 Paul Eggert <eggert@cs.ucla.edu>
2397
2398 format-time-string now supports subsecond time stamp resolution
b286858c 2399 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
a4180391
PE
2400 for consistency with its new argument and with gnulib nstrftime.
2401 All callers changed. New argument NS.
2402 (Fformat_time_string): Check that the time argument's microseconds
2403 component, if any, is in range; this avoids integer overflow and
2404 also nstrftime needs this. Document %N.
2405
14beddf4 24062011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
2407
2408 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
2409 of int. All uses adjusted.
2410 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
2411 (svg_load_image): Remove casts.
2412
14beddf4 24132011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
2414
2415 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
2416 function definitions for compiling with libpng-1.5.
2417 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
2418 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
2419 (Bug#7908).
2420
70b0d280
EZ
24212011-01-31 Eli Zaretskii <eliz@gnu.org>
2422
8b3c625b
EZ
2423 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
2424
70b0d280
EZ
2425 * makefile.w32-in (OBJ2): Remove strftime.$(O).
2426 ($(BLD)/strftime.$(O)): Remove prerequisites.
2427
16fab143
PE
24282011-01-31 Paul Eggert <eggert@cs.ucla.edu>
2429
2430 src/emacs.c now gets version number from configure.in
2431 * emacs.c (emacs_version): Set to VERSION so that it
2432 is determined automatically from ../configure.in.
2433
546961a9
JM
24342011-01-31 Jim Meyering <meyering@redhat.com>
2435
2436 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
2437 Use xmalloc rather than malloc.
2438
42a5b22f
PE
24392011-01-30 Paul Eggert <eggert@cs.ucla.edu>
2440
16c3e636
PE
2441 strftime: import from gnulib
2442 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
2443 * deps.mk (strftime.o): Remove.
2444 * editfns.c: Include <strftime.h>, supplied by gnulib.
2445 (emacs_strftimeu): Remove decl.
2446 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
2447 emacs_strftimeu.
2448 * config.in: Regenerate.
2449 * strftime.c: Remove; we now use strftime from gnulib.
2450
42a5b22f
PE
2451 Use SSDATA when the context wants char *.
2452 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
2453 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
2454 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
2455 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
2456 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
2457 Use SSDATA (not SDATA) when the context of the expression wants
2458 char * (not unsigned char *).
2459
2787bba3
JD
24602011-01-30 Jan Djärv <jan.h.d@swipnet.se>
2461
2462 * .gdbinit: Read global lisp variables as globals.f_V*.
2463
4ec88040
AS
24642011-01-30 Andreas Schwab <schwab@linux-m68k.org>
2465
2466 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
2467 All uses changed.
2468 (PROP_SAVE): Likewise.
2469
b6bcd048
CY
24702011-01-29 Chong Yidong <cyd@stupidchicken.com>
2471
2472 * keyboard.c (make_lispy_position): Fix typo in last change
2473 (Bug#7935).
2474
f915f0f7
EZ
24752011-01-29 Eli Zaretskii <eliz@gnu.org>
2476
2477 * s/ms-w32.h (HAVE_MKTIME): Remove.
2478
2479 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
2480 (GNULIB): New variable.
2481 (LIBS): Add $(GNULIB).
2482 $(TEMACS): Depend on $(GNULIB).
2483 <top-level>: Fix font-lock disrupted by a lone `"'.
2484
497a1925
JD
24852011-01-29 Jan Djärv <jan.h.d@swipnet.se>
2486
2487 * nsselect.m (ns_string_from_pasteboard): Get length of string
2488 and use make_string instead of build_string (Bug#7934).
2489 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
2490 instead of stringWithUTF8String (Bug#7934).
2491
2f8f196d 24922011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
481ae085 2493
2f8f196d
JB
2494 * nsfont.m (nsfont_open): Ensure that fonts with inexact
2495 descenders would not become one pixel too tall (Bug#7887).
481ae085 2496
6b918613
CY
24972011-01-28 Chong Yidong <cyd@stupidchicken.com>
2498
2499 * keyboard.c (make_lispy_position): For clicks on right fringe or
2500 margin, compute text position using the X coordinate relative to
2501 the left of the text area (Bug#7839).
2502
9e269017
KH
25032011-01-28 Kenichi Handa <handa@m17n.org>
2504
2505 * ftfont.c (ftfont_spec_pattern): Check each extra property
2506 value.
2507
17dd1fc8
SM
25082011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
2509
2510 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
2511
372fb76b
CY
25122011-01-27 Chong Yidong <cyd@stupidchicken.com>
2513
2514 * font.c (font_parse_fcname): Undefine a temporary macro.
2515
e7f7fbaa
SM
25162011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
2517
2518 Let the debugger continue to the normal handler (bug#7825).
2519 * eval.c (maybe_call_debugger): Declare before new use.
2520 (find_handler_clause): Don't call debugger any more.
2521 Ignore Vstack_trace_on_error.
2522 Use XCAR/XCDR.
2523 (syms_of_eval): Remove Vstack_trace_on_error.
2524 (Fsignal): Only modify handlerlist when we know we need to do it.
2525 Call the debugger when necessary.
2526 * globals.h (Vstack_trace_on_error): Remove.
2527
6608a7d8
CY
25282011-01-26 Chong Yidong <cyd@stupidchicken.com>
2529
2530 * font.c (font_parse_fcname): Rewrite GTK font name parser.
2531
06d8ace5 25322011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
2533
2534 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
2535 the buffer's point-max (bug#7876).
2536
06d8ace5 25372011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
2538
2539 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 2540 Remove unused case (Bug#6811).
19634648 2541
8ab70320
JD
25422011-01-23 Jan Djärv <jan.h.d@swipnet.se>
2543
2544 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
2545 setFrameTopLeftPoint is constrained.
2546
51b59d79
PE
25472011-01-23 Paul Eggert <eggert@cs.ucla.edu>
2548
9055082e
PE
2549 Check return values of some library calls.
2550 * emacs.c (main): Check dup result.
2551 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
2552 (frame_name_fnn_p): Check strtol result.
2553
5c7d01a5 2554 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
2555 when calling XpmCreatePixmapFromData.
2556
51b59d79
PE
2557 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
2558 * lisp.h (SSDATA): New macro.
2559 All uses of (char *) SDATA (x) replaced with SSDATA (x),
2560 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
2561 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
2562 * xsmfns.c (SSDATA): Likewise.
2563
e6b84b30
MR
25642011-01-22 Martin Rudalics <rudalics@gmx.at>
2565
2566 * window.c (select_window): New function.
2567 (Fselect_window): Call it.
2568 (inhibit_point_swap): Variable deleted.
2569 (Fset_window_configuration): Call select_window directly.
2570
3fb69558
JD
25712011-01-22 Jan Djärv <jan.h.d@swipnet.se>
2572
2573 * nsterm.m (constrainFrameRect): Only constrain the first time called.
2574
449ab399
JD
25752011-01-21 Jan Djärv <jan.h.d@swipnet.se>
2576
e2f79c8d
JD
2577 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
2578 screen, not the window screen.
2579 (x_set_window_size): Remove constraints.
2580 Calculate origin.y only if zooming is 0 and without referring to a
2581 screen.
2582 (windowWillResize): Don't modify frameSize.
2583 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
2584 (initFrameFromEmacs): Initialize ns_userRect.
2585 (windowShouldZoom): Set zooming to one. Remove all other code.
2586 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
2587 Zero it after restore.
2588 (constrainFrameRect): New method for EmacsWindow.
2589 (mouseDragged): Always post NSWindowDidResizeNotification after call to
2590 windowWillResize.
2591
2592 * nsterm.h (ns_output): Add dont_constrain and zooming.
2593 (EmacsView): Add ns_userRect.
2594
449ab399
JD
2595 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
2596 if ns_alternate_modifier is none.
2597
e885315d
JD
25982011-01-20 Jan Djärv <jan.h.d@swipnet.se>
2599
2600 * unexmacosx.c: Add comment about include order.
2601
bb1c6663
GM
26022011-01-20 Glenn Morris <rgm@gnu.org>
2603
c11136ec
GM
2604 * minibuf.c (syms_of_minibuf) <read-expression-history>:
2605 Give it a doc string.
2606 * globals.h: Add Vread_expression_history.
2607
bb1c6663
GM
2608 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
2609 Give it a doc string.
2610 * globals.h: Add Vkbd_macro_termination_hook.
2611
9aea757b
CY
26122011-01-20 Chong Yidong <cyd@stupidchicken.com>
2613
2614 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
2615
e1ef0dac
PE
26162011-01-19 Paul Eggert <eggert@cs.ucla.edu>
2617
2618 Fix X11 compilation failure.
2619 * globals.h (struct emacs_globals): Document f_Vselection_alist.
2620 * xselect.c (Vselection_alist): Remove declaration, moving its
2621 documentation to globals.h. This fixes a compilation failure
2622 induced by the earlier change to globals.h today.
2623
fb9d0f5a
JD
26242011-01-19 Jan Djärv <jan.h.d@swipnet.se>
2625
8beb828a
JD
2626 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
2627
fb9d0f5a
JD
2628 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
2629 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
2630 (ns_input_spi_name, ns_input_spi_arg)
2631 (ns_alternate_modifier, ns_right_alternate_modifier)
2632 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
2633 (ns_right_control_modifier, ns_function_modifier)
2634 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
2635 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
2636 (x_underline_at_descent_line): Remove declaration.
2637 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
2638
01c35094 2639 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
fb9d0f5a
JD
2640 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
2641 (syms_of_nsselect): Remove & from DEFVAR_LISP.
2642
2643 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
2644 Remove declaration.
2645
2646 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
2647 globals.h.
2648 (syms_of_nsfont): Remove & from DEFVAR_LISP.
2649
2650 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
2651 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
2652 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
2653
2654 * globals.h (struct emacs_globals): Add f_ns_input_file,
2655 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
2656 f_ns_input_color, f_ns_input_text, f_ns_working_text,
2657 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
2658 f_ns_right_alternate_modifier, f_ns_command_modifier,
2659 f_ns_right_command_modifier, f_ns_control_modifier,
2660 f_ns_right_control_modifier, f_ns_function_modifier,
2661 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
2662 f_Vns_version_string, f_Vns_sent_selection_hooks,
2663 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
2664 and corresponding defines.
2665
4e55715e
SS
26662011-01-19 Sam Steingold <sds@gnu.org>
2667
2668 * w32.c (check_windows_init_file): Remove declarations of
2669 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 2670 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 2671
ef79d2fa
TT
26722011-01-19 Tom Tromey <tromey@redhat.com>
2673
2674 * window.c: Fix error introduced by previous patch.
2675
29208e82
TT
26762011-01-18 Tom Tromey <tromey@parfait>
2677
2678 * globals.h: New file.
2679 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
2680 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
2681 (Vwindow_system_version): Remove declaration.
2682 * w32term.h (Vw32_enable_palette)
2683 (Vx_pixel_size_width_font_regexp): Remove declaration.
2684 * w32menu.c (Voverriding_local_map)
2685 (Voverriding_local_map_menu_flag): Remove declaration.
2686 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
2687 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
2688 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
2689 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
2690 (Vw32_phantom_key_code, Vw32_recognize_altgr)
2691 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2692 (w32_use_full_screen_buffer): Remove declaration.
2693 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
2694 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
2695 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
2696 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
2697 (no_redraw_on_reenter, visible_bell): Remove declaration.
2698 * sysdep.c (Vsystem_name): Remove declaration.
2699 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
2700 * menu.h (Vmenu_updating_frame): Remove declaration.
2701 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
2702 Remove declaration.
2703 * lisp.h (Vafter_init_time, Vafter_load_alist)
2704 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
2705 (Vcompletion_regexp_list, Vcurrent_load_list)
2706 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
2707 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
2708 (Vexec_directory, Vexec_path, Vexec_suffixes)
2709 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
2710 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
2711 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
2712 (Vinstallation_directory, Vinvocation_directory)
2713 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
2714 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
2715 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
2716 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
2717 (Vscalable_fonts_allowed, Vselect_active_regions)
2718 (Vshell_file_name, Vstandard_input, Vstandard_output)
2719 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
2720 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
2721 (Vuser_login_name, Vwindow_scroll_functions)
2722 (Vwindow_system_version, Vx_no_window_manager)
2723 (Vx_resource_class, Vx_resource_name, baud_rate)
2724 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
2725 (history_delete_duplicates, inhibit_x_resources)
2726 (last_nonmenu_event, load_in_progress, max_specpdl_size)
2727 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
b286858c
SM
2728 (use_dialog_box, use_file_dialog): Remove declaration.
2729 Include globals.h.
29208e82 2730 * keymap.h (Voverriding_local_map)
b286858c
SM
2731 (Voverriding_local_map_menu_flag, meta_prefix_char):
2732 Remove declaration.
29208e82
TT
2733 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
2734 (Vinput_method_function, Vkey_translation_map)
2735 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
2736 (do_mouse_tracking, extra_keyboard_modifiers)
2737 (num_nonmacro_input_events): Remove declaration.
2738 * intervals.h (Vchar_property_alias_alist)
2739 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
2740 (Vtext_property_default_nonsticky): Remove declaration.
2741 * gtkutil.h (x_gtk_file_dialog_help_text)
2742 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2743 (x_gtk_whole_detached_tool_bar): Remove declaration.
2744 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
2745 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
2746 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
2747 (focus_follows_mouse): Remove declaration.
2748 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
2749 (Vignore_relative_composition, Votf_script_alist)
b286858c
SM
2750 (Vuse_default_ascent, Vvertical_centering_font_regexp):
2751 Remove declaration.
29208e82
TT
2752 * font.h (Vfont_log): Remove declaration.
2753 * dosfns.h (Vdos_display_scancodes, Vdos_version)
2754 (Vdos_windows_version, dos_codepage, dos_country_code)
2755 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
b286858c
SM
2756 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
2757 Remove declaration.
2758 * disptab.h (Vglyph_table, Vstandard_display_table):
2759 Remove declaration.
29208e82
TT
2760 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
2761 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
2762 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
2763 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
2764 (inverse_video, mode_line_in_non_selected_windows)
2765 (tool_bar_button_relief, tool_bar_max_label_size)
2766 (underline_minimum_offset)
2767 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2768 Remove declaration.
2769 * composite.h (Vauto_composition_function)
2770 (Vcomposition_function_table): Remove declaration.
2771 * commands.h (Vexecuting_kbd_macro)
2772 (Vminibuffer_local_completion_map)
2773 (Vminibuffer_local_filename_completion_map)
2774 (Vminibuffer_local_filename_must_match_map)
2775 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2776 (Vminibuffer_local_ns_map, Vthis_command)
2777 (Vunread_command_events, cursor_in_echo_area)
2778 (last_command_event, last_nonmenu_event, unread_command_char):
2779 Remove declaration.
2780 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
2781 (Vdefault_file_name_coding_system)
2782 (Vdefault_process_coding_system, Vfile_name_coding_system)
2783 (Vlast_coding_system_used, Vlocale_coding_system)
2784 (Vselect_safe_coding_system_function)
2785 (Vtranslation_table_for_input, coding_system_require_warning)
2786 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
b286858c
SM
2787 (eol_mnemonic_unix, inherit_process_coding_system):
2788 Remove declaration.
2789 * charset.h (Vcharset_list, Vcurrent_iso639_language):
2790 Remove declaration.
29208e82
TT
2791 * character.h (Vauto_fill_chars, Vchar_direction_table)
2792 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
2793 (Vscript_representative_chars, Vtranslation_table_vector)
2794 (Vunicode_category_table): Remove declaration.
2795 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
2796 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
2797 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
2798 (inhibit_modification_hooks): Remove declaration.
2799 * xterm.c (syms_of_xterm): Update.
2800 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
2801 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
2802 (x_mouse_click_focus_ignore_position)
2803 (x_underline_at_descent_line)
2804 (x_use_underline_position_properties): Remove.
2805 * xsmfns.c (syms_of_xsmfns): Update.
2806 (Vx_session_id, Vx_session_previous_id): Remove.
2807 * xsettings.c (syms_of_xsettings): Update.
2808 (Vxft_settings, use_system_font): Remove.
2809 * xselect.c (syms_of_xselect): Update.
2810 (Vselection_converter_alist, Vx_lost_selection_functions)
2811 (Vx_sent_selection_functions, x_selection_timeout): Remove.
2812 * xfns.c (syms_of_xfns): Update.
2813 (Vgtk_version_string, Vmotif_version_string)
2814 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2815 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2816 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2817 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2818 (Vx_sensitive_text_pointer_shape)
2819 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2820 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2821 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2822 Remove.
2823 * xfaces.c (syms_of_xfaces): Update.
2824 (Vface_default_stipple, Vface_font_rescale_alist)
2825 (Vface_ignored_fonts, Vface_new_frame_defaults)
2826 (Vface_remapping_alist, Vfont_list_limit)
2827 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2828 * xdisp.c (syms_of_xdisp): Update.
2829 (Vauto_resize_tool_bars, Vblink_cursor_alist)
2830 (Vdisplay_pixels_per_inch, Vfontification_functions)
2831 (Vframe_title_format, Vglobal_mode_string)
2832 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2833 (Vicon_title_format, Vinhibit_redisplay)
2834 (Vline_number_display_limit, Vline_prefix)
2835 (Vmax_mini_window_height, Vmenu_bar_update_hook)
2836 (Vmenu_updating_frame, Vmessage_log_max)
2837 (Vmouse_autoselect_window, Vnobreak_char_display)
2838 (Voverlay_arrow_position, Voverlay_arrow_string)
2839 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2840 (Vresize_mini_windows, Vshow_trailing_whitespace)
2841 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2842 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2843 (Vwindow_scroll_functions, Vwindow_size_change_functions)
2844 (Vwindow_text_change_functions, Vwrap_prefix)
2845 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2846 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2847 (highlight_nonselected_windows, hscroll_margin)
2848 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2849 (inhibit_menubar_update, inhibit_try_cursor_movement)
2850 (inhibit_try_window_id, inhibit_try_window_reusing)
2851 (line_number_display_limit_width)
2852 (make_cursor_line_fully_visible_p, message_truncate_lines)
2853 (mode_line_inverse_video, multiple_frames, overline_margin)
2854 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2855 (tool_bar_max_label_size, underline_minimum_offset)
2856 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2857 Remove.
2858 * window.c (syms_of_window): Update.
2859 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2860 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2861 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2862 (Vwindow_point_insertion_type, auto_window_vscroll_p)
2863 (mode_line_in_non_selected_windows, next_screen_context_lines)
2864 (window_min_height, window_min_width): Remove.
2865 (scroll_margin): Remove declaration.
2866 * w32term.c (syms_of_w32term): Update.
2867 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2868 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2869 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2870 (w32_use_visible_system_caret, x_underline_at_descent_line)
2871 (x_use_underline_position_properties): Remove.
2872 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2873 Remove declaration.
2874 * w32select.c (syms_of_w32select): Update.
2875 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2876 * w32proc.c (syms_of_ntproc): Update.
2877 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2878 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2879 (Vw32_start_process_inherit_error_mode)
2880 (Vw32_start_process_share_console)
2881 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2882 (Vsystem_name): Remove declaration.
2883 * w32font.c (syms_of_w32font): Update.
2884 (Vw32_charset_info_alist): Remove.
2885 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2886 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2887 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2888 (Vw32_enable_palette, Vw32_lwindow_modifier)
2889 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2890 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2891 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2892 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2893 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2894 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2895 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2896 (Vx_sensitive_text_pointer_shape)
2897 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2898 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2899 (w32_mouse_move_interval)
2900 (w32_pass_extra_mouse_buttons_to_system)
2901 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2902 (w32_strict_fontnames, w32_strict_painting): Remove.
2903 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2904 (Vw32_recognize_altgr, Vwindow_system_version)
b286858c
SM
2905 (w32_num_mouse_buttons, w32_use_visible_system_caret):
2906 Remove declaration.
29208e82
TT
2907 * w32console.c (syms_of_ntterm): Update.
2908 (w32_use_full_screen_buffer): Remove.
2909 (Vtty_defined_color_alist): Remove declaration.
2910 * w16select.c (syms_of_win16select): Update.
2911 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2912 * undo.c (syms_of_undo): Update.
2913 (Vundo_outer_limit, Vundo_outer_limit_function)
2914 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
2915 Remove.
2916 * textprop.c (syms_of_textprop): Update.
2917 (Vchar_property_alias_alist, Vdefault_text_properties)
2918 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
2919 Remove.
2920 * terminal.c (syms_of_terminal): Update.
2921 (Vdelete_terminal_functions, Vring_bell_function): Remove.
2922 * term.c (syms_of_term): Update.
2923 (Vresume_tty_functions, Vsuspend_tty_functions)
2924 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2925 Remove.
2926 * syntax.c (syms_of_syntax): Update.
2927 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2928 (open_paren_in_column_0_is_defun_start)
2929 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2930 (words_include_escapes): Remove.
2931 * search.c (syms_of_search): Update.
2932 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2933 * process.c (syms_of_process): Update.
2934 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2935 (delete_exited_processes): Remove.
2936 * print.c (syms_of_print): Update.
2937 (Vfloat_output_format, Vprint_charset_text_property)
2938 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2939 (Vprint_length, Vprint_level, Vprint_number_table)
2940 (Vstandard_output, print_escape_multibyte)
2941 (print_escape_newlines, print_escape_nonascii, print_quoted):
2942 Remove.
2943 * msdos.c (syms_of_msdos): Update.
2944 (Vdos_unsupported_char_glyph): Remove.
2945 (unibyte_display_via_language_environment): Remove declaration.
2946 * minibuf.c (syms_of_minibuf): Update.
2947 (Vcompletion_regexp_list, Vhistory_add_new_input)
2948 (Vhistory_length, Vminibuffer_completing_file_name)
2949 (Vminibuffer_completion_confirm)
2950 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
2951 (Vminibuffer_exit_hook, Vminibuffer_help_form)
2952 (Vminibuffer_history_position, Vminibuffer_history_variable)
2953 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
2954 (Vread_buffer_function, Vread_expression_map)
2955 (completion_ignore_case, enable_recursive_minibuffers)
2956 (history_delete_duplicates, minibuffer_allow_text_properties)
2957 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
2958 Remove.
2959 * marker.c (syms_of_marker): Update.
2960 (byte_debug_flag): Remove.
2961 * macros.c (syms_of_macros): Update.
2962 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
2963 * lread.c (syms_of_lread): Update.
2964 (Vafter_load_alist, Vbyte_boolean_vars)
2965 (Vbytecomp_version_regexp, Vcurrent_load_list)
2966 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
2967 (Vload_history, Vload_path, Vload_read_function)
2968 (Vload_source_file_function, Vload_suffixes, Vobarray)
2969 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
2970 (Vread_symbol_positions_list, Vread_with_symbol_positions)
2971 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
2972 (force_load_messages, load_convert_to_unibyte)
2973 (load_dangerous_libraries, load_force_doc_strings)
2974 (load_in_progress): Remove.
2975 * keymap.c (syms_of_keymap): Update.
2976 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
2977 (Vminibuffer_local_completion_map)
2978 (Vminibuffer_local_filename_completion_map)
2979 (Vminibuffer_local_filename_must_match_map)
2980 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2981 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
2982 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
2983 Remove.
2984 * keyboard.c (syms_of_keyboard): Update.
2985 (Vauto_save_timeout, Vcommand_error_function)
2986 (Vcommand_hook_internal, Vdeactivate_mark)
2987 (Vdeferred_action_function, Vdeferred_action_list)
2988 (Vdisable_point_adjustment, Vdouble_click_time)
2989 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
2990 (Vfunction_key_map, Vglobal_disable_point_adjustment)
2991 (Vhelp_char, Vhelp_event_list, Vhelp_form)
2992 (Vinput_method_function, Vinput_method_previous_message)
2993 (Vkey_translation_map, Vlast_event_frame)
2994 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
2995 (Vminibuffer_message_timeout, Voverriding_local_map)
2996 (Voverriding_local_map_menu_flag, Vpost_command_hook)
2997 (Vpre_command_hook, Vprefix_help_command)
2998 (Vsaved_region_selection, Vselect_active_regions)
2999 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
3000 (Vthis_command, Vthis_command_keys_shift_translated)
3001 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
3002 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
3003 (Vtty_erase_char, Vunread_command_events)
3004 (Vunread_input_method_events, Vunread_post_input_method_events)
3005 (auto_save_interval, cannot_suspend, do_mouse_tracking)
3006 (double_click_fuzz, extra_keyboard_modifiers)
3007 (inhibit_local_menu_bar_menus, last_command_event)
3008 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
3009 (menu_prompting, meta_prefix_char, num_input_keys)
3010 (num_nonmacro_input_events, polling_period, unread_command_char):
3011 Remove.
3012 * insdel.c (syms_of_insdel): Update.
3013 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
3014 * indent.c (syms_of_indent): Update.
3015 (indent_tabs_mode): Remove.
3016 * image.c (syms_of_image): Update.
3017 (Vimage_cache_eviction_delay, Vimage_types)
3018 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
3019 (cross_disabled_images): Remove.
3020 * fringe.c (syms_of_fringe): Update.
3021 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
3022 * frame.c (syms_of_frame): Update.
3023 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
3024 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
3025 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
3026 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
3027 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
3028 Remove.
3029 * fontset.c (syms_of_fontset): Update.
3030 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
3031 (Vfontset_alias_alist, Vignore_relative_composition)
3032 (Votf_script_alist, Vuse_default_ascent)
3033 (Vvertical_centering_font_regexp): Remove.
3034 * font.c (syms_of_font): Update.
3035 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
3036 (Vfont_weight_table, Vfont_width_table): Remove.
3037 * fns.c (syms_of_fns): Update.
3038 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
3039 * filelock.c (syms_of_filelock): Update.
3040 (Vtemporary_file_directory): Remove.
3041 * fileio.c (syms_of_fileio): Update.
3042 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
3043 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
3044 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
3045 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
3046 (Vinhibit_file_name_operation, Vset_auto_coding_function)
3047 (Vwrite_region_annotate_functions)
3048 (Vwrite_region_annotations_so_far)
3049 (Vwrite_region_post_annotation_function)
3050 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
3051 (Vw32_get_true_file_attributes): Remove declaration.
3052 * eval.c (syms_of_eval): Update.
3053 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
3054 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
3055 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
3056 (debug_on_next_call, debug_on_quit, debugger_may_continue)
3057 (max_lisp_eval_depth, max_specpdl_size): Remove.
3058 * emacs.c (syms_of_emacs): Update.
3059 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
3060 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
3061 (Vinstallation_directory, Vinvocation_directory)
3062 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
3063 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
3064 (Vsystem_configuration, Vsystem_configuration_options)
3065 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
3066 (inhibit_x_resources, noninteractive1): Remove.
3067 * editfns.c (syms_of_editfns): Update.
3068 (Vbuffer_access_fontified_property)
3069 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
3070 (Voperating_system_release, Vsystem_name, Vuser_full_name)
3071 (Vuser_login_name, Vuser_real_login_name): Remove.
3072 * dosfns.c (syms_of_dosfns): Update.
3073 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
3074 (dos_codepage, dos_country_code, dos_decimal_point)
3075 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
3076 (dos_super_key, dos_timezone_offset): Remove.
3077 * doc.c (syms_of_doc): Update.
3078 (Vbuild_files, Vdoc_file_name): Remove.
3079 * dispnew.c (syms_of_display): Update.
3080 (Vglyph_table, Vinitial_window_system)
3081 (Vredisplay_preemption_period, Vstandard_display_table)
3082 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
3083 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
3084 * dired.c (syms_of_dired): Update.
3085 (Vcompletion_ignored_extensions): Remove.
3086 (Vw32_get_true_file_attributes): Remove declaration.
3087 * dbusbind.c (syms_of_dbusbind): Update.
3088 (Vdbus_debug, Vdbus_registered_buses)
3089 (Vdbus_registered_objects_table): Remove.
3090 * data.c (syms_of_data): Update.
3091 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
3092 * composite.c (syms_of_composite): Update.
3093 (Vauto_composition_function, Vauto_composition_mode)
3094 (Vcompose_chars_after_function, Vcomposition_function_table):
3095 Remove.
3096 * coding.c (syms_of_coding): Update.
3097 (Vcharset_revision_table, Vcoding_category_list)
3098 (Vcoding_system_alist, Vcoding_system_for_read)
3099 (Vcoding_system_for_write, Vcoding_system_list)
3100 (Vdefault_process_coding_system, Venable_character_translation)
3101 (Vfile_coding_system_alist, Vlast_code_conversion_error)
3102 (Vlast_coding_system_used, Vlatin_extra_code_table)
3103 (Vlocale_coding_system, Vnetwork_coding_system_alist)
3104 (Vprocess_coding_system_alist)
3105 (Vselect_safe_coding_system_function)
3106 (Vstandard_translation_table_for_decode)
3107 (Vstandard_translation_table_for_encode)
3108 (Vtranslation_table_for_input, coding_system_require_warning)
3109 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
3110 (eol_mnemonic_unix, inherit_process_coding_system)
3111 (inhibit_eol_conversion, inhibit_iso_escape_detection)
3112 (inhibit_null_byte_detection): Remove.
3113 * cmds.c (syms_of_cmds): Update.
3114 (Vpost_self_insert_hook): Remove.
3115 * charset.c (syms_of_charset): Update.
3116 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
3117 (inhibit_load_charset_map): Remove.
3118 * character.c (syms_of_character): Update.
3119 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
3120 (Vchar_width_table, Vprintable_chars)
3121 (Vscript_representative_chars, Vtranslation_table_vector)
3122 (Vunicode_category_table): Remove.
3123 * ccl.c (syms_of_ccl): Update.
3124 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
3125 (Vtranslation_hash_table_vector): Remove.
3126 * category.c (syms_of_category): Update.
3127 (Vword_combining_categories, Vword_separating_categories): Remove.
3128 * callproc.c (syms_of_callproc): Update.
3129 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
3130 (Vexec_directory, Vexec_path, Vexec_suffixes)
3131 (Vinitial_environment, Vprocess_environment)
3132 (Vshared_game_score_directory, Vshell_file_name): Remove.
3133 * callint.c (syms_of_callint): Update.
3134 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
3135 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
3136 * bytecode.c (syms_of_bytecode): Update.
3137 (Vbyte_code_meter, byte_metering_on): Remove.
3138 * buffer.c (syms_of_buffer): Update.
3139 (Vafter_change_functions, Vbefore_change_functions)
3140 (Vchange_major_mode_hook, Vfirst_change_hook)
3141 (Vinhibit_read_only, Vkill_buffer_query_functions)
3142 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
3143 * alloc.c (syms_of_alloc): Update.
3144 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
3145 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
3146 (cons_cells_consed, floats_consed, garbage_collection_messages)
3147 (gc_cons_threshold, gcs_done, intervals_consed)
3148 (misc_objects_consed, pure_bytes_used, string_chars_consed)
3149 (strings_consed, symbols_consed, vector_cells_consed): Remove.
3150
3151 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
3152 (DEFVAR_INT): Assume global is in `globals'.
3153 * alloc.c (globals): Define.
3154
448c0820
TT
31552011-01-18 Tom Tromey <tromey@redhat.com>
3156
3157 * image.c (Vimagemagick_render_type): Remove redundant
3158 definition.
3159
8442d95d
TT
31602011-01-18 Tom Tromey <tromey@redhat.com>
3161
3162 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
3163 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
3164 (redisplay_window): Update.
3165 (syms_of_xdisp): Update.
3166
cab0ba98
TT
31672011-01-18 Tom Tromey <tromey@redhat.com>
3168
3169 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
3170 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
3171 Declare.
3172 * gtkutil.c (xg_uses_old_file_dialog):
3173 (xg_get_file_with_chooser):
3174 (xg_tool_bar_detach_callback): Don't redeclare globals.
3175
422745d0
TT
31762011-01-18 Tom Tromey <tromey@redhat.com>
3177
3178 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
3179 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
3180
7cae64b4
PE
31812011-01-18 Paul Eggert <eggert@cs.ucla.edu>
3182
3183 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
3184 defined __GNUC__. ../configure now checks for this GCC feature,
3185 which is now also supported by IBM and Oracle compilers.
3186 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
3187 since Solaris malloc returns mult-of-8.
3188
a9faac5c 31892011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
3190
3191 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
3192
a3e44e79 31932011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 3194
6e8e6bf2
PE
3195 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
3196 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
3197 * data.c (Fnumber_to_string): Use it.
3198 * print.c (float_to_string, print_object): Likewise.
3199
4004364e
PE
3200 Include <unistd.h> unilaterally.
3201 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
3202 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
3203 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
3204 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
3205 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
3206 * xterm.c:
3207 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
3208 unistd.h is always present now, possibly supplied by gnulib.
3209
e84aba69
PE
3210 * mktime.c: Remove; moving to ../lib.
3211
1e11dbe3
PE
3212 Use gnulib's mktime module.
3213 * deps.mk (mktime.o): Remove rule.
3214
fa2c4f56
PE
3215 Use gnulib's ftoastr module.
3216 * print.c: Include ftoastr.h.
3217 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
3218 Remove; no longer needed.
3219 (float_to_string): Use dtoastr rather than rolling our own code,
3220 which had an off-by-one bug on non-IEEE hosts.
3221
9a514d4a
PE
3222 Automate syncing from gnulib.
3223 * Makefile.in (lib): New macro.
3224 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
3225 ($(lib)/libgnu.a): New rule.
3226 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
3227
717c30e0
PE
3228 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
3229 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
3230 so change the type of 'ign' to unsigned int from int.
3231
8865d794
PE
3232 * regex.c (analyse_first): Remove unreachable 'continue' statement.
3233
4ef36a7b
PE
3234 * xterm.h (struct x_display_info): Remove stray semicolon.
3235 The extra semicolon didn't conform to the C standard.
3236 Problem reported by Sun cc.
3237
6df4097e
PE
3238 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
3239 These changes make compilation easier to follow with Sun cc.
3240 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
3241 EMACS_INT values without provoking overflow diagnostics.
3242 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
3243 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
3244 diagnostic with signed left shift.
9fba3563 3245
410ed5c3
PE
3246 * fileio.c (make_temp_name): Remove unreachable code.
3247
97be3ce3
PE
3248 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
3249 Previously it was marked by preceding it with "return;", but
3250 Sun cc complains about this.
3251
9fba3563
PE
3252 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
3253 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
3254 which fixed Bug#2370. Caught by Sun cc.
3255
6dc1d2d3
MR
32562011-01-15 Martin Rudalics <rudalics@gmx.at>
3257
3258 * window.c (inhibit_point_swap): New variable.
3259 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
3260 point this time.
3261 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
3262 of setting selected_window to nil (Bug#7728).
3263
f853f599
TH
32642011-01-11 Tassilo Horn <tassilo@member.fsf.org>
3265
8dabbfd6
SM
3266 * image.c (imagemagick_load_image, Finit_image_library):
3267 Free intermediate image after creating a MagickWand from it.
3268 Terminate MagickWand environment after image loading.
f853f599 3269
2bc92a93
MA
32702011-01-10 Michael Albinus <michael.albinus@gmx.de>
3271
3272 * dbusbind.c (Fdbus_register_service): Raise an error in case of
3273 unexpected return values.
3274 (Fdbus_register_method): Remove connection initialization.
3275
32762011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
3277
3278 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
3279 used by Fdbus_register_service.
3280 (QCdbus_request_name_replace_existing): Likewise.
3281 (QCdbus_request_name_do_not_queue): Likewise.
3282 (QCdbus_request_name_reply_primary_owner): Likewise.
3283 (QCdbus_request_name_reply_in_queue): Likewise.
3284 (QCdbus_request_name_reply_exists): Likewise.
3285 (QCdbus_request_name_reply_already_owner): Likewise.
3286 (Fdbus_register_service): New function.
3287 (Fdbus_register_method): Use Fdbus_register_service to do the name
3288 registration.
3289 (syms_of_dbusbind): Add symbols dbus-register-service,
3290 :allow-replacement, :replace-existing, :do-not-queue,
3291 :primary-owner, :existing, :in-queue and :already-owner.
3292
21a76236
CY
32932011-01-09 Chong Yidong <cyd@stupidchicken.com>
3294
3295 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
3296 when removing extra buttons.
3297
3d91e302
CY
32982011-01-08 Chong Yidong <cyd@stupidchicken.com>
3299
3300 * fns.c (Fyes_or_no_p): Doc fix.
3301
0d23ffb5
AS
33022011-01-08 Andreas Schwab <schwab@linux-m68k.org>
3303
3304 * fns.c (Fyes_or_no_p): Add usage.
3305
9dc3366b
GM
33062011-01-08 Glenn Morris <rgm@gnu.org>
3307
d0981f82
GM
3308 * makefile.w32-in ($(EMACS)):
3309 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
3310
9dc3366b
GM
3311 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
3312 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
3313
466cbae9
AS
33142011-01-07 Andreas Schwab <schwab@linux-m68k.org>
3315
3316 * image.c (imagemagick_load_image): Fix some resource leaks and
3317 error handling.
3318
8c51d2a2
CY
33192011-01-07 Chong Yidong <cyd@stupidchicken.com>
3320
3321 * fns.c (Fyes_or_no_p): Accept format string args.
3322
66b7b0fe
GM
33232011-01-07 Glenn Morris <rgm@gnu.org>
3324
3325 * emacs.c (no_site_lisp): New int.
3326 (USAGE1): Add --no-site-lisp, mention -Q uses it.
3327 (main): Set no_site_lisp.
3328 (standard_args): Add --no-site-lisp.
3329 * lisp.h (no_site_lisp): New int.
3330 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
3331 directories to Vload_path.
3332
2018939f
AS
33332011-01-05 Andreas Schwab <schwab@linux-m68k.org>
3334
3335 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
3336
6ed843e5
MA
33372011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
3338
8dabbfd6 3339 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
3340 dont_register_service. Updated docstring accordingly.
3341
3f9b7090
GM
33422011-01-04 Glenn Morris <rgm@gnu.org>
3343
3344 * emacs.c (emacs_copyright): Update short copyright year to 2011.
3345
d82bce4a
EZ
33462011-01-03 Eli Zaretskii <eliz@gnu.org>
3347
3348 * image.c (png_jmpbuf): Remove definition.
3349 (my_png_error, png_load): Don't use png_jmpbuf.
3350
7c420169
CY
33512011-01-02 Eli Zaretskii <eliz@gnu.org>
3352
3353 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
3354
33552011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
3356
3357 * image.c <Qlibpng_version>: New variable.
3358 (syms_of_image): Intern and staticpro it. Set its value to the
3359 version of PNG library we were compiled with.
3360 (my_png_error, png_load): Avoid GCC warnings about direct access
3361 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
3362 (png_jmpbuf): New macro.
3363 (my_png_error, png_load): Use it instead of #ifdef'ing according
3364 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 3365
7c420169 33662011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
3367
3368 * .gdbinit (xgetptr): Fix the union+lsb case.
3369 (xbacktrace): Fix the union case.
3370
7c420169 33712011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
3372
3373 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
3374 different from selected-window's.
3375
7c420169 33762011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 3377
71fe378d
EZ
3378 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
3379 equivalent of a menu item when the key sequence is given by the
3380 `:keys' attribute. (Bug#7662)
3381
2e4ab211
EZ
3382 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
3383 the basic faces are supported.
3384
7c420169 33852011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
3386
3387 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
3388
7c420169 33892011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
3390
3391 * xdisp.c (Fformat_mode_line): Fix last change.
3392
7c420169 33932011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
3394
3395 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
3396 faces (Bug#7587).
3397
7c420169 33982011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
3399
3400 * fileio.c (Fexpand_file_name): One more doc fix.
3401
3afff00e
CY
34022011-01-01 Chong Yidong <cyd@stupidchicken.com>
3403
3404 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
3405 image or label in the container.
3406 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
3407 (xg_show_toolbar_item): Function deleted.
3408 (xg_tool_item_stale_p): New function.
3409 (update_frame_tool_bar): Calculate tool-bar style once per call.
3410 Instead of hiding text labels, omit them. Don't use
3411 xg_show_toolbar_item; create new GtkToolItems from scratch if
3412 necessary, instead of trying to re-use them. This avoids an
3413 annoying animation when changing tool-bars.
3414
aeb7e951
JD
34152010-12-31 Jan Djärv <jan.h.d@swipnet.se>
3416
3417 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
3418 title and buffer filename only for RepresentedFilename.
3419 Handle bad UTF-8 in buffer name (Bug#7517).
3420
5bbb4727
JD
34212010-12-30 Jan Djärv <jan.h.d@swipnet.se>
3422
3423 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
3424
3425 * nsfns.m (ns_set_name_iconic): Remove.
3426 (ns_set_name_internal): New function (Bug#7517).
3427 (Vicon_title_format): Extern declare.
3428 (ns_set_name): Call ns_set_name_internal.
3429 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
3430 (x_implicitly_set_name): Ditto.
3431 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
3432 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
3433
f1aab3ff
ŠN
34342010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
3435
3436 * window.c (syms_of_window): Add missing defsubr for
3437 window-use-time.
3438
365525b3
AS
34392010-12-28 Andreas Schwab <schwab@linux-m68k.org>
3440
3441 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
3442 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
3443
59fc5cf9
AS
34442010-12-27 Andreas Schwab <schwab@linux-m68k.org>
3445
2f7c71a1
AS
3446 * buffer.c: Remove unused declarations.
3447 * buffer.h: Likewise.
3448 * charset.h: Likewise.
3449 * composite.h: Likewise.
3450 * dispextern.h: Likewise.
3451 * dispnew.c: Likewise.
3452 * font.h: Likewise.
3453 * fontset.c: Likewise.
3454 * fontset.h: Likewise.
3455 * intervals.h: Likewise.
3456 * keymap.h: Likewise.
3457 * lisp.h: Likewise.
3458 * syntax.c: Likewise.
3459 * syntax.h: Likewise.
3460 * termhooks.h: Likewise.
3461 * window.h: Likewise.
3462 * xsettings.h: Likewise.
3463 * xterm.c: Likewise.
3464 * xterm.h: Likewise.
3465
3466 * chartab.c (sub_char_table_ref): Make static.
3467 * dispnew.c (line_hash_code, required_matrix_height)
3468 (required_matrix_width): Likewise.
3469 * eval.c (interactive_p, apply_lambda): Likewise.
3470 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
3471 Likewise.
3472 * font.c (QCadstyle, QCregistry, font_make_spec)
3473 (font_parse_fcname, font_encode_char, font_at): Likewise.
3474 * frame.c (x_frame_get_arg): Likewise.
3475 * keymap.c (get_keyelt): Likewise.
3476 * lread.c (read_filtered_event): Likewise.
3477 * print.c (write_string_1): Likewise.
3478 * window.c (delete_window, window_height, window_width)
3479 (foreach_window): Likewise.
3480 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
3481 * xterm.c (x_scroll_bar_clear, xembed_set_info)
3482 (xembed_send_message): Likewise.
3483
3484 * eval.c (run_hook_list_with_args): Delete.
3485 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
3486 * terminal.c (get_terminal_param): Likewise.
3487 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
3488
c4b607ed
AS
3489 * scroll.c: Fix comment.
3490
59fc5cf9
AS
3491 * dispnew.c (add_window_display_history)
3492 (add_frame_display_history, glyph_row_slice_p)
3493 (find_glyph_row_slice, flush_stdout)
3494 (check_matrix_pointer_lossage, matrix_row)
3495 (check_matrix_invariants, check_window_matrix_pointers)
3496 (check_matrix_pointers, window_to_frame_vpos)
3497 (window_to_frame_hpos): Prototize.
3498 * textprop.c (erase_properties): Likewise.
3499
a65b85b5
SM
35002010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
3501
17870c01
SM
3502 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
3503 (print_preprocess): Fix handling of uninterned symbols in last change.
3504
a65b85b5
SM
3505 * print.c (print, print_preprocess, print_object): Use a hash table
3506 rather than a linear table for Vprint_number_table.
3507
f13183cf
CY
35082010-12-20 Chong Yidong <cyd@stupidchicken.com>
3509
3510 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
3511
94975270
CY
35122010-12-20 Chong Yidong <cyd@stupidchicken.com>
3513
3514 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
3515 (parse_tool_bar_item): Use it to obtain image separators for
3516 displays not using native tool-bar separators.
3517
3518 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
3519 specially, since this is now done in parse_tool_bar_item.
3520
ef1b0ba7
SM
35212010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
3522
3523 Minor clean up to silence some gcc warnings.
3524 * window.c (Fset_window_buffer):
3525 * xterm.c (x_set_frame_alpha): Restructure code to silence
3526 compiler warning.
3527 (handle_one_xevent): Remove unused var `p'.
3528 (do_ewmh_fullscreen): Remove unused var `lval'.
3529 (xembed_set_info): Remove unused var `atom'.
3530 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
3531 compiler warning.
3532 * fontset.c (fontset_id_valid_p, dump_fontset):
3533 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
3534 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
3535 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
3536 label only when it's used.
3537 * image.c (x_create_bitmap_from_xpm_data):
3538 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
3539 its callers.
3540 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
3541 `consumed_chars'.
3542 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
3543 (decode_coding_emacs_mule): Remove unused label `retry'.
3544 (detect_eol): Add parens to silence compiler warning.
3545 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
3546 it's used to silence the compiler.
3547 (make_number): Modernize k&r declaration.
3548 (mark_char_table): Add parens to silence compiler warning.
3549
4039c786
CY
35502010-12-17 Chong Yidong <cyd@stupidchicken.com>
3551
3552 * keyboard.c (parse_tool_bar_item): Allow menu separators in
3553 tool-bar maps.
3554 (menu_separator_name_p): New function, from gtkutil.c.
3555 (separator_names): Move from gtkutil.c.
3556
3557 * keyboard.h (menu_separator_name_p): Add prototype.
3558
3559 * gtkutil.c (XG_BIN_CHILD): New macro.
3560 (xg_get_menu_item_label, xg_update_menubar)
3561 (xg_update_menu_item, xg_tool_bar_menu_proxy)
3562 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
3563 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
3564 (create_menus, xg_update_submenu, update_frame_tool_bar):
3565 Use menu_separator_name_p.
4039c786
CY
3566
3567 * nsmenu.m (name_is_separator): Function deleted.
3568 (addItemWithWidgetValue): Use menu_separator_name_p.
3569
3570 * w32menu.c (name_is_separator): Function deleted.
3571 (add_menu_item): Use menu_separator_name_p.
3572
aa936e8e
JD
35732010-12-16 Jan Djärv <jan.h.d@swipnet.se>
3574
3575 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
3576 same as the background, use the face forground as cursor.
3577
f49d1f52 35782010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
3579
3580 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
3581
f49d1f52 35822010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 3583
f0559026
EZ
3584 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
3585 (face_before_or_after_it_pos, next_element_from_string)
3586 (next_element_from_c_string, produce_stretch_glyph): Remove unused
3587 calculations of maximum string length before calling
3588 string_char_and_length and STRING_CHAR_AND_LENGTH.
3589 (string_char_and_length): Update commentary: MAXLEN is no longer
3590 needed.
3591
f49d1f52 35922010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
3593
3594 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
3595 as (Qsave_session arg).
3596
3597 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
3598 (smc_die_CB): Make an event with arg Qt.
3599 (Fhandle_save_session): If event has Qt as argument,
3600 call Fkill_emacs (Bug#7552).
3601
f49d1f52
SM
36022010-12-13 Chong Yidong <cyd@stupidchicken.com>
3603
3604 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
3605
36062010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
3607
3608 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
3609
f49d1f52 36102010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
3611
3612 * dispextern.h (struct it): New member overlay_strings_charpos.
3613
3614 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
3615 charpos where we computed n_overlay_strings.
3616 (next_overlay_string): Load overlay strings at recorded position,
3617 which may not be the same as the iterator's charpos (Bug#7016).
3618
f49d1f52 36192010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
3620
3621 * xdisp.c (try_scrolling): Avoid infloop if the first line is
3622 obscured due to a vscroll (Bug#7537).
3623
f49d1f52 36242010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
3625
3626 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3627
3628 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
3629 Use FRAME_TOOLBAR_HEIGHT.
3630 (x_set_offset): Handle XNegative and YNegative in
3631 f->size_hint_flags (Bug#7510).
3632
39321b94
EZ
36332010-12-11 Eli Zaretskii <eliz@gnu.org>
3634
3635 * w32fns.c (Fx_show_tip): Call try_window with last argument
3636 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
3637 solved. Round up the tip height to an integral multiple of the
3638 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
3639 (Bug#7398)
3640
ec1b9b17
GM
36412010-12-08 Glenn Morris <rgm@gnu.org>
3642
3643 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
3644
3c2317e8
LMI
36452010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
3646
3647 * xml.c (parse_region): Ignore blank HTML nodes.
3648 (make_dom): Return CDATA sections (like <style>foo</style>) as
3649 text nodes.
3650
bba3e508
SM
36512010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
3652
3653 * lread.c (read1): Allow newstyle unquote outside of backquote.
3654 Disallow old-style backquotes inside new-style backquotes.
3655 Don't count unquotes to figure out when we're "syntactically inside
3656 but semantically outside of a backquote" any more.
3657 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
3658 to all contexts.
3659
d23d8608
CY
36602010-12-05 Chong Yidong <cyd@stupidchicken.com>
3661
3662 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
3663
d6a003a8
AS
36642010-12-04 Andreas Schwab <schwab@linux-m68k.org>
3665
3666 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
3667 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
3668 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
3669
201ef780
AS
36702010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3671
3672 * lisp.h (union Lisp_Object): Explicitly declare signedness of
3673 bit-field.
3674 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
3675 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
3676 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3677 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3678 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
3679 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
3680 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
3681 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
3682 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
3683 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
3684 * m/hp800.h: Remove file.
3685 * m/mips.h: Remove file.
3686
146490c3
JD
36872010-12-03 Jan Djärv <jan.h.d@swipnet.se>
3688
3689 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
3690 with cursor color and draw a rectangle around the image (Bug#7412).
3691
babc8f0d
AS
36922010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3693
3694 * frame.c (x_set_font): Remove unused variable.
3695
9583e9a0
JD
36962010-12-02 Jan Djärv <jan.h.d@swipnet.se>
3697
dd723bbd
JD
3698 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
3699
9583e9a0
JD
3700 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
3701 drawing text under filled box cursor (Bug#7479).
3702
07976ae3 37032010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
3704
3705 * charset.c (emacs_mule_charset): Make it an array of charset ID;
3706 i.e. integer.
bba3e508 3707 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
3708 (init_charset_once): Likewise.
3709
bba3e508
SM
3710 * charset.h (emacs_mule_charset): Adjust the prototype.
3711 Delete duplicated extern.
b84ae584
KH
3712
3713 * coding.c (emacs_mule_char): Adjust for the change of
3714 emacs_mule_charset.
3715
3716 * lread.c (read_emacs_mule_char): Adjust for the change of
3717 emacs_mule_charset.
3718
07976ae3 37192010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
3720
3721 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3722 of w32api >= 3.15. (Bug#6989) (Bug#7452)
3723
07976ae3 37242010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
3725
3726 * alloc.c (mark_terminals): Ensure that the image cache is marked
3727 even if the terminal object was marked earlier (Bug#6301).
3728
35f1de62
CY
37292010-11-21 Chong Yidong <cyd@stupidchicken.com>
3730
3731 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
3732
07976ae3 37332010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
3734
3735 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
3736 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 3737 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 3738
8547874a
EZ
37392010-11-26 Eli Zaretskii <eliz@gnu.org>
3740
228482b2
EZ
3741 * xdisp.c (set_message_1): Force paragraph direction in echo area
3742 be left-to-right.
3743
8547874a
EZ
3744 * keyboard.c (make_lispy_position): Put a meaningful value in yret
3745 when the click is on the header or mode line.
3746
1e2dddbe
EZ
37472010-11-25 Eli Zaretskii <eliz@gnu.org>
3748
3749 * xdisp.c (set_cursor_from_row): Don't forget to consider the
3750 `cursor' property of the first character in overlay strings.
12365240 3751 (Bug#7474) (Bug#7481)
1e2dddbe 3752
50795d1f
JD
37532010-11-24 Jan Djärv <jan.h.d@swipnet.se>
3754
3755 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
3756 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
3757 (keyDown): Parse left and right keys separately (Bug#7458).
3758 Compare Left key masks exactly (Bug#7458).
50795d1f 3759
f8ab8c1f
EZ
37602010-11-23 Eli Zaretskii <eliz@gnu.org>
3761
3762 * intervals.c (temp_set_point_both): Define before calling, to
3763 avoid GCC warnings.
3764
2e8a4797
DN
37652010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
3766
b29116ef
DN
3767 * nsmenu.m: Use #include <config.h> instead of "config.h".
3768
b932f8b1 3769 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 3770 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
3771 Move declarations ...
3772 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 3773 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
3774 ... here.
3775
42c8bc9b
DN
3776 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
3777 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
3778 (gdb_pvec_type):
3779 * print.c (print_output_debug_flag):
3780 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
3781 (safe_debug_print): New declaration.
3782
2e8a4797
DN
3783 * xterm.c:
3784 * systty.h:
3785 * sound.c: Include <sys/ioctl.h> unconditionally.
3786
b609f591
YM
37872010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3788
3789 * alloc.c (mark_maybe_object): Return early if given a Lisp
3790 integer (Bug#6301).
3791
731e263a
KB
37922010-11-21 Ken Brown <kbrown@cornell.edu>
3793
3794 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
3795
b7d1e144
JD
37962010-11-21 Jan Djärv <jan.h.d@swipnet.se>
3797
3798 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
3799 Define (Bug#7458).
3800 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
3801 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
3802 NSRightControlKeyMask also (Bug#7458).
3803 (keyDown): Ditto (Bug#7458).
3804 (syms_of_nsterm): Defvar ns-right-command-modifier and
3805 ns-right-control-modifier (Bug#7458).
3806
b7982059
DN
38072010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3808
bee3419f
DN
3809 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3810 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3811
b7982059
DN
3812 * intervals.h (temp_set_point, temp_set_point_both):
3813 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3814
01664ed1
KB
38152010-11-20 Ken Brown <kbrown@cornell.edu>
3816
3817 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3818
7c2d713b
EZ
38192010-11-20 Eli Zaretskii <eliz@gnu.org>
3820
3821 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3822 \xNNNNNN for hex-code display of glyphless characters.
3823
d2bd5189
JD
38242010-11-20 Jan Djärv <jan.h.d@swipnet.se>
3825
3826 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3827 Set important to ! vert_only.
3828 (xg_show_toolbar_item): Don't show label horizontally if
3829 tool item isn't important.
3830 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3831 xg_make_tool_item, or update important on existing tool item.
3832
3833 * keyboard.c (QCvert_only): New variable.
3834 (parse_tool_bar_item): Check for QCvert_only.
3835 (syms_of_keyboard): Initialize QCvert_only.
3836
3837 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3838
d9a95e67
EZ
38392010-11-20 Eli Zaretskii <eliz@gnu.org>
3840
3841 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3842 same in-line.
3843
b6557553
AS
38442010-11-20 Andreas Schwab <schwab@linux-m68k.org>
3845
3846 * xfaces.c (lookup_face): Make static.
3847 * dispnew.c (copy_row_except_pointers): Likewise.
3848 * syntax.c (dec_bytepos): Likewise.
3849 (inc_bytepos): Remove.
3850 * dispextern.h (lookup_face): Remove declaration.
3851
f48fe1f0
EZ
38522010-11-19 Eli Zaretskii <eliz@gnu.org>
3853
3854 * xdisp.c (set_cursor_from_row): Display cursor after all the
3855 glyphs that come from an overlay. Don't overstep the last glyph
3856 when skipping glyphs from an overlay. (Bug#6687)
3857
654ef137
DN
38582010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
3859
84dfc8a7
DN
3860 * alloc.c (refill_memory_reserve): Move declaration ...
3861 * lisp.h (refill_memory_reserve): ... here.
3862
94fa3833
DN
3863 * strftime.c (_strftime_copytm): Add declaration.
3864
dde990a0
DN
3865 * callproc.c (syms_of_callproc): Use intern_c_string.
3866
50c77428
DN
3867 Move declarations from .c files to .h files.
3868 * process.c (timers_run):
3869 * minibuf.c (quit_char):
3870 * lread.c (read_emacs_mule_char):
3871 * keyboard.c (minibuf_level, message_enable_multibyte)
3872 (pending_malloc_warning):
3873 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3874 (Qonly): Remove declarations.
3875 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3876 (Vselect_active_regions):
2f8f196d 3877 * keyboard.h (timers_run): Add declarations.
50c77428 3878
654ef137
DN
3879 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3880 (tm_diff): Convert definitions to standard C.
3881 (extra_args_spec_iso): Remove, unused.
3882
4a47c275 38832010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
3884
3885 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3886
3887 * config.in (HAVE_G_TYPE_INIT): New symbol.
3888
4a47c275 38892010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
3890
3891 * lread.c (Fload): Mention `load-in-progress' and
3892 `load-file-name'. (Bug#7346)
3893
86520d8c
EZ
3894 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3895 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3896 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3897 subprocesses. Use buffer_free only ifdef subprocesses.
3898
3899 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3900 the subprocesses version, not in the non-subprocesses one.
3901
794a4b6d
EZ
3902 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3903
146d267b
EZ
39042010-11-17 Eli Zaretskii <eliz@gnu.org>
3905
3906 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
3907 lines on text-mode terminals. (bug#7417)
3908
fad0d565
SM
39092010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3910
3911 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
3912 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
3913
6b4bb703
KH
39142010-11-17 Kenichi Handa <handa@m17n.org>
3915
3916 * coding.c (Fset_terminal_coding_system_internal): Fix previous
3917 change (set charset-ID list instead of charset-symbol list).
3918
9173a8fb
CY
39192010-11-16 Chong Yidong <cyd@stupidchicken.com>
3920
3921 * keyboard.c (make_lispy_position): For text area clicks, record Y
3922 pixel position relative to the text area, excluding header line.
3923 Also change X and Y to Lisp_Objects, not pointers; don't return
3924 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
3925 buffer_posn_from_coords counting from the start of the text area.
3926 (Fposn_at_x_y, make_lispy_event): Callers changed.
3927
3928 * window.c (coordinates_in_window): Change X and Y to ints rather
3929 than pointers; don't return coordinates via pointers.
3930 (struct check_window_data): Change X and Y from pointers to ints.
3931 (window_from_coordinates): Remove args WX and WY; don't return
3932 coordinates via pointers.
3933 (Fcoordinates_in_window_p, window_from_coordinates):
3934 (check_window_containing, Fwindow_at): Callers changed.
3935 (window_relative_x_coord): New function.
3936
3937 * window.h (window_from_coordinates, window_relative_x_coord):
3938 Update prototypes.
3939
3940 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3941 the start of the text area.
3942
3943 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3944 call. Use window_relative_x_coord.
3945 (note_mouse_highlight): Change window_from_coordinates call.
3946
3947 * w32term.c (w32_read_socket):
3948 * msdos.c (dos_rawgetc):
3949 * xterm.c (handle_one_xevent): Likewise.
3950
d2762c86
DN
39512010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
3952
3953 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
3954 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
3955 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
3956 Convert definitions to standard C.
3957 * regex.c: Do not include <stdlib.h>, config.h does it.
3958 Include unistd.h.
3959 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
3960 (regerror, regfree): Convert definitions to standard C.
3961 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
3962 (__mktime_internal): Convert definitions to standard C.
3963
c2f0866a
DN
39642010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3965
42a7e7f1
DN
3966 * w32proc.c:
3967 * w32inevt.c:
3968 * w32heap.c:
3969 * w32.c: Remove config.h include guards.
3970
67802943
DN
3971 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
3972 No code changes.
3973
f0e1af46
DN
3974 * process.c: Include <sys/ioctl.h> unconditionally,
3975 keyboard.c already does it.
3976
c2f0866a
DN
3977 * keyboard.c (pending_malloc_warning): Add const to match
3978 definition in alloc.c.
3979 (Fset_input_interrupt_mode): Simplify #ifdefs.
3980
92d3ab7e
DN
39812010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3982
12e610e8
DN
3983 Clean up systty.h macros.
3984 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
3985 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
3986 definition in all uses.
3987 (EMACS_TTY_TABS_OK): Remove, it has a single user.
3988 * sysdep.c (discard_tty_input, child_setup_tty)
3989 (init_sys_modes, tabs_safe_p, reset_sys_modes):
3990 * emacs.c (shut_down_emacs):
3991 * callproc.c (child_setup):
3992 * term.c (dissociate_if_controlling_tty): Inline removed macros.
3993
92d3ab7e
DN
3994 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
3995
a3e6bad4
CY
39962010-11-14 Chong Yidong <cyd@stupidchicken.com>
3997
3998 * w32fns.c (Fx_create_frame):
3999 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
4000 resource here; it's now done at startup.
4001
5a232ffb
J
40022010-11-14 Jan Djärv <jan.h.d@swipnet.se>
4003
4004 * xterm.c (set_wm_state): Add Qnil to final cons.
4005
4006 * xselect.c (x_send_client_event): Remove unused variables cons and
4007 size.
4008
24021b38
YM
40092010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4010
2f8f196d 4011 * keyboard.c (modify_event_symbol): Add const to array elements of
24021b38
YM
4012 arg NAME_TABLE.
4013 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
4014 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
4015 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
4016 Add const to array elements.
4017 (scroll_bar_parts): Make static. Fix position of const.
4018
4019 * w32fns.c (lispy_function_keys): Add const to extern.
4020
4021 * w32inevt.c (lispy_function_keys): Likewise.
4022
afa42fe3
CY
40232010-11-14 Chong Yidong <cyd@stupidchicken.com>
4024
4025 * xfns.c (Fx_create_frame): Don't check for the cursorColor
4026 resource here; it's now done at startup.
4027
53260a94
DN
40282010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
4029
c865c575 4030 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 4031
c865c575 4032 Fix compilation on Solaris.
ff2e8052
DN
4033 * sysdep.c: Do not #include <term.h>.
4034 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
4035
53260a94
DN
4036 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
4037
933e29ff
J
40382010-11-13 Jan Djärv <jan.h.d@swipnet.se>
4039
4040 * xterm.c (set_wm_state): Don't put Atom in cons, call
4041 make_fixnum_or_float on them first.
4042 (x_term_init): Initialize Xatom_net_supporting_wm_check and
4043 Xatom_net_supported correctly.
4044
4045 * xselect.c (x_send_client_event): Move CHECK_STRING ...
4046 (Fx_send_client_event): to here.
4047
a048073e
MR
40482010-11-13 Martin Rudalics <rudalics@gmx.at>
4049
4050 * window.c (Fwindow_use_time): New function.
4051
0eb025fb
EZ
40522010-11-13 Eli Zaretskii <eliz@gnu.org>
4053
4054 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
4055 zero-width characters.
4056
4057 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
4058
4059 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
4060 box before drawing the glyphs inside it.
4061
4062 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
4063
bba3e508
SM
4064 * dispextern.h (enum glyphless_display_method):
4065 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
4066 All users changed.
0eb025fb 4067
bba3e508
SM
4068 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
4069 Fix comments.
0eb025fb
EZ
4070 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
4071 whitespace in "[]", to simulate a box. Don't use uninitialized
4072 variable `width'.
4073
c869cc37
JD
40742010-11-11 Julien Danjou <julien@danjou.info>
4075
2d9074ba
JD
4076 * xsettings.c (init_xsettings): Use already fetch atoms.
4077
4078 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
4079 from dpyinfo.
4080
4081 * xselect.c (Fx_send_client_event): Split and create
4082 x_send_client_event.
4083
4084 * lisp.h: Do not EXFUN Fx_send_client_event.
4085
4086 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
4087 from dpyinfo.
4088 (wm_supports): Use atoms from dpyinfo.
4089 (do_ewmh_fullscreen): Use atoms from dpyinfo.
4090 (x_ewmh_activate_frame): Use atoms from dpyinfo.
4091 (xembed_set_info): Use atoms from dpyinfo.
4092 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
4093 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
4094 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
4095 Get all atoms in one round-trip.
4096 (set_wm_state): Use x_send_client_event rather than
4097 Fx_send_client_event, using Atom directly.
4098 (x_ewmh_activate_frame): Ditto.
4099 (x_set_sticky): Pass atoms to set_wm_state.
4100 (do_ewmh_fullscreen): Ditto.
4101
2d9074ba
JD
4102 * xterm.h (x_display_info): Add Xatom_net_supported,
4103 Xatom_net_supporting_wm_check, Xatom_net_active_window,
4104 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
4105
c869cc37
JD
4106 * xfns.c (Fx_show_tip): Fix typo in docstring.
4107
1a4236ea
SM
41082010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
4109
4110 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
4111 it's not negative.
4112
3106121c
YM
41132010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4114
4115 * font.c (font_filter_properties): Add const to array elements of
4116 properties args.
4117
4118 * font.h (font_filter_properties): Likewise.
4119
4120 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
4121 elements.
4122
4123 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
4124
da1fec2b
MA
41252010-11-10 Michael Albinus <michael.albinus@gmx.de>
4126
4127 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
4128 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
4129 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
4130 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
4131 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
4132
bd6bc222
GM
41332010-11-10 Glenn Morris <rgm@gnu.org>
4134
4135 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
4136
c0098065
EZ
41372010-11-09 Eli Zaretskii <eliz@gnu.org>
4138
bd6bc222 4139 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 4140
d607b96b 41412010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
4142
4143 * image.c (free_image): Don't garbage the frame here, since this
4144 function can be called while redisplaying (Bug#7210).
4145 (uncache_image): Garbage the frame here (Bug#6426).
4146
d607b96b 41472010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 4148
d607b96b
SM
4149 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
4150 parent is the root window. Check this after traversing window tree.
184765cc 4151
d607b96b 4152 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 4153
d607b96b 4154 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 4155
d607b96b
SM
4156 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
4157 before traversing window tree (Bug#5721).
c2e124a9 4158
27f92be7
J
41592010-11-07 Jan Djärv <jan.h.d@swipnet.se>
4160
66b16767
J
4161 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
4162
25f38310
SM
4163 * xdisp.c (note_mode_line_or_margin_highlight):
4164 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 4165
a971c0a7
EZ
41662010-11-06 Eli Zaretskii <eliz@gnu.org>
4167
4168 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
4169 adjust width of tool-tip frame to the width of text, excluding the
4170 stretch glyph at the beginning of R2L glyph rows.
4171
4172 * w32fns.c (Fx_show_tip): Likewise.
4173
80417b95
JD
41742010-11-06 Jan Djärv <jan.h.d@swipnet.se>
4175
4176 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 4177 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 4178
28118eb6
EZ
41792010-11-05 Eli Zaretskii <eliz@gnu.org>
4180
c1fc2d3a 4181 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
4182
4183 * term.c: Remove static mouse_face_* variables. All users
4184 changed.
4185 (term_show_mouse_face, term_clear_mouse_face)
4186 (fast_find_position, term_mouse_highlight): Functions deleted.
4187 (tty_draw_row_with_mouse_face): New function.
4188 (term_mouse_movement): Call note_mouse_highlight instead of
4189 term_mouse_highlight.
4190
bbf534ce
EZ
4191 * nsterm.m (ns_update_window_begin, ns_update_window_end)
4192 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
4193 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
4194 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
4195 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
4196 Replace Display_Info with Mouse_HLInfo everywhere where
4197 mouse_face_* members were accessed for mouse highlight purposes.
4198
4199 * xterm.c (x_update_window_begin, x_update_window_end)
4200 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
4201 (handle_one_xevent, x_free_frame_resources, x_term_init):
4202 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
4203 members were accessed for mouse highlight purposes.
4204
4205 * w32term.c (x_update_window_begin, x_update_window_end)
4206 (x_update_end, w32_read_socket, x_free_frame_resources)
4207 (w32_initialize_display_info): Replace Display_Info with
4208 Mouse_HLInfo everywhere where mouse_face_* members were accessed
4209 for mouse highlight purposes.
4210
4211 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
4212 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
4213 unless the frame is on a window-system.
c1fc2d3a 4214 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
4215 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
4216 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
4217 (note_mode_line_or_margin_highlight, note_mouse_highlight)
4218 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
4219 Replace Display_Info with Mouse_HLInfo everywhere where
4220 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 4221 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
4222 HAVE_WINDOW_SYSTEM conditional.
4223 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
4224 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
4225 (try_window_id) [HAVE_GPM || MSDOS]:
4226 Call x_clear_window_mouse_face.
d009ae66 4227 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
4228 systems. Call tty_draw_row_with_mouse_face for TTY systems.
4229 (show_mouse_face): Call draw_row_with_mouse_face, instead of
4230 calling draw_glyphs directly.
d009ae66
EZ
4231 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
4232 (cursor_in_mouse_face_p, rows_from_pos_range)
4233 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
4234 (note_mode_line_or_margin_highlight, note_mouse_highlight)
4235 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
4236 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
4237 fragments.
4238 (note_mouse_highlight): Call popup_activated for MSDOS as well.
4239 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
4240 integer.
4241 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
4242 (x_consider_frame_title, tool_bar_lines_needed):
4243 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
4244 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
4245 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
4246 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
4247 part.
d009ae66
EZ
4248
4249 * dispnew.c (mirror_make_current): Set Y coordinate of the
4250 mode-line and header-line rows.
c1fc2d3a
EZ
4251 (init_display): Setup initial frame's output_data for text
4252 terminal frames.
d009ae66 4253
c1fc2d3a
EZ
4254 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
4255 its own definition on msdos.c.
d009ae66
EZ
4256
4257 * msdos.c (show_mouse_face, clear_mouse_face)
4258 (fast_find_position, IT_note_mode_line_highlight)
4259 (IT_note_mouse_highlight): Functions deleted.
4260 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
4261 instead of IT_note_mouse_highlight.
4262 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
4263 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
4264 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
4265 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
4266 where mouse_face_* members were accessed for mouse highlight
4267 purposes.
4268
4269 * msdos.h (initialize_msdos_display): Add prototype.
4270
4271 * frame.h (MOUSE_HL_INFO): New macro.
4272
4273 * lisp.h (Mouse_HLInfo): New data type.
4274
4275 * xterm.h (struct x_display_info):
4276 * w32term.h (struct w32_display_info):
4277 * nsterm.h (struct ns_display_info):
4278 * termchar.h (struct tty_display_info): Use it instead of
4279 mouse_face_* members.
4280
4281 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
4282 1st argument.
4283 (frame_to_window_pixel_xy, note_mouse_highlight)
4284 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
4285 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
4286 HAVE_WINDOW_SYSTEM conditional.
4287 (draw_row_with_mouse_face): Declare prototype.
4288 (tty_draw_row_with_mouse_face): Declare prototype.
4289
6e8d7c47
EZ
42902010-11-05 Eli Zaretskii <eliz@gnu.org>
4291
bba3e508
SM
4292 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
4293 Remove unused variables.
6e8d7c47 4294
f31ba3f0
AR
42952010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4296
4297 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
4298 logic pointed out by Eli Zaretskii.
4299
448e17d6
LMI
43002010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
4301
0c3a9a9f
GM
4302 * coding.c (coding-category-list): Refer to set-coding-system-priority
4303 instead of the obsolete set-coding-priority in the doc string.
448e17d6 4304
3fdebbf9 43052010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0 4306
2f8f196d 4307 * nsfont.m (nsfont_draw): Correct previous patch to return
f31ba3f0
AR
4308 correct value.
4309 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
4310 don't change the method signature, change the return.
4311
43122010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
4313
4314 * nsfont.m (nsfont_draw)
4315 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 4316 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 4317
17c0c952
JD
43182010-11-03 Julien Danjou <julien@danjou.info>
4319
4320 * image.c (gif_load): Add support for transparency and specified
4321 :background.
4322
b18fad6d
KH
43232010-11-01 Kenichi Handa <handa@m17n.org>
4324
4325 * dispextern.h (lookup_glyphless_char_display): Extern it.
4326
4327 * termhooks.h (struct terminal): New member charset_list.
4328
4329 * coding.c (Fset_terminal_coding_system_internal): Set the
4330 `charset_list' member of struct terminal.
4331
a8039db1 4332 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
4333 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4334
4335 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
4336 (lookup_glyphless_char_display): Set it->what at the end.
4337 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4338 (last_glyphless_glyph_merged_face_id): Make them non-static.
4339
a8039db1
JB
4340 * w32term.c (x_draw_glyphless_glyph_string_foreground):
4341 Fix the arg with_background for font->driver->draw.
65b6b59a 4342
a8039db1 43432010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 4344
a8039db1
JB
4345 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
4346 Surround chp by parentheses.
0269bd90 4347
a8039db1 43482010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
4349
4350 Implement various display methods for glyphless characters.
4351
4352 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
4353 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
4354 (Qzero_width): New variables.
4355 (THIN_SPACE_WIDTH): New macro.
01c35094 4356 (lookup_glyphless_char_display): New function.
b2cca856
KH
4357 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4358 (last_glyphless_glyph_merged_face_id): New variables.
4359 (get_next_display_element): Check glyphless characters.
4360 (redisplay_internal): Initialize last_glyphless_glyph_frame and
4361 last_glyphless_glyph_face_id.
4362 (fill_glyphless_glyph_string): New function.
4363 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
4364 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
4365 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4366 (x_produce_glyphs): If a suitable font is not found, produce a
4367 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
4368 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
4369 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
4370 Qzero_width.
4371 (Vglyphless_char_display): Declare it as a Lisp variable.
4372
4373 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
4374 (struct glyph): Change the size of the member "type" to 3.
4375 Add glyphless to the union slice and u.
b2cca856
KH
4376 (enum display_element_type): Add IT_GLYPHLESS.
4377 (enum glyphless_display_method): New enum.
4378 (struct it): New member glyphless_method.
4379 (Vglyphless_char_display): Extern it.
4380
4381 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
4382 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4383
a8039db1 4384 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
4385 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4386
4387 * nsterm.m (ns_draw_glyph_string): Handle the case
4388 GLYPHLESS_GLYPH (the detail is not yet implemented).
4389
c8c59954
GM
43902010-10-31 Glenn Morris <rgm@gnu.org>
4391
80696982
GM
4392 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
4393
c8c59954
GM
4394 * frame.c (syms_of_frame) <tool-bar-mode>:
4395 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
4396
46eadc7a
CY
43972010-10-31 Chong Yidong <cyd@stupidchicken.com>
4398
4399 * xterm.c (x_connection_closed): Print informative error message
4400 when aborting on GTK. This requires using shut_down_emacs
4401 directly instead of Fkill_emacs.
4402
ffe75e6b
EZ
44032010-10-29 Eli Zaretskii <eliz@gnu.org>
4404
4405 * emacs.c (main): Call syms_of_filelock unconditionally.
4406
4407 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
4408 clause, but keep part of it conditioned on CLASH_DETECTION.
4409
9d794026
GM
44102010-10-29 Glenn Morris <rgm@gnu.org>
4411
4f4f2973
GM
4412 * nsfns.m (Fx-display-save-under, Fx-open-connection)
4413 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
4414 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
4415 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
4416 Sync docs between X, W32, NS.
4417
9d794026
GM
4418 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
4419 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
4420
d46f6bbb
JB
44212010-10-26 Juanma Barranquero <lekktu@gmail.com>
4422
4423 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
4424 otherwise, bootstrapping on Windows fails to compile macroexp.el.
4425
2e35f1a2
EZ
44262010-10-26 Eli Zaretskii <eliz@gnu.org>
4427
4428 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 4429 zero or negative. (Bug#7281)
2e35f1a2 4430
8daaeda6
J
44312010-10-26 Jan Djärv <jan.h.d@swipnet.se>
4432
4433 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
4434
6a5c2175
GM
44352010-10-25 Glenn Morris <rgm@gnu.org>
4436
4437 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
4438
7c051dd8
GM
44392010-10-24 Glenn Morris <rgm@gnu.org>
4440
4441 * w32fns.c (Fx_synchronize, Fx_change_window_property)
4442 (Fx_window_property, Fx_file_dialog):
4443 * xfns.c (Fx_synchronize, Fx_change_window_property)
4444 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
4445
23c261f5
CY
44462010-10-24 Chong Yidong <cyd@stupidchicken.com>
4447
4448 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
4449
d414c713 44502010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
4451
4452 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
4453
4454 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
4455 Deprecate use as a boolean flag.
4456
947f5e01
JM
44572010-10-24 Jim Meyering <jim@meyering.net>
4458
4459 * emacs.c (argmatch): Don't treat "--" as "--chdir".
4460
65807d73
GM
44612010-10-24 Glenn Morris <rgm@gnu.org>
4462
f5f25615
GM
4463 * w16select.c (syms_of_win16select) <selection-coding-system>:
4464 <next-selection-coding-system>:
4465 * w32select.c (syms_of_w32select) <selection-coding-system>:
4466 <next-selection-coding-system>:
3646b86d
GM
4467 Sync docs with select.el.
4468
46710489
GM
4469 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
4470 Lisp version.
4471
ea883883
GM
4472 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
4473 Sync doc with the xterm.c version.
4474
65807d73
GM
4475 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
4476 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
4477
f3d87560
GM
44782010-10-23 Glenn Morris <rgm@gnu.org>
4479
66c6abf0 4480 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 4481 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 4482 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 4483 <hourglass-delay>: Sync docs with Lisp.
f3d87560 4484
7b7e2c18
EZ
44852010-10-23 Eli Zaretskii <eliz@gnu.org>
4486
d1d6801e 4487 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
4488
4489 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
4490 (mouse_face_from_string_pos): New function, replaces
4491 fast_find_string_pos.
4492 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
4493 (note_mode_line_or_margin_highlight): Support bidi-reordered
4494 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
4495 (note_mouse_highlight): When bidi reordering is turned on in a
4496 buffer, call next-single-property-change and
ef1b0ba7
SM
4497 previous-single-property-change with last argument nil.
4498 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 4499 glyph that stands for no text beyond the line end.
1f382a02
EZ
4500 (row_containing_pos): Don't return too early when CHARPOS is in a
4501 bidi-reordered continued line. Return immediately when the first
4502 hit is found in a line that is not continued, or when an exact
4503 match for CHARPOS is found.
d1d6801e
EZ
4504 (rows_from_pos_range): New function.
4505 (mouse_face_from_buffer_pos): Use it instead of calling
4506 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
4507 function to support mouse highlight in bidi-reordered lines and
4508 not to assume that START_CHARPOS is always in mouse_face_beg_row.
4509 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
4510 that the former is always above the latter or identical to it.
1554d88e 4511 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
4512 (coords_in_mouse_face_p): New function, bidi-aware.
4513 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
4514 Call it instead of comparing with mouse-face members of dpyinfo.
4515 (note_mode_line_or_margin_highlight): Fix confusingly swapped
4516 usage of hpos and vpos.
544bbc31 4517
dee186b6
J
45182010-10-22 Jan Djärv <jan.h.d@swipnet.se>
4519
4520 * xrdb.c: Include keyboard.h for MOTIF.
4521
4522 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
4523 MOTIF (Bug#7263).
4524
4525 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
4526 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
4527 Make ANSI prototypes.
dee186b6 4528
5fb59edb
GM
45292010-10-22 Glenn Morris <rgm@gnu.org>
4530
4531 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
4532 Remove ccl and duplicate mouse.
4533
8b78d5e3
CY
45342010-10-21 Chong Yidong <cyd@stupidchicken.com>
4535
4536 * insdel.c (prepare_to_modify_buffer): Don't set
4537 saved-region-selection if modification hooks are disabled.
4538
b8a47412
CY
45392010-10-19 Chong Yidong <cyd@stupidchicken.com>
4540
4541 * cmds.c (Fdelete_char): Doc fix.
4542
ca3fa302 45432010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
4544
4545 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
4546
ca3fa302 45472010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
4548
4549 Fix incorrect font metrics when the same font is opened with
4550 different pixelsizes.
4551
4552 * xftfont.c: Include composite.h.
4553 (xftfont_shape): New function.
4554 (syms_of_xftfont): Set xftfont_driver.shape.
4555
c978536f
JD
45562010-10-18 Julien Danjou <julien@danjou.info>
4557
4558 * frame.c (Fframe_pointer_visible_p):
4559 Add `frame-pointer-visible-p' to get the pointer visibility.
4560
4b2d9ec2
LMI
45612010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
4562
4563 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
4564 non-"EAGAIN"-like error to signal to Emacs that the socket should
4565 be closed.
4566
9cf66cf2
EZ
45672010-10-15 Eli Zaretskii <eliz@gnu.org>
4568
c3911ead
EZ
4569 * unexcoff.c (make_hdr): Fix prototype according to changes in
4570 2010-10-03T13:59:56Z!dann@ics.uci.edu.
4571
9cf66cf2
EZ
4572 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
4573
be98da05
TH
45742010-10-15 Tassilo Horn <tassilo@member.fsf.org>
4575
4576 * Makefile.in (really-oldXMenu): Fix typo in variable name that
4577 made building the X menu fail.
cc98b256 4578 (really-oldXMenu): Fix my previous fix.
be98da05 4579
220d91b8 45802010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
4581
4582 Fix handling of font properties on Windows (bug#6303).
4583 * font.c (font_filter_properties): New function, refactored from
4584 ftfont_filter_properties.
4585 * font.h (font_filter_properties): Declare.
4586 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
4587 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
4588 (w32font_filter_properties): New function.
4589 (w32font_driver): Add w32font_filter_properties.
4590
220d91b8 45912010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 4592
c0943d3d 4593 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
4594 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
4595
24f981c9
JB
45962010-10-14 Juanma Barranquero <lekktu@gmail.com>
4597
4598 * w32fns.c (w32_wnd_proc, file_dialog_callback):
4599 * w32font.c (w32_generic_family):
4600 * w32inevt.c (key_event):
4601 * w32menu.c (fill_in_menu):
4602 * w32proc.c (reader_thread, w32_executable_type, compare_env)
4603 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
4604 * w32term.c (w32_read_socket): Make static.
4605
850690cc
JB
46062010-10-13 Juanma Barranquero <lekktu@gmail.com>
4607
4608 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
4609 prototypes; all callers changed.
4610
5e371708
JB
46112010-10-13 Juanma Barranquero <lekktu@gmail.com>
4612
4613 * makefile.w32-in (TLIB2): Rename from TLIBW32.
4614 (OBJ2): New macro.
4615 (WIN32OBJ, FONTOBJ): Remove.
4616 (OBJ1): Redistribute object files with OBJ2.
4617 (LIBS, $(TEMACS)): Use TLIB2.
4618 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
4619 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
4620
2e288d54
JB
46212010-10-13 Juanma Barranquero <lekktu@gmail.com>
4622
4623 * emacs.c (Vdynamic_library_alist)
4624 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
4625 Doc fix.
4626
4627 * lisp.h (Vdynamic_library_alist): Declare extern.
4628
4629 * image.c (Vimage_library_alist)
4630 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
4631 (lookup_image_type): Use Vdynamic_library_alist.
4632 (Finit_image_library): Doc fix.
4633
aba1381b
DN
46342010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
4635
4636 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
4637 (lispdir): Remove trailing /, update all uses.
4638
4c14013d 46392010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
4640
4641 * nsterm.m (Qleft): Declare.
01c35094 4642 (ns_right_alternate_modifier): New variable.
a2e35ef5
JD
4643 (NSRightAlternateKeyMask): New define.
4644 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
4645 ns_right_alternate_modifier isn't Qleft.
4646 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
4647 as emacs modifier for NSRightAlternateKeyMask.
4648 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
4649
355cdaf3
LMI
46502010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
4651
4652 * gnutls.c (emacs_gnutls_write): If we're trying to write before
4653 gnutls is ready, return EAGAIN as the errno.
4654
4c620157
DN
46552010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
4656
edfd76ce
DN
4657 * vm-limit.c:
4658 * unexhp9k800.c:
4659 * unexelf.c:
4660 * unexaix.c:
4661 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
4662
a4daeecf
DN
4663 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
4664 (PROFILING_LDFLAGS): Remove, not needed anymore.
4665
01c35094 4666 * Makefile.in: Use $(...) everywhere instead of ${...}.
4cf3ad30
DN
4667 (CRT_DIR): Move near potential user.
4668 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 4669
4c620157
DN
4670 * sysdep.c (LPASS8): Remove, unused.
4671 (emacs_ospeed): Change from being a global to a local in the only
4672 user: init_baud_rate.
4673
b845653d
LMI
46742010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4675
4676 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 4677 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 4678 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 4679 gnutls_read. This allows us to actually read lots of data from
b845653d 4680 the GnuTLS stream.
2e6c74c5
LMI
4681 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
4682 According to the documentation, this is correct, and it seems to
4683 make things work.
b845653d 4684
3625b3e2
CY
46852010-10-09 Chong Yidong <cyd@stupidchicken.com>
4686
4687 * xterm.c (x_draw_relief_rect): Clear corner pixels.
4688
8b1c619f
MA
46892010-10-08 Michael Albinus <michael.albinus@gmx.de>
4690
4691 * keyboard.c: Revert last change; it was not intended to be
4692 synchronized with the trunk.
4693
93d50df8
KH
46942010-10-08 Kenichi Handa <handa@m17n.org>
4695
2b7c9342 4696 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 4697
4628bef1 46982010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
4699
4700 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
4701 (Fdbus_init_bus): ... here. (Bug#7113)
4702
4628bef1 47032010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
4704
4705 * buffer.c (before-change-functions, after-change-functions):
4706 Three-year overdue doc fix following 2007-08-13 change.
4707
4628bef1 47082010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
4709
4710 * coding.c (coding_inherit_eol_type): If parent doesn't specify
4711 eol-format, inherit from the system's default.
4712 (complement_process_encoding_system): Make a new coding system
4713 inherit the original eol-format.
4714
4628bef1 47152010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
4716
4717 * coding.c (complement_process_encoding_system): New function.
4718
4719 * coding.h (complement_process_encoding_system): Extern it.
4720
4721 * callproc.c (Fcall_process): Complement the coding system for
4722 encoding arguments.
4723 (Fcall_process_region): Complement the coding system for encoding
4724 the input to the process.
4725
4726 * process.c (Fstart_process): Complement the coding system for
4727 encoding arguments.
4728 (send_process): Complement the coding system for encoding what
4729 sent to the process.
4730
4628bef1 47312010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
4732
4733 * xfont.c (xfont_open): Fix setting of font->average_width from
4734 :avgwidth property (Bug#7123).
4735
4628bef1 47362010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
4737
4738 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
4739 is more portable.
4740
4741 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
84eb0351 4742 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
4743 has not defined SIGIO.
4744
389454fb
CY
47452010-10-08 Chong Yidong <cyd@stupidchicken.com>
4746
4747 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
4748 draw the outermost line using the black relief, for legibility.
4749 Omit drawing the four corner pixels.
4750
51b403bd
CY
47512010-10-04 Chong Yidong <cyd@stupidchicken.com>
4752
4753 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
4754 (read_key_sequence): Inline echo_prompt.
4755 (echo_dash): Add a dash only if key is continued (Bug#7137).
4756
3e6ae1a4
DN
47572010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
4758
4759 Remove O_RDONLY, O_WRONLY definitions, not needed.
4760 * unexcoff.c:
4761 * lread.c:
4762 * fileio.c:
4763 * doc.c:
4764 * callproc.c:
4765 * alloc.c:
4766 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
4767
c1ae068b
LMI
47682010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
4769
4770 * gnutls.h (GNUTLS_LOG2): Convenience macro.
4771
4772 * gnutls.c: Add property list symbol holders.
4773 (emacs_gnutls_handshake): Clarify how sockets are passed to
4774 GnuTLS.
4775 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
4776 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
4777 and keyfiles to be a list of file names. Default to "NORMAL" for
4778 the priority string. Improve logging.
4779
e2afe435
GM
47802010-10-03 Glenn Morris <rgm@gnu.org>
4781
4782 * fileio.c (Vdirectory_sep_char): Remove.
4783
dd5ecd6b
DN
47842010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
4785
b5437a05
DN
4786 * termhooks.h: Remove #ifdef CONSP.
4787
4777478a
DN
4788 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4789
a3d5088d
DN
4790 Include <fcntl.h> unconditionally.
4791 * termcap.c:
4792 * sysdep.c:
4793 * lread.c:
4794 * keyboard.c:
4795 * filelock.c:
4796 * fileio.c:
4797 * doc.c:
4798 * callproc.c:
4799 * alloc.c: Remove include guards for <fcntl.h>, process.c already
4800 does it.
4801
82719735
DN
4802 * process.c: Do not include <sys/wait.h>, syswait.h does it.
4803
9de940b5
DN
4804 * sysdep.c (flush_pending_output): Remove code, does not do
4805 anything on any platform.
4806
57507bf8 4807 Remove unused code.
bba3e508
SM
4808 * sysdep.c (select_alarm, sys_select, read_input_waiting):
4809 Remove select emulation, all systems support select.
57507bf8
DN
4810 (set_exclusive_use): Remove, the only user is in an #if 0 block.
4811 * process.c (create_process): Remove #if 0 code.
4812
dd5ecd6b
DN
4813 Remove unused arguments for unexec.
4814 The third one is never used, and the last two are always passed as zero.
4815 * emacs.c (unexec): Add declaration.
4816 (Fdump_emacs): Only pass the first two arguments to unexec.
4817 Simplify #ifdef.
4818 * unexw32.c (unexec):
4819 * unexsol.c (unexec):
4820 * unexhp9k800.c (unexec):
4821 * unexcw.c (unexec): Remove the last 3 arguments, unused.
4822 * unexelf.c (unexec): Remove the last 3 arguments, unused.
4823 (find_section): Use const.
4824 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4825 (unexec_error): Declare it NO_RETURN.
4826 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4827 it as an argument, remove data_start and entry_address arguments, unused.
4828 (unexec): Remove bss_start, data_start and
4829 entry_address arguments.
4830 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4831 it as an argument, remove data_start and entry_address arguments, unused.
4832 (unexec): Remove bss_start, data_start and
4833 entry_address arguments.
4834
74f1829d
JB
48352010-10-03 Juanma Barranquero <lekktu@gmail.com>
4836
7f467e14
JB
4837 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4838
74f1829d
JB
4839 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4840 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4841 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4842 Fix typos in docstrings.
4843 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4844 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4845
6926550f
CY
48462010-10-03 Chong Yidong <cyd@stupidchicken.com>
4847
4848 * keyboard.c (command_loop_1): Make sure the mark is really alive
4849 before using it (Bug#7044).
4850
54b65f7b
JB
48512010-10-02 Juanma Barranquero <lekktu@gmail.com>
4852
4853 * makefile.w32-in (tags): Rename target to full-tags.
4854
383ebd15
EZ
48552010-10-02 Eli Zaretskii <eliz@gnu.org>
4856
4857 * emacs.c (main): Remove !WINDOWSNT conditional.
4858 (Fkill_emacs): Don't mention exemption on MS-Windows.
4859
9c524fcb
GM
48602010-10-02 Glenn Morris <rgm@gnu.org>
4861
3226d6ca
GM
4862 * character.c (Fchar_bytes): Remove obsolete function.
4863 (syms_of_character): Remove Schar_bytes.
4864
9c524fcb
GM
4865 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4866 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4867 in batch-mode.
4868 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
4869 (kill-emacs-hook): Doc fix.
4870
1b217849
LMI
48712010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
4872
4873 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 4874 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
4875 renamed to reflect that these are the libxml functions.
4876
54cc6a83
EZ
48772010-10-01 Eli Zaretskii <eliz@gnu.org>
4878
0ebf79de
EZ
4879 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4880 screen dimensions in tty->Wcm.
4881
54cc6a83
EZ
4882 * xdisp.c (set_cursor_from_row): When the row is truncated and
4883 point is outside the range of displayed characters, position the
4884 cursor inside the scroll margin. (Bug#6349)
4885
321401d1
DN
48862010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
4887
4cacd822
DN
4888 Do not include stdlib.h and string.h, config.h does it.
4889 * xfont.c:
4890 * w32term.c:
4891 * w32reg.c:
4892 * w32inevt.c:
4893 * w32heap.c:
4894 * w32console.c:
4895 * w16select.c:
4896 * unexsol.c:
4897 * term.c:
4898 * sound.c:
4899 * scroll.c (m):
4900 * gtkutil.c:
4901 * font.c:
4902 * filelock.c:
4903 * fileio.c:
4904 * dosfns.c:
4905 * dbusbind.c:
4906 * bidi.c:
4907 * callproc.c:
4908 * process.c:
4909 * msdos.c:
4910 * charset.c: Do not include stdlib.h and string.h, config.h does it.
4911
bba3e508
SM
4912 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
4913 defines it.
0781e7ab 4914
9bf58201
DN
4915 * process.c: Move #include <pty.h> earlier.
4916 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
4917 (pty_name): Move definition later.
4918
088dcc3e
DN
4919 * nsselect.m (syms_of_nsselect):
4920 * nsmenu.m (syms_of_nsmenu):
4921 * nsfns.m (syms_of_nsfns):
4922 * msdos.c (syms_of_msdos):
4cacd822 4923
088dcc3e
DN
4924 * image.c (syms_of_image):
4925 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4926
321401d1
DN
4927 * point.h: Remove, unused.
4928
73077a9a
EZ
49292010-10-01 Eli Zaretskii <eliz@gnu.org>
4930
4931 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4932 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4933 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4934
55e572ef
DN
49352010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4936
4937 * xml.c (parse_string): Use const.
4938
d4b6d95d
LMI
49392010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
4940
ef1b0ba7
SM
4941 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4942 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
4943 the level to 8 to produce more useful backtraces for bug reports.
4944
e4b6db12
DN
49452010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4946
4947 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4948
1becef93
JB
49492010-09-30 Juanma Barranquero <lekktu@gmail.com>
4950
4951 * w32console.c (vga_stdcolor_name): Remove unused function;
4952 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
4953
df7fcaff
LMI
49542010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
4955
bac5cef8
LMI
4956 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
4957 (Fgnutls_boot): Start the handshake.
4958 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
4959 (Fgnutls_boot): Remove some debugging messages.
4960 Change indentation throughout to use the Emacs style.
4961 (emacs_gnutls_handshake): Cast the fds to something that's
4962 possibly the expected length.
4963 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 4964
df7fcaff
LMI
4965 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
4966
4967 * process.c (make_process): Set the gnutls_p field to zero by
4968 default.
4969 (read_process_output): Always call the gnutls_read function if the
4970 stream is a gnutls stream.
4971 (send_process): Ditto for writes.
4972
4973 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
4974 or write anything until the state is GNUTLS_STAGE_READY.
4975 (Fgnutls_boot): Mark the stream as being a gnutls stream.
4976
d585695f
EZ
49772010-09-29 Eli Zaretskii <eliz@gnu.org>
4978
af7ef32d
EZ
4979 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
4980 NEUTRAL_DIR.
4981 (handle_invisible_prop, iterate_out_of_display_property)
4982 (next_element_from_buffer): If bidi_it.first_elt is set, call
4983 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
4984 (Bug#7128)
4985
d585695f
EZ
4986 * print.c (print_object): Fix format string and argument types for
4987 printing a Lisp_Misc_Marker.
4988
4989 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
4990 (load_overlay_strings, get_overlay_strings_1)
4991 (get_overlay_strings, forward_to_next_line_start)
4992 (back_to_previous_visible_line_start, reseat, reseat_to_string)
4993 (get_next_display_element, next_element_from_string)
4994 (next_element_from_c_string, next_element_from_buffer)
4995 (move_it_vertically_backward, move_it_by_lines, add_to_log)
4996 (message_dolog, message_log_check_duplicate, message2_nolog)
4997 (message3, message3_nolog, vmessage, set_message, set_message_1)
4998 (hscroll_window_tree, text_outside_line_unchanged_p)
4999 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
5000 (find_last_unchanged_at_beg_row)
5001 (find_first_unchanged_at_end_row, row_containing_pos)
5002 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
5003 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
5004 Use EMACS_INT for buffer and string positions.
d585695f
EZ
5005
5006 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
5007 (row_containing_pos): Adjust prototype.
5008
5009 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
5010 (message2_nolog, set_message): Adjust prototypes.
5011
a6f3211f
SM
50122010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5013
5014 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
5015 (Fgnutls_boot): Use SDATA.
5016 (Fgnutls_handshake): Remove unused var `max_log_level'.
5017
e0720500
MA
50182010-09-27 Michael Albinus <michael.albinus@gmx.de>
5019
11a5af7c 5020 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
5021 (Bug#7113)
5022
d8a4b27a
J
50232010-09-27 Jan Djärv <jan.h.d@swipnet.se>
5024
42d3022b
J
5025 * xgselect.c (xg_select): Clear file descriptors not set from
5026 rfds and wfds.
5027
d8a4b27a
J
5028 * process.c (wait_reading_process_output): Add missing FD_CLR
5029 for write_mask (must mirror connect_wait_mask).
5030
8ed70bf3
LMI
50312010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
5032
5033 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
5034 prefix.
5035 (Fgnutls_boot): Use changed process members. Use log level with a
5036 function parameter to set it. Bring back Emacs-level debugging
5037 messages at log level 1 and 2.
5038
5039 * process.c (make_process): Initialize gnutls_log_level.
5040
5041 * process.h: Add gnutls_log_level and rename x509_cred and
5042 anon_cred to have the gnutls_ prefix for consistency.
5043
5044 * gnutls.h (GNUTLS_LOG): Add convenience macro.
5045
bedf4aab
JB
50462010-09-27 Juanma Barranquero <lekktu@gmail.com>
5047
5048 * w32.c (g_b_init_get_sid_identifier_authority)
5049 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
5050 Remove, not used.
5051 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
5052 (init_winsock): Remove useless assignment.
5053 (open_process_token, get_token_information, lookup_account_sid)
5054 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
5055 (get_security_descriptor_owner, get_security_descriptor_group)
5056 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
5057 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
5058 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
5059 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
5060 (unc_volume_file_attributes, convert_from_time_t)
5061 (create_toolhelp32_snapshot, process32_first, process32_next)
5062 (open_thread_token, impersonate_self, revert_to_self)
5063 (get_process_memory_info, get_process_working_set_size)
5064 (global_memory_status, global_memory_status_ex, socket_to_fd)
5065 (shutdown_handler): Make static.
5066
08609ffd
MA
50672010-09-27 Michael Albinus <michael.albinus@gmx.de>
5068
5069 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
5070 (xd_pending_messages): Functions removed.
5071 (xd_read_queued_messages): Add parameters fd, *data, for_read in
5072 order to be compatible with add_read_fd. Determine bus from data,
5073 and call xd_read_message just for this bus.
5074 (xd_add_watch): Use xd_read_queued_messages as callback function.
5075 Add data.
5076
5077 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
5078
d2e9d0bb
LMI
50792010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
5080
ef1b0ba7 5081 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 5082 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 5083
4be9765d
KH
50842010-09-27 Kenichi Handa <handa@m17n.org>
5085
5086 These changes are to remove restriction on the number of glyphs in
5087 one composition.
5088
5089 * dispextern.h (struct glyph): Change the member "slice" to union.
5090 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 5091 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
5092
5093 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
5094 instead of glyph->slice.
5095 (marginal_area_string): Likewise.
5096
5097 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
5098 glyph->u.cmp.
5099 (append_composite_glyph): Likewise.
5100
5101 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
5102 glyph->u.cmp.
5103 (fill_gstring_glyph_string, x_get_glyph_overhangs)
5104 (append_composite_glyph): Likewise.
5105 (fill_image_glyph_string): Use glyph->slice.img instead of
5106 glyph->slice.
5107 (append_glyph, produce_image_glyph, append_stretch_glyph)
5108 (note_mouse_highlight): Likewise.
5109
3fad2ad2
J
51102010-09-26 Jan Djärv <jan.h.d@swipnet.se>
5111
bf05eed6
J
5112 * process.c (add_keyboard_wait_descriptor)
5113 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
5114 (wait_reading_process_output): Don't pass write_mask to select
5115 if SELECT_CANT_DO_WRITE_MASK is defined.
5116 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 5117
3fad2ad2
J
5118 * process.h (add_read_fd, delete_read_fd, add_write_fd)
5119 (delete_write_fd): Declare.
5120
5121 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
5122 (write_mask): New variable.
ef1b0ba7 5123 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 5124 (fd_callback_info): New variable.
70e31436
JB
5125 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
5126 New functions.
3fad2ad2
J
5127 (Fmake_network_process): FD_SET write_mask.
5128 (deactivate_process): FD_CLR write_mask.
5129 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
5130 check_connect removed. check_write is new. Remove references to gpm.
5131 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
5132 NON_BLOCKING_CONNECT) instead of Connecting.
5133 Loop over file descriptors and call callbacks in fd_callback_info
5134 if file descriptor is ready for I/O.
5135 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
5136 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
5137 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
5138 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
5139 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
5140 (init_process): Initialize write_mask and fd_callback_info.
5141
5142 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
5143
5144 * dbusbind.c: Include process.h.
5145 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
5146 (xd_read_message_1): New functions.
70e31436
JB
5147 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
5148 Handle watch for both read and write.
3fad2ad2
J
5149 (Fdbus_init_bus): Also register xd_toggle_watch.
5150 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5151 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
5152 to dbus_connection_flush.
70e31436 5153 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
5154 Call xd_read_message_1 until status is COMPLETE.
5155
dce4c2ac
DN
51562010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
5157
5158 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
5159 (init_tty): Reorder code to reduce the number of #ifdefs.
5160 No code changes.
dce4c2ac 5161
8af55556
TZ
51622010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
5163
5164 * process.h: Set up GnuTLS support.
5165
5166 * process.c (make_process, Fstart_process)
5167 (read_process_output, send_process): Set up GnuTLS support for
5168 process input/output file descriptors.
5169
5170 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
5171
5172 * gnutls.c: The source code for GnuTLS support in Emacs.
5173
5174 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
5175
5176 * config.in: Set up GnuTLS support.
5177
5178 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
5179 (obj, LIBES): Set up GnuTLS support.
5180
83e245c4
JB
51812010-09-26 Juanma Barranquero <lekktu@gmail.com>
5182
5183 * w32.c (get_emacs_configuration_options): Fix previous change.
5184
d24ec09a
CY
51852010-09-25 Chong Yidong <cyd@stupidchicken.com>
5186
5187 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
5188 alive before using it (Bug#6977).
5189
b7bdc47c
LMI
51902010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
5191
a952d5f3
LMI
5192 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
5193
5194 * dispextern.h: EMACS_INT/int fixup.
5195
5196 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
5197 fixup.
5198
b7bdc47c
LMI
5199 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
5200
41118bd3
EZ
52012010-09-25 Eli Zaretskii <eliz@gnu.org>
5202
2452438f
EZ
5203 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
5204 (Fselect_window, window_scroll_pixel_based)
5205 (window_scroll_line_based, Frecenter, Fset_window_configuration):
5206 Use EMACS_INT for buffer positions.
5207
5208 * textprop.c (validate_interval_range, interval_of)
5209 (property_change_between_p, Fadd_text_properties)
5210 (set_text_properties_1, Fremove_text_properties)
5211 (Fremove_list_of_text_properties, Ftext_property_any)
5212 (Ftext_property_not_all, copy_text_properties)
5213 (text_property_list, extend_property_ranges)
5214 (verify_interval_modification): Use EMACS_INT for buffer
5215 positions.
5216
f877c546
EZ
5217 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
5218 for buffer positions.
5219
5220 * process.c (read_process_output, send_process)
5221 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
5222 and string positions and size.
5223
da43f021
EZ
5224 * print.c (print_object, print_string, strout): Use EMACS_INT for
5225 string indices.
5226
5227 * minibuf.c (string_to_object): Use EMACS_INT for string position
5228 and size.
5229
5230 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
5231
5232 * lread.c <read_from_string_index, read_from_string_index_byte>
5233 <read_from_string_limit, readchar_count>: Define EMACS_INT.
5234 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
5235 buffer positions and string length.
5236
41118bd3
EZ
5237 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
5238 EMACS_INT.
5239 (echo_truncate, adjust_point_for_property, read_char)
5240 (gen_help_event, make_lispy_event, modify_event_symbol)
5241 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
5242 for buffer positions and string length.
5243
5244 * keyboard.h (gen_help_event): Adjust prototype.
5245
5246 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
5247
5248 * commands.h <last_point_position>: Declare EMACS_INT.
5249
5250 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
5251 (truncate_echo_area): Accept EMACS_INT argument.
5252
5253 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
5254
5255 * lisp.h (truncate_echo_area): Adjust prototype.
5256
5257 * composite.c (composition_adjust_point): Return EMACS_INT.
5258
5259 * composite.h (composition_adjust_point): Adjust prototype.
5260
ba3033ee
JB
52612010-09-25 Juanma Barranquero <lekktu@gmail.com>
5262
5263 * process.c (Fmake_network_process): When arg :host is 'local,
5264 use address 127.0.0.1, not name "localhost". (Bug#6781)
5265
4f3a2f8d
EZ
52662010-09-24 Eli Zaretskii <eliz@gnu.org>
5267
5816888b
EZ
5268 * indent.c (Fcurrent_indentation, indented_beyond_p)
5269 (compute_motion): Use EMACS_INT for buffer position variables.
5270
5271 * lisp.h (indented_beyond_p): Adjust prototype.
5272
5273 * buffer.c (overlay_strings): Return EMACS_INT.
5274
5275 * buffer.h (overlay_strings): Adjust prototype.
5276
5277 * region-cache.c (pp_cache): Adjust format to arguments.
5278
5279 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
5280 (call_debugger): Use EMACS_INT for specpdl_size related variables.
5281 (verror): Use EMACS_INT for size of allocated buffer.
5282
ace1712c
EZ
5283 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
5284 positions.
5285
5286 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
5287 (set_cursor_from_row, find_first_unchanged_at_end_row):
5288 Use EMACS_INT for buffer positions.
ace1712c 5289
f5276b75 5290 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
5291
5292 * dispnew.c (increment_matrix_positions)
5293 (increment_row_positions, copy_glyph_row_contents)
5294 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
5295 positions.
5296
5297 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
5298 (increment_matrix_positions, increment_row_positions):
5299 Adjust prototypes.
ace1712c
EZ
5300
5301 * data.c (Faref, Faset): Use EMACS_INT for string length and
5302 positions.
5303
5304 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
5305 characters to insert.
5306
5307 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
5308 position and size.
5309
4f3a2f8d
EZ
5310 * syntax.c (scan_words, update_syntax_table)
5311 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
5312 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
5313 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
5314
5315 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
5316
5317 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
5318 positions.
5319
db063399
LMI
53202010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
5321
f0812d35
LMI
5322 * scroll.c (calculate_scrolling, line_ins_del)
5323 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
5324 conversion.
5325
f5c7fc27
LMI
5326 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
5327 (region_cache_backward, region_cache_forward)
5328 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
5329 conversion.
5330
db063399
LMI
5331 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5332
5333 * eval.c (verror): Fix EMACS_INT/int conversion.
5334
07914cd0 5335 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
5336 (print_preprocess, print_check_string_charset_prop)
5337 (print_object): Fix EMACS_INT/int conversion.
5338
5339 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5340
e6d4aefa
EZ
53412010-09-24 Eli Zaretskii <eliz@gnu.org>
5342
69481da7
EZ
5343 * callproc.c (Fcall_process): Use EMACS_INT for count of
5344 characters read from the subprocess.
5345
61bfec98
EZ
5346 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
5347 positions.
5348 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
5349 positions.
5350
145582a0
EZ
5351 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
5352 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
5353 length.
5354 (advance_to_char_boundary, Fset_buffer_multibyte)
5355 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
5356 (overlay_touches_p, record_overlay_string, overlay_strings)
5357 (recenter_overlay_lists, fix_start_end_in_overlays)
5358 (modify_overlay, Fmove_overlay, report_overlay_modification)
5359 (evaporate_overlays): Use EMACS_INT for buffer positions.
5360
bba3e508
SM
5361 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
5362 Adjust prototypes.
145582a0 5363
446470a9
EZ
5364 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
5365 positions.
5366
e6d4aefa
EZ
5367 * fns.c (Fcompare_strings, Fstring_lessp, concat)
5368 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
5369 (Fsubstring_no_properties, substring_both, Ffillarray)
5370 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
5371 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
5372 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
5373 (Fmd5): Use EMACS_INT for buffer and string positions and length
5374 variables and arguments.
5375
5376 * lisp.h (substring_both): Adjust prototype.
5377
eb652396
JB
53782010-09-24 Juanma Barranquero <lekktu@gmail.com>
5379
5380 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
5381 * w32fns.c (clipboard_sequence_fn): Don't declare.
5382 (globals_of_w32fns): Don't initialize it.
5383
266a86bd 53842010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
5385
5386 * syntax.c (back_comment): Detect the case where a 1-char comment
5387 starter is also the 2nd char of a 2-char comment ender.
5388
266a86bd 53892010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
5390
5391 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
5392
40283062
LMI
53932010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5394
db063399
LMI
5395 * eval.c (verror): EMACS_INT/int cleanup.
5396
faf8b5bc
LMI
5397 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
5398 unwind_protect more than 2GB worth of functions.
5399
5400 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
5401
40283062
LMI
5402 * lisp.h: Have oblookup take EMACS_INT to allow interning big
5403 string and avoid compiler warnings.
5404 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
5405 all users.
5406
5407 * lread.c (oblookup): EMACS_INT/int cleanup.
5408
5409 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
5410
fe3537c3
EZ
54112010-09-23 Eli Zaretskii <eliz@gnu.org>
5412
5413 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
5414
5415 * lisp.h (clip_to_bounds): Adjust prototype.
5416
5417 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
5418
0350982f
LMI
54192010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5420
84c9ce05
LMI
5421 * lisp.h: doprnt.c EMACS_INT/int cleanup.
5422
5423 * doprnt.c (doprnt): EMACS_INT/int cleanup.
5424
5425 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
5426 cleanup.
5427
0350982f
LMI
5428 * lisp.h: Change the definition of all marker.c functions that
5429 take and return buffer stuff to be EMACS_INT instead of int.
5430
5431 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
5432 (buf_charpos_to_bytepos, bytepos_to_charpos)
5433 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
5434 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
5435 for all buffer positions.
5436
c50bd0d2
CY
54372010-09-23 Chong Yidong <cyd@stupidchicken.com>
5438
5439 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5440 (split_interval_right, find_interval, next_interval)
5441 (delete_node, delete_interval, interval_deletion_adjustment)
5442 (adjust_intervals_for_deletion, merge_interval_right)
5443 (merge_interval_left, graft_intervals_into_buffer)
5444 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
5445
5446 * intervals.h (traverse_intervals): Update prototype.
5447
14162469
EZ
54482010-09-23 Eli Zaretskii <eliz@gnu.org>
5449
c098fdb8
EZ
5450 * indent.c (compute_motion): Use EMACS_INT for arguments to
5451 region_cache_forward.
5452
bba3e508
SM
5453 * region-cache.c (struct boundary, struct region_cache):
5454 Use EMACS_INT for positions.
c098fdb8
EZ
5455 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
5456 (delete_cache_boundaries, set_cache_region)
5457 (invalidate_region_cache, know_region_cache)
bba3e508
SM
5458 (region_cache_forward, region_cache_backward, pp_cache):
5459 Use EMACS_INT for buffer positions.
c098fdb8
EZ
5460
5461 * region-cache.h (know_region_cache, invalidate_region_cache)
5462 (region_cache_forward, region_cache_backward): Adjust prototypes.
5463
5464 * search.c (string_match_1, fast_c_string_match_ignore_case)
5465 (looking_at_1, scan_buffer, scan_newline)
5466 (find_next_newline_no_quit, find_before_next_newline)
5467 (search_command, trivial_regexp_p, search_buffer, simple_search)
5468 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
5469 and string positions and length.
5470
caefdbe7
EZ
5471 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
5472 (find_before_next_newline): Adjust prototypes.
c098fdb8 5473
29cdc13e
EZ
5474 * editfns.c (transpose_markers, update_buffer_properties)
5475 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
5476 (get_pos_property, Fconstrain_to_field)
5477 (Fline_beginning_position, Fline_end_position, Fprevious_char)
5478 (Fchar_after, Fchar_before, Finsert_char)
5479 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
5480 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
5481 Use EMACS_INT for buffer and string position variables.
c098fdb8 5482 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
5483
5484 * lisp.h (clip_to_bounds): Adjust prototype.
5485
e79123aa
EZ
5486 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5487 (balance_an_interval, split_interval_right, split_interval_left)
5488 (find_interval, next_interval, update_interval)
5489 (adjust_intervals_for_insertion, delete_node, delete_interval)
5490 (interval_deletion_adjustment, adjust_intervals_for_deletion)
5491 (offset_intervals, merge_interval_right, merge_interval_left)
5492 (graft_intervals_into_buffer, adjust_for_invis_intang)
5493 (move_if_not_intangible, get_local_map, copy_intervals)
5494 (copy_intervals_to_string, compare_string_intervals)
5495 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 5496 and for interval tree size.
e79123aa
EZ
5497
5498 * intervals.h (traverse_intervals, split_interval_right)
5499 (split_interval_left, find_interval, offset_intervals)
5500 (graft_intervals_into_buffer, copy_intervals)
5501 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
5502 (update_interval): Adjust prototypes.
5503
579c18d0
EZ
5504 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
5505 Use EMACS_INT for buffer position variables and arguments.
5506
5507 * composite.c (get_composition_id, find_composition)
5508 (run_composition_function, compose_text)
5509 (composition_gstring_width, autocmp_chars)
5510 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
5511 for buffer positions and string length variables and arguments.
5512
5513 * composite.h (get_composition_id, find_composition, compose_text)
5514 (composition_gstring_width): Adjust prototypes.
5515
5516 * editfns.c (Fformat): Use EMACS_INT for string size variables.
5517
bba3e508
SM
5518 * xdisp.c (store_mode_line_noprop, display_mode_element):
5519 Use EMACS_INT for string positions.
579c18d0
EZ
5520
5521 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
5522 position arguments.
5523
5524 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
5525
5526 * character.c (parse_str_as_multibyte, str_as_multibyte)
5527 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 5528 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
5529 (strwidth, lisp_string_width, multibyte_chars_in_text):
5530 Use EMACS_INT for string length variables and arguments.
14162469
EZ
5531
5532 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 5533 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
5534 (c_string_width, strwidth, lisp_string_width):
5535 Adjust prototypes.
14162469 5536
579c18d0
EZ
5537 * font.c (font_intern_prop): Use EMACS_INT for string length
5538 variables.
5539
5540 * font.c (font_intern_prop): Use EMACS_INT for string length
5541 variables.
5542
14162469
EZ
5543 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
5544 variables.
5545
5546 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
5547 (Fmake_string): Protect against too large strings.
5548 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
5549 (live_misc_p): Use ptrdiff_t instead of int for pointer
5550 differences.
5551 (string_bytes, check_sblock, check_string_free_list)
5552 (allocate_string_data, compact_small_strings, Fmake_string)
5553 (Fmake_bool_vector, make_string, make_unibyte_string)
5554 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
5555 (make_specified_string_string, Fmake_list, Fmake_vector):
5556 Use EMACS_INT for string length variables and arguments.
14162469
EZ
5557 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
5558 (Fpurecopy): Use EMACS_INT for string size.
5559 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
5560 for vector size.
5561
5562 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
5563 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
5564 (make_pure_string, string_bytes, check_point_in_composition):
5565 Adjust prototypes.
14162469 5566
c8a66ab8
EZ
55672010-09-22 Eli Zaretskii <eliz@gnu.org>
5568
5569 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
5570 (check_translation): Use EMACS_INT for buffer positions and
5571 length.
5572
5573 * undo.c (record_marker_adjustment, record_delete)
5574 (record_change, record_point, record_insert)
5575 (record_property_change, Fprimitive_undo): Use EMACS_INT for
5576 buffer positions.
5577
5578 * lisp.h (record_marker_adjustment, record_delete)
5579 (record_change, record_point, record_insert)
5580 (record_property_change, Fprimitive_undo): Adjust prototypes.
5581
38c54d9d
JB
55822010-09-22 Juanma Barranquero <lekktu@gmail.com>
5583 Eli Zaretskii <eliz@gnu.org>
5584
5585 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
5586
413d18e7
EZ
55872010-09-22 Eli Zaretskii <eliz@gnu.org>
5588
5589 * minibuf.c (Fminibuffer_contents)
5590 (Fminibuffer_contents_no_properties)
5591 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
5592 positions.
5593
5594 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
5595 mark.
5596
5597 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
5598 (allocate_string_data): Accept EMACS_INT for string length.
5599
5600 * editfns.c (Ffield_string, Ffield_string_no_properties)
5601 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
5602 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
5603 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
5604 (Ffield_end): Use EMACS_INT for buffer positions.
5605
5606 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
5607 point with mark.
5608
5609 * lisp.h (allocate_string_data, make_uninit_string)
5610 (make_uninit_multibyte_string, make_buffer_string)
5611 (make_buffer_string_both): Adjust prototypes.
5612
4b9832a6
CY
56132010-09-22 Chong Yidong <cyd@stupidchicken.com>
5614
5615 * xml.c: Switch to GNU indentation.
5616 (make_dom): Change parse tree format to match xml.el.
5617 (Fxml_parse_html_string_internal): Rename from html-parse-string.
5618 (Fxml_parse_string_internal): Rename from xml-parse-string.
5619
86282aab
KH
56202010-09-22 Kenichi Handa <handa@m17n.org>
5621
5622 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
5623 only if we are not at a composition.
5624 (set_iterator_to_next): Give it->end_charpos to
5625 composition_compute_stop_pos.
5626 (set_iterator_to_next, next_element_from_buffer): Likewise.
5627
5628 * dispnew.c (buffer_posn_from_coords): Fix position when the
5629 current display element is a grapheme cluster in bidi-reordered
5630 region.
5631
840b985a
AR
56322010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
5633
5634 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
5635 the regions may overlap.
5636
5bc88f4b
JB
56372010-09-21 Juanma Barranquero <lekktu@gmail.com>
5638
5639 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
5640
92bc9a36
DN
56412010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5642
d19e096e
DN
5643 * emacs.c: Do not include sys/ioctl.h, not needed.
5644
92bc9a36
DN
5645 * doprnt.c: Do not include stdlib.h, config.h does it.
5646 Move #include before macro definition.
5647
15f844ac
DN
56482010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
5649
48e24408
DN
5650 * Makefile.in (temacs): Link using $(CC) not $(LD).
5651 (LD_FIRSTFLAG): Define using autoconf.
5652 (LD): Remove.
5653
65539506
DN
5654 Remove HAVE_TERMIOS definitions.
5655 * s/usg5-4-common.h (HAVE_TERMIOS):
5656 * s/template.h (HAVE_TERMIOS):
5657 * s/gnu-linux.h (HAVE_TERMIOS):
5658 * s/darwin.h (HAVE_TERMIOS):
5659 * s/cygwin.h (HAVE_TERMIOS):
5660 * s/bsd-common.h (HAVE_TERMIOS):
5661 * s/aix4-2.h (HAVE_TERMIOS):
5662 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
5663 defined on all non-MS platforms.
5664 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
5665
15f844ac
DN
5666 * xterm.c (xt_action_hook): Use const.
5667
7d701334
JB
56682010-09-20 Juanma Barranquero <lekktu@gmail.com>
5669
5670 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
5671 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5672 (gethostname) [!HAVE_SOCKETS]: Remove.
5673 (SOCK_REPLACE_HANDLE): Remove macro.
5674 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
5675 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
5676 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5677 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
5678
f3ec267a
EZ
56792010-09-18 Eli Zaretskii <eliz@gnu.org>
5680
5681 * deps.mk (xml.o): Add dependencies.
5682
93acd23d
JB
5683 * xdisp.c (Fcurrent_bidi_paragraph_direction):
5684 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
5685
5686 * bidi.c (bidi_paragraph_init): Accept an additional argument
5687 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
5688 search back until a paragraph with a strong directional character
5689 is found, and use that to determine paragraph's base direction.
5690
5691 * dispextern.h (bidi_paragraph_init): Update prototype.
5692
69e847be
EZ
56932010-09-17 Eli Zaretskii <eliz@gnu.org>
5694
5695 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
5696 of w32api >= 3.15. (Bug#6989)
5697
283357a7
LMI
56982010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
5699
5700 * process.c (wait_reading_process_output): Don't message about
5701 accept-process-output unless the time limit really is zero.
5702
4ddb20d6
SM
57032010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5704
5705 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
5706 int/Lisp_Object mixup).
5707
e24ad6dd
J
57082010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5709
5710 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
5711 not HELP.
5712
fb0cf781
J
57132010-09-17 Stephen Berman <stephen.berman@gmx.net>
5714
5715 * frame.c (Ftool_bar_pixel_width): New function to expose tool
5716 bar's pixel width to Lisp (Bug#7048).
5717
4ddb20d6
SM
57182010-09-14 Juanma Barranquero <lekktu@gmail.com>
5719
5720 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 5721
318a04c6
J
57222010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5723
5724 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
5725 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
5726
78a21772
KH
57272010-09-17 Kenichi Handa <handa@m17n.org>
5728
5729 * ftfont.c (ftfont_check_otf): Fix previous change.
5730
fa3f6039
KH
57312010-09-14 Kenichi Handa <handa@m17n.org>
5732
5733 * ftfont.c (ftfont_check_otf): Fix the case of checking just
5734 existence of GSUB or GPOS.
5735
2b5491fa
JB
57362010-09-14 Juanma Barranquero <lekktu@gmail.com>
5737
5738 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5739
c97c655f
LMI
57402010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
5741
ef1b0ba7 5742 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
5743 what it does.
5744 (parse_string): Return nil when the document can't be parsed.
5745
6664fc59 57462010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
5747
5748 * xterm.c (get_current_vm_state): New function.
5749 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
5750 want_fullscreen so set_wm_state calls are few (Bug#7013).
5751 (x_handle_net_wm_state): Move code to get_current_vm_state and
5752 call that function.
5753
6664fc59 57542010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
5755
5756 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
5757
6664fc59 57582010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
5759
5760 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
5761 we may use designation or locking-shift.
5762
6664fc59 57632010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
5764
5765 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
5766 sequence when the source is multibyte.
5767
1da70e99
AS
57682010-09-14 Andreas Schwab <schwab@linux-m68k.org>
5769
6664fc59
JB
5770 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
5771 Don't make first argument optional. Doc fix.
1da70e99 5772
26632d8d
LMI
57732010-09-14 Leo <sdl.web@gmail.com> (tiny change)
5774
5775 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
5776 parameters for the doc string.
5777
21fa8e37
LMI
57782010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
5779
5780 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
5781
5616cc54
SM
57822010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5783
5784 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
5785 (syms_of_fns): Don't defsubr Sy_or_n_p.
5786 * lisp.h: Don't declare Fy_or_n_p.
5787 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
5788
381408e2
LMI
57892010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
5790
5791 * xml.c (Fxml_parse_buffer): New function to parse XML files.
5792
57932010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
5794
5795 * xml.c: New file.
5796 (Fhtml_parse_buffer): New function to interface to the libxml2
5797 html parsing function.
5798
733946e7
JB
57992010-09-05 Juanma Barranquero <lekktu@gmail.com>
5800
5801 * biditype.h: Regenerate.
5802
7574650a
AS
58032010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5804
5805 * nsimage.m (ns_load_image): Check argument types.
5806
5807 * image.c: Remove all uses of gcpro.
5808 (xpm_load): Check all lisp types.
5809 (pbm_load): Likewise.
5810 (png_load): Likewise.
5811 (jpeg_load): Likewise.
5812 (tiff_load): Likewise.
5813 (gif_load): Likewise.
5814 (imagemagick_load_image): Likewise.
5815 (imagemagick_load): Likewise.
5816 (svg_load): Likewise.
5817 (gs_load): Likewise.
5818
6e6b8e25
EZ
58192010-09-04 Eli Zaretskii <eliz@gnu.org>
5820
bba3e508
SM
5821 * w32uniscribe.c (uniscribe_shape): Update commentary.
5822 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
5823 hold them in the logical order.
5824 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5825 return glyph codes in the logical order.
5826
dbfe4532
AS
58272010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5828
5829 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 5830 (imagemagick_load_image): Fix type mismatch.
5e5992c2 5831 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 5832
6d7cc563
JD
58332010-09-02 Jan Djärv <jan.h.d@swipnet.se>
5834
5835 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5836
5837 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5838
5839 * xselect.c: Remove declaration of cut-buffer objects and functions.
5840 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5841 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5842 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5843 (Fx_rotate_cut_buffers_internal): Remove.
5844 (syms_of_xselect): Remove defsubr of above.
5845 Remove intern of QCUT_BUFFERn.
5846
8f4e9110
SM
58472010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5848
5849 * cmds.c (Vblink_paren_function): Remove.
5850 (internal_self_insert): Make it insert N chars at a time.
5851 Don't call blink-paren-function.
5852 (Fself_insert_command): Adjust accordingly.
5853 (syms_of_cmds): Don't declare blink-paren-function.
5854
d419e1d9
KH
58552010-08-31 Kenichi Handa <handa@m17n.org>
5856
5857 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5858 characters.
5859
5860 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
5861 (produce_glyphs): Don't set it->char_to_display here.
5862 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
5863 (produce_special_glyphs): Set temp_it.char_to_display before
5864 calling produce_glyphs.
5865
5866 * xdisp.c (get_next_display_element): Set it->char_to_display
5867 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5868 characters.
5869 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5870 calling PRODUCE_GLYPHS.
5871 (append_space_for_newline): Save and store it->char_to_display.
5872 Set it->char_to_display before calling PRODUCE_GLYPHS.
5873 (extend_face_to_end_of_line): Set it->char_to_display before
5874 calling PRODUCE_GLYPHS.
5875 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5876 character to its byte value.
5877 (get_char_glyph_code): New function.
5878 (produce_stretch_glyph): Set it2.char_to_display too before
5879 calling x_produce_glyphs.
5880 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
5881 non-ASCII characters. Don't set it->char_to_display here.
5882 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 5883 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 5884
b819f760
SM
58852010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5886
5887 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5888
07fa68a7
CY
58892010-08-31 Chong Yidong <cyd@stupidchicken.com>
5890
5891 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5892
cd196f12
SM
58932010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
5894
5895 * marker.c (Fcopy_marker): Make the first arg optional.
5896
49a752bb
KH
58972010-08-30 Kenichi Handa <handa@m17n.org>
5898
5899 * composite.c (composition_update_it): Fix computing of
5900 cmp_it->width.
5901
769ae9e1
KH
59022010-08-29 Kenichi Handa <handa@m17n.org>
5903
9e69cb05 5904 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 5905 corresponding bytes.
9e69cb05 5906
4520b858
J
59072010-08-29 Jan Djärv <jan.h.d@swipnet.se>
5908
5909 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
5910
fe50eb41
KH
59112010-08-26 Kenichi Handa <handa@m17n.org>
5912
5913 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
5914 on calling composition_compute_stop_pos.
5915
f6aa6ec6
KH
59162010-08-25 Kenichi Handa <handa@m17n.org>
5917
9dfdbc0a
KH
5918 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
5919 :otf.
5920
f6aa6ec6
KH
5921 * composite.c (composition_compute_stop_pos): Don't break
5922 composition at PT.
5923 (composition_reseat_it): Likewise. Fix calculation of character
5924 position starting a composition.
5925 (Fcomposition_get_gstring): Don't limit the number of components
5926 for automatic composition.
5927
ff94e32c
KH
59282010-08-25 Kenichi Handa <handa@m17n.org>
5929
5930 * composite.c (composition_compute_stop_pos): In forward search,
5931 pay attention to the possibility that some character after ENDPOS
5932 will be composed with charactrs before ENDPOS.
5933
1c409d0b
CY
59342010-08-24 Chong Yidong <cyd@stupidchicken.com>
5935
5936 * keyboard.c (command_loop_1): Don't clobber primary selection
5937 during handle-switch-frame (Bug#6872).
5938
0c372655
MA
59392010-08-23 Michael Albinus <michael.albinus@gmx.de>
5940
5941 * dbusbind.c: Accept UNIX domain sockets as bus address.
5942 (Fdbus_close_bus): New function.
5943 (Vdbus_registered_buses): New variable.
5944 (xd_initialize): Implement string as bus address.
5945 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5946 (Fdbus_get_unique_name, Fdbus_call_method)
5947 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5948 (Fdbus_method_error_internal, Fdbus_send_signal)
5949 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
5950 check. This is done in xd_initialize_bus. Adapt doc string, if
5951 necessary.
5952 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
5953 Vdbus_registered_buses.
5954 (Vdbus_registered_objects_table): Create hash.
5955
7133b7ee
JL
59562010-08-22 Juri Linkov <juri@jurta.org>
5957
5958 * keyboard.c (Fexecute_extended_command): Move reading a command name
5959 with `completing-read' to a new Elisp function `read-extended-command'.
5960 Call it to read a command to `function' (bug#5364, bug#5214).
5961
198a7a97
CY
59622010-08-22 Chong Yidong <cyd@stupidchicken.com>
5963
5964 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
5965
b0126eac 59662010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
5967
5968 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
5969 instead of SAFE_ALLOCA.
5970
b0126eac 59712010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
5972
5973 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
5974 (Bug#6214).
5975
b0126eac 59762010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
5977
5978 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
5979
b0126eac
CY
59802010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5981
5982 * doc.c (Fsnarf_documentation): Initialize skip_file before
5983 build-files test.
5984
692f3ddc 59852010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 5986
692f3ddc
JB
5987 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
5988 New definitions.
b0126eac
CY
5989 (HAVE_TERMIO): Remove.
5990
5f2f0bc1
EZ
59912010-08-22 Eli Zaretskii <eliz@gnu.org>
5992
b613941b
EZ
5993 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
5994
a583bbef
EZ
5995 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
5996 for w32.
5997
5998 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
5999 it's done in nt/config.nt.
6000
6001 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
6002
5f2f0bc1
EZ
6003 * unexcoff.c (report_error, make_hdr, write_segment)
6004 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
6005 Convert argument lists and prototypes to ANSI C.
6006 (make_hdr, write_segment): Remove unused variables.
6007 (unexec): Remove commented-out line. Initialize `new' to shut up
6008 compiler warnings.
6009
a7ebc409
DN
60102010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
6011
6012 Simplify termio code.
6013 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
6014 HAVE_TERMIO code is obsolete.
6015 Replace HAVE_TERMIOS conditionals with !DOS_NT.
6016 * systty.h: Do not define HAVE_TCATTR.
6017 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
6018 Do not define EMACS_HAVE_TTY_PGRP. Only define
6019 EMACS_GET_TTY_PGRP for !DOS_NT.
6020 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
6021 sys/ioctl.h and termios.h, systty.h does it.
6022 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
6023 (init_baud_rate): Remove HAVE_TERMIO code.
6024 (child_setup_tty): Remove HAVE_TERMIO code.
6025 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
6026 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
6027 (new_ltchars, new_tchars): Remove, unused.
6028 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
6029 code. Remove special casing for __mips__, it was a no-op.
6030 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
6031 (init_sys_modes): Remove HPUX special case.
6032 * process.c: Include stdlib.h unconditionally. Do not include
6033 fcntl.h, systty.h does it. Remove conditional code for
6034 HAVE_SERIAL, it is always true.
6035 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
6036 always true when SIGNALS_VIA_CHARACTERS is true.
6037 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
6038 !WINDOWSNT means HAVE_TERMIOS.
6039 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
6040 conditional, which is true for all HAVE_TERMIOS systems.
6041 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
6042 instead of HAVE_TERMIOS.
6043 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
6044 EMACS_HAVE_TTY_PGRP.
6045 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
6046 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
6047 anyway.
6048
914f049b 60492010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
6050
6051 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
6052 mirroring pixel positions.
6053
d931da8c
DN
60542010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
6055
b5c76d0c
DN
6056 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
6057 write only.
6058 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
6059 malloc_sbrk_used, nothing uses them.
6060
74815588
DN
6061 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
6062 defined, unconditionally defined in lisp.h.
6063
f5817d1c
DN
6064 * term.c: Do not include <termios.h>, systty.h does it.
6065
d931da8c
DN
6066 * s/unixware.h (HAVE_TCATTR):
6067 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
6068 systty.h defines it when HAVE_TERMIOS is defined.
6069
ff2de6d2 60702010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 6071
b43c883c 6072 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 6073 terminals: add one-character offset for R2L lines.
b43c883c 6074
491a1546
EZ
6075 * emacs.c <emacs_version>: Add a comment regarding
6076 msdos/mainmake.v2's dependency on the syntax of this declaration.
6077
2396cbba
EZ
60782010-08-20 Eli Zaretskii <eliz@gnu.org>
6079
6080 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
6081 position for R2L lines by mirroring the pixel position wrt the
6082 text are box. Improve commentary.
6083
7df6150a
AS
60842010-08-20 Andreas Schwab <schwab@linux-m68k.org>
6085
6086 * image.c (imagemagick_clear_image): Remove debugging output.
6087
a2e5caf7
SM
60882010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6089
6090 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
6091 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
6092 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
6093 self-insert-face.
6094 (syms_of_cmds): Initialize the new vars.
6095
20d60baf
JR
60962010-08-19 Jason Rumney <jasonr@gnu.org>
6097
cc477da7
JR
6098 * w32menu.c (set_frame_menubar): Remove call to undefined function.
6099
20d60baf
JR
6100 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
6101
2c0ac867
J
61022010-08-19 Jan Djärv <jan.h.d@swipnet.se>
6103
6104 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
6105
93352106
EZ
61062010-08-18 Eli Zaretskii <eliz@gnu.org>
6107
6108 * xterm.c (x_draw_bar_cursor):
6109 * w32term.c (x_draw_bar_cursor): If the character under cursor is
6110 R2L, draw the bar cursor on its right rather than on its left.
6111
c785836d
SM
61122010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
6113
0193499f
SM
6114 * eval.c (Fdefmacro): Only obey one declaration.
6115
c785836d
SM
6116 * casefiddle.c (casify_region): Setup gl_state.
6117
9cb728a5
J
61182010-08-18 Jan Djärv <jan.h.d@swipnet.se>
6119
6120 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
6121
e1e18511
J
61222010-08-18 Jan Djärv <jan.h.d@swipnet.se>
6123
1d77b63e 6124 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 6125
64cb6c78
J
61262010-08-18 David De La Harpe Golden <david@harpegolden.net>
6127
6128 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
6129 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
6130 QPRIMARY => NXPrimaryPboard.
6131 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
6132 NXPrimaryPboard => QPRIMARY.
6133 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
6134 NXSecondaryPboard = SecondarySelection.
6135 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
6136
0c9b8993
GM
61372010-08-18 Joakim Verona <joakim@verona.se>
6138
6139 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
6140 defined:
6141 (imagemagick_image_p): New function to test for ImageMagic image.
6142 (imagemagick_load): New function to load ImageMagick image.
6143 (imagemagick_load_image): New function, helper for imagemagick_load.
6144 (imagemagick-types): New function.
6145 (Qimagemagick): New Lisp_object.
6146 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 6147
c3554f68
SM
61482010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
6149
6150 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
6151 is a string.
6152
1ff2e434
J
61532010-08-17 Jan Djärv <jan.h.d@swipnet.se>
6154
6155 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
6156 x_set_tool_bar_position handler.
6157
0cc56427
EZ
61582010-08-17 Eli Zaretskii <eliz@gnu.org>
6159
6160 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
6161 x_set_tool_bar_position handler, needed to support changes from
6162 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
6163
e45a249b
JD
61642010-08-16 Jan Djärv <jan.h.d@swipnet.se>
6165
2f8f196d 6166 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
921242c6 6167 declaration (Bug#6863).
573d150b 6168 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 6169
e45a249b
JD
6170 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
6171
6172 * keyboard.h (QPRIMARY): Declare (Bug#6864).
6173
7c23dd44
CY
61742010-08-16 Chong Yidong <cyd@stupidchicken.com>
6175
6176 * keyboard.c (command_loop_1): Avoid setting selection twice,
6177 since it's done in deactivate-mark as well.
6178 (Vselect_active_regions): Change default to t. Replace `lazy'
6179 with non-default value `only', meaning only set PRIMARY for
6180 temporarily active regions.
6181
6182 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
6183 select-active-regions.
6184
0005830c
J
61852010-08-15 Jan Djärv <jan.h.d@swipnet.se>
6186
6187 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
6188 isn't a string.
6189
603dfc72
AS
61902010-08-15 Andreas Schwab <schwab@linux-m68k.org>
6191
6192 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
6193
c25ce9d0
J
61942010-08-15 Jan Djärv <jan.h.d@swipnet.se>
6195
c3554f68
SM
6196 * keyboard.c (parse_tool_bar_item): malloc buf.
6197 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
6198 new_lbl (Bug#6855).
c25ce9d0 6199
5872c762
EZ
62002010-08-14 Eli Zaretskii <eliz@gnu.org>
6201
b236615c
EZ
6202 * xterm.c (x_draw_stretch_glyph_string):
6203 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
6204 the cursor on the right edge of the stretch glyph.
6205
c3554f68
SM
6206 * xdisp.c (window_box_right_offset, window_box_right):
6207 Fix commentary.
b236615c 6208
5872c762
EZ
6209 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
6210 direction when point is inside a run of whitespace characters.
6211
6212 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
6213
e66f9a1b
JR
62142010-08-14 Jason Rumney <jasonr@gnu.org>
6215
6216 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
6217
79d6f59e
CY
62182010-08-14 Chong Yidong <cyd@stupidchicken.com>
6219
6220 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
6221
1c9b4129
JR
62222010-08-13 Jason Rumney <jasonr@gnu.org>
6223
6224 * w32menu.c (simple_dialog_show): Use unicode message box if available.
6225 (MessageBoxW_Proc): New function typedef.
6226 (unicode-message-box): New function pointer.
2f8f196d 6227 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1c9b4129 6228
2b4e6277
J
62292010-08-13 Jan Djärv <jan.h.d@swipnet.se>
6230
6231 * frame.h (Qtool_bar_position): Declare.
6232
6233 * xfns.c (Fx_create_frame): Call x_default_parameter for
6234 Qtool_bar_position.
6235
94c97d85
EZ
62362010-08-13 Eli Zaretskii <eliz@gnu.org>
6237
8ee81892
EZ
6238 * unexcoff.c: Remove the parts used when "emacs" is not defined.
6239 (report_error, report_error_1): Ditto.
6240 (write_segment): Remove "#if 0" unused code.
6241 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
6242 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
6243 (start_of_text): Remove unused function (was used only if NO_REMAP
6244 was NOT defined).
6245
891ef8f7
EZ
6246 * msdos.c (IT_set_face): Fix format string to match argument
6247 types.
6248 (IT_write_glyphs, IT_note_mode_line_highlight)
6249 (IT_set_frame_parameters): Remove unused variables.
6250 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
6251 (IT_set_terminal_modes): Disambiguate expression in if clause.
6252 (Fmsdos_remember_default_colors): Return Qnil.
6253 (IT_set_frame_parameters): Add parens to disambiguate boolean
6254 expression for logging the cursor type to termscript.
6255 (keyboard_layout_list, keypad_translate_map)
6256 (grey_key_translate_map): Add braces in inner initializers.
6257 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
6258 (dos_rawgetc): Remove unused label.
6259 (XMenuActivate): Add braces to remove ambiguous `else'.
6260 (dos_ttraw): Always return a value.
6261 (spawnve): Declare.
6262 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
6263
6264 * dosfns.h (x_set_title): Declare.
6265
6266 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
6267 Remove unused variables.
6268
6269 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
6270 variables.
6271 (init_dosfns): Declare get_lim_data.
6272 (system_process_attributes): Declare Fget_internal_run_time.
6273
38e41e0e
EZ
6274 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
6275 list to be consistent with menu.h.
6276
94c97d85
EZ
6277 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
6278 warnings due to mixing of "char *" and "const char *".
6279
c5683ceb
SM
62802010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6281
6282 Introduce a new comment style "c" flag.
6283 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
6284 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
6285 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
6286 (syntax_prefix_flag_p): New function.
6287 (Fstring_to_syntax): Understand new "c" flag.
6288 (Finternal_describe_syntax_value): Recognize new flag; use the
6289 SYNTAX_FLAGS_* macros.
6290 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
6291 comment style to accomodate the new styles.
6292 (back_comment, forw_comment, Fforward_comment, scan_lists)
6293 (scan_sexps_forward): Update code to obey the new comment style flag.
6294
6295 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
6296
6297 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
6298
7aee76f4
J
62992010-08-11 Jan Djärv <jan.h.d@swipnet.se>
6300
3a46642b
J
6301 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
6302 first.
94dff98f 6303 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
6304
6305 * gtkutil.h (xg_check_special_colors): Declare.
6306
6307 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
6308 (xg_create_frame_widgets): Connect theme name changes to
6309 style_changed_cb.
6310
42ca4633
J
6311 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
6312 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
6313 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 6314 string literal. file is const char*.
42ca4633
J
6315
6316 * xsmfns.c (NOSPLASH_OPT): Change to char[].
6317 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
6318 props. Free them at the end.
6319
6320 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
6321
c5683ceb
SM
6322 * xrdb.c (get_system_app): Make path const and use char *p for
6323 non-const char.
42ca4633
J
6324
6325 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 6326 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
6327 char *.
6328 (button_names): Is const char *.
6329 (xdialog_show): error_name and pane_string is const.
6330
6331 * process.h (synch_process_death): Is const char*.
6332
6333 * w32menu.c (w32_menu_show):
6334 * nsmenu.m (ns_menu_show): error parameter is const char **.
6335
6336 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
6337 is const char **.
6338
6339 * menu.c (Fx_popup_menu): error_name is const.
6340
6341 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
6342 with unsigned char and XtPointer with void *.
6343
6344 * gtkutil.h: Replace widget_value with struct _widget_value.
6345 (enum button_type, struct _widget_value): Remove and use the one from
6346 keyboard.h.
6347
6348 * gtkutil.c (get_utf8_string): Always return an allocated string.
6349 Parameter is const.
6350 (create_dialog, xg_create_one_menuitem, create_menus)
6351 (xg_item_label_same_p, xg_update_menu_item): Free result from
6352 get_utf8_string.
6353 (xg_separator_p, xg_item_label_same_p): label is const.
6354
6355 * font.h (font_open_by_name): Make name const.
6356
6357 * font.c (font_open_by_name): Make name const.
6358
6359 * floatfns.c (matherr): Use a const char* variable for x->name.
6360
6361 * emacs.c (main): Pass char[] to putenv instead of literal.
6362
6363 * callproc.c (synch_process_death): Make const.
6364 (Fcall_process): Make signame const.
6365
9c5bd55a
J
6366 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
6367 (addDisplayItemWithImage): Use const char*.
6368
6369 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
6370 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
6371
6372 * nsfont.m (ns_descriptor_to_entity): Use const char*.
6373
6374 * keyboard.h (_widget_value): name, value and key are const char*.
6375
7aee76f4
J
6376 * unexmacosx.c (unexec_error): Use const char *.
6377
09d93395
DN
63782010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6379
6380 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 6381 (font_parse_name, font_open_by_name):
09d93395 6382 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 6383 (font_parse_name, font_open_by_name): Remove const.
09d93395 6384
671d409f
AS
63852010-08-09 Andreas Schwab <schwab@linux-m68k.org>
6386
6387 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
6388 definition.
6389
6390 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
6391 * m/amdx86-64.h: Likewise.
6392 * m/arm.h: Likewise.
6393 * m/hp800.h: Likewise.
6394 * m/ia64.h: Likewise.
6395 * m/ibmrs6000.h: Likewise.
6396 * m/ibms390.h: Likewise.
6397 * m/intel386.h: Likewise.
6398 * m/iris4d.h: Likewise.
6399 * m/m68k.h: Likewise.
6400 * m/macppc.h: Likewise.
6401 * m/mips.h: Likewise.
6402 * m/sh3.h: Likewise.
6403 * m/sparc.h: Likewise.
6404 * m/template.h: Likewise.
6405 * m/vax.h: Likewise.
6406 * m/xtensa.h: Likewise.
6407 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
6408 WORDS_BIG_ENDIAN.
6409 * lisp.h: Likewise.
6410 * md5.c: Likewise.
6411 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
6412
8ea90aa3
DN
64132010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6414
6415 Use const char* instead of char*.
6416 Reduce the number of warnings with -Wwrite-strings.
6417 * xrdb.c (get_environ_db, get_system_name):
6418 * unexelf.c (find_section):
6419 * term.c (string_cost, string_cost_one_line, per_line_cost)
6420 (get_named_tty, init_tty):
6421 * sysdep.c (sys_subshell):
6422 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
6423 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
6424 * search.c (Freplace_match):
6425 * process.c (Fmake_network_process, send_process, init_process):
6426 * lread.c (Fload, init_lread):
6427 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
6428 * keyboard.c (parse_tool_bar_item, struct event_head):
6429 * gtkutil.h (xg_get_font_name):
6430 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
6431 (make_widget_for_menu_item, make_menu_item, create_menus)
6432 (xg_make_tool_item):
6433 * font.c (parse_matrix, font_parse_name):
6434 * floatfns.c (rounding_driver, float_error_fn_name):
6435 * filelock.c (get_boot_time_1, lock_file_1):
6436 * fileio.c (barf_or_query_if_file_exists, check_writable):
6437 * editfns.c (get_system_name, get_operating_system_release)
6438 (Fencode_time, Fset_time_zone_rule):
6439 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
6440 * buffer.c (defvar_per_buffer): Use const.
6441
7815fe19 64422010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 6443
692f3ddc 6444 * charset.c: Include <stdlib.h>.
7a84eee5
KH
6445 (struct charset_sort_data): New struct.
6446 (charset_compare): New function.
692f3ddc 6447 (Fsort_charsets): New function.
7a84eee5
KH
6448 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
6449
6450 * coding.c (decode_coding_iso_2022): Fix checking of dimension
6451 number in CTEXT extended segment.
6452
7815fe19 64532010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
6454
6455 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
6456 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
6457
7815fe19 64582010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
6459
6460 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
6461 (Fhash_table_size): Fix typos in docstrings.
6462 (Fmake_hash_table): Doc fix.
6463
7815fe19 64642010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
6465
6466 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
6467 Doc fix (bug#5625).
6468
7815fe19 64692010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
6470
6471 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
6472 the MSDOS definition.
6473
1b6d8cf0
DN
64742010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
6475
675e2c69
DN
6476 Use const char* instead of char*.
6477 * xterm.c (x_create_toolkit_scroll_bar):
6478 * xfont.c (xfont_list_pattern):
6479 * xfns.c (x_default_scroll_bar_color_parameter)
6480 (xic_create_fontsetname, x_default_font_parameter)
6481 (x_screen_planes):
6482 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
6483 (store_mode_line_string, decode_mode_spec, display_string):
6484 * menu.c (digest_single_submenu):
6485 * keymap.h (initial_define_key, initial_define_lispy_key):
6486 * keymap.c (initial_define_key, initial_define_lispy_key):
6487 * image.c (image_error, image_keyword):
6488 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
6489 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
6490 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
6491 (ftfont_list, ftfont_match):
6492 * frame.c (frame_parm_table):
6493 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6494 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6495 (font_add_log, font_deferred_log):
6496 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6497 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6498 (font_add_log, font_deferred_log):
6499 * emacs.c (argmatch):
6500 * dispextern.h (struct it):
6501 * coding.c (ENCODE_DESIGNATION):
6502 * charset.c (define_charset_internal): Use const.
6503
25717ca1
DN
6504 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
6505
c5683ceb
SM
6506 * xrdb.c: Remove include guard.
6507 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
6508 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
6509 realloc->xrealloc instead of using #defines.
6510
efb41e21
EZ
65112010-08-08 Eli Zaretskii <eliz@gnu.org>
6512
cd21226d 6513 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
6514 * editfns.c (Fline_beginning_position, Fline_end_position):
6515 State in the doc strings that start and end of line are in the
6516 logical order.
cd21226d 6517
efb41e21
EZ
6518 * xdisp.c (display_line): Move the handling of overlay arrow after
6519 the call to find_row_edges. (Bug#6699)
6520
746812d9
CY
65212010-08-07 Chong Yidong <cyd@stupidchicken.com>
6522
6523 * keyboard.c (command_loop_1):
6524 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
6525
9852377f
CY
65262010-08-07 Chong Yidong <cyd@stupidchicken.com>
6527
6528 * insdel.c (prepare_to_modify_buffer): Save active region text to
6529 Vsaved_region_selection.
6530
6531 * xselect.c (QPRIMARY): Move to keyboard.c.
6532
6533 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
6534 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
6535 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 6536
0e9c8657
JB
65372010-08-07 Juanma Barranquero <lekktu@gmail.com>
6538
6539 * alloc.c (lisp_malloc):
6540 * buffer.c (set_buffer_internal, set_buffer_internal_1):
6541 * charset.h (emacs_mule_charset):
6542 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
6543 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
6544 (bitch_at_user):
6545 * lisp.h (Fcheck_coding_system, Fget_text_property)
6546 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
6547 Remove duplicate declarations.
6548
648801d1
DN
65492010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6550
32bc6709
DN
6551 * process.c: Simplify include logic.
6552
3ef1d108
DN
6553 * keyboard.h (quit_char): Add declaration.
6554 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
6555 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
6556 Add declarations.
3ef1d108
DN
6557 * sysdep.c:
6558 * w32.c: Remove the above declarations.
6559
97ec208f
DN
6560 Remove extern declarations in .c files, .h files have them.
6561 * xterm.c:
6562 * xdisp.c:
97ec208f
DN
6563 * msdos.c:
6564 * image.c:
6565 * gtkutil.c:
6566 * fileio.c:
6567 * eval.c: Remove declarations.
6568
94eed851
DN
6569 * frame.c (frame_params): Make const.
6570
36e053eb
DN
6571 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
6572
0e843971
DN
6573 * emacs.c (emacs_copyright, emacs_version): Make static.
6574 (Vinitial_window_system, Vauto_save_list_file_name)
6575 (Vinhibit_redisplay): Remove declarations.
6576 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
6577 for AIX.
6578
648801d1
DN
6579 Use const for some arrays and functions.
6580 * xterm.h (xg_set_icon_from_xpm_data):
6581 * xfns.c (xg_set_icon_from_xpm_data):
6582 * term.c (fkeys):
6583 * keyboard.c (lispy_accent_keys, lispy_function_keys)
6584 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
6585 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
6586 (frame.c frame_parms):
6587 * emacs-icon.h (gnu_xpm_bits):
6588 * callint.c (callint_argfuns): Use const.
6589
8646d999
J
65902010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6591
6592 * sysdep.c: Move include term.h last of includes (Bug#6812).
6593
cb4545ad
EZ
65942010-08-06 Eli Zaretskii <eliz@gnu.org>
6595
6596 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
6597
6598 * msdos.c (IT_display_cursor): Log cursor position on termscript.
6599
6600 * .gdbinit (pgx): Display the avoid_cursor_p flag.
6601
da7e2be6
JB
66022010-08-06 Juanma Barranquero <lekktu@gmail.com>
6603
6604 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
6605
3d608a86
J
66062010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6607
7908fb60
J
6608 * xterm.h (x_get_focus_frame): Declare.
6609
6610 * keyboard.h (poll_for_input_1): Unconditionally declare.
6611
4094bf36
J
6612 * nsterm.h (x_set_menu_bar_lines): Declare.
6613
6614 * window.c: Don't include menu.h, it depends on lots of other .h-files.
6615
3d608a86
J
6616 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
6617
6618 * window.c: Include menu.h.
6619
6620 * unexmacosx.c (print_region_list, print_regions)
6621 (build_region_list, find_emacs_zone_regions)
6622 (unexec_regions_merge, read_load_commands, dump_it)
6623 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
6624
6625 * term.c: Check HAVE_SYS_IOCTL_H.
6626
686b968e 6627 * sysdep.c: Check HAVE_TERM_H.
3d608a86 6628
686b968e 6629 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
6630
6631 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
6632 (ns_ring_bell, ns_defined_color, hide_hourglass)
6633 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
6634 Convert to ANSI C prototypes.
6635 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
6636 before code.
6637
6638 * nsterm.h : Include sysselect.h.
6639 (x_sync, x_get_focus_frame, x_set_mouse_position)
6640 (x_set_mouse_pixel_position, x_make_frame_visible)
6641 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
6642 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
6643 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
6644 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 6645 Declare.
3d608a86
J
6646
6647 * nsmenu.m (popup_activated, name_is_separator)
6648 (syms_of_nsmenu): Convert to ANSI C prototypes.
6649 (runMenuAt): Prototypes and move declarations before code.
6650
6651 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
6652
6653 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
6654 prototypes.
6655
6656 * nsfns.m (have_menus_p, ns_display_info_for_name)
6657 (x_set_cursor_type, ns_appkit_version_str)
6658 (ns_appkit_version_int, ns_do_applescript)
6659 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
6660 (syms_of_nsfns): Convert to ANSI C prototypes.
6661
6662 * menu.h (x_set_menu_bar_line): Declare.
6663 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
6664
6665 * lisp.h (fmod_float): Declare.
6666
6667 * image.c (xpm_scan, xpm_make_color_table_v)
6668 (xpm_put_color_table_v, xpm_get_color_table_v)
6669 (xpm_make_color_table_h, xpm_put_color_table_h)
6670 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
6671 (xpm_load): Convert to ANSI C prototypes.
6672
6673 * emacs.c: Include nsterm.h if HAVE_NS.
6674
6675 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
6676
fce70521
DN
66772010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6678
6679 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
6680 subprocesses, only MSDOS does not define HAVE_SOCKETS.
6681 (socket_options): Use const char* for name.
6682
a11889ab
JB
66832010-08-06 Juanma Barranquero <lekktu@gmail.com>
6684
6685 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
6686
6687 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
6688 Don't declare xmalloc_widget_value and digest_single_submenu.
6689
6690 * w32font.c (Qlatin): Remove declaration.
6691
6692 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
6693
c95b508f 6694 * dired.c (compile_pattern): Restore declaration.
a11889ab 6695
6254cdda
DN
66962010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
6697
04bab72c
DN
6698 Remove extern declarations in .c files, .h files have them.
6699 * data.c:
6700 * dired.c:
6701 * editfns.c:
6702 * filelock.c:
6703 * fns.c:
6704 * font.c:
6705 * fontset.c:
6706 * frame.c:
6707 * fringe.c:
6708 * ftfont.c:
6709 * gtkutil.c:
6710 * indent.c:
6711 * keyboard.c:
6712 * keymap.c:
6713 * lread.c:
6714 * menu.c:
6715 * print.c:
6716 * search.c:
6717 * sound.c:
6718 * window.c:
6719 * xdisp.c:
6720 * xfaces.c:
6721 * xfns.c:
6722 * xfont.c:
6723 * xftfont.c:
6724 * xmenu.c:
6725 * xterm.c: Remove declarations.
6726
dff94ed5
DN
6727 Cleanup syssignal.h.
6728 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
6729 (main_thread): Move down to remove #ifdef.
6730 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
6731 Remove conditional definition following unconditional ones.
6732
99f3388e
DN
6733 * lisp.h: Remove HAVE_SHM code, unused.
6734 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
6735 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
6736 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
6737 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
6738 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
6739 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
6740 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
6741 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
6742 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
6743 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
6744 (Qwindow_scroll_functions, Vafter_load_alist)
6745 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
6746 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
6747 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
6748 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
6749 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
6750 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
6751 (initial_argv, last_nonmenu_event, load_in_progress)
6752 (noninteractive_need_newline, scroll_margin): Add declarations.
6753
bba3e508
SM
6754 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6755 Remove declarations, menu.h has them.
99f3388e
DN
6756 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
6757 (Vinput_method_function, Qinput_method_function)
6758 (Qevent_symbol_element_mask, last_event_timestamp):
6759 * dispextern.h (Voverflow_newline_into_fringe):
6760 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
6761 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
6762 (syms_of_w32font, syms_of_nsfont):
6763 * fontset.h (find_font_encoding, Qlatin):
6764 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
6765 (Vtool_bar_mode, set_frame_menubar):
6766 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
6767 * xterm.h (Qx_gtk_map_stock):
6768 * keymap.h (meta_prefix_char): Add declarations.
6769
9f5dd6f2
DN
6770 * term.c: Remove dead code.
6771
6254cdda
DN
6772 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
6773 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
6774 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
6775 which is what was there before BSD_PGRPS was removed.
6776
29cf3e20
EZ
67772010-08-05 Eli Zaretskii <eliz@gnu.org>
6778
6779 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
6780
6781 * unexcoff.c: Renamed from unexec.c.
6782
aaa0a19a
SM
67832010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
6784
6785 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
6786
8d1d9587
JB
67872010-08-03 Johan Bockgård <bojohan@gnu.org>
6788
6789 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 6790 (Bug#6744)
8d1d9587 6791
9a747ba6
JD
67922010-08-02 Jan Djärv <jan.h.d@swipnet.se>
6793
4d464ae4
JD
6794 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
6795 to TRUE if depth of screen is < 16.
6796
ac01763e
JD
6797 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
6798 USE_GTK_TOOLTIP.
e0d62a9b
JB
6799 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
6800 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 6801 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
6802 USE_GTK_TOOLTIP.
6803 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
6804
6805 * xterm.h (USE_GTK_TOOLTIP): New define.
6806 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6807
9a747ba6
JD
6808 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6809 to Control-D (Bug#6771).
6810
7b0815ba
JB
68112010-08-02 Juanma Barranquero <lekktu@gmail.com>
6812
6813 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6814 Wording by Drew Adams <drew.adams@oracle.com>.
6815
aa1859f5
J
68162010-08-01 Jan Djärv <jan.h.d@swipnet.se>
6817
6818 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6819 ttip_lbl.
6820
6821 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6822 calling gtk_widget_queue_draw.
6823 (x_free_frame_resources): Call xg_free_frame_widgets.
6824
6825 * xfns.c (x_gtk_use_system_tooltips): New variable.
6826 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6827 new gtkutil tooltip functions to show the tooltip.
6828 (Fx_hide_tip): Call xg_hide_tooltip.
6829 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6830
6831 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6832 (xg_show_tooltip, xg_hide_tooltip): Declare.
6833
6834 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
6835 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6836 New functions.
aa1859f5
J
6837 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
6838 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
6839 Remove code that is commented out.
6840
76417ef4
SM
68412010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
6842
6843 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6844
16041401
CY
68452010-07-31 Chong Yidong <cyd@stupidchicken.com>
6846
6847 * xselect.c (x_own_selection): Use list4.
6848
2c09a58f
DN
68492010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6850
6851 * buffer.c (Qwindow): Do not define, already defined in data.c.
6852 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
6853
59df9fdd 68542010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 6855
59df9fdd
JB
6856 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6857 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6858 * config.in: Undef HAVE_DIRENT_H.
1c97e857 6859 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 6860 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 6861
1b231651
DN
68622010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6863
6864 Rename s/usg5-4.h -> s/usg5-4-common.h.
6865 * s/usg5-4.h: Rename file to ...
6866 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6867 * s/unixware.h:
6868 * s/sol2-6.h:
6869 * s/irix6-5.h: Update includes accordingly.
6870
bfeabdc3
JD
68712010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6872
2ebf1083
J
6873 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6874
bfeabdc3 6875 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
6876 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6877 Remove toolbar_height.
6878 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
6879 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6880 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6881 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6882
6883 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6884
6885 * xfns.c (x_set_tool_bar_position): New function.
6886 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6887 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 6888 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
6889
6890 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6891 and FRAME_TOOLBAR_LEFT_WIDTH.
6892
6893 * gtkutil.h (xg_change_toolbar_position): Declare.
6894
6895 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6896 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6897 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6898 (xg_create_frame_widgets): Create a hobox for placing widgets
6899 vertically. Use gtk_box_pack_start.
ef1b0ba7 6900 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
6901 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6902 (xg_update_frame_menubar, free_frame_menubar): Change to
6903 xg_height_or_width_changed.
6904 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6905 size correctly. Remove hardcoded 4, instead use handlebox size -
6906 toolbar size.
6907 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 6908 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
6909 (xg_pack_tool_bar): POS is a new parameter.
6910 Set orientation of tool bar based on pos.
6911 Only make handlebox_widget if NULL.
6912 Check if tool bar goes to vbox or hbox depending on pos.
6913 (xg_update_tool_bar_sizes): New function.
686b968e 6914 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
6915 height, call xg_update_tool_bar_sizes instead.
6916 (free_frame_tool_bar): Remove from hbox or vbox depending on
6917 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
6918 (xg_change_toolbar_position): New function.
6919
6920 * frame.h (struct frame): Add tool_bar_position.
6921 (Qbottom): Declare.
6922
6923 * frame.c (Qtool_bar_position): New variable.
6924 (make_frame): Set tool_bar_position to Qtop.
6925 (frame_parms): Add tool-bar-position.
6926 (x_report_frame_params): Store tool_bar_position.
6927 (x_set_fringe_width): Reset wm size hint after fringe changes.
6928
26469a38
DN
69292010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6930
6931 Make lisp_time_argument declaration work on all systems.
6932 * lisp.h (lisp_time_argument): Move declaration ...
6933 * systime.h (lisp_time_argument): ... here
6934 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
6935
8848b728
JD
69362010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6937
6938 * vm-limit.c (POINTER): Add typedef for it.
6939 (start_of_data): Change return type from POINTER to char *.
6940
6941 * frame.h (Qtty_color_mode): Move declaration out of ifdef
6942 HAVE_WINDOW_SYSTEM.
6943
76fd1ee9
DN
69442010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6945
0441987e
DN
6946 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6947 Remove reference to __osf__, unused.
6948
56a000c7
DN
6949 * mem-limits.h: Remove duplicated includes.
6950 (NULL): Remove definition, unused.
6951 (POINTER): Remove definition.
6952 (start_of_data): Use char* in prototype, as the function
6953 definition does.
6954
e6cba650
DN
6955 Remove extern declarations from .c files, and them to .h files.
6956 * keyboard.h (Qhelp_echo, waiting_for_input)
6957 (input_available_clear_time, ignore_mouse_drag_p)
6958 (Vdouble_click_time, real_this_command, Vthis_original_command):
6959 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
6960 (Voverriding_local_map_menu_flag):
6961 * lisp.h (Qinteractive_form, use_file_dialog)
6962 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
6963 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
6964 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6965 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
6966 (Qfunction, debug_on_next_call, Qfield)
6967 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
6968 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
6969 (Qfile_directory_p, Qinsert_file_contents)
6970 (Qcompletion_ignore_case, Qcompletion_ignore_case)
6971 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
6972 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
6973 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
6974 (Qminibuffer_prompt)
6975 (Vtemporary_file_directory,char_ins_del_vector, Qface):
6976 * xterm.h (gray_bitmap_width, gray_bitmap_height)
6977 (gray_bitmap_bits, xic_create_fontsetname):
6978 * coding.h (Vtranslation_table_for_input): Add extern declarations.
6979
6980 * xsmfns.c (Vuser_login_name):
6981 * xrdb.c (Vdouble_click_time):
6982 * xfaces.c (xic_create_fontsetname):
6983 * w32select.c (waiting_for_input):
6984 * print.c (minibuffer_auto_raise):
6985 * msdos.c (Qhelp_echo):
6986 * macros.c (real_this_command):
6987 * keymap.c (Voverriding_local_map):
6988 * xterm.c (poll_for_input_1, gray_bitmap_width)
6989 (gray_bitmap_height, gray_bitmap_bits;
6990 * xmenu.c ( Voverriding_local_map)
6991 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
6992 (use_file_dialog, Xt_app_con):
6993 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
6994 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
6995 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
6996 (Qtool_bar_lines, ignore_mouse_drag_p):
6997 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
6998 (Qrear_nonsticky, nconc2):
6999 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
7000 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
7001 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
7002 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
7003 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
7004 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
7005 (gc_in_progress):
7006 * doc.c (Voverriding_local_map, Qremap):
7007 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
7008 (Vcompletion_regexp_list):
7009 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
7010 (Qcompletion_ignore_case):
7011 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
7012 (Vhistory_length, Vthis_original_command, real_this_command)
7013 (Qface, Qminibuffer_prompt, history_delete_duplicates):
7014 * image.c (Qrisky_local_variable):
7015 * fontset.c (QCname):
7016 * fns.c (minibuffer_auto_raise, QCname):
7017 * dispnew.c (char_ins_del_cost):
7018 * composite.c (font_fill_lglyph_metrics):
7019 * cmds.c (Qface, Vtranslation_table_for_input):
7020 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
7021 * ccl.c (charset_unicode):
7022 * callproc.c (Vtemporary_file_directory):
7023 * buffer.c (emacs_strerror): Remove extern declarations.
7024
7025 * data.c (Qwindow): Make non-static, used from other files too.
7026 * frame.c (validate_x_resource_name): Remove shadow definition for i.
7027
76fd1ee9
DN
7028 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
7029 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
7030 * s/usg5-4.h (COFF):
7031 * s/template.h:
7032 * s/msdos.h (COFF, NO_REMAP):
7033 * s/ms-w32.h (NO_REMAP):
7034 * s/hpux10-20.h (NO_REMAP):
7035 * m/sparc.h (SEGMENT_MASK):
7036 * m/m68k.h (NO_REMAP):
7037 * m/intel386.h (SEGMENT_MASK):
7038 * m/arm.h (NO_REMAP):
7039 * m/alpha.h (COFF):
7040 * m/template.h: Remove references to unused defines.
7041
8a52f00a
JD
70422010-07-28 Jan Djärv <jan.h.d@swipnet.se>
7043
7044 * xsettings.c (Ftool_bar_get_system_style): Also check for
7045 Qtext_image_horiz.
7046
7047 * xdisp.c (Qtext_image_horiz): Define.
7048 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 7049 to documentation of tool-bar-style.
8a52f00a
JD
7050
7051 * lisp.h (Qtext_image_horiz): Declare.
7052
7053 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
7054 style text_image_horiz.
7055
89dc303e
DN
70562010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7057
60799703
DN
7058 * emacs.c (Fkill_emacs): Remove return statement.
7059
37254dc1
DN
7060 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
7061 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
7062 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
7063 Remove local extern declarations.
37254dc1 7064
71c7345a
DN
7065 * xmenu.c: Do not included lwlib.h, not needed.
7066
6ba577cb
DN
7067 * m/iris4d.h (XUINT, XSET): Remove, not needed.
7068
fdb183d6
DN
7069 * process.c: Move definitions earlier to minimize #ifdefs.
7070
7071 * xterm.h (x_get_customization_string, x_load_resources)
7072 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
7073 (x_check_errors, x_property_data_to_lisp, defined_color)
7074 (xic_set_xfontset, x_defined_color): Use const.
7075
7076 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
7077 (x_text_icon, x_check_errors, x_connection_closed): Use const.
7078
7079 * xselect.c (selection_data_to_lisp_data)
7080 (x_property_data_to_lisp):
7081 * xrdb.c (x_get_string_resource, file_p)
7082 (x_get_customization_string, magic_file_p, search_magic_path)
7083 (get_system_app, get_user_app, x_load_resources, x_get_resource)
7084 (x_get_string_resource): Use const.
7085
7086 * xfns.c: Include xlwmenu.h when USE_LUCID.
7087 (x_defined_color, xic_set_xfontset): Use const.
7088 (Fx_hide_tip): Remove local extern declaration.
7089
7090 * xfaces.c (Qmouse_face): Remove declaration.
7091 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 7092 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
7093
7094 * xdisp.c (do_mouse_tracking): Remove declaration.
7095 (add_to_log): Use const.
7096
7097 * minibuf.c (Qmouse_face): Remove declaration.
7098
7099 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
7100
7101 * keyboard.h (do_mouse_tracking): Add declaration.
7102
7103 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
7104 (QCdata, QCtype, Qcenter): Remove declarations.
7105
7106 * frame.c (x_get_resource_string, x_get_string_resource)
7107 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7108 (x_default_parameter): Use const.
7109
7110 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
7111 (QCheight, QCsize, QCname): Remove declarations.
7112
7113 * emacs.c (main): Remove local extern declaration.
7114
7115 * editfns.c (region_limit, syms_of_editfns): Remove local extern
7116 declarations.
7117
7118 * dispnew.c: Remove duplicate #include <unistd.h>.
7119 (update_window, update_frame_1, init_display): Remove local extern
7120 declarations.
7121
7122 * dispextern.h (add_to_log): Remove declaration.
7123 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7124 (x_frame_get_and_record_arg, x_default_parameter): Add const.
7125
7126 * dired.c (scmp): Add const.
7127 (directory_files_internal): Remove local extern declaration.
7128
7129 * data.c (Finteractive_form): Use const.
7130
7131 * composite.c (syms_of_composite): Remove local extern declarations.
7132
7133 * charset.c (add_to_log): Remove declaration.
7134
7135 * character.c (strwidth, parse_str_to_multibyte): Add const.
7136
7137 * character.h (strwidth, parse_str_to_multibyte): Likewise.
7138
7139 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
7140
89dc303e 7141 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
7142 (Lisp_Subr): Make doc and intspec constant.
7143 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
7144 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
7145 (QCheight, QCsize, QCname, QCwidth, QCforeground)
7146 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
7147 (display_arg): Add declarations.
89dc303e 7148
0ed082fe 71492010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
7150
7151 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
7152
0ed082fe
JB
7153 * window.c (Fwindow_height): Doc fix (bug#6518).
7154
71552010-07-27 Juanma Barranquero <lekktu@gmail.com>
7156
7157 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
7158
ccaf0336
DN
71592010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
7160
977105dc
DN
7161 * keyboard.c (Ftop_level, Fexit_recursive_edit)
7162 (Fabort_recursive_edit): Remove return statements in NO_RETURN
7163 functions.
7164
f5ada890
DN
7165 * frame.h (Qtty_color_mode): Add declaration.
7166
ccaf0336
DN
7167 * lisp.h (Ftop_level, Fexit_recursive_edit)
7168 (Fabort_recursive_edit): Mark as NO_RETURN.
7169
dfe3c90f
KH
71702010-07-26 Kenichi Handa <handa@m17n.org>
7171
7172 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 7173 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 7174
7d383292
JB
71752010-07-26 Juanma Barranquero <lekktu@gmail.com>
7176
7177 * lread.c (unreadpure, mapatoms_1): Make static.
7178
da31e629
JB
71792010-07-25 Juanma Barranquero <lekktu@gmail.com>
7180
7181 * terminfo.c (tparam): Fix prototype of tparm.
7182
7bfa6d77
AS
71832010-07-25 Andreas Schwab <schwab@linux-m68k.org>
7184
dcc19aac
AS
7185 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
7186 find start of text segment.
7187 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
7188 is defined.
7189
7bfa6d77
AS
7190 * callproc.c (set_initial_environment): Avoid unbalanced braces.
7191
63f9a672
KB
71922010-07-25 Ken Brown <kbrown@cornell.edu>
7193
7194 * vm-limit.c (check_memory_limits): Fix previous change;
7195 accidentally reverted an earlier change.
7196
24933075
KB
71972010-07-25 Ken Brown <kbrown@cornell.edu>
7198
7199 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
7200 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
7201
361358ea
JB
72022010-07-25 Juanma Barranquero <lekktu@gmail.com>
7203
7204 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
7205 * dired.c (opendir, readdir): Fix prototypes.
7206 * editfns.c (w32_get_internal_run_time): Fix prototypes.
7207 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
7208 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
7209 (telldir): Remove declaration.
7210 * ralloc.c (real_morecore, __morecore): Fix prototypes.
7211 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
7212 * syssignal.h (strsignal): Fix prototype.
7213 * term.c (tparam): Fix prototype.
7214 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
7215 (term_get_fkeys): Set inside "#ifndef DOS_NT".
7216 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
7217 and __morecore.
7218 * w32gui.h (XParseGeometry): Fix prototype.
7219 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
7220 * w32term.c (my_set_focus): Declare inside #if 0.
7221 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
7222 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
7223 (drain_message_queue, get_next_msg, post_msg, parse_button)
7224 (ClipboardSequence_Proc): Fix prototypes.
7225 (wait_for_sync): Remove declaration.
7226
630b9592
JB
72272010-07-24 Juanma Barranquero <lekktu@gmail.com>
7228
7229 * w32fns.c (w32_to_x_color): Remove, unused.
7230
6a0d6611
AS
72312010-07-24 Andreas Schwab <schwab@linux-m68k.org>
7232
7233 * lisp.h: Remove leftover P_.
7234
4e8608ff
DN
72352010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7236
7237 * ecrt0.c, unexalpha.c: Remove files, unused.
7238
c8197983
AS
72392010-07-24 Andreas Schwab <schwab@linux-m68k.org>
7240
7241 * cmds.c (internal_self_insert): Make static.
7242 * lisp.h (internal_self_insert): Remove declaration.
7243
97b372d7
JB
72442010-07-23 Juanma Barranquero <lekktu@gmail.com>
7245
33ac0414
JB
7246 * alloc.c (free_float):
7247 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
7248 * frame.c (delete_frame_handler):
7249 * ralloc.c (reorder_bloc):
7250 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
7251 Remove unused static functions.
7252
94da8397
JB
7253 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
7254 it is called only from NS code.
7255
2e6c8532
JB
7256 * w32term.c (my_set_focus): #ifdef away; it is called only from
7257 "#ifdef 0" code.
7258
97b372d7
JB
7259 * w32fns.c (x_edge_detection):
7260 * xfaces.c (may_use_scalable_font_p):
7261 Remove obsolete static declarations.
7262
7c3320d8
JB
72632010-07-20 Juanma Barranquero <lekktu@gmail.com>
7264
7265 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
7266 (emacs_blocked_realloc, uninterrupt_malloc):
7267 * fringe.c (w32_reset_fringes):
7268 * image.c (convert_mono_to_color_image, lookup_rgb_color)
7269 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
7270 * sound.c (be2hs, do_play_sound):
7271 * vm-limit.c (get_lim_data, ret_lim_data):
7272 * w32term.c (x_free_frame_resources):
7273 * xfaces.c (x_create_gc, x_free_gc):
7274 Convert definitions to standard C.
7275
d5273788
SM
72762010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
7277
7278 * eval.c (Feval, Ffuncall): Use the new names.
7279
7280 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
7281 (DEFUN): Add braces around the union initialisation and use ## to
7282 specify the right union alternative and avoid a cast.
7283
8d16a259
JB
72842010-07-18 Juanma Barranquero <lekktu@gmail.com>
7285
7286 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
7287
3b8eff32
CY
72882010-07-17 Chong Yidong <cyd@stupidchicken.com>
7289
7290 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
7291
499322ce
J
72922010-07-17 Jan Djärv <jan.h.d@swipnet.se>
7293
7294 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
7295 is related to the menu bar (Bug#6499).
a628ad9d 7296 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 7297
f6003da5 72982010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
7299
7300 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
7301
7302 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
7303
7304 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
7305 i.e. don't put back ButtonRelease (Bug#6608).
7306
7307 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
7308 instead of Window. Call xg_event_is_for_menubar when
7309 USE_GTK (Bug#6499).
7310
7311 * gtkutil.h (xg_event_is_for_menubar): Declare.
7312
7313 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
7314
f6003da5 73152010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
7316
7317 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
7318 when it's the same as the old foreground. (Bug#6609)
7319
23243f29
J
73202010-07-16 Jan Djärv <jan.h.d@swipnet.se>
7321
7322 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
7323 widget is non-null (Bug#6645).
7324
2b23d2a6
AS
73252010-07-15 Andreas Schwab <schwab@linux-m68k.org>
7326
01b564ff
AS
7327 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
7328 Convert old-style definition.
7329
2b23d2a6
AS
7330 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
7331 timestamp argument.
7332
c4affd2c
EZ
73332010-07-15 Eli Zaretskii <eliz@gnu.org>
7334
7335 * fringe.c (update_window_fringes): Restore mistakenly reverted
7336 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
7337
cf28cebc
J
73382010-07-14 Jan Djärv <jan.h.d@swipnet.se>
7339
7340 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
7341 (SET_SAVED_KEY_EVENT): Remove (not used).
7342 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
7343 remove size parameter.
7344 (handle_one_xevent): Check popup_activated () for menu for Xt also.
7345 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
7346 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
7347 ButtonRelease.
6b2c4bd9
J
7348 (x_set_window_size_1): scroll_bar_actual_width is always
7349 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
7350
7351 * xdisp.c (pending_menu_activation): Remove extern declaration.
7352 (prepare_menu_bars): Remove setting of pending_menu_activation.
7353
7354 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
7355 (x_activate_menubar): Set popup_activated_flag for Xt also.
7356 Remove setting of pending_menu_activation.
cf28cebc
J
7357 (set_frame_menubar): Remove check of pending_menu_activation.
7358 Declare menubar_size before code. Correct spelling in comment.
7359
f6c1c771
KH
73602010-07-14 Kenichi Handa <handa@m17n.org>
7361
7362 * font.c (font_open_entity): Cancel previous change.
7363 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
7364
20477505
EZ
73652010-07-13 Eli Zaretskii <eliz@gnu.org>
7366
77defa9a
EZ
7367 Remove subprocesses #ifdefs.
7368 * process.c <inhibit_sentinels>: Move to the common part.
7369 (Fwaiting_for_user_input_p): Move to the common part; return nil
7370 if async subprocesses aren't supported.
7371 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
7372 MS-DOS. Remove "#ifdef subprocesses".
7373 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
7374 (gettimeofday): Remove "#ifdef subprocesses".
7375 (wait_without_blocking): Remove function.
7376 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
7377 Remove "#ifdef subprocesses".
7378 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
7379 compiled on MS-DOS.
7380 * callproc.c (Fcall_process) [!MSDOS]: Don't call
7381 wait_for_termination on MS-DOS.
7382 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
7383 initialization of inhibit_sentinels.
7384 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
7385 subprocesses" conditional.
7386 * callproc.c (Fcall_process) [!subprocesses]: Don't call
7387 wait_for_termination, since `buffer' cannot be an integer when
7388 async subprocesses are not supported
7389 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
7390 for ifdefing away the call to Fprocess_status.
7391
20477505
EZ
7392 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
7393 away the entire body of the function.
7394
b3ffc17c
DN
73952010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7396
01faa934
DN
7397 Remove subprocesses #ifdefs from term.c.
7398 * process.c (add_keyboard_wait_descriptor)
7399 (delete_keyboard_wait_descriptor): Move to common section, do
7400 nothing when subprocesses is not defined.
a628ad9d
JB
7401 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
7402 Remove subprocesses #ifdefs.
01faa934 7403
b3ffc17c
DN
7404 Convert maybe_fatal to standard C.
7405 * lisp.h (verror): Declare.
7406 * eval.c (verror): New function containing the code from ...
7407 (error): ... this. Call verror.
7408 * term.c (vfatal): New function containing the code from ...
7409 (fatal): ... this. Call vfatal.
7410 (maybe_fatal): Convert to standard C, use variable number of
7411 arguments. Declare as non-return.
7412 (init_tty): Fix maybe_fatal call.
7413
0521f580
DN
74142010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7415
7416 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
7417 (_scroll_bar_note_movement): Convert definitions to standard C.
7418 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
7419 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
7420
ebd15611
DN
74212010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7422
7423 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
7424 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
7425 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
7426 (xaw_jump_callback, xaw_scroll_callback)
7427 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
7428 (x_wm_set_size_hint, x_activate_timeout_atimer):
7429 Convert definitions to standard C.
ebd15611
DN
7430 * xmenu.c (menubar_id_to_frame, popup_get_selection)
7431 (popup_activate_callback, popup_deactivate_callback)
7432 (menu_highlight_callback, menubar_selection_callback)
7433 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
7434 (free_frame_menubar, popup_selection_callback, as)
7435 (create_and_show_popup_menu, dialog_selection_callback)
7436 (create_and_show_dialog):
7437 * xfns.c (hack_wm_protocols, x_window):
7438 * xfaces.c (x_update_menu_appearance):
7439 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
7440 (char_to_pixel_size, round_size_to_char, get_wm_shell)
7441 (set_frame_size, update_wm_hints, setup_frame_gcs)
7442 (update_various_frame_slots, update_from_various_frame_slots)
7443 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
7444 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
7445 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
7446
de06a2dd
AS
74472010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7448
a628ad9d 7449 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 7450
fc549af9
EZ
74512010-07-12 Eli Zaretskii <eliz@gnu.org>
7452
7453 * process.c (setup_process_coding_systems): Move to the part
7454 shared by non-subprocesses systems, and make its body empty when
7455 subprocesses is not defined.
7456 (close_process_descs): Move to the part shared by non-subprocesses
7457 systems.
1408902e
EZ
7458 (wait_reading_process_output) [!subprocesses]: Convert arg list to
7459 ANSI C.
fc549af9 7460
d5a3eaaf
AS
74612010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7462
7463 * editfns.c (transpose_markers): Convert old-style definition.
7464 * emacs.c (abort, shut_down_emacs, fixup_locale)
7465 (synchronize_system_time_locale)
7466 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
7467 * floatfns.c (extract_float, matherr, init_floatfns)
7468 (syms_of_floatfns): Likewise.
7469 * fns.c (make_hash_table): Likewise.
7470 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
7471 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
7472 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
7473 (ftfont_variation_glyphs): Likewise.
7474 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
7475 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
7476 * lread.c (read_filtered_event): Likewise.
7477 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
7478 * process.c (wait_reading_process_output): Likewise.
7479 * scroll.c (do_line_insertion_deletion_costs): Likewise.
7480 * search.c (search_buffer, boyer_moore): Likewise.
7481 * syntax.c (scan_sexps_forward): Likewise.
7482 * xdisp.c (try_scrolling): Likewise.
7483 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
7484 (face_at_string_position): Likewise.
7485 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
7486 * xselect.c (x_get_window_property, receive_incremental_selection)
7487 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
7488 Likewise.
7489 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
7490
6f704c76
DN
74912010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7492
ded80a25
DN
7493 * callproc.c (child_setup): Remove subprocesses conditional.
7494 Remove code dealing with SET_EMACS_PRIORITY, unused.
7495
49d937f4 7496 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
7497 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
7498
7499 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
7500 (__do_global_dtors, __main): Use void in definition.
7501 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
7502 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
7503 the only users from ...
7504 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
7505 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
7506 (HAVE_VOLATILE): Remove, unused.
7507
6f704c76
DN
7508 Convert more function definitions to standard C.
7509 * xdisp.c (window_box_edges, handle_single_display_spec)
7510 (display_string): Convert definition to standard C.
7511 * scroll.c (do_direct_scrolling, scrolling_1):
7512 * dispnew.c (allocate_matrices_for_frame_redisplay)
7513 (mirrored_line_dance):
7514 * coding.c (code_convert_string):
7515 * charset.c (map_charset_chars):
7516 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
7517 (Fregister_ccl_program, Fregister_code_conversion_map):
7518 * keyboard.c (kbd_buffer_nr_stored): Likewise.
7519 (head_table): Make static and const.
7520
e6cfa7c3
AS
75212010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7522
7523 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
7524 (PROFILING_LDFLAGS): Set from substitution.
7525 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
7526 CFLAGS last.
7527
892dd565
KH
75282010-07-12 Kenichi Handa <handa@m17n.org>
7529
6f2cdcd1
KH
7530 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
7531 (shortlisp): Likewise.
7532
892dd565
KH
7533 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
7534
7535 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
7536 of FONT_ENTITY_INDEX.
7537 (Ffont_get): If KEY is :otf and the font-object doesn't have the
7538 property, get the property value dynamically.
7539 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 7540 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 7541 return value changed.
bba3e508 7542 (syms_of_font): Adjust for the above change.
892dd565 7543
ae96d47a
AS
75442010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7545
c8fc18ee
AS
7546 * blockinput.h: Remove obsolete comment.
7547
89887d67
AS
7548 * lisp.h: Include <stddef.h>.
7549 (OFFSETOF): Don't define.
7550 (VECSIZE): Use offsetof instead of OFFSETOF.
7551 (PSEUDOVECSIZE): Likewise.
7552 * process.c (conv_sockaddr_to_lisp): Likewise.
7553 * alloc.c: Don't include <stddef.h>.
7554 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
7555
ae96d47a
AS
7556 * process.c: Remove obsolete comment.
7557
635c0aa1
CY
75582010-07-11 Chong Yidong <cyd@stupidchicken.com>
7559
7560 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
7561
a64df650
AS
75622010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7563
8966b757
AS
7564 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
7565 index, rindex.
7566 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
7567 * editfns.c (Fuser_full_name, Fformat): Likewise.
7568 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
7569 * fileio.c (Ffile_symlink_p): Likewise.
7570 * filelock.c (current_lock_owner): Likewise.
7571 * font.c (font_parse_name, font_parse_family_registry): Likewise.
7572 * fontset.c (fontset_pattern_regexp): Likewise.
7573 * lread.c (read1): Likewise.
7574 * sysdep.c (init_system_name): Likewise.
7575 * xfns.c (select_visual): Likewise.
7576 * s/hpux10-20.h (index, rindex): Don't define.
7577 * s/ms-w32.h (index): Likewise.
7578 * s/usg5-4.h: Likewise.
7579
cf237e27
AS
7580 * callproc.c (relocate_fd): Use F_DUPFD if defined.
7581
a8fe7202
AS
7582 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
7583 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
7584 (egetenv): Likewise.
7585 * doprnt.c (doprnt): Likewise.
7586 * editfns.c (set_time_zone_rule, format2): Likewise.
7587 * emacs.c (decode_env_path): Likewise.
7588 * eval.c (signal_error, error): Likewise.
7589 * insdel.c (replace_range_2): Likewise.
7590 * keyboard.c (cmd_error_internal): Likewise.
7591 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
7592 * print.c (write_string, write_string_1, print_error_message):
7593 Likewise.
7594 * vm-limit.c (warn_function, memory_warnings): Likewise.
7595 * xdisp.c (message1, message1_nolog, message_with_string)
7596 (vmessage, message, message_nolog): Likewise.
7597 * emacs.c: Remove duplicate declaration.
7598 * keyboard.h: Likewise.
7599 * lisp.h: Update prototypes.
7600
bb8e180f
AS
7601 * eval.c: Fix indentation problem.
7602
01c35094 7603 * keyboard.c: Include "process.h".
83380e65 7604
a64df650
AS
7605 * eval.c: Remove obsolete noinline declaration.
7606 * fns.c: Likewise.
7607
6a8033e1
KR
76082010-07-11 Ken Raeburn <raeburn@raeburn.org>
7609
7610 * doprnt.c (doprnt): Take a va_list argument instead of count and
7611 pointer.
7612 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 7613 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
7614 changed to take a va_list argument.
7615 (message): New variadic wrapper.
7616 (message_nolog): Now a variadic function, calling vmessage.
7617 * lisp.h: Include stdarg.h for va_list.
7618 (doprnt, error, message, message_nolog): Decls updated.
7619
462aa963
EZ
76202010-07-11 Eli Zaretskii <eliz@gnu.org>
7621
7622 * process.c (syms_of_process) <delete-exited-processes>: Define
7623 even if !subprocesses.
7624 (delete_exited_processes): Ditto.
7625
7626 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
7627 (delete_exited_processes): Don't define.
7628
48104462
CY
76292010-07-10 Chong Yidong <cyd@stupidchicken.com>
7630
7631 * frame.c (make_frame): Initialize menu_bar_lines and
7632 tool_bar_lines members.
bba3e508
SM
7633 (make_initial_frame, make_terminal_frame):
7634 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
7635
7636 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
7637
f388c88a
EZ
76382010-07-10 Eli Zaretskii <eliz@gnu.org>
7639
7640 * process.c: Reshuffle #include's. Condition some of the global
7641 and static variables on `subprocesses'.
7642 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7643 Leave only one implementation.
7644 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
7645 (kill_buffer_processes, Flist_system_processes)
7646 (Fprocess_attributes, init_process, syms_of_process): Unify the
7647 implementations for with subprocesses and without them.
7648
723f5a07
J
76492010-07-09 Jan Djärv <jan.h.d@swipnet.se>
7650
7651 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
7652 correct size for Motif.
7653 (free_frame_menubar): Call x_set_window_size to update frame size.
7654
7655 * xfns.c (x_window): Set borderWidth to 0 for pane and
7656 EmacsFrame. Frame size calculation is wrong otherwise.
7657
2536a4b7
MA
76582010-07-09 Michael Albinus <michael.albinus@gmx.de>
7659
7660 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
7661 allows to suppress errors when polling in Emacs' main loop.
7662 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
7663 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
7664 (Fdbus_method_error_internal, Fdbus_send_signal)
7665 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
7666 (Fdbus_register_method): Use it. (Bug#6579)
7667
5842a27b
DN
76682010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7669
7670 * alloc.c: Convert DEFUNs to standard C.
7671 * buffer.c:
7672 * bytecode.c:
7673 * callint.c:
7674 * callproc.c:
7675 * casefiddle.c:
7676 * casetab.c:
7677 * category.c:
7678 * character.c:
7679 * charset.c:
7680 * chartab.c:
7681 * cmds.c:
7682 * coding.c:
7683 * composite.c:
7684 * data.c:
7685 * dbusbind.c:
7686 * dired.c:
7687 * dispnew.c:
7688 * doc.c:
7689 * dosfns.c:
7690 * editfns.c:
7691 * emacs.c:
7692 * eval.c:
7693 * fileio.c:
7694 * filelock.c:
7695 * floatfns.c:
7696 * fns.c:
7697 * font.c:
7698 * fontset.c:
7699 * frame.c:
7700 * fringe.c:
7701 * image.c:
7702 * indent.c:
7703 * insdel.c:
7704 * keyboard.c:
7705 * keymap.c:
7706 * lread.c:
7707 * macros.c:
7708 * marker.c:
7709 * menu.c:
7710 * minibuf.c:
7711 * msdos.c:
7712 * nsfns.m:
7713 * nsmenu.m:
7714 * nsselect.m:
7715 * print.c:
7716 * process.c:
7717 * search.c:
7718 * sound.c:
7719 * syntax.c:
7720 * term.c:
7721 * terminal.c:
7722 * textprop.c:
7723 * undo.c:
7724 * w16select.c:
7725 * w32console.c:
7726 * w32fns.c:
7727 * w32font.c:
7728 * w32menu.c:
7729 * w32proc.c:
7730 * w32select.c:
7731 * window.c:
7732 * xdisp.c:
7733 * xfaces.c:
7734 * xfns.c:
7735 * xmenu.c:
7736 * xselect.c:
7737 * xsettings.c:
7738 * xsmfns.c: Likewise.
7739
d568829b
EZ
77402010-07-08 Eli Zaretskii <eliz@gnu.org>
7741
7742 * process.c (kbd_is_on_hold, hold_keyboard_input)
7743 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
7744
52214050
J
77452010-07-08 Jan Djärv <jan.h.d@swipnet.se>
7746
7747 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
7748 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
7749 unless USE_LUCID.
7750
313d9eb2
DN
77512010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7752
a628ad9d
JB
7753 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
7754 declaration.
d8825aa3 7755
295d0d8f
DN
7756 Clean up include guards.
7757 * tparam.c: Remove include guards for config.h, string.h and code
7758 that assumes #ifndef emacs.
7759 * termcap.c:
7760 * unexalpha.c:
7761 * sysdep.c:
7762 * filemode.c:
7763 * filelock.c:
7764 * bidi.c: Likewise.
7765
49d9e6b0
DN
7766 Remove prefix-args.c
7767 * prefix-args.c: Remove file.
7768 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
7769 * Makefile.in (temacs${EXEEXT}): Remove references to
7770 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
7771 (mostlyclean): Remove reference to prefix-args.
7772 (prefix-args): Remove.
7773
313d9eb2
DN
7774 Simplify cstart_of_data, start_of_code and related code.
7775 * mem-limits.h: Remove !emacs and _LIBC conditional code.
7776 (start_of_data): Merge into start_of_data function.
7777 * sysdep.c (start_of_text): Remove. Move simplified versions of
7778 it in the only users: unexaix.c and unexec.c.
7779 (read_input_waiting): Remove local declaration of quit_char.
7780 (start, etext): Remove declarations.
7781 (start_of_data): Merge with the version in mem-limits.h and move
7782 to vm-limits.c.
7783 * vm-limit.c (start_of_data): Merged and simplified version of the
7784 code formerly in mem-limits.h and sysdep.c.
7785 * unexec.c (start): New declaration, moved from sysdep.c.
7786 (start_of_text): Simplified version of the code formerly in sysdep.c.
7787 * unexaix.c (start_of_text): Simplified version of the code
7788 formerly in sysdep.c.
7789 * m/alpha.h (HAVE_TEXT_START): Remove.
7790 (TEXT_START): Move ...
7791 * unexalpha.c (TEXT_START): ... here.
7792 * s/hpux10-20.h (TEXT_START): Remove.
7793 * s/darwin.h (TEXT_START):
7794 * m/mips.h (TEXT_START):
7795 * m/macppc.h (HAVE_TEXT_START):
7796 * m/m68k.h (TEXT_START):
7797 * m/iris4d.h (TEXT_START):
7798 * m/intel386.h (TEXT_START):
7799 * m/ibmrs6000.h (TEXT_START):
7800 * m/ia64.h (HAVE_TEXT_START):
7801 * s/msdos.h (TEXT_START): Likewise.
7802
72af86bd
AS
78032010-07-07 Andreas Schwab <schwab@linux-m68k.org>
7804
7805 * alloc.c (overrun_check_malloc, overrun_check_realloc)
7806 (overrun_check_free, xstrdup, allocate_string)
7807 (allocate_string_data, compact_small_strings, Fmake_string)
7808 (make_unibyte_string, make_multibyte_string)
7809 (make_string_from_bytes, make_specified_string, make_float)
7810 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7811 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7812 memcpy, memmove, memset, memcmp.
7813 * atimer.c (start_atimer, set_alarm): Likewise.
7814 * buffer.c (clone_per_buffer_values, report_overlay_modification)
7815 (mmap_realloc, init_buffer_once): Likewise.
7816 * callint.c (Fcall_interactively): Likewise.
7817 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7818 (getenv_internal_1): Likewise.
7819 * casefiddle.c (casify_object): Likewise.
7820 * ccl.c (ccl_driver): Likewise.
7821 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7822 * charset.c (load_charset_map_from_file)
7823 (load_charset_map_from_file, load_charset_map_from_vector)
7824 (Fdefine_charset_internal): Likewise.
7825 * cm.c (Wcm_clear): Likewise.
7826 * coding.c (decode_eol, decode_coding_object)
7827 (Fset_coding_system_priority, make_subsidiaries): Likewise.
7828 * data.c (Faset): Likewise.
7829 * dired.c (directory_files_internal, file_name_completion_stat):
7830 Likewise.
7831 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7832 (clear_glyph_row, copy_row_except_pointers)
7833 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7834 (save_current_matrix, restore_current_matrix)
7835 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7836 (mirror_line_dance, scrolling_window): Likewise.
7837 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7838 Likewise.
7839 * doprnt.c (doprnt): Likewise.
7840 * editfns.c (Fuser_full_name, make_buffer_string_both)
7841 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7842 * emacs.c (sort_args): Likewise.
7843 * eval.c (Fapply, Ffuncall): Likewise.
7844 * fileio.c (Ffile_name_directory, make_temp_name)
7845 (Fexpand_file_name, search_embedded_absfilename)
7846 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7847 (auto_save_error): Likewise.
7848 * fns.c (Fstring_equal, Fcopy_sequence, concat)
7849 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7850 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7851 (Fmake_hash_table): Likewise.
7852 * fringe.c (Fdefine_fringe_bitmap): Likewise.
7853 * ftfont.c (ftfont_text_extents): Likewise.
7854 * getloadavg.c (getloadavg): Likewise.
7855 * image.c (define_image_type, make_image, make_image_cache)
7856 (x_create_x_image_and_pixmap, xbm_image_p)
7857 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7858 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7859 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7860 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7861 (tiff_image_p, tiff_read_from_memory, gif_image_p)
7862 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7863 Likewise.
7864 * indent.c (scan_for_column, compute_motion): Likewise.
7865 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7866 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7867 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7868 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7869 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7870 (store_user_signal_events, menu_bar_items, tool_bar_items)
7871 (process_tool_bar_item, append_tool_bar_item)
7872 (read_char_minibuf_menu_prompt, read_key_sequence)
7873 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7874 Likewise.
7875 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7876 Likewise.
7877 * lisp.h (STRING_COPYIN): Likewise.
7878 * lread.c (Fload, read1, oblookup): Likewise.
7879 * msdos.c (Frecent_doskeys): Likewise.
7880 * nsfns.m (Fx_create_frame): Likewise.
7881 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7882 Likewise.
7883 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7884 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7885 Likewise.
7886 * nsmenu.m (ns_update_menubar): Likewise.
7887 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7888 * print.c (print_unwind, printchar, strout, print_string)
7889 (print_error_message): Likewise.
7890 * process.c (conv_lisp_to_sockaddr, set_socket_option)
7891 (Fmake_network_process, Fnetwork_interface_list)
7892 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7893 (init_process): Likewise.
7894 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7895 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7896 Likewise.
7897 * scroll.c (do_scrolling, do_direct_scrolling)
7898 (scrolling_max_lines_saved): Likewise.
7899 * search.c (search_buffer, wordify, Freplace_match): Likewise.
7900 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7901 * syntax.c (skip_chars, skip_syntaxes): Likewise.
7902 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7903 (emacs_set_tty): Likewise.
7904 * term.c (encode_terminal_code, calculate_costs)
7905 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
7906 Likewise.
7907 * termcap.c (tgetst1, gobble_line): Likewise.
7908 * termhooks.h (EVENT_INIT): Likewise.
7909 * tparam.c (tparam1): Likewise.
7910 * unexalpha.c (unexec): Likewise.
7911 * unexec.c (write_segment): Likewise.
7912 * unexmacosx.c (unexec_write_zero): Likewise.
7913 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
7914 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
7915 * w32font.c (w32font_list_family, w32font_text_extents)
7916 (w32font_list_internal, w32font_match_internal)
7917 (w32font_open_internal, compute_metrics, Fx_select_font):
7918 Likewise.
7919 * w32menu.c (set_frame_menubar, add_menu_item)
7920 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
7921 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
7922 * w32uniscribe.c (uniscribe_list_family): Likewise.
7923 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
7924 * window.c (make_window, replace_window, set_window_buffer)
7925 (Fsplit_window): Likewise.
7926 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7927 (add_to_log, message3, x_consider_frame_title)
7928 (append_space_for_newline, extend_face_to_end_of_line)
7929 (decode_mode_spec_coding, init_glyph_string): Likewise.
7930 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7931 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7932 (face_attr_equal_p, make_realized_face, make_face_cache)
7933 (free_realized_faces, lookup_named_face, smaller_face)
7934 (face_with_height, lookup_derived_face)
7935 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7936 (Finternal_set_font_selection_order, realize_default_face)
7937 (compute_char_face, face_at_buffer_position)
7938 (face_for_overlay_string, face_at_string_position, merge_faces):
7939 Likewise.
7940 * xfns.c (xic_create_fontsetname, Fx_create_frame)
7941 (Fx_window_property, x_create_tip_frame)
7942 (Fx_backspace_delete_keys_p): Likewise.
7943 * xfont.c (xfont_list, xfont_match, xfont_list_family)
7944 (xfont_text_extents): Likewise.
7945 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7946 * xrdb.c (magic_file_p, x_get_resource): Likewise.
7947 * xselect.c (x_queue_event, x_get_window_property)
7948 (receive_incremental_selection): Likewise.
7949 * xsmfns.c (x_session_check_input): Likewise.
7950 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7951 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7952 Likewise.
44f230aa 7953 * character.h (BCOPY_SHORT): Remove.
72af86bd
AS
7954 * config.in: Regenerate.
7955 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
7956 * emacs.c (main) [PROFILING]: Don't declare
7957 dump_opcode_frequencies.
7958 * lisp.h (safe_bcopy): Remove declaration.
7959 (memset) [!HAVE_MEMSET]: Declare.
7960 (memcpy) [!HAVE_MEMCPY]: Likewise.
7961 (memmove) [!HAVE_MEMMOVE]: Likewise.
7962 (memcmp) [!HAVE_MEMCMP]: Likewise.
7963 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
7964 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
7965 Don't define.
7966 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
7967 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
7968 (BCOPY_DOWNWARD_SAFE): Don't define.
7969 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
7970 (memcpy) [!HAVE_MEMCPY]: Define.
7971 (memmove) [!HAVE_MEMMOVE]: Define.
7972 (memcmp) [!HAVE_MEMCMP]: Define.
7973
cb768704
J
79742010-07-07 Jan Djärv <jan.h.d@swipnet.se>
7975
7976 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
7977 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7978 New functions.
cb768704
J
7979 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
7980 select on empty input mask.
7981 (init_process): Initialize kbd_is_on_hold to 0.
7982
7983 * process.h (hold_keyboard_input, unhold_keyboard_input)
7984 (kbd_on_hold_p): Declare.
7985
7986 * keyboard.c (input_available_signal): Declare.
7987 (kbd_buffer_nr_stored): New function.
7988 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
7989 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
7990 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
7991 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
7992 (tty_read_avail_input): If input is on hold, return.
7993 Don't read more that free slots in kbd_buffer (Bug#6571).
7994
3a8ce822
EZ
79952010-07-07 Eli Zaretskii <eliz@gnu.org>
7996
7997 * msdos.h:
7998 * msdos.c:
7999 * dosfns.c:
8000 * w16select.c: Convert function definitions to ANSI C.
8001
a628ad9d
JB
8002 * msdos.h (ctrl_break_func, install_ctrl_break_check):
8003 Remove unused prototypes.
3a8ce822 8004
cf84bb53
JB
80052010-07-07 Juanma Barranquero <lekktu@gmail.com>
8006
8007 * coding.c, sysdep.c: Convert some more functions to standard C.
8008
1a4990fb
JB
80092010-07-07 Juanma Barranquero <lekktu@gmail.com>
8010
8011 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
8012 (encode_coding_object): Use SPECPDL_INDEX.
8013 (syms_of_coding): Use DOS_NT.
8014
c0f2f16b
DN
80152010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
8016
48fb6855
DN
8017 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
8018
c0f2f16b
DN
8019 Make the function member of Lisp_Subr use standard C prototypes.
8020 * lisp.h (struct Lisp_Subr): Use a union for the function member.
8021 (DECL_ALIGN): Add a cast for the function.
8022 * eval.c (Feval, Ffuncall): Use the proper type for each type
8023 function call.
8024
67aecef9
CY
80252010-07-06 Chong Yidong <cyd@stupidchicken.com>
8026
8027 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
8028 fringe face id, so face-remapping-alist works (Bug#6091).
8029
b56ceb92
JB
80302010-07-06 Juanma Barranquero <lekktu@gmail.com>
8031
8032 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
8033 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
8034 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
8035
7af07b96
AS
80362010-07-06 Andreas Schwab <schwab@linux-m68k.org>
8037
8038 * xterm.c (x_get_keysym_name): Change type of parameter to int.
8039 * lisp.h: Declare x_get_keysym_name.
8040 * keyboard.c (modify_event_symbol): Don't declare
8041 x_get_keysym_name here.
8042
69e24e34
DN
80432010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
8044
8045 * ecrt0.c: Revert conversion to standard C.
8046
d3da34e0 80472010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
8048
8049 * vm-limit.c (memory_warnings):
8050 * keyboard.c (modify_event_symbol):
8051 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
8052 (round2, emacs_rint):
8053 * process.c (send_process, old_sigpipe): Convert function
8054 definitions and declarations to standard C.
8055
80562010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
8057
8058 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
8059 * xdisp.c: Convert function definitions to standard C.
8060
8061 * cm.c (cmputc): Arg C is now int, not char.
8062 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
8063
00be444c
J
80642010-07-05 James Cloos <cloos@jhcloos.com>
8065
8066 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
8067
8068 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
8069 _NET_WM_ICON_NAME atoms.
8070
8071 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
8072 and _NET_WM_ICON_NAME properties, too, matching what is
8073 done in the Gtk+ case.
8074
e4c8d29a
J
80752010-07-05 Jan Djärv <jan.h.d@swipnet.se>
8076
ff919460
J
8077 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
8078
e4c8d29a
J
8079 * xsmfns.c (SSDATA): New macro.
8080 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
8081 passed to strlen/strcpy/strcat.
bba3e508
SM
8082 (create_client_leader_window): Surround with #ifndef USE_GTK.
8083 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
8084
8085 * xsettings.c (something_changedCB, parse_settings)
8086 (apply_xft_settings): Reformat prototype.
8087 (something_changedCB, init_gconf): Remove unused variable i.
8088 (read_settings): Remove unused variable long_len.
8089
8090 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
8091 (xg_get_image_for_pixmap, create_dialog)
8092 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
8093 (menuitem_highlight_callback, make_menu_item)
8094 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
8095 (xg_create_scroll_bar, xg_update_scrollbar_pos)
8096 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
8097 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
8098 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
8099 (xg_tool_bar_item_expose_callback): Reformat prototype.
8100 (xg_update_menubar): GList *group => GSList *group.
8101 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
8102 before use.
8103 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
8104 to GTK_IMAGE (wimage).
8105
dd4c5104
DN
81062010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
8107
898b4c5c
DN
8108 * atimer.c: Use "" instead of <> for local includes for
8109 consistency with the rest of the code.
8110
dd4c5104
DN
8111 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
8112 * xrdb.c (get_system_name):
8113 * window.c (shrink_windows):
8114 * syntax.c (forw_comment):
8115 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
8116 (ins_del_costs):
8117 * mem-limits.h (start_of_data):
8118 * lread.c (readevalloop):
8119 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
8120 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
8121 * frame.c (x_get_focus_frame):
8122 * floatfns.c (fmod_float):
8123 * fileio.c (choose_write_coding_system):
8124 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
8125 (malloc_initialize_hook, sort_args, synchronize_locale):
8126 * doprnt.c (doprnt):
8127 * dired.c (compile_pattern):
8128 * data.c (fmod_float):
8129 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
8130 (map_char_table_for_charset):
8131 * charset.c (define_charset_internal):
8132 * alloc.c (Fgarbage_collect): Convert declarations or definitions
8133 to standard C.
8134
9a39b306 81352010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 8136 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
8137
8138 * lread.c (read1): Fix up last change to not mess up `c'.
8139
e6cb2cbb
JB
81402010-07-04 Juanma Barranquero <lekktu@gmail.com>
8141
8142 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
8143
438105ed
JB
81442010-07-04 Juanma Barranquero <lekktu@gmail.com>
8145
8146 Fix prototypes.
8147
e5447b22 8148 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 8149 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
8150 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
8151 arg, as required by internal_condition_case_1.
dcc7404b 8152 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
8153 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
8154 (analyse_first): Fix "const const".
e5447b22 8155 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 8156 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 8157 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 8158
971de7fb
DN
81592010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
8160
8161 * alloc.c: Convert function definitions to standard C.
8162 * atimer.c:
8163 * bidi.c:
8164 * bytecode.c:
8165 * callint.c:
8166 * callproc.c:
8167 * casefiddle.c:
8168 * casetab.c:
8169 * category.c:
8170 * ccl.c:
8171 * character.c:
8172 * charset.c:
8173 * chartab.c:
8174 * cmds.c:
8175 * coding.c:
8176 * composite.c:
8177 * data.c:
8178 * dbusbind.c:
8179 * dired.c:
8180 * dispnew.c:
8181 * doc.c:
8182 * doprnt.c:
8183 * ecrt0.c:
8184 * editfns.c:
8185 * fileio.c:
8186 * filelock.c:
8187 * filemode.c:
8188 * fns.c:
8189 * font.c:
8190 * fontset.c:
8191 * frame.c:
8192 * fringe.c:
8193 * ftfont.c:
8194 * ftxfont.c:
8195 * gtkutil.c:
8196 * indent.c:
8197 * insdel.c:
8198 * intervals.c:
8199 * keymap.c:
8200 * lread.c:
8201 * macros.c:
8202 * marker.c:
8203 * md5.c:
8204 * menu.c:
8205 * minibuf.c:
8206 * prefix-args.c:
8207 * print.c:
8208 * ralloc.c:
8209 * regex.c:
8210 * region-cache.c:
8211 * scroll.c:
8212 * search.c:
8213 * sound.c:
8214 * strftime.c:
8215 * syntax.c:
8216 * sysdep.c:
8217 * termcap.c:
8218 * terminal.c:
8219 * terminfo.c:
8220 * textprop.c:
8221 * tparam.c:
8222 * undo.c:
8223 * unexelf.c:
8224 * window.c:
8225 * xfaces.c:
8226 * xfns.c:
8227 * xfont.c:
8228 * xftfont.c:
8229 * xgselect.c:
8230 * xmenu.c:
8231 * xrdb.c:
8232 * xselect.c:
8233 * xsettings.c:
8234 * xsmfns.c:
8235 * xterm.c: Likewise.
8236
ae492bec
EZ
82372010-07-03 Eli Zaretskii <eliz@gnu.org>
8238
76ea4cc9
EZ
8239 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
8240 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
8241 `reverse' is specified in the frame parameters.
8242 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
8243 internal-set-lisp-face-attribute. Initialize screen colors from
8244 initial_screen_colors[] when f->default_face_done_p is zero,
8245 instead of depending on being called with default-frame-alist as
8246 the alist argument.
8247
8248 * xfaces.c (update_face_from_frame_parameter): Move out of
8249 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
8250 with HAVE_WINDOW_SYSTEM.
8251
1e6255ae
EZ
8252 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
8253 to menu-bar-mode, if not set in the frame parameters or in
8254 default-frame-alist.
8255
ae492bec
EZ
8256 * w32console.c (sys_tputs): Adjust argument list to prototype in
8257 term.c.
8258
3a35a84c
JB
82592010-07-03 Juanma Barranquero <lekktu@gmail.com>
8260
8261 * lisp.h (memory_warnings): Fix prototype.
8262
8263 * cm.h (evalcost): Fix prototype.
8264
8265 * cm.c (evalcost): Fix arg type.
8266
c532d349
DN
82672010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
8268
8269 * term.c (term_clear_mouse_face, Fidentity):
8270 * syssignal.h (signal_handler_t):
8271 * lisp.h (memory_warnings):
8272 * coding.h (preferred_coding_system):
8273 * cm.h (evalcost):
8274 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
8275
c0b36d46
EZ
82762010-07-02 Eli Zaretskii <eliz@gnu.org>
8277
8278 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
8279 from prototypes.
8280
8281 * msdos.h (load_pixmap): Don't define away.
8282
383e0970
J
82832010-07-02 Jan Djärv <jan.h.d@swipnet.se>
8284
f57e2426
J
8285 * lisp.h:
8286 * atimer.h: Remove define for P_.
8287
8288 * alloc.c: Remove __P and P_ from .c and .m files.
8289 * atimer.c:
8290 * buffer.c:
8291 * callint.c:
8292 * category.c:
8293 * charset.c:
8294 * chartab.c:
8295 * cm.c:
8296 * coding.c:
8297 * composite.c:
8298 * data.c:
8299 * dired.c:
8300 * dispnew.c:
8301 * doc.c:
8302 * editfns.c:
8303 * emacs.c:
8304 * eval.c:
8305 * fileio.c:
8306 * filelock.c:
8307 * fns.c:
8308 * font.c:
8309 * fontset.c:
8310 * frame.c:
8311 * ftfont.c:
8312 * ftxfont.c:
8313 * gmalloc.c:
8314 * gtkutil.c:
8315 * image.c:
8316 * indent.c:
8317 * intervals.c:
8318 * keyboard.c:
8319 * keymap.c:
8320 * lread.c:
8321 * marker.c:
8322 * menu.c:
8323 * minibuf.c:
8324 * print.c:
8325 * process.c:
8326 * scroll.c:
8327 * search.c:
8328 * sound.c:
8329 * strftime.c:
8330 * syntax.c:
8331 * sysdep.c:
8332 * term.c:
8333 * terminal.c:
8334 * textprop.c:
8335 * unexalpha.c:
8336 * w32console.c:
8337 * w32fns.c:
8338 * w32font.c:
8339 * w32menu.c:
8340 * w32term.c:
8341 * w32uniscribe.c:
8342 * window.c:
8343 * xdisp.c:
8344 * xfaces.c:
8345 * xfns.c:
8346 * xfont.c:
8347 * xftfont.c:
8348 * xmenu.c:
8349 * xselect.c:
8350 * xterm.c: Likewise.
8351
383e0970 8352 Remove P_ and __P macros.
f57e2426
J
8353 * atimer.h: Remove P_ and __P macros.
8354 * buffer.h:
383e0970
J
8355 * category.h:
8356 * ccl.h:
8357 * character.h:
8358 * charset.h:
8359 * cm.h:
8360 * coding.h:
8361 * composite.h:
8362 * dispextern.h:
8363 * disptab.h:
9e892c8d 8364 * dosfns.h:
383e0970
J
8365 * font.h:
8366 * fontset.h:
8367 * frame.h:
8368 * gtkutil.h:
8369 * indent.h:
8370 * intervals.h:
8371 * keyboard.h:
8372 * keymap.h:
8373 * lisp.h:
8374 * macros.h:
8375 * md5.h:
8376 * menu.h:
8377 * msdos.h:
8378 * nsterm.h:
8379 * puresize.h:
8380 * region-cache.h:
8381 * syntax.h:
8382 * syssignal.h:
8383 * systime.h:
8384 * termhooks.h:
9e892c8d 8385 * w32font.h:
383e0970
J
8386 * w32term.h:
8387 * widget.h:
8388 * window.h:
8389 * xgselect.h:
8390 * xsettings.h:
8391 * xterm.h: Likewise.
8392
98601119
DN
83932010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
8394
d9170db5
DN
8395 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
8396
98601119
DN
8397 Cleanup old code.
8398 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
8399 * syssignal.h: Remove code for Lynx, not supported anymore.
8400 * vm-limit.c: Remove unused code the depends on emacs not being
8401 defined and NO_LIM_DATA being defined.
8402 * mem-limits.h: Remove dead code.
8403
1f984e12
J
84042010-07-01 Jan Djärv <jan.h.d@swipnet.se>
8405
c49d071a
J
8406 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
8407
9d5405ec
J
8408 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
8409 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
8410
7a18115b
J
8411 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
8412 parameters, they are already absolute.
8413
a628ad9d
JB
8414 * nsterm.m (x_set_window_size, initFrameFromEmacs):
8415 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 8416
a628ad9d 8417 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 8418
a628ad9d
JB
8419 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
8420 Update FRAME_TOOLBAR_HEIGHT.
581a8100 8421
a628ad9d
JB
8422 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
8423 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 8424
c1ef4455
CY
84252010-06-30 Chong Yidong <cyd@stupidchicken.com>
8426
bba3e508
SM
8427 * frame.c (get_future_frame_param, Fmake_terminal_frame):
8428 Don't check default-frame-alist.
c1ef4455 8429
ce8f5a9a
AS
84302010-06-30 Andreas Schwab <schwab@linux-m68k.org>
8431
8432 * process.c (create_process): Avoid using invalid file descriptors.
8433
8434 * callproc.c (child_setup): Avoid closing a file descriptor twice.
8435
bf935339
J
84362010-06-30 Jan Djärv <jan.h.d@swipnet.se>
8437
8438 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
8439 Improve documentation. Return font regardless of use_system_font.
8440 (syms_of_xsettings): Improve documentation for font-use-system-font.
8441
7c33a057
CY
84422010-07-10 Chong Yidong <cyd@stupidchicken.com>
8443
2ec1b5ee
CY
8444 * xfaces.c (realize_face): Garbage the frame if a face is removed
8445 (Bug#6593).
8446
84472010-07-05 Andreas Schwab <schwab@linux-m68k.org>
8448
8449 * keyboard.c: Remove duplicate <setjmp.h>.
8450 (read_key_sequence): Remove volatile qualifiers.
8451
84522010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8453
8454 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
8455 (struct glyph_row): New members left_fringe_offset and
8456 right_fringe_offset.
8457
8458 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
8459 specially.
8460 * w32term.c (w32_draw_fringe_bitmap): Likewise.
8461 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
8462
8463 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 8464 Take account of bitmap offset.
2ec1b5ee
CY
8465 (draw_window_fringes): Take account of window vscroll.
8466 (update_window_fringes): Likewise. Extend top-aligned top indicator
8467 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
8468 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
8469 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
8470
84712010-07-04 Juanma Barranquero <lekktu@gmail.com>
8472
8473 * w32fns.c (Qtooltip): Declare.
8474 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
8475
84762010-07-03 Jan Djärv <jan.h.d@swipnet.se>
8477
8478 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
8479 grab on just Press (Bug#6499).
8480
84812010-07-02 Chong Yidong <cyd@stupidchicken.com>
8482
8483 * frame.c (Qtooltip): New var.
8484 (delete_frame): Use it. Fix faulty if statement. Don't update
8485 mode line for tooltip frames. Suggested by Martin Rudalics.
8486
8487 * xfns.c (x_create_tip_frame):
8488 * w32fns.c (x_create_tip_frame): Use it.
8489
84902010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
8491
8492 * xftfont.c (xftfont_open): Check font width one by one also when
8493 spacing is dual.
8494
8495 * ftfont.c (ftfont_open): Ditto.
8496
6259c2ec
GM
84972010-06-30 Glenn Morris <rgm@gnu.org>
8498
a46007e9
GM
8499 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
8500
6259c2ec
GM
8501 * Makefile.in (CANNOT_DUMP): Update for configure name change.
8502
8503 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
8504 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
8505 * s/darwin.h (SYSTEM_MALLOC):
8506 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
8507
5d1d3d04
J
85082010-06-29 Jan Djärv <jan.h.d@swipnet.se>
8509
8510 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
8511 (ns_get_screen): Don't assign integer to f.
8512 (Fx_display_color_cells): Declarations before statements.
8513
e547b051
J
85142010-06-28 Jan Djärv <jan.h.d@swipnet.se>
8515
5fc8e5bc
J
8516 * xfns.c (x_default_font_parameter): Remove got_from_system
8517 (Bug#6526).
8518
e547b051 8519 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
8520 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
8521 New defines based on what configure finds.
e547b051
J
8522
8523 * xterm.c (XTflash): Use gtk_widget_get_window.
8524 (xg_scroll_callback): Use gtk_adjustment_get_upper and
8525 gtk_adjustment_get_page_size.
8526 (handle_one_xevent): Use gtk_widget_get_mapped.
8527 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
8528 messages.
8529
8530 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
8531
8532 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
8533 HAVE_GTK_FILE_SELECTION_NEW.
8534
bba3e508
SM
8535 * gtkutil.c (xg_display_open, xg_display_close):
8536 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
8537 (xg_display_open): Return type is void.
8538 (gtk_widget_set_has_window)
8539 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
8540 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
8541 (gtk_adjustment_set_page_increment)
8542 (gtk_adjustment_get_step_increment): #define these if not found
8543 by configure.
8544 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
8545 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
8546 Use gtk_widget_get_window.
e547b051
J
8547 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
8548 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
8549 (create_dialog): Use gtk_dialog_get_action_area and
8550 gtk_dialog_get_content_area.
8551 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
8552 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
8553 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
8554 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
8555 Use g_object_ref and g_object_unref.
8556 (xg_update_menu_item, xg_tool_bar_menu_proxy):
8557 Use gtk_widget_get_sensitive.
e547b051
J
8558 (xg_update_submenu): Use remove_submenu.
8559 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
8560 properties instead to get old x and y position.
8561 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
8562 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 8563 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
8564 (xg_get_tool_bar_widgets): New function.
8565 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
8566 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
8567 (toolbar_set_orientation): New #define based on if configure
8568 finds gtk_orientable_set_orientation.
8569 (xg_create_tool_bar): Call toolbar_set_orientation.
8570 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
8571 instead of gtk_box_pack_start_defaults.
8572
b9229673
CY
85732010-06-28 Chong Yidong <cyd@stupidchicken.com>
8574
8575 * cmds.c (Fdelete_backward_char): Move into Lisp.
8576
bbc803b0
DN
85772010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8578
8579 * s/freebsd.h (BSD4_2): Remove redundant definition.
8580 bsd-common.h defines it already.
8581
6431f2e6
CY
85822010-06-27 Chong Yidong <cyd@stupidchicken.com>
8583
8584 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
8585 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
8586 tool-bar-mode, which are now set using these X resources at
8587 startup, to determine the defaults (Bug#2249).
8588
8589 * w32fns.c (Fx_create_frame):
8590 * nsfns.m (Fx_create_frame): Likewise.
8591
8592 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
8593
8c079ebb
JB
85942010-06-24 Juanma Barranquero <lekktu@gmail.com>
8595
8596 * gtkutil.c (xg_update_scrollbar_pos):
8597 Avoid C99 mid-block variable declaration.
8598
e9b7ab96
JD
85992010-06-22 Jan Djärv <jan.h.d@swipnet.se>
8600
bc869eca
JD
8601 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
8602
2b7e356a 8603 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
8604
8605 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
8606 if height is less than scroll bar min size.
8607 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
8608
e9b7ab96
JD
8609 * xfns.c (x_default_font_parameter): Try to open font from system
8610 before using it (bug#6478). Rename got_from_gconf to got_from_system.
8611
a628ad9d 86122010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
8613
8614 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
8615
70c4cfbb
EZ
86162010-06-20 Eli Zaretskii <eliz@gnu.org>
8617
8618 * xdisp.c (try_scrolling): When scroll-conservatively is set to
8619 most-positive-fixnum, be extra accurate when scrolling window
8620 start, to avoid missing the cursor line.
8621
ad5a12b5
EZ
86222010-06-19 Eli Zaretskii <eliz@gnu.org>
8623
8624 * xdisp.c (try_scrolling): Compute the limit for searching point
8625 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
8626 of 10 screen lines.
8627 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
8628 and
8629 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
8630 for details.
8631
2a64315a 86322010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
8633
8634 * editfns.c (Fbyte_to_string): Pacify compiler.
8635
288cf4e9
SM
86362010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8637
8638 * lread.c (read1): Phase out old-style backquotes a bit more.
8639
6e6e5760
EZ
86402010-06-12 Eli Zaretskii <eliz@gnu.org>
8641
cbc4fd20
EZ
8642 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
8643 bidimirror.h.
8644
8645 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
8646
317fbf33
EZ
8647 * bidi.c (bidi_initialize): Remove explicit initialization of
8648 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 8649 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 8650 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
8651
8652 * biditype.h: New file.
8653
cbc4fd20
EZ
8654 * bidimirror.h: New file.
8655
6e6e5760
EZ
8656 * window.c (syms_of_window): Doc fix (bug#6409).
8657
4176cba2
RF
86582010-06-12 Romain Francoise <romain@orebokech.com>
8659
8660 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
8661 ediff-hook.
8662
cb4bfcb5
GM
86632010-06-10 Glenn Morris <rgm@gnu.org>
8664
64c60c2f
GM
8665 * editfns.c (Fbyte_to_string): Pacify compiler.
8666
cb4bfcb5
GM
8667 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
8668
2ec1b5ee
CY
86692010-06-26 Andreas Schwab <schwab@linux-m68k.org>
8670
8671 * alloc.c (Fmake_byte_code): Don't access undefined argument
8672 (Bug#6517).
8673
86742010-06-25 Chong Yidong <cyd@stupidchicken.com>
8675
8676 * xdisp.c (next_element_from_image): Ensure that after-strings are
8677 read the next time we hit handle_stop (Bug#1336).
8678
86792010-06-23 Andreas Schwab <schwab@linux-m68k.org>
8680
8681 * lread.c (read1): Signal error if #s is not followed by paren.
8682
86832010-06-19 Chong Yidong <cyd@stupidchicken.com>
8684
8685 * image.c (free_image): Mark frame as garbaged (Bug#6426).
8686
8687 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
8688
86892010-06-15 Glenn Morris <rgm@gnu.org>
8690
8691 * editfns.c (Fbyte_to_string): Pacify compiler.
8692
e454a4a3
SM
86932010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
8694
8695 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
8696 Check `object's type before accessing its guts.
8697
c1b1acc2
DN
86982010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
8699
8700 * s/usg5-4.h: Fix previous change.
8701 Suggested by Lawrence Mitchell <wence@gmx.li>
8702
657d4c0b
AS
87032010-06-08 Andreas Schwab <schwab@linux-m68k.org>
8704
8705 * minibuf.c (Fall_completions): Add more checks.
8706
9b27fd9f
JB
87072010-06-08 Juanma Barranquero <lekktu@gmail.com>
8708
8709 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
8710
a99ebb40
DN
87112010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
8712
d7c5d87d
DN
8713 * lread.c (X_OK): Remove, unused.
8714
0263a941
DN
8715 * dispnew.c: Remove obsolete comment.
8716
a99ebb40
DN
8717 Remove INCLUDED_FCNTL.
8718 * xterm.c (INCLUDED_FCNTL):
8719 * callproc.c (INCLUDED_FCNTL):
8720 * alloc.c (INCLUDED_FCNTL):
8721 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
8722 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
8723
13b5221f
MR
87242010-06-07 Martin Rudalics <rudalics@gmx.at>
8725
8726 * window.c (Fselect_window): Move `record_buffer' up to the
8727 beginning of this function, so the buffer gets recorded
8728 even if the selected window does not change.
8729 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
8730
5220357f
JB
87312010-06-07 Juanma Barranquero <lekktu@gmail.com>
8732
8733 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
8734 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
8735
3085237c
DN
87362010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
8737
8738 Remove BSTRING related code, all platforms define it.
8739 * s/usg5-4.h (BSTRING): Remove definition.
8740 * s/template.h (BSTRING):
8741 * s/msdos.h (BSTRING):
8742 * s/ms-w32.h (BSTRING):
8743 * s/hpux10-20.h (BSTRING):
8744 * s/gnu-linux.h (BSTRING):
8745 * s/darwin.h (BSTRING):
8746 * s/cygwin.h (BSTRING):
8747 * s/bsd-common.h (BSTRING):
8748 * s/aix4-2.h (BSTRING): Likewise.
8749 * sysdep.c: Remove code depending on BSTRING not being defined.
8750
409f2919
JB
87512010-06-05 Juanma Barranquero <lekktu@gmail.com>
8752
8753 Remove obsolete macro BASE_LEADING_CODE_P.
8754 * character.h (BASE_LEADING_CODE_P): Remove.
8755 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
8756 * buffer.c (Fset_buffer_multibyte):
8757 * indent.c (scan_for_column, compute_motion):
8758 * insdel.c (count_combining_before, count_combining_after):
8759 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
8760
087fc47a
JB
87612010-06-04 Juanma Barranquero <lekktu@gmail.com>
8762
8763 Turn `directory-sep-char' into a noop.
8764
8765 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
8766 (DIRECTORY_SEP): Define unconditionally.
8767
8768 * s/ms-w32.h (DIRECTORY_SEP): Remove.
8769
8770 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
8771 call dostounix_filename directly.
8772
8773 * fileio.c (CORRECT_DIR_SEPS): Remove.
8774 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
8775 (Fsubstitute_in_file_name): Use dostounix_filename instead.
8776 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
8777 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
8778
8779 * w32proc.c (CORRECT_DIR_SEPS): Remove.
8780 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
8781
0eb7675e
AS
87822010-06-03 Andreas Schwab <schwab@linux-m68k.org>
8783
a628ad9d
JB
8784 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
8785 (Bug#6346)
0eb7675e 8786
78edd3b7
JB
87872010-06-03 Juanma Barranquero <lekktu@gmail.com>
8788
8789 * ccl.c (Fccl_program_p): Fix typo in docstring.
8790
eb697db5
DN
87912010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
8792
8793 Move UNEXEC definition to autoconf.
8794 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
8795 * s/sol2-10.h (UNEXEC):
8796 * s/irix6-5.h (UNEXEC):
8797 * s/hpux10-20.h (UNEXEC):
8798 * s/gnu-linux.h (UNEXEC):
8799 * s/darwin.h (UNEXEC):
8800 * s/cygwin.h (UNEXEC):
8801 * s/bsd-common.h (UNEXEC):
8802 * s/aix4-2.h (UNEXEC):
8803 * m/alpha.h (UNEXEC): Likewise.
8804 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8805
aa3830c4
JB
88062010-06-03 Juanma Barranquero <lekktu@gmail.com>
8807
8808 Remove obsolete pre-unicode2 macros.
8809 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8810 * composite.c (composition_reseat_it):
8811 * data.c (Faset):
8812 * fns.c (Ffillarray):
8813 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8814 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8815
d234d13e
JL
88162010-06-03 Juri Linkov <juri@jurta.org>
8817
8818 * buffer.c (Fother_buffer): Add CHECK_FRAME.
8819 (Fswitch_to_buffer): Remove unused variable `err'.
8820
0d4bcf4d
GM
88212010-06-03 Glenn Morris <rgm@gnu.org>
8822
e23dc1e2
GM
8823 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8824
05b09564
GM
8825 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8826 now that AH_BOTTOM does it.
8827
824e2978
GM
8828 * m/hp800.h (HAVE_ALLOCA):
8829 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8830
0d4bcf4d
GM
8831 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8832 Remove NOT_C_CODE tests, it is always true now.
8833
c55d2abf
DN
88342010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
8835
08a494a3
DN
8836 Fix config.h includes.
8837 * xsettings.c:
8838 * xgselect.c:
8839 * nsterm.m:
8840 * nsselect.m:
8841 * nsimage.m:
8842 * nsfont.m:
8843 * nsfns.m:
8844 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8845 other files do.
8846
75934b1d
DN
8847 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8848
9f32a766
DN
8849 * s/sol2-6.h: Remove obsolete comments.
8850
c55d2abf
DN
8851 Remove unnecessary alloca.h includes.
8852 * keymap.c: Do not include alloca.h, config.h does that.
8853 * sysdep.c: Likewise. Do not define fwrite, not used.
8854
06ac62b4
SM
88552010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8856
8857 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8858 the HAVE_TERMIO where it belongs (bug#6149).
8859
1ab8293c
SM
88602010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8861
8862 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8863 of bug#6305).
8864
6dcfd253
EZ
88652010-05-30 Eli Zaretskii <eliz@gnu.org>
8866
8867 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8868 state is always cached (bug#6306).
8869
6d26bbb2
EZ
88702010-05-29 Eli Zaretskii <eliz@gnu.org>
8871
06fa4a23
EZ
8872 Fix cursor motion in bidi-reordered continued lines.
8873 * xdisp.c (try_cursor_movement): Backup to non-continuation line
8874 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
8875 over continuation lines in bidi-reordered buffers.
8876 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
8877 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8878
f5783df3
MA
88792010-05-28 Michael Albinus <michael.albinus@gmx.de>
8880
8881 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8882
7d56b2dd
KH
88832010-05-28 Kenichi Handa <handa@m17n.org>
8884
8885 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8886 Don't sheck SPEC if it is nil.
8887 (font_list_entities): Call font_delete_unmatched if
b925d231 8888 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 8889
e58d4ff7
GM
88902010-05-28 Glenn Morris <rgm@gnu.org>
8891
8892 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8893
f1a5d776
CY
88942010-05-27 Chong Yidong <cyd@stupidchicken.com>
8895
8896 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8897 whether to trash.
8898 (internal_delete_file, Frename_file): Callers changed.
8899 (delete_by_moving_to_trash): Doc fix.
8900 (Fdelete_directory_internal): Don't move to trash.
8901
8902 * callproc.c (delete_temp_file):
8903 * buffer.c (Fkill_buffer): Callers changed.
8904
8905 * lisp.h: Update prototype.
8906
f44a59e6
CY
89072010-05-27 Chong Yidong <cyd@stupidchicken.com>
8908
8909 * xdisp.c (redisplay_window): After redisplay, check if point is
8910 still valid before setting it (Bug#6177).
8911
81ac4f35
GM
89122010-05-27 Glenn Morris <rgm@gnu.org>
8913
8914 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
8915 Convert comments to Makefile format.
8916
8917 * Makefile.in (bootstrap-clean): No more Makefile.c.
8918
ccd89fb3
GM
89192010-05-26 Glenn Morris <rgm@gnu.org>
8920
90278cb6
GM
8921 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
8922 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
8923
ccd89fb3
GM
8924 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8925 Remove.
8926 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8927
b7050583
KH
89282010-05-26 Kenichi Handa <handa@m17n.org>
8929
8930 * composite.c (composition_compute_stop_pos): Fix condition for
8931 backward scanning.
8932
e5458003
GM
89332010-05-25 Glenn Morris <rgm@gnu.org>
8934
c345fe90
GM
8935 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8936 Move before TEMACS_LDFLAGS.
8937 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8938 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8939
2e0689ab
GM
8940 * Makefile.in (NOT_C_CODE): No longer define.
8941 (config.h): No longer include.
8942
8009a5e8
GM
8943 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8944 variables it may reference.
8945
e5458003
GM
8946 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8947 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8948
10f72a37
KH
89492010-05-25 Kenichi Handa <handa@m17n.org>
8950
8951 * dispextern.h (struct composition_it): New members rule_idx and
8952 charpos.
8953
8954 * xdisp.c (set_iterator_to_next): While scanning backward, assume
8955 that the character positions of IT point the last character of the
8956 current grapheme cluster.
8957 (next_element_from_composition): Don't change character positions
8958 of IT.
8959 (append_composite_glyph): Set glyph->charpos to
8960 it->cmp_it.charpos.
8961
8962 * composite.c (autocmp_chars): Change the first argument to RULE,
8963 and try composition with RULE only.
8964 (composition_compute_stop_pos): Record the index number of the
8965 composition rule in CMP_IT->rule_idx.
8966 (composition_reseat_it): Call autocmp_chars repeatedly until the
8967 correct rule of the composition is found.
8968 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
8969 is at the last character of the current grapheme cluster when
8970 CMP_IT->reversed_p is nonzero.
8971
171eda53 89722010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 8973
171eda53
SM
8974 * editfns.c (Fbyte_to_string): New function.
8975
66a9f7f4
SM
89762010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8977
8978 * process.c (Fmake_network_process): Set :host to nil if it's not used.
8979 Suggested by Masatake YAMATO <yamato@redhat.com>.
8980
d8c315d1
EZ
89812010-05-23 Eli Zaretskii <eliz@gnu.org>
8982
171eda53 8983 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 8984
f5b416d2 89852010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
8986
8987 * s/netbsd.h: If terminfo is found, use it in preference to
8988 termcap. (Bug#6190) [Backport from trunk]
8989
0416466c
EZ
89902010-05-19 Eli Zaretskii <eliz@gnu.org>
8991
11117830 8992 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
8993
8994 * dispextern.h (struct glyph_row): New members minpos and maxpos.
8995 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
8996 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
8997 and maxpos members instead of start.pos and end.pos, respectively.
8998
8999 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
9000 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
9001 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
9002 (try_window_reusing_current_matrix, try_window_id):
9003 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
9004 (init_from_display_pos, init_iterator): Use EMACS_INT for
9005 character and byte positions.
66a9f7f4 9006 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
9007 arguments for minimum and maximum buffer positions seen by
9008 display_line for this row. Don't use iterator to find the
9009 position following the maximum one; instead, increment the
11117830
EZ
9010 position found by display_line directly. Fix logic; eol_pos
9011 should be tested before the rest. Handle the case of characters
9012 delivered from display vector (bug#6036). Fix tests related to
9013 it->method. Handle the truncated_on_right_p rows.
9014 (RECORD_MAX_MIN_POS): New macro.
9015 (display_line): Use it to record the minimum and maximum buffer
9016 positions for glyphs in the row being assembled. Record the
9017 position of the newline that terminates the line. If word wrap is
9018 in effect, restore minimum and maximum positions seen up to the
9019 wrap point, when iterator returns to it.
9020 (try_window_reusing_current_matrix): Give up if in bidi-reordered
9021 row and cursor not already at point. Restore original pre-bidi
9022 code for unidirectional buffers.
d36fe237
EZ
9023
9024 * dispnew.c (increment_row_positions, check_matrix_invariants):
9025 Increment and check row->start.pos and row->end.pos, in addition
9026 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
9027
11117830
EZ
9028 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
9029 Display truncated_on_left_p and truncated_on_right_p flags.
9030 Formatting fixes.
9031 (pmtxrows): Display the ordinal number of each row. Don't display
9032 rows beyond the last one.
9033
9034 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
9035 it is not copied by bidi_copy_it.
9036
6e83d800
EZ
90372010-05-22 Eli Zaretskii <eliz@gnu.org>
9038
9039 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
9040 (Bug#6237)
9041
110683ad
CY
90422010-05-22 Chong Yidong <cyd@stupidchicken.com>
9043
9044 * image.c (Fimage_flush): Rename from image-refresh.
9045
98fe5161
CY
90462010-05-21 Chong Yidong <cyd@stupidchicken.com>
9047
9048 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
9049 just one window.
9050
9051 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
9052 (clear_image_cache): If the number of cached images is unusually
9053 large, decrease the cache eviction delay (Bug#6230).
9054
e8752c66
GM
90552010-05-21 Glenn Morris <rgm@gnu.org>
9056
66dbf213
GM
9057 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
9058 Move these rules to ns.mk.
9059 * ns.mk: New file.
9060
04384b2d
GM
9061 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
9062
e8752c66
GM
9063 * Makefile.in (CANNOT_DUMP): New, set by configure.
9064 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
9065
2e2bbddb
JL
90662010-05-20 Juri Linkov <juri@jurta.org>
9067
9068 * fileio.c (Fdelete_file): Change interative spec to use
9069 `read-file-name' like in `find-file-read-args' where the default
9070 value is `default-directory' instead of `buffer-file-name'.
9071 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
9072
31c4aaf6
KR
90732010-05-20 Kevin Ryde <user42@zip.com.au>
9074
9075 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
9076 (Voverriding_terminal_local_map, Vsystem_key_alist)
9077 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
9078
9d5cf9b6
GM
90792010-05-20 Glenn Morris <rgm@gnu.org>
9080
9081 * Makefile.in (DEPDIR): New constant.
9082 (DEPFLAGS): Set with configure, not cpp.
9083 (MKDEPDIR): New, set by configure.
9084 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
9085 (clean): Use $DEPDIR.
9086 (deps_frag): Include from configure.
9087 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
9088 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
9089
bba3e508
SM
9090 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
9091 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 9092
7f34aec3
GM
90932010-05-19 Glenn Morris <rgm@gnu.org>
9094
d494e8f2
GM
9095 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
9096
c1d0dcfd
GM
9097 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
9098 (GNULIB_VAR): Remove.
9099 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
9100
9101 * m/ibms390x.h (LINKER):
9102 * m/macppc.h (LINKER) [GNU_LINUX]:
9103 * s/aix4-2.h (ORDINARY_LINK):
9104 * s/cygwin.h (LINKER):
9105 * s/darwin.h (ORDINARY_LINK):
9106 * s/gnu.h (ORDINARY_LINK):
9107 * s/netbsd.h (LINKER):
9108 * s/usg5-4.h (ORDINARY_LINK):
9109 Move to configure.
9110
7f34aec3
GM
9111 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
9112
754790b6
CY
91132010-05-18 Chong Yidong <cyd@stupidchicken.com>
9114
9115 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
9116 prevent stack overflow if number of arguments is too large
9117 (Bug#6214).
9118
161e44d1
JB
91192010-05-18 Juanma Barranquero <lekktu@gmail.com>
9120
9121 * charset.c (load_charset_map_from_file): Don't call close after fclose.
9122
be4ff9da
GM
91232010-05-18 Glenn Morris <rgm@gnu.org>
9124
9539dc5d
GM
9125 * s/gnu-linux.h: Combine two conditionals.
9126
9127 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
9128 $(POST_ALLOC_OBJ).
9129
40dc6bf4
GM
9130 * Makefile.in (RALLOC_OBJ): New, set by configure.
9131 (rallocobj): Replace with the previous variable.
9132 (otherobj): Use $RALLOC_OBJ.
9133
9134 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
9135 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
9136
be4ff9da
GM
9137 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
9138 (gmallocobj, vmlimitobj): Replace with previous two variables.
9139 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
9140
16455a85
GM
91412010-05-17 Glenn Morris <rgm@gnu.org>
9142
9143 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
9144 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
9145
5fdb7468
GM
91462010-05-16 Glenn Morris <rgm@gnu.org>
9147
7ca1f3f9
GM
9148 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
9149
7541dad5
GM
9150 * Makefile.in (clean): Get rid of HAVE_NS conditional.
9151
da53fab9
GM
9152 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
9153 trailing "/".
9154
b02a6645
GM
9155 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
9156 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
9157
8877ca0f
GM
9158 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
9159 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
9160 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
9161 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
9162 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
9163
5fdb7468
GM
9164 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
9165 Remove ${STARTFLAGS}, nothing ever sets it.
9166
95adb4b1
DN
91672010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
9168
9169 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
9170
676b6304
GM
91712010-05-16 Glenn Morris <rgm@gnu.org>
9172
9beab9ce
GM
9173 * Makefile.in (LIBX_BASE): Always define.
9174
8a95f0e7
GM
9175 * Makefile.in (LIBX_OTHER): Move out of cpp section.
9176
676b6304
GM
9177 * Makefile.in (LIBXT): Always define.
9178
6e546d18
GM
91792010-05-15 Glenn Morris <rgm@gnu.org>
9180
4235ca47 9181 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 9182
6e546d18
GM
9183 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
9184 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
9185
8c5ff6dd
KR
91862010-05-15 Ken Raeburn <raeburn@raeburn.org>
9187
560bb7ae 9188 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
9189 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
9190
8b4eb796
KR
9191 * emacs.c (main): Initialize initial-environment and
9192 process-environment before generating from env, not after.
9193
8c5ff6dd
KR
9194 Handle --version reasonably in CANNOT_DUMP configuration.
9195 * emacs.c (emacs_version, emacs_copyright): New string variables.
9196 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
9197 (syms_of_emacs): Defvar them, and initialize them from the C
9198 string variables.
9199 (main): If initialization hasn't been done, print initial version
9200 info from the C strings, instead of starting an interactive session.
9201
dbd3f723
EZ
92022010-05-15 Eli Zaretskii <eliz@gnu.org>
9203
d20e1419
EZ
9204 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
9205 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
9206 (bidi_paragraph_init): Remove redundant assertion that we are at
9207 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
9208
9209 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
9210 (syms_of_xdisp): Defsubr it.
9211
d36fe237
EZ
9212 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
9213
dbd3f723
EZ
9214 * Makefile.in: Fix MSDOS-related comments.
9215
02be533b
GM
92162010-05-15 Glenn Morris <rgm@gnu.org>
9217
1a82cca9
GM
9218 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
9219 (really-lwlib, really-oldXMenu): Always define.
9220 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
9221
3df7b338
GM
9222 * Makefile.in: Simplify cpp conditional.
9223
2b5f541b
GM
9224 * Makefile.in (${ns_appdir}): Simplify using umask.
9225
02be533b
GM
9226 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
9227
4e2db1fe
SM
92282010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
9229
9230 * eval.c (specbind): Remove left-over duplicate test.
9231 Disallow let-binding frame-local vars. Add comment.
9232
4b292a22
EZ
92332010-05-14 Eli Zaretskii <eliz@gnu.org>
9234
2fe72643 9235 Make the cache of bidi iterator states dynamically allocated.
1edbd309 9236 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
9237 (bidi_init_it): Call it.
9238 (bidi_cache_iterator_state): Enlarge the cache if needed.
9239
4e2db1fe 9240 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
9241 bidi_get_next_char_visually. All callers changed.
9242
82ebc97b
KH
92432010-05-14 Kenichi Handa <handa@m17n.org>
9244
9245 * dispextern.h (struct composition_it): New member reversed_p.
9246
9247 * composite.c (composition_compute_stop_pos): Search backward if
9248 ENDPOS < CHARPOS.
9249 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
9250 Set CMP_IT->reversed_p.
b4b6e17e 9251 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 9252
4e2db1fe
SM
9253 * xdisp.c (set_iterator_to_next):
9254 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
9255 scanning backward. Call composition_compute_stop_pos if scan
9256 direction is changed.
9257 (next_element_from_buffer): Call composition_compute_stop_pos with
9258 negative ENDPOS if we are scanning backward.
9259 (next_element_from_composition): Pay attention to
9260 IT->cmp_it.reversed_p.
9261
0e5d7800
KH
92622010-05-14 Kenichi Handa <handa@m17n.org>
9263
560bb7ae 9264 * font.c (font_range): Return the range for the font found at first.
0e5d7800 9265
cb027b32
GM
92662010-05-14 Glenn Morris <rgm@gnu.org>
9267
177b0288
GM
9268 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
9269
fbc00890
GM
9270 * Makefile.in (mktime, X11, register): Move undefs to configure.
9271
f14d1dfd
GM
9272 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
9273 (MSDOS_X_OBJ): New variable.
9274 (MSDOS_SUPPORT_REAL): New constant.
9275 (MSDOS_SUPPORT): Set as a variable, not with cpp.
9276 (obj): Use MSDOS_X_OBJ.
9277 (lisp): Use MSDOS_SUPPORT as a variable.
9278
11842bd8
GM
9279 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
9280 (GPM_MOUSE_SUPPORT): Now it's a constant.
9281 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
9282 not cpp.
9283
489d31a4 9284 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 9285 (ns_appresdir): Remove, unused.
e20f1f07 9286
489d31a4
GM
9287 * Makefile.in (SHELL): Move outside cpp section.
9288
cb027b32
GM
9289 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
9290
5a903aa9
GM
92912010-05-13 Glenn Morris <rgm@gnu.org>
9292
3369c79f
GM
9293 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
9294 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
9295
d5e982a6
GM
9296 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
9297 HAVE_WINDOW_SYSTEM must be too.
9298
6192e163
GM
9299 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
9300 (lisp): Remove WINNT_SUPPORT.
9301
472c5d6b
GM
9302 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
9303 Let configure set these variables (to empty) in this case as well.
9304
0116466b
GM
9305 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
9306 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
9307
5a903aa9
GM
9308 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
9309 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
9310 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
9311 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
9312 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 9313 the values output by configure.
5a903aa9
GM
9314 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
9315
1a0d7c06
GM
93162010-05-12 Glenn Morris <rgm@gnu.org>
9317
b5457f14
GM
9318 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
9319 (LINKER_WAS_SPECIFIED): Remove.
9320
1a0d7c06
GM
9321 * Makefile.in (LIB_GCC): Set using configure, not cpp.
9322 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
9323 * m/arm.h (LIB_GCC) [GNU_LINUX]:
9324 * s/cygwin.h (LIB_GCC):
9325 * s/freebsd.h (LIB_GCC):
9326 * s/gnu-linux.h (LIB_GCC):
9327 * s/msdos.h (LIB_GCC):
9328 * s/netbsd.h (LIB_GCC):
9329 Move to configure.
9330
d1ddd1d0 93312010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
9332
9333 * ftfont.c: Fix incorrect parentheses of #if condition for
9334 definining M17N_FLT_USE_NEW_FEATURE.
9335
acddf8ae
GM
93362010-05-11 Glenn Morris <rgm@gnu.org>
9337
9338 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
9339 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
9340
ae5e04fa
EZ
93412010-05-10 Eli Zaretskii <eliz@gnu.org>
9342
9343 * xdisp.c (init_iterator): Don't turn on bidi reordering in
9344 unibyte buffers. See
9345 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
9346
7490175b
GM
93472010-05-10 Glenn Morris <rgm@gnu.org>
9348
97efb629
GM
9349 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
9350 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
9351 (LIBES): Use LIBS_SYSTEM as a variable.
9352 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
9353 * s/aix4-2.h (LIBS_SYSTEM):
9354 * s/freebsd.h (LIBS_SYSTEM):
9355 * s/hpux10-20.h (LIBS_SYSTEM):
9356 * s/sol2-6.h (LIBS_SYSTEM):
9357 * s/unixware.h (LIBS_SYSTEM):
9358 Move to configure.
9359
7490175b
GM
9360 * s/aix4-2.h (MAIL_USE_LOCKF):
9361 * s/bsd-common.h (MAIL_USE_FLOCK):
9362 * s/darwin.h (MAIL_USE_FLOCK):
9363 * s/gnu-linux.h (MAIL_USE_FLOCK):
9364 * s/irix6-5.h (MAIL_USE_FLOCK):
9365 * s/template.h (MAIL_USE_FLOCK):
9366 Move to configure.
9367
0235128c 93682010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
9369
9370 * Version 23.2 released.
9371
0235128c 93722010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
9373
9374 * composite.c (autocmp_chars): Save point as marker before calling
9375 auto-composition-function (Bug#5984).
9376
9377 * lisp.h (restore_point_unwind): Add prototype.
9378
9379 * fileio.c (restore_point_unwind): Remove static attribute.
9380
0235128c 93812010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
9382
9383 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
9384 new feature of libotf and m17n-flt.
0235128c
SM
9385 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
9386 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
9387 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
9388 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
9389 that OUT is NULL. Use OTF_drive_gsub_with_log and
9390 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
9391 OTF_drive_gpos.
9392 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
9393 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
9394 Setup mflt_enable_new_feature and mflt_try_otf.
9395
4721152c
J
93962010-05-08 Jan Djärv <jan.h.d@swipnet.se>
9397
9398 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
9399
9400 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
9401 box and toolbar (Bug #6139).
9402 (xg_create_tool_bar): Remove comment (Bug #6139).
9403 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
9404 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
9405
ee0a16cf
JB
94062010-05-08 Juanma Barranquero <lekktu@gmail.com>
9407
9408 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
9409 Update dependencies.
9410
96d79611
EZ
94112010-05-08 Eli Zaretskii <eliz@gnu.org>
9412
9413 * fringe.c (update_window_fringes): Set up truncation bitmaps for
9414 R2L lines.
9415
40c17879
GM
94162010-05-08 Glenn Morris <rgm@gnu.org>
9417
7b42b29f
GM
9418 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
9419
40c17879
GM
9420 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
9421 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
9422 (termcapobj): Replace with TERMCAP_OBJ.
9423 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
9424 (LIBES): Use LIBS_TERMCAP as a variable.
9425
9426 * s/freebsd.h (osreldate.h): No longer include, since this file
9427 does not use __FreeBSD_version any more.
9428
9429 * s/aix4-2.h (TERMINFO):
9430 * s/cygwin.h (TERMINFO):
9431 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9432 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
9433 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9434 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9435 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
9436 * s/irix6-5.h (TERMINFO):
9437 * s/netbsd.h (LIBS_TERMCAP):
9438 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
9439 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
9440 * s/usg5-4.h (TERMINFO):
9441 Move to configure.
9442
94b612ad
SM
94432010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
9444
9445 * eval.c (unbind_to): Don't unbind a local binding into the global
9446 binding when the local binding disappeared. Inversely, don't unbind
9447 a global binding into a newly created local binding.
9448 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
9449 can specify the frame to use, when applicable. Adjust callers.
9450
15e12598 94512010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 9452 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
9453
9454 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
9455
f724825e
EZ
94562010-05-07 Eli Zaretskii <eliz@gnu.org>
9457
5cba3209
EZ
9458 * w32fns.c: Include w32.h.
9459 (Fw32_shell_execute): Decode the error message before passing it
9460 to `error'. (Bug#6126)
9461
d16bdfc3
EZ
9462 * msdos.c (dos_set_window_size):
9463 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
9464 instead of `XSYMBOL (foo)->value'.
9465
59d93e87
EZ
94662010-05-07 Eli Zaretskii <eliz@gnu.org>
9467
9fdec8bc
EZ
9468 Fix the MS-DOS build, broken by autoconfiscation.
9469
9470 * Makefile.in: Don't use Make-style comments past the "start of
9471 cpp stuff" line.
9472 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
9473
9474 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
9475 edited directly by msdos/sed1v2.inp).
f724825e 9476
2f86b22b
GM
94772010-05-07 Glenn Morris <rgm@gnu.org>
9478
9479 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
9480 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
9481 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
9482 move out of cpp section.
9483 * s/freebsd.h (LD_SWITCH_SYSTEM):
9484 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
9485 * s/netbsd.h (LD_SWITCH_SYSTEM):
9486 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
9487
49ebbd65
DN
94882010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9489
9490 Define LIB_STANDARD and START_FILES using autoconf.
9491 * s/usg5-4.h (LIB_STANDARD):
9492 * s/netbsd.h (START_FILES):
9493 * s/irix6-5.h (LIB_STANDARD):
9494 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
9495 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9496 * s/freebsd.h (START_FILES):
9497 * s/darwin.h (START_FILES):
9498 * s/cygwin.h (START_FILES):
9499 * s/aix4-2.h (LIB_STANDARD):
9500 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
9501 * Makefile.in (STARTFILES): Rename to START_FILES, define using
9502 autoconf, not cpp.
9503
d43c06d6
DN
95042010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
9505
28823648
DN
9506 Remove NEED_BSDTTY and NEED_UNISTD_H.
9507 * s/hpux10-20.h (NEED_BSDTTY): Remove.
9508 * s/aix4-2.h (NEED_UNISTD_H): Remove.
9509 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
9510 <sys/ptyio.h> and <unistd.h>.
9511
aca00430
DN
9512 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
9513
d43c06d6
DN
9514 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
9515 * s/gnu.h (START_FILES): Remove empty definition.
9516
3e56b11d
JD
95172010-05-06 Jan Djärv <jan.h.d@swipnet.se>
9518
9519 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
9520
e3cf0cde
GM
95212010-05-06 Glenn Morris <rgm@gnu.org>
9522
9523 * Makefile.in (CPP, LN_S): Remove unused variables.
9524
774b9a60
SM
95252010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9526
9527 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
9528
4ab92842
LM
95292010-05-05 Lawrence Mitchell <wence@gmx.li>
9530
9531 * m/sparc.h: Fix typo in earlier change.
9532
178f2507
SM
95332010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9534
9535 Misc tweaks.
9536 * eval.c (Fdefvaralias): Remove unintended nested if.
9537 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
9538
80f00217 95392010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
9540
9541 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
9542
ef03a4e6
DN
95432010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9544
58eb6cf0
DN
9545 Remove BSD_PGRPS.
9546 * s/bsd-common.h (BSD_PGRPS): Remove undef.
9547 * s/gnu-linux.h (BSD_PGRPS): Remove.
9548 * term.c (dissociate_if_controlling_tty):
9549 * sysdep.c (narrow_foreground_group, widen_foreground_group)
9550 (init_sys_modes, reset_sys_modes):
9551 * emacs.c (main):
9552 * callproc.c (Fcall_process, child_setup): Remove code depending
9553 on BSD_PGRPS.
9554
ef03a4e6
DN
9555 Remove POSIX_SIGNALS.
9556 * s/usg5-4.h (POSIX_SIGNALS):
9557 * s/netbsd.h (POSIX_SIGNALS):
9558 * s/msdos.h (POSIX_SIGNALS):
9559 * s/ms-w32.h (POSIX_SIGNALS):
9560 * s/hpux11.h (POSIX_SIGNALS):
9561 * s/gnu.h (POSIX_SIGNALS):
9562 * s/gnu-linux.h (POSIX_SIGNALS):
9563 * s/freebsd.h (POSIX_SIGNALS):
9564 * s/darwin.h (POSIX_SIGNALS):
9565 * s/cygwin.h (POSIX_SIGNALS):
9566 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
9567 * s/unixware.h:
9568 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
9569 * process.c (create_process):
9570 * syssignal.h:
9571 * sysdep.c (wait_for_termination, init_signals):
9572 * process.c (create_process):
9573 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
9574 remove all code that assumes the contrary.
9575
49628785
GM
95762010-05-04 Glenn Morris <rgm@gnu.org>
9577
27a2cdfc
GM
9578 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
9579 variable.
9580 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9581 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
9582 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9583 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
9584 LD_SWITCH_SYSTEM_tmp.
9585 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
9586 New variables, set by configure.
9587
eb21eab5
GM
9588 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9589 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
9590 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9591 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
9592 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
9593
49628785
GM
9594 * s/aix4-2.h (C_SWITCH_SYSTEM):
9595 * m/alpha.h (C_SWITCH_MACHINE):
9596 Move to configure.in.
9597 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
9598 New variables, set by configure.
9599 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
9600 $c_switch_machine and $c_switch_system.
9601
7dff330b
DN
96022010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9603
9604 * s/hpux10-20.h (LIB_STANDARD): New definition.
9605 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
9606 on it, not used anymore.
9607
53967e09
CY
96082010-05-03 Chong Yidong <cyd@stupidchicken.com>
9609
9610 * eval.c (internal_condition_case_n): Rename from
9611 internal_condition_case_2.
9612 (internal_condition_case_2): New function.
9613
9614 * xdisp.c (safe_call): Use internal_condition_case_n.
9615
9616 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
9617 (internal_delete_file, Frename_file): Callers changed.
9618
9619 * buffer.c (Fkill_buffer):
9620 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
9621
9622 * lisp.h: Update prototypes.
9623
3dee6fdb
GM
96242010-05-03 Glenn Morris <rgm@gnu.org>
9625
9626 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
9627 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
9628 (LIBXT): Set with configure, not cpp.
9629 (LIBX): Remove.
9630 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
9631
a101e0fb
DN
96322010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9633
9634 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
9635 The FreeBSD is not needed, the default works, Solaris version is
9636 not needed, and the remaining case is not supported by configure.
9637
f63d0028
JD
96382010-05-02 Jan Djärv <jan.h.d@swipnet.se>
9639
9640 * xsmfns.c (CHDIR_OPT): New define.
9641 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
9642 restarting emacs.
9643
9644 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
9645 shut_down_emacs.
9646
9647 * emacs.c (USAGE1): Mention --chdir.
9648 (main): Handle --chdir.
9649 (standard_args): Add --chdir.
9650 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
9651 #5552).
9652
e4814a9f
DN
96532010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
9654
cd03c74a
DN
9655 Remove LD_SWITCH_MACHINE.
9656 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
9657 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
9658
c3a398a1
DN
9659 Clean up IRIX code.
9660 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
9661 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
9662
87e7285c
DN
9663 Clean up AIX code.
9664 * m/ibmrs6000.inp: Remove file, unused.
9665 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
9666 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
9667 definition ...
9668 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
9669
80f00217
JB
9670 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
9671 unused.
e4814a9f 9672
59ca28de
EZ
96732010-05-01 Eli Zaretskii <eliz@gnu.org>
9674
197daef4
EZ
9675 Emulate POSIX_SIGNALS on MS-Windows.
9676
9677 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
9678 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
9679
9680 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
9681 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
9682 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
9683
80f00217
JB
9684 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
9685 New stubs.
197daef4 9686
af7c7572
EZ
9687 Miscellaneous fixes of bidi display.
9688
59ca28de
EZ
9689 * xdisp.c (find_row_end): New function, refactored from display_line.
9690 (display_line): Use it.
017ea819
EZ
9691 (extend_face_to_end_of_line): In almost-filled rows, extend only
9692 if the row is R2L and not continued.
166e930d 9693 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 9694 Preserve overlay and string info in row->end.
166e930d
EZ
9695 (insert_left_trunc_glyphs): Support addition of left truncation
9696 glyphs to R2L rows.
b47e0dcf 9697 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
9698 glyph between adjacent windows. Fix a crash when a display string
9699 is continued to the next line. Don't return zero if cursor was
9700 found by `cursor' property of a display string.
b47e0dcf
EZ
9701 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
9702 test for that explicitly.
59ca28de 9703
7acac9f4
GM
97042010-05-01 Glenn Morris <rgm@gnu.org>
9705
9706 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
9707 for clarity.
9708 (OTHER_OBJ): Remove.
9709 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
9710 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
9711
45841e65
KK
97122010-05-01 Karel Klíč <kklic@redhat.com>
9713
9714 * fileio.c (Ffile_selinux_context): Context functions may return null.
9715
afc61943
DN
97162010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
9717
80f00217 9718 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 9719
5a1bb006
GM
97202010-04-30 Glenn Morris <rgm@gnu.org>
9721
9722 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
9723 (OTHER_OBJ): Define as a separate variable, for clarity.
9724
210af043
J
97252010-04-30 Jan Djärv <jan.h.d@swipnet.se>
9726
2f8f196d 9727 * xsettings.c: Include limits.h and update file comment.
210af043 9728
0a7df391
GM
97292010-04-30 Glenn Morris <rgm@gnu.org>
9730
d5096f16
GM
9731 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
9732 Set with configure, not cpp.
9733 (LIBW): Remove, replace with $TOOLKIT_LIBW.
9734
7eb1ac33
GM
9735 * Makefile.in (mallocobj): Remove.
9736 (otherobj): Simplify using @OTHER_OBJ@.
9737
517d086b
GM
9738 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
9739 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
9740 Don't bother making nsgui.h dependency platform-specific.
9741
0a7df391
GM
9742 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
9743
d6d23852
SM
97442010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
9745
d2630aef
SM
9746 * process.c (read_process_output, exec_sentinel): Don't burp if the
9747 sentinel/filter kills the current buffer (bug#6060).
9748
f9dddf52 9749 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
9750 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
9751 Remove unused var `args'.
9752 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
9753 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
9754 * doc.c (store_function_docstring): Use XSETCAR.
9755
f1e3642a
GM
97562010-04-28 Glenn Morris <rgm@gnu.org>
9757
faf535f8
GM
9758 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
9759 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
9760
c40f9449
GM
9761 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
9762
658f86ca
GM
9763 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
9764 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
9765
bc0b5f61
GM
9766 * Makefile.in (FONT_OBJ): New, set by configure.
9767 (FONT_DRIVERS): Use $FONT_OBJ.
9768
294c50a0
GM
9769 * Makefile.in (LIBXMU): Set with configure, not cpp.
9770 * s/aix4-2.h (LIBXMU):
9771 * s/hpux10-20.h (LIBXMU):
9772 Remove definition, now set in configure.
9773
e6ec4e99
GM
9774 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
9775
f1e3642a
GM
9776 * m/amdx86-64.h [i386]: Move this test to configure.in.
9777
c6ea2936
GM
97782010-04-27 Glenn Morris <rgm@gnu.org>
9779
8fdac2c3
GM
9780 * Makefile.in (LIBXTR6): Set with configure, not cpp.
9781 * s/unixware.h (NEED_LIBW): Remove definition.
9782
986fb647
GM
9783 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
9784 (TOOLKIT_LIBW): New, set by configure.
9785 (@X_TOOLKIT_TYPE@): No longer define it.
9786
c6ea2936
GM
9787 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
9788 (MOTIF_LIBW): Set with configure, not cpp.
9789 * s/aix4-2.h (LIB_MOTIF):
9790 * s/gnu-linux.h (LIB_MOTIF):
9791 * s/unixware.h (LIB_MOTIF): Move to configure.in.
9792
aaa36002
DN
97932010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
9794
9795 Reduce CPP usage.
9796 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
9797 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
9798 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
9799 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 9800 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 9801
b678dd8b
GM
98022010-04-27 Glenn Morris <rgm@gnu.org>
9803
76cda504
GM
9804 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9805 since the defaults (set by the system file) are fine in most cases.
9806 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9807 * m/ibms390x.h (START_FILES, LIB_STANDARD):
9808 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9809 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9810 Remove definitions, since they are set correctly in s/gnu-linux.h.
9811 * s/freebsd.h (START_FILES, LIB_STANDARD):
9812 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9813 * s/hpux10-20.h (START_FILES):
9814 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9815 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9816
b678dd8b
GM
9817 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9818 (MOTIF_LIBW): Use $LIBXP.
9819 (otherobj): Use $WIDGET_OBJ.
9820
9452ded1
DN
98212010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
9822
7e10844c
DN
9823 * Makefile.in (LIBS_MACHINE): Remove, unused.
9824
9452ded1
DN
9825 Use autoconf instead of cpp for LIB_MATH.
9826 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9827 * s/cygwin.h (LIB_MATH): Likewise.
9828 * Makefile.in (LIB_MATH): Do not define with cpp.
9829 (LIBES): Use autoconf for LIB_MATH.
9830
fcebfc6a
KH
98312010-04-26 Kenichi Handa <handa@m17n.org>
9832
9833 * composite.c (Ffind_composition_internal): Fix the return value
9834 for an automatic composition.
9835
39e2ad1b
DN
98362010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
9837
9838 Remove all NO_ARG_ARRAY uses.
9839 * fns.c (concat2, concat3, nconc2):
9840 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9841 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9842 * m/xtensa.h (NO_ARG_ARRAY):
9843 * m/template.h (NO_ARG_ARRAY):
9844 * m/sparc.h (NO_ARG_ARRAY):
9845 * m/sh3.h (NO_ARG_ARRAY):
9846 * m/mips.h (NO_ARG_ARRAY):
9847 * m/macppc.h (NO_ARG_ARRAY):
9848 * m/iris4d.h (NO_ARG_ARRAY):
9849 * m/intel386.h (NO_ARG_ARRAY):
9850 * m/ibms390x.h (NO_ARG_ARRAY):
9851 * m/ibms390.h (NO_ARG_ARRAY):
9852 * m/ibmrs6000.h (NO_ARG_ARRAY):
9853 * m/ia64.h (NO_ARG_ARRAY):
9854 * m/hp800.h (NO_ARG_ARRAY):
9855 * m/arm.h (NO_ARG_ARRAY):
9856 * m/amdx86-64.h (NO_ARG_ARRAY):
9857 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9858
adf4f59c
EZ
98592010-04-25 Eli Zaretskii <eliz@gnu.org>
9860
6bdf5d65
EZ
9861 * xdisp.c (display_line): Don't assume 2nd call to
9862 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
9863 (iterate_out_of_display_property): New function, body from pop_it.
9864 (pop_it): Use it.
adf4f59c 9865
dfbbda83
GM
98662010-04-24 Glenn Morris <rgm@gnu.org>
9867
9868 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9869 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9870 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9871 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
9872
2d4018aa
EZ
98732010-04-24 Eli Zaretskii <eliz@gnu.org>
9874
a49884a6
EZ
9875 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9876 use `get_next_display_element' and `set_iterator_to_next' to
9877 advance to the next character, when looking for the character that
9878 begins the next row.
9879
76db6fcc 9880 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
9881 definition of "struct Lisp_Symbol".
9882
70eab5c1
GM
98832010-04-24 Glenn Morris <rgm@gnu.org>
9884
9885 * Makefile.in (CRT_DIR): New variable, set by configure.
9886 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9887 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
9888
1ad4cc3d
DN
98892010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9890
e769f484
DN
9891 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9892
4196ff33
DN
9893 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9894
879b0ee4
DN
9895 Remove redundant flags.
9896 * s/freebsd.h (C_SWITCH_SYSTEM):
9897 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9898 * s/netbsd.h (C_SWITCH_SYSTEM):
9899 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9900 of these.
9901
03cbbcb8
DN
9902 Simplify m/intel386.h.
9903 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9904 user: ecrt0.c.
9905 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
9906 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
9907 the only user: s/unixware.h.
9908 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
9909 from m/intel386.h.
bba3e508
SM
9910 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
9911 Definitions moved here from m/intel386.h.
03cbbcb8 9912
1ad4cc3d
DN
9913 * m/mips.h: Remove #if 0 code.
9914
8785b888
EZ
99152010-04-23 Eli Zaretskii <eliz@gnu.org>
9916
728588cc
EZ
9917 Fix display of composed characters from L2R scripts in bidi buffers.
9918 * xdisp.c (set_iterator_to_next, next_element_from_composition):
9919 After advancing IT past the composition, resync the bidi iterator
9920 with IT's position. (Bug#5977)
9921
a63f80b4
DN
99222010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9923
9924 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9925 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9926
ff5dec5c
SM
99272010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9928
9929 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9930
8785b888
EZ
99312010-04-23 Eli Zaretskii <eliz@gnu.org>
9932
58ccf243 9933 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
9934 * xdisp.c (pop_it): When the stack is popped after displaying
9935 from a string, bidi-iterate to exit from the text portion covered
9936 by the `display' property or overlay. (Bug#5988, bug#5920)
9937
feeb1604
DN
99382010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9939
8e324eb6
DN
9940 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9941 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9942
809fcaba
DN
9943 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9944 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9945
ed710380
DN
9946 Simplify STARTFILES definition.
9947 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9948 relying on Makefile.in to define it.
9949 * s/cygwin.h (START_FILES): Likewise.
9950 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
9951
feeb1604
DN
9952 Clean up Solaris code.
9953 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
9954 (LIB_MOTIF): Remove, configure takes care of this.
9955 (NOT_USING_MOTIF): Remove, unused.
9956 * xrdb.c: Remove #if 0-ed #include.
9957 (SYSV): Remove conditional for old SysV.
9958 * sysdep.c (closedir): Remove conditional code for Solaris,
9959 Solaris has closedir.
9960
a0d0b563
JD
99612010-04-22 Jan Djärv <jan.h.d@swipnet.se>
9962
9963 * xsettings.c (read_and_apply_settings): Check if current_font is
9964 NULL before strcmp (Bug#6001).
9965
56bae7c7
DN
99662010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
9967
9968 Clean up HP-UX files.
9969 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
9970 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
9971 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
9972 * s/hpux10-20.h: ... to the only user, here.
9973
372b7a95
EZ
99742010-04-21 Eli Zaretskii <eliz@gnu.org>
9975
9976 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
9977 use buffer-local values of paragraph-start and paragraph-separate.
9978 <paragraph_start_re, paragraph_separate_re>: Rename from
9979 fallback_paragraph_start_re and fallback_paragraph_separate_re.
9980 (Bug#5992)
9981
f904c0f9
JD
99822010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9983
9984 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
9985 current_tool_bar_style are new.
9986 (store_config_changed_event): Rename from store_font_changed_event.
9987 (XSETTINGS_TOOL_BAR_STYLE): New define.
9988 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
9989 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
9990 HAVE_XFT.
9991 (something_changedCB): store_font_changed_event is now
c4cc8b9a 9992 store_config_changed_event.
bba3e508
SM
9993 (parse_settings): Rename from parse_xft_settings.
9994 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 9995 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
9996 (apply_xft_settings): Take current settings as parameter. Do not
9997 call read_(xft)_settings.
9998 (read_and_apply_settings): New function.
bba3e508
SM
9999 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
10000 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 10001 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
10002 Call read_and_apply_settings unconditionally.
10003 (xsettings_initialize): Call init_xsettings.
10004 (Ftool_bar_get_system_style): New function.
10005 (syms_of_xsettings): Define Qmonospace_font_name and
10006 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 10007 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 10008 dynamic-setting.
01c35094 10009 Move misplaced HAVE_GCONF.
f904c0f9
JD
10010
10011 * xsettings.h (Ftool_bar_get_system_style): Declare.
10012
10013 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
10014 Qtext, Qboth, Qboth_horiz are new.
10015 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
10016 Vtool_bar_style, tool_bar_max_label_size.
10017
10018 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
10019
10020 * keyboard.c: QClabel is new.
10021 (parse_tool_bar_item): Take out QClabel from tool bar items.
10022 Try to construct a label if ther is no QClabel.
10023 (syms_of_keyboard): Intern :label as QClabel.
10024
10025 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
10026 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
10027 New.
10028
10029 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
10030 dynamic-setting.el.
10031
10032 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
10033 (xg_make_tool_item, xg_show_toolbar_item): New function.
10034 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
10035 Call xg_make_tool_item to make a tool bar item.
10036 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
10037
10038 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
10039 into account for toolbars.
10040
c632dfda
JD
100412010-04-21 Jan Djärv <jan.h.d@swipnet.se>
10042
10043 * data.c (make_blv): Declarations before code (Bug#5993).
10044
10efe302
GM
100452010-04-21 Glenn Morris <rgm@gnu.org>
10046
10047 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
10048 Define using autoconf, not cpp.
10049 (LIBXSM): New variable, set by autoconf.
10050 (LIBXT): Use $LIBXSM.
10051
4285ac5a
DN
100522010-04-21 Dan Nicolaescu <local_user@dannlt>
10053
3ec759e7
DN
10054 Remove NOMULTIPLEJOBS, unused.
10055 * s/template.h (NOMULTIPLEJOBS):
10056 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
10057
4285ac5a
DN
10058 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
10059 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
10060 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
10061 detects -znocombreloc and passes it to the linker
10062 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
10063
2807228d
GM
100642010-04-21 Glenn Morris <rgm@gnu.org>
10065
10066 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
10067
574c05e2
KK
100682010-04-21 Karel Klíč <kklic@redhat.com>
10069
10070 * Makefile.in (LIBSELINUX_LIBS): New.
10071 (LIBES): Add $LIBSELINUX_LIBS.
10072 * eval.c, lisp.h (call7): New function.
10073 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
10074 (Ffile_selinux_context, Fset_file_selinux_context):
10075 New functions.
10076 (Fcopy_file): New parameter preserve-selinux-context.
10077 (Frename_file): Preserve selinux context when renaming by copy-file.
10078
91eac4bb 100792010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 10080 Eli Zaretskii <eliz@gnu.org>
91eac4bb 10081
50426a04
JB
10082 Don't depend on cm.c or termcap.c on Windows, use stubs.
10083 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
10084 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
10085 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
10086 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
10087 (sys_tputs, sys_tgetstr): New stubs.
10088 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
10089 (tputs, tgetstr): New; define to sys_*.
91eac4bb 10090
938efb77
JB
100912010-04-20 Juanma Barranquero <lekktu@gmail.com>
10092
10093 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
10094
b4bf28b7
SM
100952010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
10096
8b1e1112
SM
10097 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
10098 Just signal a warning rather than an error when inside a let.
10099 (Fmake_variable_frame_local): Add the same test.
10100
933ac235
SM
10101 * font.c (syms_of_font): Make the style table vars read-only.
10102
b4bf28b7
SM
10103 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
10104 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
10105
10106 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
10107
93d68d0c
EZ
101082010-04-20 Eli Zaretskii <eliz@gnu.org>
10109
10110 Fix R2L paragraph display on TTY.
10111
10112 * xdisp.c (unproduce_glyphs): New function.
10113 (display_line): Use it when produced glyphs are discarded from R2L
10114 glyph rows.
10115 (append_composite_glyph): In R2L rows, prepend the glyph rather
10116 than appending it.
10117
10118 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
10119 rather than append it. Set up the resolved_level and bidi_type
10120 attributes of the appended glyph.
283ccc18
EZ
10121 (produce_special_glyphs): Mirror the backslash continuation
10122 character in R2L lines.
93d68d0c 10123
283ccc18 10124 Implement display of R2L paragraphs in GUI sessions.
26cdf528 10125
283ccc18
EZ
10126 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
10127 append_stretch_glyph.
bba3e508
SM
10128 (set_cursor_from_row) <cursor_x>: Remove unused variable.
10129 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
10130 (append_stretch_glyph): In reversed row, prepend the glyph rather
10131 than append it. Set resolved_level and bidi_type of the glyph.
10132 (extend_face_to_end_of_line): If the row is reversed, prepend a
10133 stretch glyph whose width is such that the rightmost glyph will be
10134 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
10135 TTY frames in testing whether a line needs face extension.
10136 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
10137 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
10138 region face.
bba3e508
SM
10139 (set_cursor_from_row, display_line):
10140 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 10141 row->continuation_lines_width.
283ccc18
EZ
10142 (next_element_from_buffer): Don't call bidi_paragraph_init if we
10143 are at ZV. Fixes a crash when reseated to ZV by
10144 try_window_reusing_current_matrix.
45903529
EZ
10145 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
10146 which happens with R2L glyph rows. Fixes a crash when inserting a
10147 character at end of an R2L line.
283ccc18
EZ
10148 (set_cursor_from_row): Don't be fooled by truncated rows: don't
10149 treat them as having zero-width characters. Improve comments.
10150 Don't reverse pos_before and pos_after for reversed glyph rows.
10151 Set cursor.x to negative value when the cursor might be on the
10152 left fringe.
10153 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
10154 left fringe, not the right one.
f951a506
EZ
10155 (notice_overwritten_cursor, draw_phys_cursor_glyph)
10156 (erase_phys_cursor): For reversed cursor_row, support cursor on
10157 the left fringe.
10158
283ccc18
EZ
10159 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
10160 of continuation indicators on the fringes.
10161 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
10162 left fringe.
10163
f951a506
EZ
10164 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
10165 draw cursor on the left fringe.
10166
10167 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
10168 cursor on the left fringe.
10169
f951a506
EZ
10170 * dispnew.c (update_text_area): Handle reversed desired rows when
10171 the cursor is on the left fringe.
10172 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
10173 below, not by 0, for when the cursor is on the left fringe.
10174
3bb49aaf
JD
101752010-04-20 Jan Djärv <jan.h.d@swipnet.se>
10176
10177 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
10178 widget is a scrollbar.
10179
c0be27fd
KH
101802010-04-20 Kenichi Handa <handa@m17n.org>
10181
10182 * charset.c (char_charset): Consider Vcharset_non_preferred_head
10183 only when the arg CHARSET_LIST is nil.
10184
ce5b453a
SM
101852010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
10186
10187 Make variable forwarding explicit rather the using special values.
10188 Basically, this makes the structure of buffer-local values and object
10189 forwarding explicit in the type of Lisp_Symbols rather than use
10190 special Lisp_Objects for that. This tends to lead to slightly more
10191 verbose code, but is more C-like, simpler, and makes it easier to make
10192 sure we handled all cases, among other things by letting the compiler
10193 help us check it.
10194 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
10195 Removing forwarding objects.
10196 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
10197 (struct Lisp_Symbol): Make the various forms of variable-forwarding
10198 explicit rather than hiding them inside Lisp_Object "values".
10199 (XFWDTYPE): New macro.
10200 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
10201 (XBUFFER_LOCAL_VALUE): Remove.
10202 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
10203 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
10204 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
10205 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
10206 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
10207 Remove the Lisp_Misc_* header.
10208 (struct Lisp_Buffer_Local_Value): Redefine.
10209 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
10210 (struct Lisp_Misc_Any): Add filler to get the right size.
10211 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
10212 Lisp_Intfwd.
10213 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
10214 (DEFVAR_KBOARD): Allocate a forwarding object.
10215 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
10216 (let_shadows_global_binding_p): New function.
10217 (union Lisp_Val_Fwd): New type.
10218 (make_blv): New function.
10219 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
10220 (store_symval_forwarding, swap_in_global_binding, Fboundp)
10221 (swap_in_symval_forwarding, find_symbol_value, Fset)
10222 (let_shadows_buffer_binding_p, set_internal, default_value)
10223 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
10224 (Fkill_local_variable, Fmake_variable_frame_local)
10225 (Flocal_variable_p, Flocal_variable_if_set_p)
10226 (Fvariable_binding_locus):
10227 * xdisp.c (select_frame_for_redisplay):
10228 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
10229 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
10230 * frame.c (store_frame_param):
10231 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
10232 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
10233 value structure.
10234 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
10235 (clone_per_buffer_values): Only adjust markers into the current buffer.
10236 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
10237 (Fbuffer_local_value, set_buffer_internal_1)
10238 (swap_out_buffer_local_variables):
10239 Adapt to the new symbol value structure.
10240 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
10241 (defvar_per_buffer): Take a new arg for the fwd object.
10242 (buffer_lisp_local_variables): Return a proper alist (different fix
10243 for bug#4138).
10244 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
10245 (Fgarbage_collect): Don't handle buffer_defaults specially.
10246 (mark_object): Handle new symbol value structure rather than the old
10247 special Lisp_Misc_* objects.
10248 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
10249 * term.c (set_tty_color_mode):
10250 * bidi.c (bidi_initialize): Don't access the ->value field directly.
10251 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
10252 a buffer_local_flags.
10253 * print.c (print_object): Get rid of impossible forwarding objects.
10254
fd3998ff
EZ
102552010-04-19 Eli Zaretskii <eliz@gnu.org>
10256
10257 * bidi.c (bidi_get_type, bidi_get_category)
10258 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
10259 (bidi_type_of_next_char, bidi_level_of_next_char):
10260 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 10261
e42cd1a7
JB
102622010-04-19 Juanma Barranquero <lekktu@gmail.com>
10263
10264 * dired.c (Ffile_attributes): Fix typo in docstring.
10265
6e104790 102662010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
10267
10268 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
10269 NSInteger (Bug#5811).
10270
6e104790 102712010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
10272
10273 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
10274 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
10275
6e104790 102762010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
10277
10278 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
10279
6e104790
SM
102802010-04-19 Chong Yidong <cyd@stupidchicken.com>
10281
10282 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
10283 terminal frames (Bug#5837).
10284
37dcfea0
EZ
102852010-04-19 Eli Zaretskii <eliz@gnu.org>
10286
d1da276f
EZ
10287 * .gdbinit (xsubchartable): New command.
10288
37dcfea0
EZ
102892010-04-19 Eli Zaretskii <eliz@gnu.org>
10290
10291 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 10292 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
10293 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
10294 and
10295 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
10296
e9515805
SM
102972010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10298
10299 * alloc.c (Fpurecopy): Hash-cons if requested.
10300 (syms_of_alloc): Update purify-flag docstring.
10301
22aa44a8
JD
103022010-04-18 Jan Djärv <jan.h.d@swipnet.se>
10303
10304 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
10305 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
10306
ebb5722e
EZ
103072010-04-17 Eli Zaretskii <eliz@gnu.org>
10308
10309 Fix a crash when an NSM character is inserted at BEGV.
10310
10311 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
10312 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
10313 NEUTRAL_B or UNKNOWN_BT.
10314
0f4442ef
EZ
103152010-04-16 Eli Zaretskii <eliz@gnu.org>
10316
10317 * xdisp.c (set_cursor_from_row): Don't consider possibility of
10318 other rows with cursor unless they are different from this row and
10319 this row is part of a continued line. (Bug#5943)
10320
7d4e45f8
DN
103212010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
10322
10323 * s/freebsd.h: Restore osreldate.h include.
10324 Suggested by Naohiro Aota.
10325
5ba5ec85
J
103262010-04-16 Jan Djärv <jan.h.d@swipnet.se>
10327
10328 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
10329
20af301d
CY
103302010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
10331
10332 * s/cygwin.h: Avoid linking against static libgcc.
10333
a4b000fb
JL
103342010-04-15 Juri Linkov <juri@jurta.org>
10335
10336 * window.c: Add Qscroll_command.
10337 Remove Vscroll_preserve_screen_position_commands.
10338 (window_scroll_pixel_based, window_scroll_line_based): Check the
10339 `scroll-command' property on the last command instead of searching
10340 the last command in Vscroll_preserve_screen_position_commands.
10341 (syms_of_window): Initialize and staticpro `Qscroll_command'.
10342 Put Qscroll_command property on Qscroll_up and Qscroll_down.
10343 (scroll-preserve-screen-position): Doc fix.
10344 (Vscroll_preserve_screen_position_commands): Remove variable.
10345
bc319ba4
DN
103462010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
10347
6bb24457
DN
10348 * xdisp.c (message): Do not use NO_ARG_ARRAY.
10349
19d4c244
DN
103502010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
10351
10352 Reduce cpp use in Makefile.in.
10353 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
10354 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
10355 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
10356 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
10357 (CRT0_COMPILE): Remove, inline it in the only user.
10358
32129746
JL
103592010-04-14 Juri Linkov <juri@jurta.org>
10360
10361 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
10362 `scroll-up-command' and `M-v' from `scroll-down' to
10363 `scroll-down-command'.
10364
9013a7f8
JL
103652010-04-14 Juri Linkov <juri@jurta.org>
10366
10367 * window.c (Vscroll_preserve_screen_position_commands): New variable
10368 with the default value as the list of Qscroll_down and Qscroll_up.
10369 (window_scroll_pixel_based, window_scroll_line_based): Search the
10370 last command in the list Vscroll_preserve_screen_position_commands
10371 instead of comparing with Qscroll_up and Qscroll_down.
10372
4bef8d26
JD
103732010-04-13 Jan Djärv <jan.h.d@swipnet.se>
10374
92848133
JD
10375 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
10376 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
10377 does that.
10378
4bef8d26
JD
10379 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
10380 to zero.
10381
58b963f7
SM
103822010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10383
84164a0d
SM
10384 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
10385
2b0a91e7
SM
10386 Try to solve the problem of spurious EOF chars in long lines of text
10387 sent to interactive subprocesses.
10388 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
10389 (system_process_attributes): Remove unused var `ttotal'.
10390 * process.c (send_process): Don't bother breaking long line with EOF
10391 chars when talking to ttys any more.
10392 (wait_reading_process_output): Output a warning when called in such
10393 a way that it could block without being interruptible.
10394
58b963f7
SM
10395 Try to detect file modification within the same second.
10396 * buffer.h (struct buffer): New field modtime_size.
10397 * buffer.c (reset_buffer): Initialize it.
10398 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
10399 (Fverify_visited_file_modtime): Check it.
10400 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
10401 (Fset_visited_file_modtime): Set (or clear) it.
10402
01f5787b
SM
104032010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10404
10405 * process.c (status_notify): Remove unused var `ro'.
10406
83725342
JD
104072010-04-12 Jan Djärv <jan.h.d@swipnet.se>
10408
10409 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
10410 more than one visual (Bug#5938).
10411
b9465836
DN
104122010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10413
50426a04
JB
10414 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
10415 Undefine.
b9465836 10416
8d9c8ece
DN
104172010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
10418
b1f52161
DN
10419 Remove C_SWITCH_SYSTEM_TEMACS.
10420 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
10421 (malloc, realloc, free): Use emacs, not temacs for conditional
10422 definition.
10423
10424 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
10425 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
10426
8d9c8ece
DN
10427 Use autoconf, not cpp for some variables.
10428 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
10429 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
10430 (ALL_CFLAGS): Use them as make variables.
10431 (really-lwlib, really-oldXMenu): Do not pass them.
10432
1ecb2d3f
JD
104332010-04-11 Jan Djärv <jan.h.d@swipnet.se>
10434
10435 * xmenu.c (apply_systemfont_to_dialog): New.
10436 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
10437
3a4fa2f2
SM
104382010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10439
97e53006
SM
10440 * process.c (exec_sentinel): Preserve current-buffer.
10441
3a4fa2f2
SM
10442 * process.c (read_process_output): Move the save-current-buffer to
10443 apply to both the filter and the non-filter branches.
10444
88df7221
DN
104452010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
10446
10447 * s/msdos.h (UNEXEC): New definition.
10448
5634ff85
YM
104492010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10450
6eff5c3d
YM
10451 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
10452 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
10453
10454 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
10455 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
10456 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
10457 TRY_WINDOW_CHECK_MARGINS.
10458
10459 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
10460 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
10461 width only when it is for padding.
5634ff85 10462
b13aef54
J
104632010-04-09 Jan Djärv <jan.h.d@swipnet.se>
10464
10465 * xfns.c (Fx_show_tip): Call try_window in a loop until
10466 fonts_changed_p is zero (Bug#2423).
10467
21d28484
EZ
104682010-04-08 Eli Zaretskii <eliz@gnu.org>
10469
10470 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
10471 the end of TEXT_AREA. (Bug#5856)
10472
0269ef77
JD
104732010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10474
10475 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
10476 HAVE_GCONF.
10477
5930fe97
EZ
104782010-04-08 Eli Zaretskii <eliz@gnu.org>
10479
10480 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
10481 prev.orig_type, for resolving type of NSM. (Bug#5858)
10482
99852628
JD
104832010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10484
10485 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
10486 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
10487 in current_font.
10488 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
10489 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
10490 New functions.
10491 (syms_of_xsettings): Initialize current_font.
10492 defsubr Sfont_get_system_normal_font.
99852628 10493
686b968e
JB
10494 * xsettings.h (Ffont_get_system_normal_font)
10495 (xsettings_get_system_normal_font): Declare.
99852628
JD
10496
10497 * xfns.c (extern xlwmenu_default_font): Remove.
10498 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
10499 to xlwmenu.c.
10500
10501 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
10502 menu items in UTF-8.
10503
2f8f196d 10504 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
99852628 10505 (apply_systemfont_to_menu): New function.
bba3e508
SM
10506 (set_frame_menubar, create_and_show_popup_menu):
10507 Call apply_systemfont_to_menu.
99852628 10508
7fc874c4
J
105092010-04-07 Jan Djärv <jan.h.d@swipnet.se>
10510
10511 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
10512 FRAME_LINE_TO_PIXEL_Y.
10513
10514 * xterm.c (x_set_window_size_1): Don't add border_width/height to
10515 pixelwidth/height.
10516
863bf481
DN
105172010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
10518
5e5a3b92
DN
10519 Simplify code for HP machines.
10520 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
10521 for GNU_LINUX, not needed.
10522 (UNEXEC, NEED_BSDTTY): Move definitions...
10523 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
10524
863bf481
DN
10525 * m/iris4d.h (UNEXEC): Move definition ...
10526 * s/irix6-5.h (UNEXEC): ... here.
10527
3e6bec3b
JD
105282010-04-04 Jan Djärv <jan.h.d@swipnet.se>
10529
10530 * xfns.c (set_machine_and_pid_properties): New function.
10531 (Fx_create_frame): Call set_machine_and_pid_properties.
10532
2912322b
SM
105332010-04-03 Eli Zaretskii <eliz@gnu.org>
10534
bba3e508
SM
10535 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
10536 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
10537 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
10538
2912322b
SM
10539 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
10540 in this function. (Bug#5703)
10541
105422010-04-03 Chong Yidong <cyd@stupidchicken.com>
10543
10544 * nsterm.h: Fix last change.
10545
c435b432
DN
105462010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
10547
a568f507
DN
10548 * m/intel386.h (NO_REMAP): Move definition ...
10549 * s/msdos.h (NO_REMAP): ... here.
10550
4cd9f6c2
DN
10551 * m/vax.h (CRT0_DUMMIES): Remove, unused.
10552
c435b432
DN
10553 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
10554 used on those platforms.
10555
42a2c622
DN
105562010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
10557
10558 Remove extern errno declarations.
10559 * xterm.c:
10560 * xrdb.c:
10561 * w32term.c:
10562 * unexec.c:
10563 * unexaix.c:
10564 * sysdep.c:
10565 * process.c:
10566 * lread.c:
10567 * keyboard.c:
10568 * floatfns.c:
10569 * filelock.c:
10570 * fileio.c:
10571 * emacs.c (main):
10572 * ecrt0.c:
10573 * dispnew.c:
10574 * callproc.c:
10575 * buffer.c: Remove errno extern declarations.
10576 * s/netbsd.h (NEED_ERRNO): Remove.
10577
8224f93d
DN
105782010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
10579
10580 Remove all uses of LIBX11_SYSTEM.
10581 * Makefile.in (LIBX11_SYSTEM): Remove.
10582 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
10583 instead.
10584
814062c7
EZ
105852010-04-01 Eli Zaretskii <eliz@gnu.org>
10586
ed68db4d
EZ
10587 Remove support for DJGPP v1.x (bug#5813).
10588
10589 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
10590 * s/msdos.h:
10591 * unexec.c (make_hdr, copy_text_and_data):
10592 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 10593 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
10594 (IT_set_terminal_modes, __write, _rename, gethostname)
10595 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
10596 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
10597 the value of __DJGPP__.
ed68db4d
EZ
10598 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
10599 compatibility code.
8224f93d
DN
10600 * lread.c:
10601 * gmalloc.c (memalign):
10602 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
10603 * emacs.c (main):
10604 * dosfns.c (init_dosfns):
ed68db4d
EZ
10605 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
10606
52f4d8d5
EZ
106072010-04-01 Eli Zaretskii <eliz@gnu.org>
10608
814062c7
EZ
10609 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
10610 string with `cursor' property comes from an `after-string'
10611 overlay. (Bug#5816)
10612
0dc2e11d
GM
106132010-04-01 Glenn Morris <rgm@gnu.org>
10614
10615 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
10616 Define as Makefile variables.
10617 (LIBX): Use above variables rather than directly using autoconf.
10618
1d29df59
DN
106192010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
10620
10621 Clean up BSD_SYSTEM use.
10622 * xterm.c:
10623 * process.c:
10624 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
10625 for including <sys/ioctl.h>.
10626 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
10627 code is only used for MSDOS.
10628
1546c559
JL
106292010-03-31 Juri Linkov <juri@jurta.org>
10630
10631 * image.c: Add `Qextension_data'.
10632 (syms_of_image): Initialize and staticpro `Qextension_data'.
10633 (Fimage_metadata): Rename from `Fimage_extension_data'.
10634 (gif_load): Put GIF extension data to the property
10635 `Qextension_data'.
10636
6521c534
CY
106372010-03-31 Chong Yidong <cyd@stupidchicken.com>
10638
10639 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
10640 * nsterm.h: Fix prototype.
10641
52c30783
EZ
106422010-03-31 Eli Zaretskii <eliz@gnu.org>
10643
10644 * xdisp.c (highlight_trailing_whitespace): Support highlight of
10645 trailing whitespace in right-to-left rows.
10646
855a0da7
SM
106472010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10648
10649 Get rid of the direct_output optimizations.
10650 * keyboard.c (nonundocount): Remove extern declaration.
10651 (command_loop_1): Remove brittle optimisation for cheap and
10652 common operations.
10653 * xdisp.c (redisplay_internal): Don't bother checking
10654 redisplay_performed_directly_p any more.
10655 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
10656 any more.
10657 * dispnew.c (redisplay_performed_directly_p)
10658 (direct_output_for_insert, direct_output_forward_char):
10659 * dispextern.h (redisplay_performed_directly_p)
10660 (direct_output_for_insert, direct_output_forward_char): Remove.
10661 * cmds.c (nonundocount): Make it static.
10662
85738751 106632010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
10664
10665 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
10666
85738751 106672010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
10668
10669 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
10670 invisible (Bug#5766).
10671
85738751 106722010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 10673
855a0da7
SM
10674 * xdisp.c (x_consider_frame_title, update_window_cursor):
10675 Remove HAVE_NS conditionals.
194d44e7 10676 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
10677
10678 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
10679 filename for the title.
10680 (ns_set_doc_edited): Do nothing if the selected window is a
10681 minibuffer window.
10682
10683 * nsterm.h: Add prototypes for ns_set_name_as_filename and
10684 ns_set_doc_edited.
10685
10686 * nsterm.m: Remove unneeded prototype.
10687
85738751 106882010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
10689
10690 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
10691 in the DOC file. (Bug#5336)
10692
85738751 106932010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
10694
10695 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
10696
75d1428c
SM
106972010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10698
10699 * window.c (keys_of_window): Remove redundant/overridden bindings.
10700
82043cfb
EZ
107012010-03-30 Eli Zaretskii <eliz@gnu.org>
10702
10703 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
10704 Restore original behavior when the iterator is not bidi_p.
10705
b5dd0ae7
DN
107062010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10707
10708 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
10709
bd924a5d
EZ
107102010-03-30 Eli Zaretskii <eliz@gnu.org>
10711
10712 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
10713 are outside the range of cached character positions.
10714
3580374b
JB
107152010-03-30 Juanma Barranquero <lekktu@gmail.com>
10716
10717 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
10718
a7b02820
EZ
107192010-03-30 Eli Zaretskii <eliz@gnu.org>
10720
10721 Initial support for bidirectional editing.
10722
10723 * Makefile.in (obj): Include bidi.o.
10724 (bidi.o): New target.
10725
10726 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
10727 ($(BLD)/bidi.$(O)): New target.
10728
10729 * bidi.c: New file.
10730
10731 * buffer.h (struct buffer): New members bidi_display_reordering
10732 and bidi_paragraph_direction.
10733
10734 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
10735 and bidi_paragraph_direction.
10736 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
10737 and bidi-paragraph-direction.
10738 (Fbuffer_swap_text): Swap the values of
10739 bidi_display_reordering and bidi_paragraph_direction.
10740
10741 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
10742 (bidi_type_t, bidi_dir_t): New types.
10743 (bidi_saved_info, bidi_stack, bidi_it): New structures.
10744 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
10745 prev_stop, base_level_stop, and eol_pos.
10746 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
10747 (IT_STACK_SIZE): Enlarge to 5.
10748 (struct glyph_row): New member reversed_p.
10749 <string_buffer_position>: Update prototype.
10750 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
10751 glyph_row if bidi_it.paragraph_dir == R2L.
10752 (struct glyph): New members resolved_level and bidi_type.
10753
10754 * dispnew.c (direct_output_forward_char): Give up if we need bidi
10755 processing or buffer's direction is right-to-left.
10756 (prepare_desired_row): Preserve the reversed_p flag.
10757 (row_equal_p): Compare the reversed_p attributes as well.
10758
bba3e508
SM
10759 * xdisp.c (init_iterator): Initialize it->bidi_p.
10760 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
10761 buffer's value of bidi_paragraph_direction.
10762 (reseat_1): Initialize bidi_it.first_elt.
10763 (set_iterator_to_next, next_element_from_buffer): Use the value of
10764 paragraph_embedding to determine the paragraph direction.
10765 (set_iterator_to_next): Under bidi reordering, call
10766 bidi_get_next_char_visually. Call bidi_paragraph_init if the
10767 new_paragraph flag is set in the bidi iterator.
10768 (next_element_from_buffer): If bidi_it.first_elt is set,
10769 initialize paragraph direction and find the first character to
10770 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
10771 prime the bidi iterator starting at the line's beginning.
10772 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
10773 non-linearity of the bidi iteration. Likewise for when we back up
10774 beyond the previous stop_charpos. When moving across stop_charpos,
10775 record it in prev_stop.
10776 (display_line): Set row->end and it->start for the next row to the
10777 next character in logical order. Always extend reversed_p rows to
10778 the end of line, even if they end at ZV. Copy the reversed_p flag
10779 to the next glyph row. Keep calling set_cursor_from_row for
10780 bidi-reordered rows even if we already have a possible candidate
10781 for cursor position. Set row_end after all the row's glyphs have
10782 been produced, by looping over the glyphs. Record the position
10783 after EOL in it->eol_pos, and use it to set end_pos of the last
10784 row produced for a continued line.
10785 <Qright_to_left, Qleft_to_right>: New variables.
10786 (syms_of_xdisp): Initialize and staticpro them.
10787 (string_buffer_position_lim): New function.
10788 (string_buffer_position): Most of code moved to
10789 string_buffer_position_lim. Last argument and return value are
10790 now EMACS_INT; all callers changed.
10791 (set_cursor_from_row): Rewritten to support bidirectional text and
10792 reversed glyph rows.
bba3e508
SM
10793 (text_outside_line_unchanged_p, try_window_id):
10794 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
10795 paragraph direction can be affected by the change.
10796 (append_glyph, append_composite_glyph)
10797 (produce_image_glyph, append_stretch_glyph): Set the
10798 resolved_level and bidi_type members of each glyph.
10799 (append_glyph): If the glyph row is reversed, prepend the glyph
10800 rather than appending it.
10801 (handle_stop_backwards): New function.
10802 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2f8f196d 10803 (reseat): Call handle_stop_backwards to recompute prev_stop and
a7b02820
EZ
10804 base_level_stop for the new position.
10805 (handle_invisible_prop): Under bidi iteration, skip invisible text
10806 using bidi_get_next_char_visually. If we are `reseat'ed, init the
10807 paragraph direction. Update IT->prev_stop after skipping
10808 invisible text.
10809 (move_it_in_display_line_to): New variables prev_method
10810 and prev_pos. Compare for strict equality in
10811 BUFFER_POS_REACHED_P.
10812 (try_cursor_movement): Examine all the candidate rows that occlude
10813 point, to return the best match. If rows are bidi-reordered
10814 and point moved backwards, back up to the row that is not a
10815 continuation line, and start looking for a suitable row from
10816 there.
10817
10818 * term.c (append_glyph): Reverse glyphs by pre-pending them,
10819 rather than appending, if the glyph_row's reversed_p flag is set.
10820 Set the resolved_level and bidi_type members of each glyph.
10821
10822 * .gdbinit (pbiditype): New command.
10823 (pgx): Use it to display bidi level and type of the glyph.
10824 (pitx): Display some bidi information about the iterator.
10825 (prowlims, pmtxrows): New commands.
10826
32a8894e
DN
108272010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10828
10829 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10830 * s/usg5-4.h (LIBS_DEBUG):
10831 * s/irix6-5.h (C_DEBUG_SWITCH):
10832 * s/gnu-linux.h (LIBS_DEBUG):
10833 * s/darwin.h (LIBS_DEBUG):
10834 * s/bsd-common.h (LIBS_DEBUG):
10835 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10836 * m/iris4d.h (LIBS_DEBUG):
10837 * m/hp800.h (LIBS_DEBUG): Remove definitions.
10838
10839 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10840 (LIBS_DEBUG): Remove definition.
10841
649dbf36
CY
108422010-03-27 Chong Yidong <cyd@stupidchicken.com>
10843
10844 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10845 Windows.
10846
cad4261f
YM
108472010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10848
10849 * process.c (Fmake_network_process): Don't call turn_on_atimers around
10850 `connect' (Bug#5723).
10851
cd591dbc
HE
108522010-03-25 Helmut Eller <eller.helmut@gmail.com>
10853
10854 * process.c (Fmake_network_process): Call `select' for interrupted
10855 `connect' rather than creating new socket (Bug#5173).
10856
e867cb5d 108572010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
10858
10859 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10860
10861 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10862
10863 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10864
e867cb5d 108652010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
10866
10867 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10868 XLoadQueryFont.
10869
e867cb5d 108702010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
10871
10872 * coding.c (decode_coding_ccl): Fix previous change for the
10873 multibyte case.
fb608df3
KH
10874 (encode_coding_ccl): Don't setup ccl program here. Fix for the
10875 case that the output buffer is fullfilled.
10876 (encode_coding): Setup ccl program here.
fbdc1721 10877
5845f0ed
DN
108782010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
10879
814fb708
DN
10880 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10881
5845f0ed
DN
10882 Simplify LIBS_MACHINE definitions.
10883 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10884 * m/iris4d.h (LIBS_MACHINE): Likewise.
10885 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10886 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 10887 * s/netbsd.h: Remove commented out code.
5845f0ed 10888
b7064064
DN
108892010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
10890
df7734b2
DN
10891 Remove dead code dealing with POSIX_SIGNALS.
10892 * atimer.c (set_alarm): Remove dead code, all USG systems define
10893 POSIX_SIGNALS.
10894 * data.c (arith_error): Likewise.
10895 * keyboard.c (input_available_signal, handle_user_signal)
10896 (interrupt_signal): Likewise.
10897 * process.c (sigchld_handler): Likewise.
10898 (create_process): Remove if 0 code. Remove HPUX conditional when
10899 !defined (POSIX_SIGNALS), it cannot be true.
10900 * syssignal.h: Remove USG5_4 and USG conditionals when
10901 !POSIX_SIGNALS, they cannot be true.
10902
b7064064
DN
10903 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10904 NO_SOCK_SIGIO, not used anymore.
10905
55da5ee3
DN
109062010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
10907
0be96e3a
DN
10908 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
10909 support vax on BSDs.
10910
55da5ee3
DN
10911 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
10912 * s/aix4-2.h (ORDINARY_LINK): ... here.
10913
c0282183
AS
109142010-03-21 Andreas Schwab <schwab@linux-m68k.org>
10915
82c3d67a
AS
10916 * Makefile.in (abs_builddir): Define.
10917 (bootstrap_exe): Use it.
10918 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 10919
3613edce
SM
109202010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10921
10922 * Makefile.in (bootstrap_exe): Use an absolute name.
10923
7f110ddc
DN
109242010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10925
22e87574
DN
10926 Remove support for old GNU/Linux using libc version 5.
10927 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10928 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10929
05a670e6
DN
10930 Consolidate redundant definitions in s/bsd-common.h.
10931 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10932 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10933 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10934 doing it in all files that include this one.
10935 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10936 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10937 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10938 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10939 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10940 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10941 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10942 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10943 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10944
2968f561
DN
10945 Consolidate redundant definitions.
10946 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10947 it's undefined in all files that include this one.
10948 (POSIX_SIGNALS): Define here instead of doing it in all files that
10949 include this one.
10950 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10951 (POSIX_SIGNALS): Do not define.
10952 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10953 (POSIX_SIGNALS): Do not define.
10954 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10955 (POSIX_SIGNALS): Do not define.
10956
15d25dc0 10957 Remove support for old UNIX System V systems.
fe7be221
GM
10958 * s/unixware.h: Add the contents of s/usg5-4-2.h.
10959 * s/usg5-4-2.h: Remove.
15d25dc0 10960
07e339e4
DN
10961 Remove support for Solaris on PPC and for old versions.
10962 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
10963 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
10964 that cancel each other.
10965 * s/sol2-3.h:
10966 * s/sol2-4.h:
10967 * s/sol2-5.h: Remove.
10968 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
10969 (NO_REMAP): Remove, unused.
10970 (UNEXEC): Move definition ...
10971 * s/aix4-2.h (UNEXEC): ... here.
10972
7f110ddc
DN
10973 * s/openbsd.h: Remove support for non-ELF and for systems that do
10974 not support shared libraries.
10975 * s/netbsd.h:
10976 * s/freebsd.h: Likewise.
10977
605f35cd
DN
109782010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10979
10980 Remove non-working support for lynxos 3.0.
10981 * s/lynxos.h: Remove file.
10982
10983 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
10984 COFF_BSD_SYMBOLS, nothing defines it anymore.
10985
aed71cf4
DN
109862010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10987
10988 Remove obsolete uses of HAVE_SHM.
10989 * emacs.c (standard_args):
10990 (Fdump_emacs):
10991 (syms_of_emacs): Remove code depending on HAVE_SHM.
10992
10993 * alloc.c: Remove HAVE_SHM dependent definition.
10994
10995 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
10996
aded53ff
GM
109972010-03-18 Glenn Morris <rgm@gnu.org>
10998
17284745
GM
10999 * emacs.c (USAGE4): Hard-code bug address.
11000 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
11001 (bug_reporting_address): Remove.
11002 (main): Don't call bug_reporting_address.
11003
aded53ff
GM
11004 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
11005 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
11006
303500aa
CY
110072010-03-15 Chong Yidong <cyd@stupidchicken.com>
11008
11009 * xfns.c (Fx_create_frame):
11010 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
11011 on left.
11012
cef3058f
CY
110132010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
11014
11015 * editfns.c (Fformat): Account for string precision when computing
11016 field width (Bug#5710).
11017
a647d59d
CY
110182010-03-12 Chong Yidong <cyd@stupidchicken.com>
11019
4fa42018
CY
11020 * xfns.c (Fx_create_frame): Set default to Qright.
11021
a647d59d
CY
11022 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
11023 all window systems.
11024
6da23aaa
EZ
110252010-03-12 Eli Zaretskii <eliz@gnu.org>
11026
a96f6398 11027 These changes remove termcap.c from the build on Posix platforms.
83d02def 11028 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
11029 (MSDOS_OBJ): ...to here.
11030 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
11031 now identical to when LIBS_TERMCAP is defined.
11032
11033 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
11034
11035 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
11036
a96f6398 11037 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 11038
288f9fc0
CY
110392010-03-10 Chong Yidong <cyd@stupidchicken.com>
11040
11041 * Branch for 23.2.
11042
d48cd3f4
SM
110432010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11044
11045 Cleanup setup of gl_state in various parts of the code.
11046 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
11047 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
11048 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
11049 (skip_chars):
11050 * regex.c (regex_compile): Use it.
11051 (re_compile_pattern): Don't set gl_state.current_syntax_table since
11052 it's now set in regex_compile when/if we need it.
11053
618db430
SM
110542010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
11055
c0335e02
SM
11056 Make it possible to C-g in a tight bytecode loop again (bug#5680).
11057 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
11058 (QUIT): Use it to consolidate code and remove redundancy.
11059 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
11060
254c06a8
SM
11061 * regex.c (regex_compile): Setup gl_state as well.
11062
618db430
SM
11063 * syntax.c (skip_chars): Setup gl_state (bug#3823).
11064 (in_classes): Use CONSP before XCAR/XCDR.
11065
233f0c9f
CY
110662010-03-03 Chong Yidong <cyd@stupidchicken.com>
11067
11068 * keymap.c (Fwhere_is_internal): Use Fequal to compare
11069 definitions, so that keyboard macros are correctly handled
11070 (Bug#5481).
11071
75f80e63
EZ
110722010-03-02 Eli Zaretskii <eliz@gnu.org>
11073
11074 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
11075 text that could be relocated inside the call to emacs_mule_char.
11076 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
11077 (CODING_DECODE_CHAR): Add a comment describing its purpose.
11078
dcfb9bc4
KH
110792010-03-02 Kenichi Handa <handa@m17n.org>
11080
fc9a17bc
KH
11081 * character.c (parse_str_as_multibyte): Fix handling of the
11082 multibyte form of raw-bytes.
11083 (str_as_multibyte): Likewise.
11084
dcfb9bc4
KH
11085 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
11086 form of raw-bytes.
11087
412c01b6
CY
110882010-02-28 Chong Yidong <cyd@stupidchicken.com>
11089
11090 * charset.c (load_charset_map_from_file)
11091 (load_charset_map_from_vector): Zero out allocated
11092 charset_map_entries before using them.
11093
df7e1ea0
AS
110942010-02-27 Andreas Schwab <schwab@linux-m68k.org>
11095
11096 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
11097
fe69a722
CY
110982010-02-27 Chong Yidong <cyd@stupidchicken.com>
11099
4ed28cf4
CY
11100 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
11101 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 11102
7379cfce
KH
111032010-02-26 Kenichi Handa <handa@m17n.org>
11104
f88cc4d6
KH
11105 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
11106
7379cfce
KH
11107 * xdisp.c (reseat_to_string): Fix previous change.
11108
cf2fdcfb
CY
111092010-02-26 David Reitter <david.reitter@gmail.com>
11110
11111 * nsfont.m (nsfont_draw): ns_antialias_text should be a
11112 Lisp_Object (Bug#4736).
11113
cc6c7c75
KH
111142010-02-25 Kenichi Handa <handa@m17n.org>
11115
11116 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
11117
32e737d7
JD
111182010-02-24 Jan Djärv <jan.h.d@swipnet.se>
11119
11120 * xterm.c (XTflash): Move declarations before statements.
11121
11122 * gtkutil.c (xg_get_gdk_display): Remove (unused).
11123 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
11124 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
11125 (xg_create_tool_bar): Remove unused variables.
11126 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 11127 (xg_create_frame_widgets): Remove variable grav.
32e737d7 11128
676cae9f
CY
111292010-02-21 Chong Yidong <cyd@stupidchicken.com>
11130
11131 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
11132
886cc2b8
SM
111332010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11134
11135 * term.c (fatal): Add a final \n if needed (bug#5596).
11136
ddb2d8e2
CY
111372010-02-18 Chong Yidong <cyd@stupidchicken.com>
11138
11139 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
11140
2a4f8d3d
GM
111412010-02-18 Glenn Morris <rgm@gnu.org>
11142
11143 * callint.c (Finteractive): Doc fix.
11144
ebaf11b6
KH
111452010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
11146
886cc2b8
SM
11147 * coding.c (record_conversion_result):
11148 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
11149 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
11150 memory allocation error.
11151
d0396581
KH
111522010-02-17 Kenichi Handa <handa@m17n.org>
11153
886cc2b8
SM
11154 * coding.c (decode_coding_ccl): Don't setup ccl program here.
11155 Fix for the case that the output buffer is fullfilled.
d0396581
KH
11156 (decode_coding): Setup ccl program here. Keep looping when the
11157 decoder stopped because the output buffer is
11158 fullfilled (bug#5534).
11159
11160 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
11161
98599f74
JD
111622010-02-13 Jan Djärv <jan.h.d@swipnet.se>
11163
471e4f04 11164 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 11165 bug #5571.
886cc2b8 11166 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 11167 overdrawn.
98599f74 11168
182659ae
JD
111692010-02-10 Jan Djärv <jan.h.d@swipnet.se>
11170
11171 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
11172 doing_interact here.
11173 (ice_connection_closed): New function.
11174 (x_session_check_input, smc_die_CB, ice_io_error_handler)
11175 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
11176 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
11177 returns I/O error.
11178 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
11179 bug #5512.
11180
9be32c4e 111812010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
11182
11183 * nsfont.m (nsfont_open): The system's value for the font descent
11184 is negative, so round it down to avoid clipping.
11185
a2f3eb19
CY
111862010-02-06 Chong Yidong <cyd@stupidchicken.com>
11187
11188 * charset.c (load_charset_map_from_file)
11189 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 11190 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 11191
3088147c
CY
111922010-02-05 Chong Yidong <cyd@stupidchicken.com>
11193
11194 * charset.c (load_charset_map_from_file): Allocate large
11195 charset_map_entries structure on the heap rather than the stack.
11196 (Bug#5526).
11197
b57d9029
KH
111982010-01-31 Kenichi Handa <handa@m17n.org>
11199
11200 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 11201 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 11202
c67d885b
CY
112032010-01-31 Chong Yidong <cyd@stupidchicken.com>
11204
11205 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
11206 <deactivated@gmail.com> (Bug#3605).
11207
8fab2362
CY
112082010-01-31 David De La Harpe Golden <david@harpegolden.net>
11209
11210 * fileio.c (Frename_file): Correctly rename symlinks to
11211 directories (Bug#5496).
11212
cb2a62f2
CY
112132010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
11214
11215 * nsterm.m (ns_ring_bell): Handle visible bell like X.
11216
944c7a26
AS
112172010-01-30 Andreas Schwab <schwab@linux-m68k.org>
11218
11219 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
11220
c024ac08
CY
112212010-01-29 Chong Yidong <cyd@stupidchicken.com>
11222
11223 * frame.c (DEFAULT_ROWS): Change default to 35.
11224
11225 * xfns.c (x_default_font_parameter): Change default XFT font to
11226 monospace-10 (Bug#3643).
11227
af93af83
EZ
112282010-01-29 Eli Zaretskii <eliz@gnu.org>
11229
11230 * w32inevt.c (key_event): Remove unnecessary comparison of
11231 event->uChar.AsciiChar with 128.
11232
ca0eb708
CY
112332010-01-28 Chong Yidong <cyd@stupidchicken.com>
11234
b242dbfc
CY
11235 * fileio.c (Frename_file): Fix last change (Bug#5487).
11236
ca0eb708
CY
11237 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
11238
11239 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
11240
45d45af5
JD
112412010-01-28 Jan Djärv <jan.h.d@swipnet.se>
11242
11243 * xfns.c (Fx_create_frame): Remove window size matching code from
11244 2010-01-15.
a73f9c9d 11245 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 11246
7e233730
JR
112472010-01-27 Jason Rumney <jasonr@gnu.org>
11248
11249 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 11250 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 11251
86e893e3
KH
112522010-01-27 Kenichi Handa <handa@m17n.org>
11253
11254 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 11255 pattern string (Bug#4209).
86e893e3 11256
8719abec
CY
112572010-01-27 David De La Harpe Golden <david@harpegolden.net>
11258
11259 * fileio.c (Frename_file): Call copy-directory and
11260 delete-directory for directories, in order to handle cross-device
11261 renaming (Bug#3353).
11262
844794c8
JD
112632010-01-25 Jan Djärv <jan.h.d@swipnet.se>
11264
aa3e13b5 11265 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 11266 sizes 24 and 10. Bug #3643.
844794c8 11267
bd4b5750
SM
112682010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
11269
8dc1adf6 11270 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
11271 * keymap.c (shadow_lookup): Add `remap' arg.
11272 (describe_map, describe_vector): Update calls to shadow_lookup.
11273 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
11274 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
11275 perform remapping during shadow_lookup check of remapped_sequences.
11276
285d07e2
CY
112772010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
11278
11279 * image.c (png_load): Use png_sig_cmp instead of the obsolete
11280 png_check_sig, which has been removed in libpng 1.4.
11281
c6d09b8d
CY
112822010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
11283
11284 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
11285 lacks this header file).
11286
3d782998
YM
112872010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11288
11289 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
11290 as in Emacs 22.
11291
2aff7c53
YM
112922010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11293
11294 * lisp.h (make_pure_string): String pointer arg now points to const.
11295
11296 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
11297 args now point to const.
11298
74327f7a
EZ
112992010-01-22 Eli Zaretskii <eliz@gnu.org>
11300
11301 * lread.c (Fload): Don't treat files without .elc extension as
11302 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
11303 them. (bug#5303)
11304
4d1e6632
KH
113052010-01-20 Kenichi Handa <handa@m17n.org>
11306
11307 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
11308 treat the source as actual byte sequence.
11309
1fdede8f
AM
113102010-01-19 Alan Mackenzie <acm@muc.de>
11311
11312 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 11313 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
11314 `signal_after_change_p' to `coherent_change_p', and make the
11315 invocation of `modify_region' conditional on it.
11316
67477f30
JD
113172010-01-19 Jan Djärv <jan.h.d@swipnet.se>
11318
11319 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
11320 for debug purpose.
11321 (syms_of_xsettings): Declare xft-settings.
11322
244b023e
CY
113232010-01-18 Chong Yidong <cyd@stupidchicken.com>
11324
11325 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
11326
617364fe
CY
113272010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
11328
11329 * xterm.c (event_handler_gdk): Block input (Bug#5037).
11330
4fe22cdf
CY
113312010-01-16 Chong Yidong <cyd@stupidchicken.com>
11332
11333 * emacs.c (standard_args): Adjust arg priorities to reflect how
11334 they are processed in startup.el.
11335
e118d2be
AS
113362010-01-16 Andreas Schwab <schwab@linux-m68k.org>
11337
11338 * Makefile.in (lisp, shortlisp): Update.
11339
523ae620
SM
113402010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
11341
11342 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
11343 code, link the new kboard into all_kboard before running Lisp code,
11344 and protect the new terminal with GCPRO (Bug#5365).
11345 (x_term_init): Remove unused var `atom'.
11346 (x_delete_display, x_delete_terminal): Remove unused var `i'.
11347
f0d13888
JD
113482010-01-15 Jan Djärv <jan.h.d@swipnet.se>
11349
11350 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
11351 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
11352 to find out usable size of the desktop. Don't make frames larger than
ac146f82 11353 this. Bug #3643.
f0d13888 11354
cc320f07
KH
113552010-01-15 Kenichi Handa <handa@m17n.org>
11356
11357 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
11358
7ffdf101
CY
113592010-01-15 Chong Yidong <cyd@stupidchicken.com>
11360
11361 * nsterm.m (Qnone): Define.
11362
11363 * nsfns.m (Qnone): Move definition to nsterm.m.
11364
d12bd917
KH
113652010-01-14 Kenichi Handa <handa@m17n.org>
11366
11367 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
11368 systems.
11369
d9a7c140
KH
113702010-01-14 Kenichi Handa <handa@m17n.org>
11371
11372 Make auto-composition work on all buffers even if they are
11373 fundamental mode.
11374
11375 * composite.c (Vauto_composition_mode): New variable.
11376 (composition_compute_stop_pos): Check Vauto_composition_mode
11377 instead of Vauto_composition_function.
11378 (composition_adjust_point, Ffind_composition_internal): Likewise.
11379 (syms_of_composite): Declare Lisp variable
11380 "auto-composition-mode" here.
11381
63286bb2
CY
113822010-01-13 Chong Yidong <cyd@stupidchicken.com>
11383
11384 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
11385 during call to vendor-specific-keysyms (Bug#5365).
11386
c2623ee7
YM
113872010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11388
11389 * keyboard.c (input_available_signal) [SYNC_INPUT]:
11390 Call SIGNAL_THREAD_CHECK (Bug#5333).
11391
11392 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
11393 Call SIGNAL_THREAD_CHECK.
11394
0b5397c2
SM
113952010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
11396
11397 Try to fix bug#5314. This is probably not the final word, tho.
11398 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
11399 recent-auto-save-p as a side-effect.
11400 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
11401 * buffer.c (Fkill_buffer, reset_buffer):
11402 * editfns.c (Fsubst_char_in_region):
11403 * fileio.c (Finsert_file_contents, Fdo_auto_save)
11404 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
11405
dc954cb2
KH
114062010-01-13 Kenichi Handa <handa@m17n.org>
11407
11408 Display buffer name, etc. in mode line by composing correctly.
11409
11410 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
11411 STRING is not nil.
0b5397c2 11412 (display_mode_element): Adjust for the change of
dc954cb2
KH
11413 decode_mode_spec and display_line.
11414 (decode_mode_spec): Change arg MULTIBYTE to STRING.
11415 (display_string): Handle the case that STRING is non-null and
11416 LISP_STRING is not nil.
11417
0b5397c2
SM
11418 * xterm.c (x_draw_composite_glyph_string_foreground):
11419 Pay attention to s->face->overstrike.
dc954cb2
KH
11420
11421 * composite.c (composition_reseat_it): Don't check PT if STRING is
11422 non nil.
11423
4a00eaca
YM
114242010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11425
11426 * keyboard.c (read_char): Don't apply previous change when current
11427 buffer is unchanged by command execution.
11428
60abb287
JD
114292010-01-12 Jan Djärv <jan.h.d@swipnet.se>
11430
11431 * keyboard.c (read_char): Return after executing from special map.
11432
893db5bc
GM
114332010-01-12 Glenn Morris <rgm@gnu.org>
11434
11435 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
11436 bug-gnu-emacs rather than emacs-pretest-bug.
11437
4d03ece0
CY
114382010-01-11 Chong Yidong <cyd@stupidchicken.com>
11439
11440 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
11441 initializing the Lisp variables that depend on them.
11442
1df47e38
YM
114432010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11444
11445 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
11446 Clear areas that will not be updated after change of menu bar lines.
11447 Clear the menu bar window's current matrix when the window gets empty.
11448
2f1c6384
CY
114492010-01-09 Chong Yidong <cyd@stupidchicken.com>
11450
e398c61c
CY
11451 * intervals.h, textprop.c (extend_property_ranges): Return value
11452 and args changed. Discard properties that begin at or after the
11453 new end (Bug#5306).
11454
11455 * editfns.c (Fformat): Caller changed.
11456
e5a29a10
CY
11457 * nsterm.m (ns_set_default_prefs): Delete function.
11458 (syms_of_nsterm): Initialize ns_command_modifier,
11459 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
11460 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
11461
2f1c6384
CY
11462 * xdisp.c (pos_visible_p): Check for invisible text at the correct
11463 position (Bug#4040).
11464
d427a9fa
EZ
114652010-01-09 Eli Zaretskii <eliz@gnu.org>
11466
11467 * editfns.c (Ffloat_time): Doc fix.
11468
21b9df2f
JD
114692010-01-09 Jan Djärv <jan.h.d@swipnet.se>
11470
11471 * xfns.c (Fx_create_frame): Don't create frame larger than display
11472 by default bug#3643.
11473
4b00d3b1
YM
114742010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11475
11476 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
11477 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
11478 windows above internal border.
11479
11480 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
11481 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
11482 windows above internal border.
11483
11484 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
11485 tool bar windows specially.
11486
11487 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
11488
11489 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
11490 specially.
11491 (XTflash): Take account of menu bar height.
11492
11493 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
11494 specially.
11495
5075d853
JD
114962010-01-08 Jan Djärv <jan.h.d@swipnet.se>
11497
ac146f82 11498 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
11499 also be true before we can return early (bug #5339).
11500
474217c8
CY
115012010-01-06 David Reitter <david.reitter@gmail.com>
11502
11503 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
11504 (Fns_display_usable_bounds): Rewrite, computing bounds properly
11505 (Bug#3233).
11506
c0e6d47d
JD
115072010-01-06 Jan Djärv <jan.h.d@swipnet.se>
11508
d0cf45b7
JD
11509 * font.c (font_open_entity): Enable chache and call cached_font_ok
11510 for the driver if defined.
11511 (QCuser_spec): New symbol.
11512 (font_spec_from_name): Save name as user-spec.
11513 (font_load_for_lface): Keep user-spec instead of name.
11514 (font_open_by_name): Save name as user-spec.
11515 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 11516 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
11517
11518 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
11519 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
11520 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
11521
11522 * font.h (struct font_driver): Add cached_font_ok.
11523
c0e6d47d
JD
11524 * xterm.c (x_clear_frame): Queue draw for scroll bars.
11525
7c583cd8
JD
115262010-01-05 Jan Djärv <jan.h.d@swipnet.se>
11527
11528 * xterm.c (x_new_font): Move code for setting rows/cols before
11529 resizing ...
ac146f82 11530 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
11531
11532 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
11533 (xg_frame_resized, xg_frame_set_char_size):
11534 Call xg_clear_under_internal_border.
7c583cd8 11535 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 11536
03f77f0a
CY
115372010-01-05 Chong Yidong <cyd@stupidchicken.com>
11538
11539 * keyboard.c (read_key_sequence): Catch keyboard switch after
11540 making a new tty frame (Bug#5095).
11541
2a1ef5be
KH
115422010-01-05 Kenichi Handa <handa@m17n.org>
11543
11544 * fontset.c (fontset_find_font): Fix getting the frame pointer.
11545
e3eb1dae
SM
115462010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
11547
11548 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
11549 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
11550 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
11551
777013f2
MA
115522010-01-03 Michael Albinus <michael.albinus@gmx.de>
11553
11554 * dbusbind.c (xd_add_watch): Improve debug message.
11555 (xd_remove_watch): Improve debug message. If DATA is the session
11556 bus, unset D-Bus session environment.
11557 (Fdbus_init_bus): Pass the bus as argument to
11558 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 11559
8932b1c2
CY
115602010-01-01 Chong Yidong <cyd@stupidchicken.com>
11561
87231e2c
CY
11562 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
11563
4801c5fa
CY
11564 * lread.c (syms_of_lread): Make it clearer that these are the
11565 names of loaded files (Bug#5068).
11566
8932b1c2
CY
11567 * eval.c (run_hook_with_args): Handle the case where the global
11568 value has the obsolete single-function form (Bug#5026).
11569
11e3c684
CY
115702009-12-27 Chong Yidong <cyd@stupidchicken.com>
11571
11572 * minibuf.c (Fall_completions): Minor optimization.
11573
5b28ce35
EZ
115742009-12-26 Eli Zaretskii <eliz@gnu.org>
11575
5ce6e4f4
JB
11576 * .gdbinit (pgx): Fix display of composite glyphs.
11577 Display cmp.from and cmp.to as well.
11578 (pitx): Fix last change.
5b28ce35 11579
bcffff46
KH
115802009-12-25 Kenichi Handa <handa@m17n.org>
11581
11582 * composite.h (composition_adjust_point): Update prototype.
11583
11584 * composite.c (composition_reseat_it): Don't make a composition
11585 spanning over point.
11586 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
11587 composable characters.
11588 (composition_adjust_point): New arg NEW_PT. Callers changed.
11589
11590 * keyboard.c (command_loop_1): Force redisplay if the last point
11591 was within a composition.
11592 (adjust_point_for_property): Don't adjust point for automatic
11593 composition when called after buffer modification.
11594
3f670e9a
EZ
115952009-12-19 Eli Zaretskii <eliz@gnu.org>
11596
5ce6e4f4
JB
11597 * .gdbinit (pitx): Don't use enum names, use their values.
11598 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
11599 (pgx): Don't use enum names, use their values.
11600 (pitmethod): New helper command.
11601 (pitx): Use it to display iteration method.
11602 (pgrowit): New command.
11603
ad903955
EZ
11604 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
11605
3f670e9a
EZ
11606 Update dependencies in Makefile.in.
11607
11608 * Makefile.in (alloc.o): Depend on termhooks.h.
11609 (atimer.o): Depend on blockinput.h.
11610 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
11611 and frame.h.
11612 (callint.o): Depend on systime.h, coding.h, and composite.h.
11613 (callproc.o): Depend on buffer.h.
11614 (casefiddle.o): Don't depend on charset.h.
11615 (casetab.o): Depend on character.h.
11616 (ccl.o): Depend on composite.h.
11617 (chartab.o): Depend on ccl.h.
11618 (cm.o): Depend on dispextern.h.
11619 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
11620 (coding.o): Don't depend on $(INTERVALS_H).
11621 (composite.o): Don't depend on dispextern.h explicitly (it's in
11622 $(INTERVALS_H)). Depend on ccl.h.
11623 (data.o): Depend on systime.h, coding.h, composite.h,
11624 dispextern.h, font.h, and ccl.h.
11625 (dired.o): Depend on composite.h.
11626 (dispnew.o): Depend on coding.h. Don't depend explicitly on
11627 composite.h (it's in $(INTERVALS_H)).
11628 (doc.o): Depend on systime.h, coding.h, and composite.h.
11629 (editfns.o): Don't depend explicitly on dispextern.h.
11630 (emacs.o): Depend on frame.h and coding.h.
11631 (eval.o): Depend on coding.h, composite.h, and xterm.h.
11632 (fileio.o): Depend on frame.h and commands.h. Don't depend
11633 explicitly on dispextern.h.
11634 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
11635 composite.h.
11636 (fns.o): Don't depend on termhooks.h.
11637 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
11638 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
11639 coding.h, $(INTERVALS_H), window.h, xterm.h.
11640 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
11641 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
11642 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
11643 fontset.h, ccl.h, and ftfont.h.
11644 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11645 (gtkutil.o): Depend on dispextern.h and composite.h.
11646 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
11647 termhooks.h, and ccl.h.
11648 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
11649 (intervals.o): Depend on systime.h and coding.h.
11650 (keyboard.o): Depend on composite.h and coding.h.
11651 (keymap.o): Depend on coding.h and frame.h.
11652 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
11653 (macros.o): Depend on systime.h, coding.h, and composite.h.
11654 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
11655 and atimer.h.
11656 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
11657 dispextern.h explicitly.
0b5397c2
SM
11658 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
11659 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
11660 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
11661 (regex.o): Don't depend on charset.h.
11662 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
11663 (search.o): Don't depend explicitly on composite.h.
11664 (sound.o): Depend on atimer.h and systime.h.
11665 (syntax.o): Don't depend explicitly on composite.h.
11666 (sysdep.o): Depend on coding.h and composite.h.
11667 (term.o): Depend on xterm.h and buffer.h.
11668 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
11669 (textprop.o): Don't depend on dispextern.h explicitly.
11670 (undo.o): Depend on dispextern.h.
11671 (window.o): Depend on coding.h and termhooks.h. Don't depend on
11672 dispextern.h and composite.h explicitly.
11673 (xdisp.o): Depend on ccl.h.
11674 (xfaces.o): Depend on coding.h and ccl.h.
11675 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
11676 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11677 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
11678 ftfont.h.
11679 (xgselect.o): New dependency.
11680 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
11681 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
11682 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
11683 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
11684 (xsmfns.o): Depend on frame.h and dispextern.h.
11685 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
11686 sysselect.h.
11687
7a6f7fea
AS
116882009-12-19 Andreas Schwab <schwab@linux-m68k.org>
11689
11690 * font.c (Fclear_font_cache): Pass correct cache argument to
11691 font_clear_cache.
11692
f4c21026
AS
116932009-12-16 Andreas Schwab <schwab@linux-m68k.org>
11694
11695 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
11696 twice.
11697
f7ab0997
CY
116982009-12-15 Chong Yidong <cyd@stupidchicken.com>
11699
11700 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
11701 calling file-remote-p. Reported by Jim Meyering.
11702
fa8e045a
MA
117032009-12-15 Michael Albinus <michael.albinus@gmx.de>
11704
11705 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 11706 avoid compiler warnings. (Bug #5217)
fa8e045a 11707
a63dba42
KH
117082009-12-14 Kenichi Handa <handa@m17n.org>
11709
11710 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
11711 in 8-bit encoding.
11712
5ce6e4f4 117132009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
11714
11715 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
11716 tooltip windows.
11717
223e5fc6
JD
117182009-12-13 Jan Djärv <jan.h.d@swipnet.se>
11719
36acb2a7
JD
11720 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
11721 Xatom_net_window_type.
11722
11723 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
11724 Xatom_net_window_type.
11725
b8f00677
JD
11726 * xterm.c (my_log_handler): New function.
11727 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 11728 so we can filter out buggy messages. (Bug #5120).
b8f00677 11729
e5f0bc9a
JD
11730 * xterm.c (xg_scroll_callback): Parameter list changed,
11731 use parameter GtkScrollType to determine scroll/line/page.
11732 Only allow dragging if a button < 4 is grabbed (bug #5177).
11733 (xg_end_scroll_callback): New function.
11734 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
11735 xg_create_scroll_bar.
11736
11737 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
11738 (scroll_end_callback): Remove.
11739 (xg_create_scroll_bar): Add parameter end_callback, bind it to
11740 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 11741 bug #5177.
e5f0bc9a
JD
11742 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
11743 bug #5177.
11744
11745 * gtkutil.h (XG_LAST_SB_DATA): Remove.
11746 (xg_create_scroll_bar): Add GCallback end_callback.
11747
223e5fc6
JD
11748 * xftfont.c (QClcdfilter): New variable.
11749 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
11750 (syms_of_xftfont): Initialize QClcdfilter.
11751
3c055b77
JD
117522009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11753
11754 * xsettings.c (struct xsettings): Add member seen.
11755 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 11756 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
11757 (apply_xft_settings): Only update Xft settings with what member seen
11758 indicates as new.
11759
05fe33ff
EZ
117602009-12-12 Eli Zaretskii <eliz@gnu.org>
11761
c4cc8b9a 11762 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
11763 (struct glyph): Use EMACS_INT for charpos.
11764 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
11765 region_beg_charpos, region_end_charpos,
11766 redisplay_end_trigger_charpos, and also for
11767 iterator_stack_entry.end_charpos and
11768 iterator_stack_entry.stop_charpos.
11769
e8d7886a
JD
117702009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11771
5ce6e4f4 11772 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
11773 (xg_create_scroll_bar): Call scroll_end_callback on button release
11774 event (bug #5177).
11775 (xg_event_is_for_scrollbar): != replaced with ==.
11776
d0db2ec8
KH
117772009-12-12 Kenichi Handa <handa@m17n.org>
11778
11779 * ftfont.c (struct ftfont_info): New member matrix.
11780 (ftfont_open): Setup xftfont_info->matrix.
11781 (MFLTFontFT): New member matrix.
11782 (FLOOR, CEIL, ROUND): New macros.
11783 (ftfont_get_metrics): Handle matrix transformation.
11784 (ftfont_shape_by_flt): New arg matrix. Callers changed.
11785
11786 * xftfont.c (struct xftfont_info): New member matrix.
11787 (xftfont_open): Setup xftfont_info->matrix.
11788
117892009-12-10 Kenichi Handa <handa@m17n.org>
11790
11791 * xdisp.c (append_space_for_newline): Consider face-remapping.
11792
2cc7b62f
AS
117932009-12-09 Andreas Schwab <schwab@linux-m68k.org>
11794
b87dd913
AS
11795 * xsettings.c: Include "keyboard.h".
11796
eba5eb94
AS
11797 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
11798
2cc7b62f
AS
11799 Fix implicit function declarations.
11800 * cmds.c: Include "frame.h".
11801 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
11802 * frame.h: Move declaration of delete_frame outside of
11803 HAVE_WINDOW_SYSTEM.
11804
a4ef73c8
CY
118052009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
11806
11807 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11808
11809 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11810 GTK builds.
11811
944a300c
AS
118122009-12-07 Andreas Schwab <schwab@linux-m68k.org>
11813
11814 * unexelf.c (unexec): Don't search for .data twice.
11815
022eef62
CY
118162009-12-05 Chong Yidong <cyd@stupidchicken.com>
11817
426ac949
CY
11818 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
11819 if push failed.
11820 (handle_line_prefix): Set avoid_cursor_p here. Check return value
11821 of push_display_prop (Bug#5000).
11822
022eef62
CY
11823 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11824 value of font_list_entities (Bug#5085).
11825
be95bee9
JB
118262009-12-04 Juanma Barranquero <lekktu@gmail.com>
11827
11828 Fix `string-to-number' to deal consistently with integers and floats.
11829 * lread.c (isfloat_string): New argument ignore_trailing to accept all
11830 trailing characters, not just whitespace.
11831 (read1): Pass new arg 0 to keep old behavior.
11832 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11833 trailing chars, as it is already done for integers. Doc fixes.
11834 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11835
24c2d7ce
EZ
118362009-12-04 Eli Zaretskii <eliz@gnu.org>
11837
0b5397c2
SM
11838 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11839 Delete unused enumeration value.
24c2d7ce 11840
7e694795
EZ
118412009-12-03 Eli Zaretskii <eliz@gnu.org>
11842
11843 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11844
84b31826
SM
118452009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
11846
11847 * process.c (Fmake_network_process): Fix up the tests for
11848 "connectionless socket", so they DTRT for seqpacket sockets as well.
11849
f00c449b
SM
118502009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
11851
11852 * process.c (Qseqpacket): New symbol.
11853 (HAVE_SEQPACKET): New macro.
11854 (Fmake_network_process): Accept new :type `seqpacket'.
11855 (init_process): Add `seqpacket' feature when applicable.
11856 (syms_of_process): Initialize Qseqpacket.
11857
8096a0ff
YM
118582009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11859
11860 * font.c (font_load_for_lface, font_open_by_name): Don't store name
11861 if entity is Qnil.
11862
3e0de07f
SM
118632009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
11864
11865 * print.c (print_preprocess): Preprocess the key_and_value table of
11866 hashtables, even tho they're "hidden" (bug#5082).
11867
abeafb2a
JD
118682009-11-29 Jan Djärv <jan.h.d@swipnet.se>
11869
11870 * frame.c (frame_make_pointer_invisible)
11871 (frame_make_pointer_visible): Declare f before statements.
11872
4bf47195
EZ
118732009-11-28 Eli Zaretskii <eliz@gnu.org>
11874
11875 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11876 omitted dependencies on lisp.h.
11877
c525b3f2
JD
118782009-11-27 Jan Djärv <jan.h.d@swipnet.se>
11879
ece2d4ed
JD
11880 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11881 is NULL.
11882
11883 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11884
11885 * frame.c (frame_make_pointer_invisible)
3e0de07f 11886 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
11887 frame.
11888
c525b3f2
JD
11889 * search.c (simple_search): Remove warning by making *p const.
11890
2f00e299
DN
118912009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
11892
11893 * xdisp.c (power_letter): Remove duplicate const.
11894
084b049b
JD
118952009-11-25 Jan Djärv <jan.h.d@swipnet.se>
11896
a1fadc6f
JD
11897 * term.c (delete_tty): Remove check for last terminal (bug#4970).
11898
5ce6e4f4 11899 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
11900 defaults (bug #5025).
11901
28259cac
SM
119022009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
11903
11904 * insdel.c (adjust_markers_for_delete): Move it in the
11905 right direction! (bug#4803)
11906
e8e14166
YM
119072009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11908
11909 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
11910
11911 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
11912
86677b58
GM
119132009-11-24 Glenn Morris <rgm@gnu.org>
11914
11915 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
11916
581e51e8
JD
119172009-11-23 Jan Djärv <jan.h.d@swipnet.se>
11918
cfc86c7a
JD
11919 * Makefile.in: Must create deps for ecrt0.o in its rule.
11920
581e51e8
JD
11921 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
11922 because that is what Gtk+ font dialog understands.
11923
11924 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11925 of Fcopy_sequence.
11926 (font_open_by_name): Put name given into QCname for font-object returned.
11927
11928 * frame.c (x_set_font): Save original font name as frame parameter
11929 font-parameter.
11930
11931 * xsettings.c (set_default_xft_settings): New function.
11932 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11933 is found.
11934
8b264ecb
AS
119352009-11-22 Andreas Schwab <schwab@linux-m68k.org>
11936
11937 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11938 searching backwards through multibyte buffer.
11939
872870b2
JD
119402009-11-21 Jan Djärv <jan.h.d@swipnet.se>
11941
11942 * xterm.c: #include xgselect.h.
11943 (x_initialize): Call xgselect_initialize.
11944
11945 * xsettings.c (something_changedCB): C++ comments => C comments.
11946 (init_gconf): Do not deal with any GLib file descriptors, xg_select
11947 does that now.
11948
11949 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11950 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
11951 (scroll_bar_button_cb): Remove.
5ce6e4f4 11952 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
11953 event.
11954 (xg_create_scroll_bar): Don't bind button-press-event and
11955 button-release-event.
11956
11957 * process.c: Include xgselect.h if defined (USE_GTK) ||
11958 defined (HAVE_GCONF).
11959 (wait_reading_process_output): Call xg_select for the same condition.
11960
11961 * xgselect.c (xg_select): New function to better integrate with
11962 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
11963
11964 * xgselect.h: New file, declare xg_select, xgselect_initialize.
11965
11966 * Makefile.in (XOBJ): Add xgselect.o.
11967
62a6e103
AS
119682009-11-21 Andreas Schwab <schwab@linux-m68k.org>
11969
0b5397c2
SM
11970 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
11971 Remove ignored second argument. All callers changed.
62a6e103
AS
11972 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
11973 (RE_STRING_CHAR_AND_LENGTH): Likewise.
11974 * xdisp.c (string_char_and_length): Likewise.
11975
b0ca0f33
DN
119762009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
11977
11978 * xterm.c (x_new_font):
11979 * print.c (print_object):
11980 * cmds.c (Fself_insert_command): Move declarations before statements.
11981
dd5a6279
CY
119822009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
11983
11984 * s/cygwin.h: Remove unneeded linker flags.
11985
4a8e097d
JD
119862009-11-20 Jan Djärv <jan.h.d@swipnet.se>
11987
0d1d0d26
JD
11988 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
11989
11990 * xsettings.h: Declare xsettings_get_system_font.
11991
11992 * xsettings.c (xsettings_get_system_font): New function.
11993 (init_gconf): No use initiating gconf unless we have Xft also.
11994 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
11995 HAVE_GCONF.
11996
4a8e097d
JD
11997 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
11998 add a blank entry so it doesn't collapse into nothing.
11999
8ab1650e
SM
120002009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
12001
12002 * lread.c (Funintern): Comment out last change.
12003
82c602f0
RS
120042009-11-19 Richard Stallman <rms@gnu.org>
12005
12006 * lread.c (Funintern): Error if symbol is t or nil.
12007
87e32266
SM
120082009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
12009
12010 * insdel.c (make_gap_larger): Don't make as many assumptions about the
12011 representation of Lisp integers.
12012 Reported by MJ Chan <mjchan.inbox@gmail.com>.
12013
1b9ac145
AS
120142009-11-17 Andreas Schwab <schwab@linux-m68k.org>
12015
12016 * lisp.h: Remove declaration of Ffont_get_system_font.
12017 * xfns.c: Move include of "xsettings.h".
12018 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
12019
dfb3c4c6
JD
120202009-11-17 Jan Djärv <jan.h.d@swipnet.se>
12021
87e32266
SM
12022 * xsettings.c (something_changedCB, Ffont_get_system_font):
12023 Check use_system_font.
dfb3c4c6
JD
12024 (syms_of_xsettings): DEFVAR font-use-system-font.
12025
9370c1d8
AS
120262009-11-17 Andreas Schwab <schwab@linux-m68k.org>
12027
25fe851a
AS
12028 * xfns.c (x_default_font_parameter): Remove dead assignment.
12029
9370c1d8
AS
12030 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
12031
637fa988
JD
120322009-11-17 Jan Djärv <jan.h.d@swipnet.se>
12033
87e32266 12034 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 12035 not have FC_LCD_*. #define them if not there.
a6eb20d8 12036
87e32266 12037 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 12038
637fa988
JD
12039 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
12040
12041 * xterm.c (handle_one_xevent): Call xft_settings_event for
12042 ClientMessage, PropertyNotify and DestroyNotify.
12043 (x_term_init): If we have XFT, get DPI from Xft.dpi.
12044 Call xsettings_initialize.
12045
12046 * xftfont.c (xftfont_fix_match): New function.
12047 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
12048 Call xftfont_fix_match after XftFontMatch.
12049
12050 * xfont.c (xfont_driver): Initialize all members.
12051
87e32266
SM
12052 * xfns.c (x_default_font_parameter):
12053 Try font from Ffont_get_system_font.
637fa988
JD
12054 Do not get font from x_default_parameter if we got one from
12055 Ffont_get_system_font.
87e32266 12056 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
12057
12058 * w32font.c (w32font_driver): Initialize all members.
12059
12060 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
12061
12062 * lisp.h: Declare syms_of_xsettings.
12063
87e32266
SM
12064 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
12065 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
12066
12067 * ftfont.c (ftfont_filter_properties): New function.
12068
12069 * frame.c (x_set_font): Remove unused variable lval.
12070
87e32266 12071 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
12072
12073 * font.c (font_put_extra): Don't return if val is nil, it means
12074 boolean option is off.
12075 (font_parse_fcname): Collect all extra properties in extra_props
12076 and call filter_properties for all drivers with extra_props and
12077 font as parameter.
87e32266
SM
12078 (font_open_entity): Do not use cache, it does not pick up new
12079 fontconfig settings like hinting.
637fa988
JD
12080 (font_load_for_lface): If spec had a name in it, store it in entity.
12081
a73f9c9d 12082 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
12083
12084 * config.in: HAVE_GCONF is new.
12085
12086 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
12087 xsettings.o is new.
12088
5a942932
KH
120892009-11-17 Kenichi Handa <handa@m17n.org>
12090
12091 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
12092 back to the default font in case that no suitable font is found.
12093
b7c7a4d1
SM
120942009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
12095
12096 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
12097 Suggested by Chad Brown <yandros@mit.edu>.
12098 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
12099
072f1e39
JD
121002009-11-16 Jan Djärv <jan.h.d@swipnet.se>
12101
12102 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
12103
5d1e70a2
AS
121042009-11-14 Andreas Schwab <schwab@linux-m68k.org>
12105
87e32266 12106 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 12107
a53cfbe5
JD
121082009-11-14 Jan Djärv <jan.h.d@swipnet.se>
12109
473a99b7
JD
12110 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
12111 has a parent.
12112
a53cfbe5 12113 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 12114 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
12115
12116 * config.in: Generated (AUTO_DEPEND).
12117
f04bb9b2
MA
121182009-11-13 Michael Albinus <michael.albinus@gmx.de>
12119
b7c7a4d1 12120 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
12121 Vdbus_registered_functions_table, because it contains also
12122 properties. Fix docstring.
b7c7a4d1 12123 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 12124
8f11f7ec
SM
121252009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
12126
12127 * alloc.c (mark_object): Don't reprocess marked strings.
12128 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
12129 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
12130
8a605fe8
KH
121312009-11-13 Kenichi Handa <handa@m17n.org>
12132
8f11f7ec 12133 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
12134 semantics of Vword_combining_categories.
12135 (Vword_combining_categories): Describe the slight change of the
12136 semantics.
12137
241c4680
EZ
121382009-11-13 Eli Zaretskii <eliz@gnu.org>
12139
12140 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
12141
12142 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
12143
5d58e44c
SM
121442009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
12145
12146 * xdisp.c (syms_of_xdisp): Fix typo in last change.
12147
5e13f9d3
JB
121482009-11-12 Juanma Barranquero <lekktu@gmail.com>
12149
12150 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
12151
cf54c754
DR
121522009-11-11 David Reitter <david.reitter@gmail.com>
12153
12154 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
12155 variables to fix 2009-11-09 change.
12156
a4ada374
DN
121572009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
12158
91433552
DN
12159 * process.c (ifflag_def): Make flag_sym constant.
12160 (Fnetwork_interface_info): Use a constant pointer.
12161 (ifflag_table):
12162 * xfns.c (cursor_bits):
12163 * xdisp.c (power_letter):
12164 * termcap.c (speeds, esctab):
12165 * sysdep.c (baud_convert):
12166 * keyboard.c (lispy_accent_codes, modifier_names):
12167 * image.c (xbm_format, xpm_format, pbm_format, png_format)
12168 (jpeg_format, tiff_format, gif_format, svg_format)
12169 (interlace_start, interlace_increment, gs_format):
12170 * gtkutil.c (separator_names):
12171 * fringe.c (swap_nibble):
12172 * fns.c (base64_value_to_char, base64_char_to_value):
12173 * fileio.c (make_temp_name_tbl):
12174 * coding.c (suffixes): Make constant.
12175
f4265f6c
DN
12176 * frame.c (make_initial_frame):
12177 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
12178 build_string.
12179 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
12180
04420943
DN
12181 * s/freebsd.h:
12182 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
12183
0a5d24ae
DN
12184 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
12185 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
12186
a4ada374
DN
12187 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
12188 * xterm.c (syms_of_xterm):
12189 * xfaces.c (syms_of_xfaces):
12190 * xdisp.c (syms_of_xdisp):
12191 * lread.c (syms_of_lread):
12192 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
12193 build_string.
91433552 12194
a4ada374
DN
12195 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
12196
af98fc7f
SM
121972009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12198
8ab1650e 12199 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 12200
e90292a9
JD
122012009-11-10 Jan Djärv <jan.h.d@swipnet.se>
12202
12203 * keyboard.h: Declare timer_check.
12204
12205 * keyboard.c (timer_check_2): New function that does what the old
12206 timer_check did.
12207 (timer_check): Call timer_check_2 until -1 or a non-zero time is
12208 returned, i.e. don't return -1 with timers pending.
12209
12210 * process.c: Remove extern declaration of timer_check.
12211
12212 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
12213 even if timer_check returned -1.
12214
af98fc7f
SM
12215 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
12216 xg_dialog_data.
e90292a9
JD
12217 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
12218 the event loop.
12219 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
12220 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
12221 Destroy the dialog after xg_dialog_run.
12222
045b83c0
SM
122232009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12224
12225 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
12226
1fb99a3a
JD
122272009-11-10 Jan Djärv <jan.h.d@swipnet.se>
12228
12229 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
12230
04e452cb
JB
122312009-11-09 Juanma Barranquero <lekktu@gmail.com>
12232
12233 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
12234
ef7417fd
SM
122352009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
12236
12237 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
12238 w32menu.c, and nsmenu.m.
12239 Simplify the obsolete case where position is nil.
12240 (cleanup_popup_menu): New function, moved from nsmenu.m.
12241 (struct skp): Remove slot `notreal'.
12242 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
12243 adjust callers.
12244 (single_menu_item): Adjust call to parse_menu_item.
12245 (syms_of_menu): Defsubr x-popup-menu.
12246 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
12247 (keymap_panes): Don't export any more.
12248 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
12249 (xmenu_show): Declare.
12250 * keyboard.c (parse_menu_item): Remove arg `notreal'.
12251 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
12252 * keyboard.h (parse_menu_item): Update declaration.
12253 * xmenu.c (Fx_popup_menu): Remove.
12254 (syms_of_xmenu): Don't defsubr x-popup-menu.
12255 * w32menu.c (Fx_popup_menu): Remove.
12256 (syms_of_w32menu): Don't defsubr x-popup-menu.
12257 * nsmenu.m (cleanup_popup_menu): Remove.
12258 (ns_menu_show): Rename from ns_popup_menu and remove all the code
12259 moved to menu.c's Fx_popup_menu.
12260 (Fx_popup_menu): Remove.
12261 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
12262 menu_items (it's done in menu.c already).
12263
424d6179
SM
122642009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
12265
12266 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
12267 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
12268
c0df13a6 122692009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
12270
12271 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 12272 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
12273 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
12274 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
12275
2de9f71c
SM
122762009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
12277
12278 Let integers use up 2 tags to give them one extra bit and thus double
12279 their range.
12280 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
12281 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
12282 New macros.
12283 (enum Lisp_Type): Use them. Give explicit values.
12284 (Lisp_Type_Limit): Remove.
12285 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
12286 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
12287 Pay attention to USE_2_TAGS_FOR_INTS.
12288 (INTEGERP): Use LISP_INT_TAG_P.
12289 * fns.c (internal_equal): Simplify the default case.
12290 (sxhash): Use case_Lisp_Int.
12291 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
12292 any more.
12293 (Ftype_of): Use case_Lisp_Int.
12294 (store_symval_forwarding): Take into account the fact that Ints can
12295 now have more than one tag.
12296 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 12297 (buffer_slot_type_mismatch):
2de9f71c
SM
12298 * xfaces.c (face_attr_equal_p):
12299 * print.c (print_object):
12300 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
12301 Use case_Lisp_Int.
12302
323637a2
EZ
123032009-11-06 Eli Zaretskii <eliz@gnu.org>
12304
7ac65b38
EZ
12305 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
12306
323637a2
EZ
12307 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
12308 warning.
12309
e511451f
JD
123102009-11-06 Jan Djärv <jan.h.d@swipnet.se>
12311
12312 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
12313
12314 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
12315
12316 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
12317 ButtonPressRelease and MotionNotify (bug#4870).
12318
5e2327cf
DN
123192009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
12320
5adc433e
DN
12321 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
12322
d67b4f80
DN
12323 * xterm.c (syms_of_xterm):
12324 * xselect.c (syms_of_xselect):
12325 * xmenu.c (syms_of_xmenu):
12326 * xfns.c (syms_of_xfns):
12327 * xfaces.c (syms_of_xfaces):
12328 * xdisp.c (syms_of_xdisp):
12329 * window.c (syms_of_window):
12330 * w32fns.c (syms_of_w32fns):
12331 * undo.c (syms_of_undo):
12332 * textprop.c (syms_of_textprop):
12333 * terminal.c (syms_of_terminal):
12334 * syntax.c (syms_of_syntax):
12335 * sound.c (syms_of_sound):
12336 * search.c (syms_of_search):
12337 * print.c (syms_of_print):
12338 * minibuf.c (syms_of_minibuf):
12339 * macros.c (syms_of_macros):
12340 * keymap.c (syms_of_keymap, initial_define_key)
12341 (initial_define_lispy_key):
12342 * keyboard.c (syms_of_keyboard):
12343 * insdel.c (syms_of_insdel):
12344 * image.c (syms_of_image):
12345 * fringe.c (syms_of_fringe):
12346 * frame.c (syms_of_frame):
12347 * fontset.c (syms_of_fontset):
12348 * fns.c (syms_of_fns):
12349 * fns.c (syms_of_fns):
12350 * fileio.c (syms_of_fileio):
12351 * fileio.c (syms_of_fileio):
12352 * eval.c (syms_of_eval):
12353 * doc.c (syms_of_doc):
12354 * dispnew.c (syms_of_display):
12355 * dired.c (syms_of_dired):
12356 * dbusbind.c (syms_of_dbusbind):
12357 * data.c (syms_of_data):
12358 * composite.c (syms_of_composite):
12359 * coding.c (syms_of_coding):
12360 * cmds.c (syms_of_cmds):
12361 * charset.c (define_charset_internal, syms_of_character):
12362 * ccl.c (syms_of_ccl):
12363 * category.c (syms_of_category, init_category_once):
12364 * casetab.c (syms_of_casetab):
12365 * casefiddle.c (syms_of_casefiddle):
12366 * callint.c (syms_of_callint):
12367 * bytecode.c (syms_of_bytecode):
12368 * buffer.c (keys_of_buffer, syms_of_buffer):
12369 * alloc.c (syms_of_alloc):
12370 * process.c (syms_of_process, init_process):
12371 * lread.c (syms_of_lread, init_obarray):
12372 * font.c (build_style_table):
12373 * emacs.c (syms_of_emacs, main): Replace calls to intern with
12374 intern_c_string, calls to make_pure_string with
12375 make_pure_c_string. Use pure_cons instead of Fcons.
12376
5e2327cf
DN
12377 * process.c (socket_options): Make it const.
12378 (set_socket_option, init_process): Use a const pointer.
12379
12380 * lread.c (intern_c_string): New function.
12381 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12382 (defvar_int): Uset it. Make the name const char*.
12383
12384 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12385 (defvar_int): Update prototypes.
12386 (DEFUN, EXFUN): Support for prototypes is now required.
12387 (intern_c_string): New prototype.
12388 (struct Lisp_Subr): Make symbol_name constant.
12389
12390 * font.c (struct table_entry): Remove unused member. Make NAMES
12391 constant.
12392 (weight_table, slant_table, width_table): Make constant.
12393
12394 * emacs.c (struct standard_args): Make name and longname constant.
12395
12396 * character.h (DEFSYM): Use intern_c_string.
12397
a56eaaef
DN
123982009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
12399
12400 * alloc.c (make_pure_c_string): New function.
12401
12402 * eval.c (Fautoload): Purecopy all arguments.
12403
f6a07420
KH
124042009-11-05 Kenichi Handa <handa@m17n.org>
12405
12406 * fileio.c (Finsert_file_contents): Be sure set coding-system of
12407 the buffer in case of replace.
12408
5d28d4b1
DN
124092009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
12410
12411 * puresize.h (BASE_PURESIZE): Increase to 1620000.
12412
b349d111
SM
124132009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
12414
d528b1ce
SM
12415 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
12416 when applicable (bug#4851).
12417
b349d111
SM
12418 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
12419 (P_): Support for prototypes is now required.
12420
c38eb027
CY
124212009-10-31 Chong Yidong <cyd@stupidchicken.com>
12422
12423 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
12424 (Bug#4827).
12425
0405f8d9
EZ
124262009-10-30 Eli Zaretskii <eliz@gnu.org>
12427
d528b1ce 12428 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 12429
ca0a881a
DN
124302009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
12431
12432 * puresize.h (BASE_PURESIZE): Increase to 1470000.
12433
d528b1ce
SM
12434 * lread.c (Fload): Purecopy the file name when building
12435 Vpreloaded_file_list.
ca0a881a 12436
47e0e0e4
JR
124372009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
12438
12439 * w32fns.c (syms_of_w32fns): Change default value of
12440 w32-scroll-lock-modifier to nil. (Bug#2827)
12441
057bce6f
JB
124422009-10-26 Juanma Barranquero <lekktu@gmail.com>
12443
782a943e 12444 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 12445
242bc74c
AS
124462009-10-26 Andreas Schwab <schwab@redhat.com>
12447
12448 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
12449
522d013a
JB
124502009-10-26 Juanma Barranquero <lekktu@gmail.com>
12451
12452 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
12453 For delta < 0, skip check that only makes sense when the mini-window
12454 is going to be enlarged. (Bug#4534)
12455
18060980
CY
124562009-10-25 Chong Yidong <cyd@stupidchicken.com>
12457
12458 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
12459 string in menu maps (Bug#4471).
12460
fec8f0fe
CY
124612009-10-24 Chong Yidong <cyd@stupidchicken.com>
12462
12463 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
12464 FRAME_NS_VIEW on terminal frames (Bug#4765).
12465
10d66ec0
AS
124662009-10-24 Andreas Schwab <schwab@linux-m68k.org>
12467
1cae01f7
AS
12468 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
12469 DBUS_TYPE_UINTnn separately to get proper sign extension.
12470
58a12889
AS
12471 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
12472 can properly handle unsigned types.
d528b1ce 12473 (make_uid, make_gid): Remove.
58a12889 12474
987c9327
AS
12475 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
12476 types again.
12477
522d013a 12478 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
12479 (system_process_attributes): Likewise.
12480
905a9ed3
DN
124812009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
12482
12483 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
12484
12485 * eval.c (Fautoload): Purecopy the filename. Simplify.
12486
12487 * category.c (Fdefine_category): Purecopy docstring.
12488
a599b3e8
AS
124892009-10-23 Andreas Schwab <schwab@linux-m68k.org>
12490
7b792fc9
AS
12491 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
12492
a599b3e8
AS
12493 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
12494
b35ac83e
CY
124952009-10-23 Chong Yidong <cyd@stupidchicken.com>
12496
12497 * window.c (Fwindow_edges, Fwindow_pixel_edges)
12498 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
12499 (Bug#4775).
12500
e8903e00
SM
125012009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
12502
12503 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
12504 (init_fileio_once):
12505 * lisp.h (init_fileio_once): Remove.
12506 * emacs.c (main): Don't call init_fileio_once.
12507
8f43cbf3
DN
125082009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
12509
12510 * puresize.h (BASE_PURESIZE): Increase to 1430000.
12511
26898943
AS
125122009-10-21 Andreas Schwab <schwab@linux-m68k.org>
12513
12514 * doprnt.c (doprnt): Fix overflow check.
12515
5c646d5a
JD
125162009-10-21 Jan Djärv <jan.h.d@swipnet.se>
12517
3132a7ea
JD
12518 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
12519
5c646d5a
JD
12520 * xterm.h (x_wait_for_event): Declare it.
12521
12522 * xterm.c (pending_event_wait): New variable.
12523 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
12524 see pending_event_wait.eventtype.
12525 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
12526 (x_new_font): Call change_frame_size with new rows/columns before we
12527 try to resize the frame.
5c646d5a 12528 (x_wait_for_event): New function.
d528b1ce
SM
12529 (x_set_window_size_1): Don't change gravity unless change_gravity
12530 is set.
5c646d5a
JD
12531 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
12532 don't change frame size, instead wait for the ConfigureNotify.
12533 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
12534 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
12535 (x_initialize): Initialize pending_event_wait.
12536
12537 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
12538 size.
12539
12540 * widget.c (EmacsFrameSetValues): Add comment.
12541 (EmacsFrameSetCharSize): Just call x_set_window_size.
12542
12543 * gtkutil.c (xg_frame_set_char_size): Flush events and call
12544 x_wait_for_event.
d528b1ce 12545 (flush_and_sync): Remove again.
5c646d5a
JD
12546 (xg_get_font_name): Suggest monospace if no previous font is known.
12547
e9c1637d
SM
125482009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
12549
12550 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 12551 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 12552
5a72cccb
YM
125532009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12554
12555 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
12556 processing pending events when event is filtered for input method.
ab04798f 12557 (Bug#3681)
5a72cccb 12558
2629aa37
JB
125592009-10-20 Juanma Barranquero <lekktu@gmail.com>
12560
12561 * fns.c: Add #endif accidentally removed in previous change.
12562
c3417a74
DN
125632009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12564
12565 * fns.c: Remove code for unsupported system: MAC_OS.
12566 * image.c: Likewise. Include setjmp.h.
12567
9685cef2
JD
125682009-10-19 Jan Djärv <jan.h.d@swipnet.se>
12569
12570 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
12571 pixel -1 (bug #4742).
12572
d7306fe6
DN
125732009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12574
019d2c4c
DN
12575 * process.c (create_pty): Remove conditionals for no longer
12576 supported systems: UNIPLUS and RTU.
12577
ee6bacd4
DN
12578 * xterm.c:
12579 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
12580
d7306fe6
DN
12581 * alloc.c: Do not define struct catchtag.
12582 * eval.c: Move struct catchtag definition ...
12583 * lisp.h: ... here.
12584
12585 * image.c: Move png.h #include earlier to avoid warnings.
12586
12587 * xterm.c:
12588 * xsmfns.c:
12589 * xselect.c:
12590 * xrdb.c:
12591 * xmenu.c:
12592 * xftfont.c:
12593 * xfont.c:
12594 * xfns.c:
12595 * xfaces.c:
12596 * xdisp.c:
12597 * window.c:
12598 * widget.c:
12599 * w32xfns.c:
12600 * w32uniscribe.c:
12601 * w32term.c:
12602 * w32select.c:
12603 * w32reg.c:
12604 * w32proc.c:
12605 * w32menu.c:
12606 * w32inevt.c:
12607 * w32heap.c:
12608 * w32font.c:
12609 * w32fns.c:
12610 * w32console.c:
12611 * w32.c:
12612 * w16select.c:
12613 * vm-limit.c:
12614 * unexsol.c:
12615 * unexec.c:
12616 * unexcw.c:
12617 * unexaix.c:
12618 * undo.c:
12619 * tparam.c:
12620 * textprop.c:
12621 * terminfo.c:
12622 * terminal.c:
12623 * termcap.c:
12624 * term.c:
12625 * syntax.c:
12626 * sound.c:
12627 * sheap.c:
12628 * search.c:
12629 * scroll.c:
12630 * region-cache.c:
12631 * regex.c:
12632 * ralloc.c:
12633 * process.c:
12634 * print.c:
b024548b
DN
12635 * nsterm.m:
12636 * nsselect.m:
12637 * nsmenu.m:
12638 * nsimage.m:
12639 * nsfont.m:
12640 * nsfns.m:
d7306fe6
DN
12641 * msdos.c:
12642 * minibuf.c:
12643 * menu.c:
12644 * marker.c:
12645 * macros.c:
12646 * keymap.c:
12647 * keyboard.c:
12648 * intervals.c:
12649 * insdel.c:
12650 * indent.c:
12651 * gtkutil.c:
12652 * ftxfont.c:
12653 * ftfont.c:
12654 * fringe.c:
12655 * frame.c:
12656 * fontset.c:
12657 * font.c:
12658 * fns.c:
12659 * floatfns.c:
12660 * filelock.c:
12661 * fileio.c:
12662 * emacs.c:
12663 * editfns.c:
12664 * dosfns.c:
12665 * doprnt.c:
12666 * doc.c:
12667 * dispnew.c:
12668 * dired.c:
12669 * dbusbind.c:
12670 * data.c:
12671 * composite.c:
12672 * coding.c:
12673 * cmds.c:
12674 * cm.c:
12675 * chartab.c:
12676 * charset.c:
12677 * character.c:
12678 * ccl.c:
12679 * category.c:
12680 * casetab.c:
12681 * casefiddle.c:
12682 * callproc.c:
12683 * callint.c:
12684 * bytecode.c:
12685 * buffer.c:
12686 * atimer.c: Include setjmp.h. (Bug#4643)
12687
fd5f21e6
SM
126882009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12689
4c0354d7
SM
12690 Remove leftover table unibyte_to_multibyte_table.
12691 * character.c (unibyte_to_multibyte_table): Remove.
12692 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
12693 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
12694 * character.h (UNIBYTE_TO_CHAR): New macro.
12695 (MAKE_CHAR_MULTIBYTE): Use it.
12696 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
12697 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
12698 (message_dolog, set_message_1):
12699 * search.c (Freplace_match):
12700 * editfns.c (Fcompare_buffer_substrings):
12701 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
12702 (concat):
12703 * insdel.c (copy_text, count_size_as_multibyte):
12704 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
12705 * term.c (produce_glyphs):
12706 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
12707 * regex.c (RE_CHAR_TO_MULTIBYTE):
12708 * cmds.c (internal_self_insert):
12709 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
12710
fd5f21e6
SM
12711 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
12712
4418646e
DN
127132009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
12714
12715 * puresize.h (BASE_PURESIZE): Increase to 1310000.
12716
35f5c1d2
JB
127172009-10-16 Juanma Barranquero <lekktu@gmail.com>
12718
12719 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
12720
a0cd8f6b
AR
127212009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12722
12723 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
12724 still needed under Tiger.
12725
12726 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
12727
12728 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
12729 __Apple__.
12730
12731 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
12732
01a8d3fa
KH
127332009-10-15 Kenichi Handa <handa@m17n.org>
12734
12735 * print.c (print_object): Escape a symbol like "2E10" too.
12736
bf6c75c9 127372009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
12738
12739 Cleanups and changes for 64-bit compile under Snow Leopard.
12740 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
12741
12742 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
12743
c5959062 12744 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
12745 (ns_findfonts, nsfont_list_family): Use long format in printf, and
12746 cast argument.
12747 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 12748 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
12749
12750 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
12751
12752 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
12753 where appropriate.
12754
12755 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
12756 where appropriate.
6e4780c5
JB
12757 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
12758 Use stringWithUTF8String.
bf6c75c9
AR
12759 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
12760
6e4780c5
JB
12761 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
12762 Add formal protocol mention to inheritance.
bf6c75c9
AR
12763 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
12764
6e4780c5
JB
12765 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
12766 Fix printf format.
bf6c75c9
AR
12767 (ns_query_color): Use CGFloat where appropriate.
12768 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 12769 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
12770 argument.
12771
3d87f118
AR
12772 * config.in (NS_HAVE_NSINTEGER): Drop.
12773
a95c8102
AR
12774 * dbusbind.c (dbus-method-return-internal)
12775 (dbus-method-error-internal): Use long format in printf, and cast
12776 argument.
12777
12778 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
12779 in printf, and cast argument.
12780
6873acca 12781 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
12782 cast argument.
12783
9ec6f100
GM
127842009-10-11 Glenn Morris <rgm@gnu.org>
12785
12786 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
12787
5be883cd
JD
127882009-10-08 Jan Djärv <jan.h.d@swipnet.se>
12789
12790 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
12791 menu bar with a small width so it doesn't enlarge the frame.
12792
d7a39b51
JB
127932009-10-08 Juanma Barranquero <lekktu@gmail.com>
12794
12795 * fontset.c (Fset_fontset_font): Fix typos in error messages.
12796
0c2b6f8e
GM
127972009-10-06 Glenn Morris <rgm@gnu.org>
12798
12799 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
12800 SOME_MACHINE_LISP (this enters indirectly via DOC).
12801
e02131a2
EZ
128022009-10-05 Eli Zaretskii <eliz@gnu.org>
12803
12804 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
12805
b4744254
EZ
128062009-10-04 Eli Zaretskii <eliz@gnu.org>
12807
12808 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12809 Doc fix.
12810
dbf64827
JB
128112009-10-03 Martin Rudalics <rudalics@gmx.at>
12812
12813 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
12814
e9a0aef8
MA
128152009-10-02 Michael Albinus <michael.albinus@gmx.de>
12816
d528b1ce 12817 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
12818 used anymore outside fileio.c.
12819
12820 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12821
64eb2b56
JB
128222009-10-01 Juanma Barranquero <lekktu@gmail.com>
12823
12824 * lisp.h (Qdelete_directory_internal):
12825 Declare, instead of Qdelete_directory.
12826
12827 * w32fns.c (Fsystem_move_file_to_trash): Use it.
12828
9d28c33e
SM
128292009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
12830
12831 * eval.c (Fcalled_interactively_p): Add `kind' argument.
12832
9d8f3bd9
MA
128332009-10-01 Michael Albinus <michael.albinus@gmx.de>
12834
9d28c33e 12835 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
12836 Fdelete_directory. It is not a command anymore. It has no file
12837 name handler.
12838
9694740b
SM
128392009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12840
12841 * xdisp.c (get_next_display_element): Use an enum in last change.
12842
748e162f
KH
128432009-09-28 Kenichi Handa <handa@m17n.org>
12844
9694740b 12845 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
12846 unibyte_display_via_language_environment in handling
12847 Vnobreak_char_display.
12848
17efd58d
AR
128492009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12850
12851 * nsterm.h (ns_app_name): New extern variable.
12852
12853 * nsterm.m (ns_app_name): New variable.
12854 (ns_term_init): Set and use it.
12855 (ns_term_shutdown): Use it.
12856
12857 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
12858 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12859
12860 * nsfns.m (ns_set_name_iconic, ns_set_name)
12861 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12862 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12863
9694740b
SM
12864 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12865 Remove double-casting in client_data comparison.
31c2d412 12866
3208cb35
YM
128672009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12868
12869 * keyboard.c (make_lispy_event): Remember last wheel direction.
12870 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12871
b7d552d6
GM
128722009-09-26 Glenn Morris <rgm@gnu.org>
12873
12874 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12875 internal.elc. Add term/pc-win.elc.
12876 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12877 term/x-win.elc.
12878 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12879 term/w32-win.elc.
12880 (NS_SUPPORT): New.
12881 (lisp): Add NS_SUPPORT.
12882 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12883
4ff670a8
DR
128842009-09-25 David Reitter <david.reitter@gmail.com>
12885
12886 * nsmenu.m (EmacsMenu-clear): Recognize application menu
12887 on Mac OS X 10.6+ (bug#4513).
12888
feabfb6c
JB
128892009-09-24 Juanma Barranquero <lekktu@gmail.com>
12890
12891 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
12892 some parts of Emacs code (like font selection) don't grok them.
12893 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 12894
de59072a
AS
128952009-09-24 Andreas Schwab <schwab@redhat.com>
12896
12897 * coding.c (decode_coding_iso_2022): Fix operator precedence.
12898
a489517b
JB
128992009-09-24 Juanma Barranquero <lekktu@gmail.com>
12900
12901 * dired.c (Fdirectory_files): Fix typo in docstring.
12902
0592970c
AR
129032009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12904
12905 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
12906 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
12907 (EmacsScroller-setPosition:portion:whole:): Remove -display call
12908 under GNUstep.
12909 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
12910
12911 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
12912 glyph advancement.
12913
48e8a88b
AR
129142009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12915
12916 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 12917 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
12918
12919 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
12920 deleted (bug #4492).
12921
e14f0a78
AR
12922 * nsfont.m (Vns_reg_to_script): New lisp variable.
12923 (syms_of_nsfont): Declare it.
12924 (ns_registry_to_script): New function.
12925 (ns_get_req_script): Call it.
12926 (ns_findfonts): Don't give up on non-unicode registry.
12927
12928 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12929
5b650faa
SM
129302009-09-20 Tom Tromey <tromey@redhat.com>
12931
12932 * eval.c (find_handler_clause): Make stack-trace-on-error work in
12933 batch mode (bug#4228).
12934
a489517b 129352009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
12936
12937 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 12938 carefully. (Bug #4339)
0bae4e09 12939
fcfe06f3
CY
129402009-09-18 Chong Yidong <cyd@stupidchicken.com>
12941
d798ba87 12942 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 12943
31642728
AR
129442009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12945
12946 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
12947 (main) [HAVE_NS]: Don't process --no-init-file option.
12948 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
12949
12950 * nsterm.h (ns_no_defaults): Remove.
12951
12952 * nsterm.m (ns_no_defaults): Remove.
12953 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
12954 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
12955 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
12956 don't update the NSWindow itself.
bba3e508
SM
12957 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
12958 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
12959
12960 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
12961 ns_use_qd_smoothing.
12962
12963 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
12964 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 12965 (x-close-connection): Drop PSFlush() under OS X.
a489517b 12966 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 12967
8686ac71
JB
129682009-09-17 Juanma Barranquero <lekktu@gmail.com>
12969
12970 * emacs.c (inhibit_x_resources): New variable.
12971 (main) [HAVE_NS]: Don't process --quick command line option.
12972 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
12973
12974 * lisp.h (inhibit_x_resources): Declare it extern.
12975
12976 * w32reg.c (x_get_string_resource):
12977 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
12978
e227ba05
EZ
129792009-09-17 Eli Zaretskii <eliz@gnu.org>
12980
362654a6
JB
12981 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
12982 Add lisp/term/internal.elc.
e227ba05 12983
742d40e8
SM
129842009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12985
12986 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
12987 (bug#4461).
12988
005bd5a2
DN
129892009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
12990
12991 * puresize.h (BASE_PURESIZE): Increase to 1290000.
12992
12993 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
12994 (OBJECTS_MACHINE): Remove, unused.
12995
f9af9719
SM
129962009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
12997
12998 * frame.c (x_get_resource_string): Remove unused.
12999
0307c7d2
JD
130002009-09-15 Jan Djärv <jan.h.d@swipnet.se>
13001
13002 * xterm.c (x_new_font): Call change_frame_size before calling
13003 x_set_window_size, in case frame size won't change.
13004
13005 * frame.c (x_set_font): Remove dead code.
13006
428b13d6
SM
130072009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
13008
13009 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
13010
5766c380
SM
130112009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13012
13013 * lread.c (Fload): Don't output a message after loading an obsolete
13014 package any more (done in Lisp now).
13015
2fd0161b
CY
130162009-09-12 Chong Yidong <cyd@stupidchicken.com>
13017
13018 * fns.c (syms_of_fns): Doc fix (Bug#4227).
13019
bc5e75b6
SM
130202009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13021
13022 * keymap.c (Fwhere_is_internal): Use nconc2.
13023
c31c985e
AM
130242009-09-11 Alan Mackenzie <acm@muc.de>
13025
13026 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
13027 batch mode.
13028
78012bd2
AS
130292009-09-11 Andreas Schwab <schwab@linux-m68k.org>
13030
13031 * xdisp.c (display_mode_element): Detect cycles.
13032
9d889332
SM
130332009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13034
13035 * keymap.c (where_is_internal): Don't erroneously return nil right after
13036 filling the cache.
13037 (where_is_internal_1): Fix up typo.
13038
7ab5d780
GM
130392009-09-11 Glenn Morris <rgm@gnu.org>
13040
13041 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
13042 share a common doc-string.
13043
5238a749
SM
130442009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13045
66d77eda
SM
13046 * keymap.c (get_keymap): Return the actual keymap symbol rather than
13047 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
13048
5238a749
SM
13049 * keymap.c (QCadvertised_binding): New constant.
13050 (syms_of_keymap): Initialize it.
13051 (Fwhere_is_internal): Try and use bindings from :advertised-binding
13052 if applicable.
13053
19f48442
SM
130542009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
13055
50d4ba39
SM
13056 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
13057 (parse_menu_item): Streamline since bindings are recomputed all the
13058 time anyway. Don't bother checking Vdefine_key_rebound_commands any
13059 more and don't support lmenu's menu-alias any more either.
13060
a88a5372
SM
13061 * keymap.c (where_is_internal_data): Make noindirect a boolean.
13062 (where_is_internal): Strip it down to only traverse the keymaps.
13063 Move the cache handling from Fwhere_is_internal to here.
13064 (Fwhere_is_internal): Move the handling of remapping and the choice of
13065 the best binding from where_is_internal to here.
13066 Unify the cached/noncached paths, so remapping is also handled
13067 correctly when the cache is used, and so the cache can be used to
13068 speed up remap-handling when applicable.
13069 Give preference to non-remapped bindings.
13070 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
13071 non-remapped bindings.
13072 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
13073 command remapping.
13074
19f48442
SM
13075 * xdisp.c (display_mode_element): Move list length limit from 50 to
13076 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
13077
599498c3 130782009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
13079
13080 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
13081
f9b7b5ac
SM
130822009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
13083
a53af587
JB
13084 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
13085 (Bug#4334)
13086
f9b7b5ac
SM
13087 * keymap.c (where_is_internal): Filter out shadowed remappings.
13088 Assume that where_is_internal returns unshadowed bindings to simplify
13089 the code and get rid of the gotos. Use ASIZE.
13090
04f4b72d
JD
130912009-09-04 Jan Djärv <jan.h.d@swipnet.se>
13092
4da146f2
JD
13093 * xterm.c (x_focus_changed): If we get a focusout and pointer
13094 is invisible, make it visible.
13095
04f4b72d
JD
13096 * xterm.h: Remove condition for declaration of
13097 x_*_window_to_frame.
13098
7cef7ce3
SM
130992009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
13100
13101 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
13102 initial terminal as well.
13103
a54fa5b7
JD
131042009-09-02 Jan Djärv <jan.h.d@swipnet.se>
13105
13106 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 13107 x_menubar_window_to_frame.
a54fa5b7 13108
50426a04 13109 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
13110 (XTmouse_position): Do not return valid positions
13111 for clicks in the menubar and the toolbar for Gtk+.
13112
13113 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
13114 if the widget for the event has the same top level as a frame,
13115 return the frame.
13116 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
13117 internal windows, bug #4122.
13118 (x_non_menubar_window_to_frame): Remove.
13119
5a021dd0
GM
131202009-09-02 Glenn Morris <rgm@gnu.org>
13121
13122 * buffer.c (default-major-mode): Move most of the doc from here...
13123 (major-mode): ... to here.
13124
548fe2f3
NR
131252009-08-30 Nick Roberts <nickrob@snap.net.nz>
13126
13127 * process.c (wait_reading_process_output): Keep the descriptor
13128 when pty is used by a non-child process, e.g., in I/O buffer of
13129 GDB this allows inferior to be restarted.
13130
e0840eef
EZ
131312009-08-29 Eli Zaretskii <eliz@gnu.org>
13132
13133 * xdisp.c (redisplay_internal): Remove redundant test and collapse
13134 both branches into one.
13135
82e98df4
SM
131362009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
13137
13138 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
13139 (main): Use enable-multibyte-characters rather than
13140 default-enable-multibyte-characters. Output a warning message when
13141 running a unibyte session.
13142
890617cb
YM
131432009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13144
13145 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
13146 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
13147 (copy_data_segment): Also copy __program_vars section.
13148 (copy_dyld_info) [LC_DYLD_INFO]: New function.
13149 (dump_it) [LC_DYLD_INFO]: Use it.
13150
13151 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
13152
e7adeadc
EZ
131532009-08-28 Eli Zaretskii <eliz@gnu.org>
13154
13155 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
13156 $(SRC)/buildobj.h.
ef1b0ba7 13157 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
13158 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
13159 $(SRC)/buildobj.h.
13160 (clean): Add buildobj.h.
13161
3ed8bbdc
TZ
131622009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
13163
13164 * print.c (print_object): Set escapeflag to 1 when printing
13165 hashtable keys and values.
13166
155a6764
SM
131672009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
13168
13169 * lread.c (read_integer): Use doubles (and potentially return a float
13170 number) as we do in string-to-number.
13171 (read1): Use strtol to read integers, signal errors on strtol's
13172 overflow and use floats if strtol's output is too large for
13173 Elisp integers.
13174
877610de
EZ
131752009-08-27 Eli Zaretskii <eliz@gnu.org>
13176
13177 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
13178 (make-buildobj-SH): Fix last change.
13179 (SRC): Move to before where it's first used.
13180
ef73e7be
KH
131812009-08-27 Kenichi Handa <handa@m17n.org>
13182
550c8289
KH
13183 * process.c (send_process): Use encode_coding_object instead of
13184 encode_coding_string to perform eol-conversion even if the string
13185 is unibyte.
13186
60afa08d
KH
13187 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
13188 character.
13189
ef73e7be 13190 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 13191 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 13192
7b3a82d7
DN
131932009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
13194
5654bf63
DN
13195 * callproc.c (Fcall_process): Remove always true #if.
13196
7b3a82d7
DN
13197 * lisp.h: Replace #if 0 code for checking with text pointing to
13198 the --enable-checking configure flag.
13199
13200 * emacs.c (main): Mention the --enable-profiling configure flag
13201 instead of using CFLAGS.
13202
878bde49
KR
132032009-08-26 Ken Raeburn <raeburn@raeburn.org>
13204
13205 * Makefile.in (buildobj.h): New target.
13206 (doc.o): Depend on it.
13207 (temacs${EXEEXT}): Don't generate buildobj.lst.
13208 (mostlyclean): Delete buildobj.h, not buildobj.lst.
13209 * makefile.w32-in ($(SRC)/buildobj.h): New target.
13210 ($(BLD)/doc.$(O)): Depend on it.
13211 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
13212 provided by Eli Zaretskii.)
13213 ($(TEMACS)): Don't generate buildobj.lst.
13214 * doc.c: Include buildobj.h.
13215 (buildobj): New static variable.
13216 (Fsnarf_documentation): Use it, instead of opening and reading
13217 buildobj.lst.
13218
1574224c
MA
132192009-08-25 Michael Albinus <michael.albinus@gmx.de>
13220
13221 * dbusbind.c (Fdbus_call_method)
13222 (Fdbus_call_method_asynchronously): Use English numeric format for
13223 timeout values in doc string.
13224
d9da2f45
KH
132252009-08-25 Kenichi Handa <handa@m17n.org>
13226
ef73e7be
KH
13227 * alloc.c (mark_char_table): New function.
13228 (mark_object): Use mark_char_table for a char-table.
13229
d9da2f45
KH
13230 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
13231 (CHAR_TABLE_REF): Use it.
13232
c8edcc01
KR
132332009-08-23 Ken Raeburn <raeburn@raeburn.org>
13234
13235 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
13236 before invoking the newly build emacs to check for load-path
13237 shadowing.
13238
7763401b
GM
132392009-08-22 Glenn Morris <rgm@gnu.org>
13240
13241 * Makefile.in (bootstrap_exe): New variable.
13242 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
13243 Use ${bootstrap_exe}.
13244
729eadda
EZ
132452009-08-22 Eli Zaretskii <eliz@gnu.org>
13246
13247 * coding.h (encode_coding_string): Don't encode unibyte strings.
13248 (Bug#4047)
13249
eb4c6ace
MA
132502009-08-22 Michael Albinus <michael.albinus@gmx.de>
13251
13252 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
13253
13254 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
13255 intended as hotfix only.
13256 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
13257
36e34d1b
AR
132582009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13259
13260 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
13261 change, and clean up loose ends in the code left by it.
13262 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
13263 yet another X11 format (rgb:r/g/b) for compatibility.
13264 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
13265 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
13266
f983eb8a
SM
132672009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
13268
13269 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
13270
3f56d3c6
MA
132712009-08-20 Michael Albinus <michael.albinus@gmx.de>
13272
13273 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
13274 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
13275 (xd_initialize, xd_pending_messages): Check, whether
13276 $DBUS_SESSION_BUS_ADDRESS is set.
13277
fb641d68
YM
132782009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13279
13280 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
13281
13282 * nsterm.m (ns_get_color): Remove incompatible color formats again.
13283
cf59a374
GM
132842009-08-20 Glenn Morris <rgm@gnu.org>
13285
13286 * emacs.c (system-type): Doc fix.
13287
1373f3be
SM
132882009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
13289
13290 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
13291 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
13292
058ed861
MA
132932009-08-18 Michael Albinus <michael.albinus@gmx.de>
13294
1373f3be
SM
13295 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
13296 New functions.
058ed861
MA
13297 (xd_initialize): Revert change from 2009-08-16.
13298
563a866e 132992009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
13300
13301 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 13302 font-group vector, return nil.
5fc05db0 13303
e42bdf01
CY
133042009-08-17 Chong Yidong <cyd@stupidchicken.com>
13305
13306 * process.c (status_notify): Don't perform redisplay.
13307 (Fdelete_process, list_processes_1, process_send_signal):
13308 Expliticly perform redisplay.
13309 (wait_reading_process_output): Always check process status, but
13310 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
13311
4230ab74
KR
133122009-08-17 Ken Raeburn <raeburn@raeburn.org>
13313
1373f3be 13314 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
13315 (XFLOAT_INIT): New macro for storing a float value.
13316 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
13317 * fns.c (sxhash): Copy out the value of a float in order to
13318 examine its bytes.
13319 * dbusbind.c (xd_append_arg): Likewise.
13320
4230ab74
KR
13321 * emacs.c (main): Don't call syms_of_data twice.
13322
a0645cdd
MA
133232009-08-16 Michael Albinus <michael.albinus@gmx.de>
13324
13325 * dbusbind.c (xd_initialize): Add connection file descriptor to
13326 input_wait_mask, in order to let select() detect, whether a new
13327 message has been arrived.
ca4f31ea 13328 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 13329
485db0ba
MA
133302009-08-15 Michael Albinus <michael.albinus@gmx.de>
13331
1373f3be
SM
13332 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
13333 New functions.
485db0ba
MA
13334
13335 * lisp.h (xd_pending_messages): Declare.
13336
13337 * keyboard.c (readable_events): Call xd_pending_messages.
13338
b5b98ff4
CY
133392009-08-15 Chong Yidong <cyd@stupidchicken.com>
13340
1373f3be 13341 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 13342
f8354c6e
CY
13343 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
13344
b5b98ff4
CY
13345 * buffer.c (set_buffer_internal_1)
13346 (swap_out_buffer_local_variables): Check for unbound local
13347 variables (Bug#4138).
13348
8b9fc636
EZ
133492009-08-14 Eli Zaretskii <eliz@gnu.org>
13350
13351 * process.c (create_pty): Fix last change.
13352
ce959360
CY
133532009-08-13 Chong Yidong <cyd@stupidchicken.com>
13354
13355 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
13356 (xbm_load_image): Caller changed.
64b807c9 13357 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 13358
c7baf7e9
NR
133592009-08-13 Nick Roberts <nickrob@snap.net.nz>
13360
13361 * process.c (create_pty): New function.
13362 (Fstart_process): Use it to allow Emacs to just associate a pty
13363 with the buffer. See associated change in gdb-mi.el.
13364 (list_processes_1): Deal with no program name.
13365 (start_process_unwind): Use pid == -2 to mean no process.
13366
1ac9108a
SM
133672009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
13368
13369 * cmds.c (nonundocount): New global variable.
13370 (keys_of_cmds): Initialize it.
13371 (Fself_insert_command): Use it to combine upto 20 sequential chars
13372 into a single undo entry, just like the Qself_insert_command code in
13373 keyboard.c does.
13374 Call frame_make_pointer_invisible, also like the Qself_insert_command
13375 code in keyboard.c does.
13376 * keyboard.c (command_loop_1): Use the new global nonundocount rather
13377 than its own local replacement for it.
13378
e267324c
KR
133792009-08-10 Ken Raeburn <raeburn@raeburn.org>
13380
1ac9108a 13381 * fns.c (concat): Don't re-set string length to its current value.
77437343 13382
1ac9108a
SM
13383 * coding.h (decode_coding_string, encode_coding_string):
13384 Use SBYTES macro.
f0bed503 13385
1ac9108a 13386 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
13387 (doprnt): Merge with doprnt1, discarding lispstrings code.
13388 * lisp.h (doprnt_lisp): Don't declare.
13389
416e006d
JL
133902009-08-07 Juri Linkov <juri@jurta.org>
13391
13392 * puresize.h (BASE_PURESIZE): Increase to 1270000.
13393
6f7d5780
DN
133942009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13395
13396 * print.c (syms_of_print): Undo previous change.
13397
f19a0f5b
TZ
133982009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
13399
13400 * lread.c (read1, syms_of_lread): Read hashtables back from the
13401 readable format.
13402
13403 * print.c (print_preprocess, print_object): Print hashtables fully
13404 and readably.
13405 (syms_of_print): Provide 'hashtable-print-readable.
13406
b9173dc2
AR
134072009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13408
13409 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
13410 no family set.
13411 (nsfont_open): Handle case when entity has no family.
13412
1586503c
AR
134132009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13414
13415 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
13416 element, not a list, for match case.
13417
087048cd
KH
134182009-07-28 Kenichi Handa <handa@m17n.org>
13419
13420 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
13421 rigidly.
13422
13423 * xfont.c (xfont_list_pattern): Don't ignore the return value of
13424 font_parse_xlfd. Check font properties more rigidly.
13425
780c2506
DN
134262009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13427
31fd7c5c
JB
13428 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
13429 bsd-common.h.
780c2506 13430
a8c0cc18
KH
134312009-07-27 Kenichi Handa <handa@m17n.org>
13432
13433 * xfaces.c (face_with_height): Call font_clear_prop.
13434
4fbe2306
CY
134352009-07-26 Chong Yidong <cyd@stupidchicken.com>
13436
111d9af3
CY
13437 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
13438
13439 * xterm.c (x_term_init): Use Qx.
13440
4fbe2306
CY
13441 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
13442
1ac9108a 13443 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
13444 (ns_get_color): Revert 2009-07-16 change.
13445
beb0b7f9
EZ
134462009-07-25 Eli Zaretskii <eliz@gnu.org>
13447
13448 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 13449 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 13450
2baf5e76
KR
134512009-07-25 Ken Raeburn <raeburn@raeburn.org>
13452
1ac9108a
SM
13453 * coding.h (decode_coding_string, encode_coding_string):
13454 Use SCHARS macro.
8890e5f5 13455
2baf5e76 13456 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 13457 (load_depth): Delete.
2baf5e76
KR
13458 (Qload_in_progress): New variable.
13459 (load_unwind): Don't reference load_depth or load_in_progress.
13460 (Fload): Likewise; specbind Qload_in_progress instead.
13461 (init_lread): Don't initialize load_depth.
13462 (syms_of_lread): Initialize and protect Qload_in_progress.
13463
1395c6f5
AR
134642009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13465
13466 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
13467
4e2f36cf
AR
134682009-07-23 Yavor Doganov <yavor@gnu.org>
13469
13470 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
13471
5dd9a6f7
AR
134722009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13473
13474 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
13475 Bugs 3792, 3720, 2402.
13476 (ns_lookup_indexed_color): Check for bad index.
13477 (ns_index_color): Init unused slot to 0.
13478 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
13479 Bug 3714, possibly 3082.
5dd9a6f7 13480
c902b920
JR
134812009-07-22 Jason Rumney <jasonr@gnu.org>
13482
1ac9108a
SM
13483 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
13484 Position IME window at cursor (Bug#2570).
c902b920
JR
13485 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
13486 (globals_of_w32fns): Dynamically load functions required above.
13487
13488 * w32term.c (w32_draw_window_cursor): Send message to reposition
13489 any IME window.
13490
090101cf
CY
134912009-07-21 Chong Yidong <cyd@stupidchicken.com>
13492
13493 * fileio.c: Revert 2009-07-16 changes.
13494 (Vauto_save_include_big_deletions): New variable.
13495 (Fdo_auto_save): Disable auto-save only if
13496 auto-save-include-big-deletions is nil.
13497
e6583e3d
CY
134982009-07-21 Chong Yidong <cyd@stupidchicken.com>
13499
13500 * xdisp.c (move_it_to): For continued lines ending in a tab, take
13501 the overflowed pixels into account (Bug#3879).
13502
ece435a5
KR
135032009-07-21 Ken Raeburn <raeburn@raeburn.org>
13504
13505 * lread.c (load_depth): New variable.
13506 (Fload, load_unwind, init_lread): Set it to the load recursion
13507 depth; set load_in_progress as a simple boolean based on the
13508 current load_depth. (Bug#3892)
13509
40b2d973
AR
135102009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13511
13512 * nsfont.m (ns_has_attribute): Remove.
13513 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
13514
10be7e0d
JL
135152009-07-18 Juri Linkov <juri@jurta.org>
13516
13517 * process.c (Fset_process_query_on_exit_flag): Mention killing
13518 a buffer in docstring.
13519
fa055055
KH
135202009-07-17 Kenichi Handa <handa@m17n.org>
13521
13522 * casetab.c (shuffle): Fix the logic of setting up the cycle.
13523
042f7b69
YM
135242009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13525
13526 * nsfns.m (Fns_set_alpha): Remove function.
13527 (syms_of_nsfns): Don't defsubr it.
13528
13529 * nsterm.m (ns_get_color): Remove incompatible color formats.
13530 (ns_color_to_lisp): Generate #rrggbb color format string.
13531
4be941e3
RS
135322009-07-16 Richard Stallman <rms@gnu.org>
13533
13534 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
13535 (Fset_buffer_auto_saved): Handle save_length = -2.
13536
4e6b227d
CY
135372009-07-16 Chong Yidong <cyd@stupidchicken.com>
13538
13539 * xterm.c (Qx_gtk_map_stock): New var.
13540
13541 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
13542 of calling intern each time.
13543
a1856973
YM
135442009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13545
13546 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
13547 does tiling.
13548
13549 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
13550
497e54d8
KH
135512009-07-14 Kenichi Handa <handa@m17n.org>
13552
72d36834
KH
13553 * font.c (font_vconcat_entity_vectors): New function.
13554 (struct font_sort_data): New member font_driver_preference.
13555 (font_compare): Check font_driver_preference.
13556 (font_sort_entities): The format of the first argument changed.
13557 (font_delete_unmatched): Likewise.
13558 (font_list_entities): The return type changed.
13559 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
13560 (font_find_for_lface): Adjuste for the above changes.
13561 Don't suppress the checking of C even if the repertory supports it.
13562 (Flist_fonts): Adjust for the above changes.
72d36834 13563
1ac9108a
SM
13564 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
13565 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
13566 Reject a font who has adstyle property that is different from a
13567 langname derived from registry property.
1ac9108a 13568 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 13569
b6046155
EZ
135702009-07-13 Eli Zaretskii <eliz@gnu.org>
13571
13572 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
13573 local copy of dirfilename.
13574
fb6b6049
KH
135752009-07-13 Kenichi Handa <handa@m17n.org>
13576
e2402a5e
KH
13577 * chartab.c (sub_char_table_ref_and_range): Fix the range check
13578 against max_char.
13579
fb6b6049
KH
13580 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
13581 calling XSYMBOL (sym).
13582
65156807
EZ
135832009-07-11 Eli Zaretskii <eliz@gnu.org>
13584
1ac9108a
SM
13585 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
13586 New function.
13587 (directory_files_internal) [WINDOWSNT]:
13588 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
13589 the filesystem of the directory is fast or slow.
13590
13591 * w32.c (logon_network_drive): Don't assume PATH is an absolute
13592 file name.
13593 (is_slow_fs): New function.
13594 (stat): Use it to determine whether to issue more system calls to
13595 get accurate file attributes, when w32-get-true-file-attributes is
13596 `local'.
13597
e0ab5fcf
JD
135982009-07-10 Jan Djärv <jan.h.d@swipnet.se>
13599
13600 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 13601 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
13602 parameter font-parameter as default to the font dialog.
13603
784ceded
KH
136042009-07-10 Kenichi Handa <handa@m17n.org>
13605
13606 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
13607
fb8edc0b
EZ
136082009-07-09 Eli Zaretskii <eliz@gnu.org>
13609
1ac9108a 13610 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 13611
fb8edc0b
EZ
13612 * w32.c (stat): Treat UNC file names as residing on remote
13613 drives. (Bug#3542)
13614
635c75b1
KH
136152009-07-09 Kenichi Handa <handa@m17n.org>
13616
13617 * fontset.c (fontset_find_font): Fix previous change.
13618
c1d5ce94
MA
136192009-07-08 Michael Albinus <michael.albinus@gmx.de>
13620
13621 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
13622 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
13623 error flag.
13624
edb61b39
KH
136252009-07-08 Kenichi Handa <handa@m17n.org>
13626
374bf7e4
KH
13627 * fontset.c (fontset_find_font): Fix the logic of handling
13628 charset_matched.
13629 (font_for_char): Delete unused var.
13630 (generate_ascii_font_name): Delete it.
13631
edb61b39
KH
13632 * coding.h (JIS_TO_SJIS2): Fix the code range check.
13633
13634 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
13635 (encode_coding_sjis): Fix the code range check.
13636
0f3f018c
CY
136372009-07-07 Chong Yidong <cyd@stupidchicken.com>
13638
13639 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
13640 (Fexpand_file_name): Copy string data properly (Bug#3772).
13641
fcaf6f3a
JD
136422009-07-07 Jan Djärv <jan.h.d@swipnet.se>
13643
13644 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
13645 first MapNotify.
13646
6809ca75
KH
136472009-07-07 Kenichi Handa <handa@m17n.org>
13648
13649 * character.h (unibyte_has_multibyte_table): Delete extern.
13650 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
13651
13652 * charset.c (Fset_charset_priority): Update charset_unibyte.
13653 (syms_of_charset): Initialize charset_unibyte.
13654
13655 * character.c (unibyte_has_multibyte_table): Delete it.
13656 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
13657 charset_unibyte.
13658 (multibyte_char_to_unibyte_safe): Likewise.
13659 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
13660
1ac9108a 13661 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
13662 (x_produce_glyphs): Likewise.
13663
13664 * .gdbinit (xcharset): Fix the treating $arg0.
13665
ad9e2d54
EZ
136662009-07-04 Eli Zaretskii <eliz@gnu.org>
13667
13668 Emulation of `getloadavg' on MS-Windows.
50426a04 13669 * w32.c: Include float.h.
ad9e2d54
EZ
13670 (g_b_init_get_native_system_info, g_b_init_get_system_times)
13671 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
13672 (get_native_system_info, get_system_times): New functions.
13673 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
13674 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
13675 (globals_of_w32): Initialize g_b_init_get_native_system_info,
13676 g_b_init_get_system_times, and num_of_processors.
13677
0a3472c7
JR
136782009-07-03 Jason Rumney <jasonr@gnu.org>
13679
13680 * w32term.c (w32_initialize): Use standard types.
13681
80904120
EZ
136822009-07-03 Eli Zaretskii <eliz@gnu.org>
13683
13684 * dired.c (Ffile_attributes): Decode user and group names by the
13685 locale's encoding. (Bug#3443)
13686
6978862d
DN
136872009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
13688
f8d23104
DN
13689 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
13690 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
13691
13692 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
13693
13694 * term.c (init_tty): Remove spurious #ifdef.
13695
6978862d
DN
13696 * m/mips.h: Mention this file is also used for netbsd.
13697 * m/pmax.h: Remove file.
13698
e044e4fc
JD
136992009-07-03 Jan Djärv <jan.h.d@swipnet.se>
13700
13701 * xterm.h (struct x_display_info): Add invisible_cursor.
13702 (struct x_output): Add current_cursor.
13703
13704 * xterm.c (XTtoggle_invisible_pointer): New function.
13705 (x_define_frame_cursor): Don't define cursor if invisible or the
13706 same as before. Set current_cursor.
13707 (x_create_terminal): Set toggle_invisible_pointer_hook.
13708
13709 * xfns.c (make_invisible_cursor): New function.
13710 (x_set_mouse_color): Call make_invisible_cursor.
13711 Set current_cursor.
13712 (x_window): Set current_cursor.
13713
13714 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
13715
13716 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
13717 inserting a character.
13718 (read_avail_input): Call frame_make_pointer_visible.
13719
13720 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
13721 (frame_make_pointer_invisible, frame_make_pointer_visible):
13722 New functions.
e044e4fc
JD
13723 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
13724
13725 * frame.h: Declare frame_make_pointer_invisible and
13726 frame_make_pointer_visible.
13727 (struct frame): Add pointer_invisible.
13728
574c8efa
JD
137292009-07-02 Jan Djärv <jan.h.d@swipnet.se>
13730
7b507248
JD
13731 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
13732 frame isn't visible.
13733 (xg_frame_resized): If width/height is -1, get size of window
13734 from X server.
13735
13736 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
13737 for MapNotify.
13738
835bdaa7 13739 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 13740 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 13741 (flush_and_sync): Reintroduce.
574c8efa 13742
3f1c6666 137432009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 13744
31fd7c5c 13745 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
13746
13747 * xterm.c (x_handle_net_wm_state): Also look for sticky.
13748 (x_term_init): Initialize Xatom_net_wm_state_sticky.
13749
13750 * frame.h: Declare Qsticky.
13751
cad9ef74
JD
13752 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
13753
13754 * nsfns.m (ns_frame_parm_handlers): Ditto.
13755
13756 * frame.c: Declare Qsticky.
13757 (frame_parms): Add sticky.
13758
13759 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
13760
13761 * xterm.h: Declare x_set_sticky.
13762
13763 * xterm.c (x_set_sticky): New function.
13764
69b16610
JD
13765 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
13766 (xg_tool_bar_menu_proxy): Attach enter/leave events to
13767 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
13768
13769 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
13770
13771 * frame.c: Qmaximized is new.
13772 (x_set_frame_parameters): Do not handle fullscreen specially.
13773 Only set width and height if explicitly set.
13774 (x_set_fullscreen): Handle Qmaximized.
13775 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
13776 (syms_of_frame): Initialize Qmaximized.
13777
1ac9108a
SM
13778 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
13779 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
13780
13781 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
13782 for Expose event. Add call to x_check_fullscreen for MapNotify event.
13783 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
13784 set gravity to NorthWestGravity when USE_GTK.
13785 (set_wm_state): New function.
31fd7c5c 13786 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
13787 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
13788 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 13789 or the case when no window manager is running. That means remove calls
3f1c6666
JD
13790 to x_real_positions and x_fullscreen_adjust.
13791
13792 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
13793 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
13794 flush_and_sync.
13795 (xg_height_changed): New function.
13796 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
13797 and gtk_window_set_policy. Set frame gravity after parsing the
13798 geometry string.
3f1c6666
JD
13799 (xg_update_frame_menubar, free_frame_menubar)
13800 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13801 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
13802 Remove calls to xg_frame_set_char_size.
13803
fd503d99
KH
138042009-07-01 Kenichi Handa <handa@m17n.org>
13805
13806 * keyboard.c (decode_keyboard_code): New function.
13807 (tty_read_avail_input): Decode the input bytes if necessary.
13808
1ac9108a
SM
13809 * coding.c (setup_coding_system):
13810 Initialize coding->carryover_bytes to 0.
fd503d99
KH
13811 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13812 use Qno_conversion.
13813
24ed93fb
YM
138142009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13815
13816 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13817
99061dfc
CY
138182009-06-30 Chong Yidong <cyd@stupidchicken.com>
13819
1ac9108a 13820 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 13821
ff90fbde
JR
138222009-06-30 Jason Rumney <jasonr@gnu.org>
13823
13824 * w32term.c (w32_initialize): Use GetModuleHandle for library that
13825 is already loaded.
13826 Set user model ID if supported (bug#1849).
13827
5f445726
JM
138282009-06-29 Jim Meyering <meyering@redhat.com>
13829
13830 Remove useless if-before-xfree test.
13831 * nsfont.m (nsfont_close): Remove useless test.
13832 * term.c (delete_tty): Likewise.
13833 * w32.c (system_process_attributes): Likewise.
13834 * w32font.c (w32font_close): Likewise.
13835 * xfaces.c (x_free_gc): Likewise.
13836 * xselect.c (buffer): Likewise.
13837
b9607587
AS
138382009-06-28 Andreas Schwab <schwab@linux-m68k.org>
13839
13840 * process.c (send_process): Keep decoded string in a local
13841 variable and protect it from GC. (Bug#3521)
13842
89ba96f4
EZ
138432009-06-28 Eli Zaretskii <eliz@gnu.org>
13844
13845 * term.c (create_tty_output) [MSDOS]: #ifdef away.
13846 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13847
098a1589
CY
138482009-06-28 Chong Yidong <cyd@stupidchicken.com>
13849
485422be
CY
13850 * xdisp.c (start_display, handle_face_prop)
13851 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
13852 (redisplay_window, try_window_id, produce_image_glyph):
13853 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 13854
098a1589
CY
13855 * xterm.c (x_update_window_begin, x_new_focus_frame)
13856 (x_scroll_bar_handle_click, handle_one_xevent)
13857 (handle_one_xevent, XTread_socket, x_focus_on_frame)
13858 (x_make_frame_visible, x_make_frame_invisible)
13859 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13860 code chunks that are now obsolete.
13861
78c38319
MA
138622009-06-28 Michael Albinus <michael.albinus@gmx.de>
13863
13864 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13865 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
13866 for hours, when optimzation is enabled.
13867 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13868 (xd_read_message): Make them static.
13869
4189ed40
CY
138702009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
13871
13872 * term.c (turn_on_face): Allow simultaneously bold and dim
13873 terminal faces (Bug#3530).
13874
cd9b5e16
CY
138752009-06-27 Chong Yidong <cyd@stupidchicken.com>
13876
4e23bedb
CY
13877 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13878
cd9b5e16
CY
13879 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13880 truncation glyphs (Bug#3686).
13881
07cc3c35
GM
138822009-06-27 Glenn Morris <rgm@gnu.org>
13883
13884 * m/pmax.h: Restore file, with only netbsd portions.
13885
31fd7c5c 138862009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 13887
cd9b5e16 13888 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 13889
42d4a64f
KH
138902009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
13891
13892 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13893 the arg FORCE_SYMBOL.
13894
930fe55b 138952009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
13896
13897 * fontset.c (fontset_find_font): When a usable rfont_def is found
13898 in a fallback font-group, make it the first element of the group.
13899
57ebc3fd
CY
139002009-06-24 Chong Yidong <cyd@stupidchicken.com>
13901
13902 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13903
f084f942
KH
139042009-06-24 Kenichi Handa <handa@m17n.org>
13905
13906 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
13907 set for C.
13908 (fontset_font): Record the availability of a font for C both in
13909 the realized fontsets of the current one and the default one.
13910
2f686c87
DN
139112009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
13912
13913 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
13914 conditional, it is always defined on AIX.
13915
666e158e
MB
139162009-06-23 Miles Bader <miles@gnu.org>
13917
13918 * window.c (Vrecenter_redisplay): New variable.
13919 (syms_of_window): Initialize it.
13920 (Qtty): New extern declaration.
13921 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
13922
c6da7cd2
JM
139232009-06-23 Jim Meyering <meyering@redhat.com>
13924
1ac9108a
SM
13925 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13926 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 13927 pointer dereferences are guaranteed to be valid.
c6da7cd2 13928
678dca3d
KH
139292009-06-23 Kenichi Handa <handa@m17n.org>
13930
74d75424
KH
13931 * emacs.c (main): Call init_font ().
13932
13933 * font.h (Vfont_log): Extern it.
13934 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13935
13936 * font.c (font_sort_entities, font_list_entities)
13937 (font_matching_entity, font_open_entity)
13938 (font_close_object): Change font_add_log to FONT_ADD_LOG.
13939 (Vfont_log): Delete static.
13940 (font_log_env_checked): Delete this variable.
13941 (font_add_log): Don't check font_log_env_checked.
13942 (font_deferred_log): Check Vfont_log.
13943 (init_font): New function.
13944
678dca3d
KH
13945 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13946
13947 * w32font.c: Change font_add_log to FONT_ADD_LOG.
13948
13949 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
13950
13951 * xfont.c: Change font_add_log to FONT_ADD_LOG.
13952
13953 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
13954 (face_for_char): Don't call font_deferred_log here.
13955 (font_for_char): Likewise.
13956
8a668709
CY
139572009-06-22 Chong Yidong <cyd@stupidchicken.com>
13958
9a01ee33
CY
13959 * w32term.c (x_draw_glyph_string): Use the glyph string's width
13960 rather than its background_width for drawing the overline and
13961 underline (Bug#489).
13962
13963 * xterm.c (x_draw_glyph_string): Use the glyph string's width
13964 rather than its background_width for drawing the overline and
13965 underline (Bug#489).
ec7c9926
CY
13966 (xg_default_icon_file): New variable.
13967 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
13968 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 13969
8a668709
CY
13970 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
13971 (load_overlay_strings): Remove externs.
13972 (fast_find_position): Function deleted.
13973 (mouse_face_from_buffer_pos): New function, based on
13974 fast_find_position. Correctly handle before-strings,
13975 display-strings, and after-strings (Bug#1220).
13976 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
13977
4d4c02d8
CY
139782009-06-21 Chong Yidong <cyd@stupidchicken.com>
13979
1ac9108a 13980 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
13981 (move_it_in_display_line_to, move_it_in_display_line_to)
13982 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
13983
70243478
CY
139842009-06-21 Chong Yidong <cyd@stupidchicken.com>
13985
13986 * Branch for 23.1.
13987
13087e59
JR
139882009-06-21 Jason Rumney <jasonr@gnu.org>
13989
13990 * w32term.c (keyboard_codepage): New static variable.
13991 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
13992 (w32_read_socket) [WM_CHAR]: Use it to decode character
13993 input (bug#3237).
13994 (w32_initialize): Initialize it.
13995 (codepage_for_locale): New function.
13996
4735b74e
KR
139972009-06-20 Ken Raeburn <raeburn@raeburn.org>
13998
13999 * process.c (status_message): Pass Faset index argument as a lisp
14000 object, so as to work with USE_LISP_UNION_TYPE.
14001
0e727afa
YM
140022009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14003
14004 * coding.c (Ffind_coding_systems_region_internal):
14005 Cache checked characters.
14006
cf299835
KH
140072009-06-18 Kenichi Handa <handa@m17n.org>
14008
1ac9108a 14009 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 14010
90f20d94
AS
140112009-06-18 Andreas Schwab <aschwab@redhat.com>
14012
14013 * xdisp.c (redisplay_internal): Check that the frame is still
14014 live after redisplay of its windows.
14015 (redisplay_windows): Check that the window is still live.
14016
7f1faf1c
KH
140172009-06-17 Andreas Schwab <schwab@linux-m68k.org>
14018
14019 * coding.c (detect_coding_utf_16): Fix previous change.
14020
cc13543e
KH
140212009-06-16 Kenichi Handa <handa@m17n.org>
14022
14023 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
14024 UTF-16 by checking the dispersion of Eth and Oth bytes.
14025
977b85f4
AS
140262009-06-15 Andreas Schwab <schwab@linux-m68k.org>
14027
14028 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
14029
66bd43d1
KH
140302009-06-15 Kenichi Handa <handa@m17n.org>
14031
14032 * process.c (status_message): Fix previous change. Be sure to
14033 decode a localized string.
14034
cb5ca9c5
YM
140352009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14036
14037 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
14038 add comment explaining why.
14039
ec7709ba 140402009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 14041
ec7709ba 14042 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 14043
4b7f335c
AR
140442009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
14045
14046 * nsfont.m (ns_attribute_value): Remove.
14047 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
14048 (ns_has_attribute): Shrink the normal range.
14049 (ns_findfonts): Don't worry about requested spec in determining
14050 need for synthItal.
e41820ee 14051 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 14052
73b26103
SZ
140532009-06-14 Seiji Zenitani <zenitani@mac.com>
14054
14055 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
14056
5753e4da
KH
140572009-06-11 Kenichi Handa <handa@m17n.org>
14058
14059 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
14060 overhang for the static composition case.
14061
3561b671
KH
140622009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14063
5753e4da
KH
14064 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
14065 overhang for the automatic composition case.
14066
3561b671
KH
14067 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
14068 composition case.
14069
852bbd41
CY
140702009-06-10 Chong Yidong <cyd@stupidchicken.com>
14071
14072 * xdisp.c (get_next_display_element): When handling wrap-prefix
14073 and line-prefix, treat \n as a control character (bug#3502).
14074
9903d1e6
KH
140752009-06-10 Kenichi Handa <handa@m17n.org>
14076
14077 * font.c (font_parse_family_registry): Fix for one-char foundry.
14078 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
14079
0bcbaaaa
CY
140802009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
14081
14082 * process.c (status_message): Fix handling of multibyte signal
14083 string (Bug#3499).
14084
40aa3f13
JM
140852009-06-09 Jim Meyering <meyering@redhat.com>
14086
1f80c7e2
CY
14087 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
14088 color name is missing.
40aa3f13 14089
72d51285
KH
140902009-06-09 Kenichi Handa <handa@m17n.org>
14091
14092 * charset.c (Fmap_charset_chars): In docstring, state clearly that
14093 FROM-CODE and TO-CODE are codepoints of CHARSET.
14094
c1d04d84
AR
140952009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
14096
14097 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
14098
140992009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
14100
14101 Changes to support :script/:lang/:otf in NS font driver.
14102 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
14103 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
14104 indicate not part of font driver interface, and change callers.
14105 (ns_get_family): Remove pointless null check.
14106 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
14107 ns_spec_to_descriptor, ns_descriptor_to_entity.
14108 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
14109 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
14110 (ns_spec_to_descriptor, ns_descriptor_to_entity)
14111 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
14112 (ns_get_req_script, ns_accumulate_script_ranges)
14113 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
14114 New functions.
14115 (nsfont_list, nsfont_match): Use ns_findfonts.
14116 (nsfont_open): Use font descriptor instead of traits.
14117 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
14118 (dump_glyphstring): Rename to ns_dump_glyphstring.
14119
c7eb9816
AR
14120 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
14121
c1d04d84
AR
14122 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
14123
14124 * fontset.c (fontset_from_font): Remove NS-specific code.
14125
ec7709ba 141262009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
14127
14128 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
14129 nonactive windows.
14130
31fd7c5c 141312009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 14132
1ac9108a 14133 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 14134
68852c13 141352009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
14136
14137 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
14138
6756cd1d
CY
141392009-06-07 Chong Yidong <cyd@stupidchicken.com>
14140
14141 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
14142 account for the overflowing of newlines into the last glyph on the
14143 display line (Bug#3482).
14144
28bf482a
DR
141452009-06-05 David Reitter <david.reitter@gmail.com>
14146
ec7709ba
JB
14147 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
14148 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
14149 Fns_selection_exists_p, Fns_selection_owner_p.
14150
fdb55376
JR
141512009-06-03 Jason Rumney <jasonr@gnu.org>
14152
14153 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
14154 available. (Bug#3379)
14155
05129fbe
KH
141562009-05-29 Kenichi Handa <handa@m17n.org>
14157
1ac9108a
SM
14158 * coding.c (get_translation_table):
14159 Check Venable_character_translation.
05129fbe 14160
ec7709ba 141612009-05-26 David Reitter <david.reitter@gmail.com>
15891144 14162
ec7709ba
JB
14163 * nsterm.m (ns_raise_frame): Only raise frame if visible.
14164 (x_make_frame_visible): Move frame to front rather than calling
15891144 14165 ns_raise_frame().
ec7709ba 14166 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 14167 isn't key window.
ec7709ba 14168 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
14169 drawRect may be called by NSView even if the frame is hidden.
14170
ec7709ba
JB
14171 * nsfns.m (Fx_create_frame): Follow other ports in
14172 determining visibility; default to t. Ensure async_visible is set.
15891144 14173
21f73755
EZ
141742009-05-23 Eli Zaretskii <eliz@gnu.org>
14175
14176 * dired.c (Ffile_attributes): Doc fix.
14177
34001e41
CY
141782009-05-22 Chong Yidong <cyd@stupidchicken.com>
14179
14180 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
14181
46306a17
SM
141822009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
14183
14184 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
14185 and xfont_scratch_props.
14186 (syms_of_xfont): Do it here instead.
14187 (xfont_find_ccl_program): Delete, unused.
14188 (xfont_open): Delete unused var `i'.
14189
ef6e0694
KH
141902009-05-21 Kenichi Handa <handa@m17n.org>
14191
14192 * fontset.c (Qlatin): Don't make it static.
14193
46306a17
SM
14194 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
14195 New functions.
ef6e0694
KH
14196 (xfont_scripts_cache, xfont_scratch_props): New variables.
14197 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
14198 (xfont_list_pattern): Argument changed. Callers changed.
14199 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
14200 (xfont_list): Don't reject a font spec with :script property.
14201 (xfont_has_char): Fix setting of encoding.
14202 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
14203 xfont_scratch_props.
14204
142052009-05-19 Kenichi Handa <handa@m17n.org>
14206
46306a17 14207 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
14208 Callers changed.
14209
142102009-05-18 Kenichi Handa <handa@m17n.org>
14211
14212 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
14213
ac71ced7
SM
142142009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14215
14216 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
14217 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
14218
1c6d1051
YM
142192009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14220
14221 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
14222 (x_delete_terminal): Dissociate resource database from display and
14223 then call XrmDestroyDatabase before closing display.
14224
9b9b779c
AR
142252009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
14226
14227 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
14228 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
14229 whether selected frame is viable before raising it (based on patch
14230 by David Reitter), and improve commentary.
14231 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 14232
cccd42d5
KH
142332009-05-15 Kenichi Handa <handa@m17n.org>
14234
14235 * font.c (Ffont_spec): Check arguments.
14236
337fbd17
CY
142372009-05-14 Chong Yidong <cyd@stupidchicken.com>
14238
14239 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
14240 weight when testing attributes (Bug#3282).
14241
47a6002f
JD
142422009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14243
14244 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
14245 what we expect to get in the next ConfigureNotify event.
14246
9cb363db
YM
14247 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
14248 before Xft one (Bug#1696).
14249
b9126609
CY
142502009-05-07 David Reitter <david.reitter@gmail.com>
14251
14252 * nsfns.m (Fx_display_planes): Compute bitplanes using
14253 NSBitsPerPixelFromDepth (Bug#3207).
14254
27a69fd9
CY
142552009-05-10 Chong Yidong <cyd@stupidchicken.com>
14256
14257 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
14258
00f37552
TTN
142592009-05-10 Ulrich Mueller <ulm@gentoo.org>
14260
14261 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
14262
2d82a920
DR
142632009-05-07 David Reitter <david.reitter@gmail.com>
14264
ec7709ba
JB
14265 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
14266 Respect mouse face background.
2d82a920 14267
46b0d52d
DR
142682009-05-07 David Reitter <david.reitter@gmail.com>
14269
ec7709ba
JB
14270 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
14271 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
14272 in ns_update_begin and ns_update_end.
14273
ce1b23bb
SM
142742009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14275
5996e1b7
SM
14276 * nsfns.m (ns_get_screen): Rewrite.
14277 Don't presume selected-frame is of type `ns'.
14278
ba98e3a0
SM
14279 * font.c (font_update_drivers): Sanity fallback to avoid disabling
14280 all drivers.
14281
ce1b23bb
SM
14282 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
14283
bcda200f
YM
142842009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14285
14286 * keyboard.h (add_user_signal): Fix typo in extern.
14287
14288 * lisp.h (add_user_signal): Remove extern.
14289
14290 * unexelf.c (unexec): Consider a section to precede the .bss section
14291 if its addresses overlap that of .bss.
14292 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
14293 instead of dumping process.
14294
864660a2
SM
142952009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14296
14297 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
14298
50da4e56
SM
142992009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
14300
14301 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
14302
51520a1a
DN
143032009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
14304
14305 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
14306 any statements.
14307
409ea3a1
AS
143082009-05-02 Andreas Schwab <schwab@linux-m68k.org>
14309
59c4c60f
AS
14310 * process.c (read_process_output): Make sure the current buffer is
14311 always restored.
14312
409ea3a1
AS
14313 * coding.c (record_conversion_result): Don't modify
14314 Vlast_code_conversion_error for successful result.
14315 (alloc_destination): Don't clobber conversion result. (Bug#1650)
14316
56f00ed2
KH
143172009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14318
14319 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 14320 (load_charset_map): Remove unnecessary code.
56f00ed2 14321
4491c9d2
DR
143222009-04-30 David Reitter <david.reitter@gmail.com>
14323
35f5b128 14324 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
14325 through f24.
14326
6970f632
CY
143272009-04-30 Chong Yidong <cyd@stupidchicken.com>
14328
14329 * xfaces.c (face_at_buffer_position): New arg base_face_id.
14330
14331 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
14332 face_at_buffer_position.
14333 (face_before_or_after_it_pos, get_next_display_element)
14334 (note_mouse_highlight): Update face_at_buffer_position call.
14335
14336 * term.c (term_mouse_highlight):
14337 * msdos.c (IT_note_mouse_highlight):
14338 * fontset.c (Finternal_char_font):
35f5b128 14339 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
14340
14341 * dispextern.h (face_at_buffer_position): Update prototype.
14342
0c616f63
KH
143432009-04-30 Kenichi Handa <handa@m17n.org>
14344
35f5b128 14345 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 14346
ad3aaf33
AS
143472009-04-29 Andreas Schwab <schwab@linux-m68k.org>
14348
14349 * callproc.c (Fcall_process): Fix GC protection. Make sure
14350 current buffer is always restored.
14351
c3c963a0
YM
143522009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14353
14354 * atimer.c (init_atimer): Also clear stopped_atimers.
14355
14356 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
14357
7e3386cb
YM
14358 * process.c (create_process): Clean up merger residues of
14359 2008-07-17 change.
14360
91f68422
CY
143612009-04-29 Ulrich Mueller <ulm@gentoo.org>
14362
14363 * lread.c (Vread_circle): New variable.
14364 (read1): Disable recursive read if Vread_circle is nil.
14365
24b34550
KH
143662009-04-29 Kenichi Handa <handa@m17n.org>
14367
14368 * fontset.h (set_default_ascii_font): Delete extern.
14369
14370 * fontset.c (set_default_ascii_font): Delete this unused function.
14371
14372 * frame.c (x_set_font): When ARG is a font-object, check if the
14373 font-object matches with the ASCII font-spec of the frame's
9c358bda 14374 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 14375
77bf07e1
AS
143762009-04-28 Andreas Schwab <schwab@linux-m68k.org>
14377
14378 * fns.c (Flocale_info): Protect vector from GC during decoding.
14379
14380 * process.c (Fstart_process): Protect argv strings from GC during
14381 encoding.
14382
2c55aacf
AS
143832009-04-27 Andreas Schwab <schwab@linux-m68k.org>
14384
14385 * sysdep.c: Include <ctype.h>.
14386
b892d3c9
DR
143872009-04-27 David Reitter <david.reitter@gmail.com>
14388
35f5b128 14389 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
14390 Remove commented-out code.
14391
9d0644c4
JB
143922009-04-26 Johan Bockgård <bojohan@gnu.org>
14393
14394 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14395
b7053016
JR
143962009-04-25 Jason Rumney <jasonr@gnu.org>
14397
14398 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
14399
4e8231f3
YM
144002009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14401
14402 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
14403 Swap bytes in short integer if fringe bitmap width > 8.
14404
493dcf2c
KH
144052009-04-23 Kenichi Handa <handa@m17n.org>
14406
14407 * xfaces.c (Fx_list_fonts): If a font size is specified in
14408 PATTERN, set it in returned scalable fonts.
14409
401e9e57
CY
144102009-04-22 Chong Yidong <cyd@stupidchicken.com>
14411
708e05dc
CY
14412 * keyboard.c (Fset_input_meta_mode): Doc fix.
14413
14414 * dispnew.c (Fsend_string_to_terminal): Doc fix.
14415
1ac9108a 14416 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
14417
14418 * coding.c (Fterminal_coding_system): Doc fix.
14419
14420 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
14421 (Fx_display_pixel_height, Fx_display_planes)
14422 (Fx_display_color_cells, Fx_server_max_request_size)
14423 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14424 (Fx_display_mm_height, Fx_display_mm_width)
14425 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
14426 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
14427 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
14428 (check_x_display_info): Handle terminal objects instead of
14429 terminal ids.
14430
401e9e57
CY
14431 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
14432 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
14433 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
14434 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 14435
df80c7f0
KH
144362009-04-21 Kenichi Handa <handa@m17n.org>
14437
5a8f12af 14438 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 14439 (font_score): Check AVGWIDTH too.
908567ef 14440
df80c7f0
KH
14441 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
14442 worst case.
1ac9108a
SM
14443 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
14444 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 14445
705af33f
JR
144462009-04-19 Jason Rumney <jasonr@gnu.org>
14447
14448 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 14449 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
14450
14451 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
14452 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
14453 get_phys_cursor_geometry.
14454
b71ac3dd 14455 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
14456 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
14457 using get_phys_cursor_geometry.
14458
14459 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
14460 correctly calculated.
14461
dc2933eb
JD
144622009-04-19 Jan Djärv <jan.h.d@swipnet.se>
14463
1ac9108a
SM
14464 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
14465 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
14466 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
14467 is deprecated.
14468
973e7849
AS
144692009-04-18 Andreas Schwab <schwab@linux-m68k.org>
14470
14471 * font.c (font_put_frame_data): Use xfree instead of free.
14472
314d66f4
JB
144732009-04-17 Juanma Barranquero <lekktu@gmail.com>
14474
14475 * w32font.c (Qja, Qko): Remove declarations.
14476 (syms_of_w32font): Don't DEFSYM them.
14477
cf702558
CY
144782009-04-17 Chong Yidong <cyd@stupidchicken.com>
14479
14480 * font.c (Qja, Qko): Move definitions here from ftfont.c.
14481
14482 * font.h (Qja, Qko): Extern them.
14483
14484 * ftfont.c (Qja, Qko): Remove declarations.
14485
14486 * xfont.c (Qja, Qko): Remove declarations.
14487
b50504f5
KH
144882009-04-17 Kenichi Handa <handa@m17n.org>
14489
bde25748
KH
14490 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
14491 string from a vector to handle Latin-1 characters correctly.
14492
b50504f5
KH
14493 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
14494 entity even if the cache hits.
14495
f4646fff
AS
144962009-04-16 Andreas Schwab <schwab@linux-m68k.org>
14497
14498 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 14499 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 14500
e7deaab0
AS
14501 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
14502 * lisp.h: Adjust prototypes.
14503
0a0e7d49
CY
145042009-04-16 Chong Yidong <cyd@stupidchicken.com>
14505
14506 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
14507 change (Bug#3003).
14508
3c908a57
KH
145092009-04-16 Kenichi Handa <handa@m17n.org>
14510
1ac9108a 14511 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
14512
14513 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
14514 adstyle.
14515
14516 * ftfont.c (Qja, Qko): Don't make them static.
14517 (enum ftfont_cache_for): New enum.
14518 (fc_charset_table): Undo the previous change.
14519 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
14520 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
14521 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
14522 non-scarable font, try to get AVERAGE_WIDTH.
14523 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
14524 Change ft_face_cache from a list of a hash-table. Don't check
14525 `ja' and `ko' adstyle here.
14526 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
14527 FTFONT_CACHE_FOR_CHARET.
14528 (ftfont_get_charset): Undo the previous change.
1ac9108a 14529 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
14530 (ftfont_close): Likewise.
14531 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
14532
14533 * font.c (font_sort_entites): Change the meaning of the arg
14534 BEST-ONLY. Don't optimize for VEC of lenght 1.
14535 (font_select_entity): Just return the value of font_sort_entites.
14536
14537 * xfaces.c (merge_face_vectors): Reflect font properties in
14538 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
14539 font_clear_prop if a face attribute doesn't change.
14540
3c908a57
KH
14541 * charset.h (charset_ksc5601): Extern it.
14542
14543 * charset.c (charset_ksc5601): New variable.
14544 (Fdefine_charset_internal): Set charset_ksc5601.
14545 (init_charset_once): Initialize charset_ksc5601 to -1.
14546
d65859c3
DN
145472009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
14548
14549 * fileio.c (history_delete_duplicates): Remove unused declaration.
14550
14551 * callint.c (history_delete_duplicates): New declaration.
14552 (Fcall_interactively): Remove command history duplicates when
14553 history_delete_duplicates is true.
14554
3ba010e5
EZ
145552009-04-14 Eli Zaretskii <eliz@gnu.org>
14556
14557 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
14558
06f19b91
KH
145592009-04-14 Kenichi Handa <handa@m17n.org>
14560
14561 * font.c (Ffont_info): Fix docstring. Fix the second element of
14562 the returned value (bug#2949).
14563
2cce8bfc
CY
145642009-04-14 Chong Yidong <cyd@stupidchicken.com>
14565
14566 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
14567
d156542d
KH
145682009-04-14 Kenichi Handa <handa@m17n.org>
14569
14570 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
14571 encoding charset is ascii_compatible.
14572
14573 * charset.c (Fdefine_charset_internal): Make charset
14574 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
14575 code_offset is 0, and covers all ASCII characters.
14576
86fa089e
SM
145772009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
14578
14579 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
14580 (ns_string_to_pasteboard_internal):
14581 * nsmenu.m (process_dialog):
14582 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
14583 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
14584 * lisp.h (Fx_load_color_file): Declare.
14585
a8a3728b
KH
145862009-04-13 Kenichi Handa <handa@m17n.org>
14587
1ac9108a 14588 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
14589 (font_select_entity): Suppress the code to optimize for the same
14590 kind of fonts.
14591 (font_load_for_lface): Get a font that supports at least ASCII
14592 characters.
14593
14594 * ftfont.c (Qja, Qko): New variables.
14595 (fc_charset_table): Delete uniquifier data for iso8859-1.
14596 (ftfont_get_latin1_charset): New function.
14597 (get_adstyle_property): New function.
14598 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
14599 bitmap fonts.
14600 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
14601 Delete iso-8859-1 range from the charset of fonts whose adstyle is
14602 `ko' or `ja'.
14603 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 14604 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
14605 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
14606 property.
14607 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
14608 (syms_of_ftfont): DEFSYM Qja and Qko.
14609
483670b5
KH
146102009-04-09 Kenichi Handa <handa@m17n.org>
14611
12b55765
KH
14612 * charset.c (map_charset_chars): For a charset of `superset'
14613 method, fix calculation of code range.
14614
483670b5
KH
14615 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
14616 from the list of extra properties.
14617 (font_clear_prop): Be sure to delete `:name' font property.
14618
57d3b93b
KH
146192009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14620
b4b2c2ca
YM
14621 * dispnew.c (redraw_overlapping_rows): Fix detection of
14622 overlapping for topmost and bottommost rows.
14623
1ac9108a 14624 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 14625
472c3609
JR
146262009-04-06 Jason Rumney <jasonr@gnu.org>
14627
14628 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
14629
ab193662
KH
146302009-04-06 Kenichi Handa <handa@m17n.org>
14631
14632 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
14633
14634 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
14635
0c26f026
KH
146362009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14637
14638 * ftfont.c (ftfont_open): Fix checking of the return value of
14639 FT_Load_Char. Fix setting font->underline_thickness.
14640
e173bbce
CY
146412009-04-04 Chong Yidong <cyd@stupidchicken.com>
14642
14643 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
14644 (Fterminal_parameters, Fterminal_parameter)
14645 (Fset_terminal_parameter): In doc string, refer to terminal
14646 objects rather than terminal ids.
14647
693a2698
EZ
146482009-04-04 Eli Zaretskii <eliz@gnu.org>
14649
14650 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
14651 ret_lim_data. (Bug#2867)
14652
d5221487
CY
146532009-04-03 Chong Yidong <cyd@stupidchicken.com>
14654
14655 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
14656 so they don't get wider than the window, matching 2006-01-23
14657 change to the partner function in xdisp.c (Bug#2800).
14658
223509a3
KH
146592009-04-03 Kenichi Handa <handa@m17n.org>
14660
14661 * print.c (print_object): Make each lowest sub_char_table start a
14662 new line (Bug#2866).
14663
74fcd0b1
KH
146642009-04-02 Kenichi Handa <handa@m17n.org>
14665
14666 * fontset.c (fontset_font): Record no-font when a fontset
14667 explicitly tells not to try another font-specs.
14668
c542407d
SM
146692009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
14670
14671 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
14672
e3869731
KH
146732009-03-30 Kenichi Handa <handa@m17n.org>
14674
d8d2f142
KH
14675 * fontset.c (fontset_from_font): Specify only registry in a
14676 font-spec for all characters supported by that registry.
14677
e3869731
KH
14678 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
14679 even if HAVE_M17N_FLT is not defined.
14680
5da5f805
CY
146812009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
14682
14683 * ftfont.c: Conditionalize prototyping and use of
14684 ftfont_variation_glyphs.
14685
ab226c50
SM
146862009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14687
9628fed7
SM
14688 * frame.c (delete_frame): Work around compiler bug.
14689
14690 * editfns.c (general_insert_function): Adjust to insdel.c changes.
14691 * insdel.c (prepare_to_modify_buffer, signal_before_change):
14692 Some more EMACS_INT.
14693 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
14694
14695 * xdisp.c (dump_glyph): Fix typo.
14696
ae19ba7c
SM
14697 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
14698 (adjust_markers_gap_motion, adjust_markers_for_delete)
14699 (adjust_markers_for_insert, adjust_point)
14700 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
14701 (make_gap, copy_text, count_size_as_multibyte, insert)
14702 (insert_and_inherit, insert_before_markers)
14703 (insert_before_markers_and_inherit, insert_1)
14704 (count_combining_before, count_combining_after, insert_1_both)
14705 (insert_from_string, insert_from_string_before_markers)
14706 (insert_from_string_1, insert_from_gap, insert_from_buffer)
14707 (insert_from_buffer_1, adjust_after_replace)
14708 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
14709 (replace_range_2, del_range, del_range_1, del_range_byte)
14710 (del_range_both, del_range_2, modify_region)
14711 (prepare_to_modify_buffer, signal_before_change)
14712 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
14713 for buffer positions and sizes.
14714 * lisp.h: Adjust prototypes accordingly.
14715
14716 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
14717 (non_regular_inserted, non_regular_nbytes, read_non_regular)
14718 (Finsert_file_contents): Use EMACS_INT for buffer positions.
14719
ab226c50
SM
14720 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
14721
46dfb8fb
JD
147222009-03-27 Jan Djärv <jan.h.d@swipnet.se>
14723
14724 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
14725 lines and columns so we keep the same pixel height and width.
14726
14727 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
14728 the property _NET_WM_STATE has changed.
46dfb8fb
JD
14729 (x_handle_net_wm_state): New function to update frame parameter
14730 fullscreen.
14731 (x_term_init): Initialize atoms for _NET_WM_STATE.
14732
14733 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
14734
d347e494
SM
147352009-03-27 Kevin Ryde <user42@zip.com.au>
14736
14737 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
14738 Gpm_GetEvent as an error that justifies closing the filedescriptor.
14739 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
14740 (Fgpm_mouse_stop): Pass that new parameter.
14741 * termhooks.h (close_gpm): Adjust prototype.
14742
84db11d6
SM
147432009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14744
c95a5008
SM
14745 * lisp.h (Fx_focus_frame): Declare.
14746
84db11d6
SM
14747 * callint.c (Fcall_interactively): For '^' just delegate the work to
14748 handle-shift-selection.
14749 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
14750
0a1958d6
CY
147512009-03-24 Chong Yidong <cyd@stupidchicken.com>
14752
0bfdff23
CY
14753 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
14754
0a1958d6
CY
14755 * data.c (Qinteractive_form): New variable.
14756 (Finteractive_form): Use it.
14757
14758 * eval.c (Fcommandp): Use Qinteractive_form.
14759
58aec0d6
JR
147602009-03-24 Jason Rumney <jasonr@gnu.org>
14761
14762 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
14763 Calculate total size precisely. Decode environment variables
14764 before substituting. (Bug#38)
14765
553dd618
KH
147662009-03-24 Kenichi Handa <handa@m17n.org>
14767
14768 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 14769 encoding (Bug#2722).
553dd618 14770
c39ea606
JD
147712009-03-23 Jan Djärv <jan.h.d@swipnet.se>
14772
14773 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
14774 that gdpy is set.
14775
bc9b2b5e
AM
147762009-03-22 Alan Mackenzie <acm@muc.de>
14777
14778 * callint.c (Finteractive): Clarify the doc string - even
14779 promptless elements need \n separators.
14780
9f995a76
JR
147812009-03-22 Jason Rumney <jasonr@gnu.org>
14782
14783 * w32term.c (syms_of_w32term): Doc fix for
14784 x-use-underline-position-properties.
14785
22749e9a
EZ
147862009-03-21 Eli Zaretskii <eliz@gnu.org>
14787
14788 * w32.c (getpwuid): Change argument type to unsigned.
14789 (struct w32_id): Change type of `rid' member to unsigned.
14790 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
14791 argument ID to unsigned. All callers changed.
14792 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
14793
e00553bf
EZ
147942009-03-20 Eli Zaretskii <eliz@gnu.org>
14795
14796 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
14797 negative, produce a float value.
14798
14799 * dired.c (make_uid, make_gid): New functions.
14800 (Ffile_attributes): Use them to avoid negative UID and GID.
14801
f761d6b6
JB
148022009-03-20 Juanma Barranquero <lekktu@gmail.com>
14803
14804 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14805 (syms_of_keyboard) <command-hook-internal, input-method-function>:
14806 Fix typos in docstrings.
14807
d507f8d7
KH
148082009-03-19 Kenichi Handa <handa@m17n.org>
14809
14810 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
14811 changed, use font_load_for_lface to get a new font object.
14812 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
14813
14814 * frame.c (x_set_font): Handle the case that ARG is a cons.
14815
c68845e0
GM
148162009-03-19 Glenn Morris <rgm@gnu.org>
14817
14818 * fileio.c (Fsubstitute_in_file_name): Doc fix.
14819
bfa49dd1
CY
148202009-03-19 Chong Yidong <cyd@stupidchicken.com>
14821
14822 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14823
8458d4c1
KH
148242009-03-19 Kenichi Handa <handa@m17n.org>
14825
14826 * charset.c (load_charset_map_from_file): When a mapfile can't be
14827 loaded, signal an error.
14828
78e7d1fe
EZ
148292009-03-18 Eli Zaretskii <eliz@gnu.org>
14830
14831 * dired.c (Ffile_attributes): Make sure UID and GID are always
14832 positive, even if the value is too large for a positive EMACS_INT.
14833 Doc fix.
14834
14835 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
14836
5da9fdfa
YM
148372009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14838
14839 * xmenu.c (xdialog_show): Move Fredisplay call ...
14840 (Fx_popup_dialog): ... here.
14841
7519c40d
SM
148422009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
14843
14844 * dired.c (file_name_completion): Disable the first optimization just
14845 installed, since it is not implemented correctly.
14846
2cd298e2
SM
148472009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14848
14849 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 14850 only if the entry can affect bestmatch.
2cd298e2
SM
14851 Stop the search early, as Ftry_completion already does.
14852
48d37adf
CY
148532009-03-17 Chong Yidong <cyd@stupidchicken.com>
14854
e10c9c93 14855 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 14856
9286b16a
CY
148572009-03-15 Chong Yidong <cyd@stupidchicken.com>
14858
14859 * keyboard.c (parse_menu_item): Don't display remappings as menu
14860 equivalent bindings (Bug#788).
14861
f7b146dc
JR
148622009-03-15 Jason Rumney <jasonr@gnu.org>
14863
14864 * w32term.h (WM_EMACS_PAINT): New message.
14865 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14866 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14867 before passing to lisp thread. (Bug#950)
14868
f761d6b6 148692009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 14870
d93f9575
CY
14871 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14872 variable as it was never reset.
14873 (ns_term_init): Remove initialization of Lisp-settable defaults
14874 and ns_expand_space.
14875 (-setPanelFromDefaultValues): Remove ns_expand_space.
14876 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14877 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
14878 i.e. no additional spacing, similar to Carbon port.
14879
d93f9575
CY
14880 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14881 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 14882
305018ec
JD
148832009-03-14 Jan Djärv <jan.h.d@swipnet.se>
14884
14885 * sound.c (alsa_configure): Remove call to deprecated
14886 snd_pcm_sw_params_set_xfer_align.
14887
f761d6b6 148882009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
14889
14890 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14891 after clicking in a detached tool bar.
14892 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14893
46e722a9
SM
148942009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
14895
348db3dd
SM
14896 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14897 int/Lisp_Object mixup).
46e722a9 14898
a3d16f39
KH
148992009-03-13 Kenichi Handa <handa@m17n.org>
14900
14901 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 14902 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
14903 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14904 (set_fontset_font): Change ARG to a vector. Handle range_list in
14905 ARG correctly.
14906 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 14907 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
14908 the above change.
14909 (fontset_from_font): Fix previous change.
fe24f56a 14910 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
14911 entry. If FONTSET is the default fontset, don't set the extra
14912 slot of the returning char-table.
14913
b066e6b6
JB
149142009-03-12 Juanma Barranquero <lekktu@gmail.com>
14915
14916 * nsfns.m (Fx_close_connection): Doc fix.
14917 (Fns_do_applescript): Reflow docstring.
14918 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
14919 (Fx_display_pixel_width, Fx_display_pixel_height)
14920 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
14921 Fix typos in docstrings.
14922 (Fns_set_alpha): Fix typos in error messages.
14923
d472514e 149242009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 14925
d472514e 14926 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
14927 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
14928 were used for such events.
14929
d472514e
JB
14930 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14931 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 14932
d472514e 14933 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
14934 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14935
fb930676
KH
149362009-03-11 Kenichi Handa <handa@m17n.org>
14937
ff85581a
KH
14938 * font.h (font_open_by_spec): Extern it.
14939
c50b7e98
KH
14940 * font.c (font_open_by_spec): New function.
14941 (font_open_by_name): Use font_open_by_spec.
14942
fb930676
KH
14943 * frame.c (x_set_font): When ARG is a font-object, don't alter the
14944 fontset of the frame.
14945
14946 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14947 modify the default font of frames that use this fontset.
14948 (num_auto_fontsets): New variable.
14949 (fontset_from_font): Use num_auto_fontsets to decide a fontset
14950 name. Be sure to set FONTSET_ASCII to the correct font name.
14951 (update_auto_fontset_alist): New function.
14952
df4e8455
JB
149532009-03-11 Juanma Barranquero <lekktu@gmail.com>
14954
14955 * makefile.w32-in: Update dependencies.
14956
0a375797
AR
149572009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14958
14959 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
14960
61313fa3
SM
149612009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14962
14963 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
14964
b55103fb
CY
149652009-03-10 Chong Yidong <cyd@stupidchicken.com>
14966
14967 * lread.c (Feval_buffer): Doc fix.
14968
dde2559c
KH
149692009-03-09 Kenichi Handa <handa@m17n.org>
14970
14971 * charset.c (Qfile_name_handler_alist): Extern it.
14972 (load_charset_map_from_file): Temporarily bind
14973 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
14974
df4e8455 149752009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 14976
47f588bb
GM
14977 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
14978 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 14979
4ddf94bd
AR
149802009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14981
4c9bdfc2
AR
14982 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
14983 (x_set_window_size): Change back to calculated method of setting
14984 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
14985 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
14986 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
14987
fe41ae9e
AR
14988 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
14989
4c9bdfc2
AR
14990 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
14991 accelerator in parens under GNUstep.
14992
825d0875
KH
149932009-03-06 Kenichi Handa <handa@m17n.org>
14994
14995 These changes are to detect incorrect composition sequence without
f3b3be74 14996 looking ahead the source. (Bug#2370)
825d0875
KH
14997
14998 * coding.h: Include "composite.h".
14999 (enum compisition_state): New enum.
15000 (struct compisition_status): New struct.
15001 (struct iso_2022_spec): New member cmp_status.
15002 (struct emacs_mule_spec): New struct.
15003 (struct coding_system): New members ctext_extended_segment_len and
15004 embedded_utf_8. Change the union member
15005 spec.emacs_mule_full_support to spec.emacs_mule.
15006
15007 * coding.c (CODING_ISO_CMP_STATUS): New macro.
15008 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 15009 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
15010 (ADD_COMPOSITION_DATA): New arg nbytes.
15011 (emacs_mule_char): New arg cmp_status.
15012 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
15013 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
15014 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
15015 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
15016 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
15017 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
15018 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
15019 (EMACS_MULE_COMPOSITION_END): New macro.
15020 (emacs_mule_finish_composition): New function.
15021 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
15022 (decode_coding_emacs_mule): Avoid long looking ahead while
15023 handling composition.
15024 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
15025 (ENCODE_COMPOSITION_RULE): New macro.
15026 (finish_composition): New function.
15027 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
15028 (DECODE_COMPOSITION_START): New implementation.
15029 (DECODE_COMPOSITION_END): Likewise.
15030 (STORE_COMPOSITION_RULE): New macro.
15031 (decode_coding_iso_2022): Avoid long looking ahead while handling
15032 composition, CTEXT extended segment, and embedded UTF-8.
15033 (setup_coding_system): For a coding of type iso-2022, reset
15034 CODING_ISO_EXTSEGMENT_LEN (coding) and
15035 CODING_ISO_EMBEDDED_UTF_8 (coding).
15036 (get_translation): Delete arguments last_block, from_nchars,
15037 to_nchars. Callers changed.
15038 (produce_chars): Don't modify charbuf. Adjusted for the change of
15039 get_translation.
98a326f7 15040 (produce_composition): Adjust for the new annotation sequence.
825d0875 15041 (handle_composition_annotation): Likewise.
98a326f7 15042 (consume_chars): Adjust for the change of get_translation.
825d0875 15043
ccbc4452
AR
150442009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
15045
4ddf94bd 15046 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 15047
988a7ddb
KH
150482009-03-05 Kenichi Handa <handa@m17n.org>
15049
15050 * font.c (font_select_entity): New function.
15051 (font_find_for_lface): Use font_select_entity to select a font.
15052
15053 * fontset.c (fontset_find_font): If a font found without
a8a3728b 15054 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
15055 font with C restriction.
15056
98a326f7 150572009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 15058
be1bce46 15059 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 15060
10ea2b82
JR
150612009-03-04 Jason Rumney <jasonr@gnu.org>
15062
2c93b248 15063 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 15064 characters that have already been read. (Bug#2569)
2c93b248 15065
10ea2b82
JR
15066 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
15067 Log an error message if check_image_size failed.
15068 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 15069 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 15070
71a0c011
EZ
150712009-03-02 Eli Zaretskii <eliz@gnu.org>
15072
15073 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
15074 when decoding process output.
15075
2f63bba8
RS
150762009-03-01 Richard M Stallman <rms@gnu.org>
15077
15078 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
15079
15080 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
15081
0a9564cb
EZ
150822009-02-28 Eli Zaretskii <eliz@gnu.org>
15083
15084 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
15085 (decode_coding_emacs_mule, decode_coding_iso_2022)
15086 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15087 (decode_coding_raw_text, decode_coding_charset)
15088 (setup_coding_system, decode_eol, decode_coding, consume_chars):
15089 Honor inhibit-eol-conversion. (Bug #2186)
15090
449148b3
JR
150912009-02-28 Jason Rumney <jasonr@gnu.org>
15092
15093 * coding.c (detect_coding_charset): If not checking latin extra,
15094 fail on characters between 0x80 and 0xA0. (Bug#2354)
15095
a4aee864
EZ
150962009-02-28 Eli Zaretskii <eliz@gnu.org>
15097
15098 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 15099 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 15100
d88bee5a
GM
151012009-02-27 Glenn Morris <rgm@gnu.org>
15102
15103 * callint.c (Finteractive): Doc fix.
15104
a808f22d
KH
151052009-02-27 Kenichi Handa <handa@m17n.org>
15106
15107 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
15108
caf8d60c
CY
151092009-02-27 Chong Yidong <cyd@stupidchicken.com>
15110
15111 * font.c (font_style_to_value): Set value for unknown symbols to
15112 100 instead of 255.
b61137ea
CY
15113 (weight_table, slant_table, width_table): Treat "unspecified" as
15114 the default value.
caf8d60c 15115
1a0de25c
JB
151162009-02-26 Juanma Barranquero <lekktu@gmail.com>
15117
15118 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
15119
8fc45744
JB
151202009-02-25 Juanma Barranquero <lekktu@gmail.com>
15121
107bd7d1
JB
15122 * lread.c (Fload): Stop checking Vloads_in_progress and signal
15123 error as soon as a recursive load is detected.
8fc45744 15124
f097e223
AR
151252009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15126
15127 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
15128 before caching.
15129
8810a12f
KH
151302009-02-24 Kenichi Handa <handa@m17n.org>
15131
15132 * fontset.c (fontset_find_font): Fix the condition for checking
15133 unavailable font.
15134
2c7d1565
GM
151352009-02-24 Glenn Morris <rgm@gnu.org>
15136
15137 * xfaces.c (Finternal_set_font_selection_order): Remove leading
15138 whitespace that confuses documentation.
15139
a20878b6
MB
151402009-02-23 Miles Bader <miles@gnu.org>
15141
15142 * process.c (Flist_system_processes, Fprocess_attributes)
15143 (syms_of_process): Rename `system-process-attributes' to
15144 `process-attributes'.
15145
b3b58c01
AS
151462009-02-22 Andreas Schwab <schwab@linux-m68k.org>
15147
1b3b981b
AS
15148 * coding.h (struct coding_system): Make safe_charsets a pointer to
15149 unsigned char.
15150 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
15151 being 255.
15152 (SAFE_CHARSET_P): Likewise.
15153 (setup_iso_safe_charsets): Properly setup safe_charsets.
15154 (Fdefine_coding_system_internal): Likewise.
15155 (setup_coding_system): Likewise. Remove unneeded casts.
15156 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
15157 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
15158 Remove unneeded casts.
1b3b981b 15159
b3b58c01
AS
15160 * insdel.c (del_range_2): Don't modify gap contents when called
15161 from decode_coding_object. (Bug#1809)
15162
0b6f228c
CY
151632009-02-21 Chong Yidong <cyd@stupidchicken.com>
15164
15165 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
15166 Qfont_object.
15167 (Ftype_of): Recognize font objects.
15168
15169 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
15170
bba3e508
SM
15171 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
15172 Definitions moved to data.c.
0b6f228c 15173
52f8870b
AR
151742009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15175
15176 * nsterm.m (x_make_frame_invisible): Unset async_visible,
15177 async_iconified. Based on a patch by Christian Lynbech
15178 <christian.lynbech@tieto.com>.
15179 (EmacsView-windowDidMiniaturize:): Unset async_visible.
15180
7087d5e9
GM
151812009-02-20 Glenn Morris <rgm@gnu.org>
15182
15183 * syntax.c (Fskip_chars_forward): Fix doc typo.
15184
41d2ceef
CY
151852009-02-20 Chong Yidong <cyd@stupidchicken.com>
15186
15187 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
15188
1a3b7ca6
CY
151892009-02-19 Chong Yidong <cyd@stupidchicken.com>
15190
15191 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
15192
73cce38d
KH
151932009-02-19 Kenichi Handa <handa@m17n.org>
15194
15195 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 15196 Don't overflow coding->carryover. (Bug#2370)
73cce38d 15197
a51092ee
DN
151982009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
15199
15200 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
15201
c423ecca
KH
152022009-02-18 Kenichi Handa <handa@m17n.org>
15203
15204 * font.c (font_check_otf_features): Fix handling of `nil' element.
15205 (Ffont_spec): Describe :lang and :otf in the docstring.
15206
4c1958f4
AS
152072009-02-16 Andreas Schwab <schwab@suse.de>
15208
15209 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
15210 string.
15211
5704f39a
KH
152122009-02-16 Kenichi Handa <handa@m17n.org>
15213
15214 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 15215 (Bug#1723)
5704f39a 15216
8f0085aa
CY
152172009-02-14 Chong Yidong <cyd@stupidchicken.com>
15218
a057d86a 15219 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
15220
15221 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
15222 (handle_line_prefix): Suppress wrapping of wrap prefixes.
15223
aff01dd9
EZ
152242009-02-14 Eli Zaretskii <eliz@gnu.org>
15225
15226 * msdos.c (MAX_SCREEN_BUF): New macro.
15227 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
15228 Encode the entire run of glyphs sharing the same face, instead of
15229 doing that one glyph at a time (fixes a bug with displaying
15230 double-size characters).
15231
ba301db3
AR
152322009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
15233
15234 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
15235
15236 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
15237 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 15238 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
15239
15240 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 15241 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 15242
51d861de
SM
152432009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15244
ac146f82 15245 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
15246 invisible areas.
15247
7fed8996
JR
152482009-02-12 Jason Rumney <jasonr@gnu.org>
15249
631ea4fb
JR
15250 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
15251 (add_font_entity_to_list): Call check_face_name even when family
15252 is unspecified.
15253
cb4a3e42
JR
15254 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15255 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 15256 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 15257
7fed8996 15258 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 15259 raster fonts. (Bug#2219)
7fed8996 15260
895416e3
KH
152612009-02-12 Kenichi Handa <handa@m17n.org>
15262
15263 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
15264 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
15265 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 15266 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
15267 (find_automatic_composition): While looking forward and backward,
15268 check static composition. Fix where to stop looking forward.
15269 (composition_adjust_point): Fix checking of static composition.
15270 (Fcomposition_get_gstring): Pay attention to
1dacf998 15271 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
15272
15273 * lisp.h (fast_looking_at): Extern it.
15274
15275 * search.c (fast_looking_at): New function.
15276
51d861de 15277 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
15278 <struct glyph>.u.cmp.to.
15279 (append_composite_glyph): Likewise.
15280
51d861de 15281 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
15282 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
15283 composition.
51d861de 15284 (append_composite_glyph): Adjust for the change of
895416e3
KH
15285 <strcut glyph>.u.cmp.to.
15286
8510724d
JB
152872009-02-11 Juanma Barranquero <lekktu@gmail.com>
15288
15289 * casetab.c (init_casetab_once):
15290 * coding.c (ALLOC_CONVERSION_WORK_AREA):
15291 * font.c (font_update_lface):
15292 * fontset.c (Fnew_fontset):
15293 * ftfont.c (ftfont_drive_otf):
15294 * xfont.c (xfont_open):
15295 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
15296
294fa707
SM
152972009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15298
15299 * fileio.c (Fwrite_region): !NILP -> CONSP.
15300
b5bfebec
AS
153012009-02-10 Andreas Schwab <schwab@suse.de>
15302
15303 * process.c (send_process): Properly relocate pointer into data
adab88bd 15304 when using encoded data. (Bug#2272)
b5bfebec 15305
cb84a2be
KH
153062009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
15307
15308 * coding.c (detect_coding_charset): Fix previous change.
15309
89e09428
JR
153102009-02-08 Jason Rumney <jasonr@gnu.org>
15311
15312 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 15313 disappeared while hourglass was displayed. (Bug #2193)
89e09428 15314
4470a277
AS
153152009-02-07 Andreas Schwab <schwab@suse.de>
15316
15317 * unexelf.c (unexec): Fix error message.
15318
3175b12a
AR
153192009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
15320
15321 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 15322 when modal window is active. (Bug #2152)
3175b12a
AR
15323 (applicationShouldTerminate:): Remove now-unneeded while loop
15324 around NSRunAlertPanel.
15325
15326 * nsmenu.m (popupSession): New file-global variable.
15327 (pop_down_menu): End the popupSession before closing dialog.
15328 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
15329 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
15330 don't query NSApp for events (just sleep instead).
15331
8434d0b8
EZ
153322009-02-07 Eli Zaretskii <eliz@gnu.org>
15333
51d861de
SM
15334 * coding.c (syms_of_coding) <translation-table-for-input>:
15335 Modify doc string to discourage use for character code unification.
8434d0b8 15336
aa82edfd
CY
153372009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15338
15339 * atimer.c (run_timers): Update pending_atimers.
15340
2d283c7c
CY
153412009-02-06 Chong Yidong <cyd@stupidchicken.com>
15342
eb306cab
CY
15343 * image.c (svg_load_image): Fix last change.
15344
2d283c7c
CY
15345 * xfns.c (Fx_create_frame): Signal an error if no font is
15346 found (Bug#2147).
15347
4d8e170e
JB
153482009-02-05 Juanma Barranquero <lekktu@gmail.com>
15349
15350 * character.c (syms_of_character) <script-representative-chars>:
15351 Fix typo in docstring.
15352
c96169a0
AR
153532009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15354
15355 * nsmenu.m (pop_down_menu): New function.
15356 (ns_popup_dialog): Call it on unwind.
15357 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
15358 call timer_check() (Bug#2154).
15359 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
15360 handling_signal is set.
15361 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
15362
31fd7c5c 15363 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
15364
15365 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
15366
15367 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
15368
51d861de
SM
15369 * keyboard.c (poll_for_input_1, handle_async_input):
15370 Set handling_signal under HAVE_NS.
c96169a0 15371
aacd8ba1
GM
153722009-02-04 Glenn Morris <rgm@gnu.org>
15373
15374 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
15375
4cb75c4b
KH
153762009-02-04 Kenichi Handa <handa@m17n.org>
15377
15378 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
15379
15380 * charset.c (Fchar_charset): New optional arg restriction.
15381
15382 * coding.h (coding_system_charset_list): Extern it.
15383
15384 * coding.c (coding_system_charset_list): New function.
15385
15386 * composite.c: Include coding.h and termhooks.h.
15387 (composition_gstring_p): Fix for the terminal case.
15388 (composition_gstring_width): Likewise.
15389 (fill_gstring_body): Likewise.
15390 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
15391 the frame.
15392 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
15393 is within a composition.
867d4bb3 15394 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
15395
15396 * term.c (encode_terminal_code): Fix handling of composition.
15397 (produce_composite_glyph): For static composition, get pixel_width
15398 from struct composition.
15399
826ba17e
AS
154002009-02-02 Andreas Schwab <schwab@suse.de>
15401
15402 * unexelf.c (unexec): Handle unaligned bss offset.
15403
8ad093db
AR
154042009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15405
15406 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
15407 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 15408
8ad093db
AR
15409 * keyboard.c (handle_interrupt): Don't call
15410 quit_throw_to_read_char() under NS.
d0a76a6e 15411
8ad093db
AR
15412 * blockinput.h: Remove NS-specific code.
15413
4d18a7a2
DN
154142009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
15415
db878925
DN
15416 * dispnew.c (window_change_signal): Don't try to get the size of a
15417 suspended tty frame.
15418 * term.c (Fresume_tty): Resize if the size has changed while the
15419 tty was suspended.
15420
4d18a7a2
DN
15421 * alloc.c (mark_stack): Properly conditionalize previous change.
15422
8984df7c
JB
154232009-01-30 Juanma Barranquero <lekktu@gmail.com>
15424
15425 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
15426 * w32term.c (w32_read_socket) [SYNC_INPUT]:
15427 Remove; this code is not used on Windows.
15428
75f4f1ac
EZ
154292009-01-30 Eli Zaretskii <eliz@gnu.org>
15430
15431 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
15432 EOLs that also has stray ^M characters.
15433
07a1e794
JB
154342009-01-30 Juanma Barranquero <lekktu@gmail.com>
15435
15436 * atimer.c (run_timers, alarm_signal_handler):
15437 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
15438 * w32inevt.c (w32_console_read_socket):
15439 * w32term.c (w32_read_socket):
15440 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
15441
a8b11cc9
CY
154422009-01-30 Chong Yidong <cyd@stupidchicken.com>
15443
15444 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
15445 Initialize it as a relative filename pattern.
15446 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
15447 (Fcall_process_region): Simplify temp file creation using
15448 temporary-file-directory.
15449
c279587b
EZ
154502009-01-29 Eli Zaretskii <eliz@gnu.org>
15451
15452 * msdos.c: Rename pending_signals to msdos_pending_signals.
15453 (sig_suspender, sigprocmask): Adjust.
15454
a8fe3242
CY
154552009-01-29 Chong Yidong <cyd@stupidchicken.com>
15456
15457 * keyboard.c (pending_signals): New var.
15458 (poll_for_input, input_available_signal, init_keyboard): Set it.
15459 (process_pending_signals): New function.
15460
15461 * lisp.h (QUIT): Check pending_signals instead of
15462 interrupt_input_pending. Use process_pending_signals.
15463
51d861de 15464 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 15465
51d861de 15466 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
15467
15468 * sysdep.c (emacs_write): Use process_pending_signals.
15469
15470 * xterm.c (XTread_socket): Update pending_signals.
15471
15472 * w32term.c (w32_read_socket): Update pending_signals.
15473
15474 * w32inevt.c (w32_console_read_socket): Update pending_signals.
15475
6570a1c4
KH
154762009-01-29 Kenichi Handa <handa@m17n.org>
15477
15478 * xftfont.c (xftfont_has_char): New function.
15479 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
15480
d72a4afa
AR
154812009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15482
15483 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
15484 under GNUstep.
15485 (ns_query_color): New declaration.
15486
15487 * nsterm.m (ns_confirm_quit): New variable.
15488 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
15489 (EmacsApp-applicationShouldTerminate:): Use it.
15490 (EmacsPrefsController): Let user set it.
15491 (ns_query_color): New function.
15492 (ns_defined_color): Use it.
15493 (ns_initialize): Drop.
15494 (ns_term_init): Add two lines from ns_initialize(), and set
15495 input_interrupt_mode to nil.
15496
15497 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 15498 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 15499
9fe78804
KH
155002009-01-28 Kenichi Handa <handa@m17n.org>
15501
15502 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
15503 (fontset_get_font_group): Remember that no font-group is specified
15504 for C.
9fe78804 15505
fa57de36
CY
155062009-01-27 Chong Yidong <cyd@stupidchicken.com>
15507
930600e9
CY
15508 * fns.c (concat): Check for string overflow (bug#1787).
15509
fa57de36
CY
15510 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
15511 Quadruple undo limits (bug#1501).
15512
7179ce7b
KH
155132009-01-27 Kenichi Handa <handa@m17n.org>
15514
15515 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
15516 directly use GT_Get_Char_index.
15517
15518 * xftfont.c (struct xftfont_info): New member `index'.
15519
15520 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 15521 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 15522
5be8fcc0
CY
155232009-01-26 Kenichi Handa <handa@m17n.org>
15524
15525 * fontset.c (fontset_find_font): Fix handling of non-cons return
15526 value of fontset_get_font_group.
15527 (fontset_font): Revert last change.
15528
19ae3e61
JR
155292009-01-26 Jason Rumney <jasonr@gnu.org>
15530
15531 * w32font.c (w32font_list_internal): Return quickly if registry is
15532 unknown. Simplify final return.
15533 (add_font_entity_to_list): Break complex logic down into more
15534 manageable chunks. Move unknown registry check to
15535 w32font_list_internal.
15536
8612b71a
AR
155372009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
15538
15539 Changes to remove Feval calls from GUI under NS.
15540
d8038940
JB
15541 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
15542 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
15543 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
15544
15545 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
15546 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
15547 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
15548 instead of NON_ASCII_KEYSTROKE_EVENT.
15549 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
15550 (EmacsApp-applicationShouldTerminate:): Query user.
15551 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
15552 instead of Feval.
15553
15554 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
15555
15556 * keyboard.c (kbd_buffer_get_event): Check for it.
15557 (keys_of_keyboard): Define lispy keys for
15558 ns-put/unput-working-text.
15559
15560 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
15561 versions.
15562 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
15563
6288ae55
CY
155642009-01-25 Chong Yidong <cyd@stupidchicken.com>
15565
15566 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 15567 setting current_buffer directly. (Bug#2044)
6288ae55 15568
289e7f8f
CY
155692009-01-24 Chong Yidong <cyd@stupidchicken.com>
15570
5ce87308 15571 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 15572 any work. (Bug#1952, bug#1990).
5ce87308 15573
64cc3cf6 15574 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 15575
b3243e6f
AR
155762009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
15577
15578 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
15579 (ns_no_defaults): New declaration.
15580 (main): Use it.
e0d2e69a 15581
d900b2af 15582 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 15583
d900b2af 15584 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 15585
d900b2af
AR
15586 * nsterm.m (ns_no_defaults): New variable.
15587 (ns_initialize): Don't read defaults when ns_no_defaults.
15588 (EmacsView-readSelectionFromPasteboard:)
15589 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 15590 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
15591 (ns_dumpglyphs_stretch): New function.
15592 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 15593 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 15594
e0d2e69a
AR
15595 * nsimage.m (setPixmapData:): Set to ignore image DPI.
15596
3ac71f5d
CY
155972009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
15598
15599 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
15600 call for Sparc64.
15601
3fe53a83
AR
156022009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15603
15604 * nsfns.m:
15605 * nsgui.h:
15606 * nsmenu.m:
15607 * nsselect.m:
15608 * nsterm.h:
15609 * nsterm.m: Remove '23' comments that indicated code added during
15610 update from emacs-20 -> emacs-23.
15611
10f87c6f 156122009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
15613
15614 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 15615 ns_alternate_modifier. (Bug#1217)
a3b53a85 15616
c7cef62d
AR
15617 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
15618 Display all shortcuts, including those w/o super modifier.
15619
575fb8bd
AR
15620 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
15621
918b848b
CY
156222009-01-22 Chong Yidong <cyd@stupidchicken.com>
15623
15624 * fileio.c (Vwrite_region_post_annotation_function)
15625 (Vwrite_region_annotation_buffers): New vars.
15626 (build_annotations_unwind): Just reset
15627 Vwrite_region_annotation_buffers.
15628 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
15629 Call write-region-post-annotation-function.
15630 (build_annotations): Add to Vwrite_region_annotation_buffers if
15631 buffer changes.
15632
a39e2539
AR
156332009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15634
15635 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
15636 Tiger.
51d861de
SM
15637 * nsfns.m (ns_do_applescript):
15638 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 15639
35ed44db
AR
156402009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
15641
15642 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
15643
cbe0b5bf
AR
156442009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15645
15646 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 15647
6049d3a0
AR
15648 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
15649
15650 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
15651 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
15652 handle Ctrl-tab. (Bug#1841)
15653 (ns_get_color): Use unsigned long long for scanned hex string value.
15654 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 15655 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 15656 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 15657 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 15658 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 15659 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 15660 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 15661
d3810c21 15662 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 15663 DPI. (Bug#1316)
d3810c21
AR
15664 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
15665 values in onTiger section.
4c7077c3 15666
e301e634
CY
156672009-01-19 Chong Yidong <cyd@stupidchicken.com>
15668
7f82490b
CY
15669 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
15670 Check return value of font_spec_from_name.
64cc3cf6 15671 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
15672
15673 * font.c (font_spec_from_name): Return Qnil if font name could not
15674 be parsed.
15675 (font_parse_name): Treat a `?' character as part of an XLFD.
15676
e301e634
CY
15677 * fns.c (Fsubstring): Doc fix.
15678
1c0db158
KH
156792009-01-19 Kenichi Handa <handa@m17n.org>
15680
51d861de 15681 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
15682 (ftfont_list): Likewise.
15683
acf20901
JB
156842009-01-18 Juanma Barranquero <lekktu@gmail.com>
15685
fff4e459
JB
15686 * dbusbind.c (Fdbus_register_signal):
15687 * process.c (conv_sockaddr_to_lisp):
15688 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
15689
acf20901
JB
15690 * callproc.c (Fgetenv_internal): Doc fix.
15691
e7abcdfb
CY
156922009-01-16 Chong Yidong <cyd@stupidchicken.com>
15693
15694 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
15695 it is not even used.
15696
b60861e6
GM
156972009-01-16 Glenn Morris <rgm@gnu.org>
15698
15699 * font.c (Ffont_variation_glyphs): Silence compiler.
15700
8db52afe
JB
157012009-01-15 Juanma Barranquero <lekktu@gmail.com>
15702
15703 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
15704 Reported by David Robinow <drobinow@gmail.com>.
15705
4cddb209
KH
157062009-01-15 Kenichi Handa <handa@m17n.org>
15707
51d861de 15708 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 15709
f247f67b
JR
157102009-01-14 Jason Rumney <jasonr@gnu.org>
15711
15712 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 15713 never a fontset. (Bug#1562)
f247f67b 15714
f56a4450
KH
157152009-01-14 Kenichi Handa <handa@m17n.org>
15716
15717 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 15718 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 15719
4e99855e
CY
157202009-01-13 Chong Yidong <cyd@stupidchicken.com>
15721
15722 * font.c (font_clear_prop): If clearing the family, clear the font
15723 width index too.
15724
fff4e459 15725 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 15726
24f01470
JB
157272009-01-12 Juanma Barranquero <lekktu@gmail.com>
15728
15729 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
15730 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
15731 functions, use sizeof.
15732
a41240a3
MR
157332009-01-12 Martin Rudalics <rudalics@gmx.at>
15734
15735 * keyboard.c (read_char): Fix case where last_nonmenu_event
15736 returned a bad value with submenus. (Bug#447)
15737
944636b8
CY
157382009-01-12 Chong Yidong <cyd@stupidchicken.com>
15739
15740 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
15741 family, clear the font width index too.
15742
0dad7c6f
JR
157432009-01-11 Jason Rumney <jasonr@gnu.org>
15744
15745 * keyboard.c (cmd_error_internal): Exit when errors occur before
15746 frame creation and not in daemon mode. (Bug#1836)
15747
7c2363af
CY
157482009-01-10 Chong Yidong <cyd@stupidchicken.com>
15749
15750 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
15751 of a display vector, backtrack.
15752 (try_window_reusing_current_matrix): Check glyph type before
15753 referencing charpos member.
15754
97b1b294
EZ
157552009-01-10 Eli Zaretskii <eliz@gnu.org>
15756
15757 Fix Bug #876:
15758
15759 * coding.c (inhibit_null_byte_detection): New variable.
15760 (detect_coding, detect_coding_system): Don't pay attention to null
15761 bytes if inhibit_null_byte_detection is non-zero.
51d861de 15762 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
15763 <inhibit-iso-escape-detection>: Doc fix.
15764
4624b6e3
JR
157652009-01-09 Jason Rumney <jasonr@gnu.org>
15766
15767 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 15768 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
15769 Only report Unicode Plane 2 fonts as unicode-sip.
15770
323b840c
CY
157712009-01-09 Chong Yidong <cyd@stupidchicken.com>
15772
51d861de
SM
15773 * xfaces.c (Fx_font_family_list): Delete function.
15774 Move compatibility version to faces.el.
323b840c 15775
51d861de 15776 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 15777
eba7400d
MR
157782009-01-09 Martin Rudalics <rudalics@gmx.at>
15779
15780 * frame.c (x_set_frame_parameters): Remember requested value for
15781 fullscreen before it's reset by the parameter handler.
15782
4b09796d
GM
157832009-01-09 Glenn Morris <rgm@gnu.org>
15784
15785 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 15786 (last_command_event): ... and update all users.
4b09796d
GM
15787 (last_input_char): For clarity, rename to...
15788 (last_input_event): ... and update all users.
15789 (last-command-char, last-input-char): Move to subr.el as aliases.
15790 * cmds.c, commands.h: Update for last_command_char rename.
15791
14ccea62
CY
157922009-01-08 Chong Yidong <cyd@stupidchicken.com>
15793
51d861de 15794 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 15795
5f004711
JR
157962009-01-08 Jason Rumney <jasonr@gnu.org>
15797
15798 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
15799 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
15800 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
15801 Don't declare.
fff4e459 15802 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
15803 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
15804
b71f6f73
KH
158052009-01-07 Kenichi Handa <handa@m17n.org>
15806
50b06221 15807 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 15808 remember the coding system used for decoding in
50b06221
KH
15809 coding_system (Bug#1039).
15810
b71f6f73 15811 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 15812 breaking the loop. (Bug#870)
b71f6f73
KH
15813 (decode_coding_utf_16, decode_coding_emacs_mule)
15814 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15815 (decode_coding_charset): Likewise.
15816
56f668f7
MR
158172009-01-05 Martin Rudalics <rudalics@gmx.at>
15818
15819 * frame.c (x_set_frame_parameters): Make sure height (width) get
15820 applied when fullwidth (fullheight) is set. (Bug#1522)
15821
5da9424d
JB
158222009-01-04 Juanma Barranquero <lekktu@gmail.com>
15823
15824 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
15825 (utc_base): Declare as ULONGLONG, not long double.
15826 (convert_time_raw): Delete.
15827 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15828 (initialize_utc_base): New function.
15829 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15830 (convert_from_time_t): Use initialize_utc_base; compute result with
15831 64-bit arithmetic.
15832 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15833
c4605e09
EZ
158342009-01-03 Eli Zaretskii <eliz@gnu.org>
15835
9acef61c 15836 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
15837 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15838 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15839 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15840 [!subprocesses]: Define.
15841 (syms_of_process) [!subprocesses]: Intern and staticpro them.
15842 (Flist_system_processes, Fsystem_process_attributes)
15843 [!subprocesses]: Call list_system_processes and
15844 system_process_attributes instead of returning Qnil.
15845
9acef61c
JB
15846 * dosfns.c (system_process_attributes, list_system_processes):
15847 New functions.
c4605e09
EZ
15848
15849 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15850
15851 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15852 Don't use the default (no-op) implementation.
15853
8b7d0a16
JR
158542009-01-03 Jason Rumney <jasonr@gnu.org>
15855
a6d46bc1
JR
15856 * keyboard.c (parse_modifiers_uncached): Wheel events are
15857 clicks (bug#687).
15858
8b7d0a16
JR
15859 * w32term.c (x_query_colors, x_query_color): New functions.
15860
15861 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15862 (svg_load_image): Cast returned pointers from dynamically loaded
15863 functions. Eliminate W32 specific code.
15864
bfe11752
DN
158652009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
15866
89e2438a
DN
15867 * nsfns.m (x_set_foreground_color, x_set_background_color)
15868 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15869 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15870 x_ prefix instead of ns_. Update references.
15871 (syms_of_nsfns): Add a FIXME comment.
15872
15873 * nsterm.m (x_set_cursor_type): New prototype.
15874 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15875
bfe11752
DN
15876 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15877 for Solaris instead of incorrectly providing Qutime and Qcutime.
15878
031da700
EZ
158792009-01-02 Eli Zaretskii <eliz@gnu.org>
15880
15881 * w32.c (process_times): Compute sum of utime and stime.
15882 (system_process_attributes): Add Qtime to the alist.
15883
15884 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15885 and add them to the alist.
15886
15887 * process.c (top level) <Qtime, Qctime>: New variables.
15888 (syms_of_process): staticpro them.
15889 (Fsystem_process_attributes): Add their documentation to the doc
15890 string.
15891
15892 * process.h: Declare Qtime and Qctime.
15893
df23bf08
JR
158942009-01-02 Jason Rumney <jasonr@gnu.org>
15895
9acef61c 15896 * image.c (Qgobject): New symbol.
df23bf08
JR
15897 (syms_of_image): Initialize it.
15898 (init_svg_functions): Load some functions from gobject library.
15899
5bbdf7aa
DN
159002009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
15901
15902 * frame.c (make_terminal_frame): Remove redundant code and useless
15903 block.
15904
63136da6
AS
159052009-01-01 Andreas Schwab <schwab@suse.de>
15906
15907 * process.c (conv_sockaddr_to_lisp): Add workaround for
15908 getsockname bug on BSD.
15909
9ef69046
CY
159102009-01-01 Chong Yidong <cyd@stupidchicken.com>
15911
d6fafbe0
CY
15912 * xfns.c (x_create_tip_frame): Set border width of the X window.
15913
51d861de 15914 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 15915
f9c34147
JR
159162009-01-01 Jason Rumney <jasonr@gnu.org>
15917
9acef61c 15918 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
15919 Don't block input, as per earlier xterm.c changes.
15920
f5497e45
AR
159212008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
15922
15923 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
15924 (ns_appkit_version_int): New function.
15925 (x-server-version): Use ns_appkit_version_int and follow 21+
15926 convention of returning 3 integers.
15927
c19cab20
KH
159282008-12-30 Kenichi Handa <handa@m17n.org>
15929
15930 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15931 (CHAR_SURROGATE_PAIR_P): New macro.
15932
15933 * font.h (struct font_driver): New member get_variation_glyphs.
15934
9acef61c 15935 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
15936 (Ffont_variation_glyphs): New function.
15937 (syms_of_font): Defsubr it.
15938
15939 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15940 ftfont_variation_glyphs.
15941 (setup_otf_gstring): New function.
15942 (ftfont_drive_otf): Use it.
15943 (ftfont_shape_by_flt): Handle variation selector.
15944 (ftfont_variation_glyphs): New function.
15945
28cd591f
MR
159462008-12-30 Martin Rudalics <rudalics@gmx.at>
15947
15948 * frame.c (Vemacs_iconified): Remove.
15949
7f714baf
JR
159502008-12-30 Jason Rumney <jasonr@gnu.org>
15951
15952 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 15953 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 15954
9d2d22ab
CY
159552008-12-30 Chong Yidong <cyd@stupidchicken.com>
15956
15957 * indent.c (Fvertical_motion): Don't advance iterator if we have
15958 reseated to the desired position.
15959
15960 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
15961 checking for pos match.
15962
545312c2
KH
159632008-12-30 Kenichi Handa <handa@m17n.org>
15964
1ede3eb6
KH
15965 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
15966 just get the low 8-bit of the code.
15967
545312c2
KH
15968 * font.c (font_intern_prop): Validate str as multibyte.
15969
bd7bbf29
DN
159702008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15971
31e0750e
DN
15972 * dispextern.h (struct face): Move lface and hash from the middle
15973 of bitfields.
15974
bd7bbf29
DN
15975 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
15976
b5672e7c
DN
159772008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15978
15979 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
15980 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
15981 instead of intervals.h.
15982
d704470f
AS
159832008-12-26 Andreas Schwab <schwab@suse.de>
15984
15985 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
15986 cons.
15987
54b33868
MR
159882008-12-26 Martin Rudalics <rudalics@gmx.at>
15989
15990 * textprop.c (Qminibuffer_prompt): New variable.
15991 (syms_of_textprop): Initialize it.
15992 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
15993 in minibuffer-prompt face. (Bug#1662)
15994
40b615d6
JR
159952008-12-25 Jason Rumney <jasonr@gnu.org>
15996
15997 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
15998
baae5c2d
JR
159992008-12-24 Jason Rumney <jasonr@gnu.org>
16000
16001 * ralloc.c (r_alloc_reset_variable): New function.
16002
16003 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 16004 record of what points where. (Bug#716)
baae5c2d 16005
a9051c88
DN
160062008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
16007
16008 * minibuf.c (read_minibuf): Follow the non-interactive case when
16009 running as a daemon, before detaching.
16010
8b146312
AS
160112008-12-22 Andreas Schwab <schwab@suse.de>
16012
16013 * buffer.c (init_buffer): Use realloc instead of xrealloc.
16014 * gtkutil.c (free_widget_value): Use xfree instead of free.
16015
56f2de10
MR
160162008-12-22 Martin Rudalics <rudalics@gmx.at>
16017
16018 * frame.c (delete_frame): New function derived from
16019 Fdelete_frame to handle Qnoelisp value for FORCE argument.
16020 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
16021 (Fdelete_frame): Call delete_frame. Remove line from doc-string
16022 saying that FORCE non-nil doesn't run `delete-frame-functions'.
16023 * frame.h: Extern delete_frame.
16024 * window.c (window_loop):
16025 * terminal.c (delete_terminal):
16026 * xterm.c (x_connection_closed):
16027 * xfns.c (Fx_hide_tip):
9acef61c 16028 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 16029
1fc200d6
JR
160302008-12-21 Jason Rumney <jasonr@gnu.org>
16031
16032 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
16033 when character maps to .notdef character.
16034
5e252df2
SM
160352008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
16036
16037 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
16038
99b72cc4
JR
160392008-12-20 Jason Rumney <jasonr@gnu.org>
16040
16041 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 16042 a graphical frame on Windows. (Bug#1325)
99b72cc4 16043
acc49a52
JD
160442008-12-20 Jan Djärv <jan.h.d@swipnet.se>
16045
16046 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
16047
6ea15123
CY
160482008-12-20 Chong Yidong <cyd@stupidchicken.com>
16049
16050 * minibuf.c (Fread_buffer): Doc fix.
16051
b2dab6c8
JR
160522008-12-20 Jason Rumney <jasonr@gnu.org>
16053
54ea0c87 16054 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 16055 server name in UNC paths. (Bug#719)
54ea0c87 16056
b2dab6c8 16057 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 16058 charbuf. (Bug#1035)
b2dab6c8 16059
6d1921be
DN
160602008-12-19 Daniel Engeler <engeler@gmail.com>
16061
16062 * sysdep.c (serial_configure): Fix typo.
16063
53934c98
DN
160642008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
16065
16066 * sysdep.c: Include alloca.h.
f4f634e8
DN
16067 (system_process_attributes): Add implementation for Solaris.
16068
16069 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 16070
06e111a6
DN
160712008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
16072
16073 Reorganize implementation of Flist_system_processes and
16074 Fsystem_process_attributes. No functional changes.
16075 * process.c: Don't #include pwd.h, grp.h and limits.h.
16076 (Flist_system_processes): Just call list_system_processes.
16077 (Fsystem_process_attributes): Just call system_process_attributes.
16078 (procfs_list_system_processes, time_from_jiffies)
16079 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
16080 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
16081
16082 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
16083 (list_system_processes): Rename from
16084 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
16085 Provide a do nothing implementation.
16086 (system_process_attributes): Rename from
16087 procfs_list_system_processes.
16088 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 16089 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
16090
16091 * w32.c (list_system_processes): Rename from
16092 w32_list_system_processes.
16093 (system_process_attributes): Rename from
16094 w32_system_process_attributes.
16095
16096 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
16097
16098 * process.h (w32_list_system_processes)
16099 (w32_system_process_attributes): Remove.
362654a6
JB
16100 (list_system_processes, system_process_attributes):
16101 New prototypes.
06e111a6 16102
6a705b23
KH
161032008-12-19 Kenichi Handa <handa@m17n.org>
16104
16105 * xfont.c (xfont_decode_coding_xlfd): New function.
16106 (xfont_encode_coding_xlfd): New function.
16107 (xfont_list_pattern): Decode XLFD by iso-8859-1.
16108 (xfont_list): Decode and encode XLFD by iso-8859-1.
16109 (xfont_match): Likewise.
16110 (xfont_list_family): Likewise.
16111 (xfont_open): Likewise.
16112
d66c0241 16113 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
16114 names are utf-8.
16115
d66c0241 16116 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
16117 names are utf-8.
16118
5a130941
JD
161192008-12-18 Jan Djärv <jan.h.d@swipnet.se>
16120
16121 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
16122 changed.
bfd20325
JD
16123 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
16124 clicked on a detached tool bar button.
5a130941 16125
fd95644b
DN
161262008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
16127
16128 * emacs.c (main): Print and error and exit when no data is read
16129 from the pipe.
16130
e6eee6ae
JR
161312008-12-17 Jason Rumney <jasonr@gnu.org>
16132
16133 * w32font.c (w32font_has_char): Always return -1.
16134
a35dd56b
KH
161352008-12-16 Kenichi Handa <handa@m17n.org>
16136
16137 * font.c (font_open_entity): Fix previous change.
16138
0e3635c2
DN
161392008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
16140
16141 * process.c: Include <limits.h>.
16142
d4835507 161432008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
16144
16145 * font.c (font_update_drivers): Fix mistake in reconstructing the
16146 driver list.
16147
161482008-12-16 Chong Yidong <cyd@stupidchicken.com>
16149
16150 * font.c (font_clear_cache): Fix format of font cache data.
16151
e2cbc401
CY
161522008-12-15 Chong Yidong <cyd@stupidchicken.com>
16153
16154 * xftfont.c (xftfont_open): Free Xft font pattern if
16155 XftFontOpenPattern fails.
16156
16157 * xterm.c (x_free_frame_resources): Remove extraneous call to
16158 free_frame_faces.
16159
b131d535
CY
161602008-12-13 Chong Yidong <cyd@stupidchicken.com>
16161
16162 * xterm.c (x_delete_display): Move xim_close_dpy call to
16163 x_delete_terminal.
16164 (x_delete_terminal): Call xim_close_dpy.
16165
e6df5336
JR
161662008-12-13 Jason Rumney <jasonr@gnu.org>
16167
16168 * w32font.c (intern_font_name): New function.
16169 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
16170 (w32font_open_internal, Fx_select_font): Decode font name.
16171 (fill_in_logfont, list_all_matching_fonts): Encode font name.
16172
16173 * w32font.h (intern_font_name): Declare new function.
16174
16175 * w32uniscribe.c (add_opentype_font_name_to_list):
16176 Use intern_font_name.
16177
20d68145
CY
161782008-12-13 Chong Yidong <cyd@stupidchicken.com>
16179
9f2554de
CY
16180 * frame.c (Fdelete_frame): Call free_font_driver_list.
16181
3d9bec9a
CY
16182 * font.c (free_font_driver_list): Implement missing function.
16183
20d68145
CY
16184 * w32term.c (w32_term_init): Don't initialize the image cache
16185 here; it will be done in init_frame_faces.
16186
16187 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
16188 (struct x_display_info): Remove unused member null_pixel.
16189 New member xim_callback_data.
20d68145
CY
16190
16191 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
16192 (xim_initialize): Save pointer to callback function data.
16193 (xim_close_dpy): Free callback function data. Call XCloseIM,
16194 reverting 2008-11-04 change by David Smith.
16195 (x_term_init): Don't initialize the image cache here; it will be
16196 done in init_frame_faces. Remove ancient "null_pixel" cruft.
16197 (x_delete_display): Free x_dnd_atoms member.
16198
96f9306b
KH
161992008-12-13 Kenichi Handa <handa@m17n.org>
16200
ef1b0ba7 16201 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 16202 Argument type changed. Handle a font-spec too.
96f9306b 16203 (font_score): Check Vface_font_rescale_alist.
6dec9044 16204 (font_open_entity): Likewise. (Bug#1547)
96f9306b 16205
ef1b0ba7 16206 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 16207
8d5b4964
CY
162082008-12-13 Chong Yidong <cyd@stupidchicken.com>
16209
16210 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
16211
e6df5336
JR
162122008-12-12 Jason Rumney <jasonr@gnu.org>
16213
bba3e508
SM
16214 * w32fns.c (x_display_info_for_name, Fx_open_connection):
16215 Set Vwindow_system_version to the real w32 major version.
e6df5336 16216
97c6058a
DN
162172008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
16218
16219 * term.c (init_tty): Move setting the terminal name before the
16220 potential user: maybe_fatal.
16221
ec4e88d7
CY
162222008-12-11 Chong Yidong <cyd@stupidchicken.com>
16223
ef1b0ba7 16224 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 16225 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 16226
b4233ec9
JR
162272008-12-11 Jason Rumney <jasonr@gnu.org>
16228
8ec71e23 16229 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 16230 SYMBOL_CHARSET. (Bug#547)
8ec71e23 16231
b4233ec9 16232 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 16233 size for surrogates. (Bug#1096, bug#872)
b4233ec9 16234
011a0143
JB
162352008-12-11 Juanma Barranquero <lekktu@gmail.com>
16236
16237 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
16238
3c309f34
JB
162392008-12-11 Juanma Barranquero <lekktu@gmail.com>
16240
16241 * process.c (Fsystem_process_attributes, syms_of_process):
16242 Fix typo in name of Ssystem_process_attributes.
16243 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
16244
fedc6ab5
JB
162452008-12-11 Juanma Barranquero <lekktu@gmail.com>
16246
16247 * syntax.c (Fmodify_syntax_entry): Doc fix.
16248
ba3de0e8
JB
162492008-12-10 Juanma Barranquero <lekktu@gmail.com>
16250
16251 * font.c (Ffont_spec): Move usage to end of docstring.
16252
174f1c74
JR
162532008-12-10 Jason Rumney <jasonr@gnu.org>
16254
16255 * w32font.c (Qcham): New symbol.
16256 (font_supported_scripts): Add cham, and comments for other new
16257 scripts in bitfield from OpenType spec.
9d32f818
JR
16258 (add_font_entity_to_list): Limit unicode-sip fonts to those that
16259 contain characters beyond the bmp.
174f1c74 16260
7b649478
KH
162612008-12-10 Kenichi Handa <handa@m17n.org>
16262
16263 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 16264 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
16265 Qunicode_sip.
16266
2133e2d1
JB
162672008-12-10 Juanma Barranquero <lekktu@gmail.com>
16268
16269 * coding.c (QCdefault_char): Rename from QCdefalut_char.
16270 (Fcoding_system_put): Use QCdefault_char.
16271 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
16272
9af886ee
CY
162732008-12-09 Chong Yidong <cyd@stupidchicken.com>
16274
74d819eb
CY
16275 * xftfont.c (syms_of_xftfont): Fix typo.
16276
4ccfa1c0 16277 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 16278
7c19d3ae
DN
162792008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
16280
16281 * emacs.c (main): Close daemon_pipe on exec.
16282
567826bb
CY
162832008-12-08 Chong Yidong <cyd@stupidchicken.com>
16284
16285 * termchar.h (struct tty): New members termcap_term_buffer and
16286 termcap_strings_buffer.
16287
16288 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 16289 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
16290 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
16291 All callers changed.
16292 (init_tty): Store termcap data and string buffers in new struct
16293 tty members termcap_term_buffer and termcap_strings_buffer.
16294 (delete_tty): Free them.
4ccfa1c0 16295 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 16296
aa96c42b
SZ
162972008-12-07 Seiji Zenitani <zenitani@mac.com>
16298
16299 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 16300 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 16301
b7e1d896
CY
163022008-12-06 Chong Yidong <cyd@stupidchicken.com>
16303
16304 * coding.c (make_conversion_work_buffer): Disable buffer
16305 modification hooks in the work buffer.
16306
b5ec91a5
EZ
163072008-12-05 Eli Zaretskii <eliz@gnu.org>
16308
16309 * process.c (procfs_system_process_attributes): If `nread' has a
16310 negative value, assign zero to it.
16311
a5d2a52b
CY
163122008-12-05 Chong Yidong <cyd@stupidchicken.com>
16313
68c5540b 16314 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 16315
7bf1bb21
KH
163162008-12-05 Kenichi Handa <handa@m17n.org>
16317
16318 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
16319 second character is a combining character.
16320
2fdc7d00
EZ
163212008-12-05 Eli Zaretskii <eliz@gnu.org>
16322
16323 * process.c (procfs_system_process_attributes): Don't use cmd,
16324 cmdsize, and q without initializing them first.
16325
bf6bfba8
JR
163262008-12-04 Jason Rumney <jasonr@gnu.org>
16327
16328 * w32font.c (w32font_draw): Initialize orig_clip before getting
16329 it, and delete it when finished.
16330
a3b1a468
DN
163312008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
16332
16333 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
16334 case when running as a daemon before detaching.
16335
8b8be8eb
JB
163362008-12-03 Juanma Barranquero <lekktu@gmail.com>
16337
805f2638 16338 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 16339
b1bde622
KH
163402008-12-03 Kenichi Handa <handa@m17n.org>
16341
e500c47d
KH
16342 * font.c (font_at): Set `multibyte' at first.
16343
ca516334
KH
16344 * coding.c (decode_coding_charset): Check type of an element of
16345 vector VALIDS.
7bf1bb21 16346 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 16347
4ccfa1c0 16348 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
16349 (font_for_char): Likewise.
16350
1e5ecd37
CY
163512008-12-03 Chong Yidong <cyd@stupidchicken.com>
16352
d5b01609 16353 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
16354 (font_update_lface): Handle fonts with corrupted size specs,
16355 i.e. non-int and non-float.
d5b01609 16356
11e3a6e4 16357 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 16358 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 16359 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 16360
ab06788b
CY
16361 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
16362
1e5ecd37 16363 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 16364 underline_minimum_offset for underline position.
1e5ecd37 16365
63c125ab
DN
163662008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
16367
16368 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
16369
16370 * character.c (c_string_width): Specify the type for LEN.
16371
3a8406e1
KH
163722008-12-03 Kenichi Handa <handa@m17n.org>
16373
4ccfa1c0 16374 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 16375 (decode_coding_utf_8): Likewise.
4ccfa1c0 16376 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 16377 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 16378
651df7d9
CY
163792008-12-02 Chong Yidong <cyd@stupidchicken.com>
16380
16381 * keyboard.c (make_lispy_position): Only use PT if the selected
16382 window is current.
16383
1f625c6c
AS
163842008-12-02 Andreas Schwab <schwab@suse.de>
16385
f7741ce9
AS
16386 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
16387
1f625c6c
AS
16388 * doprnt.c (doprnt1): Fix size of charbuf.
16389
92bc2678
CY
163902008-12-02 Chong Yidong <cyd@stupidchicken.com>
16391
16392 * keyboard.c (timer_check): Revert last change.
16393
93b9e8cc
JB
163942008-12-02 Juanma Barranquero <lekktu@gmail.com>
16395
16396 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
16397
fd7a37d5
JB
163982008-12-01 Juanma Barranquero <lekktu@gmail.com>
16399
16400 * makefile.w32-in: Update dependencies.
16401 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
16402
c115043b
AS
164032008-12-01 Andreas Schwab <schwab@suse.de>
16404
16405 * font.c (register_font_driver): Use xmalloc.
16406 (font_put_frame_data): Likewise.
16407
f5668d2a
CY
164082008-12-01 Chong Yidong <cyd@stupidchicken.com>
16409
860d96be
CY
16410 * xfaces.c (realize_x_face): Make abort condition clearer.
16411
f5668d2a
CY
16412 * gtkutil.c (update_frame_tool_bar): Initialize variable.
16413
379c17e7
CY
164142008-11-30 Chong Yidong <cyd@stupidchicken.com>
16415
16416 * keyboard.c (timer_check): After a timer runs, ensure that the
16417 selected window's buffer is current.
16418
35f36d65
JB
164192008-11-30 Juanma Barranquero <lekktu@gmail.com>
16420
f952c61c
JB
16421 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
16422 It was accidentally restored by the Unicode merge.
16423
35f36d65
JB
16424 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
16425
b23077df
JB
164262008-11-29 Juanma Barranquero <lekktu@gmail.com>
16427
16428 * w32proc.c: Include "coding.h".
16429 (Fw32_short_file_name): Encode filename passed to Windows API.
16430 (Fw32_long_file_name): Encode filename passed to Windows API and
16431 decode back the result. (Bug#1433)
16432
b8ebe9dd
KH
164332008-11-29 Kenichi Handa <handa@m17n.org>
16434
8cc53f96
KH
16435 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
16436 not before accessing it.
16437
b8ebe9dd
KH
16438 * charset.c (Fdefine_charset_internal): After calculating
16439 min_char, max_char, and fastmap, copy the charset structure again.
16440 (encode_char): Fix the previous change.
16441
59bc82c0
SZ
164422008-11-28 Seiji Zenitani <zenitani@mac.com>
16443
16444 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
16445
16446 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
16447
16448 * nsterm.m (x_set_frame_alpha): New function.
16449
32247e3d
EZ
164502008-11-27 Eli Zaretskii <eliz@gnu.org>
16451
16452 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
16453
b003e5ff
JB
164542008-11-27 Juanma Barranquero <lekktu@gmail.com>
16455
16456 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
16457 pointer to check_face_name.
16458
708550f5
KH
164592008-11-27 Kenichi Handa <handa@m17n.org>
16460
16461 * category.h (SET_CATEGORY_SET): Call set_category_set.
16462 (set_category_set): Extern it.
16463
16464 * category.c (hash_get_category_set): New function.
bba3e508 16465 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
16466 char_table_ref_and_range. Call hash_get_category_set to get a
16467 category set to store in the table.
16468
16469 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
16470 Funify_charset.
16471
2ae37cf0 16472 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
16473 (DECODE_CHAR): Check if the decoder vector is ready.
16474 (ENCODE_CHAR): Check if the encoder char-table is ready.
16475 (maybe_unify_char): Extern it.
16476
16477 * charset.c (Vchar_unified_charset_table): Delete it.
16478 (inhibit_load_charset_map): New variable.
16479 (temp_charset_work): New variable.
16480 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
16481 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
16482 New macros.
bba3e508
SM
16483 (load_charset_map): Meaning of control_flag changed.
16484 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
16485 temp_charset_work.
16486 (load_charset): New argument control_flag.
16487 (map_charset_for_dump): New function.
16488 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
16489 map_charset_for_dump.
16490 (Fdefine_charset_internal): If the charset method is MAP, load
16491 mapping tables by calling load_charset.
16492 (Funify_charset): Don't load a mapping table but directly set
16493 Vchar_unify_table.
16494 (maybe_unify_char): New function.
16495 (decode_char): Don't handle the deleted method MAP_DEFERRED.
16496 Handle the case of inhibit_load_charset_map being nonzero.
16497 (encode_char): Don't handle the deleted method MAP_DEFERRED.
16498 Handle the case of inhibit_load_charset_map being nonzero.
16499 (Fclear_charset_maps): Just free temp_charset_work.
16500 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
16501 variable.
16502
bba3e508 16503 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
16504 change of char_table_ref_and_range.
16505 (char_table_ref_and_range): Change the meaning of argument FROM
16506 and TO. Now the caller must provide initial values for *FROM
16507 and *TO.
16508
bba3e508 16509 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
16510 char_table_ref_and_range.
16511 (fontset_get_font_group): Likewise.
16512 (Ffontset_info): Likewise.
16513
bba3e508 16514 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
16515 char_table_ref_and_range. For char-table, put boundary between
16516 non-ASCII and 8-bit characters.
16517
16518 * print.c (print_object): For bool-vector, delete unnecessary
16519 check of ASCII_BYTE_P.
16520
9196133b
JR
165212008-11-26 Jason Rumney <jasonr@gnu.org>
16522
16523 * w32font.c (w32font_open_internal): Don't include external
9acef61c 16524 leading in font height. (Bug#879)
9196133b 16525
9f688acf
GM
165262008-11-26 Glenn Morris <rgm@gnu.org>
16527
16528 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
16529 redefinition with ifdef. (Bug#1383)
16530
90d19aff
AR
165312008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16532
16533 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
16534
4ccfa1c0 165352008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
16536
16537 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
16538 New EmacsView methods.
16539 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
16540 Fixes bug #1048,1357,1414.
16541
165422008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16543
16544 Fix bug #1362.
16545 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
16546 is not an indexed color.
16547 * nsterm.m (free_indexed_color): Add argument checking.
16548 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
16549
e7d5ecb3
CY
165502008-11-24 Chong Yidong <cyd@stupidchicken.com>
16551
16552 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
16553 Document confirm-after-completion value for
16554 minibuffer-completion-confirm.
16555
c285743c
JR
165562008-11-24 Jason Rumney <jasonr@gnu.org>
16557
16558 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
16559 warning.
16560
b0857706
JR
165612008-11-23 Jason Rumney <jasonr@gnu.org>
16562
16563 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
16564 restored before returning.
16565
16566 * w32font.c (check_face_name): New function.
16567 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 16568 fonts. (Bug#642)
b0857706 16569
ee50ff07
MR
165702008-11-22 Martin Rudalics <rudalics@gmx.at>
16571
16572 * buffer.c (Fswitch_to_buffer): Reword and mention new option
16573 confirm-nonexistent-file-or-buffer in doc-string.
16574
b8ff72fa
SM
165752008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16576
16577 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
16578 Fix copy/paste typo. Add checks.
16579
cee53ed4
KH
165802008-11-21 Kenichi Handa <handa@m17n.org>
16581
16582 * coding.c (detect_coding_iso_2022): Reject invalid composition
16583 sequence.
16584 (DECODE_COMPOSITION_START): If the current source is the last
16585 block, and the current composition doesn't end, regard this
16586 sequence as invalid.
16587 (decode_coding_iso_2022): Handle invalid composition sequence.
16588
f6ef1e65
MR
165892008-11-20 Martin Rudalics <rudalics@gmx.at>
16590
16591 * window.c (coordinates_in_window): Don't return
16592 ON_VERTICAL_BORDER for the rightmost position of a mode/header
16593 line when the window is not the rightmost one. (Bug#1372)
16594
e08b1705
MR
165952008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
16596
16597 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
16598
ad98e89f
EZ
165992008-11-15 Eli Zaretskii <eliz@gnu.org>
16600
16601 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
16602 and bright_bg if noninteractive is non-zero.
16603
fb098a4b
CY
166042008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16605
16606 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
16607 x_draw_glyph_string_background.
16608
16609 * w32term.c (x_draw_glyph_string): Likewise.
16610
ce952b6e
CY
166112008-11-15 Chong Yidong <cyd@stupidchicken.com>
16612
16613 * xterm.c (x_draw_glyph_string): Stop drawing the background of
16614 the next glyph string once past the overhang width.
16615
16616 * nsterm.m (ns_draw_glyph_string): Likewise.
16617
16618 * w32term.c (x_draw_glyph_string): Likewise.
16619
26ea7079
CY
166202008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
16621
16622 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
16623 double file close.
16624
1c33c906
MR
166252008-11-14 Martin Rudalics <rudalics@gmx.at>
16626
16627 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
16628 dedicated status of window before attempting to display another
16629 buffer in it.
16630
8fc29035
JB
166312008-11-14 Juanma Barranquero <lekktu@gmail.com>
16632
16633 * msdos.c (Fmsdos_long_file_names):
16634 (syms_of_msdos) <dos-unsupported-char-glyph>:
16635 * dosfns.c (Fint86): Fix typos in docstrings.
16636
55fb4286
EZ
166372008-11-14 Eli Zaretskii <eliz@gnu.org>
16638
16639 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
16640
3fda0315
KY
166412008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
16642
16643 * puresize.h (BASE_PURESIZE): Increase to 1260000.
16644
7e849c17
CY
166452008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
16646
16647 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
16648
16649 * frame.h: Negative alpha means "don't touch".
16650
16651 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
16652
16653 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
16654
b9fd67bd
DN
166552008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
16656
16657 * hftctl.c:
16658 * chpdef.h:
16659 * acldef.h: Remove files used only for systems no longer supported.
16660
16661 * Makefile.in: Fix .o alphabetical ordering.
16662 (hftctl.o): Remove dependency, file removed.
16663 (keymap.o, print.o): Depend on charset.h.
16664
d5998e03
KH
166652008-11-10 Kenichi Handa <handa@m17n.org>
16666
2ae37cf0 16667 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 16668
be70e183
CY
166692008-11-08 Chong Yidong <cyd@stupidchicken.com>
16670
16671 * dired.c (file_name_completion): If completion_ignore_case is
16672 enabled, ignore case when checking completion-regexp-list.
16673
7cf94eac
EZ
166742008-11-08 Eli Zaretskii <eliz@gnu.org>
16675
16676 * vm-limit.c (get_lim_data): Fix last change.
16677
ee107a89
KH
166782008-11-08 Kenichi Handa <handa@m17n.org>
16679
16680 * character.c (Fget_byte): New function.
16681 (syms_of_character): Defsubr Fget_byte.
16682
5fd15622
CY
166832008-11-07 Chong Yidong <cyd@stupidchicken.com>
16684
16685 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
16686 cursor position is valid after scrolling.
16687
13d62fad
JB
166882008-11-06 Juanma Barranquero <lekktu@gmail.com>
16689
16690 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
16691
a1dd2936
GM
166922008-11-06 Glenn Morris <rgm@gnu.org>
16693
16694 * xterm.c (handle_one_xevent): Don't let popup menus cause
16695 mouse-autoselect-window related window switching. (Bug#1261)
16696
860cd236
CY
166972008-11-04 David Smith <davidsmith@acm.org> (tiny change)
16698
16699 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
16700
653a3150
AS
167012008-11-04 Andreas Schwab <schwab@suse.de>
16702
16703 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
16704
870f5cac
CY
167052008-11-03 Chong Yidong <cyd@stupidchicken.com>
16706
16707 * xfns.c (Fx_wm_set_size_hint): New function.
16708
1e02f3cb
MR
167092008-11-03 Martin Rudalics <rudalics@gmx.at>
16710
16711 * textprop.c (Fprevious_single_char_property_change): Return 0
16712 when there's no change in a string. (Bug#1301)
16713
e630dfc6
MR
167142008-11-02 Martin Rudalics <rudalics@gmx.at>
16715
16716 * frame.c (do_switch_frame): New argument NORECORD passed to
16717 Fselect_window.
16718 (Fselect_frame): New argument NORECORD passed to
16719 do_switch_frame.
16720 (Fset_frame_selected_window): New argument NORECORD passed to
16721 Fselect_frame.
16722 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
16723 in call of do_switch_frame.
16724 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
16725 Handle NORECORD argument in call of Fselect_frame.
16726 * lisp.h (do_switch_frame, Fselect_frame)
16727 (Fset_frame_selected_window): Adjust declarations.
16728 * window.c (select_frame_norecord): New function.
16729 (run_window_configuration_change_hook): Use it and call
16730 Fselect_frame with NORECORD set.
16731 (Fselect_window): Pass NORECORD to Fselect_frame.
16732 (Fset_window_configuration): Handle NORECORD argument in call of
16733 do_switch_frame.
16734 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
16735 Fset_frame_selected_window.
16736 * keyboard.c (command_loop_1): Handle NORECORD in call of
16737 Fselect_frame (currently ifdefd).
16738
9020b223
GM
167392008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
16740
16741 * emacs.c (USAGE2): Untabify.
16742
793ffee8
SM
167432008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
16744
16745 * composite.c (fill_gstring_header): Fix copy/paste typo.
16746
ab6d1131
MR
167472008-10-31 Martin Rudalics <rudalics@gmx.at>
16748
16749 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
16750 (Fother_window): Rename argument and rewrite doc-string.
16751 (select_window_norecord): Fix return value. (Bug#1276)
16752
601a9cf1
JB
167532008-10-30 Juanma Barranquero <lekktu@gmail.com>
16754
16755 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
16756 new frames overriding foreground for tooltips. Based on similar patch
16757 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
16758
813b0652
CY
167592008-10-29 Chong Yidong <cyd@stupidchicken.com>
16760
16761 * emacs.c (Fdaemon_initialized): Initialize nfd.
16762
4414f58f
MR
167632008-10-29 Martin Rudalics <rudalics@gmx.at>
16764
16765 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
16766 (Fwindow_text_height): Clarify doc-strings.
16767 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
16768 doc-string of window-scroll-functions.
16769
ecdcaa09
RS
167702008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
16771
16772 * category.c (syms_of_category): Fix typo in docstring.
16773
23fe745a
JB
167742008-10-28 Juanma Barranquero <lekktu@gmail.com>
16775
16776 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
16777 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
16778 Fix typos in docstrings.
16779
ff808935
DN
167802008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
16781
16782 * emacs.c (daemon_pipe): Make non-static.
16783 (IS_DAEMON): Move definition ...
16784 * lisp.h (IS_DAEMON): ... here.
16785 (daemon_pipe): Declare.
16786 (is_daemon): Remove.
16787 * dispnew.c (init_display): Use IS_DAEMON.
16788
fc012771
SM
167892008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16790
16791 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
16792 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
16793
16794 * emacs.c (is_daemon): Remove.
16795 (main): Don't set is_daemon.
16796 (IS_DAEMON): New macro.
16797 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 16798 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
16799 parent exits.
16800 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
16801
d8bdbe6f
CY
168022008-10-27 Chong Yidong <cyd@stupidchicken.com>
16803
d1a072bf
CY
16804 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16805 over-sized glyph, draw it with the default glyph width.
16806
e2e325aa
CY
16807 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16808 glyph, draw it with the default glyph width.
16809
16810 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16811 glyph, draw it with the default glyph width.
16812
d8bdbe6f
CY
16813 * xdisp.c (try_scrolling): When computing the distance from the
16814 scroll margin to PT, try moving some distance past the window
16815 bottom before giving up.
16816
7bfac547
MR
168172008-10-27 Martin Rudalics <rudalics@gmx.at>
16818
16819 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16820 (Fset_window_buffer): Explain in doc-string that a window can be
16821 "strongly" dedicated to its buffer.
16822
4ff029f6
DN
168232008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
16824
16825 * emacs.c (daemon_name): New variable.
16826 (main): Deal with --daemon=SERVER_NAME.
16827 (Fdaemonp): Return a name if one was passed to --daemon.
16828
5790ef40
DN
168292008-10-26 Romain Francoise <romain@orebokech.com>
16830
f9bd0df9 16831 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
16832 (main): Create a pipe before forking, make the parent exit only after
16833 the child has closed its end of the pipe. Move closing the
16834 descriptors ...
16835 (Fdaemon_initialized): ... here. New function.
16836
f5385255
SM
168372008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
16838
4d632321
SM
16839 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16840 the previous unoptimized table.
16841
f5385255
SM
16842 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16843 the distinction between non-nil and non-t value of `dedicated'.
16844
6c56a0f3
CY
168452008-10-25 Chong Yidong <cyd@stupidchicken.com>
16846
16847 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 16848 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 16849
fec89261
MR
168502008-10-25 Martin Rudalics <rudalics@gmx.at>
16851
16852 * window.c (Fget_buffer_window, Fdelete_windows_on)
16853 (Freplace_buffer_in_windows): Make buffer argument optional and
16854 rename to buffer_or_name.
16855
34fcddd0
CY
168562008-10-24 Chong Yidong <cyd@stupidchicken.com>
16857
f5385255
SM
16858 * xdisp.c (handle_single_display_spec, handle_display_prop):
16859 Undo 2005-05-16 change.
34fcddd0
CY
16860 (handle_stop): Pop iterator if it's loaded with an empty string.
16861 (get_overlay_strings_1): Don't save iterator if it's loaded with
16862 an empty string (bug#1201).
16863
064766f2
KH
168642008-10-24 Kenichi Handa <handa@m17n.org>
16865
16866 * ftfont.c (ftfont_otf_features): Fix previous change.
16867 (ftfont_otf_capability): Check FeatureList.FeatureCount before
16868 calling ftfont_otf_features.
16869
f9bd0df9 168702008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
16871
16872 * font.c (font_match_p): Fix for the case that a vector of
16873 characters is in script-representative-chars.
16874
1dae9197
MA
168752008-10-24 Michael Albinus <michael.albinus@gmx.de>
16876
16877 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 16878 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
16879 (xd_read_queued_messages): Catch Qdbus_error from the macros.
16880 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 16881 macro. (Bug#1186)
1dae9197 16882
f9bd0df9 168832008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
16884
16885 * s/sol2-10.h: New file.
16886
878a4584
JB
168872008-10-23 Juanma Barranquero <lekktu@gmail.com>
16888
16889 * xdisp.c (fill_glyph_string): Fix typo in source (though the
16890 poor beast has survived 9+ years and the jump from xterm.c!).
16891
cd265ca6
MR
168922008-10-23 Martin Rudalics <rudalics@gmx.at>
16893
16894 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16895 Reword doc-string.
f5385255 16896 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 16897
472a4dc9
JB
168982008-10-23 Juanma Barranquero <lekktu@gmail.com>
16899
16900 * character.c (syms_of_character) <script-representative-chars>:
16901 <unicode-category-table>: Doc fixes.
16902
159bd5a2
NF
169032008-10-23 Noah Friedman <friedman@splode.com>
16904
16905 * coding.c (make_conversion_work_buffer): Check that
16906 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
16907 Fget_buffer_create.
16908
49f9c344
KH
169092008-10-23 Kenichi Handa <handa@m17n.org>
16910
16911 * font.c (font_add_log): Check the values of extra properties.
16912
12bb3111
MR
169132008-10-22 Martin Rudalics <rudalics@gmx.at>
16914
16915 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16916 Reword doc-string.
16917 (Fset_window_parameter): Use NILP.
16918 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 16919 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 16920
bbeb4e99
JB
169212008-10-22 Juanma Barranquero <lekktu@gmail.com>
16922
16923 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
16924
169252008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
16926
16927 * nsfns.m (ns_appkit_version): New function.
16928 (x-server-version): Use it.
16929 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16930 (x-server-vendor): Don't check_ns().
16931
16932 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16933
a9b555d3
JB
169342008-10-22 Juanma Barranquero <lekktu@gmail.com>
16935
16936 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16937 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16938
4626499f
KH
169392008-10-22 Kenichi Handa <handa@m17n.org>
16940
e3681952
KH
16941 * syntax.c (scan_words): Call word_boundary_p instead of comparing
16942 scripts.
16943
4626499f
KH
16944 * category.c (word_boundary_p): Check scripts instead of charset.
16945 Handle nil value in word-separating-categories and
16946 word-combining-categories.
16947 (syms_of_category): Fix docstrings of word-separating-categories
16948 and word-combining-categories.
16949
1560f91a
EZ
169502008-10-21 Eli Zaretskii <eliz@gnu.org>
16951
16952 * coding.c (Fencode_coding_region, Fdecode_coding_region)
16953 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
16954
f4668441
MR
169552008-10-21 Martin Rudalics <rudalics@gmx.at>
16956
16957 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
16958 Rename arg "buffer" to "buffer_or_name".
16959 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
16960 it optional.
16961 (no_switch_window): Remove since the return value is not used.
a9b555d3 16962 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
16963 Consider window as dedicated when Fwindow_dedicated_p returns a
16964 non-nil value.
16965 * lisp.h: Remove prototype for no_switch_window.
16966
fd75ddb2
JD
169672008-10-21 Jan Djärv <jan.h.d@swipnet.se>
16968
16969 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 16970 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 16971
07295713
KH
169722008-10-21 Kenichi Handa <handa@m17n.org>
16973
16974 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
16975 check Vlatin_extra_code_table.
16976
712adc82
EZ
169772008-10-20 Eli Zaretskii <eliz@gnu.org>
16978
16979 * fileio.c (Fset_file_modes): Doc fix.
16980
f549eb0b
MA
169812008-10-19 Michael Albinus <michael.albinus@gmx.de>
16982
16983 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
16984 in arrays.
16985
aac0c6e3
MR
169862008-10-19 Martin Rudalics <rudalics@gmx.at>
16987
16988 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16989 Mention kill-buffer in doc-string.
16990 (Fset_window_buffer): Reinsert tem check removed in last commit.
16991 (Fenlarge_window, Fshrink_window): Have argument names and
16992 doc-string follow Elisp manual more closely.
16993
169942008-10-18 Eli Zaretskii <eliz@gnu.org>
16995
16996 * fileio.c (Fset_file_modes): Doc fix.
16997
169982008-10-18 Martin Rudalics <rudalics@gmx.at>
16999
17000 * window.c (Fwindow_width, Fset_window_start)
17001 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
17002 (Fdelete_windows_on, Freplace_buffer_in_windows):
17003 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
17004 (Fwindow_dedicated_p): Make window argument optional.
17005 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
17006 (Fset_window_buffer): Respect any non-nil dedicated value for
17007 window. Rename "buffer" argument to "buffer_or_name".
17008
170092008-10-18 Ulrich Mueller <ulm@gentoo.org>
17010
17011 * m/sh3.h: New file, machine description for SuperH.
17012
170132008-10-17 Martin Rudalics <rudalics@gmx.at>
17014
17015 * window.c (Fsplit_window): Rename arg horflag to horizontal.
17016
170172008-10-17 Kenichi Handa <handa@m17n.org>
17018
17019 * ftfont.c (ftfont_otf_features): Fix indexing
17020 gsub_gpos->FeatureList.Feature. Check the validity of indices.
17021
170222008-10-16 Magnus Henoch <mange@freemail.hu>
17023
17024 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
17025 (Fdbus_call_method_asynchronously): Ditto.
17026 This change makes C-h f display the argument list.
17027
170282008-10-16 Chong Yidong <cyd@stupidchicken.com>
17029
17030 * fileio.c (Fexpand_file_name): Doc fix.
17031
17032 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
17033 of :foreground and :background equivalent to unspecified (20.x
17034 compatibility).
17035
170362008-10-15 Eli Zaretskii <eliz@gnu.org>
17037
17038 * buffer.c (syms_of_buffer): Doc fix.
17039
170402008-10-14 Kenichi Handa <handa@m17n.org>
17041
17042 * font.c (font_clear_prop): When clearing font width, clear the
17043 average width field too.
17044
170452008-10-12 Andreas Schwab <schwab@suse.de>
17046
17047 * ftfont.c (ftfont_shape_by_flt): Make static.
17048 * ftfont.h (ftfont_shape_by_flt): Don't declare.
17049
17050 * font.c: Don't include <m17n-flt.h>.
17051
170522008-10-10 Eli Zaretskii <eliz@gnu.org>
17053
17054 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
17055
170562008-10-09 Eli Zaretskii <eliz@gnu.org>
17057
17058 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
17059 away code.
17060
170612008-10-09 Chong Yidong <cyd@stupidchicken.com>
17062
17063 * dispnew.c (update_text_area): Avoid looping due to large glyph
17064 overhangs (bug#1070).
17065
170662008-10-09 Kenichi Handa <handa@m17n.org>
17067
17068 * fontset.c (face_for_char): If face->fontset is negative, just
17069 return ascii_face.
17070
f5385255
SM
17071 * font.c (font_delete_unmatched): Fix previous change.
17072 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
17073
170742008-10-09 Martin Rudalics <rudalics@gmx.at>
17075
17076 * frame.c (Fraise_frame): On text-only terminals select frame in
17077 order to make it visible. (Bug#1061)
17078
170792008-10-08 Chong Yidong <cyd@stupidchicken.com>
17080
17081 * fontset.c (fontset_find_font): Check frame validity.
17082
170832008-10-07 Chong Yidong <cyd@stupidchicken.com>
17084
a9b555d3 17085 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
17086 (xg_display_close): Allow Emacs to close all displays (bug#985).
17087
170882008-10-06 Andreas Schwab <schwab@suse.de>
17089
f5385255 17090 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
17091
170922008-10-06 Chong Yidong <cyd@stupidchicken.com>
17093
f5385255 17094 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 17095
a9b555d3 17096 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
17097
17098 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
17099 during initialization.
17100
171012008-10-04 Eli Zaretskii <eliz@gnu.org>
17102
17103 * xdisp.c (redisplay_internal): If frame switched, redisplay the
17104 whole thing on MSDOS frames as well as on a TTY.
17105
17106 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
17107 well as for TTY.
17108 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
17109 well as on a TTY.
17110
17111 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
17112 as well as for TTY.
17113
17114 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
17115
17116 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
17117 MSDOS frames as well.
17118
171192008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
17120
17121 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
17122 correct arguments.
b71ac3dd 17123 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
17124
171252008-10-03 Glenn Morris <rgm@gnu.org>
17126
17127 * emacs.c (USAGE1): Add --daemon.
17128
171292008-10-02 Eli Zaretskii <eliz@gnu.org>
17130
17131 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
17132 100, so it's in percents as advertised.
17133
171342008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
17135
17136 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
17137 (ns_output.current_cursor, ns_output.desired_cursor)
17138 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
17139 (FRAME_NEW_CURSOR_COLOR): Remove.
17140
17141 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 17142 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
17143 enumeration (HOLLOW_BOX_CURSOR, etc.).
17144
17145 * nsterm.m (ns_frame_rehighlight): Remove commented code.
17146 (draw_window_cursor): Simplify code.
f5385255
SM
17147 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
17148 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 17149 updates manually.
a9b555d3
JB
17150 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
17151 Use core Emacs cursor types.
aac0c6e3 17152
b8ff72fa 17153 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
17154
171552008-10-02 Martin Rudalics <rudalics@gmx.at>
17156
17157 * process.c (Faccept_process_output): Fix doc-string.
17158
171592008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
17160
17161 * gmalloc.c (__sbrk): Also define for uClibc.
17162
17163 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
17164 for uClibc.
17165
171662008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17167
17168 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
17169 styles.
17170 (nsfont_open): Reenable the cache.
17171
171722008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17173
17174 * font.c (font_matching_entity): Reflect ATTRS in font selection.
17175 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
17176
171772008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
17178
17179 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
17180 a suspended terminal.
17181
171822008-09-30 Michael Albinus <michael.albinus@gmx.de>
17183
17184 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
17185
171862008-09-30 Eli Zaretskii <eliz@gnu.org>
17187
17188 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
17189
171902008-09-30 Chong Yidong <cyd@stupidchicken.com>
17191
17192 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
17193 in a continued line coincides with a line beginning.
17194
171952008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
17196
17197 * nsfont.m (nsfont_trait_distance): Fix bug.
17198 (nsfont_list): Return a list rather than a vector (syncs with Handa
17199 changes of 2008-05-14).
17200 (nsfont_open): Improve logging.
17201
172022008-09-29 Andreas Schwab <schwab@suse.de>
17203
17204 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
17205
172062008-09-28 Martin Rudalics <rudalics@gmx.at>
17207
17208 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
17209 name as char-resolve-modifiers.
17210 Reported by: Markus Triska <markus.triska@gmx.at>
17211
172122008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
17213
17214 * dispnew.c (init_display): Return earlier when running as a daemon.
17215
172162008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17217
17218 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
17219
172202008-09-27 Eli Zaretskii <eliz@gnu.org>
17221
17222 * composite.c (Fcomposition_get_gstring)
17223 (Fcompose_region_internal, Fcompose_string_internal)
17224 (Ffind_composition_internal): Doc fix.
17225 (syms_of_composite) <compose-chars-after-function>: Doc fix.
17226 (syms_of_composite) <auto-composition-function>: Doc fix.
17227 (syms_of_composite) <composition-function-table>: Doc fix.
17228
172292008-09-25 Chong Yidong <cyd@stupidchicken.com>
17230
17231 * search.c (wordify): New argument for lax word-ends.
17232 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
17233
172342008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
17235
17236 * lisp.h (is_daemon): Declare.
17237 * dispnew.c (init_display): Do not try to initialize the terminal
17238 when running as a daemon.
17239
172402008-09-22 Chong Yidong <cyd@stupidchicken.com>
17241
17242 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
17243 x_display_pixel_height.
17244
172452008-09-22 Martin Rudalics <rudalics@gmx.at>
17246
17247 * undo.c (record_point): Don't call Fundo_boundary for first
17248 change. (Bug#731)
17249
172502008-09-22 Juanma Barranquero <lekktu@gmail.com>
17251
17252 * emacs.c (Fdaemonp): Doc fix.
17253
172542008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
17255
17256 * emacs.c (main): Place #ifdef in the proper place.
17257
172582008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
17259
17260 * emacs.c (standard_args): Add --daemon.
17261 (main): Disconnect from the terminal when --daemon is passed.
17262 (is_daemon): New variable.
17263 (Fdaemonp): New function.
17264 (syms_of_emacs): Defsubr it.
17265
172662008-09-20 Chong Yidong <cyd@stupidchicken.com>
17267
17268 * xdisp.c (get_next_display_element): Handle string display
17269 correctly when checking for the end of a box run.
17270
172712008-09-20 Glenn Morris <rgm@gnu.org>
17272
17273 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
17274 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
17275 (Frename_file): Avoid copying to trash if a rename involves
17276 a delete. (Bug#964).
17277
172782008-09-20 Eli Zaretskii <eliz@gnu.org>
17279
17280 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
17281 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
17282 frames as well as termcap frames.
17283 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
17284 get_named_tty.
17285
172862008-09-19 Eli Zaretskii <eliz@gnu.org>
17287
17288 * process.c (procfs_system_process_attributes): Fix cmdline in
17289 case /proc/PID/cmdline is empty.
17290
17291 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
17292 x_display_pixel_height.
17293
172942008-09-19 Juanma Barranquero <lekktu@gmail.com>
17295
17296 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
17297
17298 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
17299 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
17300
173012008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
17302
17303 * dispextern.h (struct it): Move line_wrap away from the middle of
17304 bitfields. Move voffset in struct iterator_stack_entry after the
17305 bitfields. Move tab_width near after another short.
17306
173072008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
17308
17309 * frame.h (struct frame): Move alpha from the middle of bitfields.
17310
17311 * window.h (struct window): Move frozen_window_start_p after the
17312 rest of the bitfields to reduce padding.
17313
173142008-09-18 Chong Yidong <cyd@stupidchicken.com>
17315
17316 * xterm.h (x_display_info): Remove `height' and `width' members.
17317
17318 * nsterm.h (ns_display_info): Remove `height' and `width' members.
17319
17320 * w32term.h (w32_display_info): Remove `height', `width',
17321 `height_in', and `width_in' members.
17322
b8ff72fa
SM
17323 * xterm.c (x_display_pixel_height, x_display_pixel_width):
17324 New functions.
aac0c6e3
MR
17325 (x_calc_absolute_position): Use them.
17326 (x_term_init): Omit removed `height' and `width' members.
17327
b8ff72fa
SM
17328 * w32term.c (x_display_pixel_height, x_display_pixel_width):
17329 New functions.
aac0c6e3
MR
17330 (w32_read_socket, x_calc_absolute_position): Use them.
17331 (w32_initialize_display_info, w32_term_init): Omit removed members
17332 of w32_display_info.
17333
b8ff72fa
SM
17334 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
17335 New functions.
17336 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 17337
b8ff72fa
SM
17338 * xterm.c (x_display_pixel_height, x_display_pixel_width):
17339 New functions.
aac0c6e3
MR
17340 (x_calc_absolute_position): Use them.
17341 (x_term_init): Omit removed `height' and `width' members.
17342
17343 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
17344 (compute_tip_xy):
17345 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
17346 * xmenu.c (menu_position_func): Use x_display_pixel_height and
17347 x_display_pixel_width.
17348
173492008-09-18 Kenichi Handa <handa@m17n.org>
17350
17351 * composite.c (fill_gstring_header): Don't check FROM and TO here.
17352 (composition_compute_stop_pos): Fix handling of static composition.
17353 (Fcomposition_get_gstring): Check FROM and TO at first.
17354
173552008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
17356
46e722a9 17357 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
17358 mixup (YAILOM).
17359
173602008-09-17 Chong Yidong <cyd@stupidchicken.com>
17361
17362 * indent.c (Fvertical_motion): Use position reported by iterator
17363 instead of PT for determining screen motion (bug#943).
17364
173652008-09-17 Romain Francoise <romain@orebokech.com>
17366
17367 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
17368
173692008-09-17 Kenichi Handa <handa@m17n.org>
17370
17371 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
17372
17373 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
17374 if necessary.
17375
173762008-09-16 Kenichi Handa <handa@m17n.org>
17377
17378 * coding.c (make_conversion_work_buffer): Avoid calling
17379 Fget_buffer_create if it is not necessary.
17380
173812008-09-15 Martin Rudalics <rudalics@gmx.at>
17382
17383 * window.c (Fselect_window): Don't update window_select_count and
17384 use_time when norecord is not nil.
17385
173862008-09-14 Kenichi Handa <handa@m17n.org>
17387
17388 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
17389 specpdl_ptr.
17390
173912008-09-12 Kenichi Handa <handa@m17n.org>
17392
17393 * indent.c (scan_for_column): Don't handle automatic composition
17394 if the current buffer is not associated with a window.
17395
17396 * composite.c (composition_reseat_it): If the current buffer is
17397 not associated with a window, ignore the automatic composition.
17398 (find_automatic_composition): Likewise.
17399
174002008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
17401
17402 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
17403 (Fgpm_mouse_stop): Use it.
17404 * termhooks.h (close_gpm): Declare.
17405 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
17406 connection if Gpm_GetEvent fails.
17407
17408 * window.c (set_window_buffer): Always preserve current-buffer.
17409
174102008-09-12 Glenn Morris <rgm@gnu.org>
17411
17412 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
17413
174142008-09-11 Glenn Morris <rgm@gnu.org>
17415
17416 * charset.c (charset-map-path): Doc fix.
17417
174182008-09-10 Kenichi Handa <handa@m17n.org>
17419
17420 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
17421
17422 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
17423 compose a grapheme cluster with the preceding base glyph.
17424
17425 * composite.c (composition_compute_stop_pos): Fix previous change.
17426 Reset cmp_it->id to -1 at first.
17427
174282008-09-10 Glenn Morris <rgm@gnu.org>
17429
17430 * Makefile.in (character.o, chartab.o): Fix config.h typo.
17431
174322008-09-09 Chong Yidong <cyd@stupidchicken.com>
17433
17434 * keyboard.c (read_key_sequence): Reapply translation maps when
17435 switching keyboards.
17436
174372008-09-09 Kenichi Handa <handa@m17n.org>
17438
17439 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
17440 characters.
17441
17442 * composite.c (FORWARD_CHAR): Fix calculation
17443 of (POSITION).pos_byte.
17444 (composition_compute_stop_pos): Limit the search of composition to
17445 at most 500 characters ahead. If we reach the limit or find a
17446 newline, set cmp_it->ch to -2 and return 0.
17447 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
17448
174492008-09-08 Kenichi Handa <handa@m17n.org>
17450
17451 * indent.c (Fvertical_motion): Be sure to set
17452 it_overshoot_expected if it.cmp_it.id is non-negative.
17453
174542008-09-07 Andreas Schwab <schwab@suse.de>
17455
17456 * callproc.c (Fcall_process): Don't hold references to string data
17457 across garbage collection. Move initialisation of new_argv down
17458 to avoid compiler bug.
17459
174602008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17461
17462 * process.c (Fsystem_process_attributes): Doc fix.
17463
174642008-09-07 Chong Yidong <cyd@stupidchicken.com>
17465
17466 * callproc.c (Fcall_process): Canonicalize current directory name.
17467
17468 * xdisp.c (move_it_to): When moving by vpos, ensure that the
17469 iterator advances to the next line if the current line ends in a
17470 continued tab.
17471
174722008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
17473
17474 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
17475 member to point to cmp_from.
17476
17477 * xdisp.c: Doc fix for references to gidx data member.
17478
174792008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17480
17481 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
17482
174832008-09-07 Kenichi Handa <handa@m17n.org>
17484
17485 * composite.c (FORWARD_CHAR): Check STOP after
17486 incrementing (POSITION).pos.
17487
174882008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17489
17490 * process.c (Fsystem_process_attributes): Doc fix.
17491
174922008-09-06 Chong Yidong <cyd@stupidchicken.com>
17493
17494 * keyboard.c (Ftop_level): Doc fix.
17495
174962008-09-06 Eli Zaretskii <eliz@gnu.org>
17497
17498 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
17499 minibuffer, don't let lower part of menu invade the echo area.
17500
17501 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
17502 "char *q" to access menu text and advance through it. Revert the
17503 change that displayed ">" instead of ASCII character 0x10.
17504
175052008-09-05 Eli Zaretskii <eliz@gnu.org>
17506
17507 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
17508 toggle boxes and radio buttons on MS-DOS as well.
17509
175102008-09-05 Kenichi Handa <handa@m17n.org>
17511
17512 * composite.c (autocmp_chars): Check lookback count.
17513 (composition_compute_stop_pos): Set cmp_it->lookback.
17514 (composition_reseat_it): Check lookback count.
17515 (struct position_record): New struct.
17516 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
17517 (find_automatic_composition): New function.
17518 (composition_adjust_point): Use find_automatic_composition.
17519
17520 * dispextern.h (struct composition_it): New member lookback.
17521
175222008-09-02 Chong Yidong <cyd@stupidchicken.com>
17523
17524 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
17525 if moving by a single line.
17526
175272008-09-02 Andreas Schwab <schwab@suse.de>
17528
17529 * xterm.c (x_delete_display): Fix merge error.
17530
17531 * fileio.c (Fexpand_file_name): Remove unused variables.
17532
175332008-09-02 Eli Zaretskii <eliz@gnu.org>
17534
17535 * fileio.c (Fexpand_file_name): Copy argument `name' into local
17536 storage on all platforms, not just on DOS_NT.
17537
175382008-09-02 Jason Rumney <jasonr@gnu.org>
17539
b8ff72fa
SM
17540 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
17541 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
17542
175432008-09-01 Chong Yidong <cyd@stupidchicken.com>
17544
17545 * xfaces.c (Finternal_set_alternative_font_family_alist)
17546 (Finternal_set_alternative_font_registry_alist): Properly copy
17547 entire alist structure.
17548
175492008-09-01 Kenichi Handa <handa@m17n.org>
17550
d66c0241 17551 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 17552 representative chars of the script is a vector.
d66c0241
JB
17553 (ftfont_list): Handle the case where the representative chars of
17554 the script is a vector.
aac0c6e3
MR
17555
17556 * character.c (syms_of_character): Docstring of
17557 script-representative-chars fixed.
17558
175592008-08-31 Eli Zaretskii <eliz@gnu.org>
17560
17561 * msdos.c (BUILD_CHAR_GLYPH): New macro.
17562 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
17563 the menu. Allocate larger buffer for `text', to account for
17564 possible ^C characters.
17565
175662008-08-31 Martin Rudalics <rudalics@gmx.at>
17567
17568 * xdisp.c (prepare_menu_bars): Don't call
17569 Vwindow_size_change_functions with arg Qt.
17570
175712008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17572
17573 * font.h (font_range):
17574 * fileio.c (report_file_error):
46e722a9
SM
17575 * composite.c (composition_update_it): Yet another int/Lisp_Object
17576 mixup (YAILOM).
aac0c6e3
MR
17577
175782008-08-30 Glenn Morris <rgm@gnu.org>
17579
17580 * data.c (Fmake_variable_frame_local): Doc fix.
17581
17582 * frame.c (Fmodify_frame_parameters): Doc fix.
17583
175842008-08-30 Eli Zaretskii <eliz@gnu.org>
17585
17586 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
17587 needed by GetTokenInformation.
17588 (w32_system_process_attributes): Check return values of all system
17589 APIs.
17590
17591 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
17592 only when the state changes.
17593 (IT_update_begin, IT_update_end): Add termscript trace.
17594
17595 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
17596 clipboard is unavailable. Set dst to NULL if it doesn't point to
17597 malloc'ed data.
17598 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
17599 passing random values to xfree.
17600
17601 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 17602 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
17603
176042008-08-29 Jason Rumney <jasonr@gnu.org>
17605
17606 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
17607
176082008-08-29 Eli Zaretskii <eliz@gnu.org>
17609
17610 * composite.c (fill_gstring_body): Avoid compiler warnings.
17611
17612 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
17613 LGLYPH_SET_CODE to avoid compiler warnings.
17614
2ae37cf0 17615 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
17616
17617 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
17618
17619 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
17620 LGLYPH_SET_CODE.
17621
176222008-08-29 Kenichi Handa <handa@m17n.org>
17623
17624 * fileio.c (report_file_error): Don't downcase the first character
17625 of errstring if it is still unibyte.
17626
176272008-08-29 Kenichi Handa <handa@m17n.org>
17628
17629 These changes are to re-implement the automatic composition so
17630 that it doesn't use text properties.
17631
17632 * Makefile.in (ftfont.o): Depend on composite.h.
17633 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
17634
17635 * character.h (Vunicode_category_table): Extern it.
17636
17637 * character.c (Vunicode_category_table): New variable.
17638 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
17639
17640 * chartab.c (optimize_sub_char_table): Perform more greedy
17641 optimization.
17642
b8ff72fa
SM
17643 * composite.h (enum composition_method):
17644 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
17645 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
17646 (Vcomposition_function_table): Extern it.
17647 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
17648 (composition_gstring_put_cache, composition_gstring_from_id)
17649 (composition_gstring_p, composition_gstring_width)
17650 (composition_compute_stop_pos, composition_reseat_it)
17651 (composition_update_it, composition_adjust_point): Extern them.
17652 (Fcomposition_get_gstring): EXFUN it.
17653
d66c0241 17654 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
17655 (Vcomposition_function_table)
17656 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
17657 (gstring_hash_table, gstring_work, gstring_work_headers):
17658 New variables.
aac0c6e3
MR
17659 (gstring_lookup_cache, composition_gstring_put_cache)
17660 (composition_gstring_from_id, composition_gstring_p)
17661 (composition_gstring_width, fill_gstring_header)
17662 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
17663 (composition_reseat_it, composition_update_it)
b8ff72fa 17664 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
17665 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
17666 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 17667 Defsubr composition_get_gstring.
aac0c6e3
MR
17668
17669 * dispextern.h (struct glyph): New union u.cmp. Delete the member
17670 cmp_id.
17671 (struct glyph_string): Delete the member gidx. New members
17672 cmp_id, cmp_from, and cmp_to.
17673 (enum it_method): Delete GET_FROM_COMPOSITION.
17674 (struct composition_it): New struct.
17675 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
17676 Delete c, len, cmp_id, cmp_len in u.comp.
17677
17678 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 17679 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 17680 (enum lglyph_indices): Likewise.
b8ff72fa 17681 (font_range): Adjust extern.
aac0c6e3
MR
17682 (font_fill_lglyph_metrics): Extern it.
17683
17684 * font.c (QCf): New variable.
17685 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17686 (font_prepare_composition): Delete this function.
17687 (font_range): Type and arguments changed.
17688 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
17689 (font_fill_lglyph_metrics): New function.
b8ff72fa 17690 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 17691 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
17692 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
17693 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
17694
17695 * fontset.h (font_for_char): Extern it.
17696
17697 * fontset.c (font_for_char): New function.
17698
17699 * ftfont.c: Include composite.h.
17700 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 17701 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
17702
17703 * indent.c: Include composite.h and dispextern.h.
17704 (check_composition): Delete this function.
17705 (scan_for_column): Handle composition by
17706 composition_compute_stop_pos, composition_reseat_it, and
17707 composition_update_it.
17708 (compute_motion): Likewise.
17709 (Fvertical_motion): Fix checking of composition.
17710
17711 * keyboard.c (adjust_point_for_property): Check composition by
17712 composition_adjust_point.
17713
b8ff72fa 17714 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
17715 struct glyph_string.
17716
b8ff72fa
SM
17717 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
17718 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
17719 struct glyph.
17720 (produce_composite_glyph): Likewise.
17721
b8ff72fa
SM
17722 * w32term.c (x_draw_composite_glyph_string_foreground):
17723 Adjust for the change of struct glyph_string.
aac0c6e3
MR
17724 (x_draw_glyph_string): Likewise.
17725
17726 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
17727 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17728
17729 * xdisp.c: Include font.h.
17730 (it_props): Delete the entry for Qauto_composed.
17731 (init_iterator): Initialize it->cmp_it.id to -1.
17732 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 17733 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
17734 (handle_auto_composed_prop): Delete it.
17735 (handle_composition_prop): Handle only static composition.
17736 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
17737 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 17738 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
17739 (pop_it): Likewise.
17740 (get_next_element): Delete next_element_from_composition.
17741 (CHAR_COMPOSED_P): New macro.
17742 (get_next_display_element): For automatic composition, get a face
17743 from the font in the glyph-string.
17744 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 17745 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
17746 (next_element_from_string): Check if the character at the current
17747 position is composed by CHAR_COMPOSED_P.
17748 (next_element_from_buffer): Likewise.
d66c0241
JB
17749 (next_element_from_composition): Adjust for the change of struct it.
17750 Update it->cmp_it.
b8ff72fa
SM
17751 (dump_glyph): Adjust for the change of struct glyph.
17752 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
17753 it and struct glyph. Don't handle automatic composition here.
17754 (fill_gstring_glyph_string): New function.
17755 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 17756 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
17757 (BUILD_GSTRING_GLYPH_STRING): New macro.
17758 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
17759 automatic composition.
b8ff72fa 17760 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 17761 struct glyph.
b8ff72fa 17762 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 17763
b8ff72fa 17764 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
17765 the change of struct glyph_string.
17766 (x_draw_glyph_string): Likewise.
17767
177682008-08-29 Glenn Morris <rgm@gnu.org>
17769
17770 * buffer.c (word-wrap): Doc fix.
17771 * xdisp.c (truncate-partial-width-windows): Doc fix.
17772 Increase default to 50.
17773
177742008-08-29 Chong Yidong <cyd@stupidchicken.com>
17775
17776 * xdisp.c (update_tool_bar_unwind): New function.
17777 (update_tool_bar): Temporarily set selected frame before building
17778 tool-bar items.
17779
177802008-08-28 Michael Albinus <michael.albinus@gmx.de>
17781
17782 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
17783 snprintf, respectively.
17784 (xd_append_arg): Convert strings with Fstring_make_unibyte.
17785
177862008-08-28 Chong Yidong <cyd@stupidchicken.com>
17787
17788 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
17789 LDFLAGS to GNUstep CC invocation.
17790
177912008-08-27 Chong Yidong <cyd@stupidchicken.com>
17792
17793 * indent.c (Fvertical_motion): Revert last change. Handle the
17794 general case where we are moving forward, and PT spans multiple
17795 screen lines.
17796
17797 * eval.c (find_handler_clause): Temporarily increase
17798 max-lisp-eval-depth while printing the backtrace buffer, to
17799 guarantee that help-mode code can run.
17800
178012008-08-27 Eli Zaretskii <eliz@gnu.org>
17802
17803 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
17804 colors under -rv.
17805 (IT_set_frame_parameters): Don't swap foreground and background
17806 colors if `(reverse . t)' is present in the frame properties.
17807 (internal_terminal_init): Call init_frame_faces only for the
17808 initial frame.
17809
178102008-08-27 Andreas Schwab <schwab@suse.de>
17811
17812 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17813
178142008-08-27 Andreas Schwab <schwab@suse.de>
17815
17816 * search.c (search_buffer): Set char_base to zero only at the end.
17817
178182008-08-27 Kenichi Handa <handa@m17n.org>
17819
b8ff72fa 17820 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
17821
178222008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
17823
17824 * xterm.c (x_term_init): Temporarily hide the partially
17825 initialized terminal while calling vendor-specific-keysyms.
17826
178272008-08-26 Eli Zaretskii <eliz@gnu.org>
17828
17829 * msdos.c (internal_terminal_init): Most initializations done only
17830 once, especially initial_screen_colors[] and termscript open.
17831
178322008-08-26 Chong Yidong <cyd@stupidchicken.com>
17833
17834 * eval.c (Fcondition_case): Doc fix.
17835
17836 * widgetprv.h (EmacsFramePart): Change font member to the new font
17837 struct.
17838
17839 * widget.c: Include character.h and font.h for XSETFONT.
17840 (setup_frame_gcs): Compute X font id from font struct, just once.
17841
178422008-08-26 Eli Zaretskii <eliz@gnu.org>
17843
17844 * term.c (get_named_tty): Fix last change.
17845
178462008-08-26 Chong Yidong <cyd@stupidchicken.com>
17847
17848 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 17849 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
17850
178512008-08-25 Eli Zaretskii <eliz@gnu.org>
17852
17853 * frame.c (do_switch_frame): Mark previously displayed frame as
17854 obscured for FRAME_MSDOS_P frames as well.
17855
178562008-08-24 Eli Zaretskii <eliz@gnu.org>
17857
17858 * frame.c (make_terminal_frame): Initialize f->terminal,
17859 f->terminal->reference_count, and scroll bars on MS-DOS as well.
17860 Set the top frame to newly created frame.
17861 (Fmake_terminal_frame): Reuse the_only_display_info.
17862
17863 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17864 estimating available memory.
17865
b97439ce 178662008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
17867
17868 * nsterm.m (ns_draw_window_cursor): Don't call
17869 NSDisableScreenUpdates and NSEnableScreenUpdates on
17870 non-NS_IMPL_COCOA systems.
17871
178722008-08-23 Andreas Schwab <schwab@suse.de>
17873
17874 * process.c (procfs_system_process_attributes): Fix use of
17875 uninitialized variables.
17876
178772008-08-23 Eli Zaretskii <eliz@gnu.org>
17878
17879 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17880
17881 * dispnew.c (init_display): Remove MS-DOS specific conditions for
17882 calling tty-set-up-initial-frame-faces.
17883
b8ff72fa
SM
17884 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17885 Allow MSDOS frames along with X frames.
aac0c6e3
MR
17886
17887 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17888 addition to output_termcap.
17889
17890 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17891
17892 * termchar.h (FRAME_TTY): Support output_msdos_raw.
17893 (struct tty_display_info) [MSDOS]: Add fields related to mouse
17894 highlight.
17895
17896 * process.c [!subprocesses]: Define QCname.
17897 (syms_of_process): Intern and staticpro it.
17898
17899 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
17900 Adjust for changes in encoding/decoding routines.
17901 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
17902 encode_coding and decode_coding.
17903
b8ff72fa 17904 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
17905
17906 * dosfns.c: Include frame.h before termhooks.h.
17907 (dos_cleanup): Use CURTTY ()->termscript instead of a global
17908 variable termscript.
17909
17910 * s/msdos.h (USER_FULL_NAME): Define.
17911 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
17912
17913 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
17914 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
17915 pw->pw_gecos.
17916
17917 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
17918 SELECTED_FRAME as additional (1st) argument.
17919 (tty_read_avail_input): Handle output_msdos_raw in
17920 addition to output_termcap.
17921
17922 * msdos.c: Include frame.h before termhooks.h.
17923 (mouse_on, mouse_off, mouse_moveto, mouse_init)
17924 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17925 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17926 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17927 (IT_set_terminal_modes, IT_reset_terminal_modes)
17928 (IT_set_frame_parameters): Use tty->termscript instead of a global
17929 variable termscript.
17930 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17931 global variable terminal_coding. Don't refer to
17932 Vnonascii_translation_table.
17933 (internal_terminal_init): Set Vwindow_system in current_kboard.
17934 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
17935 Announce date and time of session start, if termscript is open.
17936 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
17937 term.c:init_tty). Open termscript only of not already open.
17938 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
17939 here instead of dos_ttraw. Don't initialize display if this is an
17940 initial tty. Don't set FRAME_FONT.
17941 (Vwindow_system_version): Bump to 23.
17942 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
17943 is available, set up mouse_position_hook.
17944 (dos_ttraw, IT_set_terminal_modes): If called with initial
17945 terminal, do nothing.
17946 (IT_set_frame_parameters): Handle the Qtty_type frame
17947 parameter by calling internal_terminal_init.
17948 (dos_set_window_size, show_mouse_face)
17949 (clear_mouse_face, IT_note_mode_line_highlight)
17950 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
17951 (dos_rawgetc): Use tty_display_info instead of x_display_info.
17952 (initialize_msdos_display): New function.
17953 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
17954 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
17955 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
17956 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 17957 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
17958 (request_sigio, unrequest_sigio): Don't define, now defined on
17959 sysdep.c.
17960 (IT_write_glyphs): Rewrite to use encode_terminal_code.
17961
17962 * term.c [MSDOS]: Include msdos.h.
17963 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
17964 conditional to DOS_NT. Allow only one call to this function in a
17965 session. Don't allocate a new struct tty_display_info; instead,
17966 reuse the_only_display_info. Call get_tty_size to get screen
17967 dimensions. Call init_baud_rate to set bad_rate.
17968 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
17969 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 17970 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
17971 (get_tty_terminal, get_named_tty, Ftty_type)
17972 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
17973 output_termcap.
b8ff72fa
SM
17974 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
17975 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 17976 only when subprocesses are supported.
aac0c6e3
MR
17977
17978 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
17979 f->output_data.x.
17980 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
17981 terminal devices.
17982
5582fbc7 17983 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
17984 x_output.
17985 (FRAME_FONT): Use output_data.tty.
17986 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
17987 (struct x_display_info): Rename from display_info. Update all users in
17988 msdos.c.
aac0c6e3 17989 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 17990 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
17991 (dos_ttraw): Update prototype.
17992
17993 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
17994 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
17995
179962008-08-23 Jason Rumney <jasonr@gnu.org>
17997
17998 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
17999 (fn_TIFFSetDirectory): New library function used.
18000 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
18001 (tiff_load): Use :index to select among multiple images. Set count
18002 property when multiple images exist.
18003 (gif_format): Use :index, not :image.
18004
180052008-08-23 Chong Yidong <cyd@stupidchicken.com>
18006
18007 * xdisp.c (try_scrolling): Check INT_MAX instead of
18008 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
18009 to obtain INT_MAX.
18010
180112008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
18012
18013 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
18014
180152008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
18016
18017 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
18018 GNUstep library location.
18019
180202008-08-21 Chong Yidong <cyd@stupidchicken.com>
18021
18022 * xfaces.c (x_update_menu_appearance): Check validity of menu font
18023 before using it.
18024
18025 * puresize.h (BASE_PURESIZE): Increase to 1250000.
18026
180272008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18028
18029 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
18030 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
18031 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
18032 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
18033 (EmacsApp-cursor_blink_handler): Remove declaration.
18034 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
18035 match 01 Feb 2008 changes in xterm.c.
18036 (ns_read_socket): Add cast to avoid warning.
18037 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
18038 GNUstep.
18039
180402008-08-20 Chong Yidong <cyd@stupidchicken.com>
18041
18042 * xselect.c (x_get_foreign_selection): Return nil if desired
18043 selection could not be obtained, instead of signalling an error.
18044
180452008-08-20 David Reitter <david.reitter@gmail.com>
18046
18047 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
18048 * nsterm.m: Remove ns-specific code for cursor blinking.
18049 (ns_draw_window_cursor): Clear cursor properly rather than
18050 redrawing the area. Respect width of bar cursors.
18051 These changes enable the use of generic blink-cursor-mode and
18052 generic cursor types in NS and support smooth cursor movements (do
18053 not blink off after command).
18054 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
18055 Nextstep, too.
18056
180572008-08-19 Kenichi Handa <handa@m17n.org>
18058
18059 * font.c (Vfont_log_deferred): New variable.
18060 (font_add_log): Check Vfont_log_deferred.
18061 (font_deferred_log): New function.
18062
18063 * font.h (font_deferred_log): Extern it.
18064
18065 * fontset.c (reorder_font_vector): Use encoding charset of fonts
18066 for sorting.
18067 (face_for_char): Use deferred log.
18068
180692008-08-18 Kenichi Handa <handa@m17n.org>
18070
18071 * fontset.c (face_for_char): Add font log.
18072
18073 * font.c (font_add_log): Add the font properties :script, :lang,
18074 and :otf in the log.
18075
180762008-08-17 Chong Yidong <cyd@stupidchicken.com>
18077
18078 * xdisp.c: Remove dead code.
18079 (handle_invisible_prop, next_overlay_string): Defer call to
18080 setup_for_ellipsis.
18081 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
18082
180832008-08-15 Chong Yidong <cyd@stupidchicken.com>
18084
18085 * xfaces.c (lookup_derived_face): Properly handle possible zero
18086 return value of get_lface_attributes.
18087 (merge_faces): Don't tell lookup_derived_face to signal an error
18088 if face is not found.
18089
18090 * dired.c (Fdirectory_files): Doc fix.
18091
18092 * process.c (make_process): Initialize kill_without_query struct
18093 member.
18094
180952008-08-15 Eli Zaretskii <eliz@gnu.org>
18096
18097 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
18098 Alternative calculation of totphys for Visual Studio 6.
18099
18100 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
18101
18102 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
18103 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
18104 All users changed.
18105 (stat): Only root directory passed to GetDriveType. Allow RAM
18106 disk as well as local fixed disk when w32-get-true-file-attributes
18107 is set to `local'.
18108 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
18109 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
18110 (w32_cached_id, w32_add_to_cache): New functions.
18111 (get_name_and_id): Look account names in the cache before calling
18112 lookup_account_sid.
18113 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
18114 New initialization flags.
18115 (globals_of_w32): Initialize them to zero.
18116 (w32_system_process_attributes): Use w32_cached_id and
18117 w32_add_to_cache.
18118
181192008-08-14 Lawrence Mitchell <wence@gmx.li>
18120
18121 * lread.c (Fread_char, Fread_char_exclusive): If no character
18122 event is read before timeout is reached, return nil, rather than
18123 converting to a number.
18124
181252008-08-14 Chong Yidong <cyd@stupidchicken.com>
18126
18127 * fns.c (use_dialog_box): Doc fix.
18128
18129 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
18130 on OS X.
18131
181322008-08-13 Chong Yidong <cyd@stupidchicken.com>
18133
18134 * frame.c (Qns_parse_geometry): New var.
18135 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
18136
181372008-08-11 Chong Yidong <cyd@stupidchicken.com>
18138
18139 * xdisp.c (x_produce_glyphs): Handle the case when font has no
18140 space character in calculating tabs.
18141
181422008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
18143
18144 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
18145
181462008-08-10 Glenn Morris <rgm@gnu.org>
18147
18148 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
18149 silence gcc "limited range of data type" warnings in some
18150 make_fixnum_or_float calls.
18151
181522008-08-09 Eli Zaretskii <eliz@gnu.org>
18153
18154 * w32.c (w32_system_process_attributes): If the process does not
18155 exist, return nil.
18156
18157 * w32.c: Include thelp32.h, psapi.h and coding.h.
18158 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
18159 declarations.
18160 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
18161 (Process32Next_Proc): New typedefs.
18162 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
18163 (g_b_init_process32_next, g_b_init_open_thread_token)
18164 (g_b_init_impersonate_self, g_b_init_revert_to_self)
18165 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
18166 (g_b_init_get_process_working_set_size)
18167 (g_b_init_global_memory_status_ex): New static variables.
18168 (globals_of_w32): Initialize them.
18169 (create_toolhelp32_snapshot, process32_first, process32_next)
18170 (open_thread_token, impersonate_self, revert_to_self)
18171 (get_process_memory_info, get_process_working_set_size)
18172 (global_memory_status, global_memory_status_ex): New wrapper
18173 functions.
18174 (w32_list_system_processes, w32_system_process_attributes)
18175 (enable_privilege, restore_privilege, ltime, process_times):
18176 New functions.
18177 (convert_time_raw): New function.
18178 (convert_time): Remove conversion of FILETIME into time in 100
18179 nsec units, call convert_time_raw instead.
18180
18181 * process.h (w32_list_system_processes, w32_system_process_attributes):
18182 Add prototypes.
18183 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
18184 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
18185 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
18186 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
18187
18188 * process.c (Fsystem_process_attributes): Doc fix.
18189
181902008-08-08 Chong Yidong <cyd@stupidchicken.com>
18191
18192 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
18193 a continued multi-char glyph; if so, advance to the actual glyph.
18194
181952008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
18196
18197 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
18198
18199 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
18200 (.m.o): Use it.
18201 * config.in: Regenerate.
18202
182032008-08-07 Chong Yidong <cyd@stupidchicken.com>
18204
18205 * xdisp.c (redisplay_window): Revert last change.
18206 (try_window): Check bottom scroll margin too.
18207
182082008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
18209
18210 * config.in: Regenerate.
18211
18212 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
18213 -list-load-path-shadows'.
18214 (nsgui.h): Reduce number of things depending on it.
18215
182162008-08-06 Chong Yidong <cyd@stupidchicken.com>
18217
18218 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
18219 instead of window-end which does the wrong thing at eob.
18220 (try_cursor_movement): Minor optimization.
18221 (redisplay_window): If scroll margin is defined, don't assume
18222 window doesn't need scrolling.
18223
182242008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
18225
18226 * config.in: Regenerate.
18227
18228 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
18229 (mostlyclean): Don't delete *.d under NS.
18230
18231 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
18232
182332008-08-06 Kenichi Handa <handa@m17n.org>
18234
18235 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
18236
182372008-08-06 Andreas Schwab <schwab@suse.de>
18238
18239 * config.in: Regenerate.
18240
182412008-08-05 Chong Yidong <cyd@stupidchicken.com>
18242
18243 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
18244 forcing a window start.
18245
18246 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
18247 (auto_save_1): Update modtime when auto-save-list-file-name is on.
18248
182492008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18250
18251 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
18252 argument.
18253
182542008-08-05 Juanma Barranquero <lekktu@gmail.com>
18255
18256 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
18257 <scroll-down-aggressively, before-change-functions>:
18258 <after-change-functions>: Reflow docstrings.
18259
182602008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 18261 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
18262
18263 Dock menu customization, based on a patch by Ken Raeburn, plus some
18264 other fixes.
18265 * nsmenu.m (dockMenu): New variable.
18266 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
18267
18268 * nsterm.h (dockMenu): Declare.
18269
18270 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
18271 (ns_term_init): Initialize dockMenu.
18272 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
18273 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
18274 left.
18275
18276 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
18277
182782008-08-04 Chong Yidong <cyd@stupidchicken.com>
18279
18280 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
18281
18282 * config.in: Regenerate.
18283
182842008-08-04 Seiji Zenitani <zenitani@mac.com>
18285
18286 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
18287
182882008-08-04 Chong Yidong <cyd@stupidchicken.com>
18289
18290 * nsterm.h (find_and_call_menu_selection): Fix prototype.
18291
182922008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18293
18294 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
18295
18296 * keyboard.h: Comment an #endif.
18297
18298 * lisp.h (have_menus_p): Adjust comment.
18299
18300 * menu.c (find_and_return_menu_selection): Fix comparison with
18301 client_data.
18302
18303 * nsmenu.m (popup_activated_flag): New variable.
18304 (popup_activated): New function.
18305 (menu-or-popup-active-p): New exported lisp definition.
18306 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
18307 when popup done.
18308 (ns_popup_dialog): Set popup_activated_flag.
18309
18310 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
18311 version for GNUstep (handled by conditional typedef in nsterm.m).
18312 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
18313 in rgb.txt).
18314
18315 * process.c (init_process): Use DARWIN_OS, not DARWIN.
18316
18317 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
18318
18319 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
18320
18321 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
18322 shortcircuit if popup_activated like GTK and X toolkit.
18323
18324 * m/inter386.h: Change DARWIN to DARWIN_OS.
18325
18326 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
18327 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
18328 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
18329 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
18330
183312008-08-03 Chong Yidong <cyd@stupidchicken.com>
18332
18333 * nsterm.m (windowDidResize): Remove stopModal call.
18334
183352008-08-03 Andreas Schwab <schwab@suse.de>
18336
18337 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
18338 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
18339
183402008-08-02 Chong Yidong <cyd@stupidchicken.com>
18341
18342 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
18343 Don't use uninitialized pointer variable when using getrlimit.
18344
183452008-08-02 Jason Rumney <jasonr@gnu.org>
18346
18347 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
18348
183492008-08-02 Eli Zaretskii <eliz@gnu.org>
18350
18351 * alloc.c (NSTATICS): Bump to 0x640.
18352
18353 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
18354
18355 * lisp.h: Add prototype for directory_files_internal.
18356
18357 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
18358 New functions.
18359 (syms_of_process): Defsubr them. Add initializations for various
18360 Q* symbols used in procfs_system_process_attributes.
18361 (procfs_list_system_processes, procfs_system_process_attributes)
18362 [HAVE_PROCFS]: New functions.
18363 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
18364 (procfs_get_total_memory): New functions.
18365
183662008-08-01 Juanma Barranquero <lekktu@gmail.com>
18367
18368 * xfaces.c (Fx_load_color_file): Fix previous change;
18369 it is #ifdef WINDOWSNT, not WINDOWS_NT.
18370
183712008-08-01 Michael Albinus <michael.albinus@gmx.de>
18372
18373 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
18374
183752008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18376
18377 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
18378
183792008-08-01 Chong Yidong <cyd@stupidchicken.com>
18380
18381 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
18382
18383 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
18384 define NSApplicationDelegateReplySuccess.
18385 (EmacsView -converstationIdentifier): Use long instead of
18386 NSInteger for GNUstep, since it doesn't have NSInteger.
18387
18388 * xmenu.c: Revert last change.
18389
18390 * keyboard.h: Fix last change.
18391
183922008-08-01 Juanma Barranquero <lekktu@gmail.com>
18393
18394 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
18395 on Windows.
18396
183972008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18398
18399 Warning clearing and clean-up in NS port.
18400 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
18401 Add prototypes.
18402 * nsgui.h (FACE_DEFAULT): Remove, unused.
18403 (XGCValues): Change colors to unsigned long.
18404 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
18405 nsterm.m.
18406 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
18407 (ns_list_fonts): Remove, unused.
18408 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
18409 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
18410 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
18411 (nsfont_draw): Compare face colors to 0, not nil.
18412 * nsmenu.m (struct widget_value): Drop unneeded declaration.
18413 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
18414 (-addSubmenuWithTitle:): Use NSMenuItem class.
18415 (ns_popup_menu): Use NO, not NULL, for enabled setting.
18416 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
18417 (ns_clip_to_row): Make gc arg a BOOL.
18418 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
18419 ns_clip_to_row() call.
18420 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
18421 used). Cast FRAME_FONT assignments.
18422 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
18423 (ns_string_to_lispmod): Change arg to const char.
18424 (ns_term_init): Use NSMenuItem class.
18425 (EmacsApp -openFile:): Move to different section of file.
18426 (EmacsApp -application:openFiles:): Don't return a value, call
18427 -replyToOpenOrPrint:.
18428 (EmacsView -keyDown:): Fix up cast.
18429 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
18430 (EmacsView -menuDown:): Cast tag in call to
18431 find_and_call_menu_selection().
18432 (ns_list_fonts): Remove, unused.
18433 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
18434 (ns_fontname_to_xlfd): Make static.
18435 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
18436 Remove prototypes (now in keyboard.h).
18437 (next_menubar_widget_id): Remove, unused.
18438 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
18439 Remove prototypes (now in keyboard.h).
18440 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
18441
184422008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
18443
18444 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
18445 (floatfns.o): Depend on syssignal.h.
18446 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
18447
18448 * systty.h: Fix previous change that removed BSD_TERMIOS.
18449 Add comments to #ifdefs.
18450
184512008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18452
18453 * w32fns.c (w32-load-color-file): Remove.
18454 (x-open-connection): Use renamed Fx_load_color_file.
18455 * xfaces.c (x-load-color-file): Add.
18456 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
18457 Emacs.clr.
18458 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
18459
184602008-07-31 Michael Albinus <michael.albinus@gmx.de>
18461
18462 * dbusbind.c (Fdbus_call_method_asynchronously)
18463 (Fdbus_method_error_internal): New defuns.
18464 (xd_read_message): Handle also reply messages.
18465 (Vdbus_registered_functions_table): Extend docstring.
18466
184672008-07-31 Juanma Barranquero <lekktu@gmail.com>
18468
18469 * keyboard.c (gobble_input): Fix previous change.
18470
184712008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18472
18473 * bitmaps/README:
18474 * xfns.c:
18475 * termcap.c:
18476 * term.c:
18477 * syswait.h:
18478 * systty.h:
18479 * systime.h:
18480 * syssignal.h:
18481 * sysdep.c:
18482 * process.h:
18483 * process.c:
18484 * print.c:
18485 * ndir.h:
18486 * lread.c:
18487 * keyboard.c:
18488 * getpagesize.h:
18489 * floatfns.c:
18490 * fileio.c:
18491 * emacs.c:
18492 * doc.c:
18493 * dispnew.c:
18494 * dired.c:
18495 * data.c:
18496 * callproc.c:
18497 * buffer.c:
18498 * README:
18499 * Makefile.in:
18500 * s/template.h:
18501 * s/msdos.h:
18502 * m/vax.h: Remove VMS support.
18503 * s/vms.h:
18504 * vlimit.h:
18505 * uaf.h:
18506 * temacs.opt:
18507 * param.h:
18508 * ioctl.h: Remove file.
18509
185102008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18511
18512 * s/ms-w32.h (MULTI_KBOARD): Remove.
18513 * xterm.c:
18514 * xselect.c:
18515 * xfns.c:
18516 * window.c:
18517 * w32term.c:
18518 * w32fns.c:
18519 * terminal.c:
18520 * termhooks.h:
18521 * term.c:
18522 * sysdep.c:
18523 * keyboard.h:
18524 * keyboard.c:
18525 * frame.h:
18526 * frame.c:
18527 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
18528 * config.in: Regenerate.
18529
185302008-07-30 Jason Rumney <jasonr@gnu.org>
18531
18532 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
18533
18534 * w32font.c (w32font_encode_char): Leave as unicode if in range.
18535 (w32font_open_internal): Get unicode version of textmetrics.
18536 Don't enable or disable glyph indices here.
18537 (w32font_open): Disable use of glyph indices.
18538
18539 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
18540
185412008-07-30 Chong Yidong <cyd@stupidchicken.com>
18542
18543 * minibuf.c (Vread_buffer_function): Doc fix.
18544
185452008-07-30 John Paul Wallington <jpw@pobox.com>
18546
18547 * minibuf.c (read_buffer_completion_ignore_case): New var.
18548 (Fread_buffer): Use it.
18549
185502008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
18551
18552 * systty.h (sensemode): Remove empty #if. Remove reference to
18553 BSD_TERMIOS, unused.
18554
18555 * sysdep.c: Remove reference to DGUX.
18556 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
18557
18558 * config.in: Regenerate.
18559
185602008-07-30 Jason Rumney <jasonr@gnu.org>
18561
18562 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
18563
185642008-07-29 Jason Rumney <jasonr@gnu.org>
18565
18566 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
18567 is populated.
18568 (uniscribe_encode_char): Always use uniscribe.
18569 Avoid using context if cache is populated.
18570
185712008-07-29 Jan Djärv <jan.h.d@swipnet.se>
18572
18573 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
18574 open menu.
18575
18576 * gtkutil.c (menu_nav_ended): Remove.
18577 (create_menus): Remove signal connect for menu_nav_ended.
18578
185792008-07-28 Chong Yidong <cyd@stupidchicken.com>
18580
18581 * xdisp.c (redisplay_window): Check return value of
18582 compute_window_start_on_continuation_line before forcing a window
18583 start.
18584
185852008-07-28 Jason Rumney <jasonr@gnu.org>
18586
18587 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
18588
18589 * w32term.c (w32_enable_unicode_output, cleartype_active):
18590 Remove obsolete display options.
18591 (x_draw_glyph_string_background): Don't use old cleartype_active
18592 workaround.
18593 (w32_initialize): Remove cleartype_active initialization.
18594 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
18595
185962008-07-28 Andreas Schwab <schwab@suse.de>
18597
18598 * lisp.h (init_weak_hash_tables, syms_of_font)
18599 (xd_read_queued_messages, syms_of_dbusbind): Declare.
18600 (remove_hash_entry): Don't declare.
18601 * eval.c (maybe_call_debugger): Make static and move before use.
18602 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
18603 * xdisp.c: Include "gtkutil.h" if USE_GTK.
18604 * xterm.h (x_set_frame_alpha): Declare.
18605
186062008-07-28 Jan Djärv <jan.h.d@swipnet.se>
18607
18608 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
18609 (create_menus): Connect selection-done to menu_nav_ended.
18610
186112008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18612
18613 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
18614 Set Vx_resource_name to a fallback. Replace read of 'buffered'
18615 parameter with read of 'alpha' one.
18616 (Qns_frame_parameter): Remove.
5582fbc7 18617 * nsselect.m (selection-coding-system)
aac0c6e3
MR
18618 (next-selection-coding-system, Vselection_coding_system)
18619 (Vnext_selection_coding_system): Drop.
18620
186212008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18622
18623 * nsfns.m (do-applescript, do_applescript): Rename to
18624 ns-do-applescript, ns_do_applescript, and move within file.
18625
186262008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
18627
18628 Remove support for Mac Carbon.
18629 * mactoolbox.c:
18630 * macterm.h:
18631 * macterm.c:
18632 * macselect.c:
18633 * macmenu.c:
18634 * macgui.h:
18635 * macfns.c:
18636 * mac.c: Remove file.
18637 * s/darwin.h:
18638 * m/intel386.h:
18639 * xfaces.c:
18640 * xdisp.c:
18641 * window.c:
18642 * tparam.c:
18643 * termhooks.h:
18644 * termcap.c:
18645 * term.c:
18646 * syssignal.h:
18647 * sysselect.h:
18648 * sysdep.c:
18649 * process.c:
18650 * lread.c:
18651 * lisp.h:
18652 * keyboard.c:
18653 * image.c:
18654 * fringe.c:
18655 * frame.h:
18656 * frame.c:
18657 * fontset.c:
18658 * font.h:
18659 * font.c:
18660 * fns.c:
18661 * fileio.c:
18662 * emacs.c:
18663 * dispnew.c:
18664 * dispextern.h:
18665 * config.in:
18666 * atimer.c:
2ae37cf0 18667 * Makefile.in: Remove code for Carbon.
aac0c6e3 18668
f0131492 186692008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
18670
18671 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
18672
186732008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18674
18675 * macterm.h (kCGBitmapByteOrder32Host): New define for
18676 non-universal SDKs.
18677
18678 * image.c (mac_create_cg_image_from_image, image_load_image_io)
18679 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18680
18681 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
18682 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18683
186842008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
18685
18686 * w32inevt.c: Include dispextern.h.
18687
186882008-07-26 Andreas Schwab <schwab@suse.de>
18689
18690 * print.c (print_object): Fix off-by-one in last change.
18691
186922008-07-25 Juanma Barranquero <lekktu@gmail.com>
18693
18694 * term.c (syms_of_term): Don't initialize default_orig_pair,
18695 default_set_foreground and default_set_background on Windows.
18696
186972008-07-25 Jason Rumney <jasonr@gnu.org>
18698
18699 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
18700 ScriptItemize. Clean up return value checking. Remove unused
18701 variables.
18702 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
18703 shaping engine.
18704
18705 * w32font.c (w32font_has_char): Handle the case where we can't
18706 determine the script for a character.
18707
187082008-07-25 Chong Yidong <cyd@stupidchicken.com>
18709
18710 * term.c (syms_of_term): Initialize default_orig_pair,
18711 default_set_foreground, and default_set_background.
18712
18713 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18714 clash (bug#86).
18715 (getloadavg): Callers changed.
18716
18717 * image.c (svg_load_image): Fix last change.
18718 (svg_load_image): Use rsvg_handle_get_dimensions to check that
18719 image size is valid. Use g_object_unref instead of deprecated
18720 rsvg_handle_free to free rsvg handle.
18721 (x_from_xcolors): Don't initialize pixmap (silence compiler).
18722
187232008-07-25 Jason Rumney <jasonr@gnu.org>
18724
18725 * w32font.c (w32font_encode_char): Encode characters outside BMP as
18726 surrogates before looking up glyph index.
18727 (w32font_text_extents): Encode as surrogates if falling back to
18728 functions that need UTF-16 wide chars.
18729
18730 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
18731 BMP as surrogates before looking up glyph index.
18732
187332008-07-25 Chong Yidong <cyd@stupidchicken.com>
18734
18735 * image.c (svg_load_image): Check for failure in return value of
18736 rsvg_handle_get_pixbuf. Free rsvg handle when done.
18737
187382008-07-25 Jason Rumney <jasonr@gnu.org>
18739
18740 * w32font.c (Fx_select_font): Reverse sense of second arg.
18741
187422008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
18743
18744 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
18745 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
18746
18747 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
18748 (PURESIZE): Use it.
18749
187502008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
18751
18752 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
18753 * m/alpha.h (TEXT_END):
18754 * m/ibmrs6000.h (TEXT_END):
18755 * m/macppc.h (TEXT_END):
18756 * s/darwin.h (TEXT_END):
18757 * s/msdos.h (TEXT_END): Remove, unused.
18758 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
18759 * s/cygwin.h: Remove comment.
18760
18761 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
18762 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
18763 * m/intel386.h (DOT_GLOBAL_START):
18764 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
18765 (USG): Remove, file not used on USG platforms.
18766
18767 * Makefile.in (HAVE_X11): Remove empty #else.
18768
187692008-07-24 Andreas Schwab <schwab@suse.de>
18770
18771 * fileio.c (Finsert_file_contents): Properly adjust undo list
18772 after format conversion.
18773
187742008-07-24 Jan Djärv <jan.h.d@swipnet.se>
18775
18776 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
18777 (menu_nav_ended): Remove.
18778 (create_menus): Remove signal connect for menu_nav_ended.
18779 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
18780 create_menus.
18781 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
18782
187832008-07-23 Jason Rumney <jasonr@gnu.org>
18784
18785 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
18786 with opened font.
18787 (w32font_open): Set font type to gdi.
18788
18789 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
18790
187912008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
18792
18793 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
18794 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
18795 defines it.
18796 * unexec.c (ADDR_CORRECT): Define unconditionally.
18797
18798 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
18799
18800 * unexec.c: Remove code depending on !COFF and USG, the file is
18801 not used for such systems.
18802
18803 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
18804 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18805 (LD_SWITCH_SYSTEM_1): Remove, update users.
18806
18807 * s/darwin.h (DATA_END):
18808 * m/intel386.h (DATA_END):
18809 * m/ibmrs6000.h (DATA_END):
18810 * m/alpha.h (DATA_END): Remove, unused.
18811
18812 * config.in: Regenerate.
18813 * s/ms-w32.h (subprocesses): Define unconditionally.
18814 * s/template.h (subprocesses): Update comment.
18815 * s/vms.h (subprocesses):
18816 * s/usg5-4.h (subprocesses):
18817 * s/hpux10-20.h (subprocesses):
18818 * s/gnu-linux.h (subprocesses):
18819 * s/cygwin.h (subprocesses):
18820 * s/bsd-common.h (subprocesses):
18821 * s/aix4-2.h (subprocesses):
18822 * s/darwin.h (subprocesses): Do not define, defined by default now.
18823
18824 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18825 Remove all references.
18826 (temacs): Add GNUstep specific ld flags.
18827
18828 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18829 similarly to what X does.
18830
188312008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18832
18833 * nsfns.m (x-list-fonts): Remove.
18834 (syms_of_nsfns): Drop the x-list-fonts declaration.
18835 * nsterm.m: Get rid of remaining "//" comments.
18836
188372008-07-22 Chong Yidong <cyd@stupidchicken.com>
18838
18839 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18840
18841 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18842 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18843 (Fns_own_selection_internal, Fx_disown_selection_internal)
18844 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18845
18846 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18847 ... */' style of docstrings. Doc fixes.
18848
188492008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18850
18851 * terminfo.c (UP, BC, PC): Undo previous change.
18852
18853 * nsfns.m: Rename ns prefixed functions/variables to the
18854 corresponding x versions. Update references.
18855
188562008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
18857
18858 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18859
188602008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18861
18862 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18863 Remove forwarding functions.
18864 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18865 non-static.
18866 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18867 non-static.
18868 (ns_frame_parm_handlers): Use the new names.
18869 (syms_of_nsfns): Move to the end of file.
18870
18871 * nsterm.m (syms_of_nsterm): Move to the end of file.
18872
18873 * dispnew.c (init_display): Remove code for X10.
18874
188752008-07-22 Jason Rumney <jasonr@gnu.org>
18876
18877 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18878 bare drive.
18879
188802008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18881
18882 * nsterm.m (syms_of_nsterm): Remove debugging println.
18883
188842008-07-22 David Reitter <david.reitter@gmail.com>
18885
18886 * nsfns.m (do_applescript, F_do_applescript): NS version of the
18887 Carbon implementation of the same functionality: execute arbitrary
18888 AppleScript code.
18889
188902008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
18891
18892 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18893 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18894 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18895 (Fx_display_mm_height, Fx_display_mm_width)
18896 (Fx_display_backing_store, Fx_display_visual_class)
18897 (Fx_display_save_under, Fx_open_connection)
18898 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18899 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18900 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18901 (Fx_display_pixel_width, Fx_display_pixel_height)
18902 (Fx_display_usable_bounds, Fx_display_planes)
18903 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18904 ... */' style of docstrings.
18905
189062008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
18907
18908 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
18909 on this platform.
18910 (mips):
18911 * m/iris4d.h (mips): Do not define.
18912 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
18913
18914 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
18915
18916 * image.c:
18917 * nsfns.m:
18918 * nsselect.m:
18919 * nsterm.h:
18920 * nsterm.m: Rename ns prefixed functions/variables to the
18921 corresponding x versions. Update references.
18922
18923 * m/ibms390x.h (NO_REMAP): Do not undefine.
18924
18925 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18926
189272008-07-21 Chong Yidong <cyd@stupidchicken.com>
18928
18929 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18930 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18931 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18932 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18933 (Fns_display_mm_height, Fns_display_mm_width)
18934 (Fns_display_backing_store, Fns_display_visual_class)
18935 (Fns_display_save_under, Fns_open_connection)
18936 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18937 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18938 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18939 (Fns_display_pixel_width, Fns_display_pixel_height)
18940 (Fns_display_usable_bounds, Fx_display_planes)
18941 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18942
189432008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18944
18945 * print.c (print_object): Check print_depth before searching for
18946 circularities.
18947
189482008-07-21 Michael Albinus <michael.albinus@gmx.de>
18949
18950 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
18951 only sprintf.
18952
189532008-07-21 Kenichi Handa <handa@m17n.org>
18954
18955 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
18956
189572008-07-20 Andreas Schwab <schwab@suse.de>
18958
18959 * syntax.c (find_start_pos, find_start_value)
18960 (find_start_value_byte, find_start_begv, find_defun_start)
18961 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
18962
189632008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18964
18965 * s/sol2-3.h: Insert contents of s/sol2.h.
18966 (LD_SWITCH_SYSTEM): Remove redundant definition.
18967 * s/sol2.h: Remove, unused.
18968
189692008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18970
18971 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
18972
189732008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18974
18975 * Makefile.in (ns_appdir): Fix typo in find command.
18976
189772008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18978
18979 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
18980
18981 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
18982 added not supported anymore.
18983
18984 * s/usg5-4-2.h (LIBS_SYSTEM):
18985 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
18986
18987 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18988 * s/lynxos.h (GETPGRP_NO_ARG):
18989 * s/hpux10-20.h (NO_SIOCTL_H):
18990 * s/gnu.h (GETPGRP_NO_ARG):
18991 * s/gnu-linux.h (NO_SIOCTL_H):
18992 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18993 * s/cygwin.h (GETPGRP_NO_ARG):
18994 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
18995 (C_DEBUG_SWITCH): Remove duplicate definition.
18996
18997 * m/ibms390.h: Remove boilerplate comments.
18998
18999 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
19000
19001 * process.c (HAVE_SERIAL): Consolidate ifdefs.
19002 (wait_reading_process_output): Remove code for SunOS, platform not
19003 supported anymore. Use SOLARIS2 instead of sun.
19004
190052008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19006
19007 * font.c (font_open_by_name): Under NS, default lface height to zero.
19008 (font_open_for_lface): Under NS, set size based on frame fontsize.
19009 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
19010 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
19011
190122008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19013
19014 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
19015 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
19016 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
19017 YES/NO.
19018 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
19019 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
19020 * Makefile.in (clean): Clear out build destination dir.
19021
190222008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19023
19024 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
19025 xterm, xselect.
19026 * lisp.h: Remove declaration of hash_remove.
19027 * nsgui.h: Remove redefinitions of hash_remove.
19028 * fns.c (hash_remove): Rename to hash_remove_from_table.
19029
190302008-07-19 Seiji Zenitani <zenitani@mac.com>
19031
19032 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
19033 strdup() the family UTF8String before modifying it.
19034
190352008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
19036
19037 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
19038 NS_FACE_BACKGROUND with 0 instead of nil.
19039 * nsfont.m (nsfont_draw): Same.
19040
190412008-07-19 Chong Yidong <cyd@stupidchicken.com>
19042
19043 * nsfns.m (ns_set_background_color): Fix crash.
19044
190452008-07-18 Chong Yidong <cyd@stupidchicken.com>
19046
19047 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
19048
190492008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
19050
19051 * puresize.h (BASE_PURESIZE): Increase to 1240000.
19052
190532008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19054
19055 * gtkutil.c: Include <config.h> instead of "config.h".
19056
19057 * lisp.h (Foverlay_buffer): Add EXFUN.
19058
19059 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
19060 child process to complete child_setup. Undo 2005-09-21 change.
19061
19062 * s/darwin.h: Mention setsid after vfork.
19063
190642008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19065
19066 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
19067 Depend on macgui.h.
19068
19069 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
19070 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
19071
19072 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
19073 and f19.
19074 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
19075
19076 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
19077 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
19078 Remove enumerators.
19079
19080 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
19081 Check if FACE_FROM_ID returns NULL.
19082
190832008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
19084
19085 * w32inevt.c (change_frame_size): Remove extern declaration.
19086 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
19087 change_frame_size.
19088
190892008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
19090
19091 * getloadavg.c: Revert last change (2008-07-15).
19092
190932008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
19094
19095 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 19096 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
19097 from configure.
19098
190992008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
19100
19101 * s/sol2.h:
19102 * s/sol2-4.h: Reorganize conditionals.
19103
19104 * ecrt0.c: Remove code depending on m68000, not used anymore.
19105
19106 * fns.c (hash_remove): Make static.
19107 * lisp.h (hash_remove): Don't prototype.
19108
19109 * m/ibmrs6000.h:
19110 * m/ibms390x.h:
19111 * m/macppc.h: Remove boilerplate comments.
19112
19113 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
19114 Solaris, which does not need them.
19115
19116 * m/vax.h: Remove comments about unsupported systems.
19117
19118 * s/darwin.h: Reorganize ifdefs.
19119
191202008-07-17 Andreas Schwab <schwab@suse.de>
19121
19122 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
19123
191242008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
19125
19126 Use SDATA. Follow coding convention of placing operators at
19127 beginning of next line rather than end of previous line, and placing
19128 spaces around infix operators.
19129
19130 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
19131 in case it was defined already.
19132 USE @GNUSTEP_MAKEFILES@ rather than envvars.
19133 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
19134 ns_default.
19135 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
19136 Lisp_Objects.
19137 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
19138 (ns_defined_color, ns_color_to_lisp): Declare.
19139 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
19140 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
19141 it's accepted even with USE_LISP_UNION_TYPE.
19142 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
19143 (update_frame_tool_bar): Remove apparently obsolete tests for
19144 non-integerness of f->tool_bar_lines.
19145 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
19146 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
19147 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
19148 (nsfont_open): Don't confuse NULL for Qnil.
19149 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
19150 * menu.h (find_and_call_menu_selection):
19151 * menu.c (find_and_call_menu_selection): Use just int for vector size.
19152 (find_and_return_menu_selection): Always return something.
19153 * frame.h: Include dispextern.h for Display_Info.
19154 (display_x_get_resource): Declare.
19155
191562008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
19157
19158 * syntax.c: Remove stdio.h include accidentally introduced in
19159 Emacs.app commit.
19160 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
19161 NS_IMPL_COCOA.
19162 * keyboard.c (handle_async_input, input_available_signal): Remove
19163 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
19164
191652008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
19166
19167 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
19168 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
19169 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
19170 Use SDATA.
19171
19172 * keymap.c: Remove all NS-specific code.
19173 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
19174 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
19175 where_is_preferred_modifier, return a different value depending on how
19176 preferred is the binding.
19177 (where_is_internal): Adjust accordingly.
19178 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
19179 Adjust to new preferred_sequence_p.
19180 (syms_of_keymap): Declare `where-is-preferred-modifier'.
19181 * keyboard.c (parse_solitary_modifier): Not static any more.
19182 * keyboard.h (parse_solitary_modifier): Declare.
19183
191842008-07-16 Andreas Schwab <schwab@suse.de>
19185
19186 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
19187 of easymenu.
19188
191892008-07-16 Chong Yidong <cyd@stupidchicken.com>
19190
19191 * xdisp.c (move_it_in_display_line): Account for word wrap, so
19192 that we don't move off the line.
19193
191942008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
19195
19196 * keyboard.c (Qsuper): Remove.
19197 (parse_menu_item): Don't call where_is_internal specially for NS.
19198
191992008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
19200
19201 * s/gnu-linux.h: Remove boilerplate comments.
19202
19203 * m/alpha.h (__ELF__): Consolidate conditions.
19204
19205 * m/m68k.h (linux): Use GNU_LINUX instead.
19206 Remove boilerplate comments.
19207
19208 * m/intel386.h: Undo refactoring from previous change.
19209 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
19210 too, remove dead code.
19211 (linux): Use GNU_LINUX instead.
19212
192132008-07-16 Jason Rumney <jasonr@gnu.org>
19214
19215 * w32gui.h: Repeat 26 June changes lost by last change.
19216
192172008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
19218
19219 * systty.h: Remove code for Aix on 386, unsupported platform.
19220
19221 * s/ms-w32.h: Remove boilerplate comments.
19222 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
19223
19224 * s/gnu-linux.h (TERM): Remove support.
19225 (HAVE_SYSVIPC): Remove, unused.
19226 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
19227 for this system.
19228
19229 * process.c: Remove support for IRIS, unused.
19230 Remove support for TERM, not relevant anymore.
19231
19232 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
19233 used with the definition.
19234
19235 * s/aix4-2.h (static): Do not undef.
19236
19237 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
19238 only used on Aix.
19239 (HAVE_SYSVIPC): Remove, unused.
19240
19241 * m/hp800.h (CANNOT_DUMP): Do not undef.
19242
19243 * m/alpha.h: Fix comment.
19244
19245 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
19246 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
19247 used by this configuration.
19248 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
19249 * unexec.c: Remove code depending on HPUX and
19250 USG_SHARED_LIBRARIES, not used with this file. Remove code
19251 depending on IRIS, unused. Remove if 0-ed code.
19252
19253 * s/template.h: Remove comments about static.
19254
19255 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
19256 Remove if 0-ed code.
19257 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
19258 were the same as the default.
19259 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
19260 Remove boilerplate comments.
19261 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
19262 (HAVE_SYSVIPC): Remove, unused.
19263 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
19264
19265 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19266 Remove boilerplate comments.
19267 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19268 Remove boilerplate comments.
19269 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19270 Remove boilerplate comments.
19271 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
19272
19273 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
19274 USG systems which do not use DATA_SEG_BITS.
19275 Refactor code. Remove boilerplate comments.
19276
19277 * m/ibms390.h:
19278 * m/m68k.h:
19279 * s/bsd-common.h:
19280 * s/cygwin.h:
19281 * s/darwin.h:
19282 * s/freebsd.h:
19283 * s/gnu.h:
19284 * s/msdos.h: Remove boilerplate comments.
19285
19286 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 19287 do not use this file.
aac0c6e3
MR
19288 (IRIS_4D): Remove, unused.
19289
19290 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 19291 do not use this file.
aac0c6e3
MR
19292 (SIGN_EXTEND_CHAR):
19293 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
19294 * unexmips.c: Remove file, unused.
19295
19296 * editfns.c (Fuser_full_name): Replace the only use of
19297 USER_FULL_NAME with its value.
19298 * config.in: Regenerate.
19299
193002008-07-16 David Reitter <david.reitter@gmail.com>
19301
19302 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
19303 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
19304
193052008-07-16 Glenn Morris <rgm@gnu.org>
19306
19307 * emacs.c (system-type): Doc fix.
19308
193092008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
19310
19311 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
19312 If the cache doesn't work, let's fix it, rather than work around it.
19313
193142008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19315
19316 * Makefile.in: Correct additions for nsfont.o in last commit.
19317 * nsfont.m: New file (forgot last commit).
19318
193192008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
19320
bba3e508
SM
19321 * callproc.c (set_initial_environment):
19322 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
19323 batch-compiling for bootstrap).
19324
193252008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 19326 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 19327
c4cc8b9a
JB
19328 * frame.c (make_initial_frame): Call init_frame_faces(f) in
19329 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
19330
193312008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19332
19333 Changes and additions for NeXTstep windowing system (Cocoa and
19334 GNUstep) support.
19335
19336 * Makefile.in:
19337 * config.in: Support defines and build commands for NS port.
19338 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
19339 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
19340 * dispextern.h: Include nsgui.h and add needed typedefs under NS
19341 windowing.
19342 (struct face): Add synth_ital field.
19343 * dispnew.c: Include nsterm.h when compiling under NS windowing.
19344 (init_display): Initialize Vinitial_window_system to "ns" when so
19345 compiled.
19346 * emacs.c: Include GSConfig.h when compiling under GNUstep.
19347 (display_arg): Use under NS.
19348 (main): Under NS, allocate autorelease pool and handle command line
19349 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
19350 (standard_args): Add NS-specific args.
19351 (shut_down_emacs): Shut down NS terminal if compiled under NS.
19352 * font.c (DEFAULT_ENCODING): New variable.
19353 (font_find_for_lface): Use it.
19354 (syms_of_font): Load syms_of_nsfont under NS.
19355 * font.h: Declare nsfont_driver when compiled under NS.
19356 * fontset.c: When compiling under NS, include nsterm.h.
19357 (fontset_from_font): Autoconstruct fontset under NS.
19358 * frame.c (various): Under NS, include nsterm.h, add Qns window system
19359 symbol, document and use it.
19360 (do_switch_frame): When for_deletion under Cocoa, add
19361 Fraise_frame(Qnil).
19362 (x_set_frame_parameters): Ensure font attribute changes are picked up.
19363 (x_get_arg): Allow "yes" and "no" as boolean values.
19364 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
19365 Qright under Cocoa.
19366 (focus-follows-mouse): Default to 0 under NS.
19367 * frame.h (enum output_method): Add output_ns.
19368 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
19369 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
19370 (FRAME_WINDOW_P): NS-specific definition.
19371 * fringe.c (max_used_fringe_bitmap): Make public.
19372 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
19373 (getloadavg): Use NeXT code under descendant OS's.
19374 * image.c (includes and header section, x_create_bitmap_from_data)
19375 (x_create_bitmap_from_file, free_bitmap_record, image_background)
19376 (image_background_transparent, x_clear_image_1)
19377 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
19378 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
19379 (x_to_xcolors, x_from_xcolors, x_disable_image)
19380 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
19381 other GUIs, including XPM support using code originally written for
19382 Carbon GUI.
19383 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
19384 using NS API.
19385 (image_ascent): Use font metrics macros instead of direct struct field
19386 access.
19387 * keyboard.c (includes): Add nsterm.h when compiling under NS.
19388 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
19389 Also, handle NS as GTK for menu bar purposes.
19390 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
19391 toolkit where they differ.
19392 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
19393 use cachelist, still needed under NS.
19394 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
19395 (struct widget_value): Define it here for menu.c.
19396 * keymap.c (includes): Include modifier internals.
19397 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
19398 NS.
19399 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
19400 support for preferring sequences using certain modifiers, specified by
19401 the FIRSTONLY argument.
19402 * lisp.h (hash_remove): Rename to avoid name clash when compiling
19403 under NS GNUstep implementation.
19404 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
19405 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
19406 * menu.c: Include nsterm.h under NS.
19407 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
19408 (free_menubar_widget_tree_value, update_submenu_strings)
19409 (find_and_call_menu_selection): Treat NS as X and NT.
19410 (find_and_return_menu_selection): New function, used for popup menus.
19411 * nsgui.h:
19412 * nsterm.h:
19413 * nsfns.m:
19414 * nsimage.m:
19415 * nsmenu.m:
19416 * nsselect.m:
19417 * nsterm.m: New files.
19418 * process.c (wait_reading_process_output): Under NS, call ns_select()
19419 instead of plain select().
19420 * syntax.c (char_quoted): Under NS, avoid a crash when called near
19421 beginning of buffer.
19422 * sysselect.h (init_process): Rename when compiling under Cocoa to
19423 avoid name conflict.
19424 * termhooks.h (display_info): Add ns_display_info to union.
19425 * terminal.c (Fterminal_live_p): Add ns to terminal types.
19426 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
19427 COCOA environment.
19428 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
19429 unexec() signature. (Note, this will dump, but the resulting file
19430 crashes; unexosx is used instead; keeping around for reference and
19431 possible aid in getting dump working under GNUstep.)
19432 * w32gui.h (button_type, widget_value): Remove definitions (now in
19433 keyboard.h).
19434 * window.c: Include nsterm.h when compiling under NS.
19435 * xdisp.c (includes): Include nsterm.h when compiling under NS.
19436 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
19437 other GUI windowing systems.
19438 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
19439 GTK.
19440 (x_consider_frame_title): Under NS, set icon type and frame
19441 modified-state indicator; use ns_set_name_as_filename() when using
19442 formatted title.
19443 (update_window_cursor): Make public when compiling under NS.
19444 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
19445 (hourglass_atimer, Vhourglass_delay
19446 * xfaces.c (header section, init_frame_faces, clear_font_table)
19447 (defined_color, unload_color, x_face_list_fonts)
19448 (prepare_face_for_display): Add NS support parallel to other GUIs.
19449 Emulate GCs like other non-X GUIs.
19450 (split_font_name): Don't lowercase font name under NS.
19451 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
19452 under NS.
19453 * s/darwin.h: Add support for compilation under NS.
19454
194552008-07-15 Jason Rumney <jasonr@gnu.org>
19456
19457 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
19458 (w32_show_hourglass): Rename from show_hourglass.
19459 (w32_hide_hourglass): Rename from hide_hourglass.
19460 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
19461 (Vhourglass_delay): Declare extern.
19462 (hourglass_started): Remove.
19463
19464 * xdisp.c (Vhourglass_delay): Remove static.
19465 (hourglass_started, start_hourglass, cancel_hourglass):
19466 Don't include these versions on WINDOWSNT.
19467
194682008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19469
19470 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
19471 variables (formerly in xfns.c).
19472 (show_hourglass, hide_hourglass): New prototypes (same).
19473 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
19474 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
19475 in xfns.c).
19476 (syms_of_xdisp): Declare/initialize display-hourglass,
19477 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
19478 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
19479 formerly in xfns.c.
19480 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19481 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19482 (start_hourglass, cancel_hourglass): Remove.
19483 (show_hourglass, hide_hourglass): Remove prototypes and static
19484 modifiers.
19485 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
19486 hourglass_atimer, hourglass_shown_p declaration/initialization.
19487 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19488 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19489 (start_hourglass, cancel_hourglass): Remove.
19490 (show_hourglass, hide_hourglass): Remove prototypes and static
19491 modifiers.
19492 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
19493 hourglass_atimer, hourglass_shown_p declaration/initialization.
19494 * w32fns.c (display_hourglass_p, Vhourglass_delay)
19495 (DEFAULT_HOURGLASS_DELAY): Remove.
19496 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
19497 hourglass_shown_p declaration/initialization.
19498
194992008-07-14 Jason Rumney <jasonr@gnu.org>
19500
19501 * w32fns.c (w32_get_arg): Remove wrapper function.
19502 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
19503 directly.
19504 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
19505
195062008-07-14 Kenichi Handa <handa@m17n.org>
19507
19508 * xfont.c (xfont_open): Add workaround for X's bug.
19509
195102008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19511
19512 * fontset.c: Include <stdio.h> unconditionally.
19513
195142008-07-13 Michael Albinus <michael.albinus@gmx.de>
19515
19516 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
19517 for filtering.
19518
195192008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
19520
19521 * s/vms.h: Use __GNUC__ instead of _GNUC_.
19522
19523 * m/macppc.h:
19524 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
19525
c4cc8b9a 19526 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
19527 (SPECIAL_EMACS_INT):
19528 * m/ia64.h (SPECIAL_EMACS_INT):
19529 * m/amdx86-64.h (SPECIAL_EMACS_INT):
19530 * s/gnu.h (NLIST_STRUCT):
19531 * s/aix4-2.h (X11R5_INHIBIT_I18N):
19532 * s/gnu-linux.h (LINUX):
19533 * s/msdos.h (HAVE_FACES):
19534 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
19535
19536 * systty.h:
19537 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
19538 anymore.
19539
195402008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
19541
19542 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
19543 always defined as int.
19544
19545 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
19546 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
19547 * s/gnu-linux.h (HAVE_WAIT_HEADER):
19548 * s/freebsd.h (HAVE_WAIT_HEADER):
19549 * s/bsd-common.h (HAVE_UNION_WAIT):
19550 * s/aix4-2.h (HAVE_WAIT_HEADER):
19551 * m/mips.h (HAVE_UNION_WAIT):
19552 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
19553 (COFF, static): Do not define, they are undefined later in the file.
19554
19555 * process.c (update_status): Don't use a union.
19556 (status_convert):
19557 (sigchld_handler): Use int instead of WAITTYPE.
19558
195592008-07-12 Chong Yidong <cyd@stupidchicken.com>
19560
19561 * indent.c (Fvertical_motion): Restore hscroll before moving to
19562 goal column.
19563
195642008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19565
19566 * lisp.h: Remove left over code.
19567
195682008-07-11 Andreas Schwab <schwab@suse.de>
19569
19570 * lisp.h: Fix logic in last change.
19571
19572 * menu.h: New file.
19573 * menu.c: Include it.
19574 * xmenu.c: Likewise.
19575 * Makefile.in: Update dependencies.
19576
195772008-07-11 Kenichi Handa <handa@m17n.org>
19578
19579 * fontset.c (fontset_from_font): Cancel the previous change.
19580
195812008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19582
19583 * lisp.h:
19584 * w32heap.c:
19585 * emacs.c:
19586 * alloc.c: Replace all references of NO_UNION_TYPE with
19587 USE_LISP_UNION_TYPE.
19588
19589 * m/xtensa.h (NO_UNION_TYPE):
19590 * m/vax.h (NO_UNION_TYPE):
19591 * m/template.h (NO_UNION_TYPE):
19592 * m/sparc.h (NO_UNION_TYPE):
19593 * m/mips.h (NO_UNION_TYPE):
19594 * m/macppc.h (NO_UNION_TYPE):
19595 * m/m68k.h (NO_UNION_TYPE):
19596 * m/iris4d.h (NO_UNION_TYPE):
19597 * m/intel386.h (NO_UNION_TYPE):
19598 * m/ibms390x.h (NO_UNION_TYPE):
19599 * m/ibms390.h (NO_UNION_TYPE):
19600 * m/ibmrs6000.h (NO_UNION_TYPE):
19601 * m/ia64.h (NO_UNION_TYPE):
19602 * m/hp800.h (NO_UNION_TYPE):
19603 * m/arm.h (NO_UNION_TYPE):
19604 * m/amdx86-64.h (NO_UNION_TYPE):
19605 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
19606 defining it the same.
19607
196082008-07-10 Chong Yidong <cyd@stupidchicken.com>
19609
19610 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
19611
196122008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19613
19614 * fileio.c:
50426a04 19615 * sysdep.c:
aac0c6e3
MR
19616 * systty.h:
19617 * m/ibmrs6000.h:
19618 * m/iris4d.h:
19619 * s/aix4-2.h:
19620 * s/freebsd.h:
19621 * s/gnu-linux.h:
19622 * s/hpux10-20.h:
19623 * s/hpux11.h:
19624 * s/netbsd.h:
19625 * s/sol2-3.h:
19626 * s/sol2-4.h:
19627 * s/sol2.h:
19628 * s/usg5-4.h:
19629 * s/vms.h: Remove references to unused variables.
19630
196312008-07-10 Andreas Schwab <schwab@suse.de>
19632
19633 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
19634 pattern before matching the generic family.
19635
196362008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19637
19638 * unexec.c:
19639 * s/vms.h:
19640 * s/usg5-4-2.h:
19641 * s/sol2-5.h:
19642 * s/freebsd.h:
19643 * s/darwin.h: Remove dead code.
19644
19645 * m/template.h:
19646 * m/sparc.h:
19647 * m/mips.h:
19648 * m/m68k.h:
19649 * m/iris4d.h:
19650 * m/intel386.h:
19651 * m/ibms390x.h:
19652 * m/ibms390.h:
19653 * m/ia64.h:
19654 * m/hp800.h:
19655 * m/arm.h:
19656 * m/amdx86-64.h: Remove dead code and references to unused
19657 and compiler defined symbols.
19658
19659 * unexmips.c:
19660 * unexelf.c: Remove references to desupported systems.
19661
19662 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
19663
19664 * m/powermac.h: Remove boilerplate comments.
19665 (NO_REMAP): Remove unused definition.
19666
19667 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
19668 define them.
19669
196702008-07-10 Kenichi Handa <handa@m17n.org>
19671
19672 * xfont.c (xfont_open): Log the reason of failure.
19673
196742008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
19675
19676 * fontset.c (fontset_get_font_group):
19677 * font.c (font_check_otf): Specify argument types.
19678
196792008-07-09 Kenichi Handa <handa@m17n.org>
19680
19681 * coding.c (detect_coding_utf_8): Set detect_info->found only when
19682 non-ASCII char is found.
19683
19684 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
19685 (reorder_font_vector): Change the arg preferred_family to font.
19686 Prefer the spec matching with font.
19687 (fontset_get_font_group): New function.
19688 (fontset_find_font): Change the format of an element of a realized
19689 fontset. Use fontset_get_font_group.
19690 (fontset_font): Try the current fontset, the default fontset, the
19691 fallbacks of the current fontset, and the fallbacks of the default
19692 fontset in this order.
19693 (face_for_char): Delete the shortcut to use the current font.
19694 (fontset_from_font): Don't set fonts for Latin in the fontset.
19695
19696 * font.h (font_make_object, font_match_p): Adjust prototypes.
19697
19698 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
19699
19700 * font.c (font_make_object): New arg entity and pixelsize.
19701 (font_check_otf_features, font_check_otf): New functions.
19702 (font_match_p): Check :lang, :script, and :otf properties.
19703
19704 * xfont.c (xfont_open): Adjust it for the change of
19705 font_make_object.
19706 (xfont_text_extents): Fix initial setting of metrics.
19707
19708 * ftfont.c (struct ftfont_info): New member index, delete member
19709 fc_charset_idx. Make the member order compatible with struct
19710 xftfont_info.
19711 (fc_charset_table): Change charset names to registry names.
19712 (ftfont_pattern_entity): Delete the args registry and
19713 fc_charset_idx. Change the value of :font-entity property
19714 to (FONTNAME . INDEX). Always set :registry property to
19715 `iso10646-1'.
19716 (struct ftfont_cache_data): New struct.
19717 (ftfont_lookup_cache): New arg for_face.
19718 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
19719 (ftfont_driver): Set the member otf_capability.
19720 (ftfont_get_charset): Adjust it for the change of
19721 fc_charset_table.
19722 (OTF_TAG_SYM): New macro.
19723 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
19724 for the change of fc_charset_table.
19725 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
19726 ftfont_pattern_entity. Add FC_INDEX to objset.
19727 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
19728 and ftfont_pattern_entity.
19729 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
19730 font_make_object, struct ftfont_info.
19731 (ftfont_has_char): Use ftfont_get_fc_charset.
19732 (ftfont_otf_features, ftfont_otf_capability): New functions.
19733 (ftfont_shape): Use ftfont_get_otf.
19734 (ftfont_text_extents): Fix initial setting of metrics.
19735
19736 * xftfont.c (struct xftfont_info): New member ft_size. Make the
19737 member order compatible with struct ftfont_info.
bba3e508
SM
19738 (xftfont_open): Add FC_CHARSET to the pattern.
19739 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
19740 properties if appropriate.
19741 (xftfont_close): Unlock the face.
44f230aa 19742 (xftfont_anchor_point, xftfont_shape): Delete.
aac0c6e3
MR
19743 (syms_of_xftfont): Don't set members anchor_point and shape of
19744 xftfont_driver.
19745
19746 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
19747 font_make_object.
19748
19749 * w32font.c (w32font_open): Adjust it for the change of
19750 font_make_object.
19751 (w32font_open_internal): Don't set properties of font_object here.
19752
197532008-07-08 Chong Yidong <cyd@stupidchicken.com>
19754
19755 * macfns.c (x_create_tip_frame):
19756 * w32fns.c (x_create_tip_frame):
19757 * xfns.c (x_create_tip_frame): Pass parameter argument to
19758 face-set-after-frame-default.
19759
19760 * xfaces.c (Finternal_merge_in_global_face): Save merged
19761 attributes for the default face back into the face vector.
19762
197632008-07-08 Andreas Schwab <schwab@suse.de>
19764
19765 * fontset.h: Declare fontset_from_font. Don't declare
19766 new_fontset_from_font and fontset_from_font_name.
19767 * xterm.c: Include "fontset.h".
19768 * Makefile.in (xterm.o): Update dependencies.
19769
197702008-07-08 Glenn Morris <rgm@gnu.org>
19771
19772 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
19773 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
19774
197752008-07-07 Chong Yidong <cyd@stupidchicken.com>
19776
19777 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
19778 (x_set_frame_parameters): Don't bind it.
19779
197802008-07-07 Juanma Barranquero <lekktu@gmail.com>
19781
19782 * w32fns.c (map_w32_filename): Declare extern.
19783
197842008-07-07 Jason Rumney <jasonr@gnu.org>
19785
19786 * w32term.c (WS_EX_LAYERED): Define if not already.
19787
197882008-07-06 Chong Yidong <cyd@stupidchicken.com>
19789
19790 * xfaces.c (set_font_frame_param): Don't try to set the font
19791 parameter if it is still unspecified in the lface.
19792
197932008-07-05 Chong Yidong <cyd@stupidchicken.com>
19794
19795 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
19796 face if it didn't already exist.
19797
19798 * xdisp.c (try_window_id): Give up if word-wrapping is on.
19799
198002008-07-05 Andreas Schwab <schwab@suse.de>
19801
19802 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
19803
198042008-07-05 Chong Yidong <cyd@stupidchicken.com>
19805
19806 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19807 word-wrapping.
19808 (IT_DISPLAYING_WHITESPACE): New macro.
19809 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19810 when word-wrapping. Simplify word-wrapping logic. Use correct
19811 pixel positions when saving copies of the iterator.
19812 (display_line): Use proper wrap point if the last character on a
19813 line was preceded by whitespace.
19814
198152008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
19816
19817 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19818
198192008-07-04 Kenichi Handa <handa@m17n.org>
19820
19821 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19822
19823 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19824
198252008-07-02 Jason Rumney <jasonr@gnu.org>
19826
19827 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 19828 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
19829
19830 * xdisp.c (next_element_from_display_vector): Move assignment out
19831 of if statement.
19832
198332008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
19834
19835 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19836
19837 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19838 (syms_of_fileio): Initialize and export them.
19839 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19840
19841 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19842 (Fsystem_move_file_to_trash): New function.
19843 (syms_of_w32fns): Export it to lisp.
19844
198452008-07-01 Jason Rumney <jasonr@gnu.org>
19846
19847 * w32font.c (w32font_text_extents): Don't count overhang as part
19848 of width.
19849
198502008-06-30 Miles Bader <miles@gnu.org>
19851
19852 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19853 Add `avoid_cursor_p' field.
19854
19855 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19856 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19857 (append_glyph, append_composite_glyph, produce_image_glyph)
19858 (append_stretch_glyph): Initialize avoid_cursor_p.
19859 (get_it_property): Rename from `get_line_height_property'.
19860 (x_produce_glyphs): Use get_it_property.
19861 (handle_line_prefix, push_display_prop): New functions.
19862 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19863 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19864 New variables.
19865 (syms_of_xdisp): Initialize them.
19866
198672008-06-30 Kenichi Handa <handa@m17n.org>
19868
19869 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19870 XftDefaultSubstitute (they are called in XftFontMatch).
19871 (xftfont_open): Fix args to ftfont_font_format.
19872
19873 * ftfont.c (fc_charset_table): New member lang.
19874 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 19875 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
19876 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19877 (ftfont_open): Fix args to ftfont_font_format.
19878 (ftfont_font_format): New arg filename.
19879
198802008-06-30 Chong Yidong <cyd@stupidchicken.com>
19881
19882 * xfaces.c (Finternal_merge_in_global_face): If default face was
19883 modified, realize it again. Update the font face attribute.
19884
198852008-06-29 Jason Rumney <jasonr@gnu.org>
19886
19887 * w32term.c (x_set_frame_alpha): Fix logic.
19888
198892008-06-29 Kenichi Handa <handa@m17n.org>
19890
19891 * fontset.c (Finternal_char_font): Return font-object instead of
19892 font-name.
19893
19894 * composite.c (get_composition_id): Fix the width calculation for TAB.
19895
198962008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
19897
19898 * indent.c (Fvertical_motion): Properly handle float column arg.
19899
199002008-06-28 Jason Rumney <jasonr@gnu.org>
19901
19902 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19903 (pfnSetLayeredWindowAttributes): New function pointer.
19904 (w32_initialize): Initialize it when supported.
19905 (x_set_frame_alpha): New function.
19906
19907 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
19908 (w32_frame_parm_handlers): Set alpha handler.
19909
19910 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
19911
199122008-06-27 Jason Rumney <jasonr@gnu.org>
19913
19914 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
19915 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
19916 (w32_to_x_charset, x_to_w32_charset)
19917 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19918 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19919 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19920 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19921 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19922 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19923 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
19924 (Qw32_charset_unicode): Remove.
19925 (syms_of_w32fns): Update for above changes.
19926
19927 * w32font.c (w32_to_x_charset, x_to_w32_charset)
19928 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19929 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19930 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19931 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19932 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19933 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19934 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19935 (syms_of_w32font): Update for above changes.
19936
199372008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
19938
19939 * s/usg5-4.h: Fix previous change: keep the correct branch of a
19940 removed #if.
19941 (USG_SHARED_LIBRARIES): Remove duplicate definition.
19942
199432008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 19944 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
19945
19946 * makefile.w32-in (LOCAL_FLAGS):
19947 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19948
19949 * sysdep.c (_spawnlp, _getpid):
19950 Declare with explicit _cdecl instead of _CRTAPI1.
19951
19952 * editfns.c (Fget_internal_run_time):
19953 Check for WINDOWSNT with #ifdef, not #if.
19954
199552008-06-26 Jason Rumney <jasonr@gnu.org>
19956
19957 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
19958
19959 * w32term.c (x_draw_glyph_string_foreground)
19960 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
19961 Use FONT_HANDLE macro.
19962 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
19963
19964 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19965 (uniscribe_encode_char): Use FONT_HANDLE macro.
19966
19967 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
19968 (w32font_text_extents): Use precast w32_font.
19969 (w32font_close): Free cached metrics.
19970 (w32font_open_internal): Allocate space for name on stack.
19971
199722008-06-26 Chong Yidong <cyd@stupidchicken.com>
19973
19974 * xdisp.c (extend_face_to_end_of_line): Fix last change.
19975
199762008-06-26 Jason Rumney <jasonr@gnu.org>
19977
19978 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
19979 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
19980
199812008-06-26 Juanma Barranquero <lekktu@gmail.com>
19982
19983 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
19984
199852008-06-26 Jason Rumney <jasonr@gnu.org>
19986
19987 * w32bdf.c, w32bdf.h: Remove obsolete files.
19988
19989 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
19990
19991 * w32gui.h: Don't include w32bdf.h.
19992 (XCharStruct, enum w32_char_font_type, W32FontStruct):
19993 Remove obsolete font support.
19994
19995 * w32font.h (struct w32font_info): Remove compat_w32_font.
19996 Add hfont member.
19997 (FONT_COMPAT): Remove obsolete macro.
19998
19999 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
20000 (w32font_encode_char, w32font_text_extents): Use new hfont member.
20001 (w32font_open_internal): Remove compat code. Set new hfont member.
20002 (Fx_select_font): Use new hfont member.
20003
20004 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
20005 (uniscribe_encode_char): Use new hfont member.
20006
20007 * w32term.c (x_draw_glyph_string_foreground)
20008 (x_draw_composite_glyph_string_foreground): Use new hfont member.
20009 (x_draw_glyph_string): Use metrics in w32font_info.
20010
200112008-06-26 Kenichi Handa <handa@m17n.org>
20012
20013 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
20014
200152008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
20016
20017 * unexnext.c:
20018 * m/ews4800.h:
20019 * m/hp9000s300.h:
20020 * m/ibm370aix.h:
20021 * m/mips-siemens.h:
20022 * m/ncr386.h:
20023 * m/next.h:
20024 * m/pmax.h:
20025 * m/powerpcle.h:
20026 * m/tandem-s2.h:
20027 * s/386bsd.h:
20028 * s/bsd386.h:
20029 * s/bsd4-1.h:
20030 * s/bsd4-2.h:
20031 * s/bsdos2-1.h:
20032 * s/bsdos2.h:
20033 * s/bsdos3.h:
20034 * s/bsdos4.h:
20035 * s/nextstep.h:
20036 * s/ultrix4-3.h:
20037 * s/usg5-0.h:
20038 * s/usg5-2-2.h:
20039 * s/usg5-2.h:
20040 * s/usg5-4-3.h:
20041 * s/ux4800.h:
20042 * s/uxpds.h:
20043 * s/uxpv.h: Remove support for obsolete systems.
20044 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 20045 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
20046 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
20047 Remove, insert contents in s/aix4-2.h.
20048 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
20049 * s/bsd4-3.h: Rename to ...
20050 * s/bsd-common.h: ... this.
20051 * data.c:
20052 * doc.c:
20053 * ecrt0.c:
20054 * emacs.c:
20055 * fileio.c:
20056 * floatfns.c:
20057 * keyboard.c:
20058 * mem-limits.h:
20059 * print.c:
20060 * process.c:
20061 * sysdep.c:
20062 * syssignal.h:
20063 * systty.h:
20064 * syswait.h:
20065 * term.c:
20066 * unexec.c:
20067 * unexelf.c:
20068 * unexhp9k800.c:
20069 * m/hp800.h:
20070 * m/ibmrs6000.h:
20071 * m/mips.h:
20072 * m/vax.h:
20073 * s/darwin.h:
20074 * s/freebsd.h:
20075 * s/gnu.h:
20076 * s/ms-w32.h:
20077 * s/msdos.h:
20078 * s/netbsd.h:
20079 * s/template.h: Remove references to obsolete variables.
20080
20081 * Makefile.in: Add dependencies for all unexec files.
20082 (admindir): Remove unused variable.
20083 (UNEXEC_SRC): Remove references.
20084
200852008-06-25 Chong Yidong <cyd@stupidchicken.com>
20086
20087 * xfns.c (x_default_font_parameter): If Xft is available, first
20088 try Monospace-12 for the default font.
20089
200902008-06-25 Jason Rumney <jasonr@gnu.org>
20091
20092 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
20093
200942008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
20095
20096 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
20097
20098 * buffer.c (syms_of_buffer): Remove default-word-wrap.
20099
201002008-06-25 Juanma Barranquero <lekktu@gmail.com>
20101
20102 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
20103 <scroll-conservatively>: Fix typo in docstring.
20104
20105 * xselect.c (Fx_send_client_event): Doc fix.
20106
201072008-06-25 Kenichi Handa <handa@m17n.org>
20108
20109 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
20110
20111 * font.c (font_parse_fcname): Remove unused variables.
20112 (font_sort_entites): Delete the arg SPEC. Caller changed.
20113 Fix for the case of ! best_only.
20114 (font_delete_unmatched): Check DPI and AVGWIDTH too.
20115
20116 * lisp.h (Fstring_to_unibyte): EXFUN it.
20117
20118 * character.h (str_to_unibyte): Extern it.
20119
20120 * character.c (str_to_unibyte): New function.
20121
20122 * fns.c (Fstring_to_unibyte): New function.
20123 (syms_of_fns): Defsubr it.
20124
201252008-06-24 Kenichi Handa <handa@m17n.org>
20126
20127 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
20128 DPI too.
20129 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
20130
201312008-06-24 Andreas Schwab <schwab@suse.de>
20132
20133 * Makefile.in (${lispsource}loaddefs.el): Rename from
20134 ../lisp/loaddefs.el.
20135 (bootstrap-clean): Do what distclean does but don't remove
20136 Makefile.
20137 (distclean): Depend on bootstrap-clean and remove Makefile.
20138
201392008-06-24 Chong Yidong <cyd@stupidchicken.com>
20140
20141 * buffer.h (struct buffer): New member word_wrap.
20142
20143 * buffer.c (syms_of_buffer): New variables default-word-wrap and
20144 word-wrap.
20145 (init_buffer_once): Initialize them.
20146
20147 * dispextern.h (struct it): Replace bool truncate_lines_p with a
20148 line_wrap enum possessing three possible values.
20149
20150 * termopts.h: Replace truncate_partial_width_windows with
20151 Vtruncate_partial_width_windows.
20152
20153 * dispnew.c (direct_output_for_insert): Avoid direct output when
20154 inserting a space with word wrap on.
20155
20156 * indent.c (compute_motion): Obey integer values of
20157 truncate-partial-width-windows.
20158
20159 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
20160 replacing truncate_partial_width_windows.
20161 (init_iterator): If Vtruncate_partial_width_windows is an integer,
20162 truncate only if the window width is below that integer.
20163 (start_display, resize_mini_window, produce_stretch_glyph)
20164 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
20165 (back_to_previous_visible_line_start, reseat_1):
20166 Reset string_from_display_prop_p.
aac0c6e3
MR
20167 (display_line): Extend default face to end of line when wrapping.
20168
201692008-06-24 Kim F. Storm <storm@cua.dk>
20170
20171 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
20172 to wrap continued lines at word boundaries.
20173
201742008-06-24 Jason Rumney <jasonr@gnu.org>
20175
20176 * font.c (Ffont_face_attributes): Multiply pixel size before point
20177 conversion to avoid multiplying rounding error.
20178
201792008-06-23 Jason Rumney <jasonr@gnu.org>
20180
20181 * w32term.c (x_draw_glyph_string_background)
20182 (x_draw_glyph_string): Remove old bdf font code.
20183
20184 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
20185
201862008-06-22 Kenichi Handa <handa@m17n.org>
20187
20188 * font.c (font_find_for_lface): Try the adstyle specified in
20189 the property of LFACE_FONT of LFACE (if any).
20190
201912008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 20192 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
20193
20194 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
20195
201962008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
20197
20198 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
20199 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
20200 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
20201 (witness-emacs): Remove.
20202 (lisp, shortlisp): Move loaddefs.el earlier.
20203 (mostlyclean): Forget about witness-emacs.
20204
202052008-06-22 Glenn Morris <rgm@gnu.org>
20206
20207 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
20208 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
20209
202102008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
20211
20212 * Makefile.in (PRECOMP): Remove.
20213 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
20214 (witness-emacs): Run `compile-first'.
20215 (.el.elc): Use the new compile-onefile target.
20216
202172008-06-21 Kenichi Handa <handa@m17n.org>
20218
20219 * xftfont.c (xftfont_open): Handle QCembolden only when
20220 FC_EMBOLDEN is defined.
20221
202222008-06-21 Andreas Schwab <schwab@suse.de>
20223
20224 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
20225 (.el.elc): Likewise.
20226
202272008-06-21 Miles Bader <miles@gnu.org>
20228
20229 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
20230 build dir, not the lisp source dir.
20231
202322008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
20233
20234 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
20235 (bootstrapclean): Remove.
20236 (.el.elc): New rule.
20237 (PRECOMP): New var.
20238 (../lisp/subdirs.el): Remove.
20239 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
20240 (witness-emacs): New target.
20241 (mostlyclean): Remove witness-emacs as well.
20242 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
20243 Add witness-emacs dependency.
20244
202452008-06-20 Chong Yidong <cyd@stupidchicken.com>
20246
20247 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
20248 defined by the font.
20249
202502008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20251
20252 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
20253 (bootstrap-clean): New target that keeps TAGS around.
20254 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
20255 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
20256
202572008-06-20 Jason Rumney <jasonr@gnu.org>
20258
20259 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
20260 Remove obsolete font code.
20261
20262 * w32font.c (font_matches_spec): Use csb bitfield from font signature
20263 to determine language support.
20264
202652008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20266
20267 * sysdep.c (cfsetspeed): New fun extracted from the code.
20268 (cfmakeraw): Move before first use.
20269
202702008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
20271
20272 * sysdep.c (cfmakeraw): Provide fallback implementation.
20273 (serial_configure): Provide fallback implementation of cfsetspeed.
20274
202752008-06-20 Kenichi Handa <handa@m17n.org>
20276
20277 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
20278 the pattern.
20279
20280 * fontset.c (fontset_from_font): Copy font_spec before changing
20281 the elements.
20282
20283 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
20284
202852008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20286
20287 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
20288 for explicit `font' parameters.
20289
20290 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
20291
202922008-06-19 Kenichi Handa <handa@m17n.org>
20293
20294 * frame.c: Include <ctype.h>.
20295 (x_set_font_backend): Allow spacing characters in the X resource
20296 for FontBackend.
20297
202982008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
20299
20300 * w32fns.c, xfns.c (Qfont_param): New var.
20301 (syms_of_w32fns): Initialize it.
20302 (x_default_font_parameter): Record explicit `font' into
20303 `font-parameter'.
20304
203052008-06-18 Kenichi Handa <handa@m17n.org>
20306
20307 * font.c (font_parse_xlfd): Fix previous change.
20308 (font_parse_fcname): Don't use :fc-unknown-spec.
20309 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
20310 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
20311 (font_add_log): Prepend the driver name to the resulting fonts.
20312
20313 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
20314 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
20315 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
20316
20317 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
20318 (QCembolden): New variables.
20319 (syms_of_xftfont): DEFSYM them.
20320 (xftfont_open): Call XftFontMatch. Don't trust the result of
20321 XftTextExtents8 if the pixel_size is less than 5.
20322
203232008-06-18 Andreas Schwab <schwab@suse.de>
20324
20325 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
20326 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
20327
203282008-06-18 Jason Rumney <jasonr@gnu.org>
20329
20330 * w32font.c (w32font_list, w32font_match): Add logging.
20331
20332 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
20333
203342008-06-17 Chong Yidong <cyd@stupidchicken.com>
20335
20336 * font.c (font_parse_fcname): Store divider characters for
20337 unknown-spec list. For known key symbols, intern using correct
20338 symbol name.
20339
203402008-06-17 Kenichi Handa <handa@m17n.org>
20341
20342 * xfaces.c (realize_default_face): If the frame is not on window
20343 system, set the fontset of face to nil.
20344
203452008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20346
20347 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
20348
203492008-06-16 Juanma Barranquero <lekktu@gmail.com>
20350
20351 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
20352 (build_font_name_from_vector): Delete externs.
20353
20354 * xfaces.c (struct font_name): Don't declare.
20355
203562008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
20357
20358 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
20359
203602008-06-16 Chong Yidong <cyd@stupidchicken.com>
20361
20362 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
20363
203642008-06-16 Juanma Barranquero <lekktu@gmail.com>
20365
20366 * font.c (Ffont_spec): Fix usage in docstring.
20367 (Ffont_face_attributes): Doc fix.
20368
203692008-06-16 Andreas Schwab <schwab@suse.de>
20370
20371 * font.c (Ffont_face_attributes): Fix definition.
20372
203732008-06-16 Jason Rumney <jasonr@gnu.org>
20374
20375 * font.h (font_style_symbolic_from_value): Remove.
20376
20377 * font.c (font_style_symbolic_from_value): Remove.
20378 (font_style_symbolic): Revert to pre 2008-06-13 version.
20379
20380 * w32font.c (w32_to_fc_weight): New function.
20381 (w32font_full_name, logfont_to_fcname): Use it.
20382
203832008-06-16 Kenichi Handa <handa@m17n.org>
20384
20385 * font.c (font_check_object): Delete it.
20386 (font_clear_cache): Check if a font-object is alive.
20387 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
20388 font-object to nil.
20389 (font_close_object): Don't check FONT_CLOSE_OBJECT.
20390 (font_at): Don't call font_check_object.
20391 (Ffont_get): Return a symbol for :weight, :slant, and :width.
20392
203932008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
20394
20395 * puresize.h (BASE_PURESIZE): Increase to 1230000.
20396
203972008-06-16 Chong Yidong <cyd@stupidchicken.com>
20398
20399 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
20400
204012008-06-15 Chong Yidong <cyd@stupidchicken.com>
20402
20403 * font.c (font_parse_fcname): Only one decimal point.
20404 (font_unparse_fcname): Handle data in family and foundry indices
20405 as symbols, not strings.
20406 (font_unparse_gtkname, Ffont_face_attributes): New functions.
20407
20408 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
20409
20410 * font.h (font_unparse_gtkname): Add prototype.
20411
204122008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20413
20414 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
20415
204162008-06-15 Andreas Schwab <schwab@suse.de>
20417
20418 * font.c (font_update_drivers): Fix crash when no drivers match.
20419
204202008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
20421
20422 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
20423 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
20424
204252008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
20426
20427 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
20428
204292008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
20430
20431 * process.c (Fserial_process_configure, Fprocess_send_eof):
20432 Use EQ to compare Lisp_Objects.
20433
204342008-06-13 Jason Rumney <jasonr@gnu.org>
20435
20436 * w32fns.c (Fw32_select_font): Remove old font API function.
20437
20438 * w32font.c (logfont_to_fcname): New function.
20439 (Fx_select_font): New font dialog function compatible with
20440 GTK/fontconfig version.
20441
20442 * font.c (font_style_symbolic_from_value): New function.
20443 (font_style_symbolic): Use it.
20444
20445 * font.h (font_style_symbolic_from_value): Declare new function.
20446
204472008-06-13 Juanma Barranquero <lekktu@gmail.com>
20448
20449 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
20450 <font-width-table>: Fix typos in docstrings.
20451
204522008-06-13 Daniel Engeler <engeler@gmail.com>
20453
20454 These changes add serial port access.
20455 * process.c: Add HAVE_SERIAL.
20456 (Fdelete_process, Fprocess_status, Fset_process_buffer)
20457 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
20458 (list_processes_1, select_wrapper, Fstop_process)
20459 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
20460 (status_notify): Modify to handle serial processes.
20461 [HAVE_SERIAL] (Fserial_process_configure)
20462 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
20463 New functions.
20464 * process.h (struct Lisp_Process): Add `type'.
20465 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
20466 New functions.
20467 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
20468 serial ports.
b71ac3dd 20469 (serial_open, serial_configure): New functions.
aac0c6e3
MR
20470 * w32.h: Add FILE_SERIAL.
20471 (struct _child_process): Add ovl_read, ovl_write.
20472
204732008-06-13 Kenichi Handa <handa@m17n.org>
20474
20475 * dispextern.h (enum lface_attribute_index): New member
20476 LFACE_FOUNDRY_INDEX.
20477
20478 * font.c (font_score): Delete arg alternate_families. Check only
20479 weight, slant, width, and size. Ignore the difference of alias
20480 style symbols.
20481 (font_sort_entites): Adjust for the above change. Reflect the
20482 order of font-driver to scores.
20483 (font_list_entities): Don't check alternate_familes here.
20484 (font_clear_prop): Handle foundry.
20485 (font_update_lface): Don't parse "foundry-family" form here.
20486 Handle FONT_FOUNDRY_INDEX.
20487 (font_find_for_lface): Likewise. Handle alternate families here.
20488 If registry is nil, try iso8859-1 and ascii-0.
20489 (font_open_for_lface): Pay attention to size in ENTITY.
20490 (font_open_by_name): Simplify by calling font_load_for_lface.
20491 (free_font_driver_list): Delete it.
20492 (font_update_drivers): Preserve the order of backends.
20493 (syms_of_font): Setting of sort_shift_bits adjusted for the change
20494 of font_score and font_sort_entites.
20495 (font_update_sort_order): Likewise.
20496
20497 * xfaces.c (LFACE_FOUNDRY): New macro.
20498 (check_lface_attrs): Check foundry.
20499 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
20500 (merge_face_vectors): Check foundry.
20501 (merge_face_ref): Likewise.
20502 (Finternal_set_lisp_face_attribute): Likewise.
20503 (x_update_menu_appearance): Likewise.
20504 (Finternal_get_lisp_face_attribute): Likewise.
20505 (lface_hash): Likewise.
20506 (lface_same_font_attributes_p): Likewise.
20507 (x_supports_face_attributes_p): Likewise.
20508 (tty_supports_face_attributes_p): Likewise.
20509 (Finternal_set_alternative_font_family_alist): Intern strings.
20510 (Finternal_set_alternative_font_registry_alist): Downcase strings.
20511 (realize_default_face): Set LFACE_FOUNDRY (lface).
20512
20513 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
20514 font-driver at first.
20515
20516 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
20517
205182008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
20519
20520 * lread.c (Fload): Use xfree, not free on saved_doc_string.
20521
205222008-06-12 Jim Meyering <meyering@redhat.com>
20523
20524 Make unexec_free handle NULL the same way free does.
20525 * unexmacosx.c (unexec_free): Ignore a NULL argument.
20526
205272008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20528
20529 * character.h (CHAR_TO_BYTE_SAFE): New macro.
20530 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
20531 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
20532 (WEAK_ALIAS): Simplify.
20533 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
20534 when searching a unibyte buffer.
20535
205362008-06-12 Chong Yidong <cyd@stupidchicken.com>
20537
20538 * xfns.c (Fx_select_font): Rename from x-font-dialog.
20539
205402008-06-12 Juanma Barranquero <lekktu@gmail.com>
20541
20542 * w32font.c: Include ctype.h.
20543
205442008-06-11 Jason Rumney <jasonr@gnu.org>
20545
20546 * w32font.c (w32font_encode_char): Detect missing glyphs that are
20547 misreported as space.
20548 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
20549 as aliases for registry iso10646-1.
20550
205512008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20552
20553 * buffer.c (clone_per_buffer_values): Skip `name'.
20554
205552008-06-11 Chong Yidong <cyd@stupidchicken.com>
20556
20557 * font.c (font_parse_fcname): Fix last change; accept decimal
20558 points in font size.
20559
205602008-06-10 Jason Rumney <jasonr@gnu.org>
20561
20562 * w32uniscribe.c (add_opentype_font_name_to_list):
20563 Skip non unicode fonts.
20564
205652008-06-10 Chong Yidong <cyd@stupidchicken.com>
20566
20567 * xfns.c (Fx_font_dialog): New function.
20568
20569 * gtkutil.c (xg_dialog_response_cb): Rename from
20570 xg_file_response_callback.
20571 (pop_down_dialog): Rename from pop_down_file_dialog.
20572 (xg_get_file_name): Callers changed.
20573 (xg_get_font_name): New function.
20574
20575 * gtkutil.h (xg_get_font_name): Insert prototype.
20576
205772008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20578
20579 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
20580 x_underline_minimum_display_offset.
20581 (syms_of_xdisp): Declare it here rather than in xterm.c.
20582 * dispextern.h (underline_minimum_offset): Declare it.
20583 * w32term.c (x_draw_glyph_string): Use it.
20584 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
20585 (syms_of_xterm): Don't declare it any more.
20586 (x_draw_glyph_string): Adjust to the new name.
20587
8719abec 205882008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
20589
20590 * xterm.c (x_underline_minimum_display_offset): New var.
20591 (x_draw_glyph_string): Use it.
20592 (syms_of_xterm): Declare it.
20593
205942008-06-10 Chong Yidong <cyd@stupidchicken.com>
20595
20596 * font.c (font_parse_fcname): Accept GTK-style font names too.
20597
205982008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20599
20600 * dired.c (file_name_completion): Don't return t if the match is exact
20601 but with different capitalization.
20602 * minibuf.c (Ftry_completion): Simplify.
20603
20604 * window.c (Vwindow_point_insertion_type): New var.
20605 (set_window_buffer): Use it.
20606 (syms_of_window): Init and export it to Lisp.
20607
206082008-06-10 Kenichi Handa <handa@m17n.org>
20609
20610 * font.h (font_intern_prop): Prototype adjusted.
20611
20612 * font.c (font_intern_prop): New arg force_symbol.
20613 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
20614 Adjust for the change of font_intern_prop.
20615
20616 * ftfont.c (ftfont_pattern_entity):
20617 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
20618 (w32_registry):
20619 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
20620 the change of font_intern_prop.
20621
206222008-06-09 Juanma Barranquero <lekktu@gmail.com>
20623
20624 * w32menu.c (digest_single_submenu): Declare extern.
20625
206262008-06-09 Jason Rumney <jasonr@gnu.org>
20627
20628 * w32term.c (x_make_frame_visible): Use alternate restore flags.
20629
20630 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
20631 (parse_single_submenu): Remove.
20632 (digest_single_submenu): Remove.
20633 (syms_of_w32menu): Don't initialise variables that have moved
20634 to menu.c.
20635 (set_frame_menubar): Sync with version in xmenu.c.
20636 (w32_menu_show): Sync with xmenu_show in xmenu.c.
20637
20638 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
20639 Make static again.
20640
206412008-06-09 Jason Rumney <jasonr@gnu.org>
20642
20643 Changes to w32 files related to the move of common menu code
20644 to menu.c on 2008-06-08 by Chong Yidong.
20645
20646 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
20647 defs to w32gui.h.
20648 (single_keymap_panes, push_menu_item, push_menu_pane):
20649 Make globally visible.
20650
20651 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
20652 (local_free, malloc_widget_value, free_widget_value)
20653 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
20654 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
20655 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
20656 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
20657 (menu_items, menu_items_allocated, menu_items_used)
20658 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
20659 (init_menu_items, finish_menu_items, discard_menu_items)
20660 (grow_menu_items, push_submenu_start, push_submenu_end)
20661 (push_left_right_boundary, push_menu_pane, push_menu_item)
20662 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
20663 (free_menubar_widget_tree_value, parse_single_submenu)
20664 (update_submenu_strings): Remove functions.
20665 (xmalloc_widget_value): Remove and declare extern.
20666
20667 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
20668 (OBJ1): Build it.
20669
20670 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
20671 (local_heap, local_alloc, local_free, malloc_widget_value)
20672 (free_widget_value): Define here.
20673
206742008-06-09 Kenichi Handa <handa@m17n.org>
20675
20676 * font.h (Qascii_0): Extern it.
20677
20678 * font.c (Qascii_0): New variable.
20679 (syms_of_font): DEFSYM it.
20680 (font_open_by_name): If the registry "iso8859-1" fails, try also
20681 "ascii-0".
20682
20683 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
20684
206852008-06-08 Kenichi Handa <handa@m17n.org>
20686
20687 * .gdbinit (xfont): New command.
20688
206892008-06-08 Andreas Schwab <schwab@suse.de>
20690
20691 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
20692 * Makefile.in (menu.o): Update dependencies.
20693
20694 * Makefile.in (obj): Always add menu.o.
20695 * emacs.c (main): Always call syms_of_menu.
20696 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
20697
206982008-06-08 Chong Yidong <cyd@stupidchicken.com>
20699
20700 * Makefile.in: Compile menu.c.
20701
20702 * lisp.h: Declare syms_of_menu.
20703
20704 * emacs.c (main): Call syms_of_menu.
20705
20706 * keyboard.h: Relocate platform-independent menu definitions from
20707 xmenu.c.
20708
20709 * menu.c: New file. Relocate platform-independent menu
20710 definitions from xmenu.c. Suggested by Adrian Robert.
20711
20712 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 20713 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
20714 (menu_items_used, menu_items_n_panes)
20715 (menu_items_submenu_depth): Move to keyboard.h.
20716 (init_menu_items, finish_menu_items, unuse_menu_items)
20717 (discard_menu_items, restore_menu_items, save_menu_items)
20718 (grow_menu_items, push_submenu_start, push_submenu_end)
20719 (push_left_right_boundary, push_menu_pane, push_menu_item)
20720 (keymap_panes, single_keymap_panes, single_menu_item)
20721 (list_of_panes, list_of_items, find_and_call_menu_selection)
20722 (xmalloc_widget_value, free_menubar_widget_value_tree)
20723 (parse_single_submenu, digest_single_submenu)
20724 (update_submenu_strings): Move to menu.c.
20725
207262008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
20727
20728 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
20729
207302008-06-06 Miles Bader <miles@gnu.org>
20731
20732 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
20733 face, not frame default.
20734
207352008-06-05 Martin Rudalics <rudalics@gmx.at>
20736
20737 * window.c (pop_up_windows, pop_up_frames)
20738 (display_buffer_reuse_frames, Vpop_up_frame_function)
20739 (Vdisplay_buffer_function, Veven_window_heights)
20740 (Vspecial_display_buffer_names, Vspecial_display_regexps)
20741 (Vspecial_display_function, Vsame_window_buffer_names)
20742 (Vsame_window_regexps, split_height_threshold)
20743 (Vsplit_window_preferred_function): Move those vars to window.el.
20744 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
20745 (Fdisplay_buffer): Move those functions to window.el.
20746 (syms_of_window): Remove corresponding declarations.
20747 (display_buffer): New function.
20748 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
20749 * dispnew.c (Flast_nonminibuf_frame): New function.
20750 * buffer.c (Fpop_to_buffer): Move to window.el.
20751
207522008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20753
20754 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
20755
207562008-06-05 Kenichi Handa <handa@m17n.org>
20757
20758 * coding.c (detect_coding): Fix previous change.
20759 (detect_coding_system): Likewise.
20760
207612008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20762
20763 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
20764
20765 * keymap.c (Vminibuffer_local_filename_must_match_map):
20766 Rename from Vminibuffer_local_must_match_filename_map.
20767 (syms_of_keymap):
20768 * minibuf.c (Fcompleting_read): Adjust accordingly.
20769 * commands.h: Rename declaration as well.
20770
207712008-06-05 Kenichi Handa <handa@m17n.org>
20772
20773 * font.c (Ffont_spec): Don't use font_parse_family_registry for
20774 family name.
20775 (Ffont_put): Likewise.
20776
20777 * fontset.c (fontset_find_font): Call font_open_for_lface with the
20778 current font-spec.
20779
20780 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
20781 is unspecified.
20782
20783 * xfaces.c (realize_x_face): If the font-related face attributes
20784 are the same as those of default face, realize a new fontset from
20785 default->fontset.
20786 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
20787
207882008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20789
20790 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
20791 (move_it_in_display_line): New wrapper.
20792
20793 * window.c (window_scroll_pixel_based_preserve_x)
20794 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
20795 (window_scroll_pixel_based, window_scroll_line_based):
20796 Use them to preserve column positions.
20797 (syms_of_window): Initialize them.
20798
20799 * indent.c (Fvertical_motion): Extend first arg to allow passing an
20800 (HPOS . VPOS) pair.
20801
20802 * dispextern.h (move_it_in_display_line): Declare.
20803
208042008-06-05 Juanma Barranquero <lekktu@gmail.com>
20805
20806 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20807 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
20808 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
20809
208102008-06-04 Juanma Barranquero <lekktu@gmail.com>
20811
20812 * window.c (Fset_window_parameter): Doc fix.
20813 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20814
208152008-06-04 Joakim Verona <joakim@verona.se>
20816
20817 * window.h (struct window): Add new member window_parameters.
20818
20819 * window.c (Fwindow_parameters, Fwindow_parameter)
20820 (Fset_window_parameter): New defuns.
20821 (syms_of_window): Defsubr the new defuns.
20822 (make_window): Initialize window_parameters to nil.
20823
208242008-06-04 John Paul Wallington <jpw@pobox.com>
20825
20826 * eval.c (Fdefmacro): Doc fix.
20827
208282008-06-04 Kenichi Handa <handa@m17n.org>
20829
20830 * coding.c (detect_coding): Fix handling of coding->head_ascii.
20831 Be sure to call setup_coding_system when we find a proper coding system.
20832 (detect_coding_system): Fix handling of coding->head_ascii.
20833
208342008-06-03 Andreas Schwab <schwab@suse.de>
20835
20836 * font.c (font_prop_validate_spacing): Fix last change.
20837
208382008-06-03 Kenichi Handa <handa@m17n.org>
20839
20840 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20841 (font_parse_fcname): Fix handling of unknown key.
20842
20843 * xfont.c (xfont_list): Try an alias.
20844
20845 * charset.c (char_charset): Return NULL if the arg charset_list is
20846 specified and C doesn't belong to any of them.
20847
208482008-06-02 Chip Coldwell <coldwell@redhat.com>
20849
20850 * font.c (font_pixel_size): Don't take cdr of an integer.
20851
208522008-06-02 Jim Meyering <meyering@redhat.com>
20853
20854 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20855 * alloc.c (xfree): Return right away for a NULL arg.
20856 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20857 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20858 * mac.c (create_apple_event_from_event_ref): Likewise.
20859 (create_apple_event_from_drag_ref, cfstring_create_normalized):
20860 Likewise.
20861 * doprnt.c (doprnt1): Likewise.
20862 * frame.c (frame): Likewise.
20863 * keyboard.c (wipe_kboard): Likewise.
20864 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20865 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20866 * term.c (tty_default_color_capabilities, maybe_fatal)
20867 (delete_tty): Likewise.
20868 * w16select.c (string): Likewise.
20869 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20870 * w32bdf.c (w32_free_bdf_font): Likewise.
20871 * w32fns.c (w32_unload_font): Likewise.
20872 * w32font.c (w32font_close): Likewise.
20873 * window.c (size_window): Likewise.
20874 * xselect.c (receive_incremental_selection): Likewise.
20875 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20876 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20877 * w32.c (stat): Likewise.
20878
20879 Remove useless if-before-free tests.
20880 * editfns.c (Fset_time_zone_rule): Likewise.
20881 * lread.c (nosuffix): Likewise.
20882 * ralloc.c (get_bloc): Likewise.
20883 * regex.c (reg_free): Likewise.
20884 * xftfont.c (xftfont_open, xftfont_close): Likewise.
20885 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20886 * xsmfns.c (smc_save_yourself_CB): Likewise.
20887
208882008-06-02 Kenichi Handa <handa@m17n.org>
20889
20890 * font.c (font_find_for_lface): Handle float font size.
20891 (font_open_for_lface): Likewise.
20892
20893 * xfaces.c (x_supports_face_attributes_p): Check face->font before
20894 comparing the properties.
20895
208962008-06-01 Jason Rumney <jasonr@gnu.org>
20897
20898 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20899 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20900 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20901 Don't add empty script list.
20902 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20903
209042008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
20905
20906 * Makefile.in (dot, dotdot): Remove, update users.
20907 ".." has been used elsewhere in the file for a long time.
20908 (LIBXT_STATIC): Remove conditional based on unused variable.
20909
209102008-06-01 Miles Bader <miles@gnu.org>
20911
20912 * xfaces.c (Vface_remapping_alist): New variable.
20913 (syms_of_xfaces): Initialize it.
20914 (enum named_merge_point_kind): New type.
20915 (struct named_merge_point): Add `named_merge_point_kind' field.
20916 (push_named_merge_point): Make cycle detection respect different
20917 named-merge-point kinds.
20918 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
20919 Remove face-name alias resolution.
20920 (lface_from_face_name): New definition using
20921 `lface_from_face_name_no_resolve'.
20922 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
20923 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
20924 (get_lface_attributes): New definition that layers face-remapping on
20925 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
20926 (lookup_basic_face): New function.
20927 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20928 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20929 `get_lface_attributes'.
20930 (face_at_buffer_position): Use `lookup_basic_face' to lookup
20931 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
20932 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20933
20934 * xdisp.c (init_iterator): Pass base_face_id through
20935 `lookup_basic_face' when we actually use it as a face-id.
20936 (handle_single_display_prop): Use `lookup_basic_face' to lookup
20937 DEFAULT_FACE_ID.
20938
20939 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20940 lookup the initial face-id.
20941
20942 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20943
209442008-06-01 Juanma Barranquero <lekktu@gmail.com>
20945
20946 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20947 (Fremove_text_properties): Fix typos in docstrings.
20948
209492008-05-31 Kenichi Handa <handa@m17n.org>
20950
20951 * font.c (font_list_entities): Fix the car part of data to be
20952 stored in the cache.
20953
20954 * ftfont.c (ftfont_font_format): Don't use strcasestr.
20955
209562008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20957
20958 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
20959 Add a `test' argument so another predicate than `equal' can be used.
20960 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
20961 (map_char_table): Remove unused vars `c' and `i'.
20962 * lisp.h (Foptimize_char_table): Adjust declaration.
20963 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
20964
209652008-05-30 Kenichi Handa <handa@m17n.org>
20966
20967 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
20968 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
20969 defined.
20970
209712008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20972
20973 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20974 (Fmake_variable_frame_local): Disallow mixing buffer-local and
20975 frame-local settings for the same variable.
20976
209772008-05-30 Kenichi Handa <handa@m17n.org>
20978
20979 * fontset.c (Ffont_info): Move to font.c.
20980 (syms_of_fontset): Delete defsubr of Sfont_info.
20981
20982 * font.c (font_style_to_value, font_score): Delete casting of the
20983 args to xstcasecmp.
20984 (register_font_driver): Increment num_font_drivers only when
20985 registering the driver globally.
20986 (Ffont_info): Move from fontset.c. Handle a font object too.
20987 (syms_of_font): Defsubr Sfont_info.
20988
209892008-05-29 Kenichi Handa <handa@m17n.org>
20990
20991 * coding.h (enum define_coding_utf8_arg_index): New enum.
20992 (enum coding_attr_index): Change coding_attr_utf_16_bom to
20993 coding_attr_utf_bom.
20994 (enum utf_bom_type): Rename from utf_16_bom_type.
20995 (struct utf_16_spec): Adjust for the above change.
20996 (struct coding_system): Add utf_8_bom in `spec' union.
20997
20998 * coding.c (CODING_UTF_8_BOM): New macro.
20999 (enum coding_category): Delete coding_category_utf_8, add
21000 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
21001 coding_category_utf_8_sig.
21002 (CATEGORY_MASK_UTF_8): Delete it.
21003 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
21004 (CATEGORY_MASK_UTF_8_SIG): New macros.
21005 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
21006 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
21007 CATEGORY_MASK_UTF_8_SIG.
21008 (CATEGORY_MASK_UTF_8): New macro.
21009 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
21010 (detect_coding_utf_8): Check BOM.
21011 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
21012 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
21013 (encode_coding_utf_16): Likewise.
21014 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
21015 (detect_coding, detect_coding_system): Handle utf-8-auto.
21016 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
21017 (syms_of_coding): Fix setting up of Vcoding_category_table.
21018
210192008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
21020
21021 * process.c (Faccept_process_output): If `millisec' is non-nil,
21022 `seconds' default to 0.
21023 (wait_reading_process_output): Also return non-nil if we read output
21024 from a non-running process.
21025
210262008-05-29 Jason Rumney <jasonr@gnu.org>
21027
21028 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
21029 `raster' specified.
21030 (add_font_entity_to_list): Allow non-opentype truetype fonts back
21031 in the uniscribe backend, but disallow any font that has no
21032 unicode subrange support.
21033
210342008-05-29 Juanma Barranquero <lekktu@gmail.com>
21035
21036 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
21037 Fix typos in docstrings.
21038
210392008-05-29 Kenichi Handa <handa@m17n.org>
21040
21041 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
21042 (Fx_family_fonts): Set frame correctly.
21043
210442008-05-28 Jason Rumney <jasonr@gnu.org>
21045
21046 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
21047
210482008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
21049
21050 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
21051 calling build_annotations.
21052
210532008-05-28 Juanma Barranquero <lekktu@gmail.com>
21054
21055 * coding.c (Fdecode_coding_region, Fencode_coding_region)
21056 (Fencode_coding_string):
21057 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
21058 <latin-extra-code-table>: Fix typos in docstrings.
21059 (syms_of_coding) <coding-system-alist>: Doc fix.
21060 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
21061
210622008-05-28 Kenichi Handa <handa@m17n.org>
21063
21064 * fontset.c (Ffont_info): Don't call font_close_object.
21065
21066 * font.c (font_parse_family_registry): Use Ffont_put to validate
21067 foundry and family.
21068 (font_delete_unmatched): Don't check spacing.
21069 (font_list_entities): Add spacing to the spec to list fonts.
21070
21071 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
21072 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
21073
21074 * coding.c (encode_coding_raw_text): Fix previous change.
21075 (encode_coding_object): When the dst_object is a buffer and is
21076 different from src_object, move gap to PT.
21077
210782008-05-27 Chong Yidong <cyd@stupidchicken.com>
21079
21080 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
21081
210822008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
21083
21084 * coding.c (encode_coding_raw_text): Set coding->produced_char for
21085 all branches. Compute it differently.
21086
21087 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
21088
210892008-05-27 Juanma Barranquero <lekktu@gmail.com>
21090
21091 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
21092 into "else if () ... else ...".
21093
210942008-05-27 Jason Rumney <jasonr@gnu.org>
21095
21096 * w32font.c (w32font_open_internal): Determine if glyph indices
21097 are likely to work here.
21098
210992008-05-27 Chong Yidong <cyd@stupidchicken.com>
21100
21101 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
21102 draw overlap glyphs with appropriate highlighting.
21103
211042008-05-27 Kenichi Handa <handa@m17n.org>
21105
21106 * xfont.c (xfont_open): Fix calculation of font->average_width.
21107
211082008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
21109
21110 * casefiddle.c (casify_object): Try to guess better whether the
21111 argument is a byte or a char.
21112
211132008-05-26 Andreas Schwab <schwab@suse.de>
21114
21115 * xselect.c (x_reply_selection_request): Properly handle format == 32.
21116 Always send multiples of format size.
21117
21118 * xterm.c (x_set_frame_alpha): Fix type mismatch.
21119
211202008-05-26 Jason Rumney <jasonr@gnu.org>
21121
21122 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
21123 (compute_metrics): Don't set failure if we just cleared the cache.
21124 (w32_weight_table): Remove unused variable.
21125 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
21126 backwards compatibility.
21127
211282008-05-25 Kenichi Handa <handa@m17n.org>
21129
21130 * w32term.c (x_draw_glyph_string):
21131 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
21132
21133 * xfaces.c: Delete unused function prototypes.
21134 (xstrlwr, font_frame): Delete them.
21135 (clear_face_cache): Delete unused variable.
21136
21137 * xftfont.c (xftfont_open): Delete unused variable.
21138 If underline_thickness is not 1, adjust underline_position.
21139
21140 * ftxfont.c (ftxfont_open): Delete unused variable.
21141
21142 * fontset.c (face_for_char): Optimize for the case of no charset
21143 property.
21144
21145 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
21146 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
21147 (otf_open, font_otf_capability, generate_otf_features)
21148 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
21149 Comment out by surrounding "#if 0" and "#endif" for the moment.
21150 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
21151 (syms_of_font): Codes for accessing above commented out.
21152
211532008-05-24 Eli Zaretskii <eliz@gnu.org>
21154
21155 * w32proc.c: Include dispextern.h.
21156
21157 * w32.c: Include dispextern.h.
21158
211592008-05-23 Juanma Barranquero <lekktu@gmail.com>
21160
21161 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
21162 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
21163 Fix typos in docstrings.
21164
211652008-05-23 Jason Rumney <jasonr@gnu.org>
21166
21167 * xsmfns.c: Remove includes that are already included by config.h.
21168
211692008-05-23 Kenichi Handa <handa@m17n.org>
21170
21171 * charset.c (Qemacs, charset_emacs): New variables.
21172 (char_charset): Fix for non-Unicode characters.
21173 (syms_of_charset): Define charset_emacs.
21174
21175 * w32term.c (x_draw_glyph_string): Be sure to update
21176 s->underline_thickness and s->underline_position. Be sure to draw
21177 underline within the current line area.
21178
21179 * xterm.c (x_draw_glyph_string): Be sure to update
21180 s->underline_thickness and s->underline_position. Be sure to draw
21181 underline within the current line area.
21182
21183 * fontset.c: Delete unused variables and add casting for char *
21184 throughout the file.
21185 (fontset_font): Try the fallback fonts of the current fontset
21186 before consulting the default fontset.
21187
21188 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
21189
21190 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
21191
211922008-05-22 Jason Rumney <jasonr@gnu.org>
21193
21194 * font.c: Don't include strings.h.
21195
21196 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
21197
21198 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
21199 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
21200 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
21201 to call xstrcasecmp.
21202
21203 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
21204
21205 * fontset.c (fs_query_fontset): Use xstrcasecmp.
21206
21207 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
21208
21209 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
21210
212112008-05-22 Kenichi Handa <handa@m17n.org>
21212
21213 * puresize.h (BASE_PURESIZE): Increase to 1220000.
21214
21215 * font.c (font_prop_validate_style): Adjust for the format
21216 change of font_style_table.
21217
21218 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
21219 two args.
21220
21221 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
21222 two args.
21223
212242008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
21225
21226 * minibuf.c (keys_of_minibuf): Delete.
21227 * lisp.h (keys_of_minibuf): Delete.
21228 * emacs.c (main): Don't call keys_of_minibuf.
21229
212302008-05-22 Kenichi Handa <handa@m17n.org>
21231
21232 * ftfont.c (ftfont_resolve_generic_family): Rename from
21233 ftfont_list_generic_family. Return a single family for each
21234 generic family.
21235 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
21236 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
21237 Call font_add_log.
21238 (ftfont_match): Call font_add_log.
21239
21240 * font.h (Ffont_xlfd_name): EXFUN adjusted.
21241 (FONT_DEBUG): Define it.
21242 (font_add_log): Extern it.
21243 (font_assert): Rename from xassert.
21244
21245 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
21246 (xfont_list_family): Call font_add_log.
21247 (xfont_match): Likewise.
21248 (memq_no_quit): Delete.
21249
21250 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
21251 call of Ffont_xlfd_name.
21252
21253 * xfaces.c (struct table_entry, slant_table, weight_table)
21254 (swidth_table): Move to font.c.
21255
21256 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
21257 xassert are changed to font_assert. Delete many unused variables.
21258 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
21259 New variables.
21260 (struct table_entry): Move from xfaces.c and modified.
21261 (weight_table, slant_table, width_table): Move from xfaces.c and
21262 contents adjusted for the change of struct table_entry.
21263 (font_style_to_value, font_style_symbolic): Adjust for the
21264 format change of font_style_table.
21265 (font_parse_family_registry): Don't overwrite existing foundry and
21266 family of font_spec.
21267 (font_score): Fix calculation of diff for sizes.
21268 (font_sort_entites): Call font_add_log.
21269 (font_delete_unmatched): Return a newly created list.
21270 (font_list_entities): Fix previous change. Call font_add_log.
21271 (font_matching_entity, font_open_entity, font_close_entity):
21272 Call font_add_log.
21273 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
21274 (Finternal_set_font_style_table): Delete.
21275 (BUILD_STYLE_TABLE): New macro.
21276 (build_style_table): New function.
21277 (Vfont_log, font_log_env_checked): New variables.
21278 (font_add_log): New function.
21279 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
21280 Declare Lisp variables "font-weight-table", "font-slant-table",
21281 "font-width-table", and "font-log". Initialize font_style_table.
21282
212832008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
21284
21285 * xterm.c (x_set_frame_alpha): Move declarations before statements.
21286
212872008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 21288 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
21289
21290 * frame.c (Qalpha): Add a new frame parameter `alpha'.
21291 (Vframe_alpha_lower_limit): New variable.
21292 (x_set_alpha): New function.
21293
21294 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
21295
21296 * xfns.c (x-create-frame, Qalpha):
21297 Initialize the frame parameter `alpha'.
21298 * xterm.c (OPAQUE, OPACITY): New.
21299 (x_set_frame_alpha): New function.
21300 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
21301
21302 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
21303 * w32fns.c (w32_frame_parm_handlers): Likewise.
21304
213052008-05-20 Jason Rumney <jasonr@gnu.org>
21306
21307 * w32font.c (add_font_entity_to_list): Don't add non-opentype
21308 truetype fonts to opentype list.
21309
213102008-05-20 Juanma Barranquero <lekktu@gmail.com>
21311
21312 * fontset.c (Ffontset_info): Doc fix.
21313 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
21314 <ignore-relative-composition>: Fix typos in docstrings.
21315
21316 * font.c (syms-of-font) <font-encoding-alist>:
21317 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
21318 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
21319 (Ffont_otf_alternates): Doc fixes.
21320
213212008-05-20 Kenichi Handa <handa@m17n.org>
21322
21323 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
21324 font.h through out the file.
21325 (FONT_DRIVERS): Rename from FONTOBJ.
21326 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
21327 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
21328
21329 * emacs.c (main): Call syms_of_font unconditionally.
21330
21331 * font.h (find_font_encoding): Extern it.
21332
21333 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
21334 fontset.c.
194d44e7 21335 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
21336 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
21337 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
21338 only when HAVE_WINDOW_SYSTEM is defined.
21339 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
21340 when HAVE_WINDOW_SYSTEM is defined.
21341
21342 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
21343 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
21344
21345 * xfaces.c: Include font.h unconditionally.
21346 (merge_face_ref, merge_face_vectors)
21347 (Finternal_set_lisp_face_attribute): Cancel the previous change.
21348
213492008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
21350
21351 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
21352 indirect_variable.
21353 * eval.c (lisp_indirect_variable): New fun.
21354 (Fuser_variable_p): Use it.
21355
213562008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21357
21358 * lisp.h (indirect_variable):
21359 * data.c (indirect_variable, let_shadows_buffer_binding_p):
21360 Use Lisp_Symbol pointers rather than Lisp_Object.
21361 Adjust callers.
21362 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
21363 To this end, change calling-convention.
21364
21365 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
21366 if some non-hidden buffers are selected by string&pred.
21367
213682008-05-19 Chong Yidong <cyd@stupidchicken.com>
21369
21370 * process.c (wait_reading_process_output): Always check status
21371 when in batch mode.
21372
213732008-05-19 Kenichi Handa <handa@m17n.org>
21374
21375 * font.c (font_list_entities): Fix handling of cache.
21376 (font_matching_entity): Likewise.
21377
21378 * ftfont.c (cs_iso8859_1): Delete.
21379 (ft_face_cache): New variable.
21380 (struct ftfont_info): New member fc_charset_idx.
21381 (ftfont_build_basic_charsets): Delete.
21382 (fc_charset_table): New variable.
21383 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
21384 . FC_CHARSET_IDX) as :font-entity property in the font entity.
21385 Callers changed.
21386 (ftfont_lookup_cache, ftfont_get_charset): New functions.
21387 (ftfont_spec_pattern): New argument fc_charset_idx.
21388 Check registry more rigidly. Change callers.
21389 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
21390 change of :font-entity property of the font.
21391
21392 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
21393 property of the font.
21394
213952008-05-18 Juanma Barranquero <lekktu@gmail.com>
21396
21397 * coding.c (Fcoding_system_p): Rename argument to match docstring.
21398 (Funencodable_char_position, Fcheck_coding_systems_region)
21399 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
21400 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
21401 (Ffind_operation_coding_system, Fset_coding_system_priority)
21402 (Fcoding_system_eol_type): Doc fixes.
21403
214042008-05-17 Glenn Morris <rgm@gnu.org>
21405
21406 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
21407
214082008-05-16 Eli Zaretskii <eliz@gnu.org>
21409
21410 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
21411 and st_gid.
21412
21413 * frame.c (Fdelete_frame): Don't call font_update_drivers if
21414 HAVE_WINDOW_SYSTEM is not defined.
21415
21416 * xfaces.c (merge_face_ref, merge_face_vectors)
21417 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
21418 HAVE_WINDOW_SYSTEM is defined.
21419 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
21420
214212008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
21422
21423 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
21424
214252008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21426
21427 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
21428
214292008-05-15 Kenichi Handa <handa@m17n.org>
21430
21431 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
21432 preference.
21433
214342008-05-15 Glenn Morris <rgm@gnu.org>
21435
21436 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
21437
214382008-05-15 Chong Yidong <cyd@stupidchicken.com>
21439
21440 * fns.c (init_fns): Don't initialize weak_hash_tables here.
21441 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
21442
21443 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
21444
214452008-05-15 Kenichi Handa <handa@m17n.org>
21446
21447 * ftfont.c (ftfont_list): Downcase family name to check generic
21448 families.
21449
21450 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
21451 font-spec for QCfont value.
21452
21453 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
21454 buffer. Check the return value of it.
21455
214562008-05-14 Jason Rumney <jasonr@gnu.org>
21457
21458 * w32term.c (w32_get_glyph_overhangs): Remove.
21459 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
21460
214612008-05-14 Kenichi Handa <handa@m17n.org>
21462
21463 * font.c (font_prop_validate): Make nil a valid value.
21464 (font_clear_cache): Check if the cached vector of entities is nil
21465 or not.
21466
214672008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21468
21469 * emacs.c (main_thread): Conditionalize on
21470 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21471 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
21472
21473 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
21474 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
21475 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21476
214772008-05-14 Kenichi Handa <handa@m17n.org>
21478
21479 * coding.c (detect_coding_iso_2022): Ignore a coding category that
21480 has no corresponding coding system.
21481
214822008-05-14 Jason Rumney <jasonr@gnu.org>
21483
21484 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
21485
21486 * w32font.h (w32font_open_internal): Update declaration.
21487
21488 * w32font.c (w32font_open_internal): Change last argument from
21489 w32font_info struct to font object. Fill in font object from
21490 font_entity. Get Outline metrics if possible. Use them to
21491 calculate underline position and thickness. Use xlfd name as name
21492 property. Don't set codepage.
21493 (w32font_open): Pass font_object to w32font_open_internal. Don't
21494 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
21495 (w32font_draw): Use s->font.
21496 (clear_cached_metrics): Don't clear non-existent blocks.
21497
21498 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
21499 font was not found.
21500 (x_draw_glyph_string): Use underline position and thickness from font.
21501
21502 * w32uniscribe.c (uniscribe_open): Pass font_object to
21503 w32font_open_internal.
21504
215052008-05-14 Kenichi Handa <handa@m17n.org>
21506
21507 These changes are to delete all legacy font-handling codes, and
21508 make Emacs use only font-backends.
21509
21510 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
21511 (frame.o, image.o, print.o): Depend on $(FONTSRC).
21512
21513 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
21514
21515 * charset.h (Vcharset_non_preferred_head)
21516 (Vcurrent_iso639_language): Extern them.
21517
21518 * charset.c (Vcharset_non_preferred_head): New variable.
21519 (Vcurrent_iso639_language): New variable.
21520 (syms_of_charset): Declare it as a Lisp variable.
21521 (char_charset): Don't check non preferred charsets. As a last
21522 resort, return charset_unicode.
21523 (Fset_charset_priority): Update Vcharset_non_preferred_head.
21524
21525 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
21526 conditionals. Don't check enable_font_backend. Delete all codes
21527 used only when USE_FONT_BACKEND is not defined.
21528
21529 * dispextern.h (struct glyph_string): Change type of `font' to
21530 `struct font *'.
21531 (struct glyph_string): New member underline_position and
21532 underline_thickness.
21533 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
21534 (struct face): Change type of `font' to `struct font *'.
21535 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
21536 (per_char_metric, encode_char): Delete externs.
21537 (calc_pixel_width_or_height): Adjust the prototype.
21538
21539 * emacs.c (enable_font_backend): Delete extern.
21540 (main): Don't set enable_font_backend. Don't check the command
21541 line argument "-disable-font-backend".
21542
21543 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
21544 (enum font_property_index): New members FONT_DPI_INDEX,
21545 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
21546 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
21547 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
21548 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
21549 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
21550 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
21551 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
21552 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
21553 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 21554 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
21555 (struct font): Many members from old "struct font_info" moved to
21556 here. Members font and entity deleted.
21557 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
21558 the new font-related objects.
21559 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
21560 (CHECK_FONT_GET_OBJECT): Likewise.
21561 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 21562 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
21563 (struct font_driver): New members case_sensitive anc check.
21564 Type of the member list and open changed.
aac0c6e3
MR
21565 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
21566 (font_symbolic_width, font_find_object, font_get_spec)
21567 (font_set_lface_from_name): Delete extern.
21568 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
21569
21570 * font.c: Include <strings.h>.
21571 (enable_font_backend): Delete it.
21572 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
21573 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 21574 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
21575 (null_string): Delete it.
21576 (null_vector): Make it static.
21577 (font_family_alist): Delete it.
21578 (Qnormal): Extern it.
21579 (QCextra, QClanguage): Delete it.
21580 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
21581 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 21582 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 21583 the string. Callers changed.
bba3e508 21584 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
21585 objects.
21586 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
21587 (font_style_to_value, font_style_symbolic): New function.
21588 (build_font_family_alist): Delete it.
21589 (font_registry_charsets): Use Fassoc_string instead of
21590 assq_no_quit.
21591 (font_prop_validate_symbol): Don't return null_string.
bba3e508 21592 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
21593 style-related values in a font vector.
21594 (font_property_table): Delete entries for QClanguage and
21595 QCantialias, add entries for QCavgwidth.
21596 (get_font_prop_index): Delete the 2nd argument FROM.
21597 (font_prop_validate): Arguments changed.
bba3e508 21598 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
21599 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
21600 (font_parse_fcname, font_unparse_fcname)
21601 (font_prepare_composition): Likewise.
ef1b0ba7 21602 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 21603 (otf_open): Delete the 1st arg entity.
bba3e508 21604 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
21605 (font_score): New arg alternate_families. Adjusted for the change
21606 of font-related objects.
21607 (font_sort_entites): New arg best_only.
21608 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
21609 Delete them.
21610 (font_match_p): Check alternate families.
21611 (font_find_object): Delete it.
21612 (font_check_object): New function.
bba3e508 21613 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
21614 (font_delete_unmatched): New arg.
21615 (font_list_entities): Call font_driver->list with a spec that
21616 doesn't specify style-related properties.
21617 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 21618 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
21619 (font_close_object, font_has_char, font_encode_char)
21620 (font_get_name, font_get_spec): Likewise.
21621 (font_spec_from_name, font_clear_prop, font_update_lface):
21622 New functions.
21623 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
21624 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 21625 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
21626 (font_range): New function.
21627 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 21628 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 21629 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 21630 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
21631 (Finternal_set_font_style_table): Arguments changed.
21632 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 21633 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
21634 change of font-related objects.
21635 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
21636
21637 * fontset.h (struct font_info): Delete it. Most members go to
21638 struct font.
ef1b0ba7 21639 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
21640 (enum FONT_SPEC_INDEX): Delete it.
21641 (font_info, list_fonts_func, load_font_func, query_font_func)
21642 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
21643 (get_font_repertory_func, new_fontset_from_font_name):
21644 Delete externs.
aac0c6e3
MR
21645 (fontset_from_font_name): Extern it.
21646 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
44f230aa 21647 (FONT_INFO_FROM_FACE): Delete.
aac0c6e3
MR
21648 (face_for_font): Adjust prototype.
21649
21650 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
21651 conditionals. Don't check enable_font_backend. Delete all codes
21652 used only when USE_FONT_BACKEND is not defined.
21653 (get_font_info_func, list_font_func, load_font_func)
21654 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
21655 (get_font_repertory_func): Delete them.
21656 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
21657 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
21658 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
21659 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
21660 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
21661 (fontset_compare_rfontdef): New function.
21662 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
21663 rfont-defs by qsort. Adjusted for the change of font-group vector.
44f230aa 21664 (load_font_get_repertory): Delete.
aac0c6e3
MR
21665 (fontset_find_font): Use new macros to ref/set elements of
21666 font-def and rfont-def.
21667 (fontset_font): Fix the timing of remembering that no font for C.
21668 (free_face_fontset): Do nothing if the face has no fontset.
21669 (face_suitable_for_char_p): Use new macros to ref/set elements of
21670 rfont-def.
21671 (face_for_char): Likewise. Call face_for_char with font_object.
21672 (fs_load_font): Delete. Delete #pragma surrounding it.
21673 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 21674 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
21675 font-spec.
21676 (Fset_fontset_font): Likewise. Use new macros to set elements of
21677 font-def.
21678 (Fnew_fontset): Use font_unparse_xlfd to generate
21679 FONTSET_ASCII (fontset).
44f230aa 21680 (new_fontset_from_font_name): Delete.
ef1b0ba7 21681 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
21682 a fontset is already created for the font. FIx updating of
21683 Vfontset_alias_alist.
44f230aa 21684 (fontset_ascii_font): Delete.
bba3e508 21685 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
21686 (Finternal_char_font): Likewise.
21687 (Ffontset_info): Likewise.
21688 (syms_of_fontset): Don't check load_font_func.
21689
21690 * fns.c (internal_equal): Handle PREV_FONT.
21691
21692 * frame.h: Delete USE_FONT_BACKEND conditional.
21693
21694 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
21695 conditionals. Don't check enable_font_backend. Delete all codes
21696 used only when USE_FONT_BACKEND is not defined.
21697 (x_set_font): Call x_new_font, not x_new_fontset2.
21698 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
21699 already set for the frame.
21700
bba3e508
SM
21701 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
21702 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
21703 of intern_downcase. Use FONT_SET_STYLE to set a style-related
21704 font property. If a font is scalable, set avgwidth property to 0.
21705 Set font-entity property by font_put_extra.
21706 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 21707 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
21708 (ftfont_spec_pattern): New function.
21709 (ftfont_list): Return a list, not vector.
21710 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
21711 (ftfont_list_family): Don't downcase names.
44f230aa 21712 (ftfont_free_entity): Delete.
aac0c6e3
MR
21713 (ftfont_open): Return a font-object. Adjusted for the change of
21714 struct font. Get underline_thickness and underline_position from
21715 font property. Don't update dpyinfo->smallest_font_height and
21716 dpyinfo->smallest_char_width.
21717 (ftfont_close): Don't free `struct font'.
bba3e508 21718 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
21719 (ftfont_encode_char, ftfont_text_extents): Likewise.
21720
21721 * ftxfont.c (ftxfont_list): Return a list, not vector.
21722 (ftxfont_open): Return a font-object. Adjusted for the change of
21723 struct font. Get underline_thickness and underline_position from
21724 font property. Don't update dpyinfo->smallest_font_height and
21725 dpyinfo->smallest_char_width.
21726 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 21727 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 21728
bba3e508
SM
21729 * image.c (image_ascent): Don't include "charset.h".
21730 Include "character.h" and "font.h".
aac0c6e3
MR
21731
21732 * lisp.h (enum pvec_type): New member PREV_FONT.
21733 (Fassoc_string): EXFUN it.
21734
21735 * print.c: Include font.h.
21736 (print_object): Handle font-related objects.
21737
21738 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
21739 conditionals. Don't check enable_font_backend. Delete all codes
21740 used only when USE_FONT_BACKEND is not defined.
21741 (handle_auto_composed_prop): Do nothing if it->f is not on a
21742 window system. Check how many following characters can be
21743 displayed by the same font.
21744 (calc_pixel_width_or_height): Type of the 4th arg is changed to
21745 'struct font *'.
21746 (get_char_face_and_encoding): Assign the whole encoding task to
21747 the `encode-char' method of a font driver.
bba3e508 21748 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
21749 face' and `struct glyph_string'.
21750 (fill_glyph_string): Likewise.
21751 (get_per_char_metric): Arguments changed.
bba3e508 21752 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
21753 and `struct glyph_string'.
21754 (produce_stretch_glyph, calc_line_height_property)
21755 (x_produce_glyphs): Likewise.
21756
21757 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
21758 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
21759 used only when USE_FONT_BACKEND is not defined.
21760 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
21761 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
21762 (Qp): Extern them.
21763 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
44f230aa
SM
21764 Delete.
21765 (struct font_name): Delete.
21766 (xlfd_numeric_value, xlfd_symbolic_value): Delete.
aac0c6e3
MR
21767 (compare_fonts_by_sort_order): New function.
21768 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
21769 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
44f230aa 21770 Delete.
aac0c6e3
MR
21771 (Fx_family_fonts): Use font_list_entities, and sort fonts by
21772 compare_fonts_by_sort_order.
21773 (Fx_font_family_list): Call Ffont_family_list.
21774 (face_numeric_value, face_numeric_weight, face_numeric_slant)
21775 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
21776 (face_symbolic_slant, face_symbolic_swidth)
21777 (split_font_name_into_vector, build_font_name_from_vector)
21778 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
21779 (font_rescale_ratio, split_font_name, build_font_name)
21780 (free_font_names, sort_fonts, x_face_list_fonts)
21781 (face_font_available_p, sorted_font_list, cmp_font_names)
21782 (font_list_1, concat_font_list, font_list, remove_duplicates):
44f230aa 21783 Delete.
aac0c6e3 21784 (Fx_list_fonts): Use Ffont_list.
44f230aa 21785 (LFACE_AVGWIDTH): Delete.
aac0c6e3
MR
21786 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
21787 by FONTP.
21788 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
21789 (set_lface_from_font_name): Delete it.
ef1b0ba7 21790 (set_lface_from_font): Rename from
aac0c6e3
MR
21791 set_lface_from_font_and_fontset. Caller changed. Don't set
21792 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
21793 for face.
21794 (merge_face_vectors): Copy font-spec if necessary.
21795 Clear properties of the font-spec if necessary.
21796 (merge_face_ref): Clear properties of the font-spec if necessary.
21797 (Finternal_set_lisp_face_attribute): Likewise.
21798 (set_font_frame_param): Use font_load_for_lface to load a
21799 font-object, and call Fmodify_frame_parameters with it.
21800 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
21801 font name by Ffont_xlfd_name.
21802 (Finternal_lisp_face_attribute_values): Don't check QCweight,
21803 QCslant, and QCwidth.
21804 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21805 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21806 Compare fonts by EQ.
44f230aa 21807 (lookup_non_ascii_face): Delete.
aac0c6e3
MR
21808 (face_for_font): The 2nd argument changed.
21809 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21810 Check atomic font properties by case insensitive.
21811 (realize_non_ascii_face): Set face->overstrike correctly.
21812 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
21813 (dump_realized_face): Get font name from
21814 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
21815
21816 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21817 conditionals. Don't check enable_font_backend. Delete all codes
21818 used only when USE_FONT_BACKEND is not defined.
21819 (xic_create_xfontset): Original code deleted and renamed from
21820 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
21821 (x_make_gc): Don't set GCFont in GCs.
21822 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21823 opened by "fixed".
21824 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21825 find_ccl_program_func, query_font_func, set_frame_fontset_func,
21826 get_font_repertory_func.
21827
21828 * xfont.c: Include <stdlib.h> and "ccl.h".
21829 (struct xfont_info): New structure.
44f230aa 21830 (xfont_query_font): Delete.
ef1b0ba7 21831 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 21832 moved from xterm.c.
bba3e508 21833 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 21834 (compare_font_names): New function.
ef1b0ba7
SM
21835 (xfont_list_pattern): Sort font names case insensitively.
21836 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
21837 (xfont_list): Return a list, not vector.
21838 (xfont_match): If the font doesn't have QCname property, generate
21839 a name from the other font properties.
21840 (xfont_open): Return a font-object. Adjusted for the change of
21841 struct font. Get underline_thickness and underline_position from
21842 font property. Don't update dpyinfo->smallest_font_height and
21843 dpyinfo->smallest_char_width.
21844 (xfont_close): Don't free struct font.
bba3e508 21845 (xfont_prepare_face): Adjust for the change of struct font.
44f230aa 21846 (xfont_done_face): Delete.
bba3e508 21847 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
21848 (xfont_encode_char, xfont_draw): Likewise.
21849 (xfont_check): New function.
21850
bba3e508 21851 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 21852 callback function.
bba3e508
SM
21853 (xftfont_match): Adjust for the format change of font-entity.
21854 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
21855 font-object. Adjusted for the change of struct font. Return a
21856 font-object. Don't update dpyinfo->smallest_font_height and
21857 dpyinfo->smallest_char_width.
21858 (xftfont_close): Block input while calling XftFontClose.
21859 (xftfont_prepare_face): Don't block input while calling
21860 xftfont_get_colors. Adjusted for the change of struct font.
21861 (xftfont_shape): Return value of error case fixed.
21862
21863 * xrdb.c (x_load_resources): Don't setup a fontset resource.
21864
21865 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21866 conditionals.
21867 (FONT_WIDTH): Return (f)->max_width.
21868 (struct x_display_info): Delete member `font'.
21869 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21870 (x_find_ccl_program, x_get_font_repertory): Delete externs.
21871 (struct x_output): Change type of `font' to `struct font *'.
21872
21873 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21874 conditionals. Don't check enable_font_backend. Delete all codes
21875 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
44f230aa 21876 (x_per_char_metric, x_encode_char): Delete.
aac0c6e3 21877 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 21878 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
21879 `struct face'.
21880 (x_draw_glyph_string_foreground)
21881 (x_draw_composite_glyph_string_foreground): Likewise.
21882 (x_draw_glyph_string): Likewise. Use font->underline_position and
21883 font->underline_thickness.
ef1b0ba7 21884 (x_new_font): Rename from x_new_fontset2.
44f230aa 21885 (x_new_fontset, x_get_font_info, x_list_fonts): Delete.
aac0c6e3
MR
21886 (x_check_font): Call `check' method of a font driver.
21887 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
44f230aa 21888 (x_query_font, x_get_font_repertory): Delete.
ef1b0ba7 21889 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 21890 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
21891 redisplay_interface'.
21892
21893 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
21894 conditionals. Don't check enable_font_backend. Delete all codes
21895 used only when USE_FONT_BACKEND is not defined. Surround non-used
21896 code by "#ifdef OLD_FONT" and "endif".
21897 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21898
21899 * w32font.h (struct w32font_info): New member.
21900 (FONT_COMPAT): New macro.
21901 (w32font_open_internal): Prototype adjusted.
21902
21903 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21904 OLD_FONT" and "endif".
21905
21906 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
21907 conditionals. Don't check enable_font_backend. Delete all codes
21908 used only when USE_FONT_BACKEND is not defined.
21909 (w32font_open): Return a font-object. Make a font-object by
21910 font_make_object. Adjusted for the change of struct w32font_info.
21911 (w32font_close): Don't free struct font. Adjusted for the change
21912 of struct w32font_info.
21913 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 21914 Adjust for the change of struct w32font_info.
aac0c6e3
MR
21915 (w32font_draw): Likewise.
21916 (w32font_list_internal): Return a list, not vector.
21917 (w32font_open_internal): Change the 4th arg to font-object.
21918 Adjusted for the change of struct w32font_info and font-object format.
21919 (add_font_name_to_list): Don't downcase names.
21920 (w32_enumfont_pattern_entity): Make a font-entity by
21921 font_make_entity. Adjusted for the format change of font-entity.
21922 Use FONT_SET_STYLE to set a style-related font property. If a
21923 font is scalable, set avgwidth property to 0. Set font-entity
21924 property by font_put_extra.
bba3e508 21925 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
21926 (w32_weight_table, w32_decode_weight): New variables.
21927 (w32_encode_weight): New function.
bba3e508 21928 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
21929 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21930 weight value.
bba3e508 21931 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
21932
21933 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21934 conditionals. Don't check enable_font_backend. Surround non-used
21935 code by "#ifdef OLD_FONT" and "endif".
21936 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 21937 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
21938
21939 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21940 conditionals. Don't check enable_font_backend. Delete all codes
21941 used only when USE_FONT_BACKEND is not defined. Surround non-used
21942 code by "#ifdef OLD_FONT" and "endif".
21943
21944 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21945 (uniscribe_open): Return value changed to font-object.
21946 Adjusted for the format change of font-object.
bba3e508 21947 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 21948 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 21949 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
21950 font_driver.
21951
219522008-05-13 Chong Yidong <cyd@stupidchicken.com>
21953
21954 * dispnew.c (update_frame_1): Check if tty output is still valid
21955 before flushing it.
21956
219572008-05-13 Jan Djärv <jan.h.d@swipnet.se>
21958
21959 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
21960 to Gtk+ menus.
21961
219622008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
21963
21964 * dired.c (file_name_completion): Tweak the code so as to always do it
21965 in a single pass. Tighten the scope of some variables.
21966
21967 * dired.c (Qdefault_directory): New var.
21968 (file_name_completion): Use it instead of Fexpand_file_name.
21969 (syms_of_dired): Initialize it.
21970
219712008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
21972
21973 * fileio.c (double_dollars): Remove dead code.
21974
219752008-05-10 Eli Zaretskii <eliz@gnu.org>
21976
21977 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
21978 Mention w32-get-true-file-attributes in doc string.
21979
21980 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
21981
219822008-05-09 Glenn Morris <rgm@gnu.org>
21983
21984 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
21985 2008-04-23.
21986
219872008-05-09 Eli Zaretskii <eliz@gnu.org>
21988
21989 Support for reporting owner and group of each file on MS-Windows:
21990 * dired.c (stat_uname, stat_gname): New functions, with special
21991 implementation for w32.
21992 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
21993
21994 * w32.c: Rename the_passwd_* to dflt_passwd_*.
21995 (dflt_group_name): New static variable.
21996 (dflt_group): Rename from the_group.
21997 (init_user_info): Init dflt_group fields. Get user's group name
21998 from LookupAccountSid.
21999 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
22000 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
22001 New initialization states.
22002 (globals_of_w32): Initialize them to zero. Initialize the default
22003 group name to "None".
22004 (GetFileSecurity_Name): New global var, the name of the function
22005 to call for GetFileSecurity.
22006 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
22007 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
22008 (get_file_security, get_security_descriptor_owner)
22009 (get_security_descriptor_group, is_valid_sid)
22010 (get_file_security_desc, get_rid, get_name_and_id)
22011 (get_file_owner_and_group): New functions.
22012 (stat): Use get_file_security_desc and get_file_owner_and_group to
22013 report the owner and primary group of each file. Don't ignore the
22014 high 32 bits of file's size, now that st_size is 64-bit wide.
22015 Fix test when to get true file attributes.
22016 (init_user_info): Use get_rid instead of equivalent inline code.
22017 (fstat): Don't ignore the high 32 bits of file's size.
22018
220192008-05-09 Chong Yidong <cyd@stupidchicken.com>
22020
22021 * image.c (png_load): Use correct bit-depth for setting background
22022 color.
22023
220242008-05-08 Eli Zaretskii <eliz@gnu.org>
22025
22026 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
22027 epa-hook.elc.
22028
220292008-05-08 Juanma Barranquero <lekktu@gmail.com>
22030
22031 * font.c (Ffont_match_p): Don't use `iff' in docstring.
22032
220332008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
22034
22035 * macfns.c (Fx_create_frame): Make a copy of frame parameters
22036 because the original parameters are in pure storage now.
22037 (mac_window): Remove unused params. Update callers.
22038
220392008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
22040
22041 * lread.c (substitute_object_recurse): Use lower-level primitives.
22042 Don't signal errors when traversing sub-char-tables.
22043 Don't loop over all the possible characters when traversing char-tables.
22044
22045 * print.c (print_preprocess): Add sub-char-tables to the print-table,
22046 just like we do in print.c.
22047
220482008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
22049
22050 * minibuf.c (Ftry_completion): Remove code left over from when we used
22051 scmp instead of Fcompare_strings.
22052
220532008-05-04 Juanma Barranquero <lekktu@gmail.com>
22054
22055 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
22056
220572008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22058
22059 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
22060 Create bitmap context in native byte order.
22061
22062 * macterm.c (XDrawLine)
22063 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
22064 context in native byte order.
22065
220662008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22067
22068 * config.in: Regenerate.
22069
22070 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
22071 New definitions for Image I/O support.
22072 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
22073 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
22074 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
22075 (mac_data_provider_release_data, image_load_image_io)
22076 [USE_MAC_IMAGE_IO]: New functions.
22077 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
22078 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
22079 (init_image_func_pointer) [MAC_OSX]: Remove function.
22080 (image_load_quartz2d) [MAC_OSX]: Check availability of
22081 CGImageCreateWithPNGDataProvider at compile time.
22082 Use lowercase `false' for boolean constant.
22083 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
22084 Use image_load_image_io.
22085 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
22086 Don't check MyCGImageCreateWithPNGDataProvider.
22087 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
22088 Don't call init_image_func_pointer.
22089
22090 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
22091
22092 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
22093 Make variable non-static.
22094 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
22095 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
22096
22097 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
22098 (RED_FROM_ULONG): Mask off higher bits.
22099 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
22100
22101 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
22102 Include AvailabilityMacros.h.
22103 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
22104 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
22105
221062008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
22107
22108 * chartab.c (Fset_char_table_range): If range is t, really set all
22109 chars to that value.
22110
221112008-05-03 Eli Zaretskii <eliz@gnu.org>
22112
22113 * dired.c (Ffile_attributes): Don't allow the device number become
22114 negative.
22115
221162008-05-02 Daiki Ueno <ueno@unixuser.org>
22117
22118 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
22119
221202008-05-02 Juri Linkov <juri@jurta.org>
22121
22122 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
22123 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
22124 DEFAULT argument as a list of default values in docstrings.
22125
221262008-05-01 Chong Yidong <cyd@stupidchicken.com>
22127
22128 * puresize.h (BASE_PURESIZE): Increase to 1210000.
22129
221302008-05-01 Martin Rudalics <rudalics@gmx.at>
22131
22132 * dispnew.c (change_frame_size_1): Preserve small windows when
22133 shrinking frames by calling set_window_height|width with third
22134 arg 2.
22135
22136 * window.h (struct window): Replace field too_small_ok by field
22137 resize_proportionally.
22138
22139 * window.c (make_window): Initialize resize_proportionally.
22140 (enlarge_window): Temporarily set resize_proportionally to make
22141 sure that shrink_windows does scale the window proportionally.
22142 (shrink_windows): When window has resize_proportionally set try
22143 to shrink it proportionally by stealing from other windows.
22144 (struct saved_window, Fset_window_configuration)
22145 (compare_window_configurations): Handle resize_proportionally.
22146 (WINDOW_TOTAL_SIZE): New macro.
22147 (window_min_size, shrink_windows, size_window): Use it.
22148 (check_min_window_sizes): Remove. Invalid values of
22149 window-min-height|width are handled by window_min_size_2 now.
22150 (size_window, Fsplit_window, enlarge_window)
22151 (adjust_window_trailing_edge, grow_mini_window): Don't call
22152 check_min_window_sizes.
22153 (window_min_size_2, window_min_size_1, window_min_size):
22154 New argument safe_p for retrieving "safe" minimum sizes.
22155 (Fdisplay_buffer, Fsplit_window, enlarge_window)
22156 (adjust_window_trailing_edge, grow_mini_window):
22157 Adjust arguments of window_min_size... functions.
22158 (shrink_windows): Argument min_size removed. New argument
22159 safe_p allows shrinking windows to their safe minimum sizes.
22160 Calculate minimum size and decide whether a window shall be
22161 deleted for each window individually.
22162 (size_window): When nodelete_p equals 2, tell shrink_windows to
22163 delete windows only if their new minimum size is no more safe.
22164 (shrink_window_lowest_first): Call window_min_size_1 to make
22165 sure to preserve modeline of bottom-most window when resizing
22166 the minibuffer.
22167 (Fset_window_configuration, Fcurrent_window_configuration)
22168 (compare_window_configurations): Do not handle
22169 window-min-height|width any more.
22170 (syms_of_window): Clarify window-min-height|width doc-strings.
22171
221722008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
22173
22174 * dired.c (file_name_completion): Fix up the encoding/decoding issue
22175 some more. Copy some of the code from Ftry_completions.
22176 Remove special case code that dates back to initial revision when the
22177 slash was only added when necessary and that can't trigger nowadays.
22178
221792008-04-27 Kenichi Handa <handa@m17n.org>
22180
22181 * font.c (font_prop_validate): Signal `error' instead of `font'.
22182
221832008-04-29 Jason Rumney <jasonr@gnu.org>
22184
22185 * w32fns.c (Fw32_battery_status): New defun.
22186 (syms_of_w32fns): Defsubr it.
22187
221882008-04-28 Andreas Schwab <schwab@suse.de>
22189
22190 * dired.c (file_name_completion): Fix another mixing of encoded
22191 and decoded names.
22192
221932008-04-28 Juanma Barranquero <lekktu@gmail.com>
22194
22195 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
22196
221972008-04-27 Juanma Barranquero <lekktu@gmail.com>
22198
22199 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
22200
222012008-04-27 Andreas Schwab <schwab@suse.de>
22202
22203 * dired.c (file_name_completion): Fix inappropriate mixing of
22204 encoded and decoded names.
22205
22206 * xterm.c (XTread_socket): Fix use of uninitialized variable.
22207
22208 * puresize.h (BASE_PURESIZE): Increase to 1200000.
22209
222102008-04-26 Eli Zaretskii <eliz@gnu.org>
22211
22212 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
22213 2008-03-31, it's not needed anymore with `struct stat' definition
22214 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
22215 for the same reasons.
22216
222172008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
22218
22219 * m/sparc.h: Additional redefinitions for GNU/Linux.
22220
222212008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22222
22223 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
22224 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
22225 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
22226 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
22227 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
22228 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
22229 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22230 Likewise.
22231
22232 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
22233 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
22234 (mac_ax_number_of_characters): Add externs.
22235 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
22236 [USE_MAC_TSM]: Likewise.
22237 (mac_handle_text_input_event) [MAC_OSX]:
22238 Handle kEventTextInputOffsetToPos for no active input area case.
22239 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
22240 (mac_handle_document_access_event)
22241 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
22242 (install_application_handler) [MAC_OSX]: Register handlers for
22243 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
22244 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22245 Register mac_handle_document_access_event.
22246
22247 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
22248 Make functions non-static.
22249
222502008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
22251
22252 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
22253 (read_file_name_completion_ignore_case, insert_default_directory)
22254 (Qdefault_directory): Move to minibuffer.el.
22255 (Fread_file_name): Call the new `read-file-name' instead.
22256
222572008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22258
22259 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
22260 Make function non-static.
22261 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
22262 Remove function.
22263 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
22264 Move to mactoolbox.c.
22265 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
22266
22267 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
22268 (mac_rect_make): New macro.
22269
22270 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
22271 instead of float.
22272 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
22273 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
22274 (XSetBackground) [USE_CG_DRAWING]: Likewise.
22275 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
22276 CGRectMake.
22277 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
22278 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
22279 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
22280 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
22281 instead of WindowRef in argument type.
22282 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
22283 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
22284 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
22285 instead of DISPLAY. All uses changed.
22286 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
22287 (x_calc_absolute_position): Simplify so as not to use
22288 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
22289
22290 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
22291 instead of WindowRef in argument type.
22292 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
22293 [TARGET_API_MAC_CARBON]: Remove externs.
22294 (create_apple_event, mac_event_parameters_to_lisp)
22295 [TARGET_API_MAC_CARBON]: Add externs.
22296
22297 * mactoolbox.c (Vmac_ts_script_language_on_focus)
22298 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
22299 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
22300 is clicked.
22301 (x_activate_menubar): Remove extern for saved_menu_event_location.
22302 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
22303 Move from mac.c.
22304
223052008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22306
22307 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
22308 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
22309
223102008-04-23 Jason Rumney <jasonr@gnu.org>
22311
22312 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
22313 attributes only for local files.
22314
22315 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
22316 default to Qlocal.
22317
223182008-04-22 Juri Linkov <juri@jurta.org>
22319
22320 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
22321 read-buffer-to-switch instead of using the letter "B".
22322
223232008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
22324
22325 * fileio.c (Qdefault_directory): New variable.
22326 (Fread_file_name): Use it to pass `dir' to the completion functions.
22327
223282008-04-20 Chong Yidong <cyd@stupidchicken.com>
22329
22330 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
22331
223322008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
22333
22334 * keyboard.c (Vpre_help_message): Remove.
22335 (show_help_echo): Remove default C code.
22336
22337 * dired.c (directory_files_internal, file_name_completion):
22338 Only call ENCODE_FILE if the string is indeed decoded.
22339
223402008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22341
22342 * Makefile.in (TOOLKIT_DEFINES): Remove.
22343 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
22344
223452008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22346
22347 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
22348 (mactoolbox.o): New target.
22349
22350 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
22351 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
22352
22353 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
22354 Use mac_set_frame_window_background instead of XSetWindowBackground.
22355 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
22356 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
22357 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
22358 instead of SetWindowTitleWithCFString.
22359 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
22360 Move function to mactoolbox.c.
22361 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
22362 Use mac_set_window_modified instead of SetWindowModified.
22363 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
22364 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
22365 (Fx_focus_frame): Use mac_front_non_floating_window instead of
22366 FrontNonFloatingWindow. Use mac_activate_window instead of
22367 ActivateWindow. Use mac_active_non_floating_window instead of
22368 ActiveNonFloatingWindow.
22369 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
22370 Use mac_show_hourglass and mac_hide_hourglass.
22371 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
22372 instead of GetGlobalMouse.
22373 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
22374 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
22375 Use mac_bring_window_to_front instead of BringToFront.
22376 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
22377 mactoolbox.c.
22378 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
22379 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
22380 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
22381 mactoolbox.c.
22382
22383 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
22384 (XtPointer): Move typedef from macmenu.c.
22385 (enum button_type): Move enum from macmenu.c.
22386 (widget_value): Move typedef from macmenu.c.
22387 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
22388 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22389 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22390 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22391 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22392 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22393 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22394 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
22395 (Selection): Move typedef from macselect.c.
22396 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
22397 macterm.c.
22398 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
22399 (mac_is_window_collapsed, mac_bring_window_to_front)
22400 (mac_send_window_behind, mac_hide_window, mac_show_window)
22401 (mac_collapse_window, mac_front_non_floating_window)
22402 (mac_active_non_floating_window, mac_activate_window)
22403 (mac_move_window_structure, mac_move_window, mac_size_window)
22404 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
22405
22406 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
22407 (enum mac_menu_kind): Move enum to mactoolbox.c.
22408 (min_menu_id): Move variable to mactoolbox.c.
22409 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
22410 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
22411 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22412 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22413 [TARGET_API_MAC_CARBON]: Likewise.
22414 (XtPointer): Move typedef to macgui.h.
22415 (enum button_type): Move enum to macgui.h.
22416 (widget_value): Move typedef to macgui.h.
22417 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22418 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22419 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22420 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22421 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22422 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22423 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
22424 (popup_activated_flag): Make variable non-static.
22425 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
22426 (add_menu_item, fill_menu, dispose_menus):
22427 Move functions to mactoolbox.c.
22428 (restore_show_help_function, menu_target_item_handler)
22429 (install_menu_target_item_handler, mac_handle_dialog_event)
22430 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
22431 [TARGET_API_MAC_CARBON]: Likewise.
22432 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
22433 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22434 (find_and_call_menu_selection, name_is_separator): Make function
22435 non-static.
22436 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
22437 to mactoolbox.c.
22438 (set_frame_menubar): Don't call install_menu_quit_handler.
22439 (menu_item_selection): New variable.
22440 (mac_menu_show): Use create_and_show_popup_menu.
22441 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
22442 selection but set variable menu_item_selection. All uses changed.
22443 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
22444 Call install_menu_quit_handler. Move to mactoolbox.c.
22445
22446 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
22447 (Selection): Move typedef to macgui.h.
22448 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
22449 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
22450 Make variables non-static.
22451 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22452 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
22453 Make functions non-static.
22454 (Vmac_service_selection) [MAC_OSX]: Likewise.
22455 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
22456 (mac_valid_selection_target_p, mac_clear_selection)
22457 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22458 (mac_put_selection_value, mac_selection_has_target_p)
22459 (mac_get_selection_value, mac_get_selection_target_list)
22460 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
22461 Move functions to mactoolbox.c.
22462 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
22463 Likewise.
22464 (copy_scrap_flavor_data, mac_handle_service_event)
22465 (install_service_handler) [MAC_OSX]: Likewise.
22466 (syms_of_macselect) <Vmac_dnd_known_types>:
22467 Use mac_dnd_default_known_types.
22468
22469 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
22470 Move to mactoolbox.c.
22471 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
22472 (Fx_selection_owner_p): Add EXFUN.
22473 (install_window_handler, remove_window_handler, XSetWindowBackground):
22474 Remove externs.
22475 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
22476 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
22477 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
22478 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
22479 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
22480 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
22481 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
22482 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
22483 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
22484 (create_and_show_popup_menu, mac_get_selection_from_symbol)
22485 (mac_valid_selection_target_p, mac_clear_selection)
22486 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22487 (mac_put_selection_value, mac_selection_has_target_p)
22488 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
22489 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
22490 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
22491 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22492 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
22493 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22494 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
22495 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22496 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22497
22498 * mactoolbox.c: New file.
22499
225002008-04-18 Jason Rumney <jasonr@gnu.org>
22501
22502 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
22503
225042008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22505
22506 * character.c (Fmultibyte_char_to_unibyte):
22507 Return latin1 chars unchanged.
22508
22509 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
22510 relocated if it points to `name'.
22511
225122008-04-17 Kenichi Handa <handa@m17n.org>
22513
22514 * data.c (Faset): Allow setting a multibyte character in an
22515 ASCII-only unibyte string.
22516
22517 * lisp.h (STRING_SET_MULTIBYTE): New macro.
22518
225192008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
22520
22521 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
22522 done in config.h.
22523
225242008-04-16 Juanma Barranquero <lekktu@gmail.com>
22525
22526 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
22527 (Fchar_direction): Add usage in the docstring.
22528
225292008-04-15 Chong Yidong <cyd@stupidchicken.com>
22530
22531 * keyboard.c (read_key_sequence): Remove always-true checks.
22532
225332008-04-14 Jason Rumney <jasonr@gnu.org>
22534
22535 * w32font.c (w32font_open_internal): Set max_bounds.descent in
22536 compatibility struct, for better underline positioning.
22537
225382008-04-13 David Hansen <david.hansen@gmx.net>
22539
22540 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
22541 string.
22542
225432008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
22544
22545 * m/hp800.h (XUINT, XSET): Remove.
22546
225472008-04-12 Juanma Barranquero <lekktu@gmail.com>
22548
22549 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
22550 previous change.
22551
225522008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
22553
22554 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
22555 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
22556
225572008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22558
22559 * keymap.h (map_keymap_canonical): Declare.
22560 * xmenu.c (single_keymap_panes): Use it.
22561
225622008-04-11 Glenn Morris <rgm@gnu.org>
22563
22564 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
22565 set the target's value to that of the alias.
22566
225672008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22568
22569 * term.c (set_tty_color_mode): Left over typo.
22570
225712008-04-10 Michael Albinus <michael.albinus@gmx.de>
22572
22573 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
22574 only after check for file name handler functions. Signal, when
22575 native functionality is not supported.
22576 (syms_of_fileio): Declare it unconditionally.
22577
225782008-04-10 Jason Rumney <jasonr@gnu.org>
22579
22580 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
22581 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
22582
22583 * w32.c (logon_network_drive): Also logon to remote drives that
22584 are mapped to drive letters.
22585
225862008-04-10 Glenn Morris <rgm@gnu.org>
22587
22588 * xdisp.c (truncate-partial-width-windows): Doc fix.
22589
225902008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
22591
22592 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
22593 Move functions to minibuffer.el.
22594 (syms_of_fileio): Don't declare them.
22595
225962008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22597
22598 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
22599 (syms_of_minibuf): Remove its initialization.
22600
22601 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
22602
226032008-04-09 Juanma Barranquero <lekktu@gmail.com>
22604
22605 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
22606
226072008-04-09 Jason Rumney <jasonr@gnu.org>
22608
22609 * makefile.w32-in (distclean): Delete makefile too.
22610 (maintainer-clean): New target.
22611
22612 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
22613
22614 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
22615 for new font backend and composite cases.
22616
226172008-04-09 Jan Djärv <jan.h.d@swipnet.se>
22618
22619 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
22620 Most of the code moved to run_timers.
22621 (do_pending_atimers): Call run_timers.
22622 (run_timers): New function.
22623
22624 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
22625 run atimers.
22626
22627 * process.c (wait_reading_process_output): The same as above.
22628
226292008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22630
22631 * minibuf.c (last_exact_completion): Remove variable.
22632 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
22633 (complete_and_exit_1, complete_and_exit_2)
22634 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
22635 (Fdisplay_completion_list, display_completion_list_1)
22636 (Fminibuffer_completion_help, Fself_insert_and_exit)
22637 (Fexit_minibuffer, Fminibuffer_message): Move functions to
22638 minibuffer.el.
22639 (syms_of_minibuf): Remove corresponding initializations.
22640
22641 * keyboard.c (Qdeactivate_mark): New var.
22642 (command_loop_1): Use it to call `deactivate-mark'.
22643 (syms_of_keyboard): Initialize it.
22644
22645 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
22646 to another frame.
22647 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
22648 Don't call set_tty_color_mode.
22649 (store_frame_param): Reset previous_frame rather than call
22650 set_tty_color_mode.
22651 * term.c (set_tty_color_mode): Rewrite.
22652 * dispextern.h (set_tty_color_mode): New type.
22653 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
22654
226552008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
22656
22657 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
22658 for generic chars, which do not exist any more in emacs-unicode.
22659
226602008-04-08 Michael Albinus <michael.albinus@gmx.de>
22661
22662 * coding.c (detect_coding_emacs_mule)
22663 (Ffind_operation_coding_system): Fix typo.
22664
226652008-04-08 Jason Rumney <jasonr@gnu.org>
22666
22667 * w32uniscribe.c (SNAME): Extract only symbol name.
22668
22669 * w32font.h (struct w32_metric_cache): New struct.
22670 (w32font_info): Use it.
22671 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
22672 (CACHE_BLOCKSIZE): New constants.
22673
22674 * w32font.c (Qja, Qko, Qzh): New symbols.
22675 (syms_of_w32font): Initialise them.
22676 (font_matches_spec): Use them to filter by language.
22677 (recompute_cached_metrics): Remove function.
22678 (compute_metrics, clear_cached_metrics): New functions.
22679 (w32font_encode_char): Use them to manage metric cache.
22680 (w32font_text_extents): Cache metrics for all glyphs on demand.
22681 Delay converting glyph indices to WORD until needed.
22682 (w32font_open_internal): Initialize metric cache to empty.
22683 (registry_to_w32_charset): Charset should always be a symbol.
22684 (fill_in_logfont, list_all_matching_fonts): Family should
22685 always be a symbol.
22686
226872008-04-06 Jason Rumney <jasonr@gnu.org>
22688
22689 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
22690 Give up if glyph indices not supported. Use uniscribe obtained
22691 ABC widths for individual metrics. Map glyph clusters back to
22692 characters using fClusterStart flag. Return number of glyphs
22693 produced, not chars processed.
22694 (uniscribe_shape): Map char at FROM to current glyph.
22695
226962008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22697
22698 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
22699 Use SetMenuItemHierarchicalMenu.
22700
227012008-04-05 Jason Rumney <jasonr@gnu.org>
22702
22703 * image.c (pbm_load): Allow color values up to 65535.
22704 Throw an error if max_color_idx is outside the supported range.
22705 Report an error when image size is invalid.
22706 Read two bytes at a time when raw images have max_color_idx above 255.
22707
aac0c6e3
MR
227082008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
22709
22710 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
22711 append "CCL: Quitted" when the CCL program is quitted.
22712 (setup_ccl_program): Initialize ccl->quit_silently to zero.
22713
22714 * ccl.h (struct ccl_program): New member quit_silently.
22715
227162008-04-05 Chong Yidong <cyd@stupidchicken.com>
22717
22718 * search.c (compile_pattern_1): Treat non-nil and non-string of
22719 search-spaces-regexp as nil.
22720
22721 * minibuf.c (Fassoc_string): Tweak docstring.
22722
227232008-04-05 Eli Zaretskii <eliz@gnu.org>
22724
22725 * dired.c (Ffile_attributes): Support inode numbers wider than 32
22726 bits. Remove ugly WINDOWSNT-specific kludge introduced on
22727 2008-03-14 to force inode be positive.
22728
22729 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
22730 _S_* ones, since we now use our own sys/stat.h.
22731 (stat, fstat): Don't mangle the inode number.
22732 (init_user_info): Don't restrict UID and GID to 0-60000 range.
22733
227342008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
22735
22736 * frame.h (struct frame): Give one more bit to `visible' since we use
22737 values larger than 1 to indicate obscured frames on ttys.
22738
22739 * keymap.c (Qkeymap_canonicalize): New var.
22740 (Fmap_keymap_internal): New fun.
22741 (describe_map): Use keymap-canonicalize.
22742
22743 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
22744 (Fundo_boundary): Set them.
22745 (syms_of_undo): Initialize them.
22746 (record_point): Use them instead of last_point_position*.
22747 (last_undo_buffer): Change type.
22748
227492008-04-04 Jason Rumney <jasonr@gnu.org>
22750
22751 * w32font.c (w32font_text_extents): Use font's ascent and descent.
22752 (recompute_cached_metrics): Don't set ascent and descent per char.
22753
22754 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
22755 (uniscribe_check_otf): Add GC protection before consing.
22756 Rearrange loop for counting features.
22757
227582008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
22759
22760 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
22761 buffer with byte-size of source buffer.
22762
227632008-04-03 Chong Yidong <cyd@stupidchicken.com>
22764
22765 * callint.c (Fcall_interactively): Handle temporary region even
22766 when shift-select-mode is off.
22767
227682008-04-03 Jason Rumney <jasonr@gnu.org>
22769
22770 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
22771
227722008-04-03 Kenichi Handa <handa@m17n.org>
22773
22774 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
22775 (CATEGORY_MASK_UTF_16): Likewise.
22776 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
22777 binary file.
22778 (detect_coding): Add null-byte detection for a binary file.
22779 (detect_coding_system): Likewise.
22780
227812008-04-03 Jason Rumney <jasonr@gnu.org>
22782
22783 * w32uniscribe.c: New file.
22784
22785 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
22786
22787 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
22788
22789 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
22790 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
22791 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
22792 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
22793 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
22794 (Qphonetic): New symbols.
22795 (syms_of_w32font): Initialize them.
22796 (font_supported_scripts): Use them.
22797 (w32font_list_family): List all charsets.
22798 (w32font_text_extents, recompute_cached_metrics): Fix metric
22799 calculations.
22800 (w32_enumfont_pattern_entity): Make full_type a DWORD.
22801 Give opentype fonts their own format.
22802 (font_matches_spec): New arguments backend and logfont.
22803 Handle :otf spec for uniscribe backend.
22804 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22805 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22806
22807 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22808 font backend.
22809 (globals_of_w32fns): Initialize uniscribe font backend.
22810
22811 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
22812 dependencies.
22813 (w32uniscribe.$(O)): New file to build.
22814 (FONT_OBJ): Include w32uniscribe.$(O).
22815 (LIBS): Add uniscribe libraries.
22816
22817 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22818
228192008-04-02 Chong Yidong <cyd@stupidchicken.com>
22820
22821 * callint.c (Vshift_select_mode): New var.
22822 (Finteractive): Document new ^ spec.
22823 (Fcall_interactively): Call handle-shift-selection if the ^ spec
22824 is present.
22825
22826 * keyboard.c (Vthis_command_keys_shift_translated): New var.
22827 (command_loop_1): Avoid running the direct display versions of
22828 forward-char and backward-char if shift-selection may occur.
22829 (read_key_sequence): Set Vthis_command_keys_shift_translated if
22830 shift-translation takes place.
22831
22832 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22833 avoid clobbering by define-minor-mode.
22834
22835 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22836 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22837
22838 * syntax.c (Fforward_word): Add ^ interactive spec.
22839
22840 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22841 (Fscroll_right): Add ^ interactive spec.
22842
228432008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
22844
22845 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22846
22847 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22848
22849 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22850
228512008-03-31 Juri Linkov <juri@jurta.org>
22852
22853 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22854
228552008-03-30 Jan Djärv <jan.h.d@swipnet.se>
22856
22857 * gtkutil.c (xg_set_geometry): Fix indentation.
22858 (xg_resize_outer_widget): Remove.
22859 (x_wm_size_hint_off): Fix indentation.
22860 (xg_frame_set_char_size): Call flush_and_sync after
22861 gtk_window_resize.
22862 (x_wm_set_size_hint): Pass NULL as geometry window to
22863 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22864 Add menu bar and tool bar height to base height.
22865 (xg_update_frame_menubar, free_frame_menubar)
22866 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22867 (update_frame_tool_bar, free_frame_tool_bar):
22868 Change xg_resize_outer_widget to xg_frame_set_char_size.
22869
228702008-03-30 Michael Albinus <michael.albinus@gmx.de>
22871
22872 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22873 (Fdbus_call_method): New parameter TIMEOUT.
22874 (dbus-send-signal): Optimize UNGCPRO call.
22875
228762008-03-29 Juri Linkov <juri@jurta.org>
22877
22878 * window.c (Fdisplay_buffer): Move call to
22879 Vsplit_window_preferred_function out of conditions that check
22880 if window is eligible for vertical splitting.
22881 When Vsplit_window_preferred_function is non-nil, call it and use
22882 its non-nil return value as window. Otherwise, continue doing
22883 vertical splitting using Fsplit_window with arg horflag=nil.
22884 (syms_of_window) <Vsplit_window_preferred_function>: Change the
22885 default value from `split-window' to nil.
22886
228872008-03-29 Juri Linkov <juri@jurta.org>
22888
22889 * callint.c (Fcall_interactively): Revert 2008-03-16 change
22890 for interactive code letters 'b' and 'B'.
22891
228922008-03-29 Eli Zaretskii <eliz@gnu.org>
22893
22894 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22895 multibyte string.
22896
228972008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
22898
22899 * keyboard.c (pending_funcalls): New var.
22900 (timer_check): Run it.
22901 (syms_of_keyboard): Initialize it.
22902 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22903 (Vdelete_terminal_functions): New vars.
22904 (syms_of_terminal): Initialize them.
22905 (Fdelete_terminal): Run delete-terminal-functions.
22906 * xdisp.c (safe_eval): Rewrite.
22907 (safe_call2): New fun.
22908 * frame.c (Qdelete_frame_functions): New var.
22909 (syms_of_frame): Initialize it.
22910 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
22911 * lisp.h (safe_call2, pending_funcalls): Declare.
22912
229132008-03-28 Andreas Schwab <schwab@suse.de>
22914
22915 * indent.c (Fmove_to_column): Move declaration before statements.
22916
229172008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
22918
22919 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
22920 (struct frame): Use bit fields for boolean vars.
22921
22922 * process.c (server_accept_connection): Simplify naming.
22923 (emacs_get_tty_pgrp): Use SDATA.
22924
22925 * coding.c (decode_coding_object): Fix last change.
22926
229272008-03-27 Jason Rumney <jasonr@gnu.org>
22928
22929 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22930
229312008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
22932
22933 * charset.c (Fdefine_charset_internal): Change the way of
22934 registering charsets in Vcharset_order_list.
22935 (syms_of_charset): Make the charset `eight-bit' supplementary.
22936
229372008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
22938
22939 * regex.c (EXTEND_BUFFER): Change order of pointer addition
22940 operations, to avoid having the difference between pointers
22941 overflow.
22942
229432008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
22944
22945 * indent.c (check_display_width): New fun.
22946 (scan_for_column): Use it.
22947
22948 * data.c (syms_of_data): Mark most-positive-fixnum and
22949 most-negative-fixnum as constants.
22950
22951 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
22952
22953 * indent.c (scan_for_column): Extract from current_column_1.
22954 Merge with the same code from Fmove_to_column.
22955 (current_column_1, Fmove_to_column): Use it.
22956
229572008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
22958
22959 * keymap.c (map_keymap_internal): New fun.
22960 (map_keymap): Use it.
22961 (Fmap_keymap_internal): New fun.
22962 (Fmap_keymap): Remove left-out test from before make_save_value.
22963
22964 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
22965
22966 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
22967 Use XCAR/XCDR.
22968
22969 * process.h (struct Lisp_Process): Remove filter_multibyte.
22970 * process.c (QCfilter_multibyte): Remove.
22971 (setup_process_coding_systems): Don't use filter_multibyte.
22972 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
22973 (read_process_output): Don't adjust multibyteness to filter_multibyte.
22974 (Fset_process_filter_multibyte): Change the coding-system to
22975 approximate the previous behavior.
22976 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
22977 coding-system.
22978
22979 * coding.c (decode_coding_object): When not decoding into a buffer,
22980 obey the coding system's preference of (uni|multi)byte.
22981
229822008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
22983
22984 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
22985 every char is changed and has a different byte-length.
22986 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
22987 Fix int -> EMACS_INT.
22988
229892008-03-23 David Hansen <david.hansen@gmx.net>
22990
22991 * dbusbind.c (xd_read_message): Remove extra copying of message
22992 strings. Check for NULL `interface' or `member'.
22993
229942008-03-22 Eli Zaretskii <eliz@gnu.org>
22995
22996 * w32.c (readdir): If FindFirstFile/FindNextFile return in
22997 cFileName a file name that includes `?' characters, use the 8+3
22998 alias in cAlternateFileName instead.
22999
230002008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
23001
23002 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
23003
230042008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
23005
23006 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
23007 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
23008 work on current_buffer only instead (that was already the case
23009 for some of the code anyway).
23010 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
23011 (temp_set_point, temp_set_point_both): Use EMACS_INT.
23012 (SET_PT, SET_PT_BOTH): Adjust.
23013 * intervals.h (set_point, temp_set_point, set_point_both)
23014 (temp_set_point_both): Remove redundant declarations.
23015
230162008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
23017
23018 * fileio.c (Finsert_file_contents):
23019 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
23020 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
23021 when buffer != current_buffer anyway.
23022
230232008-03-20 Andreas Schwab <schwab@suse.de>
23024
23025 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
23026 as default.
23027
230282008-03-19 Jason Rumney <jasonr@gnu.org>
23029
23030 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
23031 (syms_of_w32fns): Initialize them.
23032 (HOURGLASS_ID): New constant.
23033 (x_window_to_frame): Don't check hourglass_window.
23034 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
23035 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
23036 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
23037 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
23038 Only change the cursor if hourglass is not active.
23039 (Fx_create_frame): Initialize frame's current_cursor.
23040 (hourglass_atimer): Remove.
23041 (hourglass_started): New function.
23042 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
23043 (show_hourglass): Adapt to w32, changing argument to frame.
23044
23045 * w32term.h (struct w32_output): Remove hourglass_window.
23046 Add current_cursor.
23047
23048 * eval.c (call_debugger, Fsignal):
23049 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
23050 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
23051 (Fexecute_extended_command, cancel_hourglass_unwind):
23052 * minibuf.c (read_minibuf):
23053 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
23054
230552008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
23056
23057 * window.c (run_funs): New fun.
23058 (run_window_configuration_change_hook): Use it to run the buffer-local
23059 and the global part of the hook.
23060
23061 * xdisp.c (format_mode_line_unwind_data): Add window argument.
23062 (unwind_format_mode_line): Restore selected window.
23063 (x_consider_frame_title, Fformat_mode_line): Set selected window.
23064
230652008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
23066
23067 * editfns.c (Fchar_equal): Check they are valid characters.
23068
23069 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
23070
230712008-03-17 Andreas Schwab <schwab@suse.de>
23072
23073 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
23074 against a charset.
23075
23076 * lisp.h (Fbuffer_list): Declare.
23077
230782008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 23079
aac0c6e3
MR
23080 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
23081 handlebox_widget is != 0.
23082
230832008-03-16 Juri Linkov <juri@jurta.org>
23084
23085 * callint.c (Fcall_interactively): For interactive code letters
23086 'b' and 'B' put the buffer list into the list of default "future"
23087 values of the minibuffer.
23088
230892008-03-16 Andreas Schwab <schwab@suse.de>
23090
23091 * keyboard.c (read_key_sequence): Fix downcasing of letters with
23092 modifiers.
23093
23094 * regex.c (re_match_2_internal): Correct matching of a charset
23095 against latin-1 characters.
23096
230972008-03-16 Kenichi Handa <handa@m17n.org>
23098
23099 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
23100 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
23101 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
23102 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
23103 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
23104 CHAR_STRING_ADVANCE.
23105 (produce_chars): Fix for the case that the source and the
23106 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
23107 instead of CHAR_STRING_ADVANCE.
23108 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
23109 STRING_CHAR_ADVANCE.
23110
231112008-03-15 Andreas Schwab <schwab@suse.de>
23112
23113 * regex.c (re_match_2_internal): Correct matching of eight bit
23114 characters in unibyte strings.
23115
231162008-03-15 Martin Rudalics <rudalics@gmx.at>
23117
23118 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
23119 at end of range when it coincides with the end of the buffer.
23120
231212008-03-14 Eli Zaretskii <eliz@gnu.org>
23122
23123 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
23124
23125 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
23126
231272008-03-14 Jason Rumney <jasonr@gnu.org>
23128
23129 * editfns.c (initial_tz): New variable.
23130 (syms_of_editfns): Initialize it.
23131 (Fset_time_zone_rule): Set it when first called.
23132 Use it when TZSTRING is nil.
23133
23134 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
23135 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
23136 (monitor_from_point_fn, get_monitor_info_fn): New globals.
23137 (globals_of_w32fns): Initialize them.
23138 (compute_tip_xy): Use them to position tooltips.
23139
231402008-03-14 Glenn Morris <rgm@gnu.org>
23141
23142 * emacs.c (main): Revert previous change.
23143 (standard_args): Revert -internal-script back to -scriptload,
23144 and remove the long-option form.
23145
231462008-03-13 Glenn Morris <rgm@gnu.org>
23147
23148 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
23149 Remove option -enable-font-backend.
23150
231512008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
23152
23153 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
23154
231552008-03-11 Jan Djärv <jan.h.d@swipnet.se>
23156
23157 * xterm.c (x_connection_closed): For GTK: If this is the last
23158 terminal just exit without closing the display.
23159
231602008-03-11 Jason Rumney <jasonr@gnu.org>
23161
23162 * w32font.c (w32font_full_name): Use floor to round.
23163
f0131492 231642008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
23165
23166 * sound.c (alsa_configure): Declare vol at beginning of block.
23167
23168 * fontset.c (Ffontset_info): Remove extra semicolon.
23169
231702008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
23171
23172 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
23173 size of resulting string.
23174
231752008-03-10 Jason Rumney <jasonr@gnu.org>
23176
23177 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
23178
231792008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23180
23181 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
23182 Don't pretend as if characters with display property haven't been
23183 consumed for string-replacing-string case.
23184
231852008-03-08 Kim F. Storm <storm@cua.dk>
23186
23187 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
23188 (get_next_display_element, next_element_from_string)
23189 (next_element_from_ellipsis, next_element_from_buffer): Use it.
23190
231912008-03-08 Andreas Schwab <schwab@suse.de>
23192
23193 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
23194
231952008-03-06 Jason Rumney <jasonr@gnu.org>
23196
23197 * w32font.c (w32_registry): Take font_type argument. Use ANSI
23198 when charset not specified. Only translate ANSI to unicode when
23199 font_type is truetype.
23200 (w32font_coverage_ok): New function.
23201 (add_font_entity_to_list): Use it to filter unsuitable fonts.
23202
232032008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
23204
23205 * lread.c (Fread_char): Resolve modifiers.
23206 (Fread_char_exclusive): Likewise.
23207
23208 * character.c (char_resolve_modifier_mask): New function.
23209 (char_string): Use char_resolve_modifier_mask.
23210 (Fchar_resolve_modifiers): New function.
23211 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
23212 function.
23213
232142008-03-04 Jason Rumney <jasonr@gnu.org>
23215
23216 * makefile.w32-in: Always include w32font.c in the build.
23217 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
23218
232192008-03-04 Andreas Schwab <schwab@suse.de>
23220
23221 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
23222 (versionclean): Likewise.
23223
232242008-03-04 Juanma Barranquero <lekktu@gmail.com>
23225
23226 * .cvsignore: Add oo.
23227
232282008-03-03 Andreas Schwab <schwab@suse.de>
23229
23230 * coding.c (decode_coding_object): Inhibit gap shrinking while
23231 decoding in place.
23232
232332008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
23234
23235 * w32term.c: Remove unused include "gnu.h".
23236 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
23237
23238 * gnu.h: Rename to ...
23239 * emacs-icon.h: ... this.
23240 * xterm.c: Use emacs-icon.h instead of gnu.h.
23241 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
23242
232432008-03-03 Juanma Barranquero <lekktu@gmail.com>
23244
23245 * w32font.c: Include math.h.
23246
232472008-03-03 Jason Rumney <jasonr@gnu.org>
23248
23249 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
23250 Compute options separately.
23251 (w32font_open_internal): Set glyph_idx before caching metrics.
23252
23253 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
23254 Define if system headers don't.
23255 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
23256 (w32font_encode_char): Don't declare here.
23257
23258 * w32font.c (Quniscribe, QCformat): New symbols.
23259 (syms_of_w32font): Define them.
23260 (w32font_has_char): Indicate uncertainty.
23261 (w32font_encode_char): Encode as glyph point. Make static.
23262 (recompute_cached_metrics): New function.
23263 (w32font_open_internal): Use it. Set font to use glyph points
23264 initially. Set format based on type of font.
23265 (w32font_text_extents, w32font_draw): Optionally use glyph points.
23266 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
23267 on it. Set format based on information available here.
23268 (add_font_entity_to_list): Identify backend based on opentype_only.
23269
232702008-03-02 Andreas Schwab <schwab@suse.de>
23271
23272 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
23273
23274 * coding.c (decode_coding_big5, produce_chars):
23275 Fix typos in last change.
23276
232772008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
23278
23279 * gnu.h: New icon.
23280
232812008-03-02 Kenichi Handa <handa@m17n.org>
23282
23283 * coding.c (decode_coding_utf_8): When eol-type of CODING is
23284 `dos', don't decode '\r' if that is the last in the source.
23285 (decode_coding_utf_16, decode_coding_emacs_mule)
23286 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23287 (decode_coding_raw_text, decode_coding_charset): Likewise.
23288 (produce_chars): Don't decode EOL here. Use EMACS_INT.
23289
232902008-03-01 Jason Rumney <jasonr@gnu.org>
23291
23292 * w32font.c (w32font_full_name): Report point size for scalable fonts.
23293
232942008-03-01 Kim F. Storm <storm@cua.dk>
23295
23296 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
23297
232982008-03-01 Jason Rumney <jasonr@gnu.org>
23299
23300 * w32font.c (w32font_full_name): New function.
23301 (w32font_open_internal): Use it.
23302
233032008-03-01 Kim F. Storm <storm@cua.dk>
23304
23305 * dispnew.c (line_draw_cost): Fix invalid glyph check.
23306
233072008-03-01 Jason Rumney <jasonr@gnu.org>
23308
23309 * font.c (font_unparse_fcname): Increase len when style is a symbol.
23310
233112008-03-01 Jan Djärv <jan.h.d@swipnet.se>
23312
23313 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
23314 xg_frame_resized when the event is for the edit widget.
23315
ef1b0ba7 23316 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
23317
23318 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
23319 set_char_size.
ef1b0ba7 23320 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
23321 operations on widgets here. Just set frame size if needed.
23322 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
23323 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
23324 (x_wm_set_size_hint): Set size hints on the edit widget only, not
23325 the whole frame.
23326 (xg_create_tool_bar): Move attachment of the tool bar to
23327 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
23328 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
23329
233302008-03-01 Jason Rumney <jasonr@gnu.org>
23331
23332 * w32fns.c (w32_msg_pump): Disable debug code.
23333
233342008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23335
23336 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
23337
233382008-02-29 Chong Yidong <cyd@stupidchicken.com>
23339
23340 * xdisp.c (next_overlay_string): Don't set
23341 overlay_strings_at_end_processed_p if we're currently reading from
23342 a display string.
23343
233442008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
23345
23346 * xdisp.c (get_overlay_strings_1): Fix typo.
23347
233482008-02-29 Chong Yidong <cyd@stupidchicken.com>
23349
23350 * xdisp.c (get_overlay_strings_1): Add missing argument type.
23351
233522008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
23353
23354 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
23355
23356 * xdisp.c (display_mode_element): Cancel the previous change.
23357 (decode_mode_spec): Likewise.
23358 (handle_auto_composed_prop): Don't make composition if it->string
23359 is a string.
23360
233612008-02-27 Kim F. Storm <storm@cua.dk>
23362
23363 * lisp.h (GLYPH): Change type from int to struct with separate char
23364 and face_id members.
23365 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
23366 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
23367 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
23368 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
23369 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
23370 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
23371 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
23372 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
23373 handle new Lisp glyph code encoding, either an integer or a cons.
23374
23375 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
23376 (GLYPH_ALIAS): Delete.
23377 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
23378 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
23379 (GLYPH_FROM_CHAR): Replace macro by ...
23380 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
23381
23382 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
23383 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
23384 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
23385 (GLYPH_INVALID_P): New macro.
23386 (spec_glyph_lookup_face): Update prototype.
23387
23388 * dispnew.c (line_draw_cost): Adapt to new glyph type.
23389 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
23390 new glyph code encoding.
23391 (spec_glyph_lookup_face): No return value; update passed glyph instead.
23392 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
23393
23394 * xdisp.c (get_next_display_element, next_element_from_display_vector):
23395 Adapt to new glyph type and new glyph code encoding.
23396
23397 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
23398
23399 * indent.c (current_column, current_column_1, Fmove_to_column)
23400 (compute_motion): Adapt to new glyph code encoding.
23401
23402 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
23403
234042008-02-27 Chong Yidong <cyd@stupidchicken.com>
23405
23406 * process.c (wait_reading_process_output): Check for window
23407 changes caused by timers.
23408 Suggested by Johan Bockgård.
23409
234102008-02-27 Glenn Morris <rgm@gnu.org>
23411
23412 * emacs.c (USAGE1): Add `--disable-font-backend'.
23413
234142008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
23415
23416 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
23417 is made to the buffer.
23418
234192008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
23420
23421 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
23422 (face_at_string_position):
23423 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
23424 (face_at_string_position):
23425 * xdisp.c (display_string, next_overlay_change):
23426 * buffer.h (overlays_at):
23427 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
23428 Update callers.
23429
234302008-02-26 Chong Yidong <cyd@stupidchicken.com>
23431
23432 * editfns.c (Fformat): Doc fix.
23433
234342008-02-26 Juanma Barranquero <lekktu@gmail.com>
23435
23436 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
23437 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
23438 (Ffont_otf_alternates, Fquery_font): Doc fixes.
23439
234402008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23441
23442 * buffer.c (Fbuffer_swap_text): New function.
23443 (syms_of_buffer): Defsubr it.
23444
234452008-02-25 Chong Yidong <cyd@stupidchicken.com>
23446
23447 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
23448
234492008-02-25 Jason Rumney <jasonr@gnu.org>
23450
23451 * w32font.c (w32font_draw): Draw one character at a time when padding.
23452
234532008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23454
23455 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
23456 Handle a nil arg. Use run_window_configuration_change_hook.
23457 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
23458 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
23459 Use run_window_configuration_change_hook.
23460
234612008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23462
23463 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
23464 1-pixel width.
23465
234662008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23467
23468 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
23469 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
23470 if the glyph in the font is zero pixel with.
23471
23472 * dispextern.h (struct glyph_string): New member padding_p.
23473
23474 * w32font.c (w32font_draw): Pay attention to s->padding_p.
23475
23476 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
23477
23478 * xfont.c (xfont_draw): Pay attention to s->padding_p.
23479
23480 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
23481
23482 * font.c: If the font driver doesn't have `shape' function, return Qnil.
23483
234842008-02-25 Jason Rumney <jasonr@gnu.org>
23485
23486 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
23487
234882008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
23489
23490 Allow fine-grained image-cache flushing.
23491 * dispextern.h (struct image): Add `dependencies' field.
23492 (clear_image_caches): Change arg to Lisp_Object.
23493 * image.c (make_image): Initialize `dependencies' field.
23494 (clear_image_cache): Change arg to allow fine-grained flushing.
23495 Perform the flush even if image-cache-eviction-delay is nil.
23496 (clear_image_caches): Change arg to Lisp_Object.
23497 (Fclear_image_cache): Expand meaning of the argument.
23498 (mark_image): Mark `dependencies' field.
23499 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
23500 (lface_hash): Use XHASH rather than XFASTINT.
23501 (face_at_buffer_position): Fix int -> EMACS_INT position.
23502 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
23503 (select_frame_for_redisplay): Remove code duplication.
23504 (redisplay_internal): Adapt arg to call to clear_image_caches.
23505
235062008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
23507
23508 * s/vms4-0.h:
23509 * s/vms4-2.h:
23510 * s/vms4-4.h:
23511 * s/vms5-5.h: Remove, unused.
23512
23513 * s/irix5-2.h:
23514 * s/irix6-0.h:
23515 * s/riscos5.h:
23516 * s/mach-bsd4-3.h:
23517 * m/mips4.h: Remove files for obsolete systems.
23518
23519 * Makefile.in:
23520 * filelock.c:
23521 * unexmips.c:
23522 * m/hp9000s300.h:
23523 * m/iris4d.h:
23524 * s/aix3-1.h:
23525 * s/hpux.h:
23526 * s/msdos.h:
23527 * s/usg5-0.h:
23528 * s/usg5-2-2.h:
23529 * s/usg5-2.h:
23530 * s/usg5-3.h: Remove references to obsolete variables.
23531
23532 * s/irix5-0.h: Remove, move all the contents ...
23533 * s/irix6-5.h: ... here. Simplify.
23534 * config.in: Regenerate.
23535
235362008-02-24 Jason Rumney <jasonr@gnu.org>
23537
23538 * w32term.c (x_draw_glyph_string_background): Clear the background
23539 manually when cleartype is in use.
23540 (x_draw_glyph_string_foreground): Draw text transparently when
23541 cleartype is in use.
23542
23543 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
23544 a font into it unless we have to.
23545
235462008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23547
23548 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
23549 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 23550
aac0c6e3
MR
235512008-02-18 Jason Rumney <jasonr@gnu.org>
23552
23553 * w32fns.c (Fw32_shell_execute): Encode parameters.
23554
235552008-02-09 Eli Zaretskii <eliz@gnu.org>
23556
23557 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
23558
235592008-02-05 Juanma Barranquero <lekktu@gmail.com>
23560
23561 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
23562
235632008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
23564
23565 * xterm.c (x_set_offset): Don't change the gravity if
23566 CHANGE_GRAVITY is -1.
23567
235682008-02-23 Chong Yidong <cyd@stupidchicken.com>
23569
23570 * fileio.c (auto_save_error_occurred): New var.
23571 (auto_save_error): Set it.
23572 (Fdo_auto_save): Don't overwrite the error message if an auto-save
23573 error occurred.
23574
235752008-02-23 Eli Zaretskii <eliz@gnu.org>
23576
23577 * w32.c (globals_of_w32): Add initializations for
23578 g_b_init_get_sid_sub_authority and
23579 g_b_init_get_sid_sub_authority_count.
23580
235812008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
23582
23583 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
23584 (font_parse_xlfd): Use them for sanity check.
23585 (Finternal_set_font_style_table): Make sure the table is bijective.
23586
23587 Consolidate the image_cache to the terminal struct.
23588 * termhooks.h (P_): Remove redundant def.
23589 (struct terminal): New field `image_cache'.
23590 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
23591 of FRAME_X_IMAGE_CACHE.
23592 * xterm.h (struct x_display_info): Remove image_cache field.
23593 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23594 * w32term.h (struct w32_display_info): Remove image_cache field.
23595 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23596 * macterm.h (struct mac_display_info): Remove image_cache field.
23597 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23598 * xterm.c (x_term_init):
23599 * w32term.c (w32_term_init):
23600 * macterm.c (mac_term_init): Set the image_cache in the terminal.
23601 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
23602 Remove declarations.
23603 (clear_image_caches, mark_image_cache): New declarations.
23604 * xfaces.c (clear_face_cache):
23605 * xdisp.c (redisplay_internal): Use clear_image_caches.
23606 * image.c (clear_image_cache): Don't check that a frame is on
23607 a window-system before checking if it shares the same cache.
23608 (clear_image_caches): New function.
23609 (Fclear_image_cache): Use it.
23610 (mark_image): Move from allo.c.
23611 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
23612 * alloc.c (mark_image, mark_image_cache): Move to image.c.
23613 (mark_object): Don't call mark_image_cache for frames.
23614 (mark_terminals): Call mark_image_cache.
23615
23616 * lisp.h (Fdelete_terminal): Declare.
23617
23618 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
23619 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
23620 wrong_type_argument.
23621
236222008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
23623
23624 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
23625 malayalam.el, and tamil.el. Add sinhala.el.
23626
236272008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
23628
23629 * xterm.c (x_connection_closed): Consolidate identical tests.
23630 (x_delete_terminal): Don't crash if called via x_connection_closed.
23631
236322008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
23633
23634 * xdisp.c (decode_mode_spec): New arg string.
23635 (display_mode_element): Adjust for the above change.
23636
236372008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23638
23639 * callint.c (Fcall_interactively): Use AREF.
23640
236412008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
23642
23643 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
23644
236452008-02-18 Jan Djärv <jan.h.d@swipnet.se>
23646
23647 * xfns.c (Fx_show_tip): Set string to " " if empty.
23648
236492008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
23650
23651 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
23652 with Qt.
23653
236542008-02-17 Kenichi Handa <handa@m17n.org>
23655
23656 * ftfont.c (ftfont_shape): Return Lispy number.
23657
23658 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
23659 for GCs.
23660 (Finternal_set_font_selection_order): Call font_update_sort_order
23661 only when enable_font_backend is set.
23662 (realize_x_face): Set face->font_info to that of default face only
23663 when enable_font_backend is set.
23664
23665 * xdisp.c (handle_composition_prop): Set it->c to the fist
23666 character of the composed region.
23667 (fill_composite_glyph_string): Set base_face->font_info to
23668 s->font_info. Get a face for ascii from base_face->ascii_face.
23669 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
23670 with a face already decided.
23671 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
23672 non-negative.
23673 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
23674 call font_prepare_composition unconditionally.
23675
23676 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
23677
23678 * xterm.h (struct x_display_info): New member font.
23679
23680 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
23681 (x_set_mouse_face_gc, x_new_font): Likewise.
23682 (x_term_init): Setup display_info->font.
23683 (x_delete_terminal): Free display_info->font.
23684
23685 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
23686
23687 * ftxfont.c (ftxfont_default_fid): Delete it.
23688 (ftxfont_open): Set xfont->fid to 0.
23689 (ftxfont_end_for_frame): Clear data specific to the frame and the
23690 font-driver.
23691
23692 * xftfont.c (xftfont_default_fid): Delete it.
23693 (xftfont_open): Set xfont->fid to 0.
23694
23695 * fontset.c (FONTSET_OBJLIST): New macro.
23696 (fontset_find_font): Update font-object list of the fontset.
23697 (free_realized_fontset): New function.
23698 (free_face_fontset): Call free_realized_fontset.
23699 (Ffont_info): Call font_close_object only when enable_font_backend
23700 is set.
23701
23702 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
23703 [HAVE_NTGUI]: Include w32term.h.
23704 [MAC_OS]: Include macterm.ch.
23705 (font_otf_ValueRecord): Use make_number.
23706 (font_finish_cache): Fix handling of reference count.
23707 (font_clear_cache): Update num_fonts.
23708 (font_open_entity): Update smallest_char_width and
23709 smallest_font_height of the frame.
23710 (font_close_object): Update num_fonts.
23711 (Fclear_font_cache): Fix finding the target cache data.
23712
237132008-02-16 Glenn Morris <rgm@gnu.org>
23714
23715 * fontset.c (Finternal_char_font): Fix compilation warning.
23716
237172008-02-16 Eli Zaretskii <eliz@gnu.org>
23718
23719 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
23720 instead of char arrays. Enlarge the size of array passed to
23721 get_token_information.
23722
23723 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
23724 warnings.
23725
237262008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
23727
23728 * .gdbinit: Don't set `args', it breaks gdb --args.
23729
237302008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
23731
23732 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
23733 within a narrowed buffer.
23734
237352008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
23736
23737 * coding.c (decode_coding_object, encode_coding_object):
23738 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
23739
237402008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
23741
23742 * coding.c (coding_set_destination): Use BEG_BYTE rather than
23743 hardcoding 1.
23744 (detect_coding_system):
23745 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
23746 (string_char_to_byte, string_byte_to_char, insert_from_gap):
23747 * insdel.c (insert_from_gap):
23748 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
23749 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
23750 (string_to_multibyte):
23751 * character.c (chars_in_text, multibyte_chars_in_text):
23752 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
23753
23754 * character.h (FETCH_STRING_CHAR_ADVANCE)
23755 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
23756 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
23757 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
23758
23759 * casefiddle.c (casify_region): Only call after-change and composition
23760 functions on the part of the region that was changed.
23761
23762 * keyboard.c (read_avail_input):
23763 * frame.c (Fdelete_frame): Call Fdelete_terminal.
23764
237652008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23766
23767 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
23768 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
23769
237702008-02-11 Juanma Barranquero <lekktu@gmail.com>
23771
23772 * w32menu.c (push_submenu_start, push_submenu_end)
23773 (push_left_right_boundary, push_menu_pane, push_menu_item):
23774 * keyboard.c (read_key_sequence): Don't pass args with side effects
23775 to AREF, it fails when compiling with -DENABLE_CHECKING.
23776
237772008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
23778
23779 * Makefile.in (${lispsource}international/charprop.el):
23780 Delete this target.
23781
23782 * search.c (boyer_moore): Fix incorrect synching of the trunk and
23783 emacs-unicode-2.
23784
237852008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23786
23787 * terminal.c (Fdelete_terminal): Clean up the `force' path.
23788
237892008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23790
23791 * frame.c (Qnoelisp): New symbol.
23792 (syms_of_frame): Initialize it.
23793 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
23794 harmless Elisp code, from a strong `force' from x_connection_closed.
23795 * frame.h (Qnoelisp): Declare.
23796 * xterm.c (x_connection_closed): Pass `noelisp'.
23797
23798 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
23799 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
23800 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
23801 rather than `int' for the type of `type'.
23802
238032008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
23804
23805 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23806
23807 * Makefile.in (GNUC): Remove support for gcc-1.x.
23808
238092008-02-10 Richard Stallman <rms@gnu.org>
23810
23811 * lisp.h (ASET): Use AREF, not ASLOT.
23812
238132008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23814
23815 * lisp.h (ASET): Check bounds.
23816
238172008-02-10 Glenn Morris <rgm@gnu.org>
23818
23819 * buffer.c (mode-name): Doc fix.
23820
238212008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23822
23823 * Makefile.in:
23824 * emacs.c:
23825 * gmalloc.c:
23826 * keyboard.c:
23827 * lisp.h:
23828 * m/ibm370aix.h:
23829 * process.c:
23830 * regex.c:
23831 * s/hpux.h:
23832 * sysdep.c:
23833 * sysselect.h:
23834 * systty.h:
23835 * unexec.c:
23836 * w32term.c:
23837 * xsmfns.c:
23838 * xterm.c: Remove code that deals with obsolete variables.
23839
23840 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23841
23842 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23843 nothing else needs it anymore.
23844
238452008-02-09 Eli Zaretskii <eliz@gnu.org>
23846
23847 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23848 instead of unibyte_char_to_multibyte.
23849
238502008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23851
23852 * s/gnu-linux.h: Remove commented out code.
23853
23854 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23855
23856 * Makefile.in: Update what RMS says about using autoconf.
23857 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23858 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23859 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23860 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23861
238622008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
23863
23864 * keymap.c (Fkey_description): Move side effect outside of macro call.
23865
23866 * xfaces.c (Finternal_make_lisp_face):
23867 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23868
23869 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23870 (syms_of_fontset): Use ASET.
23871
23872 * fns.c (concat): Move side effect outside of macro call.
23873 (hash_clear): Use ASET.
23874
238752008-02-08 Richard Stallman <rms@gnu.org>
23876
23877 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23878 If FORCE, and frame has a surrogate minibuffer for another frame,
23879 delete the other frame first.
23880
238812008-02-07 Timo Savola <timo.savola@iki.fi>
23882
23883 * xterm.c (x_detect_focus_change): Handle embed client message.
23884 (handle_one_xevent): Ditto.
23885 (handle_one_xevent): If embedded and we get a button press/release,
23886 request focus.
23887 (xembed_set_info, xembed_send_message): New functions.
23888 (x_make_frame_visible): Call xembed_set_info if embedded.
23889 (x_make_frame_invisible): Call xembed_set_info if embedded.
23890 (x_term_init): Initialize Xatom_XEMBED.
23891 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23892 (x_iconify_frame): Ditto.
23893
23894 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23895 (enum xembed_info, enum xembed_message, enum xembed_focus)
23896 (enum xembed_modifier, enum xembed_accelerator): New.
23897 (xembed_set_info, xembed_send_message): Declare.
23898 (FRAME_X_EMBEDDED_P): New.
23899
23900 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23901 gtk_plug_new.
23902
23903 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23904 window ID of a frame.
23905 (x_window): Reparent frame if embedded.
23906 (Fx_create_frame): Don't set border width if embedded.
23907
23908 * emacs.c (USAGE3): Add --parent-id.
23909 (standard_args): Ditto.
23910
239112008-02-07 Jan Djärv <jan.h.d@swipnet.se>
23912
23913 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
23914
239152008-02-07 Jim Meyering <meyering@redhat.com>
23916
23917 Use "do...while (0)", not "if (1)...else" in macro definitions.
23918 The latter provokes a warning from gcc about the empty else, when
23919 followed by ";". Also, without that trailing semicolon, it would
23920 silently swallow up any following statement.
23921 * syntax.h (SETUP_SYNTAX_TABLE)
23922 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
23923 * buffer.h (DECODE_POSITION): Likewise.
23924 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23925 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23926 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23927 (FETCH_CHAR_ADVANCE): Likewise.
23928 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23929
239302008-02-07 Jim Meyering <meyering@redhat.com>
23931
23932 * lread.c [lint]: Don't include <sys/inode.h>.
23933
239342008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
23935
23936 * xselect.c (x_handle_dnd_message):
23937 * xmenu.c (digest_single_submenu, xmenu_show):
23938 * xdisp.c (with_echo_area_buffer_unwind_data)
23939 (format_mode_line_unwind_data, unwind_format_mode_line)
23940 (display_menu_bar):
23941 * eval.c (Ffetch_bytecode):
23942 * doc.c (store_function_docstring):
23943 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23944 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23945 * buffer.c (add_overlay_mod_hooklist): Use ASET.
23946
239472008-02-07 Kenichi Handa <handa@m17n.org>
23948
23949 * ftxfont.c (ftxfont_open): Don't set
23950 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
23951
23952 * ftfont.c (ftfont_open): Fix previous change.
23953
239542008-02-06 Jason Rumney <jasonr@gnu.org>
23955
23956 * w32font.c (w32font_text_extents): Fill in lbearing metric.
23957 Use cached metrics for ASCII characters.
23958 (w32font_open_internal): Don't set font's owning_frame.
23959 Cache metrics for ASCII characters.
23960
23961 * w32font.h (struct w32font_info): Add ascii_metrics.
23962 Remove owning_frame.
23963
239642008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
23965
23966 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
23967 to negative value.
23968
23969 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
23970
23971 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
23972
23973 * charset.c (syms_of_charset): Set QCtest and Qeq.
23974
239752008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
23976
23977 * process.c (Fstart_process):
23978 * callproc.c (Fcall_process): Handle the case where
23979 Funhandled_file_name_directory returns nil.
23980
23981 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
23982 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
23983 * font.c (check_gstring): Use them and AREF to access the vector before
23984 we know it's really a gstring.
23985 (Ffont_shape_text): Fix typo.
46e722a9 23986 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
23987
23988 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
23989 Declare.
23990
23991 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
23992
239932008-02-05 Jason Rumney <jasonr@gnu.org>
23994
23995 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
23996 Set smallest_font_height and smallest_char_width in display info.
23997
239982008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
23999
24000 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
24001
240022008-02-05 Miles Bader <miles@gnu.org>
24003
24004 * xfaces.c (get_lface_attributes, merge_named_face)
24005 (lookup_named_face, lookup_derived_face, realize_named_face):
24006 Revert 2008-02-01 change by cyd@stupidchicken.com.
24007
240082008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
24009
24010 * fontset.c (Ffontset_info): Handle the case of inhibitting the
24011 fallback fonts.
24012 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
24013
240142008-02-04 Jason Rumney <jasonr@gnu.org>
24015
24016 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
24017 set full_name.
24018 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
24019
240202008-02-03 Jason Rumney <jasonr@gnu.org>
24021
24022 * makefile.w32-in (OBJ1): Include font.o here.
24023 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
24024
240252008-02-02 Jason Rumney <jasonr@gnu.org>
24026
24027 * makefile.w32-in (temacs): Bump EMHEAP to 21.
24028
240292008-02-01 Jason Rumney <jasonr@gnu.org>
24030
24031 * s/cygwin.h: Define VIRT_ADDR_VARIES.
24032
24033 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
24034
240352008-02-01 Andreas Schwab <schwab@suse.de>
24036
24037 * Makefile.in (shortlisp, lisp): Update for rename of
24038 ../lisp/language/myanmar.el.
24039
240402008-02-01 Chong Yidong <cyd@stupidchicken.com>
24041
24042 * xfaces.c (get_lface_attributes): Delete function.
24043 (merge_named_face, lookup_named_face, lookup_derived_face)
24044 (realize_named_face): Call lface_from_face_name directly, and use
24045 the fact that merge_face_vectors does not alter its FROM argument.
24046
240472008-02-01 Jason Rumney <jasonr@gnu.org>
24048
24049 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
24050 input in the default locale. Handle non-Unicode multibyte input.
24051
240522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24053
24054 * fontset.c (reorder_font_vector): Exclude nil elements from the
24055 font group. Don't try multiple fonts.
24056 (fontset_font): Adjust for the above change.
24057 (Finternal_char_font): Return nil if the found font doesn't
24058 contain the character ch.
24059
24060 * Makefile.in (lisp, shortlisp): Add cham.el.
24061
240622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24063
24064 * font.h (FONTP): Make it return 1 also for a font-object.
24065
24066 * .gdbinit (xfontset): New function.
24067
24068 * font.c (font_find_for_lface): Check if the character C is
24069 supported or not only for the first font.
24070
24071 * fontset.c (reorder_font_vector): Fix typo.
24072 (fontset_find_font): Don't add a font-spec specifying a script.
24073 Use 0 (not Qt) for the indication of empty font-group. Change the
24074 format of RFONT-DEF. Return Qt if no font in the font-group
24075 support the character.
24076 (fontset_font): Adjust for the above change. If no font was
24077 found the character, remember that.
24078 (face_for_char): Adjust for the change of RFONT-DEF.
24079 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
24080 no font for the target.
24081 (Finternal_char_font): Adjust for the change of RFONT-DEF.
24082
240832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24084
24085 * font.c (font_load_for_face): Handle the case that the font in
24086 face->lface is a string.
24087
240882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24089
24090 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
24091
240922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24093
24094 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
24095 Fix previous change. If the frame is not on a window system,
24096 signal an error.
24097
240982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24099
bba3e508
SM
24100 * coding.c (decode_coding_object, encode_coding_object):
24101 Adjust marker positions after conversion.
aac0c6e3
MR
24102
24103 * lisp.h (struct Lisp_Marker): New member need_adjustment.
24104
241052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24106
24107 * font.c (font_find_for_lface): Fix the handling of the return
24108 value of font_has_char.
24109 (Ffont_shape_text): Fix previous change.
24110
24111 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
24112 (fontset_ref_and_range): Delete it.
24113 (fontset_find_font): Call char_table_ref_and_range instead of
24114 FONTSET_REF_AND_RANGE.
24115 (make_fontset): Don't setup font groups of Latin here.
24116 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
24117 (new_fontset_from_font): Make the specified font the default for
24118 all Latin characters.
24119
241202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24121
24122 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
24123 is on a window system before accessing the fontset of the frame.
24124
241252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24126
24127 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
24128
24129 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
24130 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
24131
24132 * font.c (Ffont_shape_text): If the font driver doesn't have a
24133 shaper function, make zero-width glyphs to have at least one-pixel
24134 width. Fix setting of `to' field of glyphs.
24135
241362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24137
24138 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
24139 glyphs.
24140
24141 * font.h (struct font_driver): Improve docstring of member `shape'.
24142
241432008-02-01 Kenichi Handa <handa@m17n.org>
24144
24145 * composite.c (syms_of_composite): Fix docstring of
24146 auto-composition-function.
24147
24148 * font.h (LGLYPH_SIZE): New macro.
24149
24150 * font.c (Ffont_fill_gstring): Stop filling when a character not
24151 supported by the font is found.
24152 (Ffont_shape_text): When a shape callback function returns nil,
24153 try at most two more times with larger gstring.
24154 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
24155
24156 * xdisp.c (handle_auto_composed_prop): Change the argument to
24157 auto-composition-function.
24158
24159 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
24160 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
24161 Lispy glyph and store it in the lgstring.
24162
24163 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
24164
24165 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
24166
241672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24168
24169 * font.c (Ffont_shape_text): Avoid unnecessary composition.
24170
24171 * fontset.c (Vfont_encoding_charset_alist): New variable.
24172 (syms_of_fontset): DEFVAR it.
24173 (reorder_font_vector, fontset_find_font): Optimize for the case of
24174 no need of reordering.
24175 (face_for_char): Map the charset property by
24176 Vfont_encoding_charset_alist.
24177
241782008-02-01 Jason Rumney <jasonr@gnu.org>
24179
24180 * w32font.c (logfonts_match): Don't check adstyle here.
24181 (font_matches_spec): Check here against physical font instead.
24182 (add_font_entity_to_list): Avoid some substitutions.
24183
24184 * font.c (font_parse_fcname): Default weight and slant to normal.
24185 (font_score): Prefer normal fonts if weight or slant unspecified.
24186 (font_score) [WINDOWSNT]: Scale weight difference down to closer
24187 match freetype scores.
24188
241892008-02-01 Jason Rumney <jasonr@gnu.org>
24190
24191 * w32font.c (w32font_text_extents): Don't use the frame stored in the
24192 font, as it may have been deleted.
24193 (w32_enumfont_pattern_entity): Map generic family to adstyle using
24194 most common hyphenless variation.
24195 (logfonts_match): Check generic family.
24196 (font_matches_spec): Don't check generic family here.
24197 (fill_in_logfont): Set generic family based on adstyle.
24198
24199 * w32font.h (w32font_get_cache): Update declaration.
24200
242012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24202
24203 * ftfont.c (ftfont_get_cache): Adjust the argument type.
24204
24205 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
24206 If none of the new drivers are available, call font_update_drivers
24207 with the old drivers.
24208
24209 * w32font.c (w32font_get_cache): Adjust the argument type.
24210
24211 * xfont.c (xfont_get_cache): Adjust the argument type.
24212
24213 * font.h (struct font_driver): Change argument type of get_cache.
24214
24215 * xftfont.c (xftfont_start_for_frame): Delete prototype.
24216
24217 * font.c (Ffont_get): Fix arguments to Fassoc.
24218 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
24219 (font_clear_cache): New function.
24220 (font_list_entities, font_matching_entity): Use font_get_cache.
24221 (font_update_drivers): Call font_clear_cache when finishing a driver.
24222
24223 * fontset.c (fontset_find_font): Fix previous change.
24224
242252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24226
24227 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
24228 dpyinfo->font_table.
24229 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
24230 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
24231
24232 * font.c (font_at): Handle the case that the arg C is negative.
24233 Handle the unibyte case.
24234 (Ffont_at): Call font_at with the arg C -1.
24235
24236 * xdisp.c (handle_auto_composed_prop): Don't get a character at
24237 the position here, and call font_at with the arg C -1.
24238 Don't check the range of the existing composition at the point.
24239
242402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24241
24242 * fontset.c (fontset_add): New args charset_id and family.
24243 Change caller.
24244 (load_font_get_repertory, fontset_find_font): Assume that
24245 font_spec is always a font-spec object.
24246 (Fset_fontset_font): Always store a font-spec object in a fontset.
24247
24248 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
24249 instead of get_property_and_range.
24250
242512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24252
24253 * xftfont.c (struct xftfont_info): Delete the member ft_face.
24254 (xftfont_open): Don't keep locking face.
24255 (xftfont_close): Don't unlock face.
24256 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
24257
24258 * fontset.c (fontset_find_font): Don't prefer a font of
24259 supplementary charset.
24260
242612008-02-01 Kenichi Handa <handa@m17n.org>
24262
24263 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
24264 script, langsys_tag to langsys, new member script.
24265 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 24266 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
24267 listing to the script specified in that property. Fix arg to
24268 OTF_check_features.
24269
242702008-02-01 Jason Rumney <jasonr@gnu.org>
24271
24272 * w32font.h: New file.
24273
24274 * w32font.c: Include it.
24275 (struct w32font_info): Add owning_frame field. Move to w32font.h.
24276 (w32font_open): Set owning_frame.
24277 (w32font_text_extents): Use owning_frame.
24278 (struct font_callback_data): Add opentype_only field.
24279 (add_font_entity_to_list): Use it to filter fonts.
24280 Don't check against full name.
24281 (w32font_list_internal): New function.
24282 (w32font_list): Use it.
24283 (w32font_match_internal): New function.
24284 (w32font_match): Use it.
24285 (w32font_open_internal): New function.
24286 (w32font_open): Use it.
24287 (w32font_get_cache, w32font_close, w32font_has_char)
24288 (w32font_encode_char, w32font_text_extents, w32font_draw):
24289 Make non-static.
24290
24291 * makefile.w32-in (w32font.o): Depend on w32font.h.
24292
242932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24294
24295 * charset.c (Fdefine_charset_internal): Record a supplementary
24296 charset at the tail of Vcharset_order_list.
24297
24298 * font.c (Ffont_shape_text): Fix the return value.
24299
24300 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
24301
24302 * xdisp.c (handle_auto_composed_prop): Fix previous change.
24303
243042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24305
24306 * ftfont.c (struct OpenTypeSpec): New struct.
24307 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
24308 (ftfont_get_open_type_spec): New function.
24309 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
24310
24311 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
24312
243132008-02-01 Jason Rumney <jasonr@gnu.org>
24314
24315 * w32font.c (add_font_entity_to_list): Compare only the beginning
24316 of full name.
24317
243182008-02-01 Kenichi Handa <handa@m17n.org>
24319
24320 * xdisp.c (handle_auto_composed_prop): Simplify the code.
24321 Never return HANDLED_RECOMPUTE_PROPS.
24322
243232008-02-01 Kenichi Handa <handa@m17n.org>
24324
24325 * font.c (font_gstring_produce): Delete it.
24326
24327 * composite.h (COMPOSITION_METHOD):
24328 Handle COMPOSITION_WITH_GLYPH_STRING.
24329
243302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24331
24332 * xfont.c (Qx): Delete.
24333 (syms_of_xfont): Don't initialize Qx.
24334
24335 * composite.h (enum composition_method):
24336 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
24337
243382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24339
24340 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
24341 (choose_face_font): Accept new form of font-spec.
24342
24343 * frame.h (font_driver_list): Declare it unconditionally.
24344 (struct frame): Define members font_driver_list and font_data_list
24345 unconditionally.
24346
24347 * fontset.c: Include "font.h" unconditionally.
24348 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
24349 (Fset_fontset_font): Accept a font-spec object.
24350
24351 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
24352 PIXEL_SIZE part a wild card.
24353
24354 * dispextern.h (struct glyph_string): Define members clip and
24355 num_clips unconditionally.
24356 (struct face): Define members font_info and extra unconditionally.
24357
24358 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
24359 ftfont_info only when HAVE_LIBOTF is defined.
24360
243612008-02-01 Andreas Schwab <schwab@suse.de>
24362
24363 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
24364 and end.
24365
243662008-02-01 Jason Rumney <jasonr@gnu.org>
24367
24368 * w32font.c (w32font_driver): Add new fields.
24369
243702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24371
24372 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
24373 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
24374 (LIBES): Add @M17N_FLT_CFLAGS@.
24375
24376 * composite.c (compose_text): Don't treat the new style
24377 composition specially.
24378
24379 * emacs.c (main): Call syms_of_font unconditionally.
24380
24381 * font.h (FONT_ENTITY_NOT_LOADABLE)
24382 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
24383 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
24384 (struct font_driver): New member shape.
24385 (font_registry_charsets): Extern it.
24386 (font_find_for_lface, font_prepare_composition): Adjust prototype.
24387 (font_otf_capability, font_drive_otf): Delete their externs.
24388
24389 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
24390 (font_charset_alist, font_registry_charsets): Move from xfont.c
24391 and rename.
24392 (font_prop_validate_otf): New function.
24393 (font_property_table): Register it for QCotf.
24394 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
24395 (font_drive_otf): Delete.
24396 (font_prepare_composition): New arg F. Adjust for the change of
24397 lispy gstring.
24398 (font_find_for_lface): New arg C.
24399 (font_load_for_face): Adjust for the change of font_find_for_lface.
24400 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
24401 lispy gstring.
24402 (Ffont_shape_text): New function.
24403 (Fopen_font): If the font size is not given, use 12-pixel.
24404 (Ffont_at): New arg STRING.
40b1a3a9 24405 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
24406 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
24407 conditionally.
24408
24409 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
24410 fonts of the same font-spec. Change the format of RFONT-DEF.
24411 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
24412 Adjust for the change of RFONT-DEF.
24413 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
24414
24415 * ftfont.h: New file.
24416
24417 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
24418 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24419 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24420 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
24421 font_otf_capability and font_drive_otf, set ftfont_shape.
24422 (ftfont_list): Adjust for the change of :otf property value.
24423 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
24424 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
24425 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
24426 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24427 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
24428 (otf_gstring, gstring, m17n_flt_initialized): New variables.
24429
24430 * w32term.c (x_draw_composite_glyph_string_foreground):
24431 Adjust for the change of lispy gstring.
24432
24433 * xdisp.c (handle_composition_prop): Adjust for the change of
24434 lispy gstring. Call a function for auto-composition with the
24435 third arg it->window.
24436 (fill_composite_glyph_string): Adjust for the change of lispy string.
24437 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
24438
24439 * xfaces.c (set_font_frame_param): Adjust for the change of
24440 font_find_for_lface.
24441
24442 * xfont.c (x_font_charset_alist): Move to font.c and rename.
24443 (xfont_registry_charsets): Likewise. Change caller.
24444 (syms_of_xfont): Don't handle x_font_charset_alist.
24445
24446 * xftfont.c: Include "ftfont.h".
24447 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24448 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24449 (xftfont_close) [HAVE_LIBOTF]: Close otf.
24450 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24451 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
24452 Set xftfont_driver.shape to xftfont_shape.
24453
24454 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24455 the change of lispy gstring.
24456
244572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24458
24459 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
24460
244612008-02-01 Jason Rumney <jasonr@gnu.org>
24462
24463 * w32font.c (w32font_draw): Fill background manually.
24464
244652008-02-01 Jason Rumney <jasonr@gnu.org>
24466
24467 * font.c (Qfontp): Remove unused symbol.
24468 (QCantialias): New symbol.
24469 (syms_of_font): Define it.
24470 (font_property_table): Set a validator for QCantialias.
24471
24472 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
24473 Define if not already.
24474 (QCfamily): Share with xfaces.c.
24475 (Qstandard, Qsubpixel, Qnatural): New symbols.
24476 (syms_of_w32font): Define them. Don't define QCfamily here.
24477 (w32_antialias_type, lispy_antialias_type): New functions.
24478 (w32_enumfont_pattern_entity): New arg requested_font.
24479 Set antialias parameter if non-default was requested.
24480 (fill_in_logfont): Fill in lfQuality if :antialias specified.
24481
244822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24483
24484 * lread.c (read1): Undo the previous change.
24485
244862008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
24487
24488 * frame.c (Fdelete_frame): Call font_update_drivers only when
24489 USE_FONT_BACKEND is defined.
24490
244912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24492
24493 * font.h (struct font_bitmap): New member bits_per_pixel.
24494 (struct font_driver): New members start_for_frame and end_for_frame.
24495 (struct font_data_list): New struct.
24496 (font_put_frame_data, font_get_frame_data): Extern them.
24497
24498 * frame.h (struct frame): New member font_data_list.
24499
24500 * font.c (font_update_drivers): Call driver->start_for_frame and
24501 driver->end_for_frame at proper timings.
24502 (font_put_frame_data, font_get_frame_data): New functions.
24503 (Ffont_spec): Add usage in the docstring.
24504
24505 * frame.c (make_frame): Initialize f->font_data_list to NULL.
24506 (Fdelete_frame): Call font_update_drivers.
24507
24508 * xftfont.c (struct xftface_info): Delete the member xft_draw.
24509 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
24510 (xftfont_get_xft_draw): New function.
24511 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
24512 (xftfont_end_for_frame): New function.
24513 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
24514
24515 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
24516 Change argument. Cache GCs in the per-frame data.
24517 (struct ftxfont_frame_data): New struct.
24518 (ftxfont_draw_bitmap): New arg gc_fore and flush.
24519 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
24520 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
24521 (ftxfont_end_for_frame): New function.
24522 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
24523
24524 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
24525
245262008-02-01 Kenichi Handa <handa@m17n.org>
24527
24528 * xselect.c (Vselection_coding_system)
24529 (Vnext_selection_coding_system): Delete them.
24530 (syms_of_xselect): Don't declare selection-coding-system and
24531 next-selection-coding-system. They are declared in select.el.
24532
245332008-02-01 Jason Rumney <jasonr@gnu.org>
24534
24535 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
24536
24537 * w32fns.c: Include imm.h.
24538 (get_composition_string_fn, get_ime_context_fn): New optional
24539 system functions.
24540 (globals_of_w32fns): Load them from imm32.dll.
24541 (ignore_ime_char): New flag.
24542 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
24543 WM_IME_ENDCOMPOSITION messages.
24544
24545 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
24546 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
24547
245482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24549
24550 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
24551 (READCHAR_REPORT_MULTIBYTE): New macro.
24552 (readchar): New 2nd arg MULTIBYTE.
24553 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
24554 Make symbol's name multibyte according to the multibyteness of the
24555 source.
24556
245572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24558
24559 * xfaces.c (face_for_overlay_string): Call lookup_face with
24560 correct arguments (fix of synching with the trunk).
24561
245622008-02-01 Kenichi Handa <handa@m17n.org>
24563
24564 * font.c (font_prop_validate_symbol, font_prop_validate_style)
24565 (font_prop_validate_non_neg, font_prop_validate_spacing):
24566 Delete argument prop_index.
24567 (font_property_table): Change arguments to validater. Change Callers.
24568 (font_lispy_object): Delete.
24569 (font_at): Use font_find_object instead fo font_lispy_object.
24570
245712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24572
24573 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
24574 and file names.
24575
245762008-02-01 Jason Rumney <jasonr@gnu.org>
24577
24578 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
24579 (font_matches_spec): Remove debug output.
24580 (add_font_entity_to_list): Avoid using substituted fonts.
24581
245822008-02-01 Jason Rumney <jasonr@gnu.org>
24583
24584 * doc.c (Fsnarf_documentation):
24585 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
24586
245872008-02-01 Miles Bader <miles@gnu.org>
24588
24589 * dispextern.h (struct glyph_row): Only define "clip" field if
24590 HAVE_WINDOW_SYSTEM is defined.
24591
245922008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24593
24594 Fix up multi-tty merge.
24595
24596 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
24597 and indentation.
24598
24599 * xfaces.c (free_realized_face, clear_face_gcs):
24600 Include font_done_for_face in the input_blocked section, just in case.
24601
24602 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
24603 (get_char_face_and_encoding): Undo last change and remove the *other*
24604 duplicate definition (i.e. keep the one that's better scoped and that
24605 includes code for the font-backend).
24606
24607 * terminal.c (create_terminal): Default keyboard_coding to
24608 `no-conversion' and terminal_coding to `undecided'.
24609
24610 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
24611
24612 * fontset.c (free_realized_fontsets): Check that the table entry does
24613 contain a fontset before trying to compare it to `base'.
24614
24615 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
24616 syms_of_charset, and syms_of_coding earlier because init_window_once
24617 now needs Vcoding_system_hash_table to be setup.
24618
24619 * coding.h (default_buffer_file_coding): Remove.
24620
24621 * coding.c (default_buffer_file_coding): Remove.
24622 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
24623 than ->symbol, and use the terminal-local coding system.
24624 (syms_of_coding): Don't setup the coding-systems that are not
24625 terminal-local.
24626 (Fdefine_coding_system_internal): Use XCAR/XCDR.
24627
24628 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
24629 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
24630
24631 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
24632 in chartab.c and were re-added here by mistake.
24633 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
24634
24635 * doc.c (Fsnarf_documentation):
24636 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
24637 src to etc.
24638
24639 * ChangeLog.10: Add mistakenly removed entry.
24640
246412008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
24642
24643 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
24644
246452008-02-01 Miles Bader <miles@gnu.org>
24646
24647 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
24648 Add extra args to FACE_FOR_CHAR.
24649
246502008-02-01 Kenichi Handa <handa@m17n.org>
24651
24652 * keymap.c (where_is_internal_1): If key is a cons, store the copy
24653 in sequence.
24654
24655 * chartab.c (map_sub_char_table, map_char_table): If the range
24656 contains just one character, call the function with that character
24657 even if the depth is not 3.
24658
246592008-02-01 Jason Rumney <jasonr@gnu.org>
24660
24661 * w32font.c (w32font_text_extents): Calculate metrics for the
24662 whole string.
24663
246642008-02-01 Jason Rumney <jasonr@gnu.org>
24665
24666 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
24667
246682008-02-01 Jason Rumney <jasonr@gnu.org>
24669
bba3e508
SM
24670 * w32term.c (x_set_glyph_string_clipping):
24671 Use get_glyph_string_clip_rects.
aac0c6e3
MR
24672 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24673 Adjust for the change of struct glyph_string.
24674
24675 * w32font.c (w32font_draw): Do clipping here.
24676
246772008-02-01 Kenichi Handa <handa@m17n.org>
24678
24679 * xftfont.c (xftfont_draw): Adjust for the change of struct
24680 glyph_string.
24681
bba3e508
SM
24682 * xterm.c (x_set_glyph_string_clipping):
24683 Use get_glyph_string_clip_rects.
aac0c6e3
MR
24684 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24685 Adjust for the change of struct glyph_string.
24686
24687 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
24688 the resulting clip(s}.
24689 (expose_overlaps): Add arg r. Change callers. Set it to
24690 row->clip temporarily.
24691 (expose_window): Redraw rows overlapping the exposed area.
24692
24693 * dispextern.h (struct glyph_row): New member clip.
24694 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
24695 clip_height, new member clip, and num_clips.
24696
246972008-02-01 Kenichi Handa <handa@m17n.org>
24698
24699 * data.c (Fchar_or_string_p): Fix docstring.
24700
247012008-02-01 Kenichi Handa <handa@m17n.org>
24702
24703 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
24704 create a temporary XftDraw object.
24705
247062008-02-01 Kenichi Handa <handa@m17n.org>
24707
24708 * font.c (Ffontp): Fix docstring.
24709
24710 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
24711 strong evidence of ISO-2022.
24712
247132008-02-01 Kenichi Handa <handa@m17n.org>
24714
24715 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
24716 SYNTAX_ENTRY_FOLLOW_PARENT.
24717
247182008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24719
24720 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
24721 its type.
24722 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24723 Update to the new type of weak_hash_tables and next_weak.
24724
24725 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
24726 a plain C pointer to Lisp_Hash_Table.
24727
24728 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
24729 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
24730 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
24731 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
24732 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
24733 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
24734 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
24735 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
24736 (GC_EQ): Remove since they've been identical to their non-GC_
24737 alter-egos ever since the markbit was eradicated.
24738
24739 * alloc.c:
24740 * buffer.c:
24741 * buffer.h:
24742 * data.c:
24743 * fileio.c:
24744 * filelock.c:
24745 * fns.c:
24746 * frame.h:
24747 * lisp.h:
24748 * macterm.c:
24749 * print.c:
24750 * process.c:
24751 * w32fns.c:
24752 * w32menu.c:
24753 * w32term.c:
24754 * xfns.c:
24755 * xmenu.c:
24756 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
24757
247582008-02-01 Kenichi Handa <handa@m17n.org>
24759
24760 * chartab.c (map_sub_char_table): Make it work for the top-level
24761 char-table. Fix handling of parent char-table.
24762 (map_char_table): Adjust for the above change.
24763
247642008-02-01 Jason Rumney <jasonr@gnu.org>
24765
24766 * w32font.c (Qgdi): Rename from Qw32.
24767
247682008-02-01 Jason Rumney <jasonr@gnu.org>
24769
24770 * w32bdf.c (get_quoted_string): Make function static.
24771
247722008-02-01 Kenichi Handa <handa@m17n.org>
24773
24774 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
24775 bigger ascent and descent than those of the font, use them as
24776 font's ascent and descent.
24777
247782008-02-01 Kenichi Handa <handa@m17n.org>
24779
24780 * Makefile.in (${lispsource}international/charprop.el): Move this
24781 target within "#ifdef HAVE_UNIDATA" and "#endif".
24782
247832008-02-01 Kenichi Handa <handa@m17n.org>
24784
24785 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
24786 (shortlisp): Add ../lisp/language/tai-viet.el.
24787
247882008-02-01 Ulrich Mueller <ulm@gentoo.org>
24789
24790 * Makefile.in (${lispsource}international/charprop.el): Depend on
24791 temacs${EXEEXT}.
24792
247932008-02-01 Jason Rumney <jasonr@gnu.org>
24794
24795 * w32font.c (w32font_close): Delete the GDI font object.
24796
24797 * w32menu.c: Include character.h.
24798
24799 * w32proc.c: Likewise.
24800
24801 * w32select.c: Likewise.
24802
24803 * makefile.w32-in (w32proc.o): Depend on character.h.
24804
248052008-02-01 Jason Rumney <jasonr@gnu.org>
24806
24807 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24808
24809 * w32menu.c (syms_of_w32menu): Likewise.
24810
24811 * w32proc.c (syms_of_ntproc): Likewise.
24812
24813 * w32select.c (syms_of_w32select): Likewise.
24814
24815 * w32term.c (syms_of_w32term): Likewise.
24816
248172008-02-01 Jason Rumney <jasonr@gnu.org>
24818
24819 * w32font.c (w32font_draw): Delete brush after using it.
24820
248212008-02-01 Jason Rumney <jasonr@gnu.org>
24822
24823 * w32font.c (w32font_open): Don't set font_idx.
24824 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24825 to font settings.
24826 (w32font_draw): Fill background explicitly.
24827
248282008-02-01 Jason Rumney <jasonr@gnu.org>
24829
24830 * w32term.c (w32_initialize): Don't call w32font_initialize.
24831
24832 * w32font.c (w32font_info): Remove subranges.
24833 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24834 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24835 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24836 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24837 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24838 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24839 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24840 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24841 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24842 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24843 New symbols.
24844 (font_callback_data): New struct.
24845 (w32font_list, w32font_match): Use it.
24846 (w32font_open): Don't populate subranges.
24847 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24848 (w32font_encode_char): Always return unicode code-point as-is.
24849 (w32font_text_extents): Supply a transformation matrix to
24850 GetGlyphOutline. Never look up by glyph index. Avoid looping
24851 twice. Use unicode version of GetTexExtentPoint32 instead of
24852 glyph index version.
24853 (set_fonts_frame): Remove.
24854 (w32_enumfont_pattern_entity): Add frame parameter, use it to
24855 set frame parameter. Use backward compatible fake foundries.
24856 Save generic family in extra slot under QCfamily. Make width slot
24857 constant. Save QCspacing value. Save list of scripts instead of
24858 binary subranges.
24859 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
24860 (add_font_entity_to_list): Use font_callback_data struct.
24861 Filter unwanted fonts.
aac0c6e3
MR
24862 (add_one_font_entity_to_list): Use font_callback_data struct.
24863 (w32_registry): Default to iso10646_1.
24864 (fill_in_logfont): Use dpi from extra slot. Don't bother with
24865 string font registries. Don't fill in font name if it is a generic
24866 family name, fill family instead. Use spacing, family and script
24867 extra info to fill pitch, family and charset fields.
24868 (list_all_matching_fonts): Use font_callback_data struct.
24869 (unicode_range_for_char): Remove.
24870 (font_supported_scripts): New function.
24871 (w32font_initialize): Remove.
24872 (syms_of_w32font): Update which symbols are defined.
24873
248742008-02-01 Jason Rumney <jasonr@gnu.org>
24875
24876 * font.c (font_pixel_size): Reverse assq_no_quit args.
24877
24878 * w32term.h (FONT_WIDTH): Report max width, not average.
24879 (FONT_MAX_WIDTH): Remove.
24880 (FONT_AVG_WIDTH): New macro.
24881
24882 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24883 redefinition of FONT_WIDTH.
24884
24885 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24886 (w32_cache_char_metrics): Use FONT_WIDTH.
24887
24888 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24889
248902008-02-01 Jason Rumney <jasonr@gnu.org>
24891
24892 * w32font.c (w32font_open): Make lfHeight negative.
24893
24894 * w32fns.c (x_default_font_parameter): Use new style font name.
24895 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24896
248972008-02-01 Jason Rumney <jasonr@gnu.org>
24898
24899 * w32font.c (QCsubranges): New symbol.
24900 (w32font_open, w32font_has_char): Get subranges from subproperty
24901 of extra.
24902 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24903 (syms_of_w32font): Define :subranges symbol.
24904
24905 * font.c (font_put_extra): Expose externally.
24906
24907 * font.h (font_put_extra): Move declaration from font.c.
24908
24909 * font.c (Ffont_get): Use font driver to determine otf capability.
24910 (adjust_anchor): Check if driver defines anchor_point before using.
24911
24912 * w32font.c (w32font_open): Handle size, height and pixel_size better.
24913 (w32font_draw): Use options.
24914 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
24915 Fix detection of truetype fonts.
24916 (registry_to_w32_charset): Handle charsets other than iso8859-1
24917 expressed as lisp symbols.
24918 (w32_registry): Express charset as lisp symbol.
24919 (fill_in_logfont): Reverse pixel and point height logic.
24920 Don't set width here. Set quality to default.
24921
24922 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
24923 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
24924
24925 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24926 Remove redundant loop and allocation.
24927
24928 * makefile.w32-in (font.o, w32font.o): New objects.
24929 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24930 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24931
24932 * xdisp.c (fill_composite_glyph_string): Make the first arg to
24933 STORE_XCHARB a valid l-value.
24934
24935 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24936 calculations for non-Truetype fonts.
24937 (x_draw_glyph_string): Sync with xterm.c.
24938 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24939 Remove redundant code.
24940 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24941
24942 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24943 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24944
24945 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24946 (x_to_w32_charset, w32_to_x_charset): Expose externally.
24947
24948 * w32font.c: New file for w32 font backend.
24949
249502008-02-01 Kenichi Handa <handa@m17n.org>
24951
24952 * term.c: Don't include "buffer.h" twice.
24953
249542008-02-01 Kenichi Handa <handa@m17n.org>
24955
24956 * character.c (Funibyte_string): New function.
24957 (syms_of_character): Defsubr it.
24958
249592008-02-01 Jason Rumney <jasonr@gnu.org>
24960
24961 * w32term.c [USE_FONT_BACKEND]:
24962 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
24963 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
24964 (x_draw_glyph_string, x_draw_glyph_string_foreground)
24965 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
24966 (x_free_frame_resources): Sync with xterm.c.
24967
249682008-02-01 Andreas Schwab <schwab@suse.de>
24969
24970 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
24971 char-table size.
24972
249732008-02-01 Kenichi Handa <handa@m17n.org>
24974
24975 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
24976
249772008-02-01 Kenichi Handa <handa@m17n.org>
24978
24979 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
24980 font_otf_gpos, add font_drive_otf.
24981
24982 * fontset.c (fontset_find_font): Pay attention to font size
24983 specified for a font.
24984 (reorder_font_vector): Check contents of font_def.
24985
24986 * font.c (struct otf_list): Delete it.
24987 (otf_list): Make it a lisp variable.
24988 (otf_open): Use lispy otf_list.
24989 (generate_otf_features): Rename from parse_gsub_gpos_spec.
24990 (check_otf_features): New function.
24991 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
24992 New functions.
24993 (font_drive_otf): New function merging font_otf_gsub and
24994 font_otf_gpos.
24995 (font_open_for_lface): New arg spec. Change argument order.
24996 (font_load_for_face): Adjust for the change of font_open_for_lface.
24997 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
24998 Ffont_otf_gpos.
24999 (syms_of_font): Staticpro otf_list. Delete defsubr of
25000 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
25001
25002 * xfaces.c (set_font_frame_param): Adjust for the change of
25003 font_open_for_lface.
25004
25005 * font.h (font_open_for_lface): Adjust prototype.
25006 (struct font_driver): Delete members otf_gsub and otf_gpos, add
25007 member otf_drive.
25008 (font_otf_gsub, font_otf_gpos): Delete externs.
25009 (font_drive_otf): Extern it.
25010
250112008-02-01 Kenichi Handa <handa@m17n.org>
25012
25013 * font.c (font_at): If the window W is not on a window system,
25014 return Qnil.
25015
25016 * coding.c (produce_chars, encode_coding): Don't call
25017 insert_from_gap if no characters to produce.
25018
250192008-02-01 Kenichi Handa <handa@m17n.org>
25020
25021 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
25022 Fclear_face_cache.
25023
25024 * xfaces.c (face_for_font): Check also face->font==font->font.font.
25025
250262008-02-01 Miles Bader <miles@gnu.org>
25027
25028 * emacs.c (main): Change default value of `enable_font_backend' to 1.
25029 Parse "--disable-font-backend" option.
25030 (standard_args): Add "--disable-font-backend" option.
25031
250322008-02-01 Kenichi Handa <handa@m17n.org>
25033
25034 * fontset.c (fontset_find_font): New function.
25035 (fontset_font): Use fontset_find_font.
25036 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
25037 Register the specified font for all Latin characters.
25038 (new_fontset_from_font): Register the specified font for all Latin
25039 characters.
25040 (dump_fontset): For a realized fontset, include the base fontset
25041 name in the returned vector.
25042
250432008-02-01 Kenichi Handa <handa@m17n.org>
25044
25045 * character.h (CHAR_STRING): Cast C to unsigned on calling
25046 char_string.
25047
25048 * character.c (char_string): Type of arg C changed to unsigned.
25049 Signal an error if C is an invalid character code.
25050
25051 * editfns.c (general_insert_function, Fchar_to_string):
25052 Use CHARACTERP, not INTEGERP.
25053
250542008-02-01 Kenichi Handa <handa@m17n.org>
25055
25056 * character.h (MIN_MULTIBYTE_LEADING_CODE)
25057 (MAX_MULTIBYTE_LEADING_CODE): New macros.
25058
25059 * regex.c (analyse_first): Fix for multibyte characters in "case
25060 charset:" and "case categoryspec:".
25061
250622008-02-01 Andreas Schwab <schwab@suse.de>
25063
25064 * Makefile.in (LIBES): Move standard libraries to the end.
25065
250662008-02-01 Kenichi Handa <handa@m17n.org>
25067
25068 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
25069 nonzero, don't shrink the buffer nextb.
25070
25071 * buffer.h (struct buffer_text): New member inhibit_shrinking.
25072
25073 * coding.c (coding_alloc_by_making_gap): New arg offset.
25074 (alloc_destination): Call coding_alloc_by_making_gap with the arg
25075 offset.
25076 (decode_coding_iso_2022): Update coding->safe_charsets.
25077 (decode_coding_gap): Temporarily set
25078 current_buffer->text->inhibit_shrinking to 1.
25079
250802008-02-01 Kenichi Handa <handa@m17n.org>
25081
bba3e508
SM
25082 * xterm.c (x_draw_composite_glyph_string_foreground):
25083 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
25084
250852008-02-01 Juanma Barranquero <lekktu@gmail.com>
25086
25087 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
25088
250892008-02-01 Kenichi Handa <handa@m17n.org>
25090
25091 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
25092 target_multibyte instead of multibyte.
25093 (re_match_2_internal): Call bcmp_translate with target_multibyte.
25094 (bcmp_translate): Change the argument name from multibyte to
25095 target_multibyte.
25096
250972008-02-01 Kenichi Handa <handa@m17n.org>
25098
25099 These changes are to compile a regexp into a pattern that can be
25100 used both for multibyte and unibyte targets.
25101
25102 * Makefile.in (search.o): Depend on charset.h.
25103
25104 * character.c (multibyte_char_to_unibyte_safe): New function.
25105
25106 * search.c: Include "charset.h".
25107 (compile_pattern_1): Delete argument multibyte. Don't set
25108 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
25109 (compile_pattern): Don't compare cp->buf.target_multibyte.
25110 Compare cp->buf.charset_unibyte.
25111 (compile_pattern): Set cp->buf.target_multibyte.
25112
25113 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
25114
25115 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
25116
25117 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
25118 multibyte. Change callers.
25119 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
25120 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
25121 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
25122 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
25123 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
25124 (regex_compile): Make the compiled pattern usable both for
25125 multibyte and unibyte targets.
25126 (analyse_first): Make the fastmap usable both for multibyte and
25127 unibyte targets.
25128 (TRANSLATE_VIA_MULTIBYTE): Delete.
25129 (re_match_2_internal): Pay attention to the case that the
25130 multibyteness of bufp and target may be different.
25131
251322008-02-01 Kenichi Handa <handa@m17n.org>
25133
25134 * xdisp.c (x_produce_glyphs): When a font is not found, make the
25135 empty box occupy at least one column width.
25136
251372008-02-01 Miles Bader <miles@gnu.org>
25138
25139 * Makefile.in: Remove redundant HAVE_XFT clause.
25140
251412008-02-01 Kenichi Handa <handa@m17n.org>
25142
25143 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
25144
251452008-02-01 Kenichi Handa <handa@m17n.org>
25146
25147 * fontset.c (Finternal_char_font): Fix for the case of POSITION
25148 being nil.
25149
251502008-02-01 Kenichi Handa <handa@m17n.org>
25151
25152 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
25153
251542008-02-01 Kenichi Handa <handa@m17n.org>
25155
25156 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
25157
251582008-02-01 Kenichi Handa <handa@m17n.org>
25159
25160 * search.c (simple_search): Fix previous change.
25161
251622008-02-01 Kenichi Handa <handa@m17n.org>
25163
25164 * xftfont.c (ftfont_font_format): Extern declaration.
25165
25166 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
25167
25168 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
25169 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
25170
25171 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
25172 (ftfont_font_format): Fix previous change.
25173
25174 * font.h (Ffont_xlfd_name): EXFUN it.
25175
25176 * font.c (font_parse_xlfd): Fix the array size of `f'.
25177 (register_font_driver): Use EQ to compare driver->type.
25178
25179 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
25180 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
25181 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
25182
251832008-02-01 Kenichi Handa <handa@m17n.org>
25184
25185 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
25186 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
25187
251882008-02-01 Kenichi Handa <handa@m17n.org>
25189
25190 * xfont.c (xfont_open): Set font->format.
25191
25192 * xftfont.c (xftfont_open): Set font->format.
25193
25194 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
25195 (ftfont_list): Include FC_FONTFORMAT in FcObject.
25196 (ftfont_open): Set font->format.
25197 (ftfont_font_format): New function.
25198
25199 * font.h (struct font): New member format.
25200
25201 * font.c (Qopentype): New variable.
25202 (syms_of_font): Defsym it.
25203 (Fquery_font): Change the format of the last element of the return
25204 value.
25205
252062008-02-01 Kenichi Handa <handa@m17n.org>
25207
25208 * xfns.c (xic_create_xfontset): Try the default fontset name as a
25209 last resort.
25210
252112008-02-01 Kenichi Handa <handa@m17n.org>
25212
25213 * coding.c (detect_coding_charset): Fix detection of multi-byte
25214 charset.
25215
252162008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
25217
25218 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
25219
252202008-02-01 Kenichi Handa <handa@m17n.org>
25221
25222 * xdisp.c (get_next_display_element): Set it->face_id for the
25223 first component of a composition.
25224 (x_produce_glyphs): Check if the font is changed or not for composition.
25225
252262008-02-01 Kenichi Handa <handa@m17n.org>
25227
25228 * fontset.c (Qlatin): New variable.
25229 (syms_of_fontset): Define it as a lisp symbol.
25230 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
25231
252322008-02-01 Kenichi Handa <handa@m17n.org>
25233
25234 * font.c (font_unparse_fcname): Pay attention to the case that
25235 some of font property is a null string.
25236
252372008-02-01 Kenichi Handa <handa@m17n.org>
25238
25239 * term.c: Include "composite.h".
25240 (encode_terminal_code): Output all components of composition.
25241 Check the size of encode_terminal_src.
25242 (produce_glyphs): For composition, call produce_composite_glyph.
25243 (append_composite_glyph, produce_composite_glyph): New functions.
25244
25245 * xdisp.c (x_produce_glyphs): In handling composition, if a font
25246 is not found, get font_info from the current ascii face.
25247
252482008-02-01 Kenichi Handa <handa@m17n.org>
25249
25250 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
25251 buffer-file-name to Qnil before calling insert_from_buffer.
25252
25253 * font.c (font_unparse_fcname): Pay attention to the case that
25254 foundry is a null string.
25255
252562008-02-01 Kenichi Handa <handa@m17n.org>
25257
25258 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
25259
25260 * font.c (Qunicode_sip): New variable.
25261 (syms_of_font): Declare it as a Lisp symbol.
25262
25263 * font.h (Qunicode_sip): Extern it.
25264
252652008-02-01 Kenichi Handa <handa@m17n.org>
25266
25267 * composite.c (get_composition_id): Pay attention to TAB component.
25268
25269 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
25270 TAB. Adjust for the change of s->char2b which always points to
25271 the first element of allocated memory.
25272
25273 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
25274
25275 * xdisp.c (handle_composition_prop): Set it->c to the first
25276 non-TAB component.
25277 (fill_composite_glyph_string): Change argument.
25278 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
25279 (x_produce_glyphs): Fix handling of left/right padding.
25280
252812008-02-01 Kenichi Handa <handa@m17n.org>
25282
25283 * coding.c (detect_coding_system): Fix for handling off
25284 inhibit_iso_escape_detection. Fix for the case that no coding
25285 system is defined for a specific coding category.
25286
252872008-02-01 Kenichi Handa <handa@m17n.org>
25288
25289 * font.c (font_matching_entity): Delete unused local var.
25290
25291 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
25292 opening a font.
25293
25294 * fileio.c (Finsert_file_contents): On recovering a file, assume
25295 Unix-like eol.
25296 (choose_write_coding_system): On auto-saving a file, force
25297 Unix-like eol.
25298
25299 * coding.c (setup_coding_system): Fix setting of
25300 coding->common_flags based on eol_type.
25301 (coding_inherit_eol_type): If PARENT is not nil, be sure to
25302 inherit from it.
25303
253042008-02-01 Kenichi Handa <handa@m17n.org>
25305
25306 * alloc.c (NSTATICS): Increas to 0x600.
25307
253082008-02-01 Kenichi Handa <handa@m17n.org>
25309
25310 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
25311 (ftfont_list): Don't check :name property.
25312 (ftfont_match): New function.
25313 (ftfont_pattern_entity): If the pattern doesn't contain
25314 FC_SPACING, don't assume FC_MONO.
25315
25316 * font.h (struct font_driver): New member `match'.
25317 (font_update_drivers): Adjust prototype.
25318
25319 * font.c (font_parse_fcname, font_parse_name): Don't change :name
25320 property of FONT.
bba3e508
SM
25321 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
25322 Define them unconditionally.
aac0c6e3
MR
25323 (font_matching_entity): New function.
25324 (font_open_by_name): Try font_matching_entity if exact match is
25325 not found.
25326 (font_update_drivers): Delete the arg FONT. Return a list of
25327 actually used backends. Don't free faces, font caches here.
25328 Don't store data in frame parameters. Don't call x_set_font.
25329 (Ffont_spec): Store :name property as is.
25330 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
25331 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
25332 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
25333 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
25334 Call font->driver->otf_gsub instead of font_otf_gsub.
25335
25336 * frame.c (x_set_font_backend): Do more works that were done in
25337 font_update_drivers before.
25338
25339 * xfont.c (xfont_match): New function.
25340 (xfont_driver): Set xfont_driver.match to xfont_match.
25341 (xfont_draw): Set font in GC if necessary.
25342
25343 * ftxfont.c (ftxfont_match): New function.
25344 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
25345
25346 * xftfont.c (xftfont_match): New function.
25347 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
25348
253492008-02-01 Kenichi Handa <handa@m17n.org>
25350
25351 * font.h (struct font): New member scalable.
25352 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
25353 (font_otf_gsub): Adjust prototype.
25354
25355 * font.c (font_otf_capability): Fix handling of the default langsys.
25356 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
25357 Check the contents of SPEC.
25358 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
25359 (check_gstring): New function.
25360 (REPLACEMENT_CHARACTER): New macro.
25361 (font_otf_gsub): New arg alternate_subst. Be sure to set all
25362 glyph codes of GSTRING.
25363 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
25364 (font_prepare_composition): Set cmp->glyph_len.
25365 (font_open_entity): Set font->scalable.
25366 (Ffont_get): Handle :otf property.
bba3e508
SM
25367 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
25368 New functions.
aac0c6e3
MR
25369 (Fquery_font): Use font->font.full_name.
25370 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
25371 Sfont_otf_alternates.
25372
25373 * ftfont.c (ftfont_open): Set font->font.full_name and
25374 font->font.name properly. Fix calculation of font->font.height
25375 and font->min_width.
25376
25377 * ftxfont.c (ftxfont_create_gcs): New function.
25378 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
25379 (ftxfont_draw_backgrond): Fix filling region.
25380 (ftxfont_default_fid): New function.
25381 (ftxfont_open): Set xfont->fid to the return value of
25382 ftxfont_default_fid.
25383 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
25384 (ftxfont_done_face): Free only GCs that are created by
25385 ftxfont_create_gcs.
25386 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
25387
25388 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
25389 Clip to src->width, etc (not src->clip_XXX).
25390
25391 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
25392 FontBackend frame parameter.
25393
253942008-02-01 Kenichi Handa <handa@m17n.org>
25395
25396 * font.h (struct font_driver_list): New member `on'.
25397 (Fclear_font_cache): EXFUN it.
25398 (font_update_drivers): Extern it.
25399
25400 * font.c (font_unparse_fcname): Fix typo (swidth->width).
25401 (font_list_entities): Check driver_list->on.
40b1a3a9 25402 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
25403 (font_update_drivers): New function.
25404 (Fclear_font_cache): Check driver_list->on.
25405
25406 * frame.h (Qfont_backend): Extern it.
25407 (x_set_font_backend): Extern it.
25408
25409 * frame.c (Qfont_backend): New variable.
25410 (frame_parms): New element for font-backend.
25411 (x_set_font_backend): New function.
25412
25413 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
25414 FontBackend frame parameter.
25415 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
25416 x_set_font_backend.
25417
25418 * xfont.c (xfont_list): Don't try listing by :name property if the
25419 name is not for XLFD.
25420
254212008-02-01 Kenichi Handa <handa@m17n.org>
25422
25423 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
25424 (LGLYPH_SET_TO): New macros.
25425 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
25426 element of G is vector or not.
25427 (font_at): Extern it.
25428
25429 * font.c: Include window.h.
25430 (font_lispy_object): New function.
25431 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
25432 end of valid glyph.
25433 (font_close_object): Fix getting (struct font *).
25434 (font_at): New function.
25435 (Ffont_get): If FONT is a font-object, get entity from it.
25436 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
25437 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
25438 Fix range check.
aac0c6e3
MR
25439 (Ffont_at): New function.
25440 (syms_of_font): Defsubr Sfont_at.
25441
25442 * xdisp.c (it_props): Move the entry for Qauto_composed to just
25443 before the entry for Qcomposition.
25444 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
25445 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
25446 the font in gstring.
25447 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
25448 LGLYPH_FORM (g) to detect the end of valid glyph.
25449 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
25450 we are composing with gstring.
25451
25452 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
25453 Check if adjustment is vector or not.
25454
25455 * Makefile.in (font.o): Make it depends on window.h.
25456
254572008-02-01 Kenichi Handa <handa@m17n.org>
25458
25459 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
25460 adjustment is vector or not.
25461
254622008-02-01 Miles Bader <miles@gnu.org>
25463
25464 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
25465
254662008-02-01 Kenichi Handa <handa@m17n.org>
25467
25468 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 25469 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
25470 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
25471
25472 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
25473 (DEVICE_DELTA): Fix typo.
25474 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
25475 LGLYPH format.
25476
25477 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
25478 the change of LGLYPH format.
25479
254802008-02-01 Kenichi Handa <handa@m17n.org>
25481
25482 * ftfont.c (ftfont_list): Fix typo.
25483 (ftfont_build_basic_charsets): Don't include letters with diacritics.
25484
254852008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25486
25487 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
25488
25489 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
25490 xftface_info is non-NULL.
25491
254922008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25493
25494 * ftfont.c (ftfont_list): Move misplaced #endif.
25495
254962008-02-01 Kenichi Handa <handa@m17n.org>
25497
25498 * ftfont.c (ftfont_list): Pay attention to the case that
25499 FC_CAPABILITY is not defined.
25500
255012008-02-01 Kenichi Handa <handa@m17n.org>
25502
25503 * xftfont.c (xftfont_open): Set charset related members to -1.
25504
25505 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
25506 QCname.
25507 (ftfont_open): Set charset related members to -1.
25508
25509 * fontset.c (Votf_script_alist): New variable.
25510 (syms_of_fontset): Initialize it.
25511 (fontset_font): Delete unused variable.
25512
25513 * fontset.h (Votf_script_alist): Extern it.
25514
25515 * font.c (font_find_for_lface): Optimize code.
25516
25517 * font.h (font_close_object, font_merge_old_spec): Extern them.
25518
255192008-02-01 Kenichi Handa <handa@m17n.org>
25520
25521 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
25522 (syms_of_font): Initialize them.
25523 (font_pixel_size): Allow float value in dpi.
25524 (font_prop_validate_type): Delete.
25525 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
25526 Change caller.
25527 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
25528 (font_prop_validate_extra): Delete.
25529 (font_prop_validate_spacing): New function.
25530 (font_property_table): Add elements for all known properties.
bba3e508
SM
25531 (get_font_prop_index): Rename from check_font_prop_name.
25532 New argument FROM. Change caller.
aac0c6e3
MR
25533 (font_prop_validate): Validate all known properties.
25534 (font_put_extra): Delete argument force. Change caller.
25535 (font_expand_wildcards): Make it static. Fix the way of shrinking
25536 the possible range.
25537 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
25538 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
25539 Change caller.
25540 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
25541 (font_parse_fcname): Delete argument merge. Fix parsing of point
25542 size. Don't validate properties values here. Change caller.
25543 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
25544 (font_open_by_name): Delete unused variable.
25545 (Ffont_spec): Likewise. Validate property values.
25546 (Ffont_match_p): New function.
25547
25548 * font.h (QCscalable): Extern it.
25549 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
25550
25551 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
25552
25553 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
25554 (xfont_list_pattern): New function.
25555 (xfont_list): Use xfont_list_pattern.
25556
255572008-02-01 Kenichi Handa <handa@m17n.org>
25558
25559 * font.h (Flist_fonts): EXFUN it.
25560
255612008-02-01 Jason Rumney <jasonr@gnu.org>
25562
25563 * w32term.c (w32_initialize): Add back smoothing_type and
25564 smoothing_enabled definitions.
25565
255662008-02-01 Kenichi Handa <handa@m17n.org>
25567
25568 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
25569 s->face->font on determining underline position.
25570
255712008-02-01 Kenichi Handa <handa@m17n.org>
25572
25573 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
25574 (font_has_char): Accept font-object too.
25575 (font_find_for_lface): Try at first with a size specified in face.
25576
255772008-02-01 Kenichi Handa <handa@m17n.org>
25578
25579 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
25580 font_open_by_name.
25581
255822008-02-01 Kenichi Handa <handa@m17n.org>
25583
25584 * font.h (QCspacing, QCdpi): Extern them.
25585 (enum font_spacing): New enum.
25586 (FONT_PIXEL_SIZE_QUANTUM): New macro.
25587
25588 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
25589 (QCspacing, QCdpi): New variables.
25590 (syms_of_font): Initialize them.
25591 (font_pixel_size): New function.
25592 (font_put_extra): New function.
25593 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
25594 in FONT_EXTRA.
25595 (font_parse_fcname): Handle enumerated values (e.g. bold).
25596 Fix handling font size. Add QCname property that contains only
25597 unknown properties.
25598 (font_score): Change argument. Change caller. Pay attention to
25599 FONT_PIXEL_SIZE_QUANTUM.
25600 (font_sort_entites, font_list_entities, font_find_for_lface)
25601 (font_open_for_lface, font_open_by_name): Fix handling of font size.
25602 (Ffont_spec): Add QCname property that contains only unknown properties.
25603
bba3e508
SM
25604 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
25605 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
25606 listed font. Don't include scalable in pattern. Pay attention to
25607 FONT_PIXEL_SIZE_QUANTUM.
25608
256092008-02-01 Kenichi Handa <handa@m17n.org>
25610
25611 * font.c (font_parse_fcname): Fix parsing of point-size.
25612 (font_unparse_fcname): Produce symbolic names for style properties.
25613 (font_list_entities): Handle float size correctly.
25614 (font_open_by_name): Prefer `normal' property values if the name
25615 doesn't specify them.
25616
25617 * fontset.c (Finternal_char_font): Use font_get_name, not
25618 Ffont_xlfd_name.
25619
25620 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
25621 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
25622 pattern. Don't force scalable.
25623
25624 * xftfont.c (xftfont_open): For generating a name, start from
25625 96-byte buffer.
25626
256272008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25628
25629 * frame.h (x_new_fontset2): Fix prototype.
25630
256312008-02-01 Kenichi Handa <handa@m17n.org>
25632
25633 * font.h (struct font_driver): Delete member parse_name.
25634 (font_match_p, font_get_spec, font_parse_fcname)
25635 (font_unparse_fcname): Extern them.
25636 (font_get_name): Adjust prototype.
25637
25638 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
25639 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
25640 (font_expand_wildcards): Fix handling ENCODING field.
25641 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
25642 (font_parse_fcname): New function.
25643 (font_unparse_fcname): New function.
25644 (font_parse_name): New function.
25645 (font_match_p): New function.
25646 (font_get_name): Change return value to Lisp string.
25647 (font_get_spec): New function.
25648 (Qunspecified, Qignore_defface): Don't extern them.
25649 (font_find_for_lface): Assume that LFACE is fully specified.
25650 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
25651 object, use it for FACE.
25652 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
25653 driver->parse_name.
25654 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
25655
25656 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
25657 prototype.
25658
25659 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
25660 argument F. Don't call Fnew_fontset. Instead, directly call
25661 make_fontset.
25662
25663 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
25664
25665 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
25666 of x_new_fontset2.
25667
25668 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
25669 (Qsans__serif): New variables.
25670 (ftfont_generic_family_list): New variable.
25671 (syms_of_ftfont): Initialize the above variables.
25672 (ftfont_pattern_entity): Delete argument NAME.
25673 (ftfont_list_generic_family): New function.
25674 (ftfont_parse_name): Delete this function.
25675 (ftfont_list): Try generic family only when FcFontList found no font.
25676 (ftfont_list_family): Fix args to FcObjectSetBuild.
25677
25678 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
25679 object in attrs[LFACE_FONT_INDEX].
25680 (set_lface_from_font_name): Cancel all changes for font-backend.
25681 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
25682 function.
25683 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
25684 font object in QCfont attribute.
25685 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
25686 (realize_default_face) [USE_FONT_BACKEND]: Call
25687 set_lface_from_font_and_fontset.
25688
25689 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
25690 "fixed", and signal error here if no suitable font was found.
25691
25692 * xfont.c (xfont_parse_name): Delete this function.
25693
25694 * xftfont.c (xftfont_open): Change coding style of error
25695 handling. Generate fontconfig's fontname pattern.
25696
25697 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
25698 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
25699
25700 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
25701 Both args FONTSET and FONT_OBJECT must be existing ones.
25702
257032008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25704
25705 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
25706
257072008-02-01 Kenichi Handa <handa@m17n.org>
25708
25709 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
25710
25711 * font.h (struct font): Fix typo.
25712
25713 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
25714 XLFD_XXX_INDEX.
25715 (enum xlfd_field_mask): New enum.
ef1b0ba7 25716 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
25717 are followed by non-digits, return a symbol.
25718 (font_expand_wildcards): New function.
25719 (font_parse_xlfd): Fix wildcard handling.
25720 (Ffont_spec): If :name is specified, reflect the info in the other
25721 properties.
25722
25723 * ftfont.c (ftfont_pattern_entity): Fix typo.
25724 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
25725 locale.
25726
257272008-02-01 Kenichi Handa <handa@m17n.org>
25728
25729 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
25730
25731 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
25732 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
25733 registry doesn't specify encoding part.
25734 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
25735 (font_open_by_name): At first try parsing the name.
25736 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
25737 as Lisp symbols.
25738
25739 * fontset.c (reorder_font_vector): Pay attention to the case that
25740 the 3rd element of font_def is nil.
25741 (fontset_font): For the default fontset, append one more fontset
25742 elements for a script-based font specification. Don't add script
25743 attribute on finding a font.
25744 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
25745 font name.
25746 (fontset_ascii_font): If a font can't be opened, return nil.
25747
25748 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
25749 (ftfont_pattern_entity): New function.
25750 (ftfont_get_cache): Assume that freetype_font_cache is already
25751 initialized.
25752 (ftfont_list): Handle the case that a file is specified in font
25753 name. Use ftfont_pattern_entity to generate entities.
25754 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
25755 (syms_of_ftfont): Initialize freetype_font_cache.
25756
25757 * xftfont.c (xftfont_open): Make the font name fontconfig's
25758 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
25759 (xftfont_close): Free font->font.name if not NULL.
25760
25761 * xfont.c (xfont_list): If script is specified for a font, return
25762 null_vector.
25763 (xfont_list_family): Declare argument type.
25764
25765 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
25766 name, set LFACE_FONT (lface) to nil.
25767
25768 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
25769 return Qnil.
25770
257712008-02-01 Kenichi Handa <handa@m17n.org>
25772
25773 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
25774 (standard_args): Add "-enable-font-backend".
25775
257762008-02-01 Kenichi Handa <handa@m17n.org>
25777
25778 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
25779 (struct xftdraw_list, xftdraw_list): Delete them.
25780 (register_xftdraw, check_xftdraw): Delete them.
25781 (xftfont_prepare_face): Don't call register_xftdraw.
25782 (xftfont_done_face): Don't call check_xftdraw.
25783 (xftfont_draw): Get background color only when with_background is
25784 nonzero.
25785
25786 * xfont.c (xfont_encode_char): Fix calculation of char2b.
25787
257882008-02-01 Kenichi Handa <handa@m17n.org>
25789
25790 These changes are for the new font handling codes.
25791
25792 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
25793 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
25794 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
25795 (FONTSRC, FONTOBJ): New variables.
25796 (obj): Add $(FONTOBJ).
25797 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
25798 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
25799 @LIBOTF_LIBS@.
25800 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
25801 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
25802
25803 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
25804
25805 * character.h (Vscript_representative_chars): Extern it.
25806
25807 * character.c (Vscript_representative_chars): New variable.
25808 (syms_of_character): Declare it as a Lisp variable.
25809
25810 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25811 enable_font_backend is nonzero, accept the composition method
25812 COMPOSITION_WITH_GLYPH_STRING.
25813
25814 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25815 enumeration COMPOSITION_WITH_GLYPH_STRING.
25816
25817 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25818 members clip_x, clip_y, clip_width, and clip_height.
25819 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25820
25821 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25822 --enable-font-backend. Call syms_of_font.
25823
25824 * fns.c (assoc_no_quit): New function.
25825
25826 * fontset.h (FONT_INFO_FROM_FACE): New macro.
25827 (face_for_font, new_fontset_from_font)
25828 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25829
25830 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25831 (fontset_font, fontset_ascii, face_for_char)
25832 (make_fontset_for_ascii_face, Ffont_info)
25833 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25834 is nonzero, use font-backend mechanism.
25835 (find_font_encoding): Make it non-static.
25836 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25837 New functions.
25838
25839 * frame.h (struct frame): New members resx and resy.
25840 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25841 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25842
25843 * frame.c [USE_FONT_BACKEND]: Include "font.h".
25844 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25845
25846 * lisp.h (assoc_no_quit): Extern it.
25847
25848 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25849 Through out the file, use FONT_INFO_FROM_FACE instead of
25850 FONT_INFO_FROM_ID, use get_per_char_metric instead of
25851 rif->per_char_metric.
25852 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25853 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25854 (get_glyph_face_and_encoding, fill_composite_glyph_string)
25855 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25856 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25857 nonzero, use font-backend mechanism.
25858 (get_per_char_metric): New function.
25859
25860 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25861 (set_lface_from_font_name)
25862 (set_font_frame_param, free_realized_face)
25863 (prepare_face_for_display, clear_face_gcs)
25864 (Finternal_set_font_selection_order, realize_x_face)
25865 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25866 font-backend mechanism.
25867 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25868 (load_face_font) [USE_FONT_BACKEND]: Abort.
25869 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25870 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25871
25872 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25873 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25874 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
25875 nonzero, register all available font drivers.
25876 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
25877 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25878
25879 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25880 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25881 (x_set_glyph_string_clipping_exactly)
25882 (x_compute_glyph_string_overhangs)
25883 (x_draw_glyph_string_foreground)
25884 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25885 (x_free_frame_resources) [USE_FONT_BACKEND]: If
25886 enable_font_backend is nonzero, use font-backend mechanism.
25887 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25888
258892008-02-01 Kenichi Handa <handa@m17n.org>
25890
25891 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25892 system_eol_type.
25893 (syms_of_coding): Initialize system_eol_type.
25894
25895 * process.c (Fset_process_coding_system): Inherit system's eol
25896 format if necessary.
25897
258982008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25899
25900 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25901
259022008-02-01 Kenichi Handa <handa@m17n.org>
25903
25904 * coding.c (decode_eol): Pay attention to buffer relocation in
25905 del_range_2.
25906 (decode_coding): Call decode_eol before restoring undo_list.
25907
259082008-02-01 Kenichi Handa <handa@m17n.org>
25909
25910 * charset.c (Fdefine_charset_internal): Fix setting of
25911 emacs_mule_bytes.
25912
259132008-02-01 Kenichi Handa <handa@m17n.org>
25914
25915 * keyboard.c (read_char): Check if C is a character or not before
25916 looking up Vkeyboard_translate_table.
25917
259182008-02-01 Kenichi Handa <handa@m17n.org>
25919
bba3e508
SM
25920 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
25921 Fix condition to terminate the loop.
aac0c6e3
MR
25922
259232008-02-01 Kenichi Handa <handa@m17n.org>
25924
25925 * coding.c (produce_composition): Compare charbuf[i] instead of
25926 args[i] against 0.
25927 (Fterminal_coding_system): Use EQ to compare Lisp objects.
25928
259292008-02-01 Kenichi Handa <handa@m17n.org>
25930
25931 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25932 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25933 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25934 detect_coding.
25935 (emacs_mule_char): Handle old style (Emacs 20) component character
25936 of a composition.
25937 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25938 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25939 composition rule.
25940 (decode_coding_emacs_mule): Handle invalid bytes correctly.
25941
259422008-02-01 Kenichi Handa <handa@m17n.org>
25943
25944 * coding.c (encode_coding_ccl): Allocate destination dynamically
25945 when necessary.
25946
259472008-02-01 Kenichi Handa <handa@m17n.org>
25948
25949 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
25950 the loop. When quitted, show a proper error message.
25951
259522008-02-01 Kenichi Handa <handa@m17n.org>
25953
bba3e508
SM
25954 * xterm.c (x_set_glyph_string_clipping_exactly):
25955 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
25956
25957 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
25958 character sequence.
25959 (Fccl_execute_on_string): Use ASET, not XSET.
25960
259612008-02-01 Kenichi Handa <handa@m17n.org>
25962
25963 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
25964
259652008-02-01 Kenichi Handa <handa@m17n.org>
25966
25967 * coding.c (decode_coding): Fix the condition of terminating the
25968 decoding loop.
25969
259702008-02-01 Kenichi Handa <handa@m17n.org>
25971
25972 * data.c (Faset): On setting a character bigger than 255 in a
25973 unibyte string, signal an error instead of make the string multibyte.
25974
259752008-02-01 Kenichi Handa <handa@m17n.org>
25976
25977 * charset.c (map_charset_chars): Fix for ascii-compatible charset
25978 made by a mapping table.
25979
259802008-02-01 Kenichi Handa <handa@m17n.org>
25981
25982 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
25983 not.
25984 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
25985 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
25986
bba3e508
SM
25987 * xterm.c (x_draw_composite_glyph_string_foreground):
25988 Check s->face is NULL or not.
aac0c6e3
MR
25989
259902008-02-01 Kenichi Handa <handa@m17n.org>
25991
25992 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
25993 (x_draw_glyph_string): Fix drawing of right_overhang and
25994 left_overhang around/on cursor.
25995
25996 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
25997
259982008-02-01 Kenichi Handa <handa@m17n.org>
25999
26000 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
26001
260022008-02-01 Kenichi Handa <handa@m17n.org>
26003
26004 * coding.c (Fdefine_coding_system_internal)
26005 (Fdefine_coding_system_alias): Avoid a duplicated element in
26006 Vcoding_system_alist.
26007
260082008-02-01 Kenichi Handa <handa@m17n.org>
26009
26010 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
26011
26012 * coding.c (Qcoding_system_define_form): New variable.
26013 (syms_of_coding): Intern and staticpro it.
26014 (Fcoding_system_p): Check Qcoding_system_define_form.
26015 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
26016
26017 * coding.h (CODING_SYSTEM_P): If ID is not available, call
26018 Fcoding_system_p.
26019 (CHECK_CODING_SYSTEM): If ID is not available, call
26020 Fcheck_coding_system.
26021 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
26022 Try also Fcheck_coding_system.
26023
260242008-02-01 Kenichi Handa <handa@m17n.org>
26025
26026 * coding.c (code_conversion_restore): GCPRO arg.
26027
260282008-02-01 Kenichi Handa <handa@m17n.org>
26029
26030 * character.c (lisp_string_width): Check multibyteness of STRING.
26031
260322008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26033
26034 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
26035 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
26036 (decode_mac_font_name): Use decode_coding_c_string instead of
26037 decode_coding.
bba3e508
SM
26038 (x_load_font): Initialize fontp->fontset to -1.
26039 Set fontp->encoding_type.
aac0c6e3
MR
26040
260412008-02-01 Kenichi Handa <handa@m17n.org>
26042
26043 * search.c (search_buffer): Give up BM search on case-fold-search
26044 if one of a target character has a case-equivalence of different
3b59c351 26045 byte length even if that target character is an ASCII.
aac0c6e3
MR
26046 (simple_search): Fix calculation of byte length of matched text.
26047 (boyer_moore): Fix handling of case-equivalent multibyte characters.
26048
260492008-02-01 Kenichi Handa <handa@m17n.org>
26050
26051 * coding.c (decode_coding): Fix handling of invalid bytes.
26052
260532008-02-01 Kenichi Handa <handa@m17n.org>
26054
26055 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
26056 Unicode characters.
26057
260582008-02-01 Kenichi Handa <handa@m17n.org>
26059
26060 * coding.c (encode_coding_object): If a pre-write-conversion
26061 function makes a new buffer, kill it.
26062
260632008-02-01 Kenichi Handa <handa@m17n.org>
26064
26065 * coding.c (QCascii_compatible_p): New variable.
26066 (syms_of_coding): Initialize it.
26067 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
26068 calling string_char.
26069 (record_conversion_result): Add `default:' case.
26070 (coding_charset_list): Delete unused variable `coding_type'.
26071 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
26072 property in the plist of the coding system.
26073 (Fcoding_system_put): Check QCascii_compatible_p.
26074
260752008-02-01 Miles Bader <miles@gnu.org>
26076
26077 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
26078 removed calculation of frame `f', as it's now used.
26079
260802008-02-01 Kenichi Handa <handa@m17n.org>
26081
26082 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
26083 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
26084 (UNIDATA): New variable.
26085 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
26086 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
26087 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
26088
260892008-02-01 Kenichi Handa <handa@m17n.org>
26090
26091 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
26092 (admindir): New variable.
26093 ($(lispsource)international/charprop.el): New target.
26094
260952008-02-01 Miles Bader <miles@gnu.org>
26096
26097 * character.c (chars-in-region): Remove obsolete function.
26098 (syms_of_character): Remove its initialization.
26099
261002008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
26101
26102 * w32select.c (validate_coding_system)
26103 (setup_windows_coding_system): New functions.
bba3e508
SM
26104 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
26105 Use setup_windows_coding_system.
26106 (setup_config, Fw32_get_clipboard_data):
26107 Use validate_coding_system.
aac0c6e3
MR
26108 (Fx_selection_exists): Move call to setup_config to a place
26109 where signals are allowed.
26110
26111 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
26112 (Fcheck_coding_system): Add declarations.
26113
261142008-02-01 Kenichi Handa <handa@m17n.org>
26115
26116 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
26117
261182008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26119
26120 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
26121 string as the second argument for x_new_fontset.
26122
261232008-02-01 Kenichi Handa <handa@m17n.org>
26124
26125 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
26126 (encode_coding_object): Use safe_call instead of call2.
26127
261282008-02-01 Kenichi Handa <handa@m17n.org>
26129
26130 * fontset.c (Fset_fontset_font): Check family element of a given vector.
26131
26132 * Makefile.in (lisp): Include charprop.el.
26133
261342008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26135
26136 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
26137 Not sure if it's unnecessary.
26138
261392008-02-01 Steven Tamm <steventamm@mac.com>
26140
26141 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
26142 some possibly unnecessary fontset checking code that crashed
26143 when creating a new frame.
26144
261452008-02-01 Kenichi Handa <handa@m17n.org>
26146
26147 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
26148 lookup_face.
26149
26150 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
26151
26152 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
26153
261542008-02-01 Kenichi Handa <handa@m17n.org>
26155
26156 * coding.c: Cancel the change done in HEAD on 2008-02-01.
26157 (coding_charset_list): New function.
26158
26159 * coding.h (coding_charset_list): Extern it.
26160
261612008-02-01 Kenichi Handa <handa@m17n.org>
26162
26163 * fontset.c (Fset_fontset_font): Call find_font_encoding with
26164 concatenation of family and registry.
26165
261662008-02-01 Kenichi Handa <handa@m17n.org>
26167
26168 * character.h (BYTE8_STRING): Fix typo.
26169
26170 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
26171 string to multibyte (sync to HEAD).
26172
26173 * casefiddle.c (casify_region): Handle changes in byte-length
26174 using replace_range_2 (sync to HEAD).
26175
261762008-02-01 Andreas Schwab <schwab@suse.de>
26177
26178 * chartab.c (map_char_table): GCPRO table and arg.
26179
261802008-02-01 Kenichi Handa <handa@m17n.org>
26181
26182 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
26183 already at limit.
26184
261852008-02-01 Kenichi Handa <handa@m17n.org>
26186
26187 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
26188 instead of fast_c_string_match_ignore_case.
bba3e508
SM
26189 (find_font_encoding): Change argument to Lisp_Object.
26190 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
26191 fast_c_string_match_ignore_case. Change caller.
26192
261932008-02-01 Kenichi Handa <handa@m17n.org>
26194
26195 * xdisp.c (get_next_display_element): In unibyte case, decide to
26196 display in octal form by checking a character by
26197 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
26198
26199 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
26200
26201 * character.c (unibyte_has_multibyte_table): New variable.
26202
26203 * character.h (unibyte_has_multibyte_table): Extern it.
26204 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
26205
262062008-02-01 Kenichi Handa <handa@m17n.org>
26207
26208 * coding.c (encode_coding_iso_2022): Fix handling of charset
26209 annotation.
26210
262112008-02-01 Kenichi Handa <handa@m17n.org>
26212
26213 * coding.c (setup_coding_system): If coding_system is nil, use
26214 Qundecided.
26215 (Fterminal_coding_system): Return nil if terminal coding system is
26216 `undecided'.
bba3e508
SM
26217 (syms_of_coding): Define coding-system `undecided' here.
26218 Setup terminal_coding as `undecided'.
aac0c6e3
MR
26219
262202008-02-01 Kenichi Handa <handa@m17n.org>
26221
bba3e508
SM
26222 * xdisp.c (message_dolog, set_message_1):
26223 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
26224
26225 * lread.c (read1): Fix reading of a char-table.
26226
26227 * print.c (print_object): Include sub char-table in circularities
26228 detection.
26229
262302008-02-01 Kenichi Handa <handa@m17n.org>
26231
26232 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
26233 Append the found sequences in car of ARGS instead of prepending.
26234
262352008-02-01 Kenichi Handa <handa@m17n.org>
26236
26237 * fileio.c (report_file_error): Make a unibyte string from
26238 strerror (errorno).
26239 (Fsubstitute_in_file_name): Fix the arg to
26240 unibyte_char_to_multibyte. It is evaluated twice.
26241
262422008-02-01 Kenichi Handa <handa@m17n.org>
26243
26244 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
26245
262462008-02-01 Kenichi Handa <handa@m17n.org>
26247
26248 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
26249 BOM is not found.
26250 (detect_coding, detect_coding_system): Optimization for ISO-2022
26251 when no 8-bit data is found.
26252
262532008-02-01 Jason Rumney <jasonr@gnu.org>
26254
26255 * w32fns.c (x_to_w32_font): Update to use new coding struct.
26256
262572008-02-01 Kenichi Handa <handa@m17n.org>
26258
26259 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
26260 CHARS.
26261
262622008-02-01 Steven Tamm <steventamm@mac.com>
26263
26264 * macterm.c (mac_encode_char): Add charset argument and update
26265 to use encoding_type.
26266 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
26267 switch to pure fontset.
26268 (decode_mac_font_name): Temporarily remove decoding.
26269 (x_font_name_to_mac_font_name): Temporarily remove encoding.
26270 (x_load_font): Temporarily remove encoding.
26271
262722008-02-01 Kenichi Handa <handa@m17n.org>
26273
26274 * xfaces.c (Fface_font): If frame is not on a window system,
26275 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
26276 refer to face->font.
26277 (split_font_name_into_vector, build_font_name_from_vector)
26278 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
26279 when HAVE_WINDOW_SYSTEM is defined.
26280
262812008-02-01 Kenichi Handa <handa@m17n.org>
26282
26283 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
26284 (x_produce_glyphs): Fix setting of members of cmp in case
26285 cmp->glyph_len is zero.
26286
26287 * fontset.c (Fset_fontset_font): Fix docstring.
26288 (Ffontset_info): Make it backward compatible. New arg ALL.
26289
262902008-02-01 Kim F. Storm <storm@cua.dk>
26291
26292 * process.c (read_process_output): Grow decoding_buf when needed;
26293 this could cause a crash in allocate_string and compact_small_strings.
26294
262952008-02-01 Kenichi Handa <handa@m17n.org>
26296
26297 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
26298
262992008-02-01 Kenichi Handa <handa@m17n.org>
26300
26301 * coding.c (setup_coding_system): Set coding->common_flags
26302 correctly for raw-text.
26303 (consume_chars): On encoding unibyte text by raw-text, don't check
26304 multibyte form.
26305 (encode_coding): On encoding by raw-text, never use translation tables.
26306
26307 * fileio.c (e_write): Short cut for the case of no encoding.
26308
263092008-02-01 Kenichi Handa <handa@m17n.org>
26310
26311 * coding.c (detect_coding, detect_coding_system): Delete unused
26312 variables.
26313
263142008-02-01 Kenichi Handa <handa@m17n.org>
26315
26316 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
26317 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
26318
263192008-02-01 Kenichi Handa <handa@m17n.org>
26320
bba3e508
SM
26321 * coding.c (Ffind_coding_systems_region_internal):
26322 Include raw-text and no-conversion in the result.
aac0c6e3
MR
26323
263242008-02-01 Kenichi Handa <handa@m17n.org>
26325
26326 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
26327 (load_font_get_repertory): Delete unnecessary check of ENCODING of
26328 FONT_DEF.
26329 (font_def_arg, add_arg, from_arg, to_arg): New args.
26330 (set_fontset_font): Change argument.
26331 (Fset_fontset_font): Fix for the case that TARGET is a script
26332 name and charset name.
26333 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
26334
263352008-02-01 Kenichi Handa <handa@m17n.org>
26336
26337 * fontset.c (fontset_font): Rename from fontset_face. Change return
26338 value.
26339 (face_suitable_for_char_p, face_for_char): Adjust for the change
26340 of fontset_font.
26341 (make_fontset_for_ascii_face): Fix setting of the fontset element
26342 for ASCII.
26343 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
26344 to get a font name.
26345 (Ffontset_info): Adjust for the change of fontset_font.
26346
26347 * coding.c (emacs_mule_char): Check invalid code more rigidly.
26348
26349 * character.h (LEADING_CODE_LATIN_1_MIN)
26350 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
26351
263522008-02-01 Kenichi Handa <handa@m17n.org>
26353
26354 * editfns.c (check_translation): New function.
26355 (Ftranslate_region_internal): Handle M:N mapping.
26356
263572008-02-01 Kenichi Handa <handa@m17n.org>
26358
26359 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
26360
263612008-02-01 Kenichi Handa <handa@m17n.org>
26362
26363 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
26364 goto invalid_code.
26365 (decode_coding_iso_2022): Fix handling of invalid designation.
26366
26367 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
26368 after calling code_conversion_save.
26369
263702008-02-01 Kenichi Handa <handa@m17n.org>
26371
26372 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
26373
26374 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
26375
26376 * fontset.c: Include "intervals.h".
26377 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
26378 (free_face_fontset, new_fontset_from_font_name):
26379 Fix Lisp_Object/int mixup.
aac0c6e3
MR
26380
26381 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
26382
26383 * coding.c: Add many prototypes for static functions.
26384 (get_translation_table): Allow max_lookup to be NULL.
26385 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
26386 (Funencodable_char_position, Fcheck_coding_systems_region):
26387 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
26388
263892008-02-01 Kenichi Handa <handa@m17n.org>
26390
26391 * coding.c (get_translation_table): Declare it as Lisp_Object.
26392 (LOOKUP_TRANSLATION_TABLE): New macro.
26393 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
26394 instead of CHAR_TABLE_REF.
26395
263962008-02-01 Kenichi Handa <handa@m17n.org>
26397
26398 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
26399 annotation data format.
26400 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
26401 Change arguments FROM and TO to single argument NCHARS. Change caller.
26402 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
26403 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26404 (decode_coding_ccl, decode_coding_charset): Pay attention to
26405 coding->charbuf_used.
26406 (get_translation): New function.
26407 (produce_chars): New arguments translation_table and last_block.
26408 Translate characters here. Return number of carryover chars.
26409 Change caller.
26410 (produce_composition): New argument pos. Change caller.
26411 Adjust for the change of annotation data format.
26412 (produce_charset, produce_annotation): Likewise.
26413 (decode_coding, encode_coding): Don't call translate_chars.
26414 (consume_chars): New arg translation_table. Change caller.
26415 (translate_chars): Delete.
26416 (syms_of_coding): Make translation-table's number of extra slots 2.
26417
264182008-02-01 Kenichi Handa <handa@m17n.org>
26419
26420 * search.c (simple_search): Fix setting this_pos_byte in backward
26421 search.
26422
26423 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
26424 byte sequence.
26425 (detect_coding_ccl): Fix setting of the variable valids.
26426
264272008-02-01 Kenichi Handa <handa@m17n.org>
26428
26429 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
26430
26431 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
26432
26433 * editfns.c (Ftranslate_region_internal): Rename from
26434 Ftranslate_region. Accept a char-table in TABLE.
26435 (syms_of_editfns): Defsubr Stranslate_region_internal.
26436
26437 * xfaces.c (set_lface_from_font_name): If a font is specified for
26438 a frame, generate a fontset from the font.
26439 (build_scalable_font_name): If the scalable font is requested for
26440 a specific size, don't change that size.
26441 (try_font_list): Try a scalable font also in the case that a
26442 pattern string is specified.
26443
264442008-02-01 Kenichi Handa <handa@m17n.org>
26445
26446 * xfaces.c (Fface_font): New optional arg CHARACTER.
26447
264482008-02-01 Kenichi Handa <handa@m17n.org>
26449
26450 * charset.h (CHARSET_OFFSET): New macro.
26451
264522008-02-01 Kenichi Handa <handa@m17n.org>
26453
26454 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
26455
26456 * fontset.c (fontset_face): Handle the case that repertory is a
26457 char-table.
26458 (find_font_encoding): Return nil for unknown encoding.
26459 (Fset_fontset_font): Ignore a font of unknown encoding.
26460
264612008-02-01 Kenichi Handa <handa@m17n.org>
26462
26463 * keymap.c (describe_vector): Handle default value of a char table.
26464
26465 * fontset.c (fontset_face): Handle fallback fonts correctly.
26466 (Ffontset_info): Return infomation about fallback fonts.
26467
264682008-02-01 Kenichi Handa <handa@m17n.org>
26469
26470 * fontset.c (FONTSET_DEFAULT): New macro.
26471 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
26472 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
26473 the case that it is nil.
26474 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
26475 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
26476
26477 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
26478 subset or superset.
26479
264802008-02-01 Kenichi Handa <handa@m17n.org>
26481
26482 * emacs.c (main): Call init_charset after syms_of_XXX.
26483
26484 * charset.c (Vcharset_map_directory): Delete.
26485 (Vcharset_map_path): New variable.
26486 (load_charset_map_from_file): Use Vcharset_map_path instead.
26487 (init_charset): Initialize Vcharset_map_path.
26488 (syms_of_charset): Delete declaration of "charset-map-directory",
26489 add declaration of "charset-map-path".
26490
264912008-02-01 Kenichi Handa <handa@m17n.org>
26492
26493 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
26494 ASCII only string.
26495
26496 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
26497
26498 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
26499 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
26500
265012008-02-01 Kenichi Handa <handa@m17n.org>
26502
26503 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
26504
26505 * coding.c (QCmnemonic, QCdefalut_char)
26506 (QCdecode_translation_table, QCencode_translation_table)
26507 (QCpost_read_conversion, QCpre_write_conversion): New variables.
26508 (get_translation_table): Return a list of translation tables if
26509 necessary.
26510 (decode_coding): Call get_translation_table with ENCODEP 0.
26511 (char_encodable_p): If translation_table is non-nil, always call
26512 translate_char.
26513 (Fdefine_coding_system_internal): Accept list of translation
26514 tables as :encode-translation-table and :decode-translation-table.
26515 (Fcoding_system_put): New function.
bba3e508
SM
26516 (syms_of_coding): Declare new symbols.
26517 Defsubr Scoding_system_put.
aac0c6e3
MR
26518 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
26519 typically JISX0212.
26520
26521 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
26522 when the charset is superset type.
26523
26524 * character.c (translate_char): Accept list of translation tables.
26525
265262008-02-01 Kenichi Handa <handa@m17n.org>
26527
26528 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
26529 (CODING_ATTR_TRANS_TBL): New macro.
26530
26531 * coding.c (get_translation_table): New function.
26532 (translate_chars): Fix the bug of skipping annotation data.
26533 (decode_coding, encode_coding): Utilize get_translation_table.
26534 (char_encodable_p, Funencodable_char_position): Translate char if
26535 necessary.
26536 (Ffind_coding_systems_region_internal)
26537 (Fcheck_coding_systems_region): Setup translation table for encode
26538 in a coding system attribute vector in advance.
26539 (Fdefine_coding_system_internal): Allow a symbol as translation
26540 table. For shift-jis type coding system, allow 4th charset.
26541
265422008-02-01 Kenichi Handa <handa@m17n.org>
26543
26544 * coding.c (decode_coding_sjis): Check the first byte rigidly.
26545
26546 * xdisp.c (get_next_display_element): Pass -1 as POS to
26547 FACE_FOR_CHAR if displaying a C-string.
26548
265492008-02-01 Kenichi Handa <handa@m17n.org>
26550
26551 * composite.c (get_composition_id): Handle xoff and yoff in a
26552 composition rule.
26553
26554 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
26555 (struct composition): New member lbearing and rbearing.
26556
26557 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
26558 (x_get_glyph_overhangs): Handle a composition glyph.
26559 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
26560
26561 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
26562 composition glyph.
26563
265642008-02-01 Kenichi Handa <handa@m17n.org>
26565
26566 * print.c: Include charset.h.
26567 (Vprint_charset_text_property): New variable.
26568 (Qdefault): Extern it.
26569 (PRINT_STRING_NON_CHARSET_FOUND)
26570 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
26571 (print_check_string_result): New variable.
26572 (print_check_string_charset_prop): New function.
26573 (print_prune_charset_plist): New variable.
26574 (print_prune_string_charset): New function.
26575 (print_object): Call print_prune_string_charset if
26576 Vprint_charset_text_property is not t.
26577 (print_interval): Print nothing if interval->plist is nil.
26578 (syms_of_print): Declare Vprint_charset_text_property as a lisp
26579 variable. Init and staticpro print_prune_charset_plist.
26580
265812008-02-01 Kenichi Handa <handa@m17n.org>
26582
26583 * fontset.c (new_fontset_from_font_name): Use the specified font
26584 for all characters in the new fontset.
26585
26586 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26587 OBJECT args.
26588
26589 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
26590 OBJECT args for composition too.
26591
26592 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26593 OBJECT args.
26594
265952008-02-01 Kenichi Handa <handa@m17n.org>
26596
26597 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
26598
26599 * fontset.c (reorder_font_vector): Adjust for the change of
26600 FONT_DEF format.
26601 (fontset_face): New arg id. Change caller.
26602 (face_for_char): New args pos and object.
26603 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
26604 (fs_query_fontset): Check NAME by Fassoc too.
26605 (Fset_fontset_font): Allow non-XLFD font name.
26606 (Ffontset_info): Adjust for the change of FONT_DEF format.
26607
26608 * fontset.h (face_for_char): Adjust prototype.
26609
26610 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
26611 (append_space, extend_face_to_end_of_line)
26612 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
26613 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
26614
26615 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
26616 POS and OBJECT args.
26617
26618 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
26619 POS and OBJECT args.
26620
266212008-02-01 Jason Rumney <jasonr@gnu.org>
26622
26623 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
26624 of GlobalAlloc'ed memory.
26625
266262008-02-01 Kenichi Handa <handa@m17n.org>
26627
26628 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
26629
26630 * charset.h (charset_table_used): Delete extern.
26631
26632 * charset.c (charset_table_used): Make it static.
26633 (map_charset_chars): Fix args to c_function with.
26634
26635 * chartab.c (map_sub_char_table_for_charset): Fix args to
26636 c_function with.
26637
bba3e508
SM
26638 * coding.h (enum coding_result_code):
26639 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
26640
26641 * coding.c (Qinsufficient_source, Qinconsistent_eol)
26642 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
26643 (Vlast_code_conversion_error): New variables.
26644 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
26645 (ONE_MORE_BYTE): Record error if any instead of signaling an
26646 error. If non-ASCII multibyte char is found, return the negative
26647 value of the code. All callers changed to check it.
26648 (ONE_MORE_BYTE_NO_CHECK): Likewise.
26649 (record_conversion_result): New function. Change all codes setting
26650 coding->result to call this function.
26651 (detect_coding_utf_8, decode_coding_utf_8)
26652 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
26653 Don't use the local variable incomplete.
26654 (emacs_mule_char): Change the second arg to `const'.
26655 (decode_coding): Fix of flushing out unprocessed data.
26656 (make_conversion_work_buffer): Fix making of a work buffer.
26657 (decode_coding_object): Return coding->dst_object.
26658
26659 * fontset.c (set_fontset_font): Fix args.
26660
26661 * lisp.h (CHARACTERBITS): Define as 22.
26662
26663 * process.c (send_process): Be sure to set coding->src_multibyte.
26664
26665 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
26666
266672008-02-01 Kenichi Handa <handa@m17n.org>
26668
26669 * xdisp.c (handle_auto_composed_prop): Give limit to
26670 Fnext_single_char_property_change.
26671
266722008-02-01 Kenichi Handa <handa@m17n.org>
26673
26674 * composite.c (syms_of_composite): Don't make the composition hash
26675 table weak.
26676
26677 * fontset.c (Fset_fontset_font): Fix docstring.
26678
26679 * lisp.h (detect_coding_system): Adjust prototype.
26680
26681 * fileio.c (kill_workbuf_unwind): Delete this function.
26682 (Finsert_file_contents): Adjust the call of detect_coding_system.
26683 Get conversion_buffer by code_conversion_save. Use the macro
26684 CODING_MAY_REQUIRE_DECODING. After decoding, update
26685 coding_system.
26686
26687 * coding.h (make_conversion_work_buffer): Delete extern.
26688 (code_conversion_save): Extern it.
26689
26690 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
26691 (CODING_GET_INFO): Delete argument eol_type. Change callers.
26692 (decode_coding_utf_8): Don't do eol converion.
26693 (detect_coding_utf_16): Check coding->src_chars, not
26694 coding->src_bytes. Add heuristics for those that have no signature.
26695 (decode_coding_emacs_mule, decode_coding_iso_2022)
26696 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26697 Don't do eol converion.
26698 (adjust_coding_eol_type): Return a new coding system.
26699 (detect_coding): Don't detect eol. Fix for utf-16 detection.
26700 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
26701 each change.
26702 (decode_coding): Pay attention to undo_list. Do eol conversion for
26703 all types of coding-systems (if necessary).
26704 (Vcode_conversion_work_buf_list): Delete it.
26705 (Vcode_conversion_reused_workbuf): Rename from
26706 Vcode_conversion_reused_work_buf.
26707 (Vcode_conversion_workbuf_name): New variable.
26708 (reused_workbuf_in_use): New variable.
26709 (make_conversion_work_buffer): Delete the arg DEPTH.
26710 (code_conversion_restore): Change argument to cons.
26711 (code_conversion_save): Delete the argument BUFFER. Change callers.
26712 (detect_coding_system): New argument src_chars. Change callers.
26713 Fix for utf-16 detection.
26714 (init_coding_once): Don't use ISO_carriage_return.
26715 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
26716 reused_workbuf_in_use.
26717
267182008-02-01 Kenichi Handa <handa@m17n.org>
26719
26720 * keymap.c (store_in_keymap): Pay attention to the case that idx
26721 is a cons specifying a character range.
26722
267232008-02-01 Kenichi Handa <handa@m17n.org>
26724
26725 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
26726 HANDLED_RECOMPUTE_PROPS.
26727
26728 * coding.c (Fdefine_coding_system_internal): Fix checking of
26729 ascii compatibility.
26730
267312008-02-01 Kenichi Handa <handa@m17n.org>
26732
26733 * charset.c (find_charsets_in_text): Delete unused locale variable.
26734 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
26735
26736 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
26737 Resync charset_list to Vemacs_mule_charset_list.
26738
26739 * keymap.c (store_in_keymap): Pay attention to the case that idx
26740 is a cons specifying a character range.
26741
267422008-02-01 Kenichi Handa <handa@m17n.org>
26743
26744 * composite.c (update_compositions): Bind inhibit-read-only, etc
26745 to t before calling remove-list-of-text-properties.
26746
26747 * print.c (print_object): Always print ASCII chars as is.
26748
267492008-02-01 Kenichi Handa <handa@m17n.org>
26750
26751 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
26752
26753 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
26754 is a char table.
26755
267562008-02-01 Kenichi Handa <handa@m17n.org>
26757
26758 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
26759
267602008-02-01 Kenichi Handa <handa@m17n.org>
26761
26762 * xfaces.c (set_lface_from_font_name): Fix for the case that
26763 FONTNAME is not fontset name.
26764
267652008-02-01 Kenichi Handa <handa@m17n.org>
26766
26767 * fns.c (base64_encode_1): Fix previous change.
26768
267692008-02-01 Kenichi Handa <handa@m17n.org>
26770
26771 * fontset.c (set_fontset_font): New function.
26772 (Fset_fontset_font): If a font is specified for a charset, use
26773 map_charset_chars to store the font spec in a fontset.
26774
267752008-02-01 Kenichi Handa <handa@m17n.org>
26776
26777 * fontset.c (fontset_face): Create a fallback fontset on demand.
26778 (make_fontset): Don't create a fallback fontset here.
26779 (free_face_fontset): Free a fallback fontset (if any) too.
26780 (n_auto_fontsets): Delete this variable.
26781 (auto_fontset_alist): New variable.
26782 (new_fontset_from_font_name): Check auto_fontset_alist.
26783 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
26784 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
26785 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
26786 Defsubr Sfontset_list_all.
26787
267882008-02-01 Kenichi Handa <handa@m17n.org>
26789
26790 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
26791
267922008-02-01 Kenichi Handa <handa@m17n.org>
26793
26794 * fontset.c (Fnew_fontset): Check NAME more rigidly.
26795
267962008-02-01 Kenichi Handa <handa@m17n.org>
26797
26798 * editfns.c (Fgoto_char): Fix docstring.
26799
268002008-02-01 Kenichi Handa <handa@m17n.org>
26801
26802 * insdel.c (insert_from_gap): Adjust intervals correctly.
26803
268042008-02-01 Jason Rumney <jasonr@gnu.org>
26805
26806 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26807 (pfnGetFontUnicodeRanges): New dynamically loaded function.
26808 (w32_initialize): Try to load it.
26809 (x_get_font_repertory): Use it if available.
26810 (w32_encode_char): Add shortcut for unicode output.
26811
26812 * w32fns.c (w32_load_system_font): Default charset to -1.
26813 (x_to_w32_charset): Match all fonts for unicode.
26814 (w32_to_x_charset): New parameter matching. Don't return partial
26815 or wildcard charsets.
26816 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26817 (w32_codepage_for_font): Return CP_UNICODE for unicode.
26818 (w32_to_x_font): Match charset to real charset.
26819 (enum_font_cb2): Always list unicode versions.
26820
26821 * makefile.w32-in (temacs): Increase EMHEAP.
26822
268232008-02-01 Jason Rumney <jasonr@gnu.org>
26824
26825 * w32term.c (w32_encode_char): New charset parameter.
26826 font_info.encoding becomes encoding_type.
26827 (x_get_font_repertory): New function. Warning: stub only!
26828 (x_new_font): Return quickly if font already set.
26829 (x_new_fontset): fontsetname parameter is Lisp_Object.
26830 Use new fs_query_fontset. Try new_fontset_from_font_name.
26831 Use fontset_name for return value.
26832
26833 * w32term.h: Declare x_get_font_repertory.
26834
26835 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26836 place of find_charset_in_text. Use encode_coding_object in place
26837 of encode_coding.
26838 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26839 decode_coding.
26840
26841 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26842 of x_new_fontset.
26843 (w32_load_system_font): Initialize charset as unicode.
26844 font_info.encoding becomes encoding_type.
26845 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26846 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26847 (syms_of_w32fns): Set get_font_repertory_func.
26848
26849 * w32console.c: Include character.h. Use terminal_encode_buffer
26850 from term.c.
bba3e508
SM
26851 (write_glyphs): Use new version of encode_terminal_code.
26852 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
26853
26854 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26855 encoding becomes encoding_type.
26856
26857 * term.c (terminal_encode_buffer): Make externally visible.
26858
26859 * makefile.w32-in: Add character.h dependancies.
26860 (character.o, chartab.o): New targets.
26861
268622008-02-01 Kenichi Handa <handa@m17n.org>
26863
26864 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26865 CODING_ID_EOL_TYPE.
26866
268672008-02-01 Andreas Schwab <schwab@suse.de>
26868
26869 * coding.c (produce_chars): Revert last change.
26870
268712008-02-01 Kenichi Handa <handa@m17n.org>
26872
26873 * charset.h (charset_unicode): Extern it.
26874
26875 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
26876 (find_charsets_in_text): Change format of the arc CHARSETS.
26877 New arg MULTIBYTE.
aac0c6e3
MR
26878 (Ffind_charset_region, Ffind_charset_string): Adjust for the
26879 change of find_charsets_in_text.
26880 (Fsplit_char): Fix doc. Never return unknown.
26881
26882 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26883
bba3e508
SM
26884 * coding.c (Fdefine_coding_system_alias):
26885 Update Vcoding_system_list.
aac0c6e3
MR
26886
26887 * fontset.c (load_font_get_repertory): Pay attention to the case
26888 that ENCODING of a font is specified by a char-table.
26889
26890 * xterm.c (x_get_font_repertory): Handle the case that the
26891 encoding of font is other than Unicode.
26892
268932008-02-01 Kenichi Handa <handa@m17n.org>
26894
bba3e508
SM
26895 * term.c (encode_terminal_code): Don't handle glyph-table.
26896 Check if a character is encodable by the terminal coding system.
26897 If not, produces proper number of `?'s. Update
aac0c6e3
MR
26898 terminal_encode_buffer and terminal_encode_buf_size if necessary.
26899 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26900
269012008-02-01 Kenichi Handa <handa@m17n.org>
26902
bba3e508
SM
26903 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26904 New variables.
aac0c6e3
MR
26905 (encode_terminal_code): Change argument. Encode multiple
26906 characters at once. Store the result of encoding in
26907 terminal_encode_buffer.
26908 (write_glyphs, insert_glyphs): Adjust for the change of
26909 encode_terminal_code.
26910 (term_init): Initialize terminal_encode_buffer and
26911 terminal_encode_buf_size.
26912
26913 * coding.c (consume_chars): If coding->src_object is nil, don't
26914 check annotation.
26915
269162008-02-01 Kenichi Handa <handa@m17n.org>
26917
26918 * character.c (char_string): Use ASCII_CHAR_P instead of
26919 SINGLE_BYTE_CHAR_P.
26920
269212008-02-01 Kenichi Handa <handa@m17n.org>
26922
26923 * xdisp.c (handle_auto_composed_prop): Check if the last
26924 characters of auto-composed region is newly composed with the
26925 following characters.
26926 (handle_composition_prop): Fix checking of point being inside
26927 composition.
26928
269292008-02-01 Kenichi Handa <handa@m17n.org>
26930
26931 * fns.c (concat): Don't change multibyteness of the result by
26932 concatenating an 8-bit character.
26933
26934 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
26935 multibyteness of the result when newelt is an 8-bit character.
26936
269372008-02-01 Dave Love <fx@gnu.org>
26938
26939 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26940 EMACS_INT.
26941
26942 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26943
26944 * xfaces.c (face_numeric_value): Declare dim size_t.
26945 (Finternal_lisp_face_equal_p): Remove unused f.
26946
26947 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26948 (MATRIX_ROW): Remove unused vars.
26949 (draw_glyphs, x_insert_glyphs, fast_find_position)
26950 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
26951 byte/char counts.
26952
26953 * regex.c (regex_compile): Remove unused var.
26954
26955 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26956
26957 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
26958 (Faccessible_keymaps, where_is_internal): Remove unused vars.
26959
26960 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
26961
26962 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
26963
26964 * fileio.c (Fwrite_region): Remove unused var.
26965
26966 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
26967 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
26968
26969 * composite.c (Fremove_list_of_text_properties): Declare.
26970
26971 * coding.c (inhibit_pre_post_conversion): Remove (unused).
26972 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
26973 (coding_inherit_eol_type): Remove unused attrs.
26974 (detect_coding): Cast arg of detect_eol.
26975
26976 * charset.c (syms_of_charset): Remove unused var p.
26977 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
26978 byte/char counts.
26979
26980 * casetab.c (set_case_table): Remove unused var.
26981
bba3e508
SM
26982 * window.c (Fdisplay_buffer, Fframe_selected_window):
26983 Remove unused vars.
aac0c6e3
MR
26984
269852008-02-01 Dave Love <fx@gnu.org>
26986
26987 * xterm.c (x_bitmap_mask): Declare.
26988
269892008-02-01 Dave Love <fx@gnu.org>
26990
26991 * xterm.c (x_term_init): Fix type error.
26992
26993 * lisp.h: Add Funibyte_char_to_multibyte.
26994
26995 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
26996 (Fset_coding_system_priority): Doc fix.
26997
26998 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
26999
27000 * indent.c (check_composition): Make start and end EMACS_INT.
27001
27002 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
27003
27004 * xdisp.c (handle_composition_prop, check_point_in_composition):
27005 Make buffer positions EMACS_INT.
27006
27007 * composite.c (find_composition, run_composition_function)
27008 (update_compositions, Ffind_composition_internal): Make buffer
27009 positions EMACS_INT.
27010
bba3e508
SM
27011 * composite.h (find_composition, update_compositions):
27012 Make position args EMACS_INT.
aac0c6e3
MR
27013
27014 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
27015
27016 * intervals.c (get_property_and_range):
27017 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
27018
27019 * unexalpha.c: Don't include varargs.h.
27020
270212008-02-01 Dave Love <fx@gnu.org>
27022
27023 * coding.h (ENCODE_UTF_8): New.
27024
27025 * Makefile.in (gtkutil.o): Depend on coding.h.
27026
27027 * coding.c (Fset_coding_system_priority): Doc fix.
27028
270292008-02-01 Kenichi Handa <handa@m17n.org>
27030
27031 * fileio.c (Finsert_file_contents): Call setup_coding_system in
27032 the case of auto saving.
27033
270342008-02-01 Andreas Schwab <schwab@suse.de>
27035
bba3e508
SM
27036 * chartab.c (map_char_table, map_char_table_for_charset):
27037 Protect `range' from GC.
aac0c6e3
MR
27038
270392008-02-01 Kenichi Handa <handa@m17n.org>
27040
27041 * coding.c (decode_coding_sjis): Check bytes more rigidly.
27042
270432008-02-01 Kenichi Handa <handa@m17n.org>
27044
27045 * fileio.c (choose_write_coding_system): Return a decided coding system.
27046 (Fwrite_region): Set Vlast_coding_system_used to the return value
27047 of choose_write_coding_system.
27048
270492008-02-01 Kenichi Handa <handa@m17n.org>
27050
27051 * charset.c (Fset_charset_priority): Pay attention to duplicated
27052 arguments.
27053
27054 * coding.c (QCcategory): New variable.
27055 (syms_of_coding): Defsym it. Set all elements of
27056 Vcoding_category_table and their symbol values.
27057 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
27058 coding-category-XXX, and coding-category-list.
27059 (Fdefine_coding_system_internal): Add category in the plist.
27060
270612008-02-01 Kenichi Handa <handa@m17n.org>
27062
27063 * callproc.c (Fcall_process): Handle carryover correctly.
27064
27065 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
27066 (raw_text_coding_system): Check NILP (coding_system).
27067 (coding_inherit_eol_type): Check NILP (coding_system) and
27068 NILP (parent).
27069 (consume_chars): Fix for the case of raw-text.
27070
27071 * process.c (read_process_output): Handle carryover correctly.
27072
270732008-02-01 Dave Love <fx@gnu.org>
27074
27075 * regex.c (re_search_2): Fix last change.
27076
270772008-02-01 Kenichi Handa <handa@m17n.org>
27078
27079 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
27080 target_multibyte. Even in a unibyte case, return a converted
27081 multibyte char.
27082 (GET_CHAR_AFTER): New macro.
27083 (PATFETCH): Translate via multibyte char.
27084 (HANDLE_UNIBYTE_RANGE): Delete this macro.
27085 (SETUP_MULTIBYTE_RANGE): New macro.
27086 (regex_compile): Setup compiled code so that its multibyteness
27087 matches that of a target. Fix the handling of "[X-YZ]" using
27088 SETUP_MULTIBYTE_RANGE.
27089 (analyse_first) <charset>: For filling fastmap for all multibyte
27090 characters, don't check by BASE_LEADING_CODE_P.
27091 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
27092 the same as RE_MULTIBYTE_P (bufp) now.
27093 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
27094 (TARGET_CHAR_AND_LENGTH): Delete this macro.
27095 (TRANSLATE_VIA_MULTIBYTE): New macro.
27096 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
27097 It is the same as RE_MULTIBYTE_P (bufp) now.
27098 <exactn>: Translate via multibyte.
bba3e508
SM
27099 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
27100 Don't translate it.
aac0c6e3
MR
27101 <charset, charset_not>: Fetch a character by
27102 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
27103 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
27104 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
27105 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
27106 by GET_CHAR_AFTER.
27107 (bcmp_translate): Likewise.
27108
27109 * search.c (compile_pattern): Check the member target_multibyte,
27110 not the member multibyte of buf.
27111
27112 * lread.c (read1): While reading a string, set force_singlebyte
27113 and force_multibyte correctly.
27114
27115 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
27116 up of unibyte_to_multibyte_table.
27117
271182008-02-01 Kenichi Handa <handa@m17n.org>
27119
27120 * coding.c (setup_coding_system): If coding has
27121 post-read-conversion or pre-write-conversion, set
27122 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
27123 respectively.
27124 (decode_coding_gap): Run post-read-conversion if any.
27125
27126 * fileio.c (Finsert_file_contents): Even if we read into a
27127 unibyte buffer, check if we must decode the result or not.
27128
271292008-02-01 Kenichi Handa <handa@m17n.org>
27130
27131 * coding.c (make_conversion_work_buffer): Change the work buffer
27132 name to the same one as that of Emacs 21.
27133
271342008-02-01 Kenichi Handa <handa@m17n.org>
27135
27136 * coding.h (make_conversion_work_buffer): Adjust prototype.
27137 (code_conversion_restore): Don't extern it.
27138
27139 * coding.c (detected_mask): Delete unused variable.
27140 (decode_coding_iso_2022): Pay attention to the byte sequence of
27141 CTEXT extended segment, and retain those bytes as is.
27142 (decode_coding_ccl): Delete unused variable `valids'.
27143 (setup_coding_system): Delete unused variable `category'.
27144 (consume_chars): Delete unused variable `category'. Make it work
27145 for non-multibyte case.
27146 (make_conversion_work_buffer): Change argument.
27147 (saved_coding): Delete unused variable.
27148 (code_conversion_restore): Don't check saved_coding->destination.
27149 (code_conversion_save): New function.
27150 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
27151 instead of record_unwind_protect.
27152 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
27153 (detect_coding_system): Delete unused variable `mask'.
27154 (Fdefine_coding_system_internal): Delete unused variable id.
27155
27156 * fileio.c (kill_workbuf_unwind): New function.
27157 (Finsert_file_contents): On replacing, call
27158 make_conversion_work_buffer with correct args, and call
27159 record_unwind_protect with the first arg kill_workbuf_unwind.
27160
27161 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
27162
271632008-02-01 Kenichi Handa <handa@m17n.org>
27164
27165 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
27166 (fontset_add): Fix for the case that TO is less than TO1.
27167 (Ffontset_info): Don't use fallback fontset on checking the
27168 default fontset.
27169 (dump_fontset): New function for debugging.
27170
27171 * coding.c (Fdefine_coding_system_internal): Fix for the case that
27172 coding_type is Qcharset.
27173
271742008-02-01 Kenichi Handa <handa@m17n.org>
27175
27176 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
27177 (map_char_table): Don't inherit the value from the parent on
27178 initializing VAL. Adjust for the above change.
27179
271802008-02-01 Kenichi Handa <handa@m17n.org>
27181
27182 * coding.c (Qsignature, Qendian): Delete these variables.
27183 (syms_of_coding): Don't initialize them.
27184 (CATEGORY_MASK_UTF_16_AUTO): New macro.
27185 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
27186 detect_info->found.
27187 (decode_coding_utf_16): Don't detect BOM here.
27188 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
27189 is NOT utf_16_without_bom.
27190 (setup_coding_system): For a coding system of type utf-16, check
27191 if the attribute :endian is Qbig or not (not nil or not), and set
27192 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
27193 (detect_coding): If coding type is utf-16 and BOM detection is
27194 required, detect it.
27195 (Fdefine_coding_system_internal): For a coding system of type
27196 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
27197
271982008-02-01 Kenichi Handa <handa@m17n.org>
27199
27200 * coding.c (coding_set_source): Fix for the case that the current
27201 buffer is different from coding->src_object.
27202 (decode_coding_object): Don't use the conversion work buffer if
27203 DST_OBJECT is a buffer.
27204
272052008-02-01 Dave Love <fx@gnu.org>
27206
27207 * lread.c (read_emacs_mule_char) [len==2]: Index
27208 emacs_mule_charset correctly.
27209
272102008-02-01 Dave Love <fx@gnu.org>
27211
27212 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
27213 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
27214 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
27215 treated specially.)
27216 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
27217 (detected_mask): Remove Big5 bits.
27218
272192008-02-01 Kenichi Handa <handa@m17n.org>
27220
27221 The following changes are to make the font rescaling facility
27222 compatible with Emacs 21.
27223
27224 * xfaces.c (Vface_font_rescale_alist): Rename from
27225 Vface_resizing_fonts.
27226 (struct font_name): Rename member resizing_ratio to rescale_ratio.
27227 (font_rescale_ratio): Rename from font_resizing_ratio.
27228 (split_font_name): Set font->rescale_ratio.
27229 (better_font_p): Pay attention to font->rescale_ratio.
27230 (build_scalable_font_name): Likewise. Change RESX, and RESY
27231 fields.
27232 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
27233
272342008-02-01 Kenichi Handa <handa@m17n.org>
27235
27236 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
27237 (Qutf_16_le): Remove these variables.
27238 (syms_of_coding): Don't DEFSYM them.
27239 (decode_coding_utf_16): Fix handling of BOM.
27240 (encode_coding_utf_16): Fix handling of BOM.
27241
272422008-02-01 Kenichi Handa <handa@m17n.org>
27243
27244 * fileio.c (Finsert_file_contents): On replacing, before decoding
27245 the file into the work buffer, set point of the work buffer to the end.
27246
272472008-02-01 Dave Love <fx@gnu.org>
27248
27249 * coding.c (Fcheck_coding_systems_region): Fix type errors.
27250
272512008-02-01 Dave Love <fx@gnu.org>
27252
27253 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27254 and fix C types.
27255
272562008-02-01 Kenichi Handa <handa@m17n.org>
27257
27258 * xdisp.c (SKIP_GLYPHS): New macro.
27259 (set_cursor_from_row): Pay attention to string display properties.
27260
27261 * category.c (copy_category_entry): Fix for the case that RANGE
27262 is an integer.
27263
27264 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
27265
27266 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
27267
272682008-02-01 Kenichi Handa <handa@m17n.org>
27269
27270 * charset.c (Fcharset_id_internal): New function.
27271 (syms_of_charset): Defsubr it.
27272
27273 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
27274 with the last arg charset_list acquired from coding.
27275 (Fdefine_coding_system_internal): For ccl-based coding system, fix
27276 the attribute coding_attr_ccl_valids.
27277
27278 * coding.h (enum define_coding_ccl_arg_index): Set the first
27279 member coding_arg_ccl_decoder to coding_arg_max.
27280
27281 * ccl.h (ccl_driver): Adjust prototype.
27282
27283 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
27284 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 27285 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
27286 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
27287 last arg Qnil.
27288
272892008-02-01 Kenichi Handa <handa@m17n.org>
27290
27291 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
27292 call encode_char.
27293
27294 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
27295
272962008-02-01 Dave Love <fx@gnu.org>
27297
27298 * composite.c (syms_of_composite): Make composition_hash_table weak.
27299
273002008-02-01 Kenichi Handa <handa@m17n.org>
27301
27302 * dispextern.h (check_face_attributes, generate_ascii_font_name)
27303 (font_name_registry): Don't extern them.
27304 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
27305
27306 * fontset.h (Qfontset): Don't extern it.
27307 (new_fontset_from_font_name): Extern it.
27308
27309 * fontset.c: Give 8 extra slots to fontset objects.
27310 (Qfontset_info): New variable.
27311 (syms_of_fontset): Defsym it.
27312 (FONTSET_FALLBACK): New macro.
27313 (fontset_face): Try also the default fontset.
27314 (make_fontset): Realize a fallback fontset from the default fontset.
27315 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
27316 using split_font_name_into_vector and build_font_name_from_vector.
27317 (Fset_fontset_font): Access the elements of font_spec by enum
27318 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
27319 name by using split_font_name_into_vector.
27320 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
27321 generate a proper font name from the fontset name.
27322 Update Vfontset_alias_alist.
aac0c6e3
MR
27323 (n_auto_fontsets): New variable.
27324 (new_fontset_from_font_name): New function.
27325 (Ffont_info): Store the information about fonts generated from the
27326 default fontset in the first extra slot of the returned char-table.
27327
27328 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
27329 (font_name_registry): Delete function.
27330 (split_font_name_into_vector): New function.
27331 (build_font_name_from_vector): New function.
27332 (font_list): The argument REGISTRY is now a list of registry names.
27333 (choose_face_font): If we are choosing an ASCII font, and ATTRS
27334 specifies an explicit font name, return the name as is. Make a
27335 list of registy names.
27336
27337 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
27338 of x_new_fontset.
27339 (Fx_create_frame): Don't call x_new_fontset here. Just use
27340 x_list_fonts to check the existence of fonts.
27341
27342 * xterm.h (x_new_fontset): Adjust prototype.
27343
27344 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
27345 string. Use new_fontset_from_font_name to create a fontset from a
27346 font name.
27347
273482008-02-01 Kenichi Handa <handa@m17n.org>
27349
27350 * syntax.c (Vfind_word_boundary_function_table): New name for
27351 Vnext_word_boundary_function_table.
27352 (find-word-boundary-function-table): New name for
27353 next-word-boundary-function-table.
27354
273552008-02-01 Dave Love <fx@gnu.org>
27356
27357 * Makefile.in: Fix some dependencies.
27358
27359 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
27360 set it to nil before returning.
27361
27362 * composite.c (update_compositions): Fix type error.
27363
27364 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
27365
273662008-02-01 Kenichi Handa <handa@m17n.org>
27367
27368 * xterm.c (x_new_font): Optimize for the case that the font is
27369 already set for the frame.
27370
273712008-02-01 Kenichi Handa <handa@m17n.org>
27372
27373 * chartab.c (char_table_ascii): Check if the char table contents
27374 is sub-char-table or not.
27375 (char_table_set, char_table_set_range): Fix argument to
27376 char_table_ascii.
27377
27378 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
27379 (detect_coding_utf_8, detect_coding_utf_16)
27380 (detect_coding_emacs_mule, detect_coding_iso_2022)
27381 (detect_coding_sjis, detect_coding_big5)
27382 (detect_coding_ccl, detect_coding_charset): Change argument MASK
27383 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
27384 sequence is valid in this coding system. Change callers.
27385 (MAX_ANNOTATION_LENGTH): New macro.
27386 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
27387 (ADD_COMPOSITION_DATA): Change argument. Change callers.
27388 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
27389 (ADD_CHARSET_DATA): New macro.
27390 (emacs_mule_char): New argument ID. Change callers.
27391 (decode_coding_emacs_mule, decode_coding_iso_2022)
27392 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
27393 Produce charset annotation data in coding->charbuf.
27394 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
27395 to charset annotation data in coding->charbuf.
27396 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
27397 coding->common_flags if the coding system is iso-2022 based and
27398 uses designation.
27399 (produce_composition): Adjust for the new annotation data format.
27400 (produce_charset): New function.
27401 (produce_annotation): Handle charset annotation.
bba3e508
SM
27402 (handle_composition_annotation, handle_charset_annotation):
27403 New functions.
aac0c6e3
MR
27404 (consume_chars): Handle charset annotation. Utilize the above two
27405 functions.
27406 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
27407 buffer, get the deleted text as a string and set
27408 coding->src_object to that string.
27409 (detect_coding, detect_coding_system): Use the new struct
27410 coding_detection_info.
27411
27412 * coding.h (struct coding_detection_info): New structure.
27413 (struct coding_system): Adjust prototype of the member `detector'.
27414 (CODING_ANNOTATE_CHARSET_MASK): New macro.
27415
274162008-02-01 Kenichi Handa <handa@m17n.org>
27417
27418 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
27419
274202008-02-01 Dave Love <fx@gnu.org>
27421
27422 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
27423 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
27424 to new local and nullify apropos_accumulate before returning.
27425 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
27426
274272008-02-01 Kenichi Handa <handa@m17n.org>
27428
27429 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
27430 correctly.
e3eea1fc 27431
aac0c6e3
MR
274322008-02-01 Dave Love <fx@gnu.org>
27433
27434 * fns.c (Flanginfo): Call synchronize_system_time_locale.
27435
274362008-02-01 Kenichi Handa <handa@m17n.org>
27437
27438 The following changes are to make character composition happen
27439 automatically on displaying.
27440
27441 * Makefile.in (lisp, shortlisp): Add composite.elc.
27442
27443 * composite.h (Qauto_composed, Vauto_composition_function)
27444 (Qauto_composition_function): Extern them.
27445
27446 * composite.c (Vcomposition_function_table)
27447 (Qcomposition_function_table): Delete variables.
27448 (Qauto_composed, Vauto_composition_function)
27449 (Qauto_composition_function): New variables.
27450 (run_composition_function): Don't call
27451 compose-chars-after-function.
27452 (update_compositions): Clear `auto-composed' text property.
27453 (compose_chars_in_text): Delete this function.
27454 (syms_of_composite): Staticpro Qauto_composed and
27455 Qauto_composition_function. Declare Vauto_composition_function as
27456 a Lisp variable.
27457
27458 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
27459
27460 * xdisp.c (it_props): Add an entry for Qauto_composed.
27461 (handle_auto_composed_prop): New function.
27462
27463 * xselect.c (selection_data_to_lisp_data): Don't call
27464 compose_chars_in_text.
27465
274662008-02-01 Dave Love <fx@gnu.org>
27467
27468 * keyboard.c (read_char): Modify checking around use of
27469 Vkeyboard_translate_table.
27470
27471 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27472 and fix C types.
27473
274742008-02-01 Kenichi Handa <handa@m17n.org>
27475
27476 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
27477 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
27478 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
27479 the case that the last byte is '\r' correctly.
27480 (decode_coding): Flush out the unprocessed data correctly.
27481 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
27482
274832008-02-01 Dave Love <fx@gnu.org>
27484
27485 * xterm.c (XTread_socket): Fix changes for defined keysyms.
27486 Add XK_ISO... case.
27487 (xaw_scroll_callback): Revert last change.
27488
274892008-02-01 Kenichi Handa <handa@m17n.org>
27490
27491 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
27492
274932008-02-01 Kenichi Handa <handa@m17n.org>
27494
27495 * xfaces.c (Vface_resizing_fonts): New variable.
27496 (struct font_name): New member `resizing_ratio'.
27497 (font_resizing_ratio): New function.
27498 (split_font_name): Set font->resizing_ratio.
27499 (better_font_p): Pay attention to font->resizing_ratio.
27500 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
27501 RESX, and RESY fields.
27502 (try_alternative_families): Try scalable fonts if
27503 Vscalable_fonts_allowed is not Qt.
27504 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
27505
275062008-02-01 Dave Love <fx@gnu.org>
27507
27508 * xterm.c (xaw_scroll_callback): Cast correctly.
27509
275102008-02-01 Dave Love <fx@gnu.org>
27511
27512 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
27513 (lispy_kana_keys): Comment out.
27514 (make_lispy_event) [XK_kana_A]: Comment out.
27515
27516 * xterm.c (xaw_scroll_callback): Cast call_data.
27517 (XTread_socket): Deal with ASCII keysyms.
27518 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
27519
275202008-02-01 Dave Love <fx@gnu.org>
27521
27522 * xterm.c (Vx_keysym_table): New.
27523 (syms_of_xterm): Initialize it.
27524 (XTread_socket): Use it.
27525 From head: Eliminate incorrect optimization that tried to avoid
27526 decoding the output of X*LookupString.
27527 (x_get_font_repertory): Delete charset declaration.
27528
275292008-02-01 Kenichi Handa <handa@m17n.org>
27530
27531 * coding.c (detect_coding_charset): If only ASCII bytes are found,
27532 return 0.
bba3e508
SM
27533 (Fdefine_coding_system_internal):
27534 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
27535
275362008-02-01 Dave Love <fx@gnu.org>
27537
27538 * coding.c (Fcheck_coding_system): Doc fix.
27539
27540 * editfns.c (Finsert_byte): Return a proper value.
27541
275422008-02-01 Kenichi Handa <handa@m17n.org>
27543
bba3e508
SM
27544 * coding.c (decode_coding): Fix args to translate_chars.
27545 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
27546 (encode_coding): Fix args to translate_chars. Pay attention to
27547 Vstandard_translation_table_for_encode.
27548
27549 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
27550 SINGLE_BYTE_CHAR_P.
27551
27552 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
27553 not by SINGLE_BYTE_CHAR_P.
27554
27555 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
27556 SINGLE_BYTE_CHAR_P.
27557
27558 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
27559 SINGLE_BYTE_CHAR_P.
27560
27561 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
27562 by SINGLE_BYTE_CHAR_P.
27563
27564 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
27565 SINGLE_BYTE_CHAR_P.
27566
275672008-02-01 Dave Love <fx@gnu.org>
27568
27569 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
27570
275712008-02-01 Dave Love <fx@gnu.org>
27572
27573 * fns.c (Flanginfo): Fix typo.
27574
27575 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
27576
275772008-02-01 Kenichi Handa <handa@m17n.org>
27578
27579 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
27580 (detect_coding_emacs_mule, detect_coding_iso_2022)
27581 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
27582 incomplete byte sequence. Don't update *mask when correctly detected.
27583 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
27584 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
27585 (detect_coding, detect_coding_system): Adjust for the changes above.
27586
275872008-02-01 Kenichi Handa <handa@m17n.org>
27588
27589 * character.c (char_string): Rename from
27590 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
27591 (string_char): Rename from string_char.
27592
27593 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
27594 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
27595 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
27596 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
27597
275982008-02-01 Dave Love <fx@gnu.org>
27599
27600 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
27601
276022008-02-01 Kenichi Handa <handa@m17n.org>
27603
27604 * keymap.c (push_key_description): Pay attention to force_multibyte.
27605
27606 * regex.c (re_search_2): Fix for the case of unibyte buffer.
27607
276082008-02-01 Dave Love <fx@gnu.org>
27609
27610 * charset.c (define_charset_internal): Rename `supprementary'.
27611
27612 * Makefile.in (lisp, shortlisp): Remove latin-N.
27613
276142008-02-01 Dave Love <fx@gnu.org>
27615
27616 * xfns.c (x_window, x_window): Use use_xim.
27617
27618 * xterm.c (use_xim): Initialize.
27619 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
27620 (x_term_init): Maybe set use_xim.
27621
27622 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
27623
276242008-02-01 Kenichi Handa <handa@m17n.org>
27625
27626 * search.c (search_buffer): Fix case-fold-search of multibyte
27627 characters.
27628 (boyer_moore): Rename the last argument to char_high_bits.
27629
276302008-02-01 Kenichi Handa <handa@m17n.org>
27631
27632 * xdisp.c (display_string): Fix for the case of zero width glyph.
27633
27634 * xfns.c (x_set_font): Change the error message of the case that
27635 x_new_fontset returns Qt.
27636
27637 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
27638 (Finternal_set_lisp_face_attribute): Use signal_error for the
27639 error of invalid fontset.
27640
27641 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
27642 fontset, return Qt.
27643
276442008-02-01 Dave Love <fx@gnu.org>
27645
27646 * unexelf.c (unexec): Make .got handling not SGI-specific.
27647
27648 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
27649
27650 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
27651
27652 * keyboard.c (read_key_sequence): Fix type error.
27653
bba3e508
SM
27654 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
27655 Fix type error.
aac0c6e3
MR
27656
27657 * fontset.c (fontset_add): Return Lisp_Object.
27658
276592008-02-01 Dave Love <fx@gnu.org>
27660
27661 * charset.h (charset_ordered_list_tick): Declare extern.
27662
276632008-02-01 Kenichi Handa <handa@m17n.org>
27664
27665 The following changes (and some of 2008-02-01 changes of mine) are
27666 for handling syntax, category, and case conversion for unibyte
27667 characters by converting them to multibyte on the fly. With these
27668 changes, we don't have to setup syntax and case tables for unibyte
27669 characters in each language environment.
27670
27671 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
27672 multibyte if necessary.
27673
27674 * bytecode.c (Fbyte_code): Likewise.
27675
27676 * character.h (LEADING_CODE_LATIN_1_MIN)
27677 (LEADING_CODE_LATIN_1_MAX): New macros.
27678 (unibyte_to_multibyte_table): Extern it.
27679 (unibyte_char_to_multibyte): New macro.
27680 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
27681 (CHAR_LEADING_CODE): New macro.
27682 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
27683
27684 * character.c (unibyte_to_multibyte_table): New variable.
27685 (unibyte_char_to_multibyte): Move to character.h and define as macro.
27686 (multibyte_char_to_unibyte): If C is an eight-bit character,
27687 convert it to the corresponding byte value.
27688
27689 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
27690 not 1, signals an error. Update the elements of
27691 unibyte_to_multibyte_table.
27692 (init_charset_once): Initialize unibyte_to_multibyte_table.
27693 (syms_of_charset): Define the charset `iso-8859-1'.
27694
27695 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
27696 as is without converting it to unibyte. In a unibyte buffer,
27697 convert C to multibyte before checking the syntax.
27698
27699 * lisp.h (unibyte_char_to_multibyte): Delete extern.
27700
27701 * minibuf.c (Fminibuffer_complete_word): Use the macro
27702 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
27703
27704 * regex.h (struct re_pattern_buffer): New member target_multibyte.
27705
27706 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
27707 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
27708 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
27709 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
27710 non-emacs case.
27711 (PATFETCH): Convert an eight-bit char to multibyte.
27712 (HANDLE_UNIBYTE_RANGE): New macro.
27713 (regex_compile): Setup the compiled pattern for multibyte chars
27714 even if the given regex string is unibyte. Use PATFETCH_RAW
27715 instead of PATFETCH in many places. To handle `charset'
27716 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
27717 only for ASCII chars.
27718 (analyse_first) <exactn>: Simplify because the compiled pattern
27719 is multibyte.
27720 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
27721 <charset>: Use CHAR_LEADING_CODE to get leading codes.
27722 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
27723 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
27724 multibyte always 1.
27725 (re_search_2): In emacs, set the locale variable multibyte to 1,
27726 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
27727 to decide the multibyteness of STR1 and STR2.
27728 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
27729 before translating and checking fastmap.
27730 (TARGET_CHAR_AND_LENGTH): New macro.
27731 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
27732 to 1, otherwise to 0. New local variable target_multibyte.
27733 Check it to decide the multibyteness of STR1 and STR2.
27734 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
27735 <charset, charset_not>: If multibyte is nonzero, check fastmap
27736 only for ASCII chars. Call bcmp_translate with
27737 target_multibyte, not with multibyte.
27738 <begline>: Declare the local variable C as `unsigned'.
27739 (bcmp_translate): Change the last arg name to target_multibyte.
27740
27741 * search.c (compile_pattern_1): Don't adjust the multibyteness of
27742 the regexp pattern and the matching target. Set cp->buf.multibyte
27743 to the multibyteness of the regexp pattern. Set
27744 cp->but.target_multibyte to the multibyteness of the matching target.
27745 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
27746 FETCH_STRING_CHAR_ADVANCE.
27747 (Freplace_match): Convert unibyte chars to multibyte.
27748
27749 * syntax.c (char_quoted, back_comment, scan_words)
27750 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
27751 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
27752 unibyte chars to multibyte.
27753 (skip_chars): Delete the arg syntaxp, and move the code for
27754 handling syntaxes to skip_syntaxes. Change callers.
27755 Fix the case that the multibyteness of STRING and the current
27756 buffer doesn't match.
27757 (skip_syntaxes): New function.
27758 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
27759 SINGLE_BYTE_CHAR_P.
27760
277612008-02-01 Kenichi Handa <handa@m17n.org>
27762
27763 * xfaces.c (QCfontset): New variable.
27764 (LFACE_FONTSET): New macro.
27765 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
27766 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
27767 (Finternal_set_lisp_face_attribute)
27768 (Finternal_get_lisp_face_attribute): Handle QCfontset.
27769 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
27770 check also LFACE_FONTSET_INDEX.
27771 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
27772 attrs[LFACE_FONT_INDEX].
27773 (syms_of_xfaces): Intern and staticpro QCfontset.
27774
27775 * dispextern.h (enum lface_attribute_index): New member
27776 LFACE_FONTSET_INDEX.
27777
27778 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
27779
277802008-02-01 Kenichi Handa <handa@m17n.org>
27781
27782 * coding.c (coding_set_destination): Fix coding->destination for
27783 the case converting a region.
27784 (encode_coding_utf_8): Encode eight-bit chars as single byte.
27785 (encode_coding_object): Fix coding->dst_pos and
27786 coding->dst_pos_byte for the case converting a region.
27787
27788 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
27789
27790 * character.h (BYTE8_STRING): New macro.
27791
27792 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
27793
277942008-02-01 Kenichi Handa <handa@m17n.org>
27795
27796 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
27797 characters by octal form.
27798
27799 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
27800
27801 * buffer.h (_fetch_multibyte_char_len): Delete extern.
27802 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
27803 _fetch_multibyte_char_len.
27804 (FETCH_CHAR_AS_MULTIBYTE): New macro.
27805
27806 * casetab.c (set_canon, set_identity, shuffle): Simplify.
27807
27808 * casefiddle.c (casify_object): Simplify. Handle the case that
27809 the case conversion change the byte length.
27810 (casify_region): Likewise.
27811
27812 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27813
27814 * character.c (_fetch_multibyte_char_len): Delete this variable.
27815 (syms_of_character): Setup Vprintable_chars.
27816
27817 * editfns.c (Fchar_equal): Fix for the unibyte case.
27818 (Finsert_byte): New function.
27819 (syms_of_editfns): Defsubr it.
27820
27821 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27822 of direct code 0x3ffff.
27823
27824 * search.c (Freplace_match): Fix for the unibyte case.
27825
278262008-02-01 Kenichi Handa <handa@m17n.org>
27827
27828 * lread.c (safe_to_load_p): Fix the logic.
27829
27830 * syntax.c (scan_words): Don't treat characters belonging to
27831 different scripts as constituting a word.
27832
27833 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27834
27835 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27836
27837 * emacs.c (main): In the case of --unibyte, instead of aborting on
27838 finding non-empty buffer, make it unibyte.
27839
278402008-02-01 Kenichi Handa <handa@m17n.org>
27841
27842 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27843 to create a fontset.
27844
278452008-02-01 Dave Love <fx@gnu.org>
27846
27847 * character.c (Funibyte_char_to_multibyte): Doc fix.
27848
27849 * xfns.c [HAVE_STDLIB_H]: Fix last change.
27850
278512008-02-01 Kenichi Handa <handa@m17n.org>
27852
27853 * fontset.c (fontset_add): Make the type `int'.
27854 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27855
27856 * character.c (unibyte_char_to_multibyte)
27857 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27858 charset_unibyte, not charset_primary.
27859
27860 * charset.h (charset_unibyte): Extern it instead of charset_primary.
27861
27862 * charset.c (charset_unibyte): Rename from charset_primary.
27863 (Funibyte_charset): Rename from Fprimary_charset.
27864 (Fset_unibyte_charset): Rename from Fset_primary_charset.
27865 (syms_of_charset): Adjust for the above changes.
27866
27867 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27868 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27869 it->multibyte_p is zero.
27870
27871 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27872 Delete extern.
27873
278742008-02-01 Kenichi Handa <handa@m17n.org>
27875
27876 * coding.c (Fdefine_coding_system_internal): Fix category setting
27877 for a coding system of type iso-2022.
27878
278792008-02-01 Kenichi Handa <handa@m17n.org>
27880
27881 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27882
278832008-02-01 Kenichi Handa <handa@m17n.org>
27884
27885 * syntax.c (Vnext_word_boundary_function_table): New variable.
27886 (next-word-boundary-function-table): Declare it as a Lisp variable
27887 in syms_of_syntax.
27888 (scan_words): Call functions in Vnext_word_boundary_function_table
27889 if any.
27890
27891 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27892
27893 * fontset.c (fs_load_font): If fontp->charset is not negative,
27894 return fontp without setting its members.
27895
278962008-02-01 Dave Love <fx@gnu.org>
27897
27898 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27899
27900 * m/sparc.h (HAVE_ALLOCA): Delete.
27901
27902 * s/irix6-5.h: Don't include strings.h.
27903 (bcopy, bzero, bcmp): Don't undef.
27904
27905 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
27906
27907 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
27908 (TIOCSIGSEND): Don't test IRIX6.
27909 (bcopy, bzero, bcmp): Define conditionally.
27910
279112008-02-01 Kenichi Handa <handa@m17n.org>
27912
27913 * buffer.c (Qas, Qmake, Qto): New variables.
27914 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
27915 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
27916
27917 * callproc.c (Fcall_process): Don't call insert_1_both directly if
27918 we are inserting a process output into a multibyte buffer.
27919
27920 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
27921 multibyte_char_to_unibyte.
27922
27923 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
27924 by the primary charset, make it eight-bit char.
27925 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27926
27927 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27928 (charset_8_bit__control, charset_8_bit_graphic)
27929 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27930 (define_charset_internal): New function.
27931 (syms_of_charset): Call define_charset_internal for pre-defined
27932 charsets.
27933
27934 * charset.h (charset_8_bit): Extern it.
27935
27936 * coding.c (make_conversion_work_buffer): Adjust for the change
27937 of Fset_buffer_multibyte.
27938 (encode_coding_raw_text): Increment p0 in the loop.
27939
27940 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27941
bba3e508
SM
27942 * xdisp.c (setup_echo_area_for_printing, set_message_1):
27943 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
27944
27945 * fns.c (Fstring_to_multibyte): New function.
27946 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27947
279482008-02-01 Dave Love <fx@gnu.org>
27949
27950 * xfns.c (x_put_x_image): Declare args.
27951
27952 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
27953 (try_font_list): Declare an arg.
27954
27955 * xdisp.c (message2_nolog, set_message): Declare an arg.
27956
27957 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
27958
27959 * syntax.c (scan_sexps_forward): Declare an arg.
27960
27961 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
27962 Declare an arg.
27963
27964 * lisp.h (Fnew_fontset): Declare.
27965
27966 * keymap.c (push_key_description): Call CHARACTERP correctly.
27967
27968 * fontset.c (fontset_add): Declare args. Call make_number correctly.
27969 (face_for_char): Delete unused vars.
27970 (Fset_fontset_font): Doc fix. Delete unused vars.
27971
27972 * doc.c (Fsubstitute_command_keys): Delete unused vars.
27973
27974 * composite.c (update_compositions): Declare arg.
27975
27976 * cm.c (calccost, cmgoto): Declare args.
27977
27978 * charset.c: Remove `emacs' conditional. Doc fixes.
27979 (map_char_table_for_charset): Declare.
27980
27981 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
27982
27983 * ccl.c: Remove `emacs' conditional.
27984
279852008-02-01 Kenichi Handa <handa@m17n.org>
27986
27987 The following changes are to allow specifying multiple font
27988 patterns for a character range (specified by script or charset).
27989
27990 * Makefile.in (abbrev.o): Depend on syntax.h.
27991 (xfaces.o): Depend on charset.h.
27992
27993 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
27994 SINGLE_BYTE_CHAR_P.
27995
27996 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
27997
27998 * character.h (Vchar_script_table): Extern it.
27999
28000 * character.c (Vscript_alist): Delete.
28001 (Vchar_script_table, Qchar_script_table): New variable.
28002 (syms_of_character): Declare Vchar_script_table as a lisp variable
28003 and initialize it.
28004
28005 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
28006 have property char-table-extra-slots, make no extra slot.
28007
28008 * dispextern.h (struct face): Delete member `charset'.
28009 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
28010 SINGLE_BYTE_CHAR_P.
28011 (choose_face_font, lookup_non_ascii_face, font_name_registry):
28012 Add prototypes.
28013 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
28014 (generate_ascii_font_name): Rename from generate_ascii_font.
28015
28016 * fontset.h (get_font_repertory_func): New prototype.
28017 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
28018 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
28019
28020 * fontset.c (Qprepend, Qappend): New variables.
28021 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
28022 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
28023 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
28024 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
28025 (fontset_ref_and_range, fontset_add, reorder_font_vector)
28026 (load_font_get_repertory): New functions.
28027 (fontset_set): Delete.
28028 (fontset_face): New arg FACE. Return face ID, not face.
28029 Complete re-write to handle new fontset structure. Change caller.
28030 (free_face_fontset): Use ASET istead of AREF (X) = Y.
28031 (face_for_char): Don't call lookup_face.
28032 (make_fontset_for_ascii_face): New arg FACE.
28033 (fs_load_font): New arg CHARSET_ID. Don't check
28034 Vfont_encoding_alist here.
28035 (find_font_encoding): New function.
28036 (list_fontsets): Use STRINGP, not ! NILP.
28037 (accumulate_script_ranges): New function.
bba3e508
SM
28038 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
28039 Completely re-written to handle new fontset structure.
aac0c6e3 28040 (Ffontset_font): Return a copy of element.
bba3e508
SM
28041 (syms_of_fontset): Define symbols Qprepend and Qappend.
28042 Fix docstring of font-encoding-alist.
aac0c6e3
MR
28043
28044 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
28045 (Fset_fotset_font): Fix arguments to 5.
28046
28047 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
28048
28049 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
28050 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
28051 (highlight_trailing_whitespace): Adjust for the change of
28052 lookup_named_face.
28053
28054 * xfaces.c: Include charset.h.
28055 (load_face_font): Delete argument C. Change caller.
28056 (generate_ascii_font_name): Rename from generate_ascii_font.
28057 (font_name_registry): New function.
28058 (cache_face): Store ascii faces before non-ascii faces in buckets.
28059 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
28060 Lookup only ascii faces.
28061 (lookup_non_ascii_face): New function.
28062 (lookup_named_face): Delete argument C. Change caller.
28063 (lookup_derived_face): Delete argument C. Change caller.
28064 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
28065 a string, just call font_list with it.
28066 (choose_face_font): Delete arguments FACE and C. New arg
28067 FONT_SPEC. Change caller.
28068 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
28069 Change caller.
28070 (realize_non_ascii_face): New function.
28071 (realize_x_face): Call load_face_font here.
28072 (realize_tty_face): Delete argument C. Change caller.
28073 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
28074 get a face ID.
28075 (dump_realized_face): Don't print charset of FACE.
28076
28077 * xfns.c (x_set_font): Always call x_new_fontset and
28078 store_frame_parameter.
28079 (Fx_create_frame): Call x_new_fontset, not x_new_font.
28080 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
28081
28082 * xterm.h (x_get_font_repertory): Extern it.
28083
28084 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
28085 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
28086 it->multibyte_p is zero.
28087 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
28088 (x_new_fontset): If FONTSETNAME doesn't match any existing
28089 fontsets, create a new one.
28090 (x_get_font_repertory): New function.
28091
280922008-02-01 Kenichi Handa <handa@m17n.org>
28093
28094 * coding.c (Ffind_coding_systems_region_internal): Detect an
28095 ASCII only string correctly.
28096
28097 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
28098 version is 0.
28099
281002008-02-01 Kenichi Handa <handa@m17n.org>
28101
28102 * lread.c: Include "coding.h".
28103 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
28104 (load_each_byte, unread_char): New variables.
28105 (readchar_backlog): Delete.
28106 (readchar): Return a character unless load_each_byte is nonzero.
28107 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
28108 cons. If unread_char is not -1, simply return it.
28109 (unreadchar): Handle the case that readcharfun is
28110 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
28111 (read_multibyte): Delete.
28112 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
28113 (read_emacs_mule_char): New functions.
28114 (Fload): Even if the file doesn't have the extension ".elc", if
28115 safe_to_load_p returns a positive version number, assume that the
28116 file contains bytecompiled code. If the version is less than 22,
28117 load the file while decoding multibyte sequences by emacs-mule.
28118 (readevalloop): Don't use readchar_backlog.
28119 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
28120 (Fread_from_string): Pay attention to the case that STREAM is a cons.
28121 (read_escape): Delete the arg BYTEREP.
28122 (read1): Set load_each_byte to 1 temporarily while handling
28123 #@NUMBER. Don't call read_multibyte.
28124 (read_vector): Call Fread with a cons. If readcharfun is
28125 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
28126 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
28127 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
28128 and Qload_force_doc_strings.
28129
281302008-02-01 Kenichi Handa <handa@m17n.org>
28131
bba3e508
SM
28132 * xdisp.c (face_before_or_after_it_pos):
28133 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
28134
281352008-02-01 Kenichi Handa <handa@m17n.org>
28136
28137 * character.h (TRAILING_CODE_P): New macro.
28138 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
28139 (string_char_with_unification): Fix prototype.
28140 (Vscript_alist): Extern it.
28141
28142 * character.c (Vscript_alist): New variable.
28143 (string_char_with_unification, str_as_unibyte)
28144 (string_escape_byte8): Add `const' to local variables.
28145 (syms_of_character): Declare script-alist as a Lisp variable.
28146
28147 * charset.h (Vcharset_ordered_list): Extern it.
28148 (charset_ordered_list_tick): Extern it.
28149 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
28150 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
28151 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
28152 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
28153 (Funify_charset): Adjust for the change of Funify_charset.
28154
28155 * charset.c (charset_ordered_list_tick): New variable.
28156 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
28157 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 28158 deunify instead of unify a charset.
aac0c6e3
MR
28159 (string_xstring_p): Add `const' to local variables.
28160 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
28161 (encode_char): Adjust for the change of Funify_charset.
28162 Fix detecting of invalid code.
aac0c6e3
MR
28163 (Fset_charset_priority): Increment charset_ordered_list_tick.
28164 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
28165 and TO_CODE.
28166
28167 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
28168 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
28169 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
28170 (decode_coding_ccl, consume_chars)
28171 (Ffind_coding_systems_region_internal)
28172 (Fcheck_coding_systems_region): Add `const' to local variables.
28173
28174 * print.c (print_object): Use octal form for printing the
28175 contents of a bool vector.
28176
281772008-02-01 Dave Love <fx@gnu.org>
28178
28179 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
28180 <version == 20>: Refuse to load.
28181
281822008-02-01 Dave Love <fx@gnu.org>
28183
28184 * fns.c: Move coding.h.
28185 (Qcodeset, Qdays, Qmonths): New.
28186 (concat): Use CHARACTERP instead of INTEGERP.
28187 (Flocale_codeset): Delete.
28188 (Flanginfo): New function.
28189 (syms_of_fns): Change accordingly.
28190
28191 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
28192
281932008-02-01 Dave Love <fx@gnu.org>
28194
bba3e508
SM
28195 * casetab.c (init_casetab_once, init_casetab_once):
28196 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
28197
28198 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
28199
28200 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
28201
28202 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
28203 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
28204 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
28205
28206 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
28207
28208 * coding.c (ENCODE_DESIGNATION, decode_eol)
28209 (make_conversion_work_buffer, code_conversion_restore)
28210 (Fdefine_coding_system_internal): Convert Lisp types.
28211 (code_conversion_restore): Use EQ, not ==.
28212 (Fencode_coding_string): Fix code_convert_string call.
28213
28214 * coding.h (code_convert_region): Fix prototype.
28215
28216 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
28217
28218 * fontset.c (fontset_ref, fontset_set, fs_load_font)
28219 (Ffontset_info): Convert Lisp types.
28220
28221 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
28222
28223 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
28224
28225 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
28226
28227 * chartab.c: Include "...h", not <...h> in some cases.
28228
28229 * callproc.c (Fcall_process): Remove unused variables.
28230
282312008-02-01 Dave Love <fx@gnu.org>
28232
28233 * coding.c (Fset_coding_system_priority): Allow null arg list.
28234
282352008-02-01 Dave Love <fx@gnu.org>
28236
28237 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
28238 (Fself_insert_and_exit): Use CHARACTERP.
28239
28240 * callproc.c (Fcall_process): Remove unused vars.
28241
28242 * xterm.c (XTread_socket): Add extra dead keysyms.
28243
28244 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
28245
28246 * dispextern.h: Remove prototypes for redraw_frame,
28247 redraw_garbaged_frames.
28248
28249 * cmds.c (Fself_insert_command): Use CHARACTERP.
28250
28251 * chartab.c (make_sub_char_table): Remove unused var.
28252 (Fset_char_table_default, Fmap_char_table): Doc fix.
28253
28254 * keymap.c (access_keymap): Remove generic char code.
28255 (push_key_description): Use CHARACTERP.
28256
282572008-02-01 Dave Love <fx@gnu.org>
28258
28259 * charset.c: Doc fixes.
28260 (Funify_charset): Extra checking.
28261
282622008-02-01 Dave Love <fx@gnu.org>
28263
28264 * lread.c: Remove some unused variables.
28265 (safe_to_load_p): If safe, return the magic number version byte.
28266 (Fload): Maybe use load-with-code-conversion.
28267
282682008-02-01 Kenichi Handa <handa@m17n.org>
28269
28270 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
28271 of category_set for characters out of the range.
28272 Avoid unnecessary modification.
aac0c6e3
MR
28273
28274 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
28275 Vchar_unify_table. The default value of the table is now nil.
28276
28277 * character.c (syms_of_character): Setup Vchar_width_table for
28278 eight-bit-control and raw-byte chars.
28279
bba3e508
SM
28280 * charset.h (enum define_charset_arg_index):
28281 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
28282 charset_arg_superset.
28283 (enum charset_attr_index): Delete charset_parents and add
28284 charset_subset and charset_superset.
28285 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
28286 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
28287 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
28288 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
28289 (CHARSET_SUPERSET): New macros.
28290 (charset_work): Extern it.
28291 (ENCODE_CHAR): Use charset_work.
28292 (CHAR_CHARSET_P): Adjust for the change of encoder format.
28293 (map_charset_chars): Extern it.
28294
28295 * charset.c (load_charset_map): Set the default value of encoder
28296 and deunifier char-tables to nil.
bba3e508
SM
28297 (map_charset_chars): Change argument. Change callers.
28298 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
28299 (Fmap_charset_chars): New optional args from_code and to_code.
28300 (Fdefine_charset_internal): Adjust for the change of
28301 `define-charset' (:parents -> :subset or :superset).
28302 (charset_work): New variable.
28303 (encode_char, syms_of_charset): Adjust for the change of
28304 Fdefine_charset_internal.
28305 (Ffind_charset_string): Setup the vector `charsets' correctly.
28306
bba3e508
SM
28307 * chartab.c (sub_char_table_ref_and_range): New arg default.
28308 Fix the previous change.
aac0c6e3
MR
28309 (char_table_ref_and_range): Adjust for the above change.
28310 (map_sub_char_table_for_charset): New function.
28311 (map_char_table_for_charset): New function.
28312
28313 * keymap.c (describe_vector): Handle a char-table directly here.
28314 (describe_char_table): Delete.
28315
28316 * lisp.h (map_charset_chars): Delete.
28317
283182008-02-01 Dave Love <fx@gnu.org>
28319
28320 * fns.c (count_combining): Comment out (unused).
28321 (Flocale_codeset): New.
28322 (syms_of_fns): Defsubr it.
28323
28324 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
28325 (size_t): Remove.
28326
283272008-02-01 Dave Love <fx@gnu.org>
28328
28329 * Makefile.in (chartab.o): Depend on charset.h.
28330
283312008-02-01 Kenichi Handa <handa@m17n.org>
28332
28333 * character.c (syms_of_character): Set the default value of
28334 Vprintable_chars to Qnil.
28335
283362008-02-01 Dave Love <fx@gnu.org>
28337
28338 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
28339
283402008-02-01 Kenichi Handa <handa@m17n.org>
28341
28342 * charset.c (load_charset_map): Handle the case that from < to
28343 correctly.
28344
28345 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
28346 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
28347 Pay attention to raw-8-bit chars.
28348
283492008-02-01 Kenichi Handa <handa@m17n.org>
28350
28351 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
28352 It is not bytecompiled now.
28353
28354 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
28355 (charset_jisx0208): New variables.
28356 (Fdefine_charset_internal): Setup them if appropriate.
28357 (init_charset_once): Initialize them to -1.
28358
28359 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
28360 (charset_jisx0208): Extern them.
28361
28362 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
28363 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
28364 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
28365 (setup_iso_safe_charsets): Fix arguments to Fassq.
28366 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
28367 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
28368 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
28369 (encode_coding_iso_2022): Change the 1st arg to
28370 ENCODE_ISO_CHARACTER to a variable.
28371
283722008-02-01 Kenichi Handa <handa@m17n.org>
28373
28374 * charset.h (enum define_charset_arg_index): New enums
28375 charset_arg_min_code and charset_arg_max_code.
28376 (struct charset): New member char_index_offset.
28377
28378 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
28379 Take charset->char_index_offset into account.
28380 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
28381 args[charset_arg_max_code]. Setup charset.char_index_offset.
28382 (syms_of_charset): Fix args to Fdefine_charset_internal.
28383
283842008-02-01 Dave Love <fx@gnu.org>
28385
28386 * coding.c (decode_coding_utf_8): Reject overlong sequences.
28387
283882008-02-01 Dave Love <fx@gnu.org>
28389
28390 * coding.c: Doc fixes.
28391 (Fcoding_system_aliases): Fix return value.
28392 (Qmac): Remove (duplicated) definition.
28393
283942008-02-01 Dave Love <fx@gnu.org>
28395
362654a6
JB
28396 * charset.c (Fcharset_priority_list, Fset_charset_priority):
28397 New functions.
aac0c6e3
MR
28398
28399 * character.c (Fstring): Doc fix.
28400
28401 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
28402
362654a6 28403 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
28404 (font-encoding-alist): Doc fix.
28405
284062008-02-01 Dave Love <fx@gnu.org>
28407
28408 * term.c (costs_set): Declare static, non-initialized for pcc.
28409 (encode_terminal_code): Remove unused var.
28410
28411 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
28412 for K&R.
28413
28414 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
28415
28416 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
28417 (suffixes): Move out of make_subsidiaries for K&R.
28418
28419 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
28420
28421 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
28422
284232008-02-01 Dave Love <fx@gnu.org>
28424
28425 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
28426
28427 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
28428
284292008-02-01 Yong Lu <lyongu@asia-infonet.com>
28430
28431 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
28432
28433 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
28434
284352008-02-01 Kenichi Handa <handa@m17n.org>
28436
28437 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
28438 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
28439
284402008-02-01 Kenichi Handa <handa@m17n.org>
28441
28442 * coding.c (decode_coding_charset): Adjust for the change of
28443 Fdefine_coding_system_internal.
28444 (Fdefine_coding_system_internal): For a coding system of
28445 `charset' type, store a list of charset IDs in
28446 `charset_attr_charset_valids' element of coding attributes.
28447
284482008-02-01 Kenichi Handa <handa@m17n.org>
28449
28450 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
28451 (emacs_mule_char): New arg src. Delete arg `composition'.
28452 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
28453 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
28454 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
28455 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
28456 (DECODE_EMACS_MULE_21_COMPOSITION):
28457 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
28458 sequence.
28459 (decode_coding_emacs_mule): Handle composition correctly. Rewind
28460 `src' and `consumed_chars' correctly before calling emacs_mule_char.
28461 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
28462 and alt&rule composition.
28463 (decode_coding_iso_2022): Handle composition correctly.
28464 (init_coding_once): Setup emacs_mule_bytes for private charsets.
28465
28466 * charset.c (Fdefine_charset_internal): Fix bug for the case of
28467 re-defining a charset. If the charset has :emacs-mule-id, setup
28468 emacs_mule_bytes.
28469 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
28470
284712008-02-01 Kenichi Handa <handa@m17n.org>
28472
28473 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
28474 (encode_coding_big5, encode_coding_charset): If coding requires safe
28475 encoding, produce a character specified by
28476 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
28477
284782008-02-01 Dave Love <fx@gnu.org>
28479
28480 * xterm.c (XSetIMValues): Declare.
28481
28482 * process.c: Conditionally include sys/wait.h, pty.h.
28483
28484 * print.c (print_object): Fix print format for 64-bit systems.
28485
28486 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
28487
28488 * buffer.c (emacs_strerror): Declare.
28489
28490 * fontset.c (Fclear_face_cache): Declare.
28491 (accumulate_font_info): Comment-out (unused).
28492 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
28493 variables.
28494
28495 * character.h (string_escape_byte8): Declare.
28496
bba3e508
SM
28497 * charset.c (load_charset_map, load_charset_map_from_file):
28498 Remove unused vars.
aac0c6e3
MR
28499 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
28500 (Fmap_charset_chars): Doc fix.
28501
28502 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
28503 (Fset_coding_system_priority, Fset_coding_system_priority)
28504 (Fdefine_coding_system_internal): Doc fix.
28505
285062008-02-01 Dave Love <fx@gnu.org>
28507
28508 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
28509
285102008-02-01 Kenichi Handa <handa@m17n.org>
28511
28512 * character.c (string_escape_byte8): Make multibyte string with
28513 correct size.
28514
28515 * charset.c (Fmake_char): Delete unnecessary code.
28516
285172008-02-01 Kenichi Handa <handa@m17n.org>
28518
28519 * xfns.c (x_encode_text): Allocate coding.destination here, and
28520 call encode_coding_object with dst_object Qnil.
28521
28522 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
28523 multibyte form correctly.
28524
28525 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
28526 against Vfont_encoding_alist.
28527
28528 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
28529 handling of charset list.
28530 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
28531 (decode_coding_object): Move point to coding->dst_pos before
28532 calling post-read-conversion function.
28533 (encode_coding_object): Give correct arguments to
28534 pre-write-conversion. Ignore the return value of
28535 pre-write-conversion function. Pay attention to the case that
28536 pre-write-conversion changes the current buffer. If dst_object is
28537 Qt, even if coding->src_bytes is zero, allocate at least one byte
28538 to coding->destination.
28539
28540 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
28541
28542 * charset.c (Fmake_char): Make it more backward compatible.
28543 (Fmap_charset_chars): Fix docstring.
28544
285452008-02-01 Dave Love <fx@gnu.org>
28546
28547 * coding.c: Doc fixes.
28548 (Fdefine_coding_system_alias): Use names, not symbols, in
28549 coding-system-alist.
28550
285512008-02-01 Kenichi Handa <handa@m17n.org>
28552
28553 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
28554 of calling free_realized_face.
28555
285562008-02-01 Yong Lu <lyongu@asia-infonet.com>
28557
28558 * charset.c (read_hex): Don't treat SPC as a comment starter.
28559 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
28560 (Fdecode_char): Fix typo.
28561
285622008-02-01 Kenichi Handa <handa@m17n.org>
28563
28564 * charset.h (struct charset): New member `code_space_mask'.
28565
28566 * coding.c (coding_set_source): Delete the local variable beg_byte.
28567 (encode_coding_charset, Fdefine_coding_system_internal):
28568 Delete the local variable charset.
bba3e508
SM
28569 (Fdefine_coding_system_internal):
28570 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
28571
28572 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
28573 member to check if CODE is valid or not.
28574 (Fdefine_charset_internal): Initialize `code_space_mask' member.
28575 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
28576 is within the range of charset->min_code and carset->max_code.
28577
285782008-02-01 Dave Love <fx@gnu.org>
28579
28580 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
28581
28582 * dispextern.h (generate_ascii_font): Fix return type.
28583
28584 * xfaces.c (generate_ascii_font): Fix arg declaration.
28585
28586 * coding.c (coding_inherit_eol_type)
28587 (Fset_terminal_coding_system_internal)
28588 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
28589
285902008-02-01 Kenichi Handa <handa@m17n.org>
28591
bba3e508
SM
28592 * coding.c (decode_coding_charset, encode_coding_charset):
28593 Handle multiple charsets correctly.
aac0c6e3
MR
28594
285952008-02-01 Kenichi Handa <handa@m17n.org>
28596
28597 * search.c (boyer_moore): Fix handling of multibyte character
28598 translation.
28599
28600 * xdisp.c (display_mode_element): When the variable `elt' is
28601 changed, update `this' and `lisp_string'.
28602
286032008-02-01 Kenichi Handa <handa@m17n.org>
28604
28605 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
28606
28607 * callproc.c (Fcall_process): Be sure to give the current buffer
28608 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
28609
28610 * charset.c (struct charset_map_entries): New struct.
28611 (load_charset_map): Rename from parse_charset_map. New args
28612 entries and n_entries. Change caller.
28613 (load_charset_map_from_file): Rename from load_charset_map.
28614 Change caller. New arg control_flag. Call load_charset_map at
28615 the tail.
28616 (load_charset_map_from_vector): New function.
28617 (Fdefine_charset_internal): Setup charset.compact_codes_p.
28618 (encode_char): If the charset is compact, change a character index
28619 to a code point.
28620
28621 * coding.c (coding_alloc_by_making_gap): Check the case that the
28622 source and destination are the same correctly.
28623 (decode_coding_raw_text): Set coding->consumed_char and
28624 coding->consumed to 0.
28625 (produce_chars): If coding->chars_at_source is nonzero, update
28626 coding->consumed_char and coding->consumed before calling
28627 alloc_destination.
28628 (Fdefine_coding_system_alias): Register ALIAS in
28629 Vcoding_system_alist.
28630 (syms_of_coding): Define `no-conversion' coding system at the tail.
28631
28632 * fileio.c (Finsert_file_contents): Set coding_system instead of
28633 val. If the current buffer is multibyte, always call
28634 decode_coding_gap.
28635
28636 * xfaces.c (try_font_list): Give higher priority to fontset's
28637 family than face's family.
28638
286392008-02-01 Kenichi Handa <handa@m17n.org>
28640
28641 * callproc.c (Fcall_process): Be sure to give the current buffer
28642 to decode_coding_c_string.
28643
28644 * xfaces.c (try_font_list): Give a family specified in a fontset
28645 higher priority than a family specified in a face.
28646
286472008-02-01 Kenichi Handa <handa@m17n.org>
28648
28649 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
28650 Fix arguments to insert_from_buffer.
28651
28652 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
28653
286542008-02-01 Kenichi Handa <handa@m17n.org>
28655
28656 * coding.c (produce_chars): Set the variable `multibytep' correctly.
28657 (decode_coding_gap): Set coding->dst_multibyte correctly.
28658
286592008-02-01 Kenichi Handa <handa@m17n.org>
28660
28661 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
28662 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
28663 (encode_coding_utf_16): Substitute coding->default_char for
28664 non-Unicode characters.
28665 (decode_coding): Don't call record_insert here.
28666 (setup_coding_system): Initialize `surrogate' of
28667 coding->spec.utf_16 to 0.
28668 (EMIT_ONE_BYTE): Fix for multibyte case.
28669
28670 * insdel.c (insert_from_gap): Call record_insert.
28671
286722008-02-01 Kenichi Handa <handa@m17n.org>
28673
28674 * casefiddle.c (casify_region): Fix multibyte case.
28675
28676 * character.c (c_string_width): Add return type `int'.
28677 (char_string_with_unification): Delete arg ADVANCED.
28678
28679 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
28680 (CHAR_STRING): Adjust for the change of char_string_with_unification.
28681 (CHAR_STRING_ADVANCE): Make it do-while statement.
28682
28683 * chartab.c (sub_char_table_set_range): Optimize for the case
28684 DEPTH == 3. Add workaround code for a GCC optimization bug.
28685
28686 * charset.c (parse_charset_map): Remove an unused variable.
28687
28688 * coding.c: Delete unused variables.
28689
28690 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
28691 earlier. If inserted is zero and the coding system doesn't
28692 require flushing, don't call decode_coding_gap.
28693
28694 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
28695
286962008-02-01 Kenichi Handa <handa@m17n.org>
28697
28698 The following changes are for using Unicode as an internal
28699 character model, and use UTF-8 format for buffer/string
28700 representation.
28701
28702 * .gdbinit (xchartable): Adjust for the change of char table structure.
28703 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
28704
28705 * Makefile.in (obj): Add character.o and chartab.o.
28706 (lisp, shortlisp): Remove utf-8.elc.
28707 (*.o): For many files, change dependency on charset.h to
28708 character.h, and add dependency on character.h.
28709 (character.o, chartab.o): New targets.
28710
28711 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
28712 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
28713 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
28714 of "charset.h".
28715
28716 * dired.c, filelock.c: Include "character.h".
28717
28718 * alloc.c: Include "character.h" instead of "charset.h".
28719 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
28720 (syms_of_alloc): Remove defsubr for Smake_char_table.
28721
28722 * buffer.c: Include "character.h" instead of "charset.h", don't
28723 include "coding.h".
28724 (Fset_buffer_multibyte): Adjust for UTF-8.
28725
28726 * buffer.h: EXFUN Fbuffer_live_p.
28727
28728 * callproc.c: Include "character.h" instead of "charset.h".
28729 (Fcall_process): Big change for the new code-conversion APIs.
28730
28731 * casetab.c: Include "character.h" instead of "charset.h".
28732 (set_canon, set_identity, shuffle): Adjust for the new
28733 map_char_table spec.
28734 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
28735 accessing the char table structure.
28736
28737 * chartab.c: New file that implements char table.
28738
28739 * category.c: Include "character.h".
28740 (copy_category_entry): New function.
28741 (copy_category_table): Call map_char_table and copy_category_entry.
28742 (Fmake_category_table): Initialize all top-level slots.
28743 (char_category_set): New function.
28744 (modify_lower_category_set): Delete.
28745 (Fmodify_category_entry): Call char_table_ref_and_range.
28746
28747 * category.h (CATEGORY_SET): Just call char_category_set.
28748
28749 * ccl.c: Include "character.h".
28750 (Qccl, Qcclp): New variables.
28751 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
28752 it's less than 256.
28753 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
28754 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
28755 and DST type.
28756 (ccl_driver): Change types of argument, adjust code accordingly.
28757 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
28758 ccl_driver.
28759 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
28760
28761 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
28762 New members src_multibyte, dst_multibyte, consumed, and produced.
28763 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
28764 (CODING_SPEC_CCL_PROGRAM): New macro.
28765 (ccl_driver): Update prototype.
28766 (Qccl, Qcclp, Fccl_program_p): Extern them.
28767 (CHECK_CCL_PROGRAM): New macro.
28768
28769 * character.c, character.h, chartab.c: New files.
28770
28771 * charset.c: Mostly re-written. Move character and multibyte sequence
28772 handling codes to character.c.
28773
28774 * charset.h: Mostly re-written. Move character and multibyte sequence
28775 handling codes to character.h.
28776
28777 * coding.c, coding.h: Mostly re-written.
28778
28779 * composite.c: Include "character.h" instead of "charset.h".
28780 (CHAR_WIDTH): Move to character.h.
28781 (HASH_KEY, HASH_VALUE): Delete.
28782
28783 * composite.h (enum composition_method): Change order of enumeration
28784 symbols.
28785
28786 * data.c: Include "character.h" instead of "charset.h".
28787 (Faref): Call CHAR_TABLE_REF for a char table.
28788 (Faset): Call CHAR_TABLE_SET for a char table.
28789
28790 * dispextern.h (free_realized_face, check_face_attribytes)
28791 (generate_ascii_font): Extern them.
28792 (free_realized_multibyte_face): Delete extern.
28793
28794 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
28795 table structure.
28796
28797 * editfns.c: Include "character.h" instead of "charset.h".
28798 (Fchar_to_string): Always call CHAR_STRING.
28799
28800 * emacs.c (main): Call init_charset_once, init_charset,
28801 syms_of_chartab, and syms_of_character.
28802
28803 * fileio.c: Include "character.h" instead of "charset.h".
28804 (Finsert_file_contents): Big change for the new code-conversion API.
28805 (choose_write_coding_system, Fwrite_region): Likewise.
28806 (build_annotations_2): Delete.
28807 (e_write): Big change for the new code-conversion API.
28808
28809 * fns.c: Include "character.h" instead of "charset.h".
28810 (copy_sub_char_table): Move to chartab.c.
28811 (Fcopy_sequence): Call copy_char_table for a char table.
28812 (concat): Delete codes calling count_multibyte.
28813 (string_char_to_byte, string_byte_to_char): Adjust for the new
28814 multibyte form.
28815 (internal_equal): Adjust for the change of char table structure.
28816 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28817 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28818 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28819 (char_table_translate, optimize_sub_char_table)
28820 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28821 chartab.c.
28822 (char_table_ref_and_index): Delete.
28823 (HASH_KEY, HASH_VALUE): Move to lisp.h.
28824 (Fmd5): Call preferred_coding_system instead of accessing
28825 Vcoding_category_list. Adjust for the new code-conversion API.
28826 (syms_of_fns): Move defsubr for char table related functions to
28827 chartab.c.
28828
28829 * fontset.c: Mostly re-written.
28830
28831 * fontset.h (struct font_info): Change type of the member encoding_type.
28832 (enum FONT_SPEC_INDEX): New enum.
28833 (fontset_font_pattern, fs_load_font): Update prototype.
28834 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28835
28836 * indent.c: Include "character.h" instead of "charset.h".
28837 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28838
28839 * insdel.c: Include "character.h" instead of "charset.h".
28840 (copy_text): Don't refer to Vnonascii_translation_table.
28841 (insert_from_gap): New function.
28842
28843 * keyboard.c: Include "character.h" instead of "charset.h".
28844 (command_loop_1): Never call direct_output_forward_char before
28845 a non-ASCII character.
28846 (read_char): If Vkeyboard_translate_table is a char table, always
28847 translate a character.
28848
28849 * keymap.c: Include "character.h".
28850 (store_in_keymap): Handle the case that IDX is a cons.
28851 (Fdefine_key): Handle the case that KEY is a cons and the car part
28852 is also a cons (range).
28853 (push_key_description): Adjust for the new character code.
28854 (describe_vector): Call describe_char_table for a char table.
28855 (describe_char_table): New function.
28856
28857 * keymap.h (describe_char_table): Extern it.
28858
28859 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28860 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28861 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28862 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28863 Delete.
28864 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28865 structure.
28866 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28867 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28868 (CHARTAB_SIZE_BITS_3): New macros.
28869 (chartab_size): Extern it.
28870 (struct Lisp_Char_Table): Re-design.
28871 (struct Lisp_Sub_Char_Table): New structure.
28872 (HASH_KEY, HASH_VALUE): Move from fns.c.
28873 (CHARACTERBITS): Define as 22.
28874 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28875 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28876 (GC_SUB_CHAR_TABLE_P): New macro.
28877 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 28878 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
28879 (init_character_once, syms_of_character, init_charset)
28880 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28881
28882 * lread.c: Include "character.h".
28883 (read_multibyte): New arg NBYTES.
28884 (read_escape): Change the meaning of returned *BYTEREP.
28885 (to_multibyte): Delete.
28886 (read1): Adjust the handling of char table and string.
28887
28888 * print.c: Include "character.h" instead of "charset.h".
28889 (print_string): Convert 8-bit raw bytes to octal form by
28890 string_escape_byte8.
28891 (print_object): Adjust for the new multibyte form. Print 8-bit
28892 raw bytes always in octal form. Handle sub char table correctly.
28893
28894 * process.c: Include "character.h" instead of "charset.h".
28895 (read_process_output, send_process): Adjust for the new
28896 code-conversion API.
28897
28898 * puresize.h (BASE_PURESIZE): Increase.
28899
28900 * regex.c: Include "character.h" instead of "charset.h".
28901 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28902 (regex_compile): Accept a range whose starting and ending
28903 character have different leading bytes.
28904 (analyse_first): Adjust for the above change.
28905
28906 * search.c: Include "character.h" instead of "charset.h".
28907 (search_buffer, boyer_moore): Adjust for the new multibyte form.
28908 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
28909
28910 * syntax.c: Include "character.h" instead of "charset.h".
28911 (syntax_parent_lookup): Delete.
28912 (Fmodify_syntax_entry): Accept a cons as CHAR.
28913 (skip_chars): Adjust for the new multibyte form.
28914 (init_syntax_once): Call char_table_set_range instead of directly
28915 accessing the structure of a char table.
28916
28917 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
28918 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
28919 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
28920 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
28921
28922 * term.c: Include "buffer.h" and "character.h".
28923 (encode_terminal_code, write_glyphs): Adjust for the new
28924 code-conversion API.
28925 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28926
28927 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28928
28929 * xdisp.c: Include "character.h".
28930 (get_next_display_element): Adjust for the new multibyte form.
28931 (disp_char_vector): Adjust for the new char table structure.
28932 (decode_mode_spec_coding): Adjust for the new structure of
28933 coding system.
28934 (decode_mode_spec): Adjust for the new code-conversion API.
28935
28936 * xfaces.c: Include "character.h" instead of "charset.h".
28937 (load_face_font): Adjust for the change of choose_face_font and
28938 FS_LOAD_FONT.
28939 (generate_ascii_font): New function.
28940 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28941 (set_font_frame_param): Adjust for the change of choose_face_font.
28942 (free_realized_face): Make it public.
28943 (free_realized_faces_for_fontset): Rename from
28944 free_realized_multibyte_face. Free also faces realized for ASCII.
28945 (choose_face_font): Change arguments. Adjust for the change of
28946 fontset_font_pattern and FS_LOAD_FONT.
28947
28948 * xfns.c: Include "character.h".
28949 (x_encode_text): Adjust for the new code-conversion API.
28950
28951 * xselect.c: Don't include "charset.h".
28952 (selection_data_to_lisp_data): Adjust for the new code conversion API.
28953
28954 * xterm.c: Include "character.h".
28955 (x_encode_char): New argument CHARSET. Change caller.
28956 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
28957 Call ENCODE_CHAR instead of SPLIT_CHAR.
28958 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
28959 CHAR_WIDTH instead of CHARSET_WIDTH.
28960 (XTread_socket): Adjust for the new code-conversion API.
28961 (x_new_font): Adjust for the change of FS_LOAD_FONT.
28962 (x_load_font): Adjust for the change of struct font.
28963
289642008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
28965
28966 * xfaces.c (face_at_buffer_position): Remove unused vars.
28967
289682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28969
28970 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
28971 Fix overflow checking.
28972
289732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28974
28975 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
28976 Cancel previous change.
28977
289782008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28979
28980 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
28981 ccl->eight_bit_control. Fix check for buffer overflow.
28982 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
28983 (ccl_driver): Initialize extra_bytes to 0.
28984
289852008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28986
28987 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
28988 return it ORed with ctrl_modifier.
28989
289902008-01-29 Miles Bader <miles@gnu.org>
28991
28992 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
28993
289942008-01-28 Jason Rumney <jasonr@gnu.org>
28995
28996 * w32.c (stat): Don't double check for networked drive.
28997
289982008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
28999
29000 * window.c (run_window_configuration_change_hook): New function.
29001 Code extracted from set_window_buffer. Set the selected frame.
29002 (set_window_buffer): Use it.
29003 * window.h (run_window_configuration_change_hook): Declare.
29004 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
29005
29006 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
29007
290082008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
29009
29010 * Makefile.in: Remove references to unused macros.
29011
290122008-01-26 Eli Zaretskii <eliz@gnu.org>
29013
29014 * w32.c (g_b_init_get_sid_sub_authority)
29015 (g_b_init_get_sid_sub_authority_count): New static variables.
29016 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
29017 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
29018 (init_user_info): Use them to retrieve uid and gid.
29019 Use 500/513, the Windows defaults, as Administrator's uid/gid.
29020 (fstat): Use pw_uid and pw_gid from the_passwd structure for
29021 st_uid and st_gid of the file.
29022
290232008-01-26 Jason Rumney <jasonr@gnu.org>
29024
29025 * w32.c (logon_network_drive): New function.
29026 (stat): Use it.
29027
290282008-01-26 Chong Yidong <cyd@stupidchicken.com>
29029
29030 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
29031 invisible text covered with an ellipsis.
29032
290332008-01-25 Richard Stallman <rms@gnu.org>
29034
29035 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
29036 jump back to beginning. Move some other initializations after that.
29037 (Qwindow_text_change_functions, Vwindow_text_change_functions):
29038 New variables.
29039 (syms_of_xdisp): Init them.
29040
29041 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
29042
29043 * buffer.c (reset_buffer_local_variables):
29044 Implement `permanent-local-hook'.
29045 (Qpermanent_local_hook): New variable.
29046 (syms_of_buffer): Init and staticpro it.
29047
290482008-01-25 Michael Albinus <michael.albinus@gmx.de>
29049
29050 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
29051
290522008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
29053
29054 * fns.c (Fclrhash): Return TABLE.
29055
290562008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29057
29058 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
29059 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
29060 is set even without positional changes.
29061 (x_scroll_bar_clear): Set bar->redraw_needed_p.
29062
29063 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
29064
290652008-01-23 Jason Rumney <jasonr@gnu.org>
29066
29067 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
29068
29069 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
29070 the unicode range available in MULE by locale-coding-system.
29071 Improve dbcs lead byte detection. Set event timestamp and modifiers
29072 earlier.
29073
290742008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29075
29076 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
29077 [MAC_OSX] (init_mac_osx_environment): Initialize it.
29078 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
29079 when used on child processes.
29080
290812008-01-21 Michael Albinus <michael.albinus@gmx.de>
29082
29083 * dbusbind.c (Fdbus_method_return_internal): Rename from
29084 Fdbus_method_return.
29085 (Fdbus_unregister_object): Move to dbus.el.
29086 (Fdbus_call_method, Fdbus_method_return_internal)
29087 (Fdbus_send_signal): Improve debug messages.
29088
290892008-01-20 Martin Rudalics <rudalics@gmx.at>
29090
29091 * undo.c (undo_inhibit_record_point): New variable.
29092 (syms_of_undo): Initialize it.
29093 (record_point): Don't record point when undo_inhibit_record_point
29094 is set.
29095
290962008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
29097
29098 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
29099
29100 * xdisp.c (Qauto_hscroll_mode): New var.
29101 (syms_of_xdisp): Initialize it.
29102 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
29103 window's buffer.
29104 (hscroll_windows): Don't check automatic_hscrolling_p here.
29105
29106 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
29107 vscroll if we're setting window-buffer to the value it already has.
29108
291092008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
29110
29111 * m/intel386.h: Remove references to XENIX.
29112
291132008-01-17 Andreas Schwab <schwab@suse.de>
29114
29115 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
29116 instead of HAVE_X86_64_LIB64_DIR.
29117 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
29118
291192008-01-17 Glenn Morris <rgm@gnu.org>
29120
29121 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
29122 to HAVE_X86_64_LIB64_DIR.
29123
291242008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
29125
29126 * s/irix3-3.h:
29127 * s/irix4-0.h:
29128 * s/386-ix.h:
29129 * s/domain.h:
29130 * s/hpux9-x11r4.h:
29131 * s/hpux9shxr4.h: Remove files for systems no longer supported.
29132
29133 * sysdep.c: Remove code containing references to symbols defined
29134 by unsupported systems.
29135
291362008-01-16 Glenn Morris <rgm@gnu.org>
29137
29138 * coding.c (select-safe-coding-system-function): Doc fix.
29139
291402008-01-15 Glenn Morris <rgm@gnu.org>
29141
29142 * config.in: Revert 2008-01-13 change: this is a generated file.
29143
291442008-01-13 Tom Tromey <tromey@redhat.com>
29145
29146 * lisp.h: Fix typo.
29147
291482008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
29149
29150 * m/sequent-ptx.h:
29151 * m/sequent.h:
29152 * s/ptx.h:
29153 * s/ptx4-2.h:
29154 * s/ptx4.h: Remove files for systems no longer supported.
29155
29156 * callproc.c (Fcall_process): Fix previous change.
29157
291582008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
29159
29160 * unexsunos4.c: Remove file, system not supported anymore.
29161
29162 * m/mips.h:
29163 * m/intel386.h:
29164 * callproc.c:
29165 * config.in:
29166 * ecrt0.c:
29167 * emacs.c:
29168 * fileio.c:
29169 * frame.c:
29170 * getpagesize.h:
29171 * keyboard.c:
29172 * lread.c:
29173 * process.c:
29174 * puresize.h:
29175 * sysdep.c:
29176 * systty.h:
29177 * syswait.h:
29178 * unexec.c:
29179 * xdisp.c:
29180 * alloc.c: Remove code containing references to symbols defined by
29181 unsupported systems.
29182
291832008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
29184
29185 * coding.c (detect_coding_mask): Fix previous change.
29186
291872008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
29188
29189 * coding.c (detect_coding_iso2022): New arg
29190 latin_extra_code_state. Allow Latin extra codes only
29191 when *latin_extra_code_state is nonzero.
29192 (detect_coding_mask): If there is a NULL byte, detect the encoding
29193 as UTF-16 or binary. If Latin extra codes exist, detect the
29194 encoding as ISO-2022 only when there's no other proper encoding is
29195 found.
29196
291972008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29198
29199 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
29200 #ifdef MAC_OS.
29201
292022008-01-08 Richard Stallman <rms@gnu.org>
29203
29204 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
29205
292062008-01-06 Nick Roberts <nickrob@snap.net.nz>
29207
29208 * keyboard.c (parse_menu_item): Don't enclose key bindings on
29209 menu bar in parentheses.
29210
292112008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
29212
29213 * m/7300.h:
29214 * m/acorn.h:
29215 * m/alliant-2800.h:
29216 * m/alliant.h:
29217 * m/alliant1.h:
29218 * m/alliant4.h:
29219 * m/altos.h:
29220 * m/amdahl.h:
29221 * m/apollo.h:
29222 * m/att3b.h:
29223 * m/aviion-intel.h:
29224 * m/aviion.h:
29225 * m/celerity.h:
29226 * m/clipper.h:
29227 * m/cnvrgnt.h:
29228 * m/convex.h:
29229 * m/cydra5.h:
29230 * m/delta88k.h:
29231 * m/dpx2.h:
29232 * m/dual.h:
29233 * m/elxsi.h:
29234 * m/f301.h:
29235 * m/gould-np1.h:
29236 * m/gould.h:
29237 * m/i860.h:
29238 * m/ibmps2-aix.h:
29239 * m/ibmrt-aix.h:
29240 * m/ibmrt.h:
29241 * m/irist.h:
29242 * m/is386.h:
29243 * m/isi-ov.h:
29244 * m/mega68.h:
29245 * m/mg1.h:
29246 * m/news-r6.h:
29247 * m/news-risc.h:
29248 * m/news.h:
29249 * m/nh3000.h:
29250 * m/nh4000.h:
29251 * m/ns16000.h:
29252 * m/ns32000.h:
29253 * m/nu.h:
29254 * m/orion.h:
29255 * m/orion105.h:
29256 * m/paragon.h:
29257 * m/pfa50.h:
29258 * m/plexus.h:
29259 * m/pyramid.h:
29260 * m/pyrmips.h:
29261 * m/sh3el.h:
29262 * m/sps7.h:
29263 * m/sr2k.h:
29264 * m/stride.h:
29265 * m/sun1.h:
29266 * m/sun2.h:
29267 * m/sun3-68881.h:
29268 * m/sun3-fpa.h:
29269 * m/sun3-soft.h:
29270 * m/sun3.h:
29271 * m/sun386.h:
29272 * m/symmetry.h:
29273 * m/tad68k.h:
29274 * m/tahoe.h:
29275 * m/targon31.h:
29276 * m/tek4300.h:
29277 * m/tekxd88.h:
29278 * m/tower32.h:
29279 * m/tower32v3.h:
29280 * m/ustation.h:
29281 * m/wicat.h:
29282 * m/xps100.h:
29283 * s/cxux.h:
29284 * s/cxux7.h:
29285 * s/dgux.h:
29286 * s/dgux4.h:
29287 * s/dgux5-4-3.h:
29288 * s/dgux5-4r2.h:
29289 * s/esix.h:
29290 * s/esix5r4.h:
29291 * s/hiuxmpp.h:
29292 * s/hiuxwe2.h:
29293 * s/iris3-5.h:
29294 * s/iris3-6.h:
29295 * s/isc2-2.h:
29296 * s/isc3-0.h:
29297 * s/isc4-0.h:
29298 * s/isc4-1.h:
29299 * s/newsos5.h:
29300 * s/newsos6.h:
29301 * s/osf1.h:
29302 * s/osf5-0.h:
29303 * s/riscix1-1.h:
29304 * s/riscix12.h:
29305 * s/sco4.h:
29306 * s/sco5.h:
29307 * s/sunos4-0.h:
29308 * s/sunos4-1.h:
29309 * s/sunos413.h:
29310 * s/sunos4shr.h:
29311 * s/umax.h:
29312 * s/unipl5-2.h:
29313 * s/xenix.h:
29314 * cxux-crt0.s:
29315 * unexapollo.c:
29316 * unexconvex.c:
29317 * unexenix.c:
29318 * unexsni.c: Remove files for systems no longer supported.
29319
29320 * m/intel386.h: Remove references to unsupported systems.
29321
29322 * w32.c (get_emacs_configuration): Remove reference to i860.
29323
29324 * sysdep.c: Remove dead code.
29325
293262008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
29327
29328 * s/rtu.h:
29329 * m/masscomp.h: Remove files. Platform is obsolete.
29330
293312008-01-04 Michael Albinus <michael.albinus@gmx.de>
29332
29333 * dbusbind.c (Fdbus_method_return): New function.
29334 (xd_read_message): Add the serial number to the event.
29335 (Fdbus_register_method): Activate the function.
29336
293372008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
29338
29339 * keyboard.c (read_key_sequence): Fix typo.
29340
293412008-01-03 Michael Albinus <michael.albinus@gmx.de>
29342
29343 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
29344 (xd_signature, xd_append_arg): Handle element type detection for
29345 empty arrays.
29346 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
29347 SDATA () calls; this must be solved more general.
29348 (Fdbus_register_signal): Use SBYTES instead of strlen.
29349
293502008-01-03 Magnus Henoch <magnus@zemdatav>
29351
29352 * dbusbind.c (xd_append_arg): Use unsigned char instead of
29353 unsigned int for byte values (necessary for big-endian platform).
29354 (Fdbus_call_method): Handle the case of no returned arguments.
29355
293562007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
29357
29358 * dbusbind.c (xd_read_message): Use non-static input_event struct.
29359
293602007-12-31 Magnus Henoch <mange@freemail.hu>
29361
29362 * dbusbind.c (xd_signature): Signature of variant is just "v".
29363
293642007-12-30 Michael Albinus <michael.albinus@gmx.de>
29365
29366 * dbusbind.c: Fix several errors and compiler warnings.
29367 Reported by Tom Tromey <tromey@redhat.com>.
29368 (XD_ERROR, XD_DEBUG_MESSAGE)
29369 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
29370 (xd_append_arg): Part for basic D-Bus types rewritten.
29371 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
29372 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
29373 appropriate.
29374 (xd_read_message): Return Qnil. Don't signal an error; it is not
29375 useful during event reading.
29376 (Fdbus_register_signal): Signal an error if the check for
29377 FUNCTIONP fails.
29378 (Fdbus_register_method): New function. The implementation is not
29379 complete, the call of the function signals an error therefore.
29380 (Fdbus_unregister_object): New function, renamed from
29381 Fdbus_unregister_signal. The initial check signals an error, if
29382 the object is not well formed.
29383
293842007-12-30 Richard Stallman <rms@gnu.org>
29385
29386 * textprop.c (get_char_property_and_overlay):
29387 Signal error if POSITION is out of range in a buffer.
29388
293892007-12-29 Martin Rudalics <rudalics@gmx.at>
29390
29391 * w32fns.c (Fx_create_frame): Make copy of frame parameters
29392 because the original parameters are in pure storage now.
29393
293942007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29395
29396 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
29397
293982007-12-22 Eli Zaretskii <eliz@gnu.org>
29399
29400 * callint.c (syms_of_callint) <command-history>: Add reference to
29401 history-length in the doc string.
29402
294032007-12-17 Jason Rumney <jasonr@gnu.org>
29404
29405 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
29406 before passing as wParam.
29407
294082007-12-22 Michael Albinus <michael.albinus@gmx.de>
29409
29410 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
29411 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
29412 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
29413 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
29414 as number.
29415 (Fdbus_call_method): Fix docstring.
29416
294172007-12-21 Michael Albinus <michael.albinus@gmx.de>
29418
29419 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
29420 New macros.
29421 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
29422 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
29423 Simplify.
29424 (xd_signature): New function.
29425 (xd_append_arg): Compute also signatures. Major rewrite.
29426 (xd_retrieve_arg): Make debug messages friendly.
29427 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
29428 Check for signatures of arguments.
29429
294302007-12-19 Michael Albinus <michael.albinus@gmx.de>
29431
29432 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
29433 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
29434 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
29435 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
29436 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
29437 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
29438 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
29439 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
29440 (xd_retrieve_value): Remove. Functionality included in ...
29441 (xd_append_arg): New function.
29442 (Fdbus_call_method, Fdbus_send_signal): Apply it.
29443
294442007-12-16 Michael Albinus <michael.albinus@gmx.de>
29445
29446 * dbusbind.c (top): Include <stdio.h>.
29447 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
29448 dbus_message_new_method_call and dbus_message_new_signal.
29449 (Fdbus_register_signal): Rename unique_name to uname.
29450 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
29451 non-existing unique name. Fix typos in matching rule. Return an
29452 object which is useful in Fdbus_unregister_signal.
29453 (Fdbus_unregister_signal): Reimplementation, in order to remove
29454 only the corresponding entry.
29455 (Vdbus_registered_functions_table): Change the order of entries.
29456 Apply these changes in xd_read_message and Fdbus_register_signal.
29457
294582007-12-16 Andreas Schwab <schwab@suse.de>
29459
29460 * fileio.c (Finsert_file_contents): Fix overflow check to not
29461 depend on undefined integer overflow.
29462
294632007-12-14 Jason Rumney <jasonr@gnu.org>
29464
29465 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
29466 for characters above 127.
29467
294682007-12-13 Jason Rumney <jasonr@gnu.org>
29469
29470 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
29471 before dereferencing array.
29472 (lookup_vk_code): Remove zero comparison.
29473
294742007-12-14 Michael Albinus <michael.albinus@gmx.de>
29475
29476 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
29477 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
29478 Use `unsigned int' instead of `uint'.
29479 (xd_read_message, Fdbus_register_signal): Split expressions into
29480 multiple lines before operators "&&" and "||", according to the
29481 GNU Coding Standards.
29482
294832007-12-14 Eli Zaretskii <eliz@gnu.org>
29484
29485 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
29486
294872007-12-12 Juri Linkov <juri@jurta.org>
29488
29489 * buffer.c (Frename_buffer): In interactive spec replace
29490 `read-buffer' with `read-string' that uses `buffer-name-history'
29491 as history, and the current buffer's name as default.
29492
294932007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
29494
29495 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
29496 manipulating the backtrace manually.
29497 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
29498 (struct backtrace, backtrace_list): Remove.
29499 (command_loop_1): Remove dead var `no_direct'.
29500
29501 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
29502 preserve non-built-in buffer-local variables.
29503 (Fkill_all_local_variables): Don't re-create&re-set permanent
29504 buffer-local variables.
29505
295062007-12-09 Juri Linkov <juri@jurta.org>
29507
29508 * buffer.c (Frename_buffer): Change interactive spec from "s" to
29509 Lisp code that uses `read-buffer' with current buffer as default.
29510
295112007-12-08 Michael Albinus <michael.albinus@gmx.de>
29512
29513 * dbusbind.c (xd_read_message): Generate an event for every
29514 registered handler. There might be several handlers registered
29515 for the same signal.
29516 (Fdbus_register_signal): Don't overwrite a registration for the
29517 same signal. Add a new registration if handlers are different.
29518 (Vdbus_registered_functions_table): Rework doc string.
29519
295202007-12-07 Michael Albinus <michael.albinus@gmx.de>
29521
29522 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
29523 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
29524 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
29525 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
29526 Unify argument lists.
29527 (xd_read_message, Fdbus_register_signal): Reorder and extend event
29528 arguments and hash table keys. Use unique name for service.
29529 (Fdbus_unregister_signal): Remove checks.
29530 (Vdbus_registered_functions_table): Fix doc string.
29531
295322007-12-05 Magnus Henoch <mange@freemail.hu>
29533
29534 * process.c (make_process): Initialize pty_flag to 0.
29535
295362007-12-05 Jason Rumney <jasonr@gnu.org>
29537
29538 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
29539 specified XBMs.
29540
295412007-12-05 Richard Stallman <rms@gnu.org>
29542
29543 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
29544
295452007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29546
29547 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
29548 New variable.
29549 (mac_try_close_socket) [MAC_OSX]: New function.
29550 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
29551 Update cfsockets_for_select. Replace invalid CFRunLoop source.
29552
29553 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
29554 Use mac_try_close_socket.
29555
295562007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29557
29558 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
29559 reloc_base.
29560 (copy_dysymtab): Compute relocation base here.
29561 (rebase_reloc_address) [__ppc64__]: New function.
29562 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
29563 changed.
29564
295652007-12-05 Jason Rumney <jasonr@gnu.org>
29566
29567 * w32proc.c (sys_spawnve): Quote args with wildcards.
29568
295692007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29570
29571 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
29572 __objc_* sections.
29573 (unrelocate) [_LP64]: Set relocation base to address of data segment.
29574
295752007-12-05 Michael Albinus <michael.albinus@gmx.de>
29576
29577 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
29578 Move check for Vdbus_registered_functions_table to
29579 xd_read_queued_messages.
29580 (xd_read_queued_messages): Protect xd_read_message calls by
29581 internal_condition_case_1.
29582
295832007-12-04 Michael Albinus <michael.albinus@gmx.de>
29584
29585 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
29586 Qdbus_system_bus and Qdbus_session_bus, respectively.
29587 (Vdbus_intern_symbols): Remove.
29588 (Vdbus_registered_functions_table): New hash table.
29589 (XD_SYMBOL_INTERN_SYMBOL): Remove.
29590 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
29591 Rewrite in order to manage registered functions by hash table
29592 Vdbus_registered_functions_table.
29593
295942007-12-03 Jan Djärv <jan.h.d@swipnet.se>
29595
29596 * xterm.c: Update URL to Window Manager Specification in comment.
29597
295982007-12-02 Michael Albinus <michael.albinus@gmx.de>
29599
29600 * config.in (HAVE_DBUS): Add.
29601
29602 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
29603 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
29604 (obj): Add $(DBUS_OBJ).
29605 (LIBES): Add $(DBUS_LIBS).
29606 (dbusbind.o): New target.
29607
29608 * dbusbind.c: New file.
29609
29610 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
29611
29612 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
29613 (Qdbus_event): New Lisp symbol.
29614 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
29615 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 29616 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
29617
29618 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
29619
296202007-12-01 Richard Stallman <rms@gnu.org>
29621
29622 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
29623
296242007-11-30 Jason Rumney <jasonr@gnu.org>
29625
29626 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
29627 (w32con_reset_terminal_modes): Clear screen buffer.
29628 (w32_face_attributes): Don't use color indexes that are out of range.
29629 Only reverse the default colors.
29630
29631 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
29632 WINDOWSNT.
29633
29634 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
29635
296362007-11-29 Jason Rumney <jasonr@gnu.org>
29637
29638 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
29639 (w32_face_attributes): Use Vtty_defined_color_alist to determine
29640 if the terminal colors are initialized.
29641 (unspecified_fg, unspecified_bg): Remove unused declarations.
29642
296432007-11-29 Andreas Schwab <schwab@suse.de>
29644
29645 * keyboard.c (apply_modifiers): Fix typo.
29646
296472007-11-29 Richard Stallman <rms@gnu.org>
29648
29649 * keymap.c (Fcurrent_local_map): Doc fix.
29650
296512007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
29652
29653 * s/gnu-kfreebsd.h: New file.
29654
296552007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
29656
29657 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
29658 Don't cast redundantly.
29659
29660 * keyboard.c (KEY_TO_CHAR): New macro.
29661 (parse_modifiers, apply_modifiers): Accept integer arguments.
29662 (read_key_sequence): Use them to unify the "shift->unshift" mapping
29663 for chars and symbol keys.
29664 After doing such remapping, apply function-key-map again.
29665
296662007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
29667
29668 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
29669 compiled anymore.
29670
296712007-11-26 Andreas Schwab <schwab@suse.de>
29672
29673 * process.c (list_processes_1): Fix indentation level of the
29674 command column.
29675
296762007-11-23 Andreas Schwab <schwab@suse.de>
29677
29678 * editfns.c (Fformat): Handle %c specially since it requires the
29679 argument to be of type int.
29680
296812007-11-23 Markus Triska <markus.triska@gmx.at>
29682
29683 * emacs.c (main): Call init_editfns before init_process, since
29684 init_process sets Vprocess_connection_type depending on OS release.
29685
296862007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
29687
29688 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
29689 (find_symbol_value): Use do_symval_forwarding.
29690
29691 * data.c (set_internal): Set the value in the `cons-cell' (for
29692 Buffer_Local_values) not only for frame-local variables.
29693
296942007-11-22 Andreas Schwab <schwab@suse.de>
29695
29696 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
29697 values to sprintf.
29698 * keymap.c (Fsingle_key_description): Likewise.
29699 * print.c (print_object): Likewise.
29700
297012007-11-22 Jan Djärv <jan.h.d@swipnet.se>
29702
29703 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
29704 file for image is nil.
29705
297062007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
29707
29708 * term.c: Include stdarg.h.
29709 (fatal): Implement using varargs.
29710 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
29711
297122007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29713
29714 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
29715 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
29716 Update call to buffer_slot_type_mismatch.
29717 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
29718 (buffer_slot_type_mismatch): Update.
29719 * buffer.c (buffer_local_types): Remove.
29720 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
29721 (defvar_per_buffer): Set the type in the buffer_objfwd.
29722
297232007-11-21 Jason Rumney <jasonr@gnu.org>
29724
29725 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
29726 CreateFileMapping returns NULL on failure.
29727
297282007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29729
29730 * search.c (Fset_match_data): Remove the `evaporate' feature.
29731 (unwind_set_match_data): Don't use the `evaporate' feature.
29732
297332007-11-21 Jason Rumney <jasonr@gnu.org>
29734
29735 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
29736
29737 * w32console.c (w32con_write_glyphs): Remove unused variables.
29738
297392007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
29740
29741 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
29742
29743 * s/darwin.h (MULTI_KBOARD): Remove.
29744
29745 * macfns.c (x_create_tip_frame, Fx_create_frame)
29746 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
29747
297482007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
29749
29750 * buffer.c (Fbuffer_local_value): Remove redundant test.
29751 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
29752 than in `current-buffer' to match the comment.
29753 Do the swap using swap_in_global_binding.
29754
29755 * data.c (store_symval_forwarding, set_internal):
29756 * eval.c (specbind): Remove dead code.
29757
29758 * coding.c (detect_coding, Fupdate_coding_systems_internal):
29759 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
29760 Since we do not want to see internal Lisp_*fwd objects here.
29761
297622007-11-18 Jan Djärv <jan.h.d@swipnet.se>
29763
29764 * sysdep.c (init_system_name): Use getaddrinfo if available.
29765
29766 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
29767 (x_scroll_bar_note_movement): start, end, with, height in struct
29768 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
29769
297702007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
29771
29772 * puresize.h (BASE_PURESIZE): Increase to 1190000.
29773
297742007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
29775
29776 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
29777 This undoes Richard's change of 14-Oct-2002.
29778
29779 * alloc.c (allocate_other_vector):
29780 * lisp.h (allocate_other_vector): Remove.
29781
29782 * window.c (struct save_window_data): Move non-lisp data to the end
29783 and make it `int' rather than Lisp_Object.
29784 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
29785 Done wrap/unwrap integer values.
29786 (Fset_window_configuration, compare_window_configurations):
29787 Update use of fields to their new types.
29788
29789 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
29790 Turn integer fields into `int'. Merge x_window_low and x_window_high.
29791 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
29792 (SET_SCROLL_BAR_X_WINDOW): Remove.
29793 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
29794 Access the new x_window field directly.
29795 * xterm.c (x_scroll_bar_create): Use a pseudovector.
29796 Don't wrap/unwrap integers into Lisp_Objects.
29797 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
29798 (x_scroll_bar_report_motion):
29799 Don't wrap/unwrap integers into Lisp_Objects.
29800 (x_term_init): Use SDATA.
29801 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
29802 (x_scroll_bar_set_handle, x_scroll_bar_remove)
29803 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
29804 (x_scroll_bar_report_motion, x_scroll_bar_clear):
29805 * xfns.c (x_set_background_color):
29806 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29807 Access the new x_window field directly.
29808
29809 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29810 (allocate_pseudovector): Make non-static.
29811
29812 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29813 (allocate_pseudovector): Declare.
29814 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29815
298162007-11-15 Andreas Schwab <schwab@suse.de>
29817
29818 * editfns.c (Fformat): Correctly format EMACS_INT values.
29819 Also take precision into account when formatting an integer.
29820
29821 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29822
298232007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
29824
29825 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29826 (syms_of_keyboard): Defsubr it.
29827
29828 * data.c (swap_in_global_binding): Fix longstanding bug where
29829 store_symval_forwarding was not called with the right second argument,
29830 thus causing objfwd-ing from being dropped.
29831
298322007-11-14 Juanma Barranquero <lekktu@gmail.com>
29833
29834 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29835 (Fx_display_pixel_height, Fx_display_planes)
29836 (Fx_display_color_cells, Fx_server_max_request_size)
29837 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29838 (Fx_display_visual_class, Fx_display_save_under):
29839 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29840 (Fx_display_pixel_height, Fx_display_planes)
29841 (Fx_display_color_cells, Fx_server_max_request_size)
29842 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29843 (Fx_display_mm_height, Fx_display_mm_width)
29844 (Fx_display_backing_store, Fx_display_visual_class)
29845 (Fw32_select_font, Fx_display_save_under):
29846 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29847 (Fx_display_pixel_height, Fx_display_planes)
29848 (Fx_display_color_cells, Fx_server_max_request_size)
29849 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29850 (Fx_display_save_under): Fix typos in docstrings.
29851
298522007-11-14 Juanma Barranquero <lekktu@gmail.com>
29853
29854 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29855 corresponding to deleted entries; they are an implementation detail.
29856 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29857 Remove variables.
29858 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29859 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29860 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29861 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29862 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29863 (Fw32_define_rgb_color, Fw32_load_color_file)
29864 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29865 Fix typos in docstrings.
29866 (Fx_server_version): Reflow docstring.
29867 (Fw32_shell_execute): Doc fixes.
29868
298692007-11-13 Juanma Barranquero <lekktu@gmail.com>
29870
29871 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29872 if w32_parse_hot_key returned nil.
29873
298742007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
29875
29876 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29877
298782007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 29879
aac0c6e3
MR
29880 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29881
29882 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29883
29884 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29885 Remove W32_SCROLL_BAR_CLICK_EVENT.
29886
29887 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29888 Add MULTIMEDIA_KEY_EVENT.
29889
29890 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29891 (lispy_multimedia_keys) [WINDOWSNT]: New array.
29892 (make_lispy_event) [WINDOWSNT]: Use it to translate
29893 MULTIMEDIA_KEY_EVENT.
29894
29895 * w32term.h (WM_APPCOMMAND): Define if not already.
29896 (GET_APPCOMMAND_LPARAM): Likewise.
29897
29898 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29899 WM_APPCOMMAND.
29900
29901 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29902 (syms_of_w32fns): Export and initialize it.
29903 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29904
299052007-11-09 Chong Yidong <cyd@stupidchicken.com>
29906
29907 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
29908 twice.
29909
29910 * xdisp.c (handle_face_prop): Fix last change.
29911
299122007-11-09 Richard Stallman <rms@gnu.org>
29913
29914 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
29915 not just for after-strings and before-strings.
29916 Call face_for_overlay_string and pass the overlay to it.
29917 (handle_display_prop): Determine whether property came from an overlay.
29918 Pass OVERLAY arg to handle_single_display_spec.
29919 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
29920 (load_overlay_strings): Fill in it->string_overlays.
29921 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
29922
29923 * xfaces.c (face_for_overlay_string): Function renamed from
29924 face_at_buffer_position_no_overlays, and add arg OVERLAY.
29925
29926 * dispextern.h (struct it): New elt string_overlays.
29927 New elt from_overlay, also in stack.
29928 Rearrange a few elements.
29929 (face_for_overlay_string): Decl renamed from
29930 face_at_buffer_position_no_overlays, and add argument.
29931
299322007-11-09 Richard Stallman <rms@gnu.org>
29933
29934 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29935 to get the base face for an overlay string.
29936
29937 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29938
29939 * xfaces.c (face_at_buffer_position_no_overlays): New function.
29940
29941 * xdisp.c (handle_stop): Move some code out of loop.
29942
299432007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29944
29945 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29946 Fix conversion from Lisp object to ATSUFontID.
29947
299482007-11-09 Jason Rumney <jasonr@gnu.org>
29949
29950 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
29951
299522007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29953
29954 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
29955 Don't assume regions are aligned to page boundary.
29956 (print_load_command_name): Add LC_UUID if defined.
29957
299582007-11-09 Richard Stallman <rms@gnu.org>
29959
29960 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
29961
299622007-11-07 Jason Rumney <jasonr@gnu.org>
29963
29964 * s/windows95.h: Remove.
29965
299662007-11-06 Jan Djärv <jan.h.d@swipnet.se>
29967
29968 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
29969 abort with a message on unhandled store_type values.
29970
299712007-11-01 Jan Djärv <jan.h.d@swipnet.se>
29972
29973 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
29974 Remove HAVE_X11R5 and HAVE_X11R4.
29975
299762007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29977
29978 * Makefile.in: Remove references to sunfns.c and sunfns.o.
29979
299802007-11-01 Johan Bockgård <bojohan@gnu.org>
29981
29982 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
29983 Don't set s->stippled_p here, since it has already been set by
29984 x_set_glyph_string_gc from x_draw_glyph_string.
29985
299862007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29987
29988 * sunfns.c: Remove file.
29989
29990 * m/sun386.h:
29991 * m/sun2.h:
29992 * m/sparc.h: Remove Sun windows code.
29993
299942007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
29995
29996 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
29997 (init_keyboard): Set current_kboard's window-system to nil.
29998 (tty_read_avail_input): Typo.
29999 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
30000
300012007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
30002
30003 * s/usg5-4.h:
30004 * s/usg5-3.h:
30005 * s/ptx.h:
30006 * m/is386.h:
30007 * m/ibmps2-aix.h:
30008 * Makefile.in: Remove all mentions of X10.
30009
30010 * dispnew.c (syms_of_display): Don't mention version 10.
30011
300122007-10-28 Juanma Barranquero <lekktu@gmail.com>
30013
30014 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
30015 ($(BLD)/abbrev.$(O)): Remove.
30016
300172007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
30018
30019 Rewrite abbrev.c in Elisp.
30020 * image.c (Qcount): Don't declare as extern.
30021 (syms_of_image): Initialize and staticpro `Qcount'.
30022 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
30023 * emacs.c (main): Don't call syms_of_abbrev.
30024 * Makefile.in (obj): Remove abbrev.o.
30025 (abbrev.o): Remove.
30026 * abbrev.c: Remove.
30027
300282007-10-26 Martin Rudalics <rudalics@gmx.at>
30029
30030 * window.c (window_min_size_2): Don't count header-line.
30031
300322007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
30033
30034 * frame.h (struct frame): Move all bit fields after the first bit
30035 field to take advantage of the available space. Group all the
30036 chars together to reduce wasted space due to padding.
30037
300382007-10-26 Juanma Barranquero <lekktu@gmail.com>
30039
30040 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
30041
30042 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
30043 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
30044 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
30045 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
30046 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
30047 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
30048 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
30049 (last_marked, mark_object_loop_halt): Make static.
30050
30051 * frame.c (syms_of_frame) <delete-frame-functions>:
30052 Fix typo in docstring.
30053
300542007-10-25 Juanma Barranquero <lekktu@gmail.com>
30055
30056 * w32.c (init_environment): Fix tiny memory leak.
30057 (w32_get_resource): Remove unused variable `ok'.
30058
300592007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
30060
30061 Make `window-system' into a keyboard-local variable (rather than
30062 frame-local as done originally by multi-tty).
30063
30064 * keyboard.h (struct kboard): Add Vwindow_system.
30065 * keyboard.c (init_kboard): Set a default for Vwindow_system.
30066 (mark_kboards): Mark Vwindow_system.
30067
30068 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
30069 (init_display): Don't set the obsolete `window-system' frame-param.
30070
30071 * xterm.c (x_term_init):
30072 * w32term.c (w32_create_terminal):
30073 * term.c (init_tty): Set Vwindow_system.
30074 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
30075 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
30076
30077 * xfns.c (Fx_create_frame, x_create_tip_frame):
30078 * w32fns.c (Fx_create_frame, x_create_tip_frame):
30079 * macfns.c (Fx_create_frame):
30080 Don't set the obsolete `window-system' frame-param.
30081
30082 * frame.h (Qwindow_system): Remove.
30083 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
30084 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
30085
300862007-10-24 Richard Stallman <rms@gnu.org>
30087
30088 * frame.c (x_figure_window_size): For fullscreen case,
30089 set USPosition | PPosition without clobbering rest of window_prompting.
30090
30091 * keyboard.c (Fcurrent_idle_time): Doc fix.
30092
30093 * print.c (Fwith_output_to_temp_buffer): Doc fix.
30094
300952007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
30096
30097 * process.c (unwind_request_sigio): Only define if __ultrix__.
30098
30099 * callproc.c (child_setup): Remove spurious *.
30100
30101 * lisp.h (Fget_text_property): Declare.
30102 (have_menus_p): Declare it here rather than in sys-dep header files.
30103 * macterm.h (have_menus_p):
30104 * msdos.h (have_menus_p):
30105 * xterm.h (have_menus_p): Remove.
30106
30107 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
30108 (Fmake_variable_frame_local): Just check the variable's const-ness
30109 rather than checking nil or t.
30110
301112007-10-22 Jason Rumney <jasonr@gnu.org>
30112
30113 * w32fns.c: Include math.h.
30114 (w32_abort): Declaration moved to nt/config.nt.
30115
30116 * s/ms-w32.h (HAVE_STDLIB_H): Define.
30117 (abort): Redefinition moved to nt/config.nt.
30118
30119 * m/windowsnt.h: Remove.
30120
301212007-10-22 Juanma Barranquero <lekktu@gmail.com>
30122
30123 * emacs.c (Fdump_emacs): Fix typo in message.
30124 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
30125 <installation-directory>: Reflow docstring.
30126
301272007-10-22 Juri Linkov <juri@jurta.org>
30128
30129 * minibuf.c: Allow minibuffer default to be a list of default values.
30130 With empty input use the first element of this list as returned default.
30131 (string_to_object)
30132 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
30133 (read_minibuf): If defalt is cons, set histstring to its car.
30134 (Fread_string): If default_value is cons, set val to its car.
30135 (Fread_buffer): If def is cons, use its car.
30136 (Fcompleting_read): If defalt is cons, set val to its car.
30137
301382007-10-21 Michael Albinus <michael.albinus@gmx.de>
30139
30140 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
30141
301422007-10-20 Juanma Barranquero <lekktu@gmail.com>
30143
30144 * doc.c (Fdocumentation): Check for advice in all cases.
30145
301462007-10-19 Chong Yidong <cyd@stupidchicken.com>
30147
30148 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
30149
301502007-10-19 Richard Stallman <rms@gnu.org>
30151
30152 * doc.c (Fdocumentation): Check for and handle an advised function.
30153
301542007-10-19 Juanma Barranquero <lekktu@gmail.com>
30155
30156 * process.c (Fset_process_filter): Doc fix.
30157
301582007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
30159
30160 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
30161 which caused key-translation-map to applied repeatedly (thus breaking
30162 double-mode).
30163
301642007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
30165
30166 * xselect.c (x_own_selection, x_handle_selection_clear)
30167 (x_clear_frame_selections):
30168 * w32menu.c (list_of_panes, list_of_items):
30169 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
30170 * textprop.c (validate_plist, interval_has_all_properties)
30171 (interval_has_some_properties, interval_has_some_properties_list)
30172 (add_properties, text_property_list):
30173 * process.c (Fget_buffer_process, list_processes_1, status_notify):
30174 * minibuf.c (Fassoc_string):
30175 * macselect.c (x_own_selection, x_clear_frame_selections)
30176 (Fx_disown_selection_internal):
30177 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
30178 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
30179
301802007-10-17 Chong Yidong <cyd@stupidchicken.com>
30181
30182 * process.c: Link to libs for calling res_init() if available.
30183 (Fmake_network_process): Call res_init() before getaddrinfo or
30184 gethostbyname, if possible.
30185
301862007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
30187
30188 * lread.c (read1): Set pvectype for char_tables.
30189
30190 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
30191 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
30192 Add type checks.
30193 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
30194
30195 * alloc.c (free_misc): Use XMISCTYPE.
30196 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
30197
301982007-10-17 Glenn Morris <rgm@gnu.org>
30199
30200 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
30201 (syms_of_minibuf): Add Qcompletion_ignore_case.
30202 * dired.c (Qcompletion_ignore_case): Change to external.
30203 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
30204 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
30205 (Fread_file_name): Use it rather than intern'ing.
30206
30207 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
30208 (Fread_coding_system): Ignore case of user input.
30209
302102007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30211
30212 * xdisp.c (handle_display_prop): Ignore display specs after
30213 replacing one when string text is being replaced.
30214 (handle_single_display_spec): Pretend as if characters with display
30215 property haven't been consumed only when buffer text is being replaced.
30216
302172007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
30218
30219 * xfns.c (Fx_create_frame, Fx_display_list):
30220 * window.c (window_fixed_size_p, enlarge_window)
30221 (shrink_window_lowest_first):
30222 * macterm.c (init_font_name_table):
30223 * macfns.c (Fx_create_frame, Fx_display_list):
30224 * lread.c (close_load_descs):
30225 * keyboard.c (read_char_x_menu_prompt):
30226 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
30227 * coding.c (code_convert_region_unwind): Test the type of an object
30228 rather than just !NILP before extracting data from it.
30229
30230 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
30231
30232 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
30233 (XMISCANY): New macro.
30234 (XMISCTYPE): Use it.
30235 (struct Lisp_Misc_Any): New type.
30236 (union Lisp_Misc): Use it.
30237 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
30238 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
30239 (find_symbol_value, set_internal, default_value, Fset_default)
30240 (Fmake_variable_buffer_local, Fmake_local_variable)
30241 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
30242 (Flocal_variable_if_set_p, Fvariable_binding_locus):
30243 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
30244 * alloc.c (allocate_buffer): Set the size and tag.
30245 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
30246 Use XMISCANY.
30247 (die): Follow the GNU convention for error messages.
30248 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
30249 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
30250 tag any more.
30251 (set_buffer_internal_1):
30252 * frame.c (store_frame_param):
30253 * eval.c (specbind):
30254 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
30255
30256 * doc.c (Fsnarf_documentation): Simplify.
30257
302582007-10-14 Juanma Barranquero <lekktu@gmail.com>
30259
30260 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
30261 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
30262
302632007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
30264
30265 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
30266
302672007-10-14 Juanma Barranquero <lekktu@gmail.com>
30268
30269 * eval.c (do_autoload): Don't save autoloads.
30270
30271 * data.c (Ffset): Save autoload of the function being set.
30272
302732007-10-07 John Paul Wallington <jpw@pobox.com>
30274
30275 * xfns.c (x_create_tip_frame): Set the `display-type' frame
30276 parameter before setting up faces.
30277
302782007-10-13 Eli Zaretskii <eliz@gnu.org>
30279
30280 * ccl.c (Fregister_code_conversion_map):
30281 * keyboard.c (append_tool_bar_item): Reformat last change.
30282
30283 * lisp.h (eabs): Rename from `abs'. All callers changed.
30284
302852007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
30286
30287 * buffer.c (add_overlay_mod_hooklist):
30288 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
30289 * fontset.c (make_fontset):
30290 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
30291 (append_tool_bar_item):
30292 * macmenu.c (grow_menu_items):
30293 * w32menu.c (grow_menu_items):
30294 * xmenu.c (grow_menu_items): Use larger_vector.
30295
302962007-10-13 Eli Zaretskii <eliz@gnu.org>
30297
30298 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
30299 selected frame'' on MSDOS).
30300
303012007-10-12 Martin Rudalics <rudalics@gmx.at>
30302
30303 * frame.c (Qexplicit_name): New variable.
30304 (x_report_frame_params): Report it in parameter alist.
30305 (syms_of_frame): Intern and staticpro it.
30306
303072007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
30308
30309 * macfns.c (x_create_tip_frame): Set terminal for frame.
30310
303112007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
30312
30313 * frame.c (Qenvironment): Remove.
30314 (syms_of_frame) <Qenvironment>: Don't initialize.
30315 (Fdelete_frame): Don't treat the `environment' param specially.
30316 * frame.h (Qenvironment): Don't declare.
30317 * callproc.c (set_initial_environment): Don't set unused frame param.
30318
30319 * frame.c (Fframe_with_environment): Remove.
30320 (syms_of_frame) <Sframe_with_environment>: Don't declare.
30321
30322 * lisp.h (Fframe_with_environment): Don't declare.
30323
303242007-10-10 Juanma Barranquero <lekktu@gmail.com>
30325
30326 * indent.c (indent_tabs_mode, last_known_column)
30327 (last_known_column_modified): Make static.
30328 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
30329
303302007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
30331
30332 * puresize.h (BASE_PURESIZE): Increase to 1170000.
30333
303342007-10-09 Jason Rumney <jasonr@gnu.org>
30335
30336 * w32term.c (x_set_window_size): Disable code that attempts to tell
30337 Lisp code about a size change before it actually happens.
30338
303392007-10-09 Richard Stallman <rms@gnu.org>
30340
30341 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
30342 return HANDLED_RETURN.
30343
303442007-10-08 Martin Rudalics <rudalics@gmx.at>
30345
30346 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
30347 when there's an unread command event.
30348
30349 * frame.c (focus_follows_mouse): Move here from frame.el to allow
30350 window autoselection act appropriately when leaving selected frame.
30351 (syms_of_frame): Initialize focus_follows_mouse.
30352 * frame.h (focus_follows_mouse): Extern it.
30353 * macterm.c (XTread_socket): When focus_follows_mouse is nil
30354 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
30355 * msdos.c (dos_rawgetc): Likewise.
30356 * w32term.c (w32_read_socket): Likewise.
30357 * xterm.c (handle_one_xevent): Likewise.
30358 * xdisp.c (syms_of_xdisp): In doc-string of
30359 mouse-autoselect-window mention focus-follows-mouse.
30360
303612007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30362
30363 * macterm.c (mac_load_query_font): Fix missing return value.
30364 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
30365 Add BLOCK_INPUT.
30366
303672007-10-08 Richard Stallman <rms@gnu.org>
30368
30369 * xdisp.c (get_window_cursor_type): Implement documented behavior
30370 for cursor-in-non-selected-windows = t.
30371
303722007-10-08 Jason Rumney <jasonr@gnu.org>
30373
30374 * w32.c (w32_get_resource): Always close registry keys.
30375
303762007-10-08 Jason Rumney <jasonr@gnu.org>
30377
30378 * makefile.w32-in (LIBS): Add COMCTL32.
30379
30380 * w32fns.c (globals_of_w32fns): Init common controls.
30381
303822007-10-08 Richard Stallman <rms@gnu.org>
30383
30384 * image.c (our_memory_buffer): Rename from omfib_buffer.
30385
303862007-10-08 Richard Stallman <rms@gnu.org>
30387
30388 * buffer.c (Foverlays_at): Doc fix.
30389
303902007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
30391
30392 * fns.c (Fplist_put): Preserve uneven tail data.
30393
303942007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
30395
30396 * termhooks.h (enum event_kind): Remove trailing comma.
30397
30398 * frame.h (enum): Remove trailing comma.
30399
304002007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
30401
30402 * w32proc.c (delete_child): Don't terminate threads of zombies.
30403
304042007-10-08 Martin Rudalics <rudalics@gmx.at>
30405
30406 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
30407
30408 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
30409 last-repeatable-command.
30410 (init_kboard): Initialize Vlast_repeatable_command.
30411 (command_loop_1): Set it to real_this_command unless that was
30412 bound to an input event.
30413 (mark_kboards): Mark it.
30414
304152007-10-08 Richard Stallman <rms@gnu.org>
30416
30417 * eval.c (condition-case): Doc fix.
30418
304192007-10-08 Masatake YAMATO <jet@gyve.org>
30420
30421 * xfaces.c (tty_supports_face_attributes_p): Fix code
30422 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
30423 was copied and not edited.
30424
304252007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
30426
30427 Add new `input-decode-map' keymap and use it for terminal
30428 escape sequences.
30429 * keyboard.h (struct kboard): Add Vinput_decode_map.
30430 Remove Vlocal_key_translation_map.
30431 * keyboard.c (read_key_sequence): Add support for input-decode-map.
30432 (init_kboard): Init input-decode-map.
30433 Replace local-key-translation-map back with key-translation-map.
30434 (syms_of_keyboard): Declare input-decode-map.
30435 Remove local-key-translation-map. Update docstrings.
30436 (mark_kboards): Mark Vinput_decode_map.
30437 Don't mark Vlocal_key_translation_map.
30438 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
30439 Replace local-key-translation-map back with key-translation-map.
30440 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
30441 Bind in input-decode-map rather than function-key-map.
30442
30443 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
30444 This was made redundant by the previous introduction of XSETPVECTYPE.
30445
304462007-10-09 Richard Stallman <rms@gnu.org>
30447
30448 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
30449
304502007-09-29 Richard Stallman <rms@gnu.org>
30451
30452 * eval.c (internal_condition_case_2, internal_condition_case_1)
30453 (internal_condition_case): Reenable abort if x_catching_errors ()
30454 to see if that really happens and why.
30455
304562007-10-06 Andreas Schwab <schwab@suse.de>
30457
30458 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
30459
304602007-10-04 Juanma Barranquero <lekktu@gmail.com>
30461
30462 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
30463
304642007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
30465
30466 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
30467
304682007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
30469
30470 * window.h (struct window):
30471 * window.c (struct save_window_data, struct saved_window):
30472 * termhooks.h (struct terminal):
30473 * process.h (struct Lisp_Process):
30474 * frame.h (struct frame):
30475 * buffer.h (struct buffer):
30476 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
30477 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
30478 The size field of (pseudo)vectors is now unsigned.
30479 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
30480
30481 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
30482 Turn `count' into an integer.
30483
30484 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
30485 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
30486 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
30487 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
30488 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
30489
30490 * alloc.c (allocate_pseudovector): New fun.
30491 (ALLOCATE_PSEUDOVECTOR): New macro.
30492 (allocate_window, allocate_terminal, allocate_frame)
30493 (allocate_process): Use it.
30494 (mark_vectorlike): New function.
30495 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
30496 (mark_terminals): Use it.
30497 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
30498 (Fmake_byte_code): Use XSETPVECTYPE.
30499
30500 * frame.c (Fframe_parameters): Minor simplification.
30501
30502 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
30503
30504 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
30505
30506 * buffer.c (Fget_buffer_create, init_buffer_once):
30507 * lread.c (defsubr):
30508 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
30509
30510 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
30511 defined differently in the m/*.h files.
30512 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
30513 (XSETPVECTYPE): New macro.
30514 (XSETPSEUDOVECTOR): Use it.
30515
30516 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
30517 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
30518
30519 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
30520 * lread.c (defvar_per_buffer):
30521 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
30522
30523 * window.c (candidate_window_p): Only consider as visible frames that
30524 are on the same terminal.
30525
30526 * m/ibms390x.h (MARKBIT): Remove unused macro.
30527
305282007-10-01 Juanma Barranquero <lekktu@gmail.com>
30529
30530 * lread.c (Fload): Fix typo in docstring.
30531
305322007-10-01 Michaël Cadilhac <michael@cadilhac.name>
30533
30534 * floatfns.c (Fexpt): Manually check for overflows, so that a power
30535 of a non-zero value can't yield zero.
30536
305372007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
30538
30539 * term.c (term_clear_mouse_face, term_mouse_highlight)
30540 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
30541
30542 * print.c (safe_debug_print): Use XHASH.
30543
30544 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
30545 Lisp elements such as tags.
30546 (XHASH): New macro.
30547 (EQ): Use it.
30548 (SREF, SSET, STRING_COPYIN): Use SDATA.
30549 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
30550
30551 * alloc.c (mark_terminal): Remove left-over declaration.
30552 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
30553 (allocate_vectorlike): Remove type argument. Adjust callers.
30554 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
30555 Only handle the one remaining MEM_TYPE_VECTORLIKE.
30556
30557 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
30558 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
30559 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
30560 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
30561 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
30562 Use them.
30563
30564 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
30565 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
30566 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
30567
305682007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
30569
30570 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
30571 loaded by default.
30572
305732007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
30574
30575 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
30576 on this tty.
30577 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
30578
30579 * term.c (mouse_face_window): Rename from Qmouse_face_window.
30580 Update all users.
30581 (handle_one_term_event): Use Gpm_DrawPointer.
30582 (Fgpm_mouse_start): Rename from Fterm_open_connection.
30583 Signal errors instead of returning nil. Always return nil.
30584 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
30585 Make it a noop if gpm-mouse was not activated.
30586 (syms_of_term): Update names.
30587
305882007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
30589
30590 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
30591 (init_sys_modes): Check that gpm_tty is the current tty.
30592
30593 * alloc.c (allocate_terminal): Set the vector size to only count the
30594 lisp fields. Initialize those to nil.
30595 (mark_object): Don't treat terminals specially.
30596 (mark_terminal): Remove.
30597 (mark_terminals): Use mark_object instead.
30598
30599 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
30600 the GC to the beginning.
30601
30602 * indent.h:
30603 * indent.c: Use EMACS_INT for ints coming from Elisp data.
30604
30605 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
30606
306072007-09-25 Jason Rumney <jasonr@gnu.org>
30608
30609 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
30610
30611 * w32console.c (create_w32cons_output): Remove.
30612
30613 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
30614
30615 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
30616 (reset_sys_modes): Use reset_terminal_modes_hook.
30617
306182007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
30619
30620 * eval.c (do_autoload): Don't output any message.
30621
306222007-09-24 Juri Linkov <juri@jurta.org>
30623
30624 * emacs.c (standard_args): Change priority of "--no-splash"
30625 from 40 to 3. Add "--no-desktop" with the same priority.
30626
306272007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
30628
30629 * alloc.c (gc_sweep): Check cons cell mark bits word by word
30630 and optimize the case where they are all 1.
30631
306322007-09-23 Johannes Weiner <hannes@saeurebad.de>
30633
30634 * lisp.h (abs): Define if not defined.
30635 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
30636 Don't define `abs', since it's defined in lisp.h.
30637
306382007-09-22 Eli Zaretskii <eliz@gnu.org>
30639
30640 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
30641 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
30642 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
30643 (init_tty): Use DEV_TTY instead of "/dev/tty".
30644 [WINDOWSNT]: No need to protect from NAME arg being null.
30645
306462007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
30647
30648 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
30649 up the tty state.
30650
306512007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30652
30653 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
30654 (gpm_tty): Change its type.
30655 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
30656 (gpm_tty): Change its type and initialize it.
30657 (Fterm_open_connection): Check the frame is indeed a tty.
30658 Use the new gpm_tty.
30659 (Fterm_close_connection): Use the new gpm_tty.
30660 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
30661 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
30662
306632007-09-21 Juanma Barranquero <lekktu@gmail.com>
30664
30665 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
30666 underline_color, to draw strike-through.
30667
306682007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30669
30670 * lisp.h (allocate_terminal): Declare.
30671
30672 * window.c (candidate_window_p): Consider frames that are being placed
30673 by the user as somewhere between visible and iconified.
30674 (window_loop): Prefer windows on the current frame.
30675 (Fselect_window): Move the use of select-frame to the beginning so we
30676 can just delegate all the work (it'll call us back anyway).
30677
30678 * frame.c (Qdisplay_environment_variable):
30679 * frame.h (Qdisplay_environment_variable): Delete.
30680
30681 * .gdbinit (xbacktrace): Print the arg's address rather than the value
30682 of the first arg, since that value may be a union.
30683
30684 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
30685 parameter rather than Qdisplay_environment_variable. If all else
30686 fails, look for DISPLAY in initial-environment.
30687
306882007-09-21 Glenn Morris <rgm@gnu.org>
30689
30690 * Makefile.in (emacstool): Remove target.
30691 (lisp, shortlisp): Remove termdev.elc.
30692
306932007-09-21 Markus Triska <markus.triska@gmx.at>
30694
30695 * xterm.c (x_delete_display): Compile session management conditionally.
30696
306972007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
30698
30699 * callproc.c (getenv_internal_1): New function.
30700 (getenv_internal): Use it.
30701 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
30702
30703 * terminal.c (get_terminal): Don't accept ints to represent terminals.
30704 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
30705 (Fset_terminal_parameter): Work with dead terminals as well.
30706 (Fmodify_terminal_parameters): Remove.
30707
30708 * terminal.c (get_terminal): Handle terminals.
30709 Make sure the terminal returned is live.
30710 (create_terminal): Use allocate_terminal.
30711 (mark_terminals): Move to alloc.c.
30712 (delete_terminal): Use terminal->name as liveness status.
30713 NULL out fields after freeing their contents.
30714 Don't deallocate the object.
30715 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
30716 rather than an int.
30717 (Fterminal_live_p): Accept non-integer arguments.
30718 (Fterminal_list): Return terminal objects rather than an ints.
30719
30720 * alloc.c (enum mem_type): New member for `terminal' objects.
30721 (allocate_terminal): New function.
30722 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
30723 Handle terminals.
30724 (mark_terminal): New fun.
30725 (mark_terminals): Move from terminal.c.
30726
30727 * term.c (get_tty_terminal): Don't treat output_initial specially.
30728 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
30729 (delete_tty): Use terminal->name as liveness status.
30730
30731 * termhooks.h (struct terminal): Make it into a pseudovector.
30732 Remove `deleted' replaced by checking `name's nullness.
30733
30734 * print.c (print_object): Handle terminals.
30735
30736 * lisp.h (enum pvec_type): New `terminal' pseudovector.
30737 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
30738
30739 * frame.c (make_terminal_frame):
30740 * keyboard.c (tty_read_avail_input):
30741 * w32term.c (x_delete_terminal):
30742 * xfns.c (Fx_create_frame, x_create_tip_frame):
30743 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
30744
307452007-09-20 Glenn Morris <rgm@gnu.org>
30746
30747 * process.c (Fmake_network_process): Doc fix.
30748
307492007-09-19 Jason Rumney <jasonr@gnu.org>
30750
30751 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
30752
307532007-09-19 Michaël Cadilhac <michael@cadilhac.name>
30754
30755 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
30756 Fix a C warning regarding variable constness.
30757
30758 * xterm.c (handle_one_xevent): Fix a C warning.
30759
307602007-09-18 Jason Rumney <jasonr@gnu.org>
30761
30762 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
30763
307642007-09-17 Jan Djärv <jan.h.d@swipnet.se>
30765
30766 * gtkutil.c (gdpy_def): New variable.
30767 (xg_initialize): Initialize gdpy_def.
30768 (xg_display_close): If no other display exists, set gdpy_def to a
30769 new connection.
30770
307712007-09-16 Jan Djärv <jan.h.d@swipnet.se>
30772
30773 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
30774 when we have no file name for the icon.
30775 (xg_tool_bar_expose_callback): Remove.
30776 (xg_create_tool_bar): Don't connect expose signal to
30777 xg_tool_bar_expose_callback.
30778 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
30779
307802007-09-16 Andreas Schwab <schwab@suse.de>
30781
30782 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
30783 values instead of zapping them.
30784
307852007-09-14 Glenn Morris <rgm@gnu.org>
30786
30787 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
30788 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
30789 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
30790 scope and rename to omfib_buffer for clarity.
30791 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
30792
307932007-09-14 Kenichi Handa <handa@m17n.org>
30794
30795 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
30796
307972007-09-13 Jason Rumney <jasonr@gnu.org>
30798
30799 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
30800
30801 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
30802
30803 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
30804 (mac_term_init): Call here instead, passing rif.
30805
308062007-09-13 Glenn Morris <rgm@gnu.org>
30807
30808 * s/hpux.h: No longer define `static' as nothing.
30809
308102007-09-13 Johan Bockgård <bojohan@gnu.org>
30811
30812 * callint.c (Fcall_interactively): Remove unused var `fun'.
30813
308142007-09-12 Romain Francoise <romain@orebokech.com>
30815
30816 * window.c (prefer_window_split_horizontally, display_buffer):
30817 Revert 2007-09-08 change.
30818
308192007-09-12 Glenn Morris <rgm@gnu.org>
30820
30821 * alloca.c: Remove file.
30822 * Makefile.in (alloca): Do not undef.
30823 (allocaobj, alloca.o): Remove.
30824 (otherobj): Remove allocaobj.
30825 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30826 * regex.c (C_ALLOCA): Remove all references and code that was only
30827 used when this was defined.
30828 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30829 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30830 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30831
30832 * Makefile.in (SOURCES, unlock, relock): Delete.
30833
30834 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30835 (menu_grab_callback): All uses changed.
30836
30837 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30838 (x_reply_selection_request): All uses changed.
30839
308402007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
30841
30842 * lread.c (load_warn_old_style_backquotes): Change message to look
30843 better when it appears in the middle of byte-compiler messages.
30844
308452007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
30846
30847 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30848
30849 * xterm.c (x_create_terminal): Add comment.
30850
30851 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30852
308532007-09-10 Richard Stallman <rms@gnu.org>
30854
30855 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30856
308572007-09-10 Michaël Cadilhac <michael@cadilhac.name>
30858
30859 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30860 (DEFUN): Document `intspec', use it instead of `prompt'.
30861
30862 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30863
30864 * data.c (Finteractive_form): If the interactive specification starts
30865 with a `(', use it as a Lisp form.
30866
30867 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30868 name and file modes.
30869
30870 * callint.c (Fcall_interactively): Comment fixes.
30871
308722007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
30873
30874 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30875 and compiled functions.
30876
308772007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
30878
30879 * window.c (prefer_window_split_horizontally): New variable.
30880 (display_buffer): Consider splitting window horizontally depending
30881 on prefer_window_split_horizontally.
30882
308832007-09-08 Eli Zaretskii <eliz@gnu.org>
30884
30885 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30886
308872007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30888
30889 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30890
30891 * frame.c (x_set_frame_parameters): Check number is positive before
30892 using XFASTINT.
30893
30894 * window.c (freeze_window_start): Don't presume selected_window holds
30895 a window object.
30896 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30897
308982007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
30899
30900 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30901
309022007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30903
30904 * window.c (Vsplit_window_preferred_function): New var.
30905 (Fdisplay_buffer): Use it.
30906 (syms_of_window): Export, and initialize it.
30907
309082007-09-06 Pixel <pixel@mandriva.com> (tiny change)
30909
30910 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
30911
309122007-09-06 Glenn Morris <rgm@gnu.org>
30913
30914 * gtkutil.c (menu_grab_callback) <cnt>:
30915 * xselect.c (x_reply_selection_request) <cnt>: Move static
30916 variable to file scope.
30917
309182007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
30919
30920 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
30921 consistent values of selected_frame and selected_window.
30922
309232007-09-04 Jason Rumney <jasonr@gnu.org>
30924
30925 * w32console.c (initialize_w32_display): Zero unused hooks.
30926
309272007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30928
30929 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30930 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30931
309322007-09-04 Jason Rumney <jasonr@gnu.org>
30933
30934 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30935 in w32console.c. Set up input. Remove XXX comments that have been
30936 confirmed as correct.
30937
30938 * s/ms-w32.h (MULTI_KBOARD): Define.
30939
30940 * w32console.c (one_and_only_w32cons): Remove.
30941 (initialize_w32_display): Take terminal argument.
30942
30943 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30944 initialize_w32_display.
30945 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30946
30947 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30948
30949 * keyboard.c (discard_mouse_events): Discard it.
30950 (make_lispy_event): Translate it to a lisp event.
30951 (lispy_wheel_names): Add wheel-left and right events.
30952 (syms_of_keyboard): Enlarge wheel_syms.
30953
30954 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
30955 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
30956
30957 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
30958
30959 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
30960 from WM_MOUSEHWHEEL.
30961 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
30962
30963 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
30964 terminal.
30965
30966 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
30967 keyboard for the terminal.
30968
309692007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30970
30971 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
30972 (Vresume_tty_hook): Rename from Vresume_tty_functions.
30973 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
30974 and resume-tty-function to resume-tty-hook.
30975 (Fsuspend_tty, Fresume_tty): Use new names.
30976
309772007-09-02 Jan Djärv <jan.h.d@swipnet.se>
30978
30979 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
30980 if it starts with "n:".
30981
309822007-08-31 Jan Djärv <jan.h.d@swipnet.se>
30983
30984 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
30985
309862007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
30987
30988 * frame.h:
30989 * frame.c (Qterm_environment_variable): Remove.
30990 (syms_of_frame): Don't init and staticpro it.
30991
30992 * callproc.c (getenv_internal): Remove special case for $TERM.
30993
30994 * callproc.c (Vinitial_environment): New variable.
30995 (set_initial_environment): Initialize it.
30996 (syms_of_callproc): Declare it.
30997 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
30998 TERM under which a process runs is never related to the TERM in which
30999 Emacs is running.
31000
310012007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
31002
31003 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
31004 * s/darwin.h: ... do it here.
31005
310062007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
31007
31008 * lisp.h (set_initial_environment): Rename from set_global_environment.
31009
31010 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
31011 removed by mistake on the multi-tty branch.
31012
31013 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
31014 (Fmodify_frame_parameters): Return a value.
31015
31016 * image.c (png_load): Comment-out var only used in commented-out code.
31017
31018 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
31019 before passing it to mark_object.
31020
31021 * xfaces.c (internal_resolve_face_name): Return a value.
31022 (internal_resolve_face_name, resolve_face_name_error): Comment out.
31023
31024 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
31025 (x_icon): Comment-out var only used in commented-out code.
31026
310272007-08-29 Romain Francoise <romain@orebokech.com>
31028
31029 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
31030 QUIT hasn't been provided.
31031
310322007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
31033
31034 * callproc.c (child_setup, getenv_internal): Use the
31035 display-environment-variable and term-environment-variable frame params.
31036 (set_initial_environment): Initialise Vprocess_environment.
31037
31038 * config.in: Disable multi-keyboard support on a mac.
31039
31040 * frame.c (Qterm_environment_variable)
31041 (Qdisplay_environment_variable): New variables.
31042 (syms_of_frame): Intern and staticpro them.
31043 (Fmake_terminal_frame): Disable output method test.
31044
31045 * frame.h: Declare them here.
31046
31047 * macfns.c (x_set_mouse_color): Get rif from the frame.
31048 (x_set_tool_bar_lines): Don't use updating_frame.
31049 (mac_window): Add 2 new parameters for consistency with other systems.
31050 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
31051 frame parameters following what is done in X11 and w32. Don't use
31052 FRAME_MAC_DISPLAY_INFO.
31053 (Fx_open_connection, start_hourglass): Remove window-system check.
31054 (x_create_tip_frame): Get the keyboard from the terminal.
31055
31056 * macmenu.c: Reorder includes.
31057 (Fx_popup_menu): Use terminal specific mouse_position_hook.
31058
31059 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
31060 terminal parameter.
31061 (x_clear_frame): Add a frame parameter.
31062 (note_mouse_movement): Get rif from the frame.
31063 (mac_term_init): Initialize the terminal.
31064 (mac_initialize): Make static and move terminal initialization ...
31065 (mac_create_terminal): ... to this new function.
31066
31067 * macterm.h (struct mac_display_info): Add terminal.
31068 (mac_initialize): Delete declaration.
31069
31070 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
31071
31072 * sysdep.c: Comment out text after #endif.
31073
31074 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
31075 is defined. Better initialize ttys in windows. Use terminal
31076 specific mouse_position_hook.
31077
31078 * termhooks.h (union display_info): Add mac_display_info.
31079
31080 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
31081 Set the default minibuffer frame, window_system and the rest of the
31082 frame parameters following what is done in X11.
31083
31084 * w32term.c (w32_initialize): Make static.
31085
31086 * xselect.c (x_handle_selection_clear): Only access
31087 terminal->kboard when MULTI_KBOARD is defined.
31088
31089 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
31090 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
31091
310922007-08-29 Jason Rumney <jasonr@gnu.org>
31093
31094 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
31095 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
31096
31097 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
31098 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
31099
31100 * keyboard.c (restore_kboard_configuration): Only define when
31101 MULTI_KBOARD defined.
31102
31103 * makefile.w32-in: Update dependancies from Makefile.in.
31104 (OBJ1): Add terminal.$(O)
31105
31106 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
31107 Don't define function body.
31108 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
31109
31110 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
31111
31112 * w32.c (request_sigio, unrequest_sigio): Remove.
31113
31114 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
31115 (w32con_clear_frame, w32con_clear_end_of_line)
31116 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
31117 (w32con_delete_glyphs, w32con_set_terminal_window)
31118 (scroll_line, w32_sys_ring_bell): Add frame arg.
31119 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
31120 Add terminal arg.
31121 (PICK_FRAME): Remove.
31122 (w32con_write_glyphs): Use frame specific terminal coding.
31123 (one_and_only_w32cons): New global variable.
31124 (initialize_w32_display): Use it for storing hooks.
31125 (create_w32cons_output): New function.
31126
31127 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
31128 arg a frame.
31129
31130 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
31131 Set window_system.
31132 (x_set_tool_bar_lines): Don't use updating_frame.
31133 (Fx_create_frame): Set terminal and ref count.
31134 (Fx_open_connection): Remove window-system check.
31135
31136 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
31137
31138 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
31139 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
31140 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
31141 Add frame arg.
31142 (x_delete_terminal, w32_create_terminal): New functions.
31143 (w32_term_init): Create a terminal.
31144 (w32_initialize): Move terminal specific initialization to
31145 w32_create_terminal.
31146
31147 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
31148 (w32_clear_rect, w32_clear_area): Use background from frame.
31149 (w32_display_info): Add terminal.
31150 (w32_sys_ring_bell, x_delete_display): Declare here.
31151
31152 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
31153
31154 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
31155
311562007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
31157
31158 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
31159 Fix get_named_tty calls for the controlling tty.
31160
311612007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
31162
194d44e7 31163 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
31164
311652007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
31166
31167 * term.c (tty_insert_glyphs): Add missing first parameter.
31168
311692007-08-29 Károly Lőrentey <karoly@lorentey.hu>
31170
31171 * buffer.c (Fbuffer_list, Fbury_buffer):
31172 Take frame->buried_buffer_list into account.
31173
31174 * cm.c (current_tty): New variable, for cmputc().
31175 (cmputc): Use it.
31176 (cmcheckmagic): Add tty parameter, look up terminal streams there.
31177 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
31178 (cmgoto): Add tty parameter. Pass it on to calccost().
31179 Use emacs_tputs() instead of tputs().
31180
31181 * cm.h (emacs_tputs): New macro to set current_tty, and then call
31182 tputs().
31183 (current_tty): New variable, for cmputc().
31184 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
31185
31186 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
31187 (internal_condition_case, internal_condition_case_1)
31188 (internal_condition_case_2): Don't abort when x_catching_errors.
31189
31190 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
31191 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
31192 prevent crashes caused by bogus longjmps in read_char.
31193
31194 * keymap.h (Fset_keymap_parent): Add EXFUN.
31195
31196 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
31197 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
31198 Remove redundant definition.
31199
31200 * macfns.c (x_set_mouse_color, x_make_gc):
31201 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31202
31203 * w32term.c (x_free_frame_resources):
31204 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31205 (w32_initialize): Use the accessor macros for terminal characteristics.
31206
31207 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
31208 Use the accessor macros for terminal characteristics.
31209 * msdos.c (internal_terminal_init): Use the accessor macros for
31210 terminal characteristics.
31211 (ScreenVisualBell, internal_terminal_init):
31212 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31213
31214 * termopts.h (no_redraw_on_reenter): Declare.
31215
31216 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
31217 (mark_terminals, mark_ttys): Declare.
31218 (Fgarbage_collect): Call them.
31219 (mark_object): Mark buried_buffer_list.
31220
31221 * prefix-args.c: Include stdlib.h for exit.
31222
31223 * syssignal.h: Add comment.
31224
31225 * indent.c: Include stdio.h.
31226
31227 * window.h (Vinitial_window_system): Declare.
31228 (Vwindow_system): Delete declaration.
31229
31230 * fontset.c (Finternal_char_font): Use FRAME_RIF.
31231
31232 * image.c (lookup_image): Don't initialize `c' until the xasserts
31233 have been run.
31234
31235 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
31236 FRAME_FOREGROUND_PIXEL.
31237
31238 * print.c (print_preprocess): Don't lose print_depth levels while
31239 iterating.
31240
31241 * widget.c (update_from_various_frame_slots):
31242 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31243
31244 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
31245 frames.
31246 (window_internal_height): Remove bogus make_number call.
31247 (init_window_once): Call make_terminal_frame with two zero parameters.
31248
31249 * fileio.c (Fread_file_name): Update comment.
31250
31251 * callint.c (Fcall_interactively):
31252 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
31253 Make sure it is correctly unwound.
31254
31255 * xsmfns.c (x_session_close): New function.
31256
31257 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
31258 Delete declarations.
31259
31260 * xterm.h: Remove declaration for x_fully_uncatch_errors.
31261 (x_output): Remove background_pixel and foreground_pixel fields.
31262 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
31263 (x_delete_device, x_session_close): Declare.
31264
31265 * lread.c: Include setjmp.h. Update declaration of `read_char'.
31266 (read_filtered_event): Call `read_char' with a local
31267 `wrong_kboard_jmpbuf'.
31268
31269 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
31270 Don't call single_kboard_state. Use FRAME_RIF.
31271
31272 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
31273 systems.
31274
31275 * lisp.h (set_process_environment): Rename to `set_global_environment'.
31276 (Fframe_with_environment, Fset_input_meta_mode)
31277 (Fset_quit_char): EXFUN.
31278 (x_create_device, tty_output, terminal, tty_display_info): Declare.
31279 (init_sys_modes, reset_sys_modes): Update prototypes.
31280 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
31281
31282 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
31283 Vlocal_key_translation_map, and Vkeyboard_translate_table.
31284 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
31285 Delete declarations.
31286 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
31287 (temporarily_switch_to_single_kboard, tty_read_avail_input):
31288 New declarations.
31289
31290 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
31291 already does that during init_display(). Call syms_of_keymap
31292 before syms_of_keyboard. Call `syms_of_terminal'.
31293 Call set_initial_environment, not set_process_environment.
31294 (shut_down_emacs): Call reset_all_sys_modes() instead of
31295 reset_sys_modes().
31296
31297 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
31298 (internal_resolve_face_name, resolve_face_name_error): New functions.
31299 (resolve_face_name): Protect against loops and errors thrown by Fget.
31300 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
31301 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
31302
31303 * scroll.c: Replace CURTTY() with local variables throughout the
31304 file (where applicable).
31305 (calculate_scrolling, calculate_direct_scrolling)
31306 (scrolling_1, scroll_cost): Use the accessor macros for terminal
31307 characteristics.
31308
31309 * keymap.c (Vfunction_key_map): Remove.
31310 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
31311 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
31312 (Vkey_translation_map): Remove.
31313 (syms_of_keymap): Remove DEFVAR for key-translation-map.
31314 (Fdescribe_buffer_bindings)
31315 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
31316 Update for terminal-local key-translation-map.
31317
31318 * Makefile.in (callproc.o): Update dependencies.
31319 (lisp, shortlisp): Add termdev.elc.
31320 (obj): Add terminal.o.
31321 (terminal.o): Add dependencies.
31322 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
31323 (data.o, fns.o): Add termhooks.h dependency.
31324 (SOME_MACHINE_LISP): Add dnd.elc.
31325 (minibuf.o): Fix typo.
31326 Update dependencies.
31327
31328 * data.c (do_symval_forwarding, store_symval_forwarding)
31329 (find_symbol_value): Use the selected frame's keyboard, not
31330 current_kboard.
31331
31332 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
31333 Vwindow_system.
31334
31335 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
31336 Fmenu_bar_open.
31337 (syms_of_xmenu): Update defsubr.
31338 (mouse_position_for_popup, Fx_popup_menu)
31339 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
31340 (set_frame_menubar, free_frame_menubar)
b97439ce 31341 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
31342 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
31343 an X frame.
31344
31345 * xselect.c (x_own_selection): Abort if not an X frame.
31346 (some_frame_on_display): Check if it is an X frame.
31347 (x_handle_selection_clear): Deal with MULTI_KBOARD.
31348
31349 * coding.c: Include frame.h and termhooks.h.
31350 (terminal_coding, keyboard_coding): Delete.
31351 (Fset_terminal_coding_system_internal)
31352 (Fset_keyboard_coding_system_internal)
31353 (Fkeyboard_coding_system)
31354 (Fterminal_coding_system): Add a terminal parameter.
31355 Get terminal_coding from the terminal.
31356 (init_coding_once): Don't call setup_coding_system here.
31357
31358 * dispextern.h (set_scroll_region, turn_off_insert)
31359 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
31360 (tty_clear_end_of_line, tty_setup_colors)
31361 (delete_tty, updating_frame)
31362 (produce_special_glyphs, produce_glyphs, write_glyphs)
31363 (insert_glyphs): Remove.
31364 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
31365 (tty_turn_off_highlight, get_tty_size): Add declaration.
31366 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
31367
31368 * frame.h (enum output_method): Add output_initial.
31369 (struct x_output): Delete.
31370 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
31371 Access foreground_pixel and background_pixel directly from the frame.
31372 (tty_display): Delete.
31373 (struct frame): Add buried_buffer_list, foreground_pixel,
31374 background_pixel and terminal. Delete kboard.
31375 (union output_data): Add tty.
31376 (FRAME_KBOARD): Get the kboard from the terminal.
31377 (FRAME_INITIAL_P): New macro.
31378 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
31379 (Qterm_environment_variable, Qdisplay_environment_variable)
31380 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
31381 New declarations.
31382
31383 * termchar.h (tty_output, tty_display_info): New structures.
31384 (tty_list): Declare.
31385 (FRAME_TTY, CURTTY): New macros.
31386 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
31387 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
31388 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
31389 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
31390
31391 * callproc.c: Include frame.h and termhooks.h, for terminal
31392 parameters.
31393 (add_env): New function.
31394 (child_setup): Use it.
31395 (child_setup, getenv_internal): Handle the new Vprocess_environment.
31396 (getenv_internal): Fix get_terminal_param call.
31397 (Fgetenv_internal, egetenv): Update doc.
31398 (syms_of_callproc): Initialize Vprocess_environment to nil.
31399 Register and initialize them. Remove obsolete defvars. Update doc
31400 strings.
31401 (child_setup): Handle Vlocal_environment_variables.
31402 (getenv_internal): Add terminal parameter.
31403 Handle Vlocal_environment_variables.
31404 (Fgetenv_internal): Add terminal parameter.
31405 (child_setup, getenv_internal, Fgetenv_internal): Store the local
31406 environment in a frame (not terminal) parameter. Update doc strings.
31407 (set_initial_environment): Rename from set_global_environment.
31408 Store Emacs environment in initial frame parameter.
31409
31410 * xdisp.c (redisplay_internal): Update references to
31411 `previous_terminal_frame'.
31412 (display_mode_line, Fformat_mode_line): Replace calls to
31413 `push_frame_kboard' with `push_kboard'.
31414 (get_glyph_string_clip_rects): Add extra parentheses and
31415 braces to prevent compiler warnings.
31416 (calc_pixel_width_or_height): Add xassert to check that the
31417 frame is alive. Don't call `lookup_image' on a termcap frame.
31418 (message2_nolog, message3_nolog, redisplay_internal)
31419 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
31420 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
31421 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
31422 (Fx_display_pixel_width, Fx_display_pixel_height)
31423 (Fx_display_planes, Fx_display_color_cells)
31424 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
31425 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
31426 (Fx_display_backing_store, Fx_display_visual_class)
31427 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
31428 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
31429
31430 * xfns.c (x_set_foreground_color x_set_background_color)
31431 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
31432 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31433 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
31434 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
31435 terminal that is being deleted.
31436 (Fx_create_frame): Use `store_frame_param' to set `window-system'
31437 frame parameter, and make sure it overrides any user-supplied setting.
31438 (Fx_close_connection, Fx_synchronize): Unify argument names with
31439 the rest of the DEFUNs.
31440
31441 * dispnew.c (Fsend_string_to_terminal): Update call to
31442 `get_tty_terminal'.
31443 (Fredraw_frame, Fsend_string_to_terminal)
31444 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
31445 FRAME_TERMCAP_P and FRAME_TTY.
31446 (window_change_signal): Don't believe width/height values that are
31447 impossibly small.
31448 (Vinitial_window_system): Rename from Vwindow_system.
31449 (termscript, Wcm, rif): Delete.
31450
31451 * termhooks.h (struct terminal): New struct containing the
31452 previously global text display hooks and new members NAME,
31453 DELETED and PARAM_ALIST.
31454 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
31455 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
31456 (FRAME_RIF): New macros.
31457 (get_terminal_param, get_device): New declarations.
31458 (termscript): Delete declaration.
31459
31460 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
31461 (XTflash, x_free_frame_resources, x_scroll_bar_create)
31462 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
31463 FRAME_FOREGROUND_PIXEL.
31464 (x_fully_uncatch_errors): Disable definition.
31465 (x_scroll_bar_expose): Fix reference to foreground pixel.
31466 (XTread_socket): Disable loop on all X displays.
31467 (x_delete_terminal): Don't set terminal->deleted and let
31468 delete_terminal delete the frames on the terminal.
31469 (x_delete_display): Doc update to reflect changes in
31470 delete_terminal.
31471 (x_display_info) <terminal>: Move member earlier in the struct.
31472 (deleting_tty): Remove old variable.
31473 (Fsuspend_tty): Call clear_tty_hooks.
31474 (Fresume_tty, init_tty): Call set_tty_hooks.
31475 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
31476 errors on X frames.
31477 (x_catch_errors_unwind): Abort if x_error_message is NULL.
31478 (handle_one_xevent): Initialize `f' to NULL.
31479 (x_delete_terminal, x_create_terminal): New functions.
31480 (XTset_terminal_modes, XTreset_terminal_modes)
31481 (XTread_socket, x_connection_closed, x_term_init)
31482 (x_term_init, x_delete_display): Add terminal parameter.
31483 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
31484 X connections.
31485
31486 * frame.c: Include termchar.h.
31487 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
31488 (Qwindow_system, Qenvironment, Qterm_environment_variable)
31489 (Qdisplay_environment_variable): New vars.
31490 (Fframep): Deal with output_initial.
31491 (Fframe-live-p): Doc fix.
31492 (Fwindow-system): New function.
31493 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
31494 (make_terminal_frame): Don't create frames on a terminal that is
31495 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31496 (store_frame_param): Check for found_for_frame before calling XFRAME.
31497 (Fmake_terminal_frame): Handle NULL tty names correctly.
31498 (syms_of_frame): Enhance doc string of `default-frame-alist'.
31499 (Fdelete_frame): Remove unused variable `count'. Don't allow other
31500 frames to refer to a deleted frame in their 'environment parameter.
31501 (Fframe_with_environment): New function.
31502 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
31503 (get_future_frame_param): New function.
31504 (Fmake_terminal_frame): Use it.
31505 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
31506
31507 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
31508 * sysdep.c (reset_sys_modes): Update for renames.
31509
31510 * keyboard.c (tty_read_avail_input): New function.
31511 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
31512 (syms_of_keyboard): Defsubr them.
31513 (Fset_input_meta_mode, Fset_quit_char): New functions.
31514 (Fset_input_mode): Split to above functions.
31515 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
31516 parameter. Use it in call to `read_char'.
31517 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
31518 Set wrong_kboard_jmpbuf correctly in recursive calls.
31519 Use current_kboard to access Vkeyboard_translate_table.
31520 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
31521 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
31522 Update longjmp invocations. Remember the original current_kboard,
31523 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
31524 changes it. Comment out unnecessary calls to
31525 `record_single_kboard_state' and `any_kboard_state'.
31526 Update recursive calls.
31527 (wrong_kboard_jmpbuf): Remove global variable.
31528 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
31529 Handle deleted interrupted_kboards correctly; that is a legal
31530 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
31531 and read_char calls. Abort if interrupted_kboard died in read_char.
31532 (any_kboard_state, single_kboard_state)
31533 (push_frame_kboard): Remove function.
31534 (pop_kboard): Switch out of single_kboard mode if the kboard has
31535 been deleted. Remove unused variable. Help debugging by not
31536 changing current_kboard unnecessarily. Set current_kboard to the
31537 kboard of the selected frame when the stored kboard object has
31538 been deleted before pop_kboard.
31539 (temporarily_switch_to_single_kboard): Change first parameter to a
31540 frame pointer. Throw an error when caller wants to change kboards
31541 while in single_kboard mode. Don't push_kboard if we weren't in
31542 single kboard state. Don't pop_kboard if we popped into any
31543 kboard state.
31544 (restore_kboard_configuration): Abort if pop_kboard changed the
31545 kboard in single_kboard mode. Call pop_kboard only after setting
31546 up single_kboard mode.
31547 (Frecursive_edit): Switch to single_kboard mode only in nested
31548 command loops.
31549 (cmd_error, command_loop, command_loop_1, timer_check):
31550 Comment out unnecessary call to `any_kboard_state' and
31551 `record_single_kboard_state'.
31552 (delete_kboard): Exit single_kboard mode if we have just deleted
31553 that kboard. Use FRAME_KBOARD.
31554 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
31555 `fatal_error_signal'.
31556 (record_single_kboard_state): Don't push_kboard if we weren't in
31557 single kboard state. Don't pop_kboard if we popped into any
31558 kboard state.
31559 (push_frame_kboard): Rename to push_kboard.
31560 (kbd_buffer_get_event): Use FRAME_TERMINAL.
31561 (read_avail_input): Read input from all terminals.
31562 (mark_kboards): Also mark Vkeyboard_translate_table.
31563 (kbd_buffer_store_event_hold): Simplify condition.
31564 (read_key_sequence): Reinitialize fkey and keytran at each replay.
31565 (Vkeyboard_translate_table): Move to struct kboard.
31566 (init_kboard): Initialize Vkeyboard_translate_table.
31567 (syms_of_keyboard): Use DEFVAR_KBOARD to define
31568 Vkeyboard_translate_table. Update doc strings. Update docs of
31569 local-function-key-map and function-key-map.
31570
31571 * terminal.c: New file.
31572
31573 * term.c: Include errno.h.
31574 (Vring_bell_function, device_list, initial_device)
31575 (next_device_id, ring_bell, update_begin, update_end)
31576 (set_terminal_window, cursor_to, raw_cursor_to)
31577 (clear_to_end, clear_frame, clear_end_of_line)
31578 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
31579 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
31580 (syms_of_term): Move their initialization to terminal.c.
31581 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
31582 (Ftty_display_color_cells)
31583 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
31584 (clear_tty_hooks, set_tty_hooks)
31585 (init_tty, maybe_fatal): New functions.
31586 (Ftty_type): Return nil if terminal is not on a tty instead of
31587 throwing an error. Doc update.
31588 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
31589 Doc update. Initialize new subrs and variables.
31590 (delete_tty): Use terminal->deleted.
31591 (tty_set_terminal_modes): Rename from set_terminal_modes.
31592 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
31593 (set_scroll_region): Rename to `tty_set_scroll_region'.
31594 (turn_on_insert): Rename to `tty_turn_on_insert'.
31595 (turn_off_insert): Rename to `tty_turn_off_insert'.
31596 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
31597 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
31598 (toggle_highligh): Rename to `tty_toggle_highlight'.
31599 (background_highlight): Rename to `tty_background_highlight'.
31600 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
31601 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
31602 (tty_set_scroll_region, tty_background_highlight)
31603 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
31604 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
31605 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
31606 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
31607 Add static modifier.
31608 (tty_reset_terminal_modes, tty_set_terminal_window)
31609 (tty_set_scroll_region, tty_background_highlight)
31610 (tty_highlight_if_desired, tty_cursor_to)
31611 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
31612 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
31613 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
31614 renames.
31615
316162007-08-28 Jan Djärv <jan.h.d@swipnet.se>
31617
31618 * keyboard.c: Qrtl is new.
31619 (parse_tool_bar_item): Handle :rtl keyword.
31620 (syms_of_keyboard): Intern :rtl keyword.
31621
31622 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
31623
31624 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
31625 so no Lisp code is executed.
31626 (file_for_image, find_rtl_image): New functions.
31627 (xg_get_image_for_pixmap): Use file_for_image.
31628 (update_frame_tool_bar): If direction is RTL, use RTL image if
31629 defined. Use Gtk stock images if defined.
31630
316312007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31632
31633 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
31634 for nonexistent or zero-width glyph in composition glyph.
31635
316362007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
31637
31638 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
31639
31640 * xdisp.c (Finvisible_p): New function.
31641 (syms_of_xdisp): defsubr it.
31642
316432007-08-24 Juanma Barranquero <lekktu@gmail.com>
31644
31645 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
31646 Doc fixes.
31647
316482007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31649
31650 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
31651
316522007-08-24 Martin Rudalics <rudalics@gmx.at>
31653
31654 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
31655 whether decoding has modified buffer contents.
31656
316572007-08-24 Jason Rumney <jasonr@gnu.org>
31658
31659 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
31660 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
31661 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
31662 (init_svg_functions) [HAVE_NTGUI]: New function.
31663 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
31664 (svg_load_image): Use them.
31665 (svg_load_image) [HAVE_NTGUI]: Implement background.
31666
316672007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31668
31669 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
31670 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
31671 (LIBX): Remove @RSVG_LIBS@.
31672 (LIBES): Add $(RSVG_LIBS).
31673
31674 * image.c (svg_load_image): Blend with specified background if exists.
31675 Use IMAGE_BACKGROUND. Add Mac OS Support.
31676
31677 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
31678 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
31679 Remove macros.
31680 [MAC_OSX] (socket_callback): Do nothing.
31681 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
31682 ReceiveNextEvent.
31683 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
31684 socket_callback.
31685 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
31686
316872007-08-22 Glenn Morris <rgm@gnu.org>
31688
31689 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
31690
316912007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
31692
31693 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
31694
31695 * image.c: Add support for SVG images. Some additional comments
31696 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
31697 (svg_image_p): New function to test for SVG image.
31698 (svg_load): New function to load SVG image.
31699 (svg_load_image): New function, helper for svg_load.
31700 (Qsvg): New Lisp_object.
31701 (svg_keyword_index): New enum.
31702 (svg_format): New static `image_keyword' struct.
31703 (svg_type): New static `image_type' struct.
31704 (librsvg/rsvg.h): Include it.
31705
317062007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
31707
31708 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
31709
317102007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
31711
31712 * lread.c (Qold_style_backquotes): New var.
31713 (syms_of_lread): Init and staticpro it.
31714 (load_warn_old_style_backquotes): New fun.
31715 (Fload): Use them to warn about old style backquotes.
31716 (end_of_file_error, Fload): Remove unused vars.
31717
31718 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
31719
31720 * lread.c (Vold_style_backquotes): New var.
31721 (syms_of_lread): Init and export it to Elisp.
31722 (read1): Set it when we find an old-style (back)quote.
31723
317242007-08-22 Jason Rumney <jasonr@gnu.org>
31725
31726 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
31727
317282007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
31729
31730 * puresize.h (BASE_PURESIZE): Increase to 1140000.
31731
317322007-08-19 Richard Stallman <rms@gnu.org>
31733
31734 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
31735
317362007-08-19 Andreas Schwab <schwab@suse.de>
31737
31738 * alloc.c (pure): Round PURESIZE up.
31739
317402007-08-17 Jan Djärv <jan.h.d@swipnet.se>
31741
31742 * xterm.c (handle_one_xevent): Remove check that mouse click is in
31743 active frame.
31744
317452007-08-16 Richard Stallman <rms@gnu.org>
31746
31747 * eval.c (Fcommandp): Add parens to clarify.
31748
31749 * minibuf.c (Fall_completions): Use enum for type of table.
31750
31751 * emacs.c (USAGE2): Improve text.
31752
317532007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
31754
31755 * term.c (tty_default_color_capabilities): Declare static
31756 variables in file scope, to avoid HPUX compiler problem.
31757
317582007-08-13 Jan Djärv <jan.h.d@swipnet.se>
31759
31760 * gtkutil.c (update_frame_tool_bar): Use -1 as index
31761 to gtk_toolbar_insert.
31762
317632007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
31764
31765 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
31766
31767 * insdel.c (reset_var_on_error): New fun.
31768 (signal_before_change, signal_after_change):
31769 Use it to reset (after|before)-change-functions to nil in case of error.
31770 Bind inhibit-modification-hooks to t.
31771 Don't bind (after|before)-change-functions to nil while they run.
31772
317732007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31774
31775 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
31776 filling pixmap with stippled background.
31777
317782007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31779
31780 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
31781 Don't use invisible frame as parent window for repositioning.
31782
317832007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
31784
31785 * print.c (new_backquote_output): Rename from old_backquote_output.
31786 (print): Inverse its logic (according to its name) so as to match the
31787 behavior of new_backquote_flag in lread.c.
31788
317892007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31790
31791 * gmalloc.c (posix_memalign): New function.
31792
31793 * macterm.c (frame_highlight, frame_unhighlight): Don't call
31794 ActivateControl/DeactivateControl here.
31795 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
31796 frame-notice-user-settings is non-nil.
31797 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
31798 for kEventParamFMFontStyle.
31799 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
31800 mac_pass_command_to_system and mac_pass_control_to_system here.
31801 (XTread_socket): Call ActivateControl/DeactivateControl here.
31802 (XTread_socket) [TARGET_API_MAC_CARBON]:
31803 Check mac_pass_command_to_system and mac_pass_control_to_system here.
31804 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31805 for window repositioning.
31806
318072007-08-08 Glenn Morris <rgm@gnu.org>
31808
31809 * Replace `iff' in doc-strings and comments.
31810
318112007-08-07 Chong Yidong <cyd@stupidchicken.com>
31812
31813 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31814
318152007-08-07 Martin Rudalics <rudalics@gmx.at>
31816
31817 * fileio.c (Finsert_file_contents): Run format-decode and
31818 after_insert_file_functions on entire buffer when REPLACE is
31819 non-nil and inhibit modification_hooks and point_motion_hooks.
31820 For consistency, run after_insert_file_functions iff something
31821 got inserted. Move signal_after_change and update_compositions
31822 after code running after_insert_file_functions. Make sure that
31823 undo_list doesn't record intermediate steps of the decoding process.
31824
318252007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31826
31827 * emacs.c (main)
31828 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31829 Call malloc_enable_thread on interactive startup.
31830
31831 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31832 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31833 [USE_PTHREAD]: Conditionalize with it.
31834 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31835 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31836 New functions.
31837
318382007-08-06 Chong Yidong <cyd@stupidchicken.com>
31839
31840 * xdisp.c (redisplay_window): When restoring original buffer
31841 position, make sure it is still valid.
31842
31843 * image.c (png_load): Ignore png-supplied background color.
31844
318452007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31846
31847 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31848 Use kCFAbsoluteTimeIntervalSince1970.
31849
31850 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31851 New variable.
31852 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31853 event loop should be quit.
31854 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31855 Quit dialog event loop if quit_dialog_event_loop is set.
31856
31857 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31858 (Selection): New typedef. Use instead of ScrapRef.
31859 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31860 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31861 (mac_clear_selection): Rename from clear_scrap.
31862 (get_flavor_type_from_symbol): New argument SEL and subsume function of
31863 scrap_has_target_type. All uses changed.
31864 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31865 (mac_selection_has_target_p): New functions.
31866 (mac_put_selection_value): Rename from put_scrap_string.
31867 (mac_get_selection_value): Rename from get_scrap_string.
31868 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31869 (put_scrap_private_timestamp, scrap_has_target_type)
31870 (get_scrap_private_timestamp): Remove functions.
31871 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31872 (x_own_selection, x_get_local_selection):
31873 Use mac_valid_selection_value_p.
31874 (x_own_selection): Don't use put_scrap_private_timestamp.
31875 Record OWNERSHIP-INFO into Vselection_alist instead.
31876 (x_get_local_selection): Don't check type if request is local.
31877 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31878 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31879
318802007-08-04 Jan Djärv <jan.h.d@swipnet.se>
31881
31882 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31883 add comment explaining why.
31884
318852007-08-03 Richard Stallman <rms@gnu.org>
31886
31887 * fileio.c (Fvisited_file_modtime): Use make_time.
31888
318892007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
31890
31891 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31892 build.
31893
318942007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
31895
31896 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31897
318982007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
31899
31900 * puresize.h (BASE_PURESIZE): Increase to 1130000.
31901
319022007-07-30 Richard Stallman <rms@gnu.org>
31903
31904 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31905
319062007-07-29 Jan Djärv <jan.h.d@swipnet.se>
31907
31908 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
31909
319102007-07-28 Nick Roberts <nickrob@snap.net.nz>
31911
31912 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
31913 remote default-directory.
31914
31915 * buffer.c (mode-line-format): Update doc string.
31916
319172007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31918
31919 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
31920 scroll bar gap.
31921 (x_scroll_bar_create): Set bar->fringe_extended_p.
31922 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
31923 on frame edge. Check fringe background extension. Don't clear
31924 extended fringe background area.
31925
31926 * w32term.h (struct scroll_bar): New member fringe_extended_p.
31927 (w32_fill_area): Enclose multiple statements with do ... while (0).
31928
31929 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31930 Extend fringe background to scroll bar gap.
31931 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31932 Set bar->fringe_extended_p.
31933 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31934 Put leftmost/rightmost scroll bars on frame edge. Check fringe
31935 background extension. Don't clear extended fringe background area.
31936
31937 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31938 New member fringe_extended_p.
31939
319402007-07-25 Glenn Morris <rgm@gnu.org>
31941
31942 * Relicense all FSF files to GPLv3 or later.
31943
31944 * COPYING: Switch to GPLv3.
31945
319462007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
31947
31948 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
31949
31950 * data.c (Finteractive_form): Check for the presence of an
31951 `interactive-form' symbol property more thoroughly.
31952
31953 * data.c (Finteractive_form): Use an `interactive-form' property if
31954 present, analogous to the function-documentation property.
31955
319562007-07-24 Jason Rumney <jasonr@gnu.org>
31957
31958 * w32fns.c (x_real_positions): Get real position from OS instead of
31959 calculating it.
31960
319612007-07-23 Jason Rumney <jasonr@gnu.org>
31962
31963 * filelock.c (current_lock_owner): Allow for @ sign in username.
31964
319652007-07-22 Nick Roberts <nickrob@snap.net.nz>
31966
31967 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
31968 remote default-directory.
31969
31970 * buffer.c (mode-line-format): Describe above case in doc string.
31971
319722007-07-20 Eli Zaretskii <eliz@gnu.org>
31973
31974 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
31975 Define if not defined.
31976
319772007-07-18 Jason Rumney <jasonr@gnu.org>
31978
31979 * w32proc.c (w32_executable_type): Handle 64 bit executables.
31980
319812007-07-18 Richard Stallman <rms@gnu.org>
31982
31983 * data.c (Fsetq_default): Doc fix.
31984
31985 * eval.c (Fsetq): Doc fix.
31986
319872007-07-18 Juanma Barranquero <lekktu@gmail.com>
31988
31989 * coding.c (Ffind_operation_coding_system):
31990 * eval.c (For, Fand): Doc fixes.
31991 Reported by Johan Bockgård.
31992
319932007-07-18 Jan Djärv <jan.h.d@swipnet.se>
31994
31995 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
31996
31997 * xterm.h: Declare x_ewmh_activate_frame.
31998
31999 * xterm.c (x_ewmh_activate_frame): New function.
32000 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
32001
320022007-07-17 Martin Rudalics <rudalics@gmx.at>
32003
32004 * window.c (Fdisplay_buffer): If largest or LRU window is the
32005 only window, split it even if it is not eligible for splitting.
32006 This restores the original behavior broken by the 2007-07-15
32007 change.
32008
320092007-07-17 Glenn Morris <rgm@gnu.org>
32010
32011 * abbrev.c (abbrev_check_chars): New function.
32012 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
32013 Call abbrev_check_chars to check abbrev characters are word
32014 constituents. Doc fix.
32015
320162007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
32017
32018 * process.c (Fstart_process, Fmake_network_process)
32019 (read_process_output): Fix up last changes.
32020
320212007-07-16 Eli Zaretskii <eliz@gnu.org>
32022
32023 * makefile.w32-in (clean): Don't delete *~.
32024
320252007-07-16 Andreas Schwab <schwab@suse.de>
32026
32027 * window.c (Fdisplay_buffer): Use NILP.
32028 (Fset_window_scroll_bars): Likewise.
32029
320302007-07-15 Martin Rudalics <rudalics@gmx.at>
32031
32032 * window.c (window_min_size_2): New function.
32033 (window_min_size_1, size_window, Fdisplay_buffer)
32034 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
32035 windows without mode- or header-lines when window-min-height is
32036 too small.
32037 (size_window): Reset nodelete_p after testing it, following an
32038 earlier note by Kim F. Storm.
32039 (display_buffer): Do not set split_height_threshold to twice the
32040 value of window_min_height to avoid changing the value of a
32041 customizable variable. Rather explicitly check whether the
32042 height of the window that shall be splitted is at least as large
32043 as split_height_threshold.
32044 (Fwindow_full_width_p): New defun.
32045 (syms_of_window): Defsubr it.
32046
32047 * window.h: Add EXFUN for Fwindow_full_width_p.
32048
320492007-07-14 Jason Rumney <jasonr@gnu.org>
32050
32051 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
32052
320532007-07-14 Richard Stallman <rms@gnu.org>
32054
32055 * eval.c (maybe_call_debugger): New function.
32056 (find_handler_clause): Use maybe_call_debugger.
32057 Call it when the handler says `debug'.
32058 Eliminate DEBUGGER_VALUE_PTR.
32059 (Fsignal): Eliminate debugger_value.
32060 (Qdebug): New variable.
32061 (syms_of_eval): Initialize it.
32062
320632007-07-14 Juanma Barranquero <lekktu@gmail.com>
32064
32065 * eval.c (Fprogn):
32066 * keyboard.c (Ftrack_mouse):
32067 * print.c (Fwith_output_to_temp_buffer):
32068 * window.c (Fsave_window_excursion): Doc fix.
32069
320702007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
32071
32072 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
32073
320742007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
32075
32076 * process.h (struct Lisp_Process): Turn slots infd, outfd,
32077 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
32078 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
32079 read_output_delay, and read_output_skip from Lisp_Objects to ints.
32080 Remove unused encoding_carryover.
32081 * process.c: Adjust all functions accordingly.
32082
320832007-07-12 Richard Stallman <rms@gnu.org>
32084
32085 * term.c: Include unistd.h only if HAVE_UNISTD_H.
32086
320872007-07-11 Jason Rumney <jasonr@gnu.org>
32088
32089 * makefile.w32-in (LIBS): Include OLE32.
32090
32091 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
32092 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
32093
320942007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
32095
32096 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
32097 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
32098 from a Lisp_Object into a bare pointer.
32099 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
32100 Adjust the code correspondingly.
32101
32102 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
32103
32104 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
32105 (term_show_mouse_face): Remove unused var `j'.
32106 (handle_one_term_event): Remove unused vars `i' and `j'.
32107 Don't cast return value of ttyname since it's not necessary.
32108
321092007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
32110
32111 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
32112 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
32113
32114 * fns.c (map_char_table): Use an array of int for `indices' rather than
32115 an array of Lisp_Objects (which are only ever integers anyway).
32116 (Fmap_char_table): Update caller.
32117 * lisp.h: Update prototype.
32118 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
32119 * fontset.c (Ffontset_info):
32120 * casetab.c (set_case_table): Update callers.
32121
32122 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
32123
32124 * keymap.c (struct accessible_keymaps_data)
32125 (struct where_is_internal_data): New structures.
32126 (accessible_keymaps_1, where_is_internal_1): Use them to change
32127 interface to adhere to the one used by map_keymap.
32128 (Faccessible_keymaps, where_is_internal): Use map_keymap.
32129 (accessible_keymaps_char_table, where_is_internal_2): Remove.
32130
32131 * keymap.h (map_keymap_function_t): More informative prototype.
32132
321332007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
32134
32135 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
32136 (looking_at_1): Don't change search_regs and last_thing_searched
32137 if `inhibit-changing-match-data' is non-nil.
32138 (string_match_1, search_buffer, set_search_regs): Likewise.
32139 (syms_of_search): Add Lisp level definition for
32140 `inhibit-changing-match-data' and set it to nil.
32141 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
32142 start and end of the match, instead of using values in search_regs.
32143
321442007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
32145
32146 * minibuf.c (Fcompleting_read): New value `confirm-only'
32147 for `require-match'.
32148
321492007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
32150
32151 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
32152 part of the 2007-06-27 change to syms_of_fileio.
32153
321542007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32155
32156 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
32157 Check WINDOWP before using XWINDOW. Consolidate return statements.
32158
321592007-06-27 Richard Stallman <rms@gnu.org>
32160
32161 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
32162
321632007-06-27 Juanma Barranquero <lekktu@gmail.com>
32164
32165 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
32166
321672007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32168
32169 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
32170 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
32171 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
32172 (_free_internal, memalign): Use them.
32173 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
32174 Initialize to PTHREAD_MUTEX_INITIALIZER.
32175 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
32176 (morecore_nolock): Rename from morecore. All uses changed.
32177 Use only nolock versions of internal allocation functions.
32178 (_malloc_internal_nolock, _realloc_internal_nolock)
32179 (_free_internal_nolock): New functions created from
32180 _malloc_internal, _realloc_internal, and _free_internal.
32181 (_malloc_internal, _realloc_internal, _free_internal): Use them.
32182 Copy hook value to automatic variable before its use.
32183 (memalign): Copy hook value to automatic variable before its use.
32184
321852007-06-26 Kenichi Handa <handa@m17n.org>
32186
32187 * coding.c (Ffind_operation_coding_system): Docstring improved.
32188 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
32189
321902007-06-25 David Kastrup <dak@gnu.org>
32191
32192 * keymap.c (Fcurrent_active_maps): Add `position' argument.
32193 (Fwhere_is_internal): Adjust call to `current-active-maps' to
32194 cater for additional parameter.
32195
32196 * keymap.h: Adjust number of parameters to `current-active-maps'.
32197
32198 * doc.c (Fsubstitute_command_keys): Adjust call of
32199 `current-active-maps'.
32200
322012007-06-25 David Kastrup <dak@gnu.org>
32202
32203 * callint.c (Fcall_interactively): Make the parsing of interactive
32204 specs somewhat more readable.
32205
322062007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32207
32208 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
32209 to scroll bar gap also when bitmap fills fringe. Draw only foreground
32210 if extended background has already been filled.
32211
322122007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32213
32214 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
32215 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
32216
32217 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
32218 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
32219 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
32220 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
32221 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
32222 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
32223 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
32224 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
32225 Run timers during dialog popup.
32226 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
32227
322282007-06-21 Jason Rumney <jasonr@gnu.org>
32229
32230 * image.c (convert_mono_to_color_image): Swap fore and background.
32231
322322007-06-20 Jason Rumney <jasonr@gnu.org>
32233
32234 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
32235 (w32_free_bdf_font): Unmap memory not handle.
32236
322372007-06-20 Sam Steingold <sds@gnu.org>
32238
32239 * gmalloc.c (__morecore): Fix the declaration to comply with the
32240 definition.
32241
322422007-06-20 Juanma Barranquero <lekktu@gmail.com>
32243
32244 * w32term.c (w32_delete_display): Remove leftover declaration.
32245 (w32_define_cursor, w32_initialize): Make static.
32246
32247 * w32.c (_wsa_errlist): Fix typo in error message.
32248 (init_environment): Ignore any environment variable from the
32249 registry having a null value.
32250
322512007-06-20 Glenn Morris <rgm@gnu.org>
32252
32253 * Makefile.in (LIBGIF): Default to -lgif.
32254
322552007-06-17 Jason Rumney <jasonr@gnu.org>
32256
32257 * w32menu.c (add_menu_item): Don't use multibyte string functions on
32258 unicode strings.
32259
322602007-06-16 Juanma Barranquero <lekktu@gmail.com>
32261
32262 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
32263 Fix typo in docstring.
32264
322652007-06-16 Eli Zaretskii <eliz@gnu.org>
32266
32267 * w32menu.c (add_menu_item): Escape `&' characters in menu items
32268 and their keybindings.
32269
322702007-06-15 Chong Yidong <cyd@stupidchicken.com>
32271
32272 * composite.c (update_compositions): Fix last fix.
32273
322742007-06-14 Jason Rumney <jasonr@gnu.org>
32275
32276 * w32.c (get_process_times_fn): New function pointer.
32277 (globals_of_w32): Intialize it if present in kernel32.dll.
32278 (w32_get_internal_run_time): New function.
32279
32280 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
32281
322822007-06-14 Kenichi Handa <handa@etlken.m17n.org>
32283
32284 * composite.c (update_compositions): Check the validness of
32285 compositions.
32286
322872007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32288
32289 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
32290 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
32291
32292 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
32293 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
32294
32295 * macgui.h (USE_MAC_TOOLBAR): New define.
32296
32297 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32298 Return immediately unless popup is activated.
32299
32300 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
32301 background to scroll bar gap.
32302 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
32303 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
32304 scroll bars on frame edge. Check fringe background extension.
32305 Don't clear extended fringe background area.
32306 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
32307 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
32308 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
32309 [USE_MAC_TOOLBAR]: New macros.
32310 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
32311 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
32312 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
32313 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
32314 [USE_MAC_TOOLBAR]: New functions.
32315 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
32316 manually if previous repositioning has failed.
32317 (mac_handle_keyboard_event): Use precomputed event kind.
32318 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
32319 as tool bar item click. Handle mouse movement over tool bar items.
32320
32321 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
32322 toolbar_win_gravity.
32323 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
32324 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
32325 Add externs.
32326
32327 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
32328 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
32329
323302007-06-14 Chong Yidong <cyd@stupidchicken.com>
32331
32332 * image.c (search_image_cache): Remove unused variable.
32333
323342007-06-13 Chong Yidong <cyd@stupidchicken.com>
32335
32336 * xfns.c, xmenu.c: Link to xaw3d if available.
32337
323382007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32339
32340 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
32341 frame_foreground and frame_background.
32342
32343 * image.c (lookup_image): Save frame foreground and background colors.
32344 (search_image_cache): Check if saved and current frame colors match.
32345
323462007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
32347
32348 * regex.c (regex_compile): Remove the `regnum' counter.
32349 Use bufp->re_nsub instead. Add support for \(?N:RE\).
32350
323512007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
32352
32353 * term.c: Include intervals.h to declare Fget_text_property.
32354
323552007-06-10 Jason Rumney <jasonr@gnu.org>
32356
32357 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
32358
323592007-06-08 Juanma Barranquero <lekktu@gmail.com>
32360
32361 * callint.c (Fcall_interactively):
32362 * editfns.c (Fdelete_and_extract_region):
32363 * fileio.c (Fread_file_name):
32364 * fns.c (Fmapconcat):
32365 * keyboard.c (cmd_error_internal):
32366 * keymap.c (Fkey_description):
32367 * lread.c (openp):
32368 * minibuf.c (read_minibuf):
32369 * search.c (wordify):
32370 * sunfns.c (sel_read):
32371 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
32372 * xfns.c (x_default_scroll_bar_color_parameter):
32373 * xmenu.c (menu_help_callback):
32374 * xselect.c (Fx_get_atom_name):
32375 * xterm.c (x_term_init): Use empty_unibyte_string.
32376
323772007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
32378
32379 * alloc.c (init_strings): Initialize canonical empty strings.
32380 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
32381 canonical empty string when the requested size is 0.
32382
32383 * emacs.c (empty_unibyte_string): Rename from empty_string.
32384 (empty_multibyte_string): New canonical empty string.
32385 (syms_of_emacs): Don't initialize empty_string.
32386
32387 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
32388 string, if appropriate.
32389 (empty_unibyte_string, empty_multibyte_string): New externs.
32390 (empty_string): Remove extern.
32391
32392 * lread.c (syms_of_lread): Use empty_unibyte_string.
32393
323942007-06-07 Jason Rumney <jasonr@gnu.org>
32395
32396 * s/ms-w32.h: Don't define HAVE_TZNAME.
32397
32398 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
32399
324002007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32401
32402 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
32403
32404 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
32405 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
32406
32407 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32408 Don't call next handler.
32409 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
32410 Remove argument. Install handler to application.
32411 (set_frame_menubar): Don't change deep_p.
32412 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
32413 FRAME_OUTER_TO_INNER_DIFF_Y.
32414 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
32415 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
32416 [HAVE_DIALOGS]: New macros.
32417 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
32418 Use them.
32419 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
32420
32421 * macselect.c [MAC_OSX] (install_service_handler): Rename from
32422 init_service_handler. All callers changed. Return OSStatus value.
32423
32424 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
32425 All callers changed so as not to call SetPortWindowPort.
32426 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
32427 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
32428 mac_draw_string_common.
32429 (mac_draw_image_string_qd): Likewise.
32430 (mac_draw_string_common): Use them. Add INLINE.
32431 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
32432 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
32433 GetGlobalMouse.
32434 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
32435 and FRAME_OUTER_TO_INNER_DIFF_Y.
32436 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
32437 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
32438 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
32439 repositioning window to mac_handle_window_event.
32440 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
32441 saving window location to mac_handle_window_event
32442 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
32443 (install_menu_target_item_handler): Remove argument in extern.
32444 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
32445 Also accept command events.
32446 (do_keystroke): New function created from XTread_socket.
32447 (init_command_handler): Remove functions.
32448 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
32449 and save window location by kEventWindowShowing and kEventWindowHiding
32450 handlers here. Don't call next handler for window state change and
32451 focus events.
32452 (mac_handle_application_event, mac_handle_keyboard_event)
32453 [TARGET_API_MAC_CARBON]: New functions.
32454 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
32455 kEventWindowShowing and kEventWindowHiding events. Move installation
32456 of mouse, font, text input and menu target item handlers to
32457 install_application_handler.
32458 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
32459 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32460 New function.
32461 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32462 Register it.
32463 (XTread_socket) [TARGET_API_MAC_CARBON]:
32464 Consolidate SendEventToEventTarget calls.
32465 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
32466 Move application activation handler to mac_handle_application_event.
32467 Move keyboard handler to mac_handle_keyboard_event.
32468 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
32469 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
32470 init_command_handler. Call install_application_handler.
32471
32472 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
32473 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
32474
324752007-06-07 Glenn Morris <rgm@gnu.org>
32476
32477 * emacs.c (main): Use `emacs-copyright' in --version output.
32478
324792007-06-06 Chong Yidong <cyd@stupidchicken.com>
32480
32481 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
32482
324832007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32484
32485 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
32486
32487 * macgui.h: Replace WindowPtr with WindowRef.
32488
32489 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32490 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32491 Replace ControlHandle with ControlRef.
32492 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
32493
32494 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32495 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32496 Replace ControlHandle with ControlRef.
32497 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
32498 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
32499
32500 * macterm.h (struct scroll_bar): Rename member control_handle_low
32501 and control_handle_high to control_ref_low and control_ref_high.
32502 All uses changed.
32503 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
32504 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
32505 respectively. All uses changed.
32506 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
32507 (install_window_handler, remove_window_handler): Replace WindowPtr
32508 with WindowRef in externs.
32509
325102007-06-05 Juanma Barranquero <lekktu@gmail.com>
32511
32512 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
32513
325142007-06-03 Nick Roberts <nickrob@snap.net.nz>
32515
32516 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
32517
32518 * frame.c (Fmouse_position, Fmouse_pixel_position):
32519 Condition on HAVE_GPM too.
32520
32521 * term.c (term_mouse_highlight): Remove unused variables.
32522 (Fterm_open_connection): Set gpm_zerobased to 1.
32523 (term_mouse_movement, term_mouse_click, handle_one_term_event):
32524 Use zero based co-ordinates.
32525 (handle_one_term_event): Report a drag as mouse movement too.
32526
32527 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
32528
325292007-06-03 Chong Yidong <cyd@stupidchicken.com>
32530
32531 * image.c (search_image_cache): New function. Require background
32532 color match if background color is unspecified in the image spec.
32533 (uncache_image, lookup_image): Use it.
32534
325352007-06-01 Juanma Barranquero <lekktu@gmail.com>
32536
32537 * window.c (Fshrink_window): Reflow docstring.
32538
325392007-06-02 Chong Yidong <cyd@stupidchicken.com>
32540
32541 * Version 22.1 released.
32542
325432007-06-01 Richard Stallman <rms@gnu.org>
32544
32545 * xfns.c (x_encode_text): Add GCPRO.
32546
325472007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32548
32549 * xfns.c (x_set_name_internal): Save encoded name before
32550 x_encode_text in case string data is relocated.
32551
325522007-05-31 Richard Stallman <rms@gnu.org>
32553
32554 * buffer.c (syms_of_buffer): Doc fix.
32555
325562007-05-30 Nick Roberts <nickrob@snap.net.nz>
32557
32558 * sysdep.c (init_sys_modes): Add rather than replace with
32559 O_NONBLOCK.
32560
32561 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
32562 term_mouse_moveto.
32563
32564 * termhooks.h (term_mouse_moveto): New extern.
32565
32566 * term.c (mouse_face_window): Rename...
32567 (Qmouse_face_window): ...to this.
32568 (term_show_mouse_face, term_clear_mouse_face)
32569 (term_mouse_highlight): Use Qmouse_face_window.
32570 (term_mouse_moveto): New function.
32571 (term_mouse_position): Make it work.
32572 (syms_of_term): Uncomment assignment to mouse_position_hook.
32573 Staticpro Qmouse_face_window.
32574
325752007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32576
32577 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
32578 around current_column call.
32579
325802007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
32581
32582 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
32583 * xdisp.c (next_element_from_buffer):
32584 * window.c (delete_window):
32585 * term.c (term_mouse_highlight):
32586 * msdos.c (getdefdir):
32587 * macterm.c (mac_create_bitmap_from_bitmap_data)
32588 (init_font_name_table):
32589 * fns.c (Fsxhash):
32590 * data.c (Fmake_local_variable):
32591 * ccl.c (ccl_driver): Likewise.
32592
325932007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32594
32595 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
32596 Call mac_wakeup_from_rne on window size change.
32597
325982007-05-25 Chong Yidong <cyd@stupidchicken.com>
32599
32600 * image.c (uncache_image): Fix typo.
32601
326022007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
32603
32604 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
32605
326062007-05-22 Richard Stallman <rms@gnu.org>
32607
32608 * xterm.c (x_connection_closed): Remove NO_RETURN.
32609
326102007-05-22 Martin Rudalics <rudalics@gmx.at>
32611
32612 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
32613
326142007-05-21 Chong Yidong <cyd@stupidchicken.com>
32615
32616 * image.c (uncache_image): New function.
32617 (Fimage_refresh): New function.
32618
326192007-05-20 Jan Djärv <jan.h.d@swipnet.se>
32620
32621 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
32622
326232007-05-20 Nick Roberts <nickrob@snap.net.nz>
32624
32625 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
32626 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
32627
326282007-05-20 Nick Roberts <nickrob@snap.net.nz>
32629
32630 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
32631 conditional on [HAVE_GPM_H].
32632
326332007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
32634
32635 * syntax.c (skip_chars): Update syntax-table only after we checked that
32636 the new location is valid.
32637
326382007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32639
32640 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
32641 mac_get_window_bounds.
32642
326432007-05-20 Nick Roberts <nickrob@snap.net.nz>
32644
32645 * Makefile.in (LIBGPM): Allow it to be set from configure.
32646 If set then link Emacs with it.
32647
32648 * config.in: Regenerate.
32649
32650 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
32651 New externs.
32652
32653 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
32654 Include gpm.h.
32655 (handle_one_term_event, term_gpm): New externs.
32656
32657 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
32658 and allow it to be interrupted by SIGIO.
32659
32660 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
32661 (wait_reading_process_output): Wait on gpm_fd too.
32662 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
32663 (add_gpm_wait_descriptor_called_flag): New variable.
32664 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
32665
32666 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
32667 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
32668 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
32669 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
32670 (make_lispy_event): Add case GPM_CLICK_EVENT.
32671 (read_avail_input): Handle mouse input.
32672
32673 * term.c (write_glyphs_with_face): New function.
32674 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
32675 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
32676 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
32677 (mouse_face_face_id, term_gpm, pos_x, pos_y)
32678 (last_mouse_x, last_mouse_y): New variables.
32679 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
32680 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
32681 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
32682 (Fterm_close_connection): New functions.
32683 (term_init): Initialise mouse_face_window.
32684
326852007-05-19 Chong Yidong <cyd@stupidchicken.com>
32686
32687 * xdisp.c (redisplay_window): If first window line is a
32688 continuation line, recompute the new window start instead of
32689 recentering.
32690
326912007-05-18 Glenn Morris <rgm@gnu.org>
32692
32693 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
32694 Suggested by Alfred M. Szmidt <ams@gnu.org>.
32695
326962007-05-17 Glenn Morris <rgm@gnu.org>
32697
32698 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
32699
327002007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32701
32702 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
32703 dead key repeat and up events.
32704
327052007-05-14 Chong Yidong <cyd@stupidchicken.com>
32706
32707 * image.c (pbm_load): Check image size for monochrome pbm.
32708
327092007-05-13 Chong Yidong <cyd@stupidchicken.com>
32710
32711 * xterm.c (XTread_socket): Revert last change.
32712
327132007-05-12 Chong Yidong <cyd@stupidchicken.com>
32714
32715 * image.c (pbm_load): Correctly check image size for greyscale pbm.
32716
32717 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
32718
327192007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32720
32721 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
32722 mixup (YAILOM).
32723
327242007-05-07 Andreas Schwab <schwab@suse.de>
32725
32726 * keymap.c (Flookup_key): Fix typo in last change.
32727
327282007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32729
32730 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
32731 mapping for unibyte strings.
32732
327332007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32734
32735 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
32736 (Fx_popup_dialog) [MAC_OSX]: Likewise.
32737
327382007-04-29 Richard Stallman <rms@gnu.org>
32739
32740 * insdel.c (replace_range): For undo, record insertion first.
32741
327422007-04-29 Andreas Schwab <schwab@suse.de>
32743
32744 * lisp.h (VECSIZE): Use OFFSETOF.
32745
327462007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32747
32748 * xdisp.c (try_window_reusing_current_matrix): Fix number of
32749 disabled lines.
32750
327512007-04-28 Richard Stallman <rms@gnu.org>
32752
32753 * lread.c (read_escape): In a string, \s is always space.
32754
327552007-04-27 Jan Djärv <jan.h.d@swipnet.se>
32756
32757 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
32758
32759 * gtkutil.c (xg_update_menubar, create_menus): Create empty
32760 submenu for menu bar items.
32761
32762See ChangeLog.10 for earlier changes.
32763
32764;; Local Variables:
32765;; coding: utf-8
aac0c6e3
MR
32766;; End:
32767
73b0cd50 32768 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
32769
32770 This file is part of GNU Emacs.
32771
32772 GNU Emacs is free software: you can redistribute it and/or modify
32773 it under the terms of the GNU General Public License as published by
32774 the Free Software Foundation, either version 3 of the License, or
32775 (at your option) any later version.
32776
32777 GNU Emacs is distributed in the hope that it will be useful,
32778 but WITHOUT ANY WARRANTY; without even the implied warranty of
32779 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32780 GNU General Public License for more details.
32781
32782 You should have received a copy of the GNU General Public License
32783 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.