src/xdisp.c: Remove unused parameters.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
e4cc2dfc
JB
12011-03-31 Juanma Barranquero <lekktu@gmail.com>
2
3 * dispextern.h (move_it_by_lines):
4 * xdisp.c (move_it_by_lines): Remove parameter `need_y_p', unused
5 since 2000-12-29T14:24:09Z!gerd@gnu.org. All callers changed.
6 (message_log_check_duplicate): Remove parameters `prev_bol' and
7 `this_bol', unused since 1998-01-01T02:27:27Z!rms@gnu.org. All callers changed.
8 (redisplay_internal): Remove parameter `preserve_echo_area',
9 unused since 1999-07-21T21:43:52Z!gerd@gnu.org. All callers changed.
10
11 * indent.c (Fvertical_motion):
12 * window.c (window_scroll_pixel_based, Frecenter):
13 Don't pass `need_y_p' to `move_it_by_lines'.
14
1c470562
SM
152011-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
16
44f230aa
SM
17 * eval.c (struct backtrace): Don't cheat with negative numbers, but do
18 steal a few bits to be more compact.
19 (interactive_p, Fbacktrace, Fbacktrace_frame, mark_backtrace):
20 Remove unneeded casts.
21
1c470562
SM
22 * bytecode.c (Fbyte_code): CAR and CDR can GC.
23
888adce9
ZK
242011-03-30 Zachary Kanfer <zkanfer@gmail.com> (tiny change)
25
26 * keyboard.c (Fexecute_extended_command): Do log the "suggest key
27 binding" message (bug#7967).
28
f838ed7b
PE
292011-03-30 Paul Eggert <eggert@cs.ucla.edu>
30
77861b95
PE
31 Fix more problems found by GCC 4.6.0's static checks.
32
de6dbc14
PE
33 * unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]:
34 Remove unused local var.
35
f838ed7b
PE
36 * editfns.c (Fmessage_box): Remove unused local var.
37
792c7b2b
PE
38 * xdisp.c (try_window_reusing_current_matrix, x_produce_glyphs):
39 (note_mode_line_or_margin_highlight, note_mouse_highlight):
40 Omit unused local vars.
c499e557 41 * window.c (shrink_windows): Omit unused local var.
b01a1c29 42 * menu.c (digest_single_submenu): Omit unused local var.
0bc32927
PE
43 * dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]:
44 Omit unused local var.
45
ba0165e1
PE
46 * keyboard.c (parse_modifiers_uncached, parse_modifiers):
47 Don't assume string length fits in int.
32ad8845 48 (keyremap_step, read_key_sequence): Use size_t for sizes.
48011560 49 (read_key_sequence): Don't check last_real_key_start redundantly.
ba0165e1 50
3c59b4c9
PE
51 * callproc.c (Fcall_process, Fcall_process_region): Use SAFE_ALLOCA
52 instead of alloca (Bug#8344).
53
a3eed478 54 * eval.c (Fbacktrace): Don't assume nargs fits in int.
5d5d959d 55 (Fbacktrace_frame): Don't assume nframes fits in int.
a3eed478 56
eb4d412d
PE
57 * syntax.c (scan_sexps_forward): Avoid pointer wraparound.
58
1658b401
PE
59 * xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow
60 concerns.
61
62 * term.c (produce_glyphless_glyph): Remove unnecessary test.
63
64 * cm.c (calccost): Turn while-do into do-while, for clarity.
44f730c8 65
9a2c6e05
PE
66 * keyboard.c (syms_of_keyboard): Use the same style as later
67 in this function when indexing through an array. This also
68 works around GCC bug 48267.
69
03d0a109
PE
70 * image.c (tiff_load): Fix off-by-one image count (Bug#8336).
71
44f730c8
PE
72 * xselect.c (x_check_property_data): Return correct size (Bug#8335).
73
fe75f926
PE
74 * chartab.c (sub_char_table_ref_and_range): Redo for slight
75 efficiency gain, and to bypass a gcc -Wstrict-overflow warning.
76
ffa8c828
PE
77 * keyboard.c, keyboard.h (num_input_events): Now size_t.
78 This avoids undefined behavior on integer overflow, and is a bit
79 more convenient anyway since it is compared to a size_t variable.
80
c5101a77
PE
81 Variadic C functions now count arguments with size_t, not int.
82 This avoids an unnecessary limitation on 64-bit machines, which
83 caused (substring ...) to crash on large vectors (Bug#8344).
84 * lisp.h (struct Lisp_Subr.function.aMANY): Now takes size_t, not int.
85 (DEFUN_ARGS_MANY, internal_condition_case_n, safe_call): Likewise.
77861b95 86 All variadic functions and their callers changed accordingly.
c5101a77
PE
87 (struct gcpro.nvars): Now size_t, not int. All uses changed.
88 * data.c (arith_driver, float_arith_driver): Likewise.
89 * editfns.c (general_insert_function): Likewise.
90 * eval.c (struct backtrace.nargs, interactive_p)
91 (internal_condition_case_n, run_hook_with_args, apply_lambda)
92 (funcall_lambda, mark_backtrace): Likewise.
93 * fns.c (concat): Likewise.
94 * frame.c (x_set_frame_parameters): Likewise.
95 * fns.c (get_key_arg): Now accepts and returns size_t, and returns
96 0 if not found, not -1. All callers changed.
97
dd3f25f7
PE
98 * alloc.c (garbage_collect): Don't assume stack size fits in int.
99 (stack_copy_size): Now size_t, not int.
100 (stack_copy, stack_copy_size): Define only if MAX_SAVE_STACK > 0.
101
461c2ab9
JB
1022011-03-28 Juanma Barranquero <lekktu@gmail.com>
103
104 * coding.c (encode_designation_at_bol): Remove parameter `charbuf_end',
105 unused since 2002-03-01T01:17:24Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
106 All callers changed.
107
108 * lisp.h (multibyte_char_to_unibyte):
109 * character.c (multibyte_char_to_unibyte): Remove parameter `rev_tbl',
110 unused since 2002-03-01T01:16:34Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
111 * character.h (CHAR_TO_BYTE8):
112 * cmds.c (internal_self_insert):
113 * editfns.c (general_insert_function):
114 * keymap.c (push_key_description):
115 * search.c (Freplace_match):
116 * xdisp.c (message_dolog, set_message_1): All callers changed.
117
f6d62986
SM
1182011-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
119
120 * keyboard.c (safe_run_hook_funcall): New function.
121 (safe_run_hooks_1, safe_run_hooks_error, safe_run_hooks): On error,
122 don't set the hook to nil, but remove the offending function instead.
123 (Qcommand_hook_internal): Remove, unused.
124 (syms_of_keyboard): Don't initialize Qcommand_hook_internal nor define
125 Vcommand_hook_internal.
126
127 * eval.c (enum run_hooks_condition): Remove.
128 (funcall_nil, funcall_not): New functions.
129 (run_hook_with_args): Call each function through a `funcall' argument.
130 Remove `cond' argument, now redundant.
131 (Frun_hooks, Frun_hook_with_args, Frun_hook_with_args_until_success)
132 (Frun_hook_with_args_until_failure): Adjust accordingly.
133 (run_hook_wrapped_funcall, Frun_hook_wrapped): New functions.
134
1db5b1ad
JB
1352011-03-28 Juanma Barranquero <lekktu@gmail.com>
136
137 * dispextern.h (string_buffer_position): Remove declaration.
138
139 * print.c (strout): Remove parameter `multibyte', unused since
140 1999-08-21T19:30:21Z!gerd@gnu.org. All callers changed.
141
142 * search.c (boyer_moore): Remove parameters `len', `pos' and `lim',
143 never used since function introduction in 1998-02-08T21:33:56Z!rms@gnu.org.
144 All callers changed.
145
146 * w32.c (_wsa_errlist): Use braces for struct initializers.
147
148 * xdisp.c (string_buffer_position_lim): Remove parameter `w',
149 never used since function introduction in 2001-03-09T18:41:50Z!gerd@gnu.org.
150 All callers changed.
151 (string_buffer_position): Likewise. Also, make static (it's never
152 used outside xdisp.c).
153 (cursor_row_p): Remove parameter `w', unused since
154 2000-10-17T16:08:57Z!gerd@gnu.org. All callers changed.
155 (decode_mode_spec): Remove parameter `precision', introduced during
156 Gerd Moellmann's rewrite at 1999-07-21T21:43:52Z!gerd@gnu.org, but never used.
157 All callers changed.
158
5ffb62aa
JD
1592011-03-27 Jan Djärv <jan.h.d@swipnet.se>
160
161 * nsterm.m (syms_of_nsterm): Use doc: for ns-auto-hide-menu-bar.
162
461c2ab9 1632011-03-27 Anders Lindgren <andlind@gmail.com>
f0a1382a
JD
164
165 * nsterm.m (ns_menu_bar_is_hidden): New variable.
166 (ns_constrain_all_frames, ns_menu_bar_should_be_hidden)
167 (ns_update_auto_hide_menu_bar): New functions.
168 (ns_update_begin): Call ns_update_auto_hide_menu_bar.
169 (applicationDidBecomeActive): Call ns_update_auto_hide_menu_bar and
170 ns_constrain_all_frames.
171 (constrainFrameRect): Return at once if ns_menu_bar_should_be_hidden.
172 (syms_of_nsterm): DEFVAR ns-auto-hide-menu-bar, init to Qnil.
173
5c380ffb
JD
1742011-03-27 Jan Djärv <jan.h.d@swipnet.se>
175
176 * nsmenu.m (runDialogAt): Remove argument to timer_check.
177
9af30bdf
GM
1782011-03-27 Glenn Morris <rgm@gnu.org>
179
180 * syssignal.h: Replace RETSIGTYPE with void.
181 * atimer.c, data.c, dispnew.c, emacs.c, floatfns.c, keyboard.c:
182 * keyboard.h, lisp.h, process.c, sysdep.c, xterm.c:
183 Replace SIGTYPE with void everywhere.
184 * s/usg5-4-common.h (SIGTYPE): Remove definition.
185 * s/template.h (SIGTYPE): Remove commented out definition.
186
66537049
EZ
1872011-03-26 Eli Zaretskii <eliz@gnu.org>
188
189 * xdisp.c (redisplay_window): Don't check buffer's clip_changed
190 flag as a prerequisite for invoking try_scrolling. (Bug#6671)
191
f868cd8a
JB
1922011-03-26 Juanma Barranquero <lekktu@gmail.com>
193
59eb0929
JB
194 * w32.c (read_unc_volume): Use parameter `henum', instead of
195 global variable `wget_enum_handle'.
196
197 * keymap.c (describe_vector): Remove parameters `indices' and
198 `char_table_depth', unused since 2002-03-01T01:43:26Z!handa@m17n.org.
199 (describe_map, Fdescribe_vector): Adjust calls to `describe_vector'.
200
f868cd8a
JB
201 * keyboard.h (timer_check, show_help_echo): Remove unused parameters.
202
203 * keyboard.c (timer_check): Remove parameter `do_it_now',
204 unused since 1996-04-12T06:01:29Z!rms@gnu.org.
205 (show_help_echo): Remove parameter `ok_to_overwrite_keystroke_echo',
206 unused since 2008-04-19T19:30:53Z!monnier@iro.umontreal.ca.
207
208 * keyboard.c (read_char):
209 * w32menu.c (w32_menu_display_help):
210 * xmenu.c (show_help_event, menu_help_callback):
211 Adjust calls to `show_help_echo'.
212
213 * gtkutil.c (xg_maybe_add_timer):
214 * keyboard.c (readable_events):
215 * process.c (wait_reading_process_output):
216 * xmenu.c (x_menu_wait_for_event): Adjust calls to `timer_check'.
217
218 * insdel.c (adjust_markers_gap_motion):
219 Remove; no-op since 1998-01-02T21:29:48Z!rms@gnu.org.
220 (gap_left, gap_right): Don't call it.
221
2ecf6fdb
CY
2222011-03-25 Chong Yidong <cyd@stupidchicken.com>
223
224 * xdisp.c (handle_fontified_prop): Discard changes to clip_changed
225 incurred during fontification.
226
6b1f9ba4
JB
2272011-03-25 Juanma Barranquero <lekktu@gmail.com>
228
229 * buffer.c (defvar_per_buffer): Remove unused parameter `doc'.
230 (DEFVAR_PER_BUFFER): Don't pass it.
231
232 * dispnew.c (row_equal_p, add_row_entry): Remove unused parameter `w'.
233 (scrolling_window): Don't pass it.
234
0f4a96b5
JB
2352011-03-25 Juanma Barranquero <lekktu@gmail.com>
236
237 * dispextern.h (glyph_matric): Use #if GLYPH_DEBUG, not #ifdef.
238
239 * fileio.c (check_executable) [DOS_NT]: Remove unused variables `len'
240 and `suffix'.
241 (Fset_file_selinux_context) [HAVE_LIBSELINUX]: Move here declaration
242 of variables specific to SELinux and computation of `encoded_absname'.
243
244 * image.c (XPutPixel): Remove unused variable `height'.
245
246 * keyboard.c (make_lispy_event): Remove unused variable `hpos'.
247
248 * unexw32.c (get_section_info): Remove unused variable `section'.
249
250 * w32.c (stat): Remove unused variables `drive_root' and `devtype'.
251 (system_process_attributes): Remove unused variable `sess'.
252 (sys_read): Remove unused variable `err'.
253
254 * w32fns.c (top): Wrap variables with #if GLYPH_DEBUG, not #ifdef.
255 (w32_wnd_proc): Remove unused variable `isdead'.
256 (unwind_create_frame): Use #if GLYPH_DEBUG, not #ifdef.
257 (Fx_server_max_request_size): Remove unused variable `dpyinfo'.
258 (x_create_tip_frame): Remove unused variable `tem'.
259
260 * w32inevt.c (w32_console_read_socket):
261 Remove unused variable `no_events'.
262
263 * w32term.c (x_draw_composite_glyph_string_foreground):
264 Remove unused variable `width'.
265
1149507c
JB
2662011-03-24 Juanma Barranquero <lekktu@gmail.com>
267
268 * w32term.c (x_set_glyph_string_clipping):
269 Don't pass uninitialized region to CombineRgn.
270
9c88f339
JB
2712011-03-23 Juanma Barranquero <lekktu@gmail.com>
272
273 * w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'.
274 (w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer.
275 (Fx_close_connection): Remove unused variable `i'.
276
277 * w32font.c (w32font_draw): Return number of glyphs.
278 (w32font_open_internal): Remove unused variable `i'.
279 (w32font_driver): Add missing initializer.
280
281 * w32menu.c (utf8to16): Remove unused variable `utf16'.
282 (fill_in_menu): Remove unused variable `items_added'.
283
284 * w32term.c (last_mouse_press_frame): Remove static global variable.
285 (w32_clip_to_row): Remove unused variable `f'.
286 (x_delete_terminal): Remove unused variable `i'.
287
288 * w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'.
289 (NOTHING): Remove unused static global variable.
290 (uniscribe_check_otf): Remove unused variable `table'.
291 (uniscribe_font_driver): Add missing initializers.
292
dee091a3
JD
2932011-03-23 Julien Danjou <julien@danjou.info>
294
295 * term.c (Fsuspend_tty, Fresume_tty):
296 * minibuf.c (read_minibuf, run_exit_minibuf_hook):
297 * window.c (temp_output_buffer_show):
298 * insdel.c (signal_before_change):
299 * frame.c (Fhandle_switch_frame):
300 * fileio.c (Fdo_auto_save):
301 * emacs.c (Fkill_emacs):
302 * editfns.c (save_excursion_restore):
303 * cmds.c (internal_self_insert):
304 * callint.c (Fcall_interactively):
305 * buffer.c (Fkill_all_local_variables):
306 * keyboard.c (Fcommand_execute, Fsuspend_emacs, safe_run_hooks_1):
307 Use Frun_hooks.
0f4a96b5 308 (command_loop_1): Use Frun_hooks. Call safe_run_hooks
dee091a3
JD
309 unconditionnaly since it does the check itself.
310
2c520ab5 3112011-03-23 Paul Eggert <eggert@cs.ucla.edu>
f0641eff 312
c9c49752
PE
313 Fix more problems found by GCC 4.5.2's static checks.
314
8abc3f12
PE
315 * coding.c (encode_coding_raw_text): Avoid unnecessary test
316 the first time through the loop, since we know p0 < p1 then.
317 This also avoids a gcc -Wstrict-overflow warning.
318
a2d26660
PE
319 * lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Avoid 'int' overflow
320 leading to a memory leak, possible in functions like
321 load_charset_map_from_file that can allocate an unbounded number
b12ef411 322 of objects (Bug#8318).
a2d26660 323
916c72e9
PE
324 * xmenu.c (set_frame_menubar): Use EMACS_UINT, not int, for indexes
325 that could (at least in theory) be that large.
326
19ab8a18
PE
327 * xdisp.c (message_log_check_duplicate): Return unsigned long, not int.
328 This is less likely to overflow, and avoids undefined behavior if
329 overflow does occur. All callers changed. Use strtoul to scan
330 for the unsigned long integer.
b7cbbd6f
PE
331 (pint2hrstr): Simplify and tune code slightly.
332 This also avoids a (bogus) GCC warning with gcc -Wstrict-overflow.
19ab8a18 333
f0641eff
PE
334 * scroll.c (do_scrolling): Work around GCC bug 48228.
335 See <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48228>.
336
7f650bb9
PE
337 * frame.c (Fmodify_frame_parameters): Simplify loop counter.
338 This also avoids a warning with gcc -Wstrict-overflow.
39f5e519
PE
339 (validate_x_resource_name): Simplify count usage.
340 This also avoids a warning with gcc -Wstrict-overflow.
7f650bb9 341
37dd57d1
PE
342 * fileio.c (Fcopy_file): Report error if fchown or fchmod
343 fail (Bug#8306).
81e56e61 344
699979fc 345 * emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303).
dc1ca6a8 346
401bf9b4
PE
347 * process.c (Fmake_network_process): Use socklen_t, not int,
348 where POSIX says socklen_t is required in portable programs.
349 This fixes a porting bug on hosts like 64-bit HP-UX, where
591b2973 350 socklen_t is wider than int (Bug#8277).
401bf9b4
PE
351 (Fmake_network_process, server_accept_connection):
352 (wait_reading_process_output, read_process_output):
353 Likewise.
354
b93aacde
PE
355 * process.c: Rename or move locals to avoid shadowing.
356 (list_processes_1, Fmake_network_process):
357 (read_process_output_error_handler, exec_sentinel_error_handler):
358 Rename or move locals.
4dc343ee 359 (Fmake_network_process): Define label "retry_connect" only if needed.
0da49335 360 (Fnetwork_interface_info): Fix pointer signedness.
f990b4e5 361 (process_send_signal): Add cast to avoid pointer signedness problem.
7b808126 362 (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros.
c939f91b 363 (create_process): Use 'volatile' to avoid vfork clobbering (Bug#8298).
b93aacde 364
af8a867c 365 Make tparam.h and terminfo.c consistent.
44f230aa
SM
366 * cm.c (tputs, tgoto, BC, UP): Remove extern decls.
367 Include tparam.h instead, since it declares them.
af8a867c
PE
368 * cm.h (PC): Remove extern decl; tparam.h now does this.
369 * deps.mk (cm.o, terminfo.o): Depend on tparam.h.
370 * terminfo.c: Include tparam.h, to check interfaces.
371 (tparm): Make 1st arg a const pointer in decl. Put it at top level.
372 (tparam): Adjust signature to match interface in tparam.h;
373 this removes some undefined behavior. Check that outstring and len
374 are zero, which they always are with Emacs.
375 * tparam.h (PC, BC, UP): New extern decls.
376
0248044d 377 * xftfont.c (xftfont_shape): Now static, and defined only if needed.
001a7ab4 378 (xftfont_open): Rename locals to avoid shadowing.
0248044d 379
8ff096c1 380 * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness.
a00924bb
PE
381 (ftfont_otf_capability, ftfont_shape): Omit decls if not needed.
382 (OTF_TAG_SYM): Omit macro if not needed.
e932860f 383 (ftfont_list): Remove unused local.
49eaafba
PE
384 (get_adstyle_property, ftfont_pattern_entity):
385 (ftfont_lookup_cache, ftfont_open, ftfont_anchor_point):
386 Rename locals to avoid shadowing.
8ff096c1 387
e2be39f6
PE
388 * xfont.c (xfont_list_family): Mark var as initialized.
389
c9735e30
PE
390 * xml.c (make_dom): Now static.
391
8f5201ae
PE
392 * composite.c (composition_compute_stop_pos): Rename local to
393 avoid shadowing.
b246f932
PE
394 (composition_reseat_it): Remove unused locals.
395 (find_automatic_composition, composition_adjust_point): Likewise.
80e079b2 396 (composition_update_it): Mark var as initialized.
11b61122
PE
397 (find_automatic_composition): Mark vars as initialized,
398 with a FIXME (Bug#8290).
8f5201ae 399
760fbc2c
PE
400 character.h: Rename locals to avoid shadowing.
401 * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE):
402 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE):
403 (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, BUF_INC_POS):
404 (BUF_DEC_POS): Be more systematic about renaming local temporaries
405 to avoid shadowing.
406
ff08eb85
PE
407 * textprop.c (property_change_between_p): Remove; unused.
408
fc7bf025
PE
409 * intervals.c (interval_start_pos): Now static.
410
235d7abc
PE
411 * intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
412
44f230aa
SM
413 * atimer.c (start_atimer, append_atimer_lists, set_alarm):
414 Rename locals to avoid shadowing.
3e7d6594 415
50060332
PE
416 * sound.c (wav_play, au_play, Fplay_sound_internal):
417 Fix pointer signedness.
d01f234b 418 (alsa_choose_format): Remove unused local var.
c83b8872
PE
419 (wav_play): Initialize a variable to 0, to prevent undefined
420 behavior (Bug#8278).
50060332 421
c4fc4e30
PE
422 * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
423
918436ed
PE
424 * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes.
425
c939f91b
PE
426 * callproc.c (Fcall_process): Use 'volatile' to avoid vfork
427 clobbering (Bug#8298).
b9c7f648
PE
428 * sysdep.c (sys_subshell): Likewise.
429 Previously, the sys_subshell 'volatile' was incorrectly IF_LINTted out.
7e9123a2 430
6bd8c144
PE
431 * lisp.h (child_setup): Now NO_RETURN unless DOS_NT.
432 This should get cleaned up, so that child_setup has the
433 same signature on all platforms.
434
7710357c 435 * callproc.c (call_process_cleanup): Now static.
cb1d0ef7 436 (relocate_fd): Rename locals to avoid shadowing.
7710357c 437
c59da222
CY
4382011-03-22 Chong Yidong <cyd@stupidchicken.com>
439
440 * xterm.c (x_clear_frame): Remove XClearWindow call. This appears
441 not to be necessary, and produces flickering.
442
66b87493
GM
4432011-03-20 Glenn Morris <rgm@gnu.org>
444
445 * config.in: Remove file.
446
45b6f6d5
JB
4472011-03-20 Juanma Barranquero <lekktu@gmail.com>
448
449 * minibuf.c (Vcompleting_read_function): Don't declare, global variables
450 are now in src/globals.h.
451 (syms_of_minibuf): Remove spurious & from previous change.
452
3ec03f7e
LL
4532011-03-20 Leo <sdl.web@gmail.com>
454
455 * minibuf.c (completing-read-function): New variable.
456 (completing-read-default): Rename from completing-read.
457 (completing-read): Call completing-read-function.
458
b14e3e21
CY
4592011-03-19 Juanma Barranquero <lekktu@gmail.com>
460
461 * xfaces.c (Fx_load_color_file):
462 Read color file from absolute filename (bug#8250).
463
f2b726e6
JB
4642011-03-19 Juanma Barranquero <lekktu@gmail.com>
465
466 * makefile.w32-in: Update dependencies.
467
09f6ff02
EZ
4682011-03-17 Eli Zaretskii <eliz@gnu.org>
469
470 * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
471
29a6015a
PE
4722011-03-17 Paul Eggert <eggert@cs.ucla.edu>
473
a3a6c54e
PE
474 Fix more problems found by GCC 4.5.2's static checks.
475
b766f867
PE
476 * process.c (make_serial_process_unwind, send_process_trap):
477 (sigchld_handler): Now static.
478
be02381c
PE
479 * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
480 That way, the code declares only the vars that it needs.
481 * s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
482 * s/cygwin.h (PTY_ITERATION): Likewise.
483 * s/darwin.h (PTY_ITERATION): Likewise.
484 * s/gnu-linux.h (PTY_ITERATION): Likewise.
485
57048744
PE
486 * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
487 * process.c (allocate_pty): Don't declare stb unless it's needed.
488
7914961c 489 * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
615f2d59
PE
490 (CONSTANTLIM): Remove; unused.
491 (METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
492 Define only if needed.
7914961c 493
b3967b18
PE
494 * unexelf.c (unexec): Name an expression,
495 to avoid gcc -Wbad-function-cast warning.
9ae71512
PE
496 Use a different way to cause a compilation error if anyone uses
497 n rather than nn, a way that does not involve shadowing.
73366a00 498 (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused.
b3967b18 499
29a6015a
PE
500 * deps.mk (unexalpha.o): Remove; unused.
501
43cfc33e 502 New file unexec.h, the (simple) interface for unexec (Bug#8267).
7feda0d2 503 * unexec.h: New file.
ce701a33
PE
504 * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
505 (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
506 Depend on unexec.h.
507 * emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
508 * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
509 * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
381259ef 510 Change as necessary to match prototype in unexec.h.
ce701a33 511
01f44d5a
PE
512 * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
513 shadowing.
4f63c6bb 514 (back_comment, skip_chars): Mark vars as initialized.
01f44d5a 515
a6670b0b
PE
516 * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
517 Rename locals to avoid shadowing.
518
cef2010d 519 * lread.c (read1): Rewrite so as not to use empty "else".
0902fe45 520 (Fload, readevalloop, read1): Rename locals to avoid shadowing.
cef2010d 521
d4d7173a
PE
522 * print.c (Fredirect_debugging_output): Fix pointer signedess.
523
f08b802a
PE
524 * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
525 warning when compiling print.c.
526
3ddb0639
PE
527 * font.c (font_unparse_fcname): Abort in an "impossible" situation
528 instead of using an uninitialized var.
5ad03b97 529 (font_sort_entities): Mark var as initialized.
3ddb0639 530
170a2692
PE
531 * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
532
e663c700
PE
533 * font.c (font_unparse_xlfd): Don't mix pointers to variables with
534 pointers to constants.
89bc529a 535 (font_parse_fcname): Remove unused vars.
7b81e2d0 536 (font_delete_unmatched): Now static.
ea838e10 537 (font_get_spec): Remove; unused.
13a547c6
PE
538 (font_style_to_value, font_prop_validate_style, font_unparse_fcname):
539 (font_update_drivers, Ffont_get_glyphs, font_add_log):
540 Rename or move locals to avoid shadowing.
e663c700 541
2a80c887 542 * fns.c (require_nesting_list, require_unwind): Now static.
612f56df 543 (Ffillarray): Rename locals to avoid shadowing.
2a80c887 544
1384fa33 545 * floatfns.c (domain_error2): Define only if needed.
a885e2ed 546 (Ffrexp, Fldexp): Rename locals to avoid shadowing.
1384fa33 547
8b2c52e9
PE
548 * alloc.c (mark_backtrace): Move decl from here ...
549 * lisp.h: ... to here, so that it can be checked.
550
475545b5 551 * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
d28a2170 552 (Fdefvar): Rewrite so as not to use empty "else".
cfcbfb1a
PE
553 (lisp_indirect_variable): Name an expression,
554 to avoid gcc -Wbad-function-cast warning.
1faed8ae 555 (Fdefvar): Rename locals to avoid shadowing.
475545b5 556
b1349114 557 * callint.c (quotify_arg, quotify_args): Now static.
a3e8cbda 558 (Fcall_interactively): Rename locals to avoid shadowing.
b0e80955 559 Use const pointer when appropriate.
b1349114 560
a2928364
PE
561 * lisp.h (get_system_name, get_operating_system_release):
562 Move decls here, to check interfaces.
563 * process.c (get_operating_system_release): Move decl to lisp.h.
564 * xrdb.c (get_system_name): Likewise.
63c5d10b
PE
565 * editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
566 (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
567 some of which prompt warnings from gcc -Wbad-function-cast.
545b49b4
PE
568 (Fformat_time_string, Fencode_time, Finsert_char):
569 (Ftranslate_region_internal, Fformat):
570 Rename or remove local vars to avoid shadowing.
9710023e 571 (Ftranslate_region_internal): Mark var as initialized.
63c5d10b 572
a415e694
PE
573 * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
574 avoid shadowing.
575
8ef4622d
PE
576 * lisp.h (eassert): Check that the argument compiles, even if
577 ENABLE_CHECKING is not defined.
578
946f9a5b
PE
579 * data.c (Findirect_variable): Name an expression, to avoid
580 gcc -Wbad-function-cast warning.
112396d6 581 (default_value, arithcompare, arith_driver, arith_error): Now static.
b9b84fa9 582 (store_symval_forwarding): Rename local to avoid shadowing.
44f230aa
SM
583 (Fmake_variable_buffer_local, Fmake_local_variable):
584 Mark variables as initialized.
52746918 585 (do_blv_forwarding, do_symval_forwarding): Remove; unused.
946f9a5b 586
e5aab7e7 587 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
ae35e756
PE
588 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
589 Rename locals to avoid shadowing.
dff45157
PE
590 (mark_stack): Move local variables into the #ifdef region where
591 they're used.
7bc26fdb
PE
592 (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
593 ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
594 needed otherwise.
595 (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
596 (GC_STRING_CHARS): Remove; not used.
d40d4be1 597 (Fmemory_limit): Cast sbrk's returned value to char *.
ae35e756 598
e5aab7e7
PE
599 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
600 avoids undefined behavior in theory.
601
4da60324
PE
602 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
603
88043301
PE
604 Use functions, not macros, for up- and down-casing (Bug#8254).
605 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
606 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
607 to use the following functions instead of these macros.
608 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
609 EMACS_INT, since callers assume the returned value fits in int.
610 (upcase1): Likewise, for UPCASE_TABLE.
611 (uppercasep, lowercasep, upcase): New static inline functions.
0da09c43 612 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
db69b0cd 613 the race-condition problem in the old DOWNCASE.
88043301 614
19ed5445
PE
615 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
616 Rename locals to avoid shadowing.
617 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
abbd1bcf
PE
618 (regex_compile, re_search_2, re_match_2_internal):
619 Remove unused local vars.
952db0d7
PE
620 (FREE_VAR): Rewrite so as not to use empty "else",
621 which gcc can warn about.
da053e48 622 (regex_compile, re_match_2_internal): Mark locals as initialized.
b313f9d8
PE
623 (RETALLOC_IF): Define only if needed.
624 (WORDCHAR_P): Likewise. This one is never needed, but is used
625 only in a comment talking about a compiler bug, so put inside
626 the #if 0 of that comment.
627 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
628 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
629 Remove; unused.
19ed5445 630
1f3561e4 631 * search.c (boyer_moore): Rename locals to avoid shadowing.
76ef09b7
PE
632 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
633 (PREV_CHAR_BOUNDARY): Likewise.
1f3561e4 634
ded6f8f7
PE
635 * search.c (simple_search): Remove unused var.
636
dbd37a95
PE
637 * dired.c (compile_pattern): Move decl from here ...
638 * lisp.h: ... to here, so that it can be checked.
639 (struct re_registers): New forward decl.
640
7e47afad
PE
641 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
642
85f24f61
PE
643 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
644 All uses changed.
645 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
646 Rename locals to avoid shadowing.
5671df8f 647 (Fvertical_motion): Mark locals as initialized.
85f24f61 648
181aa2be 649 * casefiddle.c (casify_object, casify_region): Now static.
e45a141a 650 (casify_region): Mark local as initialized.
181aa2be 651
930d429c
PE
652 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
653
7082eac6
PE
654 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
655 New macros, so that the caller can use some names other than
656 gcpro1, gcpro2, etc.
657 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
658 of the new macros.
659 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
660 argument, for consistency with GCPRO2_VAR, etc: it is now the
661 prefix of the variable, not the variable itself. All uses
662 changed.
38b2c076
PE
663 * dired.c (directory_files_internal, file_name_completion):
664 Rename locals to avoid shadowing.
665
15206ed9
PE
666 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
667 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
668 dired.c's scmp function, had undefined behavior.
669 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
670 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
671 * buffer.h: ... to here, because these macros use current_buffer,
672 and the new implementation with inline functions needs to have
673 current_buffer in scope now, rather than later when the macros
674 are used.
675 (downcase, upcase1): New static inline functions.
676 (DOWNCASE, UPCASE1): Reimplement using these functions.
677 This avoids undefined behavior in expressions like
678 DOWNCASE (x) == DOWNCASE (y), which previously suffered
679 from race conditions in accessing the global variables
680 case_temp1 and case_temp2.
681 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
682 * lisp.h (case_temp1, case_temp2): Remove their decls.
683 * character.h (ASCII_CHAR_P): Move from here ...
684 * lisp.h: ... to here, so that the inline functions mentioned
685 above can use them.
686
4a6bea26
PE
687 * dired.c (directory_files_internal_unwind): Now static.
688
f14b7e14
PE
689 * fileio.c (file_name_as_directory, directory_file_name):
690 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
691 Now static.
2893f146
PE
692 (file_name_as_directory): Use const pointers when appropriate.
693 (Fexpand_file_name): Likewise. In particular, newdir might
694 point at constant storage, so make it a const pointer.
fd4ead52 695 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
b14aac08
PE
696 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
697 signedness issues.
f839df0c
PE
698 (Fset_file_times, Finsert_file_contents, auto_save_error):
699 Rename locals to avoid shadowing.
f14b7e14 700
5716756e 701 * minibuf.c (choose_minibuf_frame_1): Now static.
62137a95
PE
702 (Ftry_completion, Fall_completions): Rename or remove locals
703 to avoid shadowing.
5716756e 704
b4c3046a
PE
705 * marker.c (bytepos_to_charpos): Remove; unused.
706
b45db522
PE
707 * lisp.h (verify_bytepos, count_markers): New decls,
708 so that gcc does not warn that these functions aren't declared.
709
85876d07
PE
710 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
711 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
f0cb4a60 712 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
40ef059e 713 (copy_text): Remove unused local var.
85876d07 714
03d78a21 715 * filelock.c (within_one_second): Now static.
b3dd38ab 716 (lock_file_1): Rename local to avoid shadowing.
03d78a21 717
5df8f01b
PE
718 * buffer.c (fix_overlays_before): Mark locals as initialized.
719 (fix_start_end_in_overlays): Likewise. This function should be
720 simplified by using pointers-to-pointers, but that's a different
721 matter.
b1d876f1 722 (switch_to_buffer_1): Now static.
8f54f30a
PE
723 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
724 (report_overlay_modification): Rename locals to avoid shadowing.
c3bd59b5 725
a70072c9 726 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
fbd02d7b 727 Fix pointer signedness issue.
edced198
PE
728 (sys_subshell): Mark local as volatile if checking for lint,
729 to suppress a gcc -Wclobbered warning that does not seem to be right.
15dfd3d9 730 (MAXPATHLEN): Define only if needed.
a70072c9 731
a0977c44
PE
732 * process.c (serial_open, serial_configure): Move decls from here ...
733 * systty.h: ... to here, so that they can be checked.
734
a884fdcc
PE
735 * fns.c (get_random, seed_random): Move extern decls from here ...
736 * lisp.h: ... to here, so that they can be checked.
737
604efe86 738 * sysdep.c (reset_io): Now static.
b8950c94 739 (wait_for_termination_signal): Remove; unused.
604efe86 740
38fc62d9
PE
741 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
742 (copy_keymap_item, append_key, push_text_char_description):
743 Now static.
1004a21a 744 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
dbbb8427 745 (DENSE_TABLE_SIZE): Remove; unused.
c1141155
PE
746 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
747 (describe_map_tree):
748 Rename locals to avoid shadowing.
38fc62d9 749
2f2650da
PE
750 * keyboard.c: Declare functions static if they are not used elsewhere.
751 (echo_char, echo_dash, cmd_error, top_level_2):
752 (poll_for_input, handle_async_input): Now static.
69a058fa
PE
753 (read_char, kbd_buffer_get_event, make_lispy_position):
754 (make_lispy_event, make_lispy_movement, apply_modifiers):
755 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
756 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
757 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
c8a06054 758 (read_key_sequence, read_char): Mark locals as initialized.
3ac94672 759 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
2f2650da 760
a053e86c 761 * keyboard.h (make_ctrl_char): New decl.
da2f2dd9
PE
762 (mark_kboards): Move decl here ...
763 * alloc.c (mark_kboards): ... from here.
a053e86c 764
4752793e
PE
765 * lisp.h (force_auto_save_soon): New decl.
766
74f10ca7 767 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
244fc23d
PE
768 (DEFINE_DUMMY_FUNCTION): New macro.
769 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
770 Use it.
c03cd23f
PE
771 (main): Add casts to avoid warnings
772 if GCC considers string literals to be constants.
74f10ca7 773
022e70d4
PE
774 * lisp.h (fatal_error_signal): Add decl, since it's exported.
775
59d6fe83
PE
776 * dbusbind.c: Pointer signedness fixes.
777 (xd_signature, xd_append_arg, xd_initialize):
778 (Fdbus_call_method, Fdbus_call_method_asynchronously):
779 (Fdbus_method_return_internal, Fdbus_method_error_internal):
780 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
781 (Fdbus_register_signal): Use SSDATA when the context wants char *.
782
78320123
PE
783 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
784 if GCC considers string literals to be constants.
49cebcca 785 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
78320123 786
35ac2a97
SM
7872011-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
788
fb103ca9
SM
789 * print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
790 (print_preprocess, print_object): New macro to fix last change.
791
35ac2a97
SM
792 * print.c (print_preprocess): Don't forget font objects.
793
62973b41
JB
7942011-03-16 Juanma Barranquero <lekktu@gmail.com>
795
796 * emacs.c (USAGE3): Doc fixes.
797
0e48bb22
AS
7982011-03-15 Andreas Schwab <schwab@linux-m68k.org>
799
800 * coding.c (detect_coding_iso_2022): Reorganize code to clarify
801 structure.
802
7684e57b
JB
8032011-03-14 Juanma Barranquero <lekktu@gmail.com>
804
805 * lisp.h (VWindow_system, Qfile_name_history):
806 * keyboard.h (lispy_function_keys) [WINDOWSNT]:
807 * w32term.h (w32_system_caret_hwnd, w32_system_caret_height)
808 (w32_system_caret_x, w32_system_caret_y): Declare extern.
809
810 * w32select.c: Don't #include "keyboard.h".
c96bbc66 811 (run_protected): Add extern declaration for waiting_for_input.
7684e57b
JB
812
813 * w32.c (Qlocal, noninteractive1, inhibit_window_system):
814 * w32console.c (detect_input_pending, read_input_pending)
815 (encode_terminal_code):
816 * w32fns.c (quit_char, lispy_function_keys, Qtooltip)
817 (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x)
818 (w32_system_caret_y, Qfile_name_history):
819 * w32font.c (w32font_driver, QCantialias, QCotf, QClang):
820 * w32inevt.c (reinvoke_input_signal, lispy_function_keys):
821 * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map)
822 (Qoverriding_terminal_local_map, Qmenu_bar_update_hook):
823 * w32proc.c (Qlocal, report_file_error):
824 * w32term.c (Vwindow_system, updating_frame):
825 * w32uniscribe.c (initialized, uniscribe_font_driver):
826 Remove unneeded extern declarations.
827
2aa46d6c
CY
8282011-03-14 Chong Yidong <cyd@stupidchicken.com>
829
c96bbc66 830 * buffer.c (Fmake_indirect_buffer): Fix incorrect assertions.
2aa46d6c 831
cffc6f3b
CY
8322011-03-13 Chong Yidong <cyd@stupidchicken.com>
833
834 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
835 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
836 These macros can no longer be used for assignment.
837
44f230aa
SM
838 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
839 Assign struct members directly, instead of using BUF_BEGV etc.
cffc6f3b
CY
840 (record_buffer_markers, fetch_buffer_markers): New functions for
841 recording and fetching special buffer markers.
842 (set_buffer_internal_1, set_buffer_temp): Use them.
843
844 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
845
846 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
847
848 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
849 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
850
851 * xdisp.c (hscroll_window_tree):
852 (reconsider_clip_changes): Use PT instead of BUF_PT.
853
d251f04b
EZ
8542011-03-13 Eli Zaretskii <eliz@gnu.org>
855
856 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
857 $(EMACS_ROOT)/lib/intprops.h.
858
f0c77cd1
PE
8592011-03-13 Paul Eggert <eggert@cs.ucla.edu>
860
3eca4629
PE
861 Fix more problems found by GCC 4.5.2's static checks.
862
7c86ee98
PE
863 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
864 to unsigned char * to avoid compiler diagnostic.
b0afc268
PE
865 (xg_free_frame_widgets): Make it clear that a local variable is
866 needed only if USE_GTK_TOOLTIP.
01e0b5ad
PE
867 (gdk_window_get_screen): Make it clear that this macro is needed
868 only if USE_GTK_TOOLTIP.
1e5524e7
PE
869 (int_gtk_range_get_value): New function, which avoids a diagnostic
870 from gcc -Wbad-function-cast.
871 (xg_set_toolkit_scroll_bar_thumb): Use it.
872 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
873 diagnostic from gcc -Wbad-function-cast.
65dc836c
PE
874 (get_utf8_string, xg_get_file_with_chooser):
875 Rename locals to avoid shadowing.
876 (create_dialog): Move locals to avoid shadowing.
7c86ee98 877
41729b81
PE
878 * xgselect.c (xg_select): Remove unused var.
879
f0c77cd1
PE
880 * image.c (four_corners_best): Mark locals as initialized.
881 (gif_load): Initialize transparent_p to zero (Bug#8238).
882 Mark another local as initialized.
ec6cf4c6 883 (my_png_error, my_error_exit): Mark with NO_RETURN.
f0c77cd1 884
ce0ad53d 885 * image.c (clear_image_cache): Now static.
d5d5a617 886 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
e22cffbc 887 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
77a765fd
PE
888 (x_edge_detection): Remove unnecessary cast that
889 gcc -Wbad-function-cast diagnoses.
2037898d 890 (gif_load): Fix pointer signedness.
6ae141d6
PE
891 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
892 (jpeg_load, gif_load): Rename locals to avoid shadowing.
ce0ad53d 893
3eca4629
PE
8942011-03-11 Paul Eggert <eggert@cs.ucla.edu>
895
d32df629
PE
896 Improve quality of tests for time stamp overflow.
897 For example, without this patch (encode-time 0 0 0 1 1
898 1152921504606846976) returns the obviously-bogus value (-948597
899 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
900 reports time overflow. See
901 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
b8d9bd41
PE
902 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
903 * editfns.c: Include limits.h and intprops.h.
904 (TIME_T_MIN, TIME_T_MAX): New macros.
905 (time_overflow): Move earlier, to before first use.
906 (hi_time, lo_time): New functions, for an accurate test for
907 out-of-range times.
908 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
909 (Fget_internal_run_time): Don't assume time_t fits in int.
910 (make_time): Use list2 instead of Fcons twice.
911 (Fdecode_time): More accurate test for out-of-range times.
912 (check_tm_member): New function.
913 (Fencode_time): Use it, to test for out-of-range times.
d32df629
PE
914 (lisp_time_argument): Don't rely on undefined left-shift and
915 right-shift behavior when checking for time stamp overflow.
8be6f318 916
fe31d94c
PE
917 * editfns.c (time_overflow): New function, refactoring common code.
918 (Fformat_time_string, Fdecode_time, Fencode_time):
919 (Fcurrent_time_string): Use it.
920
8be6f318
PE
921 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
922 * dired.c (make_time): Move to ...
923 * editfns.c (make_time): ... here.
924 * systime.h: Note the move.
925
09d9db2c 9262011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c47cbdfd 927
126bc0dc
YM
928 * fringe.c (update_window_fringes): Remove unused variables.
929
c47cbdfd
YM
930 * unexmacosx.c (copy_data_segment): Also copy __got section.
931 (Bug#8223)
932
7ac80be9
EZ
9332011-03-12 Eli Zaretskii <eliz@gnu.org>
934
c96bbc66 935 * termcap.c [MSDOS]: Include "msdos.h".
058e5dad
EZ
936 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
937 Constify `char *' arguments and their references according to
938 prototypes in tparam.h.
939
ecb0f94d 940 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
058e5dad 941
7ac80be9
EZ
942 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
943 Adapt all references accordingly.
944
945 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
946
ef1fd07e
TT
9472011-03-11 Tom Tromey <tromey@redhat.com>
948
949 * buffer.c (syms_of_buffer): Remove obsolete comment.
950
7ef4b50c
EZ
9512011-03-11 Eli Zaretskii <eliz@gnu.org>
952
953 * termhooks.h (encode_terminal_code): Declare prototype.
954
955 * msdos.c (encode_terminal_code): Don't declare prototype.
956
957 * term.c (encode_terminal_code): Now external again, used by
958 w32console.c and msdos.c.
959
44f230aa
SM
960 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)):
961 Depend on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
7ef4b50c 962
4b1ec863 9632011-03-11 Paul Eggert <eggert@cs.ucla.edu>
f78faa98 964
1714f52b 965 Fix some minor problems found by GCC 4.5.2's static checks.
83316bf4 966
4b1ec863
PE
967 * fringe.c (update_window_fringes): Mark locals as initialized
968 (Bug#8227).
969 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
bf60f616 970
524c7aa6
PE
971 * alloc.c (mark_fringe_data): Move decl from here ...
972 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
973 to check its interface.
974 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
975
a5c0af81 976 * fontset.c (free_realized_fontset): Now static.
7519b8cd 977 (Fset_fontset_font): Rename local to avoid shadowing.
cc6e5db1 978 (fontset_font): Mark local as initialized.
a9a06e0b 979 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
a5c0af81 980
b4716021
PE
981 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
982
811e9bac 983 * xselect.c (x_disown_buffer_selections): Remove; not used.
7b83e2f1 984 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
aa0daa9f
PE
985 (x_own_selection, Fx_disown_selection_internal): Rename locals
986 to avoid shadowing.
987 (x_handle_dnd_message): Remove local to avoid shadowing.
811e9bac 988
7e3ab302
PE
989 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
990 so that the caller can use some name other than gcpro1.
991 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
58d2d479
PE
992 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
993 (Fx_backspace_delete_keys_p):
994 Use them to avoid shadowing, and rename vars to avoid shadowing.
995 (x_decode_color, x_set_name, x_window): Now static.
6b437900 996 (Fx_create_frame): Add braces to silence GCC warning.
c0951e53 997 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
06b0c8a0
PE
998 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
999 Remove unused locals.
7e3ab302
PE
1000 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
1001 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
1002 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
1003 macros.
f78faa98 1004
e2b13473
PE
1005 * xterm.h (x_mouse_leave): New decl.
1006
77f23912
PE
1007 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
1008 Remove unused functions.
cdf4ba58
PE
1009 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
1010 (x_calc_absolute_position): Now static.
7411c686 1011 (XTread_socket): Don't define label "out" unless it's used.
2b07bcff 1012 Don't declare local "event" unless it's used.
ed7bf3a5
PE
1013 (x_iconify_frame, x_free_frame_resources): Don't declare locals
1014 unless they are used.
38d0b34a
PE
1015 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
1016 (x_fatal_error_signal): Remove; not used.
a6067996
PE
1017 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
1018 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
1019 (x_error_catcher, x_connection_closed, x_error_handler):
1020 (x_error_quitter, xembed_send_message, x_iconify_frame):
1021 (my_log_handler): Rename locals to avoid shadowing.
28f1c698 1022 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
2a8fade0 1023 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
77f23912 1024
44f230aa
SM
1025 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font):
1026 Rename or move locals to avoid shadowing.
6b463e58 1027 (tty_defined_color, merge_face_heights): Now static.
5967d051 1028 (free_realized_faces_for_fontset): Remove; not used.
1e9966ea
PE
1029 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
1030 does not deduce is never used uninitialized.
73719eba
PE
1031 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
1032 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
071048a3 1033
426994c3 1034 * terminal.c (store_terminal_param): Now static.
5489860b 1035
032f1620 1036 * xmenu.c (menu_highlight_callback): Now static.
9d66f88e 1037 (set_frame_menubar): Remove unused local.
d4323972 1038 (xmenu_show): Rename parameter to avoid shadowing.
6d1f7fee
PE
1039 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
1040 since they might point to immutable storage.
281585b0
PE
1041 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
1042 since it's unused otherwise.
032f1620 1043
367c19e5 1044 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
53df7c11 1045 Add a FIXME, since the code still doesn't look right. (Bug#8215)
9f36b9fd
PE
1046 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
1047 avoids a gcc -Wuninitialized diagnostic.
0e086e8f 1048 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
44a3a108
PE
1049 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
1050 does not deduce are never used uninitialized.
70739cbe 1051
07b48fa9
PE
1052 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
1053
8868a238 1054 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
4554d213
PE
1055 * window.c (window_loop, size_window):
1056 (run_window_configuration_change_hook, enlarge_window): Likewise.
8868a238 1057
7e5cf297 1058 * window.c (display_buffer): Now static.
d6550a9f
PE
1059 (size_window): Mark variables that gcc -Wuninitialized
1060 does not deduce are never used uninitialized.
a586633d
PE
1061 * window.h (check_all_windows): New decl, to forestall
1062 gcc -Wmissing-prototypes diagnostic.
5b555da1 1063 * dispextern.h (bidi_dump_cached_states): Likewise.
7e5cf297 1064
f6095868
PE
1065 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
1066 shadowing.
1067 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
726929c4
PE
1068 Include <limits.h>.
1069 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
1070 and to avoid gcc -Wuninitialized warning.
89ef49df
PE
1071 (load_charset_map): Mark variables that gcc -Wuninitialized
1072 does not deduce are never used uninitialized.
53df7c11 1073 (load_charset): Abort instead of using uninitialized var (Bug#8229).
f6095868 1074
f38b440c
PE
1075 * coding.c (coding_set_source, coding_set_destination):
1076 Use "else { /* comment */ }" rather than "else /* comment */;"
1077 for clarity, and to avoid gcc -Wempty-body warning.
2735d060
PE
1078 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
1079 a block, when the outer 'i' will do.
1080 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
1081 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
1082 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
1083 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
1084 (Fdecode_sjis_char, Fdefine_coding_system_internal):
1085 Rename locals to avoid shadowing.
1086 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
e2f1bab9
PE
1087 * coding.c (emacs_mule_char, encode_invocation_designation):
1088 Now static, since they're not used elsewhere.
413bb2db 1089 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
c4a63b12 1090 (decode_coding_object, encode_coding_object, detect_coding_system):
ee05f961
PE
1091 (decode_coding_emacs_mule): Mark variables that gcc
1092 -Wuninitialized does not deduce are never used uninitialized.
160b01f6
PE
1093 (detect_coding_iso_2022): Initialize a local variable that might
1094 be used uninitialized. Leave a FIXME because it's not clear that
53df7c11 1095 this initialization is needed. (Bug#8211)
5f58e762
PE
1096 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
1097 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
1098 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
1099 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
1100 Remove unused macros.
f38b440c 1101
232b38b9 1102 * category.c (hash_get_category_set): Remove unused local var.
9f3b5e69 1103 (copy_category_table): Now static, since it's not used elsewhere.
d0891610 1104 * character.c (string_count_byte8): Likewise.
232b38b9 1105
fb90da1b
PE
1106 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
1107 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
1108
fb93dbc2
PE
1109 * chartab.c (copy_sub_char_table): Now static, since it's not used
1110 elsewhere.
5c156ace
PE
1111 (sub_char_table_ref_and_range, char_table_ref_and_range):
1112 Rename locals to avoid shadowing.
bbcd0949 1113 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
fb93dbc2 1114
7d3b3862 1115 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
630d6892 1116 (BIDI_BOB): Remove unused macro.
7d3b3862 1117
6be7d3da
PE
1118 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
1119 deduce are never used uninitialized.
c2ed9c8b 1120 * term.c (encode_terminal_code): Likewise.
6be7d3da 1121
75f8807f 1122 * term.c (encode_terminal_code): Now static. Remove unused local.
72abad34 1123
50938595
PE
1124 * tparam.h: New file.
1125 * term.c, tparam.h: Include it.
1126 * deps.mk (term.o, tparam.o): Depend on tparam.h.
1127 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
1128 Move these decls to tparam.h, and make them agree with what
1129 is actually in tparam.c. The previous trick of using incompatible
1130 decls in different modules does not conform to the C standard.
1131 All callers of tparam changed to use tparam's actual API.
1132 * tparam.c (tparam1, tparam, tgoto):
1133 Use const pointers where appropriate.
1134
fbceeba2
PE
1135 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
1136 * cm.h (struct cm): Likewise.
1137 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
1138 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
1139 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
1140 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
1141 (turn_on_face, init_tty): Likewise.
1142 * termchar.h (struct tty_display_info): Likewise.
fbceeba2 1143
7f3f1250
PE
1144 * term.c (term_mouse_position): Rename local to avoid shadowing.
1145
e6ca6543
PE
1146 * alloc.c (mark_ttys): Move decl from here ...
1147 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
1148
c40f8d15
AS
11492011-03-11 Andreas Schwab <schwab@linux-m68k.org>
1150
1151 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
1152
cfe0661d
JB
11532011-03-09 Juanma Barranquero <lekktu@gmail.com>
1154
1155 * search.c (compile_pattern_1): Remove argument regp, unused since
1156 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
1157 (compile_pattern): Don't pass it.
1158
0afb4571
J
11592011-03-08 Jan Djärv <jan.h.d@swipnet.se>
1160
1161 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
1162 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
1163 for ! HAVE_GTK3.
1164 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
1165
1166 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
1167
1168 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
1169 gdk_window_get_screen, gdk_window_get_geometry,
1170 gdk_x11_window_lookup_for_display and GDK_KEY_g.
1171 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
1172 (xg_get_pixbuf_from_pixmap): New function.
1173 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
1174 to Pixmap, take frame as parameter, remove GdkColormap parameter.
1175 Call xg_get_pixbuf_from_pixmap instead of
1176 gdk_pixbuf_get_from_drawable.
1177 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
1178 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
1179 (xg_check_special_colors): Use GtkStyleContext and its functions
1180 for HAVE_GTK3.
1181 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
1182 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
1183 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
44f230aa
SM
1184 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes):
1185 Call gtk_widget_get_preferred_size.
0afb4571
J
1186 (xg_frame_resized): gdk_window_get_geometry only takes 5
1187 parameters.
44f230aa
SM
1188 (xg_win_to_widget, xg_event_is_for_menubar):
1189 Call gdk_x11_window_lookup_for_display.
0afb4571
J
1190 (xg_set_widget_bg): New function.
1191 (delete_cb): New function.
1192 (xg_create_frame_widgets): connect delete-event to delete_cb.
1193 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
1194 (xg_set_background_color): Call xg_set_widget_bg.
1195 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
1196 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
1197 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
1198 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
1199 if ! HAVE_GTK3.
1200 (update_frame_tool_bar): Call gtk_widget_hide.
1201 (xg_initialize): Use GDK_KEY_g.
1202
1203 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
1204 if ! HAVE_GTK3
1205 (x_session_initialize): Call gdk_x11_set_sm_client_id.
1206
1207 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
1208 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
1209 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
1210
1c2cc4ef
JB
12112011-03-08 Juanma Barranquero <lekktu@gmail.com>
1212
1213 * w32xfns.c (select_palette): Check success of RealizePalette against
1214 GDI_ERROR, not zero.
1215
7faeca66
BK
12162011-03-07 Ben Key <bkey76@gmail.com>
1217
1218 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
1219 (file_dialog_callback): Fix locating the window handle of the File Name
1220 text field. After disabling it, set focus on the list control.
1221 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
1222 Name text field to "Current Directory" if it does not already have
cfe0661d 1223 another value. (Bug#8181)
7faeca66 1224
cf715c3c
AR
12252011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1226
1227 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
1228 parameter for hbar cursors. Based on a patch by Ben Key
1229 <bkey76@gmail.com>.
1230
ef272f1f
CY
12312011-03-06 Chong Yidong <cyd@stupidchicken.com>
1232
1233 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
1234 change.
1235
5489860b
PE
12362011-03-06 Paul Eggert <eggert@cs.ucla.edu>
1237
5f349a89
PE
1238 current_column: Now returns EMACS_INT, fixing some iftc
1239 that was introduced in the 2002-06-02 change "temporarily"; see
1240 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
7831777b
PE
1241 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
1242 * cmds.c (internal_self_insert): Likewise.
1243 * indent.c (Fcurrent_column): Likewise.
1244 * keymap.c (describe_command): Likewise.
1245 * minibuf.c (read_minibuf): Likewise.
1246 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
1247 to int.
1248 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
1249 Likewise.
1250 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
1251 not int or double, if they might contain a column number.
1252 * indent.c (current_column, Findent_to, indented_beyond_p):
1253 (compute_motion, vmotion): Likewise.
1254 * keymap.c (describe_command): Likewise.
1255 * xdisp.c (pint2str): Likewise.
1256 * indent.c (last_known_column): Now EMACS_INT, not int.
1257 * minibuf.c (minibuf_prompt_width): Likewise.
1258 * indent.c (current_column, current_column_1, position_indentation):
1259 Return EMACS_INT, not double.
1260 * lisp.h (current_column): Likewise.
1261 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
1262 All callers changed.
1263 * lisp.h (indented_beyond_p): Likewise.
1264
e9588e2e
PE
1265 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
1266 from xdisp.c, and make static, since these are used only here.
1267 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
1268 Remove decls.
1269
1e12733b 1270 * cmds.c (internal_self_insert): Reindent to match Emacs style.
179b8720 1271 * xdisp.c (redisplay_window): Likewise.
1e12733b 1272
5489860b
PE
1273 * xdisp.c: Rename or move local decls to avoid shadowing.
1274 (init_iterator, handle_fontified_prop, handle_single_display_spec):
1275 (message_dolog, message_with_string, redisplay_internal):
1276 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
1277 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
1278 (display_line, display_string, rows_from_pos_range):
1279 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
1280 Rename or move local decls.
7b781e9f 1281 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
841081e1
PE
1282 (produce_glyphless_glyph): Make a pointer "const"
1283 since it might point to immutable storage.
cfe0661d 1284 (update_window_cursor): Now static, since it's not used elsewhere.
44f230aa 1285 (SKIP_GLYPHS): Remove unused macro.
5489860b 1286
aa248733
MS
12872011-03-06 Michael Shields <shields@msrl.com> (tiny change)
1288
1289 * window.c (Fnext_window): Doc fix. (Bug#5567)
1290
04cb6840
CY
12912011-03-05 Chong Yidong <cyd@stupidchicken.com>
1292
1293 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
1294
22c28cb8 12952011-03-02 Ken Brown <kbrown@cornell.edu>
5aef9e9a
KB
1296
1297 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1298
6c0dea8a
PE
12992011-03-02 Paul Eggert <eggert@cs.ucla.edu>
1300
1301 Work around some portability problems with symlinks.
1302
1303 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
1304 generate a special message for it. Suggested by Eli Zaretskii in
1305 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
1306 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
1307 Simplify the code by assuming that the readlink and symlink calls
1308 exist, even if they always fail on this host.
1309 (Ffile_readable_p): Likewise, for fifos.
1310 * config.in: Regenerate.
1311
52eb77a6
CY
13122011-02-27 Chong Yidong <cyd@stupidchicken.com>
1313
1314 * frame.c (store_frame_param): Don't store value directly in
1315 buffer_list and buried_buffer_list; copy the list and remove dead
1316 buffers (Bug#7898).
1317
0f7bb05d
EZ
13182011-02-27 Eli Zaretskii <eliz@gnu.org>
1319
40be44e2
EZ
1320 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
1321
01c35094 1322 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
40be44e2 1323
0f7bb05d
EZ
1324 * w32.c (symlink, readlink): New stub functions.
1325
27786b2f
PE
13262011-02-27 Paul Eggert <eggert@cs.ucla.edu>
1327
c783d15b
PE
1328 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
1329 This avoids a gcc warning in some configurations.
1330
76c1cebc
PE
1331 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
1332
0ff162fc
PE
1333 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
1334 (set_menu_bar_lines, x_get_resource_string): New decls.
1335 * msdos.c (set_menu_bar_lines): Omit decl.
1336
fdb0b28b
PE
1337 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
1338 It's always given int values and used as an int. This suppresses
1339 a gcc "comparison of unsigned expression >= 0" warning in some
1340 configurations.
1341
27786b2f
PE
1342 * dispnew.c: Rename locals to avoid shadowing.
1343 (update_text_area, scrolling_window, update_frame_1): Rename locals.
1344
09ad5a91
PE
13452011-02-26 Paul Eggert <eggert@cs.ucla.edu>
1346
1347 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
1348 (copy_glyph_row_contents): Remove; not used.
1349 (frame_row_to_window, check_current_matrix_flags):
1350 (window_change_signal): Now static, since they're not used elsewhere.
1351 (check_current_matrix_flags): Surround with "#if 0", since its
1352 only use is in a comment. Maybe both the comment and the "#if 0"
1353 stuff should be removed?
1354
d2d37ddc
PE
1355 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
1356 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
1357 contexts that actually need it.
1358
003fa8b6
EZ
13592011-02-26 Eli Zaretskii <eliz@gnu.org>
1360
1361 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
1362 (lstat): Define for DJGPP < 2.04.
1363
b1894766
PE
13642011-02-25 Paul Eggert <eggert@cs.ucla.edu>
1365
1366 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
1367 as per recent filemodestring API change. Reported by Jonas Öster in
1368 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
1369
e18c0aa3 13702011-02-23 Ben Key <bkey76@gmail.com>
2c6584e8
BK
1371
1372 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
1373 directly, for bar cursors.
1374
13752011-02-23 Chong Yidong <cyd@stupidchicken.com>
1376
1377 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
1378 into the frame's cursor_width.
1379
617a0e83
SM
13802011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
1381
1382 * print.c (print_object): Never print old-style backquotes.
1383 Obey escapeflag for hash tables as well.
1384
cce7d530 13852011-02-23 Kenichi Handa <handa@m17n.org>
e3b300a4
KH
1386
1387 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
cce7d530 1388 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
e3b300a4 1389
8d40723d
PE
13902011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1391
1392 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
1393
aa0f73d1
WJ
13942011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
1395
1396 * lread.c (openp): Correct Boolean typo in last commit.
1397
bdaa0745
AR
13982011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1399
1400 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
aa0f73d1 1401 key to Emacs, treat as unmodified (go to input manager processing).
bdaa0745 1402
f68c809d
PE
14032011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1404
1405 Assume S_ISLNK etc. work, since gnulib supports this.
1406 * config.in: Regenerate.
1407 * dired.c (lstat): Remove.
1408 (file_name_completion): Assume S_ISDIR works.
1409 (file_name_completion_stat): Assume S_ISLNK works.
1410 Do not bother calling stat unless lstat says it's a symlink.
1411 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
1412 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
1413 (check_writable, Ffile_writable_p, Fset_file_times):
1414 Assume S_ISDIR works.
1415 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
1416 fifos exist.
2f8f196d 1417 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
f68c809d
PE
1418 * filelock.c (S_ISLNK): Remove.
1419 * lread.c (openp): Assume S_ISDIR works.
1420 * xrdb.c (S_ISDIR): Remove.
1421
25c51af3
EZ
14222011-02-21 Eli Zaretskii <eliz@gnu.org>
1423
1424 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
2f8f196d 1425 lib/makefile.w32-in.
25c51af3
EZ
1426 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
1427 (GLOBAL_SOURCES): Remove filemode.c.
1428 (OBJ1): Remove $(BLD)/filemode.$(O).
1429
5c185672
PE
14302011-02-21 Paul Eggert <eggert@cs.ucla.edu>
1431
1432 Import filemode module from gnulib.
1433 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
1434 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
1435 (filemode.o): Remove; this is now in ../lib.
1436 * dired.c: Include <filemode.h>.
1437 (filemodestring): Remove now-redundant decl.
1438 * config.in: Regenerate.
1439
32159fc3
CS
14402011-02-20 Eli Zaretskii <eliz@gnu.org>
1441
1442 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
1443 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
1444
2f8f196d 14452011-02-20 Christoph Scholtes <cschol2112@gmail.com>
32159fc3
CS
1446
1447 * makefile.w32-in: Remove md5.$(O).
1448 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
1449 lib/makefile.w32-in.
1450
61353ac8 14512011-02-20 Paul Eggert <eggert@cs.ucla.edu>
ff05203e 1452
61353ac8
PE
1453 Import crypto/md5 and stdint modules from gnulib.
1454 * Makefile.in (base_obj): Remove md5.o, since this file
1455 is in lib now.
1456 * config.in: Regenerate.
1457 * md5.h, md5.h: Move to ../lib.
1458 * deps.mk (md5.o): Remove.
1459 (fns.o): Depend on ../lib/md5.h, not md5.h.
1460
9d9d12cd
EZ
14612011-02-19 Eli Zaretskii <eliz@gnu.org>
1462
f601db19
EZ
1463 * termcap.c (tputs): Don't declare baud_rate.
1464
9d9d12cd
EZ
1465 * s/msdos.h (strtold): Define to _strtold.
1466
aa56f361
SM
14672011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1468
cbe81f1d
SM
1469 * process.c (Fstart_process, Fmake_serial_process)
1470 (Fmake_network_process, server_accept_connection):
1471 Use empty_unibyte_string.
1472
1473 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
1474
aa56f361
SM
1475 * lread.c (Qdir_ok): New constant.
1476 (syms_of_lread): Initialize it.
1477 (openp): Don't ignore directories if the predicate returns dir-ok.
1478
d6de49a1
EZ
14792011-02-18 Eli Zaretskii <eliz@gnu.org>
1480
42af913d
EZ
1481 * xdisp.c (display_line): Fix the change made for bug#7939.
1482
d6de49a1
EZ
1483 * terminal.c (create_terminal): Use default-keyboard-coding-system
1484 and default-terminal-coding-system to initialize coding systems of
1485 the new terminal. (Bug#7840)
1486
b286858c
SM
14872011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1488
1489 * lisp.h (BYTE_MARK_STACK): New macro.
1490 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
1491
1492 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
1493 (struct byte_stack): Only define `top' and `bottom' if used.
1494 (mark_byte_stack): Only define if used.
1495 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
1496 is not set.
1497 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
1498
1499 * term.c (OUTPUT_IF): Use OUTPUT.
1500
1501 * alloc.c (Fgarbage_collect): When using stack scanning, don't
1502 redundantly scan byte-code stacks, catchlist, and handlerlist.
1503
124c9ff0
JD
15042011-02-17 Jan Djärv <jan.h.d@swipnet.se>
1505
1506 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
1507 (Fns_read_file_name): Replace B_ with BVAR.
1508
1509 * nsterm.m (ns_term_init): Use KVAR.
1510
05c65251
EZ
15112011-02-16 Eli Zaretskii <eliz@gnu.org>
1512
026d69ec
EZ
1513 * msdos.c (internal_terminal_init): Use KVAR.
1514
05c65251
EZ
1515 * w32fns.c (Fx_create_frame): Use KVAR.
1516
1517 * w32term.c (w32_create_terminal): Use KVAR.
1518
1519 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
eef5ce6e 1520 (getloadavg): Declare prototype which was removed from lisp.h.
05c65251
EZ
1521
1522 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
1523
b286858c
SM
1524 * fileio.c (Finsert_file_contents, Fwrite_region):
1525 Remove references to buffer_file_type.
05c65251
EZ
1526 (syms_of_fileio): Don't intern and staticpro
1527 find-buffer-file-type.
1528
1529 * callproc.c (syms_of_callproc): Remove references to
1530 buffer_file_type.
1531
1532 * buffer.c (reset_buffer_local_variables): Don't set
1533 buffer_file_type.
1534 (init_buffer_once): Likewise.
1535 (syms_of_buffer): Don't define buffer-file-type.
1536
1537 * buffer.h (struct buffer): Remove buffer_file_type.
1538
1344aad4
TT
15392011-02-16 Tom Tromey <tromey@parfait>
1540
15f58304
EZ
1541 * callint.c (Fcall_interactively): Update for change to field names.
1542 * doc.c (Fsubstitute_command_keys): Update for change to field names.
1543 * cmds.c (Fself_insert_command): Update for change to field names.
1344aad4 1544 * keymap.c (Fcurrent_active_maps, Fkey_binding)
15f58304 1545 (Fdescribe_buffer_bindings): Update for change to field names.
1344aad4
TT
1546 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
1547 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
15f58304 1548 Update for change to field names.
1344aad4
TT
1549 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
1550 (echo_length, echo_truncate, cmd_error, command_loop_1)
1551 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
1552 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
1553 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
1554 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
15f58304
EZ
1555 Update for change to field names.
1556 * xfns.c (Fx_create_frame): Update for change to field names.
1557 * xterm.c (x_connection_closed, x_term_init): Update for change to
1558 field names.
1344aad4 1559 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
15f58304 1560 Update for change to field names.
1344aad4 1561 * window.c (window_scroll_pixel_based, window_scroll_line_based):
15f58304 1562 Update for change to field names.
1344aad4 1563 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
15f58304 1564 (delete_frame): Update for change to field names.
1344aad4
TT
1565 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
1566 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
1567 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
1568
eb4916d7
TT
15692011-02-16 Tom Tromey <tromey@redhat.com>
1570
1571 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
1572
4b4deea2
TT
15732011-02-16 Tom Tromey <tromey@parfait>
1574
1575 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
1576 * xfaces.c (compute_char_face): Replace B_ with BVAR.
1577 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1578 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1579 (with_echo_area_buffer, setup_echo_area_for_printing)
1580 (set_message_1, update_menu_bar, update_tool_bar)
1581 (text_outside_line_unchanged_p, redisplay_internal)
1582 (try_scrolling, try_cursor_movement, redisplay_window)
1583 (try_window_reusing_current_matrix, row_containing_pos)
1584 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1585 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1586 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1587 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
1588 BVAR.
1589 * window.c (window_display_table, unshow_buffer, window_loop)
1590 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1591 (select_window, Fforce_window_update, temp_output_buffer_show)
1592 (Fset_window_configuration, save_window_save): Replace B_ with
1593 BVAR.
1594 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
1595 Replace B_ with BVAR.
1596 * undo.c (record_point, record_insert, record_delete)
1597 (record_marker_adjustment, record_first_change)
1598 (record_property_change, Fundo_boundary, truncate_undo_list)
1599 (Fprimitive_undo): Replace B_ with BVAR.
1600 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
1601 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
1602 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1603 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1604 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
1605 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1606 (string_match_1, fast_looking_at, newline_cache_on_off)
1607 (search_command, search_buffer, simple_search, boyer_moore)
1608 (Freplace_match): Replace B_ with BVAR.
1609 * process.c (get_process, list_processes_1, Fstart_process)
1610 (Fmake_serial_process, Fmake_network_process)
1611 (read_process_output, send_process, exec_sentinel)
1612 (status_notify, setup_process_coding_systems): Replace B_ with
1613 BVAR.
1614 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
1615 (strout, print_string, temp_output_buffer_setup, print_object):
1616 Replace B_ with BVAR.
1617 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
b286858c
SM
1618 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
1619 Replace B_ with BVAR.
4b4deea2
TT
1620 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1621 (set_marker_both, set_marker_restricted_both, unchain_marker):
1622 Replace B_ with BVAR.
1623 * lread.c (readchar, unreadchar, openp, readevalloop)
1624 (Feval_buffer, Feval_region): Replace B_ with BVAR.
1625 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
1626 * keymap.c (Flocal_key_binding, Fuse_local_map)
1627 (Fcurrent_local_map, push_key_description)
1628 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
1629 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1630 (read_key_sequence): Replace B_ with BVAR.
1631 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
1632 * intervals.c (set_point_both, get_local_map): Replace B_ with
1633 BVAR.
1634 * insdel.c (check_markers, insert_char, insert_1_both)
1635 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1636 (adjust_after_replace, replace_range, del_range_2)
1637 (modify_region, prepare_to_modify_buffer)
1638 (Fcombine_after_change_execute): Replace B_ with BVAR.
1639 * indent.c (buffer_display_table, recompute_width_table)
1640 (width_run_cache_on_off, current_column, scan_for_column)
1641 (Findent_to, position_indentation, compute_motion, vmotion):
1642 Replace B_ with BVAR.
1643 * fringe.c (get_logical_cursor_bitmap)
1644 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1645 with BVAR.
1646 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1647 * font.c (font_at): Replace B_ with BVAR.
1648 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1649 Replace B_ with BVAR.
1650 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1651 (unlock_buffer): Replace B_ with BVAR.
1652 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1653 (Ffile_regular_p, Ffile_selinux_context)
1654 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1655 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1656 (Finsert_file_contents, choose_write_coding_system)
1657 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1658 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1659 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1660 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1661 (save_excursion_restore, Fprevious_char, Fchar_before)
1662 (general_insert_function, Finsert_char, Finsert_byte)
1663 (make_buffer_string_both, Finsert_buffer_substring)
1664 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1665 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1666 (Ftranslate_region_internal, save_restriction_restore)
1667 (Fchar_equal): Replace B_ with BVAR.
1668 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1669 * dispextern.h (WINDOW_WANTS_MODELINE_P)
1670 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1671 * dired.c (directory_files_internal): Replace B_ with BVAR.
1672 * data.c (swap_in_symval_forwarding, set_internal)
1673 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1674 Replace B_ with BVAR.
1675 * composite.c (fill_gstring_header)
1676 (composition_compute_stop_pos, composition_adjust_point)
1677 (Ffind_composition_internal): Replace B_ with BVAR.
1678 * coding.c (decode_coding, encode_coding)
1679 (make_conversion_work_buffer, decode_coding_gap)
1680 (decode_coding_object, encode_coding_object)
1681 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1682 (Funencodable_char_position, Fcheck_coding_systems_region):
1683 Replace B_ with BVAR.
1684 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1685 with BVAR.
1686 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1687 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1688 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1689 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1690 * category.h (Vstandard_category_table): Replace B_ with BVAR.
1691 * category.c (check_category_table, Fcategory_table)
1692 (Fset_category_table, char_category_set): Replace B_ with BVAR.
1693 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1694 BVAR.
1695 * casefiddle.c (casify_object, casify_region): Replace B_ with
1696 BVAR.
1697 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1698 with BVAR.
1699 * callint.c (check_mark, Fcall_interactively): Replace B_ with
1700 BVAR.
1701 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1702 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1703 with BVAR.
1704 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1705 (get_truename_buffer, Fget_buffer_create)
1706 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1707 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1708 (Fbuffer_local_value, buffer_lisp_local_variables)
1709 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1710 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1711 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1712 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1713 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1714 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1715 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1716 (record_overlay_string, overlay_strings, init_buffer_once)
1717 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1718
8678d9e4 17192011-02-16 Eli Zaretskii <eliz@gnu.org>
a73d395b
EZ
1720
1721 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1722 window is changed inside calls to do_pending_window_change.
1723 (Bug#8020)
1724
1f5d53eb
PE
17252011-02-16 Paul Eggert <eggert@cs.ucla.edu>
1726
1727 Remove no-longer needed getloadavg symbols.
1728 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1729 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1730 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1731 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1732 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1733 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1734 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1735 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1736 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1737 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
1738 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
1739 (LDAV_SYMBOL): Remove.
1740 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
1741 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1742
1743 Import getloadavg module from gnulib.
1744 * deps.mk (getloadavg.o): Remove; gnulib now does this.
1745 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
1746 now does this.
1747 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
1748 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
1749 * config.in: Regenerate.
1750
8017fd6b
EZ
17512011-02-15 Eli Zaretskii <eliz@gnu.org>
1752
1753 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1754
75b43359
MWD
17552011-02-14 Michael Welsh Duggan <md5i@md5i.com>
1756
1757 * print.c (float_to_string): Ensure that a decimal point is
1758 printed if using dtoastr (Bug#8033).
1759
fc3ca113
EZ
17602011-02-14 Eli Zaretskii <eliz@gnu.org>
1761
1f5d53eb 1762 * msdos.c (IT_frame_up_to_date):
ef72f149
EZ
1763 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1764
fc3ca113
EZ
1765 * dired.c (directory_files_internal):
1766 * fileio.c (Finsert_file_contents):
1767 * insdel.c (prepare_to_modify_buffer):
1768 * xdisp.c (pos_visible_p):
1769 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1770 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1771 Use B_ for the MS-Windows build.
1772
3928f2b6
JD
17732011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1774
1775 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1776 resource that specifies helvetica for menus and dialogs.
1777
1778 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
1779 (apply_systemfont_to_menu): Set resources *menubar*font and
1780 *popup*font. Remove defflt.
b286858c
SM
1781 (set_frame_menubar, create_and_show_popup_menu):
1782 Call apply_systemfont_to_menu before lw_create_widget.
3928f2b6 1783
4bb81cc2
TT
17842011-02-14 Tom Tromey <tromey@redhat.com>
1785
fc3ca113
EZ
1786 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
1787
4bb81cc2
TT
1788 * keyboard.h: Remove obsolete comment.
1789
5d8ea120
TT
17902011-02-14 Tom Tromey <tromey@parfait>
1791
1792 * composite.c (fill_gstring_header)
1793 (composition_compute_stop_pos, composition_adjust_point)
1794 (Ffind_composition_internal): Use B_.
1795 * intervals.c (set_point_both, get_local_map): Use B_.
1796 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
1797 * process.c (get_process, list_processes_1, Fstart_process)
1798 (Fmake_serial_process, Fmake_network_process)
1799 (read_process_output, send_process, exec_sentinel)
1800 (status_notify, setup_process_coding_systems): Use B_.
1801 * bytecode.c (Fbyte_code): Use B_.
1802 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1803 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1804 (skip_syntaxes, scan_lists): Use B_.
1805 * lread.c (readchar, unreadchar, openp, readevalloop)
1806 (Feval_buffer, Feval_region): Use B_.
1807 * print.c (printchar, strout, print_string, PRINTDECLARE)
1808 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
1809 (print_object): Use B_.
1810 * font.c (font_at): Use B_.
b286858c
SM
1811 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1812 Use B_.
5d8ea120
TT
1813 * callint.c (check_mark, Fcall_interactively): Use B_.
1814 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1815 (save_excursion_restore, Fprevious_char, Fchar_before)
1816 (general_insert_function, Finsert_char, Finsert_byte)
1817 (make_buffer_string_both, Finsert_buffer_substring)
1818 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1819 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1820 (Ftranslate_region_internal, save_restriction_restore)
1821 (Fchar_equal): Use B_.
1822 * data.c (swap_in_symval_forwarding, set_internal)
1823 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1824 Use B_.
1825 * undo.c (record_point, record_insert, record_delete)
1826 (record_marker_adjustment, record_first_change)
1827 (record_property_change, Fundo_boundary, truncate_undo_list)
1828 (Fprimitive_undo): Use B_.
1829 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1830 (string_match_1, fast_looking_at, newline_cache_on_off)
1831 (search_command, search_buffer, simple_search, boyer_moore)
1832 (Freplace_match): Use B_.
1833 * indent.c (buffer_display_table, recompute_width_table)
1834 (width_run_cache_on_off, current_column, scan_for_column)
b286858c
SM
1835 (Findent_to, position_indentation, compute_motion, vmotion):
1836 Use B_.
5d8ea120
TT
1837 * casefiddle.c (casify_object, casify_region): Use B_.
1838 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
1839 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
1840 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1841 (Ffile_regular_p, Ffile_selinux_context)
1842 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1843 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1844 (Finsert_file_contents, choose_write_coding_system)
1845 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1846 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1847 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
1848 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
1849 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
b286858c
SM
1850 (set_marker_both, set_marker_restricted_both, unchain_marker):
1851 Use B_.
5d8ea120
TT
1852 * insdel.c (check_markers, insert_char, insert_1_both)
1853 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1854 (adjust_after_replace, replace_range, del_range_2)
1855 (modify_region, prepare_to_modify_buffer)
1856 (Fcombine_after_change_execute): Use B_.
1857 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1858 (unlock_buffer): Use B_.
1859 * keymap.c (Flocal_key_binding, Fuse_local_map)
1860 (Fcurrent_local_map, push_key_description)
1861 (Fdescribe_buffer_bindings): Use B_.
1862 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1863 (read_key_sequence): Use B_.
1864 * fringe.c (get_logical_cursor_bitmap)
1865 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
1866 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
1867 * xfaces.c (compute_char_face): Use B_.
1868 * character.c (chars_in_text, Fget_byte): Use B_.
1869 * category.c (check_category_table, Fcategory_table)
1870 (Fset_category_table, char_category_set): Use B_.
1871 * coding.c (decode_coding, encode_coding)
1872 (make_conversion_work_buffer, decode_coding_gap)
1873 (decode_coding_object, encode_coding_object)
1874 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
b286858c
SM
1875 (Funencodable_char_position, Fcheck_coding_systems_region):
1876 Use B_.
5d8ea120
TT
1877 * charset.c (Ffind_charset_region): Use B_.
1878 * window.c (window_display_table, unshow_buffer, window_loop)
1879 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1880 (select_window, Fforce_window_update, temp_output_buffer_show)
1881 (Fset_window_configuration, save_window_save): Use B_.
1882 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1883 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1884 (with_echo_area_buffer, setup_echo_area_for_printing)
1885 (set_message_1, update_menu_bar, update_tool_bar)
1886 (text_outside_line_unchanged_p, redisplay_internal)
1887 (try_scrolling, try_cursor_movement, redisplay_window)
1888 (try_window_reusing_current_matrix, row_containing_pos)
1889 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1890 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1891 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1892 (get_window_cursor_type, note_mouse_highlight): Use B_.
1893 * frame.c (make_frame_visible_1): Use B_.
1894 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
1895 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
1896 (WINDOW_WANTS_MODELINE_P): Use B_.
1897 * syntax.h (Vstandard_syntax_table): Update.
1898 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
1899 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
1900 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
1901 * character.h (FETCH_CHAR_ADVANCE): Update.
1902 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
1903 * category.h (Vstandard_category_table): Update.
1904 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
1905 names.
1906 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
1907 * buffer.c (swapfield_): New macro.
1908 (Fbuffer_swap_text): Use swapfield_ where appropriate.
1909 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
1910 (Fget_buffer_create, clone_per_buffer_values)
1911 (Fmake_indirect_buffer, reset_buffer)
1912 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1913 (Fbuffer_local_value, buffer_lisp_local_variables)
1914 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1915 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1916 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1917 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1918 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1919 (Fbuffer_swap_text, Fset_buffer_multibyte)
1920 (swap_out_buffer_local_variables, record_overlay_string)
1921 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
1922 Use B_.
1923 * buffer.h (struct buffer): Rename all Lisp_Object fields.
1924 (BUFFER_INTERNAL_FIELD, B_): New macro.
1925 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
1926
42f60557
JD
19272011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1928
1929 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
1930 is null.
1931
2f9a22e2
J
19322011-02-13 Jan Djärv <jan.h.d@swipnet.se>
1933
1934 * callproc.c (Fcall_process):
1935 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
1936 comment.
1937
84eb0351 19382011-02-12 Martin Rudalics <rudalics@gmx.at>
bae1fa42
MR
1939
1940 * window.c (select_window): Check inhibit_point_swap argument when
1941 deciding whether to return immediately.
1942
84eb0351 19432011-02-12 Jan Djärv <jan.h.d@swipnet.se>
9aabf64c
JD
1944
1945 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
1946 zero (Bug#7348).
1947
84eb0351
CY
19482011-02-12 Chong Yidong <cyd@stupidchicken.com>
1949
1950 * config.in (TERMINFO): New definition.
1951
1952 * s/netbsd.h: Use it to choose between terminfo and termcap
1953 (Bug#7642).
1954
33d605d0
PE
19552011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1956
1957 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
1958 The difference doesn't matter here, in practice, and sizeof is
1959 more portable to non-GCC compilers. Also, this makes the code
1960 match the already-existing comment.
1961
c0ad4ea5
AS
19622011-02-12 Andreas Schwab <schwab@linux-m68k.org>
1963
1964 * process.c (create_process): Reset SIGPIPE handler in the child.
1965 * callproc.c (Fcall_process): Likewise. (Bug#5238)
1966
50fd938f
EZ
19672011-02-12 Eli Zaretskii <eliz@gnu.org>
1968
1969 * xdisp.c <this_line_min_pos>: New variable.
1970 (move_it_in_display_line_to): Record in this_line_min_pos the
1971 smallest position iterated across.
1972 (display_line): Use this_line_min_pos to record the smallest
1973 position in the line even if it is not displayed due to
1974 hscrolling. (Bug#7939)
1975
af59aa6e
PE
19762011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1977
cec81b22
PE
1978 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
1979 * md5.h (ATTRIBUTE_ALIGNED): New macro.
1980 (struct md5_ctx): Use it.
1981
af59aa6e
PE
1982 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
1983 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
1984 defined.
1985 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
1986 FC_HINT_STYLE is supported.
1987
02c3706c
JD
19882011-02-11 Jan Djärv <jan.h.d@swipnet.se>
1989
1990 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
1991 Make sure we don't do x_catch_errors twice.
1992
5ac75e8f
GM
19932011-02-10 Glenn Morris <rgm@gnu.org>
1994
1995 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
1996
d37f40ed
EZ
19972011-02-09 Eli Zaretskii <eliz@gnu.org>
1998
5ac75e8f
GM
1999 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
2000 New macros.
d37f40ed
EZ
2001 (globals.h, gl-stamp): New targets.
2002 (clean): Clean gl-stamp and globals.h.
2003
33cd3ee4
AS
20042011-02-09 Andreas Schwab <schwab@linux-m68k.org>
2005
2006 * Makefile.in (gl-stamp): Create globals.h here.
2007 (globals.h): Don't do it here.
2008 (mostlyclean): Clean globals.h and gl-stamp.
2009
f9f2e7f5
PE
20102011-02-09 Paul Eggert <eggert@cs.ucla.edu>
2011
2012 * Makefile.in ($(otherobj)): Depend on globals.h.
2013 Otherwise 'make -j10' failed on my host, because the build lacked
2014 necessary dependencies, e.g., vm-limit.o depends on globals.h.
2015
00b3c7ac
TT
20162011-02-08 Tom Tromey <tromey@redhat.com>
2017
2018 * Makefile.in (NS_OBJC_OBJ): New variable.
2019 (base_obj): Rename from 'obj'.
2020 (obj): New variable.
2021 (globals.h, gl-stamp, $(obj)): New targets.
2022 (GLOBAL_SOURCES): New variable.
2023 * globals.h: Remove.
2024 * nsselect.m (Vselection_alist): Define. Reverts part of
2025 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
2026 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
2027 variable.
2028 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
2029
8f3b2e12
KH
20302011-02-08 Kenichi Handa <handa@m17n.org>
2031
2032 * font.c (Ffont_get): Do not cache :otf value.
2033
4f043d0f
PE
20342011-02-07 Paul Eggert <eggert@cs.ucla.edu>
2035
2036 conform to C89 pointer rules
2037
2038 * dired.c (scmp, file_name_completion):
2039 Change types between char * and unsigned char *, to satisfy C89
2040 rules about pointer type compatibility.
47ce90e4 2041 * casefiddle.c (casify_object, casify_region): Likewise.
a7e979a4 2042 * search.c (Freplace_match, Fregexp_quote): Likewise.
90256841
PE
2043 * alloc.c (make_string, make_specified_string, make_pure_string):
2044 Likewise.
57ace6d0 2045 * data.c (Fstring_to_number): Likewise.
09125ef8
PE
2046 * print.c (float_to_string, PRINTFINISH, printchar, strout):
2047 (print_object): Likewise.
e7f8264d
PE
2048 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
2049 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
2050 (Fformat): Likewise.
a2db9982 2051 * callint.c (Fcall_interactively): Likewise.
f1e59824
PE
2052 * fns.c (string_make_multibyte, string_to_multibyte):
2053 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
2054 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
2055 Likewise.
4a25e32a 2056 * lread.c (read1, hash_string): Likewise.
400a67ff
PE
2057 * process.c (read_process_output, send_process, Fprocess_send_region):
2058 Likewise.
0ca76b1e 2059 * callproc.c (Fcall_process): Likewise.
7469ef5d
PE
2060 * doprnt.c (doprnt): Likewise.
2061 * indent.c (compute_motion): Likewise.
efe0234f 2062 * xfont.c (xfont_decode_coding_xlfd): Likewise.
3ce2f8ac 2063 * ralloc.c (resize_bloc): Likewise.
b19beacc 2064 * image.c (tiff_load): Likewise.
c45e5276 2065 * xml.c (make_dom, parse_region): Likewise.
7469ef5d
PE
2066 * character.c (strwidth): Make its argument const char *, not const
2067 unsigned char *, since more callers prefer it that way. All callers
2068 changed.
4f043d0f 2069
9eee99eb
PE
20702011-02-06 Paul Eggert <eggert@cs.ucla.edu>
2071
4c83cffc
PE
2072 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
2073 Emacs assumes two's complement elsewhere, but the assumption is
2074 easy to remove here, and this suppresses a warning with Sun C 5.8.
2075
82470039
PE
2076 conform to C89 pointer rules
2077
2078 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
2079 (same_x_server, x_term_init):
9eee99eb
PE
2080 Change types between char * and unsigned char *, to satisfy C89
2081 rules about pointer type compatibility.
82470039
PE
2082 * doc.c (get_doc_string, Fsnarf_documentation):
2083 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
2084 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
2085 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 2086 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
2087 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
2088 Likewise.
01c9aa3a 2089 * keymap.c (Ftext_char_description): Likewise.
637de37e 2090 * minibuf.c (Fread_buffer): Likewise.
5976c3fe
PE
2091 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
2092 (DRIVE_LETTER) [defined DOS_NT]:
2093 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
2094 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
2095 (search_embedded_absfilename, Fsubstitute_in_file_name):
2096 (barf_or_query_if_file_exists, Fmake_directory_internal):
2097 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
2098 (Finsert_file_contents, Fwrite_region):
2099 Likewise.
b68864e5
PE
2100 * insdel.c (insert, insert_and_inherit, insert_before_markers):
2101 (insert_before_markers_and_inherit, insert_1, insert_1_both):
2102 Likewise. This changes these functions' signatures, which is
2103 more convenient since most callers use char *. All remaining
2104 callers changed.
2105 * editfns.c (general_insert_function): Change signature to
2106 match changes to insert functions' signatures.
b286858c
SM
2107 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
2108 Use explicit cast when converting between void * and function pointer
01c9aa3a 2109 types, as C89 requires this.
9eee99eb 2110
32299e33
PE
21112011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2112
2113 don't ignore chdir failure
2114 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
2115 failure and exit.
2116 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
2117 remaining unchecked chdir calls in this function; some DOS/NT
2118 expert needs to fix them.
2119 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
2120 in this function; some NextStep expert needs to fix them.
2121
233ba4d9 21222011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
2123
2124 * xfaces.c (Finternal_set_lisp_face_attribute):
2125 Try to clarify some error messages. (Bug#2659)
2126
233ba4d9 21272011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
2128
2129 * editfns.c (save_restriction_restore): Don't forget to invalidate the
2130 current_column cache (bug#7946).
2131
233ba4d9 21322011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
2133
2134 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
2135
2136 * xftfont.c (xftfont_open): Likewise.
2137
233ba4d9 21382011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
2139
2140 * window.c (Fselect_window): Add missing return value.
2141
d67985d3
PE
21422011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2143
25a48bd0
PE
2144 xstrcasecmp: conform to C89 pointer rules
2145 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
2146 to const char *, since they're usually low-level C strings, and
2147 this stays compatible with C89 pointer rules. All callers changed.
2148
2f8f196d 2149 * charset.c: Conform to C89 pointer rules.
dfb6afda
PE
2150 (define_charset_internal): Switch between char * and unsigned char *.
2151
2f8f196d 2152 * xmenu.c: Conform to C89 const rules.
cc618f4e
PE
2153 (xmenu_show, xdialog_show): Declare local var as char *, not
2154 const char *, to stay compatible with C89 const rules.
2155
2f8f196d 2156 * xdisp.c: Conform to C89 pointer rules.
9bcaafce
PE
2157 (store_mode_line_noprop, display_string, reseat_to_string):
2158 (c_string_pos, number_of_chars, message_dolog):
2159 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
2160 (display_mode_element, display_string):
2161 Switch between char * and unsigned char * to stay compatible wth
2162 C89 pointer rules.
2163
2f8f196d 2164 * regex.c: Conform to C89 pointer rules.
5b0534c8
PE
2165 (re_wctype): Add cast, as C89 does not allow assigning between
2166 char * and unsigned char *.
2167 (regex_compile): Likewise.
2168
d67985d3
PE
2169 sync from gnulib to remove HAVE_STDBOOL_H
2170 * config.in: Regenerate.
2171
a5d733f5
EZ
21722011-02-04 Eli Zaretskii <eliz@gnu.org>
2173
f90e08f5
EZ
2174 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
2175 Replace all uses of lisp.h with $(LISP_H), and all uses of
2176 process.h with $(PROCESS_H).
2177 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
2178 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
2179
be50df37
EZ
2180 * deps.mk: Update for recent changes: gnutls support, gnulib
2181 imports, addition of globals.h.
2182
f90e08f5
EZ
2183 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
2184 ../lib/ignore-value.h.
a5d733f5 2185
67342916
PE
21862011-02-03 Paul Eggert <eggert@cs.ucla.edu>
2187
2188 allow C code to suppress warnings about ignored return values
2189
2190 We need to go through the code and for each such warning, either
2191 fix the code to pay attention to the returned value, or tell GCC
2192 that we really do want to ignore the returned value. Here is one
2193 example of how to do the latter.
2194 * sysdep.c: Include <ignore-value.h>.
2195 (sys_subshell): Suppress an undesirable warning about not checking
2196 the returned value of 'write', as there's nothing useful one can
2197 do with that returned value.
2198
36941b32
JD
21992011-02-03 Jan Djärv <jan.h.d@swipnet.se>
2200
2201 * xterm.c (x_connection_closed): Remove all calls that calls
2202 XSync (Bug#7949).
2203
3082f617
EZ
22042011-02-01 Eli Zaretskii <eliz@gnu.org>
2205
2206 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
2207 TIFFClientOpen.
2208
4df0af9b
JD
22092011-02-01 Jan Djärv <jan.h.d@swipnet.se>
2210
2211 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
2212 (x_session_check_input): Change args and return type so it can be used
2213 as argument to add_read_fd. Make static. Remove call to select.
2214 Call kbd_buffer_store_event for emacs_event.
2215 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
2216 (ice_conn_watch_CB): Call add_read_fd.
2217
2218 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
2219 x_session_check_input.
2220 (x_session_initialized): Remove definition.
2221 (x_initialize): Remove setting of x_session_initialized.
2222
2223 * xterm.h (x_session_check_input): Remove declaration.
2224
a4180391
PE
22252011-02-01 Paul Eggert <eggert@cs.ucla.edu>
2226
2227 format-time-string now supports subsecond time stamp resolution
b286858c 2228 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
a4180391
PE
2229 for consistency with its new argument and with gnulib nstrftime.
2230 All callers changed. New argument NS.
2231 (Fformat_time_string): Check that the time argument's microseconds
2232 component, if any, is in range; this avoids integer overflow and
2233 also nstrftime needs this. Document %N.
2234
14beddf4 22352011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
2236
2237 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
2238 of int. All uses adjusted.
2239 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
2240 (svg_load_image): Remove casts.
2241
14beddf4 22422011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
2243
2244 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
2245 function definitions for compiling with libpng-1.5.
2246 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
2247 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
2248 (Bug#7908).
2249
70b0d280
EZ
22502011-01-31 Eli Zaretskii <eliz@gnu.org>
2251
8b3c625b
EZ
2252 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
2253
70b0d280
EZ
2254 * makefile.w32-in (OBJ2): Remove strftime.$(O).
2255 ($(BLD)/strftime.$(O)): Remove prerequisites.
2256
16fab143
PE
22572011-01-31 Paul Eggert <eggert@cs.ucla.edu>
2258
2259 src/emacs.c now gets version number from configure.in
2260 * emacs.c (emacs_version): Set to VERSION so that it
2261 is determined automatically from ../configure.in.
2262
546961a9
JM
22632011-01-31 Jim Meyering <meyering@redhat.com>
2264
2265 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
2266 Use xmalloc rather than malloc.
2267
42a5b22f
PE
22682011-01-30 Paul Eggert <eggert@cs.ucla.edu>
2269
16c3e636
PE
2270 strftime: import from gnulib
2271 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
2272 * deps.mk (strftime.o): Remove.
2273 * editfns.c: Include <strftime.h>, supplied by gnulib.
2274 (emacs_strftimeu): Remove decl.
2275 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
2276 emacs_strftimeu.
2277 * config.in: Regenerate.
2278 * strftime.c: Remove; we now use strftime from gnulib.
2279
42a5b22f
PE
2280 Use SSDATA when the context wants char *.
2281 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
2282 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
2283 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
2284 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
2285 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
2286 Use SSDATA (not SDATA) when the context of the expression wants
2287 char * (not unsigned char *).
2288
2787bba3
JD
22892011-01-30 Jan Djärv <jan.h.d@swipnet.se>
2290
2291 * .gdbinit: Read global lisp variables as globals.f_V*.
2292
4ec88040
AS
22932011-01-30 Andreas Schwab <schwab@linux-m68k.org>
2294
2295 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
2296 All uses changed.
2297 (PROP_SAVE): Likewise.
2298
b6bcd048
CY
22992011-01-29 Chong Yidong <cyd@stupidchicken.com>
2300
2301 * keyboard.c (make_lispy_position): Fix typo in last change
2302 (Bug#7935).
2303
f915f0f7
EZ
23042011-01-29 Eli Zaretskii <eliz@gnu.org>
2305
2306 * s/ms-w32.h (HAVE_MKTIME): Remove.
2307
2308 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
2309 (GNULIB): New variable.
2310 (LIBS): Add $(GNULIB).
2311 $(TEMACS): Depend on $(GNULIB).
2312 <top-level>: Fix font-lock disrupted by a lone `"'.
2313
497a1925
JD
23142011-01-29 Jan Djärv <jan.h.d@swipnet.se>
2315
2316 * nsselect.m (ns_string_from_pasteboard): Get length of string
2317 and use make_string instead of build_string (Bug#7934).
2318 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
2319 instead of stringWithUTF8String (Bug#7934).
2320
2f8f196d 23212011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
481ae085 2322
2f8f196d
JB
2323 * nsfont.m (nsfont_open): Ensure that fonts with inexact
2324 descenders would not become one pixel too tall (Bug#7887).
481ae085 2325
6b918613
CY
23262011-01-28 Chong Yidong <cyd@stupidchicken.com>
2327
2328 * keyboard.c (make_lispy_position): For clicks on right fringe or
2329 margin, compute text position using the X coordinate relative to
2330 the left of the text area (Bug#7839).
2331
9e269017
KH
23322011-01-28 Kenichi Handa <handa@m17n.org>
2333
2334 * ftfont.c (ftfont_spec_pattern): Check each extra property
2335 value.
2336
17dd1fc8
SM
23372011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
2338
2339 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
2340
372fb76b
CY
23412011-01-27 Chong Yidong <cyd@stupidchicken.com>
2342
2343 * font.c (font_parse_fcname): Undefine a temporary macro.
2344
e7f7fbaa
SM
23452011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
2346
2347 Let the debugger continue to the normal handler (bug#7825).
2348 * eval.c (maybe_call_debugger): Declare before new use.
2349 (find_handler_clause): Don't call debugger any more.
2350 Ignore Vstack_trace_on_error.
2351 Use XCAR/XCDR.
2352 (syms_of_eval): Remove Vstack_trace_on_error.
2353 (Fsignal): Only modify handlerlist when we know we need to do it.
2354 Call the debugger when necessary.
2355 * globals.h (Vstack_trace_on_error): Remove.
2356
6608a7d8
CY
23572011-01-26 Chong Yidong <cyd@stupidchicken.com>
2358
2359 * font.c (font_parse_fcname): Rewrite GTK font name parser.
2360
06d8ace5 23612011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
2362
2363 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
2364 the buffer's point-max (bug#7876).
2365
06d8ace5 23662011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
2367
2368 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 2369 Remove unused case (Bug#6811).
19634648 2370
8ab70320
JD
23712011-01-23 Jan Djärv <jan.h.d@swipnet.se>
2372
2373 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
2374 setFrameTopLeftPoint is constrained.
2375
51b59d79
PE
23762011-01-23 Paul Eggert <eggert@cs.ucla.edu>
2377
9055082e
PE
2378 Check return values of some library calls.
2379 * emacs.c (main): Check dup result.
2380 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
2381 (frame_name_fnn_p): Check strtol result.
2382
5c7d01a5 2383 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
2384 when calling XpmCreatePixmapFromData.
2385
51b59d79
PE
2386 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
2387 * lisp.h (SSDATA): New macro.
2388 All uses of (char *) SDATA (x) replaced with SSDATA (x),
2389 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
2390 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
2391 * xsmfns.c (SSDATA): Likewise.
2392
e6b84b30
MR
23932011-01-22 Martin Rudalics <rudalics@gmx.at>
2394
2395 * window.c (select_window): New function.
2396 (Fselect_window): Call it.
2397 (inhibit_point_swap): Variable deleted.
2398 (Fset_window_configuration): Call select_window directly.
2399
3fb69558
JD
24002011-01-22 Jan Djärv <jan.h.d@swipnet.se>
2401
2402 * nsterm.m (constrainFrameRect): Only constrain the first time called.
2403
449ab399
JD
24042011-01-21 Jan Djärv <jan.h.d@swipnet.se>
2405
e2f79c8d
JD
2406 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
2407 screen, not the window screen.
2408 (x_set_window_size): Remove constraints.
2409 Calculate origin.y only if zooming is 0 and without referring to a
2410 screen.
2411 (windowWillResize): Don't modify frameSize.
2412 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
2413 (initFrameFromEmacs): Initialize ns_userRect.
2414 (windowShouldZoom): Set zooming to one. Remove all other code.
2415 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
2416 Zero it after restore.
2417 (constrainFrameRect): New method for EmacsWindow.
2418 (mouseDragged): Always post NSWindowDidResizeNotification after call to
2419 windowWillResize.
2420
2421 * nsterm.h (ns_output): Add dont_constrain and zooming.
2422 (EmacsView): Add ns_userRect.
2423
449ab399
JD
2424 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
2425 if ns_alternate_modifier is none.
2426
e885315d
JD
24272011-01-20 Jan Djärv <jan.h.d@swipnet.se>
2428
2429 * unexmacosx.c: Add comment about include order.
2430
bb1c6663
GM
24312011-01-20 Glenn Morris <rgm@gnu.org>
2432
c11136ec
GM
2433 * minibuf.c (syms_of_minibuf) <read-expression-history>:
2434 Give it a doc string.
2435 * globals.h: Add Vread_expression_history.
2436
bb1c6663
GM
2437 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
2438 Give it a doc string.
2439 * globals.h: Add Vkbd_macro_termination_hook.
2440
9aea757b
CY
24412011-01-20 Chong Yidong <cyd@stupidchicken.com>
2442
2443 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
2444
e1ef0dac
PE
24452011-01-19 Paul Eggert <eggert@cs.ucla.edu>
2446
2447 Fix X11 compilation failure.
2448 * globals.h (struct emacs_globals): Document f_Vselection_alist.
2449 * xselect.c (Vselection_alist): Remove declaration, moving its
2450 documentation to globals.h. This fixes a compilation failure
2451 induced by the earlier change to globals.h today.
2452
fb9d0f5a
JD
24532011-01-19 Jan Djärv <jan.h.d@swipnet.se>
2454
8beb828a
JD
2455 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
2456
fb9d0f5a
JD
2457 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
2458 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
2459 (ns_input_spi_name, ns_input_spi_arg)
2460 (ns_alternate_modifier, ns_right_alternate_modifier)
2461 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
2462 (ns_right_control_modifier, ns_function_modifier)
2463 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
2464 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
2465 (x_underline_at_descent_line): Remove declaration.
2466 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
2467
01c35094 2468 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
fb9d0f5a
JD
2469 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
2470 (syms_of_nsselect): Remove & from DEFVAR_LISP.
2471
2472 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
2473 Remove declaration.
2474
2475 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
2476 globals.h.
2477 (syms_of_nsfont): Remove & from DEFVAR_LISP.
2478
2479 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
2480 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
2481 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
2482
2483 * globals.h (struct emacs_globals): Add f_ns_input_file,
2484 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
2485 f_ns_input_color, f_ns_input_text, f_ns_working_text,
2486 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
2487 f_ns_right_alternate_modifier, f_ns_command_modifier,
2488 f_ns_right_command_modifier, f_ns_control_modifier,
2489 f_ns_right_control_modifier, f_ns_function_modifier,
2490 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
2491 f_Vns_version_string, f_Vns_sent_selection_hooks,
2492 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
2493 and corresponding defines.
2494
4e55715e
SS
24952011-01-19 Sam Steingold <sds@gnu.org>
2496
2497 * w32.c (check_windows_init_file): Remove declarations of
2498 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 2499 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 2500
ef79d2fa
TT
25012011-01-19 Tom Tromey <tromey@redhat.com>
2502
2503 * window.c: Fix error introduced by previous patch.
2504
29208e82
TT
25052011-01-18 Tom Tromey <tromey@parfait>
2506
2507 * globals.h: New file.
2508 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
2509 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
2510 (Vwindow_system_version): Remove declaration.
2511 * w32term.h (Vw32_enable_palette)
2512 (Vx_pixel_size_width_font_regexp): Remove declaration.
2513 * w32menu.c (Voverriding_local_map)
2514 (Voverriding_local_map_menu_flag): Remove declaration.
2515 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
2516 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
2517 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
2518 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
2519 (Vw32_phantom_key_code, Vw32_recognize_altgr)
2520 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2521 (w32_use_full_screen_buffer): Remove declaration.
2522 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
2523 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
2524 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
2525 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
2526 (no_redraw_on_reenter, visible_bell): Remove declaration.
2527 * sysdep.c (Vsystem_name): Remove declaration.
2528 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
2529 * menu.h (Vmenu_updating_frame): Remove declaration.
2530 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
2531 Remove declaration.
2532 * lisp.h (Vafter_init_time, Vafter_load_alist)
2533 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
2534 (Vcompletion_regexp_list, Vcurrent_load_list)
2535 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
2536 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
2537 (Vexec_directory, Vexec_path, Vexec_suffixes)
2538 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
2539 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
2540 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
2541 (Vinstallation_directory, Vinvocation_directory)
2542 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
2543 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
2544 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
2545 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
2546 (Vscalable_fonts_allowed, Vselect_active_regions)
2547 (Vshell_file_name, Vstandard_input, Vstandard_output)
2548 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
2549 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
2550 (Vuser_login_name, Vwindow_scroll_functions)
2551 (Vwindow_system_version, Vx_no_window_manager)
2552 (Vx_resource_class, Vx_resource_name, baud_rate)
2553 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
2554 (history_delete_duplicates, inhibit_x_resources)
2555 (last_nonmenu_event, load_in_progress, max_specpdl_size)
2556 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
b286858c
SM
2557 (use_dialog_box, use_file_dialog): Remove declaration.
2558 Include globals.h.
29208e82 2559 * keymap.h (Voverriding_local_map)
b286858c
SM
2560 (Voverriding_local_map_menu_flag, meta_prefix_char):
2561 Remove declaration.
29208e82
TT
2562 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
2563 (Vinput_method_function, Vkey_translation_map)
2564 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
2565 (do_mouse_tracking, extra_keyboard_modifiers)
2566 (num_nonmacro_input_events): Remove declaration.
2567 * intervals.h (Vchar_property_alias_alist)
2568 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
2569 (Vtext_property_default_nonsticky): Remove declaration.
2570 * gtkutil.h (x_gtk_file_dialog_help_text)
2571 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2572 (x_gtk_whole_detached_tool_bar): Remove declaration.
2573 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
2574 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
2575 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
2576 (focus_follows_mouse): Remove declaration.
2577 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
2578 (Vignore_relative_composition, Votf_script_alist)
b286858c
SM
2579 (Vuse_default_ascent, Vvertical_centering_font_regexp):
2580 Remove declaration.
29208e82
TT
2581 * font.h (Vfont_log): Remove declaration.
2582 * dosfns.h (Vdos_display_scancodes, Vdos_version)
2583 (Vdos_windows_version, dos_codepage, dos_country_code)
2584 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
b286858c
SM
2585 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
2586 Remove declaration.
2587 * disptab.h (Vglyph_table, Vstandard_display_table):
2588 Remove declaration.
29208e82
TT
2589 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
2590 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
2591 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
2592 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
2593 (inverse_video, mode_line_in_non_selected_windows)
2594 (tool_bar_button_relief, tool_bar_max_label_size)
2595 (underline_minimum_offset)
2596 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2597 Remove declaration.
2598 * composite.h (Vauto_composition_function)
2599 (Vcomposition_function_table): Remove declaration.
2600 * commands.h (Vexecuting_kbd_macro)
2601 (Vminibuffer_local_completion_map)
2602 (Vminibuffer_local_filename_completion_map)
2603 (Vminibuffer_local_filename_must_match_map)
2604 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2605 (Vminibuffer_local_ns_map, Vthis_command)
2606 (Vunread_command_events, cursor_in_echo_area)
2607 (last_command_event, last_nonmenu_event, unread_command_char):
2608 Remove declaration.
2609 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
2610 (Vdefault_file_name_coding_system)
2611 (Vdefault_process_coding_system, Vfile_name_coding_system)
2612 (Vlast_coding_system_used, Vlocale_coding_system)
2613 (Vselect_safe_coding_system_function)
2614 (Vtranslation_table_for_input, coding_system_require_warning)
2615 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
b286858c
SM
2616 (eol_mnemonic_unix, inherit_process_coding_system):
2617 Remove declaration.
2618 * charset.h (Vcharset_list, Vcurrent_iso639_language):
2619 Remove declaration.
29208e82
TT
2620 * character.h (Vauto_fill_chars, Vchar_direction_table)
2621 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
2622 (Vscript_representative_chars, Vtranslation_table_vector)
2623 (Vunicode_category_table): Remove declaration.
2624 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
2625 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
2626 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
2627 (inhibit_modification_hooks): Remove declaration.
2628 * xterm.c (syms_of_xterm): Update.
2629 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
2630 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
2631 (x_mouse_click_focus_ignore_position)
2632 (x_underline_at_descent_line)
2633 (x_use_underline_position_properties): Remove.
2634 * xsmfns.c (syms_of_xsmfns): Update.
2635 (Vx_session_id, Vx_session_previous_id): Remove.
2636 * xsettings.c (syms_of_xsettings): Update.
2637 (Vxft_settings, use_system_font): Remove.
2638 * xselect.c (syms_of_xselect): Update.
2639 (Vselection_converter_alist, Vx_lost_selection_functions)
2640 (Vx_sent_selection_functions, x_selection_timeout): Remove.
2641 * xfns.c (syms_of_xfns): Update.
2642 (Vgtk_version_string, Vmotif_version_string)
2643 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2644 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2645 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2646 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2647 (Vx_sensitive_text_pointer_shape)
2648 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2649 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2650 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2651 Remove.
2652 * xfaces.c (syms_of_xfaces): Update.
2653 (Vface_default_stipple, Vface_font_rescale_alist)
2654 (Vface_ignored_fonts, Vface_new_frame_defaults)
2655 (Vface_remapping_alist, Vfont_list_limit)
2656 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2657 * xdisp.c (syms_of_xdisp): Update.
2658 (Vauto_resize_tool_bars, Vblink_cursor_alist)
2659 (Vdisplay_pixels_per_inch, Vfontification_functions)
2660 (Vframe_title_format, Vglobal_mode_string)
2661 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2662 (Vicon_title_format, Vinhibit_redisplay)
2663 (Vline_number_display_limit, Vline_prefix)
2664 (Vmax_mini_window_height, Vmenu_bar_update_hook)
2665 (Vmenu_updating_frame, Vmessage_log_max)
2666 (Vmouse_autoselect_window, Vnobreak_char_display)
2667 (Voverlay_arrow_position, Voverlay_arrow_string)
2668 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2669 (Vresize_mini_windows, Vshow_trailing_whitespace)
2670 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2671 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2672 (Vwindow_scroll_functions, Vwindow_size_change_functions)
2673 (Vwindow_text_change_functions, Vwrap_prefix)
2674 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2675 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2676 (highlight_nonselected_windows, hscroll_margin)
2677 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2678 (inhibit_menubar_update, inhibit_try_cursor_movement)
2679 (inhibit_try_window_id, inhibit_try_window_reusing)
2680 (line_number_display_limit_width)
2681 (make_cursor_line_fully_visible_p, message_truncate_lines)
2682 (mode_line_inverse_video, multiple_frames, overline_margin)
2683 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2684 (tool_bar_max_label_size, underline_minimum_offset)
2685 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2686 Remove.
2687 * window.c (syms_of_window): Update.
2688 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2689 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2690 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2691 (Vwindow_point_insertion_type, auto_window_vscroll_p)
2692 (mode_line_in_non_selected_windows, next_screen_context_lines)
2693 (window_min_height, window_min_width): Remove.
2694 (scroll_margin): Remove declaration.
2695 * w32term.c (syms_of_w32term): Update.
2696 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2697 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2698 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2699 (w32_use_visible_system_caret, x_underline_at_descent_line)
2700 (x_use_underline_position_properties): Remove.
2701 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2702 Remove declaration.
2703 * w32select.c (syms_of_w32select): Update.
2704 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2705 * w32proc.c (syms_of_ntproc): Update.
2706 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2707 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2708 (Vw32_start_process_inherit_error_mode)
2709 (Vw32_start_process_share_console)
2710 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2711 (Vsystem_name): Remove declaration.
2712 * w32font.c (syms_of_w32font): Update.
2713 (Vw32_charset_info_alist): Remove.
2714 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2715 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2716 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2717 (Vw32_enable_palette, Vw32_lwindow_modifier)
2718 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2719 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2720 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2721 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2722 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2723 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2724 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2725 (Vx_sensitive_text_pointer_shape)
2726 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2727 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2728 (w32_mouse_move_interval)
2729 (w32_pass_extra_mouse_buttons_to_system)
2730 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2731 (w32_strict_fontnames, w32_strict_painting): Remove.
2732 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2733 (Vw32_recognize_altgr, Vwindow_system_version)
b286858c
SM
2734 (w32_num_mouse_buttons, w32_use_visible_system_caret):
2735 Remove declaration.
29208e82
TT
2736 * w32console.c (syms_of_ntterm): Update.
2737 (w32_use_full_screen_buffer): Remove.
2738 (Vtty_defined_color_alist): Remove declaration.
2739 * w16select.c (syms_of_win16select): Update.
2740 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2741 * undo.c (syms_of_undo): Update.
2742 (Vundo_outer_limit, Vundo_outer_limit_function)
2743 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
2744 Remove.
2745 * textprop.c (syms_of_textprop): Update.
2746 (Vchar_property_alias_alist, Vdefault_text_properties)
2747 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
2748 Remove.
2749 * terminal.c (syms_of_terminal): Update.
2750 (Vdelete_terminal_functions, Vring_bell_function): Remove.
2751 * term.c (syms_of_term): Update.
2752 (Vresume_tty_functions, Vsuspend_tty_functions)
2753 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2754 Remove.
2755 * syntax.c (syms_of_syntax): Update.
2756 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2757 (open_paren_in_column_0_is_defun_start)
2758 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2759 (words_include_escapes): Remove.
2760 * search.c (syms_of_search): Update.
2761 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2762 * process.c (syms_of_process): Update.
2763 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2764 (delete_exited_processes): Remove.
2765 * print.c (syms_of_print): Update.
2766 (Vfloat_output_format, Vprint_charset_text_property)
2767 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2768 (Vprint_length, Vprint_level, Vprint_number_table)
2769 (Vstandard_output, print_escape_multibyte)
2770 (print_escape_newlines, print_escape_nonascii, print_quoted):
2771 Remove.
2772 * msdos.c (syms_of_msdos): Update.
2773 (Vdos_unsupported_char_glyph): Remove.
2774 (unibyte_display_via_language_environment): Remove declaration.
2775 * minibuf.c (syms_of_minibuf): Update.
2776 (Vcompletion_regexp_list, Vhistory_add_new_input)
2777 (Vhistory_length, Vminibuffer_completing_file_name)
2778 (Vminibuffer_completion_confirm)
2779 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
2780 (Vminibuffer_exit_hook, Vminibuffer_help_form)
2781 (Vminibuffer_history_position, Vminibuffer_history_variable)
2782 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
2783 (Vread_buffer_function, Vread_expression_map)
2784 (completion_ignore_case, enable_recursive_minibuffers)
2785 (history_delete_duplicates, minibuffer_allow_text_properties)
2786 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
2787 Remove.
2788 * marker.c (syms_of_marker): Update.
2789 (byte_debug_flag): Remove.
2790 * macros.c (syms_of_macros): Update.
2791 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
2792 * lread.c (syms_of_lread): Update.
2793 (Vafter_load_alist, Vbyte_boolean_vars)
2794 (Vbytecomp_version_regexp, Vcurrent_load_list)
2795 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
2796 (Vload_history, Vload_path, Vload_read_function)
2797 (Vload_source_file_function, Vload_suffixes, Vobarray)
2798 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
2799 (Vread_symbol_positions_list, Vread_with_symbol_positions)
2800 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
2801 (force_load_messages, load_convert_to_unibyte)
2802 (load_dangerous_libraries, load_force_doc_strings)
2803 (load_in_progress): Remove.
2804 * keymap.c (syms_of_keymap): Update.
2805 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
2806 (Vminibuffer_local_completion_map)
2807 (Vminibuffer_local_filename_completion_map)
2808 (Vminibuffer_local_filename_must_match_map)
2809 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2810 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
2811 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
2812 Remove.
2813 * keyboard.c (syms_of_keyboard): Update.
2814 (Vauto_save_timeout, Vcommand_error_function)
2815 (Vcommand_hook_internal, Vdeactivate_mark)
2816 (Vdeferred_action_function, Vdeferred_action_list)
2817 (Vdisable_point_adjustment, Vdouble_click_time)
2818 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
2819 (Vfunction_key_map, Vglobal_disable_point_adjustment)
2820 (Vhelp_char, Vhelp_event_list, Vhelp_form)
2821 (Vinput_method_function, Vinput_method_previous_message)
2822 (Vkey_translation_map, Vlast_event_frame)
2823 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
2824 (Vminibuffer_message_timeout, Voverriding_local_map)
2825 (Voverriding_local_map_menu_flag, Vpost_command_hook)
2826 (Vpre_command_hook, Vprefix_help_command)
2827 (Vsaved_region_selection, Vselect_active_regions)
2828 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
2829 (Vthis_command, Vthis_command_keys_shift_translated)
2830 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
2831 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
2832 (Vtty_erase_char, Vunread_command_events)
2833 (Vunread_input_method_events, Vunread_post_input_method_events)
2834 (auto_save_interval, cannot_suspend, do_mouse_tracking)
2835 (double_click_fuzz, extra_keyboard_modifiers)
2836 (inhibit_local_menu_bar_menus, last_command_event)
2837 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
2838 (menu_prompting, meta_prefix_char, num_input_keys)
2839 (num_nonmacro_input_events, polling_period, unread_command_char):
2840 Remove.
2841 * insdel.c (syms_of_insdel): Update.
2842 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
2843 * indent.c (syms_of_indent): Update.
2844 (indent_tabs_mode): Remove.
2845 * image.c (syms_of_image): Update.
2846 (Vimage_cache_eviction_delay, Vimage_types)
2847 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
2848 (cross_disabled_images): Remove.
2849 * fringe.c (syms_of_fringe): Update.
2850 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
2851 * frame.c (syms_of_frame): Update.
2852 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
2853 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
2854 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
2855 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
2856 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
2857 Remove.
2858 * fontset.c (syms_of_fontset): Update.
2859 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
2860 (Vfontset_alias_alist, Vignore_relative_composition)
2861 (Votf_script_alist, Vuse_default_ascent)
2862 (Vvertical_centering_font_regexp): Remove.
2863 * font.c (syms_of_font): Update.
2864 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
2865 (Vfont_weight_table, Vfont_width_table): Remove.
2866 * fns.c (syms_of_fns): Update.
2867 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
2868 * filelock.c (syms_of_filelock): Update.
2869 (Vtemporary_file_directory): Remove.
2870 * fileio.c (syms_of_fileio): Update.
2871 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
2872 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
2873 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
2874 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
2875 (Vinhibit_file_name_operation, Vset_auto_coding_function)
2876 (Vwrite_region_annotate_functions)
2877 (Vwrite_region_annotations_so_far)
2878 (Vwrite_region_post_annotation_function)
2879 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
2880 (Vw32_get_true_file_attributes): Remove declaration.
2881 * eval.c (syms_of_eval): Update.
2882 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
2883 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
2884 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
2885 (debug_on_next_call, debug_on_quit, debugger_may_continue)
2886 (max_lisp_eval_depth, max_specpdl_size): Remove.
2887 * emacs.c (syms_of_emacs): Update.
2888 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
2889 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
2890 (Vinstallation_directory, Vinvocation_directory)
2891 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
2892 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
2893 (Vsystem_configuration, Vsystem_configuration_options)
2894 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
2895 (inhibit_x_resources, noninteractive1): Remove.
2896 * editfns.c (syms_of_editfns): Update.
2897 (Vbuffer_access_fontified_property)
2898 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
2899 (Voperating_system_release, Vsystem_name, Vuser_full_name)
2900 (Vuser_login_name, Vuser_real_login_name): Remove.
2901 * dosfns.c (syms_of_dosfns): Update.
2902 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
2903 (dos_codepage, dos_country_code, dos_decimal_point)
2904 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
2905 (dos_super_key, dos_timezone_offset): Remove.
2906 * doc.c (syms_of_doc): Update.
2907 (Vbuild_files, Vdoc_file_name): Remove.
2908 * dispnew.c (syms_of_display): Update.
2909 (Vglyph_table, Vinitial_window_system)
2910 (Vredisplay_preemption_period, Vstandard_display_table)
2911 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
2912 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
2913 * dired.c (syms_of_dired): Update.
2914 (Vcompletion_ignored_extensions): Remove.
2915 (Vw32_get_true_file_attributes): Remove declaration.
2916 * dbusbind.c (syms_of_dbusbind): Update.
2917 (Vdbus_debug, Vdbus_registered_buses)
2918 (Vdbus_registered_objects_table): Remove.
2919 * data.c (syms_of_data): Update.
2920 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
2921 * composite.c (syms_of_composite): Update.
2922 (Vauto_composition_function, Vauto_composition_mode)
2923 (Vcompose_chars_after_function, Vcomposition_function_table):
2924 Remove.
2925 * coding.c (syms_of_coding): Update.
2926 (Vcharset_revision_table, Vcoding_category_list)
2927 (Vcoding_system_alist, Vcoding_system_for_read)
2928 (Vcoding_system_for_write, Vcoding_system_list)
2929 (Vdefault_process_coding_system, Venable_character_translation)
2930 (Vfile_coding_system_alist, Vlast_code_conversion_error)
2931 (Vlast_coding_system_used, Vlatin_extra_code_table)
2932 (Vlocale_coding_system, Vnetwork_coding_system_alist)
2933 (Vprocess_coding_system_alist)
2934 (Vselect_safe_coding_system_function)
2935 (Vstandard_translation_table_for_decode)
2936 (Vstandard_translation_table_for_encode)
2937 (Vtranslation_table_for_input, coding_system_require_warning)
2938 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2939 (eol_mnemonic_unix, inherit_process_coding_system)
2940 (inhibit_eol_conversion, inhibit_iso_escape_detection)
2941 (inhibit_null_byte_detection): Remove.
2942 * cmds.c (syms_of_cmds): Update.
2943 (Vpost_self_insert_hook): Remove.
2944 * charset.c (syms_of_charset): Update.
2945 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
2946 (inhibit_load_charset_map): Remove.
2947 * character.c (syms_of_character): Update.
2948 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
2949 (Vchar_width_table, Vprintable_chars)
2950 (Vscript_representative_chars, Vtranslation_table_vector)
2951 (Vunicode_category_table): Remove.
2952 * ccl.c (syms_of_ccl): Update.
2953 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
2954 (Vtranslation_hash_table_vector): Remove.
2955 * category.c (syms_of_category): Update.
2956 (Vword_combining_categories, Vword_separating_categories): Remove.
2957 * callproc.c (syms_of_callproc): Update.
2958 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
2959 (Vexec_directory, Vexec_path, Vexec_suffixes)
2960 (Vinitial_environment, Vprocess_environment)
2961 (Vshared_game_score_directory, Vshell_file_name): Remove.
2962 * callint.c (syms_of_callint): Update.
2963 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
2964 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
2965 * bytecode.c (syms_of_bytecode): Update.
2966 (Vbyte_code_meter, byte_metering_on): Remove.
2967 * buffer.c (syms_of_buffer): Update.
2968 (Vafter_change_functions, Vbefore_change_functions)
2969 (Vchange_major_mode_hook, Vfirst_change_hook)
2970 (Vinhibit_read_only, Vkill_buffer_query_functions)
2971 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
2972 * alloc.c (syms_of_alloc): Update.
2973 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
2974 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
2975 (cons_cells_consed, floats_consed, garbage_collection_messages)
2976 (gc_cons_threshold, gcs_done, intervals_consed)
2977 (misc_objects_consed, pure_bytes_used, string_chars_consed)
2978 (strings_consed, symbols_consed, vector_cells_consed): Remove.
2979
2980 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2981 (DEFVAR_INT): Assume global is in `globals'.
2982 * alloc.c (globals): Define.
2983
448c0820
TT
29842011-01-18 Tom Tromey <tromey@redhat.com>
2985
2986 * image.c (Vimagemagick_render_type): Remove redundant
2987 definition.
2988
8442d95d
TT
29892011-01-18 Tom Tromey <tromey@redhat.com>
2990
2991 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
2992 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
2993 (redisplay_window): Update.
2994 (syms_of_xdisp): Update.
2995
cab0ba98
TT
29962011-01-18 Tom Tromey <tromey@redhat.com>
2997
2998 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
2999 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
3000 Declare.
3001 * gtkutil.c (xg_uses_old_file_dialog):
3002 (xg_get_file_with_chooser):
3003 (xg_tool_bar_detach_callback): Don't redeclare globals.
3004
422745d0
TT
30052011-01-18 Tom Tromey <tromey@redhat.com>
3006
3007 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
3008 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
3009
7cae64b4
PE
30102011-01-18 Paul Eggert <eggert@cs.ucla.edu>
3011
3012 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
3013 defined __GNUC__. ../configure now checks for this GCC feature,
3014 which is now also supported by IBM and Oracle compilers.
3015 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
3016 since Solaris malloc returns mult-of-8.
3017
a9faac5c 30182011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
3019
3020 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
3021
a3e44e79 30222011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 3023
6e8e6bf2
PE
3024 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
3025 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
3026 * data.c (Fnumber_to_string): Use it.
3027 * print.c (float_to_string, print_object): Likewise.
3028
4004364e
PE
3029 Include <unistd.h> unilaterally.
3030 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
3031 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
3032 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
3033 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
3034 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
3035 * xterm.c:
3036 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
3037 unistd.h is always present now, possibly supplied by gnulib.
3038
e84aba69
PE
3039 * mktime.c: Remove; moving to ../lib.
3040
1e11dbe3
PE
3041 Use gnulib's mktime module.
3042 * deps.mk (mktime.o): Remove rule.
3043
fa2c4f56
PE
3044 Use gnulib's ftoastr module.
3045 * print.c: Include ftoastr.h.
3046 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
3047 Remove; no longer needed.
3048 (float_to_string): Use dtoastr rather than rolling our own code,
3049 which had an off-by-one bug on non-IEEE hosts.
3050
9a514d4a
PE
3051 Automate syncing from gnulib.
3052 * Makefile.in (lib): New macro.
3053 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
3054 ($(lib)/libgnu.a): New rule.
3055 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
3056
717c30e0
PE
3057 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
3058 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
3059 so change the type of 'ign' to unsigned int from int.
3060
8865d794
PE
3061 * regex.c (analyse_first): Remove unreachable 'continue' statement.
3062
4ef36a7b
PE
3063 * xterm.h (struct x_display_info): Remove stray semicolon.
3064 The extra semicolon didn't conform to the C standard.
3065 Problem reported by Sun cc.
3066
6df4097e
PE
3067 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
3068 These changes make compilation easier to follow with Sun cc.
3069 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
3070 EMACS_INT values without provoking overflow diagnostics.
3071 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
3072 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
3073 diagnostic with signed left shift.
9fba3563 3074
410ed5c3
PE
3075 * fileio.c (make_temp_name): Remove unreachable code.
3076
97be3ce3
PE
3077 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
3078 Previously it was marked by preceding it with "return;", but
3079 Sun cc complains about this.
3080
9fba3563
PE
3081 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
3082 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
3083 which fixed Bug#2370. Caught by Sun cc.
3084
6dc1d2d3
MR
30852011-01-15 Martin Rudalics <rudalics@gmx.at>
3086
3087 * window.c (inhibit_point_swap): New variable.
3088 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
3089 point this time.
3090 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
3091 of setting selected_window to nil (Bug#7728).
3092
f853f599
TH
30932011-01-11 Tassilo Horn <tassilo@member.fsf.org>
3094
8dabbfd6
SM
3095 * image.c (imagemagick_load_image, Finit_image_library):
3096 Free intermediate image after creating a MagickWand from it.
3097 Terminate MagickWand environment after image loading.
f853f599 3098
2bc92a93
MA
30992011-01-10 Michael Albinus <michael.albinus@gmx.de>
3100
3101 * dbusbind.c (Fdbus_register_service): Raise an error in case of
3102 unexpected return values.
3103 (Fdbus_register_method): Remove connection initialization.
3104
31052011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
3106
3107 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
3108 used by Fdbus_register_service.
3109 (QCdbus_request_name_replace_existing): Likewise.
3110 (QCdbus_request_name_do_not_queue): Likewise.
3111 (QCdbus_request_name_reply_primary_owner): Likewise.
3112 (QCdbus_request_name_reply_in_queue): Likewise.
3113 (QCdbus_request_name_reply_exists): Likewise.
3114 (QCdbus_request_name_reply_already_owner): Likewise.
3115 (Fdbus_register_service): New function.
3116 (Fdbus_register_method): Use Fdbus_register_service to do the name
3117 registration.
3118 (syms_of_dbusbind): Add symbols dbus-register-service,
3119 :allow-replacement, :replace-existing, :do-not-queue,
3120 :primary-owner, :existing, :in-queue and :already-owner.
3121
21a76236
CY
31222011-01-09 Chong Yidong <cyd@stupidchicken.com>
3123
3124 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
3125 when removing extra buttons.
3126
3d91e302
CY
31272011-01-08 Chong Yidong <cyd@stupidchicken.com>
3128
3129 * fns.c (Fyes_or_no_p): Doc fix.
3130
0d23ffb5
AS
31312011-01-08 Andreas Schwab <schwab@linux-m68k.org>
3132
3133 * fns.c (Fyes_or_no_p): Add usage.
3134
9dc3366b
GM
31352011-01-08 Glenn Morris <rgm@gnu.org>
3136
d0981f82
GM
3137 * makefile.w32-in ($(EMACS)):
3138 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
3139
9dc3366b
GM
3140 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
3141 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
3142
466cbae9
AS
31432011-01-07 Andreas Schwab <schwab@linux-m68k.org>
3144
3145 * image.c (imagemagick_load_image): Fix some resource leaks and
3146 error handling.
3147
8c51d2a2
CY
31482011-01-07 Chong Yidong <cyd@stupidchicken.com>
3149
3150 * fns.c (Fyes_or_no_p): Accept format string args.
3151
66b7b0fe
GM
31522011-01-07 Glenn Morris <rgm@gnu.org>
3153
3154 * emacs.c (no_site_lisp): New int.
3155 (USAGE1): Add --no-site-lisp, mention -Q uses it.
3156 (main): Set no_site_lisp.
3157 (standard_args): Add --no-site-lisp.
3158 * lisp.h (no_site_lisp): New int.
3159 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
3160 directories to Vload_path.
3161
2018939f
AS
31622011-01-05 Andreas Schwab <schwab@linux-m68k.org>
3163
3164 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
3165
6ed843e5
MA
31662011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
3167
8dabbfd6 3168 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
3169 dont_register_service. Updated docstring accordingly.
3170
3f9b7090
GM
31712011-01-04 Glenn Morris <rgm@gnu.org>
3172
3173 * emacs.c (emacs_copyright): Update short copyright year to 2011.
3174
d82bce4a
EZ
31752011-01-03 Eli Zaretskii <eliz@gnu.org>
3176
3177 * image.c (png_jmpbuf): Remove definition.
3178 (my_png_error, png_load): Don't use png_jmpbuf.
3179
7c420169
CY
31802011-01-02 Eli Zaretskii <eliz@gnu.org>
3181
3182 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
3183
31842011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
3185
3186 * image.c <Qlibpng_version>: New variable.
3187 (syms_of_image): Intern and staticpro it. Set its value to the
3188 version of PNG library we were compiled with.
3189 (my_png_error, png_load): Avoid GCC warnings about direct access
3190 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
3191 (png_jmpbuf): New macro.
3192 (my_png_error, png_load): Use it instead of #ifdef'ing according
3193 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 3194
7c420169 31952011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
3196
3197 * .gdbinit (xgetptr): Fix the union+lsb case.
3198 (xbacktrace): Fix the union case.
3199
7c420169 32002011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
3201
3202 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
3203 different from selected-window's.
3204
7c420169 32052011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 3206
71fe378d
EZ
3207 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
3208 equivalent of a menu item when the key sequence is given by the
3209 `:keys' attribute. (Bug#7662)
3210
2e4ab211
EZ
3211 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
3212 the basic faces are supported.
3213
7c420169 32142011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
3215
3216 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
3217
7c420169 32182011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
3219
3220 * xdisp.c (Fformat_mode_line): Fix last change.
3221
7c420169 32222011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
3223
3224 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
3225 faces (Bug#7587).
3226
7c420169 32272011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
3228
3229 * fileio.c (Fexpand_file_name): One more doc fix.
3230
3afff00e
CY
32312011-01-01 Chong Yidong <cyd@stupidchicken.com>
3232
3233 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
3234 image or label in the container.
3235 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
3236 (xg_show_toolbar_item): Function deleted.
3237 (xg_tool_item_stale_p): New function.
3238 (update_frame_tool_bar): Calculate tool-bar style once per call.
3239 Instead of hiding text labels, omit them. Don't use
3240 xg_show_toolbar_item; create new GtkToolItems from scratch if
3241 necessary, instead of trying to re-use them. This avoids an
3242 annoying animation when changing tool-bars.
3243
aeb7e951
JD
32442010-12-31 Jan Djärv <jan.h.d@swipnet.se>
3245
3246 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
3247 title and buffer filename only for RepresentedFilename.
3248 Handle bad UTF-8 in buffer name (Bug#7517).
3249
5bbb4727
JD
32502010-12-30 Jan Djärv <jan.h.d@swipnet.se>
3251
3252 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
3253
3254 * nsfns.m (ns_set_name_iconic): Remove.
3255 (ns_set_name_internal): New function (Bug#7517).
3256 (Vicon_title_format): Extern declare.
3257 (ns_set_name): Call ns_set_name_internal.
3258 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
3259 (x_implicitly_set_name): Ditto.
3260 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
3261 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
3262
f1aab3ff
ŠN
32632010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
3264
3265 * window.c (syms_of_window): Add missing defsubr for
3266 window-use-time.
3267
365525b3
AS
32682010-12-28 Andreas Schwab <schwab@linux-m68k.org>
3269
3270 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
3271 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
3272
59fc5cf9
AS
32732010-12-27 Andreas Schwab <schwab@linux-m68k.org>
3274
2f7c71a1
AS
3275 * buffer.c: Remove unused declarations.
3276 * buffer.h: Likewise.
3277 * charset.h: Likewise.
3278 * composite.h: Likewise.
3279 * dispextern.h: Likewise.
3280 * dispnew.c: Likewise.
3281 * font.h: Likewise.
3282 * fontset.c: Likewise.
3283 * fontset.h: Likewise.
3284 * intervals.h: Likewise.
3285 * keymap.h: Likewise.
3286 * lisp.h: Likewise.
3287 * syntax.c: Likewise.
3288 * syntax.h: Likewise.
3289 * termhooks.h: Likewise.
3290 * window.h: Likewise.
3291 * xsettings.h: Likewise.
3292 * xterm.c: Likewise.
3293 * xterm.h: Likewise.
3294
3295 * chartab.c (sub_char_table_ref): Make static.
3296 * dispnew.c (line_hash_code, required_matrix_height)
3297 (required_matrix_width): Likewise.
3298 * eval.c (interactive_p, apply_lambda): Likewise.
3299 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
3300 Likewise.
3301 * font.c (QCadstyle, QCregistry, font_make_spec)
3302 (font_parse_fcname, font_encode_char, font_at): Likewise.
3303 * frame.c (x_frame_get_arg): Likewise.
3304 * keymap.c (get_keyelt): Likewise.
3305 * lread.c (read_filtered_event): Likewise.
3306 * print.c (write_string_1): Likewise.
3307 * window.c (delete_window, window_height, window_width)
3308 (foreach_window): Likewise.
3309 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
3310 * xterm.c (x_scroll_bar_clear, xembed_set_info)
3311 (xembed_send_message): Likewise.
3312
3313 * eval.c (run_hook_list_with_args): Delete.
3314 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
3315 * terminal.c (get_terminal_param): Likewise.
3316 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
3317
c4b607ed
AS
3318 * scroll.c: Fix comment.
3319
59fc5cf9
AS
3320 * dispnew.c (add_window_display_history)
3321 (add_frame_display_history, glyph_row_slice_p)
3322 (find_glyph_row_slice, flush_stdout)
3323 (check_matrix_pointer_lossage, matrix_row)
3324 (check_matrix_invariants, check_window_matrix_pointers)
3325 (check_matrix_pointers, window_to_frame_vpos)
3326 (window_to_frame_hpos): Prototize.
3327 * textprop.c (erase_properties): Likewise.
3328
a65b85b5
SM
33292010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
3330
17870c01
SM
3331 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
3332 (print_preprocess): Fix handling of uninterned symbols in last change.
3333
a65b85b5
SM
3334 * print.c (print, print_preprocess, print_object): Use a hash table
3335 rather than a linear table for Vprint_number_table.
3336
f13183cf
CY
33372010-12-20 Chong Yidong <cyd@stupidchicken.com>
3338
3339 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
3340
94975270
CY
33412010-12-20 Chong Yidong <cyd@stupidchicken.com>
3342
3343 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
3344 (parse_tool_bar_item): Use it to obtain image separators for
3345 displays not using native tool-bar separators.
3346
3347 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
3348 specially, since this is now done in parse_tool_bar_item.
3349
ef1b0ba7
SM
33502010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
3351
3352 Minor clean up to silence some gcc warnings.
3353 * window.c (Fset_window_buffer):
3354 * xterm.c (x_set_frame_alpha): Restructure code to silence
3355 compiler warning.
3356 (handle_one_xevent): Remove unused var `p'.
3357 (do_ewmh_fullscreen): Remove unused var `lval'.
3358 (xembed_set_info): Remove unused var `atom'.
3359 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
3360 compiler warning.
3361 * fontset.c (fontset_id_valid_p, dump_fontset):
3362 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
3363 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
3364 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
3365 label only when it's used.
3366 * image.c (x_create_bitmap_from_xpm_data):
3367 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
3368 its callers.
3369 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
3370 `consumed_chars'.
3371 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
3372 (decode_coding_emacs_mule): Remove unused label `retry'.
3373 (detect_eol): Add parens to silence compiler warning.
3374 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
3375 it's used to silence the compiler.
3376 (make_number): Modernize k&r declaration.
3377 (mark_char_table): Add parens to silence compiler warning.
3378
4039c786
CY
33792010-12-17 Chong Yidong <cyd@stupidchicken.com>
3380
3381 * keyboard.c (parse_tool_bar_item): Allow menu separators in
3382 tool-bar maps.
3383 (menu_separator_name_p): New function, from gtkutil.c.
3384 (separator_names): Move from gtkutil.c.
3385
3386 * keyboard.h (menu_separator_name_p): Add prototype.
3387
3388 * gtkutil.c (XG_BIN_CHILD): New macro.
3389 (xg_get_menu_item_label, xg_update_menubar)
3390 (xg_update_menu_item, xg_tool_bar_menu_proxy)
3391 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
3392 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
3393 (create_menus, xg_update_submenu, update_frame_tool_bar):
3394 Use menu_separator_name_p.
4039c786
CY
3395
3396 * nsmenu.m (name_is_separator): Function deleted.
3397 (addItemWithWidgetValue): Use menu_separator_name_p.
3398
3399 * w32menu.c (name_is_separator): Function deleted.
3400 (add_menu_item): Use menu_separator_name_p.
3401
aa936e8e
JD
34022010-12-16 Jan Djärv <jan.h.d@swipnet.se>
3403
3404 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
3405 same as the background, use the face forground as cursor.
3406
f49d1f52 34072010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
3408
3409 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
3410
f49d1f52 34112010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 3412
f0559026
EZ
3413 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
3414 (face_before_or_after_it_pos, next_element_from_string)
3415 (next_element_from_c_string, produce_stretch_glyph): Remove unused
3416 calculations of maximum string length before calling
3417 string_char_and_length and STRING_CHAR_AND_LENGTH.
3418 (string_char_and_length): Update commentary: MAXLEN is no longer
3419 needed.
3420
f49d1f52 34212010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
3422
3423 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
3424 as (Qsave_session arg).
3425
3426 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
3427 (smc_die_CB): Make an event with arg Qt.
3428 (Fhandle_save_session): If event has Qt as argument,
3429 call Fkill_emacs (Bug#7552).
3430
f49d1f52
SM
34312010-12-13 Chong Yidong <cyd@stupidchicken.com>
3432
3433 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
3434
34352010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
3436
3437 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
3438
f49d1f52 34392010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
3440
3441 * dispextern.h (struct it): New member overlay_strings_charpos.
3442
3443 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
3444 charpos where we computed n_overlay_strings.
3445 (next_overlay_string): Load overlay strings at recorded position,
3446 which may not be the same as the iterator's charpos (Bug#7016).
3447
f49d1f52 34482010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
3449
3450 * xdisp.c (try_scrolling): Avoid infloop if the first line is
3451 obscured due to a vscroll (Bug#7537).
3452
f49d1f52 34532010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
3454
3455 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3456
3457 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
3458 Use FRAME_TOOLBAR_HEIGHT.
3459 (x_set_offset): Handle XNegative and YNegative in
3460 f->size_hint_flags (Bug#7510).
3461
39321b94
EZ
34622010-12-11 Eli Zaretskii <eliz@gnu.org>
3463
3464 * w32fns.c (Fx_show_tip): Call try_window with last argument
3465 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
3466 solved. Round up the tip height to an integral multiple of the
3467 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
3468 (Bug#7398)
3469
ec1b9b17
GM
34702010-12-08 Glenn Morris <rgm@gnu.org>
3471
3472 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
3473
3c2317e8
LMI
34742010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
3475
3476 * xml.c (parse_region): Ignore blank HTML nodes.
3477 (make_dom): Return CDATA sections (like <style>foo</style>) as
3478 text nodes.
3479
bba3e508
SM
34802010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
3481
3482 * lread.c (read1): Allow newstyle unquote outside of backquote.
3483 Disallow old-style backquotes inside new-style backquotes.
3484 Don't count unquotes to figure out when we're "syntactically inside
3485 but semantically outside of a backquote" any more.
3486 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
3487 to all contexts.
3488
d23d8608
CY
34892010-12-05 Chong Yidong <cyd@stupidchicken.com>
3490
3491 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
3492
d6a003a8
AS
34932010-12-04 Andreas Schwab <schwab@linux-m68k.org>
3494
3495 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
3496 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
3497 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
3498
201ef780
AS
34992010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3500
3501 * lisp.h (union Lisp_Object): Explicitly declare signedness of
3502 bit-field.
3503 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
3504 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
3505 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3506 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3507 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
3508 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
3509 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
3510 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
3511 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
3512 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
3513 * m/hp800.h: Remove file.
3514 * m/mips.h: Remove file.
3515
146490c3
JD
35162010-12-03 Jan Djärv <jan.h.d@swipnet.se>
3517
3518 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
3519 with cursor color and draw a rectangle around the image (Bug#7412).
3520
babc8f0d
AS
35212010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3522
3523 * frame.c (x_set_font): Remove unused variable.
3524
9583e9a0
JD
35252010-12-02 Jan Djärv <jan.h.d@swipnet.se>
3526
dd723bbd
JD
3527 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
3528
9583e9a0
JD
3529 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
3530 drawing text under filled box cursor (Bug#7479).
3531
07976ae3 35322010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
3533
3534 * charset.c (emacs_mule_charset): Make it an array of charset ID;
3535 i.e. integer.
bba3e508 3536 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
3537 (init_charset_once): Likewise.
3538
bba3e508
SM
3539 * charset.h (emacs_mule_charset): Adjust the prototype.
3540 Delete duplicated extern.
b84ae584
KH
3541
3542 * coding.c (emacs_mule_char): Adjust for the change of
3543 emacs_mule_charset.
3544
3545 * lread.c (read_emacs_mule_char): Adjust for the change of
3546 emacs_mule_charset.
3547
07976ae3 35482010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
3549
3550 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3551 of w32api >= 3.15. (Bug#6989) (Bug#7452)
3552
07976ae3 35532010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
3554
3555 * alloc.c (mark_terminals): Ensure that the image cache is marked
3556 even if the terminal object was marked earlier (Bug#6301).
3557
35f1de62
CY
35582010-11-21 Chong Yidong <cyd@stupidchicken.com>
3559
3560 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
3561
07976ae3 35622010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
3563
3564 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
3565 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 3566 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 3567
8547874a
EZ
35682010-11-26 Eli Zaretskii <eliz@gnu.org>
3569
228482b2
EZ
3570 * xdisp.c (set_message_1): Force paragraph direction in echo area
3571 be left-to-right.
3572
8547874a
EZ
3573 * keyboard.c (make_lispy_position): Put a meaningful value in yret
3574 when the click is on the header or mode line.
3575
1e2dddbe
EZ
35762010-11-25 Eli Zaretskii <eliz@gnu.org>
3577
3578 * xdisp.c (set_cursor_from_row): Don't forget to consider the
3579 `cursor' property of the first character in overlay strings.
12365240 3580 (Bug#7474) (Bug#7481)
1e2dddbe 3581
50795d1f
JD
35822010-11-24 Jan Djärv <jan.h.d@swipnet.se>
3583
3584 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
3585 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
3586 (keyDown): Parse left and right keys separately (Bug#7458).
3587 Compare Left key masks exactly (Bug#7458).
50795d1f 3588
f8ab8c1f
EZ
35892010-11-23 Eli Zaretskii <eliz@gnu.org>
3590
3591 * intervals.c (temp_set_point_both): Define before calling, to
3592 avoid GCC warnings.
3593
2e8a4797
DN
35942010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
3595
b29116ef
DN
3596 * nsmenu.m: Use #include <config.h> instead of "config.h".
3597
b932f8b1 3598 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 3599 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
3600 Move declarations ...
3601 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 3602 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
3603 ... here.
3604
42c8bc9b
DN
3605 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
3606 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
3607 (gdb_pvec_type):
3608 * print.c (print_output_debug_flag):
3609 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
3610 (safe_debug_print): New declaration.
3611
2e8a4797
DN
3612 * xterm.c:
3613 * systty.h:
3614 * sound.c: Include <sys/ioctl.h> unconditionally.
3615
b609f591
YM
36162010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3617
3618 * alloc.c (mark_maybe_object): Return early if given a Lisp
3619 integer (Bug#6301).
3620
731e263a
KB
36212010-11-21 Ken Brown <kbrown@cornell.edu>
3622
3623 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
3624
b7d1e144
JD
36252010-11-21 Jan Djärv <jan.h.d@swipnet.se>
3626
3627 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
3628 Define (Bug#7458).
3629 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
3630 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
3631 NSRightControlKeyMask also (Bug#7458).
3632 (keyDown): Ditto (Bug#7458).
3633 (syms_of_nsterm): Defvar ns-right-command-modifier and
3634 ns-right-control-modifier (Bug#7458).
3635
b7982059
DN
36362010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3637
bee3419f
DN
3638 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3639 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3640
b7982059
DN
3641 * intervals.h (temp_set_point, temp_set_point_both):
3642 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3643
01664ed1
KB
36442010-11-20 Ken Brown <kbrown@cornell.edu>
3645
3646 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3647
7c2d713b
EZ
36482010-11-20 Eli Zaretskii <eliz@gnu.org>
3649
3650 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3651 \xNNNNNN for hex-code display of glyphless characters.
3652
d2bd5189
JD
36532010-11-20 Jan Djärv <jan.h.d@swipnet.se>
3654
3655 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3656 Set important to ! vert_only.
3657 (xg_show_toolbar_item): Don't show label horizontally if
3658 tool item isn't important.
3659 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3660 xg_make_tool_item, or update important on existing tool item.
3661
3662 * keyboard.c (QCvert_only): New variable.
3663 (parse_tool_bar_item): Check for QCvert_only.
3664 (syms_of_keyboard): Initialize QCvert_only.
3665
3666 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3667
d9a95e67
EZ
36682010-11-20 Eli Zaretskii <eliz@gnu.org>
3669
3670 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3671 same in-line.
3672
b6557553
AS
36732010-11-20 Andreas Schwab <schwab@linux-m68k.org>
3674
3675 * xfaces.c (lookup_face): Make static.
3676 * dispnew.c (copy_row_except_pointers): Likewise.
3677 * syntax.c (dec_bytepos): Likewise.
3678 (inc_bytepos): Remove.
3679 * dispextern.h (lookup_face): Remove declaration.
3680
f48fe1f0
EZ
36812010-11-19 Eli Zaretskii <eliz@gnu.org>
3682
3683 * xdisp.c (set_cursor_from_row): Display cursor after all the
3684 glyphs that come from an overlay. Don't overstep the last glyph
3685 when skipping glyphs from an overlay. (Bug#6687)
3686
654ef137
DN
36872010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
3688
84dfc8a7
DN
3689 * alloc.c (refill_memory_reserve): Move declaration ...
3690 * lisp.h (refill_memory_reserve): ... here.
3691
94fa3833
DN
3692 * strftime.c (_strftime_copytm): Add declaration.
3693
dde990a0
DN
3694 * callproc.c (syms_of_callproc): Use intern_c_string.
3695
50c77428
DN
3696 Move declarations from .c files to .h files.
3697 * process.c (timers_run):
3698 * minibuf.c (quit_char):
3699 * lread.c (read_emacs_mule_char):
3700 * keyboard.c (minibuf_level, message_enable_multibyte)
3701 (pending_malloc_warning):
3702 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3703 (Qonly): Remove declarations.
3704 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3705 (Vselect_active_regions):
2f8f196d 3706 * keyboard.h (timers_run): Add declarations.
50c77428 3707
654ef137
DN
3708 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3709 (tm_diff): Convert definitions to standard C.
3710 (extra_args_spec_iso): Remove, unused.
3711
4a47c275 37122010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
3713
3714 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3715
3716 * config.in (HAVE_G_TYPE_INIT): New symbol.
3717
4a47c275 37182010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
3719
3720 * lread.c (Fload): Mention `load-in-progress' and
3721 `load-file-name'. (Bug#7346)
3722
86520d8c
EZ
3723 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3724 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3725 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3726 subprocesses. Use buffer_free only ifdef subprocesses.
3727
3728 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3729 the subprocesses version, not in the non-subprocesses one.
3730
794a4b6d
EZ
3731 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3732
146d267b
EZ
37332010-11-17 Eli Zaretskii <eliz@gnu.org>
3734
3735 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
3736 lines on text-mode terminals. (bug#7417)
3737
fad0d565
SM
37382010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3739
3740 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
3741 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
3742
6b4bb703
KH
37432010-11-17 Kenichi Handa <handa@m17n.org>
3744
3745 * coding.c (Fset_terminal_coding_system_internal): Fix previous
3746 change (set charset-ID list instead of charset-symbol list).
3747
9173a8fb
CY
37482010-11-16 Chong Yidong <cyd@stupidchicken.com>
3749
3750 * keyboard.c (make_lispy_position): For text area clicks, record Y
3751 pixel position relative to the text area, excluding header line.
3752 Also change X and Y to Lisp_Objects, not pointers; don't return
3753 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
3754 buffer_posn_from_coords counting from the start of the text area.
3755 (Fposn_at_x_y, make_lispy_event): Callers changed.
3756
3757 * window.c (coordinates_in_window): Change X and Y to ints rather
3758 than pointers; don't return coordinates via pointers.
3759 (struct check_window_data): Change X and Y from pointers to ints.
3760 (window_from_coordinates): Remove args WX and WY; don't return
3761 coordinates via pointers.
3762 (Fcoordinates_in_window_p, window_from_coordinates):
3763 (check_window_containing, Fwindow_at): Callers changed.
3764 (window_relative_x_coord): New function.
3765
3766 * window.h (window_from_coordinates, window_relative_x_coord):
3767 Update prototypes.
3768
3769 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3770 the start of the text area.
3771
3772 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3773 call. Use window_relative_x_coord.
3774 (note_mouse_highlight): Change window_from_coordinates call.
3775
3776 * w32term.c (w32_read_socket):
3777 * msdos.c (dos_rawgetc):
3778 * xterm.c (handle_one_xevent): Likewise.
3779
d2762c86
DN
37802010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
3781
3782 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
3783 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
3784 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
3785 Convert definitions to standard C.
3786 * regex.c: Do not include <stdlib.h>, config.h does it.
3787 Include unistd.h.
3788 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
3789 (regerror, regfree): Convert definitions to standard C.
3790 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
3791 (__mktime_internal): Convert definitions to standard C.
3792
c2f0866a
DN
37932010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3794
42a7e7f1
DN
3795 * w32proc.c:
3796 * w32inevt.c:
3797 * w32heap.c:
3798 * w32.c: Remove config.h include guards.
3799
67802943
DN
3800 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
3801 No code changes.
3802
f0e1af46
DN
3803 * process.c: Include <sys/ioctl.h> unconditionally,
3804 keyboard.c already does it.
3805
c2f0866a
DN
3806 * keyboard.c (pending_malloc_warning): Add const to match
3807 definition in alloc.c.
3808 (Fset_input_interrupt_mode): Simplify #ifdefs.
3809
92d3ab7e
DN
38102010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3811
12e610e8
DN
3812 Clean up systty.h macros.
3813 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
3814 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
3815 definition in all uses.
3816 (EMACS_TTY_TABS_OK): Remove, it has a single user.
3817 * sysdep.c (discard_tty_input, child_setup_tty)
3818 (init_sys_modes, tabs_safe_p, reset_sys_modes):
3819 * emacs.c (shut_down_emacs):
3820 * callproc.c (child_setup):
3821 * term.c (dissociate_if_controlling_tty): Inline removed macros.
3822
92d3ab7e
DN
3823 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
3824
a3e6bad4
CY
38252010-11-14 Chong Yidong <cyd@stupidchicken.com>
3826
3827 * w32fns.c (Fx_create_frame):
3828 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
3829 resource here; it's now done at startup.
3830
5a232ffb
J
38312010-11-14 Jan Djärv <jan.h.d@swipnet.se>
3832
3833 * xterm.c (set_wm_state): Add Qnil to final cons.
3834
3835 * xselect.c (x_send_client_event): Remove unused variables cons and
3836 size.
3837
24021b38
YM
38382010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3839
2f8f196d 3840 * keyboard.c (modify_event_symbol): Add const to array elements of
24021b38
YM
3841 arg NAME_TABLE.
3842 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
3843 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
3844 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
3845 Add const to array elements.
3846 (scroll_bar_parts): Make static. Fix position of const.
3847
3848 * w32fns.c (lispy_function_keys): Add const to extern.
3849
3850 * w32inevt.c (lispy_function_keys): Likewise.
3851
afa42fe3
CY
38522010-11-14 Chong Yidong <cyd@stupidchicken.com>
3853
3854 * xfns.c (Fx_create_frame): Don't check for the cursorColor
3855 resource here; it's now done at startup.
3856
53260a94
DN
38572010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
3858
c865c575 3859 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 3860
c865c575 3861 Fix compilation on Solaris.
ff2e8052
DN
3862 * sysdep.c: Do not #include <term.h>.
3863 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
3864
53260a94
DN
3865 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
3866
933e29ff
J
38672010-11-13 Jan Djärv <jan.h.d@swipnet.se>
3868
3869 * xterm.c (set_wm_state): Don't put Atom in cons, call
3870 make_fixnum_or_float on them first.
3871 (x_term_init): Initialize Xatom_net_supporting_wm_check and
3872 Xatom_net_supported correctly.
3873
3874 * xselect.c (x_send_client_event): Move CHECK_STRING ...
3875 (Fx_send_client_event): to here.
3876
a048073e
MR
38772010-11-13 Martin Rudalics <rudalics@gmx.at>
3878
3879 * window.c (Fwindow_use_time): New function.
3880
0eb025fb
EZ
38812010-11-13 Eli Zaretskii <eliz@gnu.org>
3882
3883 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
3884 zero-width characters.
3885
3886 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
3887
3888 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
3889 box before drawing the glyphs inside it.
3890
3891 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
3892
bba3e508
SM
3893 * dispextern.h (enum glyphless_display_method):
3894 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
3895 All users changed.
0eb025fb 3896
bba3e508
SM
3897 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3898 Fix comments.
0eb025fb
EZ
3899 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
3900 whitespace in "[]", to simulate a box. Don't use uninitialized
3901 variable `width'.
3902
c869cc37
JD
39032010-11-11 Julien Danjou <julien@danjou.info>
3904
2d9074ba
JD
3905 * xsettings.c (init_xsettings): Use already fetch atoms.
3906
3907 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
3908 from dpyinfo.
3909
3910 * xselect.c (Fx_send_client_event): Split and create
3911 x_send_client_event.
3912
3913 * lisp.h: Do not EXFUN Fx_send_client_event.
3914
3915 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
3916 from dpyinfo.
3917 (wm_supports): Use atoms from dpyinfo.
3918 (do_ewmh_fullscreen): Use atoms from dpyinfo.
3919 (x_ewmh_activate_frame): Use atoms from dpyinfo.
3920 (xembed_set_info): Use atoms from dpyinfo.
3921 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
3922 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
3923 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
3924 Get all atoms in one round-trip.
3925 (set_wm_state): Use x_send_client_event rather than
3926 Fx_send_client_event, using Atom directly.
3927 (x_ewmh_activate_frame): Ditto.
3928 (x_set_sticky): Pass atoms to set_wm_state.
3929 (do_ewmh_fullscreen): Ditto.
3930
2d9074ba
JD
3931 * xterm.h (x_display_info): Add Xatom_net_supported,
3932 Xatom_net_supporting_wm_check, Xatom_net_active_window,
3933 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
3934
c869cc37
JD
3935 * xfns.c (Fx_show_tip): Fix typo in docstring.
3936
1a4236ea
SM
39372010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
3938
3939 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
3940 it's not negative.
3941
3106121c
YM
39422010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3943
3944 * font.c (font_filter_properties): Add const to array elements of
3945 properties args.
3946
3947 * font.h (font_filter_properties): Likewise.
3948
3949 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
3950 elements.
3951
3952 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
3953
da1fec2b
MA
39542010-11-10 Michael Albinus <michael.albinus@gmx.de>
3955
3956 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
3957 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
3958 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
3959 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
3960 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
3961
bd6bc222
GM
39622010-11-10 Glenn Morris <rgm@gnu.org>
3963
3964 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
3965
c0098065
EZ
39662010-11-09 Eli Zaretskii <eliz@gnu.org>
3967
bd6bc222 3968 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 3969
d607b96b 39702010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
3971
3972 * image.c (free_image): Don't garbage the frame here, since this
3973 function can be called while redisplaying (Bug#7210).
3974 (uncache_image): Garbage the frame here (Bug#6426).
3975
d607b96b 39762010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 3977
d607b96b
SM
3978 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
3979 parent is the root window. Check this after traversing window tree.
184765cc 3980
d607b96b 3981 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 3982
d607b96b 3983 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 3984
d607b96b
SM
3985 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
3986 before traversing window tree (Bug#5721).
c2e124a9 3987
27f92be7
J
39882010-11-07 Jan Djärv <jan.h.d@swipnet.se>
3989
66b16767
J
3990 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
3991
25f38310
SM
3992 * xdisp.c (note_mode_line_or_margin_highlight):
3993 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 3994
a971c0a7
EZ
39952010-11-06 Eli Zaretskii <eliz@gnu.org>
3996
3997 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
3998 adjust width of tool-tip frame to the width of text, excluding the
3999 stretch glyph at the beginning of R2L glyph rows.
4000
4001 * w32fns.c (Fx_show_tip): Likewise.
4002
80417b95
JD
40032010-11-06 Jan Djärv <jan.h.d@swipnet.se>
4004
4005 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 4006 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 4007
28118eb6
EZ
40082010-11-05 Eli Zaretskii <eliz@gnu.org>
4009
c1fc2d3a 4010 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
4011
4012 * term.c: Remove static mouse_face_* variables. All users
4013 changed.
4014 (term_show_mouse_face, term_clear_mouse_face)
4015 (fast_find_position, term_mouse_highlight): Functions deleted.
4016 (tty_draw_row_with_mouse_face): New function.
4017 (term_mouse_movement): Call note_mouse_highlight instead of
4018 term_mouse_highlight.
4019
bbf534ce
EZ
4020 * nsterm.m (ns_update_window_begin, ns_update_window_end)
4021 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
4022 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
4023 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
4024 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
4025 Replace Display_Info with Mouse_HLInfo everywhere where
4026 mouse_face_* members were accessed for mouse highlight purposes.
4027
4028 * xterm.c (x_update_window_begin, x_update_window_end)
4029 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
4030 (handle_one_xevent, x_free_frame_resources, x_term_init):
4031 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
4032 members were accessed for mouse highlight purposes.
4033
4034 * w32term.c (x_update_window_begin, x_update_window_end)
4035 (x_update_end, w32_read_socket, x_free_frame_resources)
4036 (w32_initialize_display_info): Replace Display_Info with
4037 Mouse_HLInfo everywhere where mouse_face_* members were accessed
4038 for mouse highlight purposes.
4039
4040 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
4041 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
4042 unless the frame is on a window-system.
c1fc2d3a 4043 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
4044 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
4045 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
4046 (note_mode_line_or_margin_highlight, note_mouse_highlight)
4047 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
4048 Replace Display_Info with Mouse_HLInfo everywhere where
4049 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 4050 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
4051 HAVE_WINDOW_SYSTEM conditional.
4052 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
4053 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
4054 (try_window_id) [HAVE_GPM || MSDOS]:
4055 Call x_clear_window_mouse_face.
d009ae66 4056 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
4057 systems. Call tty_draw_row_with_mouse_face for TTY systems.
4058 (show_mouse_face): Call draw_row_with_mouse_face, instead of
4059 calling draw_glyphs directly.
d009ae66
EZ
4060 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
4061 (cursor_in_mouse_face_p, rows_from_pos_range)
4062 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
4063 (note_mode_line_or_margin_highlight, note_mouse_highlight)
4064 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
4065 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
4066 fragments.
4067 (note_mouse_highlight): Call popup_activated for MSDOS as well.
4068 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
4069 integer.
4070 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
4071 (x_consider_frame_title, tool_bar_lines_needed):
4072 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
4073 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
4074 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
4075 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
4076 part.
d009ae66
EZ
4077
4078 * dispnew.c (mirror_make_current): Set Y coordinate of the
4079 mode-line and header-line rows.
c1fc2d3a
EZ
4080 (init_display): Setup initial frame's output_data for text
4081 terminal frames.
d009ae66 4082
c1fc2d3a
EZ
4083 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
4084 its own definition on msdos.c.
d009ae66
EZ
4085
4086 * msdos.c (show_mouse_face, clear_mouse_face)
4087 (fast_find_position, IT_note_mode_line_highlight)
4088 (IT_note_mouse_highlight): Functions deleted.
4089 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
4090 instead of IT_note_mouse_highlight.
4091 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
4092 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
4093 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
4094 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
4095 where mouse_face_* members were accessed for mouse highlight
4096 purposes.
4097
4098 * msdos.h (initialize_msdos_display): Add prototype.
4099
4100 * frame.h (MOUSE_HL_INFO): New macro.
4101
4102 * lisp.h (Mouse_HLInfo): New data type.
4103
4104 * xterm.h (struct x_display_info):
4105 * w32term.h (struct w32_display_info):
4106 * nsterm.h (struct ns_display_info):
4107 * termchar.h (struct tty_display_info): Use it instead of
4108 mouse_face_* members.
4109
4110 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
4111 1st argument.
4112 (frame_to_window_pixel_xy, note_mouse_highlight)
4113 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
4114 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
4115 HAVE_WINDOW_SYSTEM conditional.
4116 (draw_row_with_mouse_face): Declare prototype.
4117 (tty_draw_row_with_mouse_face): Declare prototype.
4118
6e8d7c47
EZ
41192010-11-05 Eli Zaretskii <eliz@gnu.org>
4120
bba3e508
SM
4121 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
4122 Remove unused variables.
6e8d7c47 4123
f31ba3f0
AR
41242010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4125
4126 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
4127 logic pointed out by Eli Zaretskii.
4128
448e17d6
LMI
41292010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
4130
0c3a9a9f
GM
4131 * coding.c (coding-category-list): Refer to set-coding-system-priority
4132 instead of the obsolete set-coding-priority in the doc string.
448e17d6 4133
3fdebbf9 41342010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0 4135
2f8f196d 4136 * nsfont.m (nsfont_draw): Correct previous patch to return
f31ba3f0
AR
4137 correct value.
4138 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
4139 don't change the method signature, change the return.
4140
41412010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
4142
4143 * nsfont.m (nsfont_draw)
4144 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 4145 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 4146
17c0c952
JD
41472010-11-03 Julien Danjou <julien@danjou.info>
4148
4149 * image.c (gif_load): Add support for transparency and specified
4150 :background.
4151
b18fad6d
KH
41522010-11-01 Kenichi Handa <handa@m17n.org>
4153
4154 * dispextern.h (lookup_glyphless_char_display): Extern it.
4155
4156 * termhooks.h (struct terminal): New member charset_list.
4157
4158 * coding.c (Fset_terminal_coding_system_internal): Set the
4159 `charset_list' member of struct terminal.
4160
a8039db1 4161 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
4162 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4163
4164 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
4165 (lookup_glyphless_char_display): Set it->what at the end.
4166 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4167 (last_glyphless_glyph_merged_face_id): Make them non-static.
4168
a8039db1
JB
4169 * w32term.c (x_draw_glyphless_glyph_string_foreground):
4170 Fix the arg with_background for font->driver->draw.
65b6b59a 4171
a8039db1 41722010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 4173
a8039db1
JB
4174 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
4175 Surround chp by parentheses.
0269bd90 4176
a8039db1 41772010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
4178
4179 Implement various display methods for glyphless characters.
4180
4181 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
4182 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
4183 (Qzero_width): New variables.
4184 (THIN_SPACE_WIDTH): New macro.
01c35094 4185 (lookup_glyphless_char_display): New function.
b2cca856
KH
4186 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4187 (last_glyphless_glyph_merged_face_id): New variables.
4188 (get_next_display_element): Check glyphless characters.
4189 (redisplay_internal): Initialize last_glyphless_glyph_frame and
4190 last_glyphless_glyph_face_id.
4191 (fill_glyphless_glyph_string): New function.
4192 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
4193 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
4194 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4195 (x_produce_glyphs): If a suitable font is not found, produce a
4196 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
4197 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
4198 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
4199 Qzero_width.
4200 (Vglyphless_char_display): Declare it as a Lisp variable.
4201
4202 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
4203 (struct glyph): Change the size of the member "type" to 3.
4204 Add glyphless to the union slice and u.
b2cca856
KH
4205 (enum display_element_type): Add IT_GLYPHLESS.
4206 (enum glyphless_display_method): New enum.
4207 (struct it): New member glyphless_method.
4208 (Vglyphless_char_display): Extern it.
4209
4210 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
4211 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4212
a8039db1 4213 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
4214 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4215
4216 * nsterm.m (ns_draw_glyph_string): Handle the case
4217 GLYPHLESS_GLYPH (the detail is not yet implemented).
4218
c8c59954
GM
42192010-10-31 Glenn Morris <rgm@gnu.org>
4220
80696982
GM
4221 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
4222
c8c59954
GM
4223 * frame.c (syms_of_frame) <tool-bar-mode>:
4224 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
4225
46eadc7a
CY
42262010-10-31 Chong Yidong <cyd@stupidchicken.com>
4227
4228 * xterm.c (x_connection_closed): Print informative error message
4229 when aborting on GTK. This requires using shut_down_emacs
4230 directly instead of Fkill_emacs.
4231
ffe75e6b
EZ
42322010-10-29 Eli Zaretskii <eliz@gnu.org>
4233
4234 * emacs.c (main): Call syms_of_filelock unconditionally.
4235
4236 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
4237 clause, but keep part of it conditioned on CLASH_DETECTION.
4238
9d794026
GM
42392010-10-29 Glenn Morris <rgm@gnu.org>
4240
4f4f2973
GM
4241 * nsfns.m (Fx-display-save-under, Fx-open-connection)
4242 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
4243 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
4244 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
4245 Sync docs between X, W32, NS.
4246
9d794026
GM
4247 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
4248 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
4249
d46f6bbb
JB
42502010-10-26 Juanma Barranquero <lekktu@gmail.com>
4251
4252 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
4253 otherwise, bootstrapping on Windows fails to compile macroexp.el.
4254
2e35f1a2
EZ
42552010-10-26 Eli Zaretskii <eliz@gnu.org>
4256
4257 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 4258 zero or negative. (Bug#7281)
2e35f1a2 4259
8daaeda6
J
42602010-10-26 Jan Djärv <jan.h.d@swipnet.se>
4261
4262 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
4263
6a5c2175
GM
42642010-10-25 Glenn Morris <rgm@gnu.org>
4265
4266 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
4267
7c051dd8
GM
42682010-10-24 Glenn Morris <rgm@gnu.org>
4269
4270 * w32fns.c (Fx_synchronize, Fx_change_window_property)
4271 (Fx_window_property, Fx_file_dialog):
4272 * xfns.c (Fx_synchronize, Fx_change_window_property)
4273 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
4274
23c261f5
CY
42752010-10-24 Chong Yidong <cyd@stupidchicken.com>
4276
4277 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
4278
d414c713 42792010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
4280
4281 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
4282
4283 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
4284 Deprecate use as a boolean flag.
4285
947f5e01
JM
42862010-10-24 Jim Meyering <jim@meyering.net>
4287
4288 * emacs.c (argmatch): Don't treat "--" as "--chdir".
4289
65807d73
GM
42902010-10-24 Glenn Morris <rgm@gnu.org>
4291
f5f25615
GM
4292 * w16select.c (syms_of_win16select) <selection-coding-system>:
4293 <next-selection-coding-system>:
4294 * w32select.c (syms_of_w32select) <selection-coding-system>:
4295 <next-selection-coding-system>:
3646b86d
GM
4296 Sync docs with select.el.
4297
46710489
GM
4298 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
4299 Lisp version.
4300
ea883883
GM
4301 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
4302 Sync doc with the xterm.c version.
4303
65807d73
GM
4304 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
4305 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
4306
f3d87560
GM
43072010-10-23 Glenn Morris <rgm@gnu.org>
4308
66c6abf0 4309 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 4310 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 4311 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 4312 <hourglass-delay>: Sync docs with Lisp.
f3d87560 4313
7b7e2c18
EZ
43142010-10-23 Eli Zaretskii <eliz@gnu.org>
4315
d1d6801e 4316 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
4317
4318 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
4319 (mouse_face_from_string_pos): New function, replaces
4320 fast_find_string_pos.
4321 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
4322 (note_mode_line_or_margin_highlight): Support bidi-reordered
4323 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
4324 (note_mouse_highlight): When bidi reordering is turned on in a
4325 buffer, call next-single-property-change and
ef1b0ba7
SM
4326 previous-single-property-change with last argument nil.
4327 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 4328 glyph that stands for no text beyond the line end.
1f382a02
EZ
4329 (row_containing_pos): Don't return too early when CHARPOS is in a
4330 bidi-reordered continued line. Return immediately when the first
4331 hit is found in a line that is not continued, or when an exact
4332 match for CHARPOS is found.
d1d6801e
EZ
4333 (rows_from_pos_range): New function.
4334 (mouse_face_from_buffer_pos): Use it instead of calling
4335 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
4336 function to support mouse highlight in bidi-reordered lines and
4337 not to assume that START_CHARPOS is always in mouse_face_beg_row.
4338 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
4339 that the former is always above the latter or identical to it.
1554d88e 4340 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
4341 (coords_in_mouse_face_p): New function, bidi-aware.
4342 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
4343 Call it instead of comparing with mouse-face members of dpyinfo.
4344 (note_mode_line_or_margin_highlight): Fix confusingly swapped
4345 usage of hpos and vpos.
544bbc31 4346
dee186b6
J
43472010-10-22 Jan Djärv <jan.h.d@swipnet.se>
4348
4349 * xrdb.c: Include keyboard.h for MOTIF.
4350
4351 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
4352 MOTIF (Bug#7263).
4353
4354 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
4355 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
4356 Make ANSI prototypes.
dee186b6 4357
5fb59edb
GM
43582010-10-22 Glenn Morris <rgm@gnu.org>
4359
4360 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
4361 Remove ccl and duplicate mouse.
4362
8b78d5e3
CY
43632010-10-21 Chong Yidong <cyd@stupidchicken.com>
4364
4365 * insdel.c (prepare_to_modify_buffer): Don't set
4366 saved-region-selection if modification hooks are disabled.
4367
b8a47412
CY
43682010-10-19 Chong Yidong <cyd@stupidchicken.com>
4369
4370 * cmds.c (Fdelete_char): Doc fix.
4371
ca3fa302 43722010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
4373
4374 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
4375
ca3fa302 43762010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
4377
4378 Fix incorrect font metrics when the same font is opened with
4379 different pixelsizes.
4380
4381 * xftfont.c: Include composite.h.
4382 (xftfont_shape): New function.
4383 (syms_of_xftfont): Set xftfont_driver.shape.
4384
c978536f
JD
43852010-10-18 Julien Danjou <julien@danjou.info>
4386
4387 * frame.c (Fframe_pointer_visible_p):
4388 Add `frame-pointer-visible-p' to get the pointer visibility.
4389
4b2d9ec2
LMI
43902010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
4391
4392 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
4393 non-"EAGAIN"-like error to signal to Emacs that the socket should
4394 be closed.
4395
9cf66cf2
EZ
43962010-10-15 Eli Zaretskii <eliz@gnu.org>
4397
c3911ead
EZ
4398 * unexcoff.c (make_hdr): Fix prototype according to changes in
4399 2010-10-03T13:59:56Z!dann@ics.uci.edu.
4400
9cf66cf2
EZ
4401 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
4402
be98da05
TH
44032010-10-15 Tassilo Horn <tassilo@member.fsf.org>
4404
4405 * Makefile.in (really-oldXMenu): Fix typo in variable name that
4406 made building the X menu fail.
cc98b256 4407 (really-oldXMenu): Fix my previous fix.
be98da05 4408
220d91b8 44092010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
4410
4411 Fix handling of font properties on Windows (bug#6303).
4412 * font.c (font_filter_properties): New function, refactored from
4413 ftfont_filter_properties.
4414 * font.h (font_filter_properties): Declare.
4415 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
4416 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
4417 (w32font_filter_properties): New function.
4418 (w32font_driver): Add w32font_filter_properties.
4419
220d91b8 44202010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 4421
c0943d3d 4422 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
4423 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
4424
24f981c9
JB
44252010-10-14 Juanma Barranquero <lekktu@gmail.com>
4426
4427 * w32fns.c (w32_wnd_proc, file_dialog_callback):
4428 * w32font.c (w32_generic_family):
4429 * w32inevt.c (key_event):
4430 * w32menu.c (fill_in_menu):
4431 * w32proc.c (reader_thread, w32_executable_type, compare_env)
4432 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
4433 * w32term.c (w32_read_socket): Make static.
4434
850690cc
JB
44352010-10-13 Juanma Barranquero <lekktu@gmail.com>
4436
4437 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
4438 prototypes; all callers changed.
4439
5e371708
JB
44402010-10-13 Juanma Barranquero <lekktu@gmail.com>
4441
4442 * makefile.w32-in (TLIB2): Rename from TLIBW32.
4443 (OBJ2): New macro.
4444 (WIN32OBJ, FONTOBJ): Remove.
4445 (OBJ1): Redistribute object files with OBJ2.
4446 (LIBS, $(TEMACS)): Use TLIB2.
4447 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
4448 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
4449
2e288d54
JB
44502010-10-13 Juanma Barranquero <lekktu@gmail.com>
4451
4452 * emacs.c (Vdynamic_library_alist)
4453 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
4454 Doc fix.
4455
4456 * lisp.h (Vdynamic_library_alist): Declare extern.
4457
4458 * image.c (Vimage_library_alist)
4459 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
4460 (lookup_image_type): Use Vdynamic_library_alist.
4461 (Finit_image_library): Doc fix.
4462
aba1381b
DN
44632010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
4464
4465 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
4466 (lispdir): Remove trailing /, update all uses.
4467
4c14013d 44682010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
4469
4470 * nsterm.m (Qleft): Declare.
01c35094 4471 (ns_right_alternate_modifier): New variable.
a2e35ef5
JD
4472 (NSRightAlternateKeyMask): New define.
4473 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
4474 ns_right_alternate_modifier isn't Qleft.
4475 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
4476 as emacs modifier for NSRightAlternateKeyMask.
4477 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
4478
355cdaf3
LMI
44792010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
4480
4481 * gnutls.c (emacs_gnutls_write): If we're trying to write before
4482 gnutls is ready, return EAGAIN as the errno.
4483
4c620157
DN
44842010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
4485
edfd76ce
DN
4486 * vm-limit.c:
4487 * unexhp9k800.c:
4488 * unexelf.c:
4489 * unexaix.c:
4490 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
4491
a4daeecf
DN
4492 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
4493 (PROFILING_LDFLAGS): Remove, not needed anymore.
4494
01c35094 4495 * Makefile.in: Use $(...) everywhere instead of ${...}.
4cf3ad30
DN
4496 (CRT_DIR): Move near potential user.
4497 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 4498
4c620157
DN
4499 * sysdep.c (LPASS8): Remove, unused.
4500 (emacs_ospeed): Change from being a global to a local in the only
4501 user: init_baud_rate.
4502
b845653d
LMI
45032010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4504
4505 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 4506 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 4507 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 4508 gnutls_read. This allows us to actually read lots of data from
b845653d 4509 the GnuTLS stream.
2e6c74c5
LMI
4510 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
4511 According to the documentation, this is correct, and it seems to
4512 make things work.
b845653d 4513
3625b3e2
CY
45142010-10-09 Chong Yidong <cyd@stupidchicken.com>
4515
4516 * xterm.c (x_draw_relief_rect): Clear corner pixels.
4517
8b1c619f
MA
45182010-10-08 Michael Albinus <michael.albinus@gmx.de>
4519
4520 * keyboard.c: Revert last change; it was not intended to be
4521 synchronized with the trunk.
4522
93d50df8
KH
45232010-10-08 Kenichi Handa <handa@m17n.org>
4524
2b7c9342 4525 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 4526
4628bef1 45272010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
4528
4529 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
4530 (Fdbus_init_bus): ... here. (Bug#7113)
4531
4628bef1 45322010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
4533
4534 * buffer.c (before-change-functions, after-change-functions):
4535 Three-year overdue doc fix following 2007-08-13 change.
4536
4628bef1 45372010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
4538
4539 * coding.c (coding_inherit_eol_type): If parent doesn't specify
4540 eol-format, inherit from the system's default.
4541 (complement_process_encoding_system): Make a new coding system
4542 inherit the original eol-format.
4543
4628bef1 45442010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
4545
4546 * coding.c (complement_process_encoding_system): New function.
4547
4548 * coding.h (complement_process_encoding_system): Extern it.
4549
4550 * callproc.c (Fcall_process): Complement the coding system for
4551 encoding arguments.
4552 (Fcall_process_region): Complement the coding system for encoding
4553 the input to the process.
4554
4555 * process.c (Fstart_process): Complement the coding system for
4556 encoding arguments.
4557 (send_process): Complement the coding system for encoding what
4558 sent to the process.
4559
4628bef1 45602010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
4561
4562 * xfont.c (xfont_open): Fix setting of font->average_width from
4563 :avgwidth property (Bug#7123).
4564
4628bef1 45652010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
4566
4567 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
4568 is more portable.
4569
4570 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
84eb0351 4571 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
4572 has not defined SIGIO.
4573
389454fb
CY
45742010-10-08 Chong Yidong <cyd@stupidchicken.com>
4575
4576 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
4577 draw the outermost line using the black relief, for legibility.
4578 Omit drawing the four corner pixels.
4579
51b403bd
CY
45802010-10-04 Chong Yidong <cyd@stupidchicken.com>
4581
4582 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
4583 (read_key_sequence): Inline echo_prompt.
4584 (echo_dash): Add a dash only if key is continued (Bug#7137).
4585
3e6ae1a4
DN
45862010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
4587
4588 Remove O_RDONLY, O_WRONLY definitions, not needed.
4589 * unexcoff.c:
4590 * lread.c:
4591 * fileio.c:
4592 * doc.c:
4593 * callproc.c:
4594 * alloc.c:
4595 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
4596
c1ae068b
LMI
45972010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
4598
4599 * gnutls.h (GNUTLS_LOG2): Convenience macro.
4600
4601 * gnutls.c: Add property list symbol holders.
4602 (emacs_gnutls_handshake): Clarify how sockets are passed to
4603 GnuTLS.
4604 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
4605 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
4606 and keyfiles to be a list of file names. Default to "NORMAL" for
4607 the priority string. Improve logging.
4608
e2afe435
GM
46092010-10-03 Glenn Morris <rgm@gnu.org>
4610
4611 * fileio.c (Vdirectory_sep_char): Remove.
4612
dd5ecd6b
DN
46132010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
4614
b5437a05
DN
4615 * termhooks.h: Remove #ifdef CONSP.
4616
4777478a
DN
4617 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4618
a3d5088d
DN
4619 Include <fcntl.h> unconditionally.
4620 * termcap.c:
4621 * sysdep.c:
4622 * lread.c:
4623 * keyboard.c:
4624 * filelock.c:
4625 * fileio.c:
4626 * doc.c:
4627 * callproc.c:
4628 * alloc.c: Remove include guards for <fcntl.h>, process.c already
4629 does it.
4630
82719735
DN
4631 * process.c: Do not include <sys/wait.h>, syswait.h does it.
4632
9de940b5
DN
4633 * sysdep.c (flush_pending_output): Remove code, does not do
4634 anything on any platform.
4635
57507bf8 4636 Remove unused code.
bba3e508
SM
4637 * sysdep.c (select_alarm, sys_select, read_input_waiting):
4638 Remove select emulation, all systems support select.
57507bf8
DN
4639 (set_exclusive_use): Remove, the only user is in an #if 0 block.
4640 * process.c (create_process): Remove #if 0 code.
4641
dd5ecd6b
DN
4642 Remove unused arguments for unexec.
4643 The third one is never used, and the last two are always passed as zero.
4644 * emacs.c (unexec): Add declaration.
4645 (Fdump_emacs): Only pass the first two arguments to unexec.
4646 Simplify #ifdef.
4647 * unexw32.c (unexec):
4648 * unexsol.c (unexec):
4649 * unexhp9k800.c (unexec):
4650 * unexcw.c (unexec): Remove the last 3 arguments, unused.
4651 * unexelf.c (unexec): Remove the last 3 arguments, unused.
4652 (find_section): Use const.
4653 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4654 (unexec_error): Declare it NO_RETURN.
4655 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4656 it as an argument, remove data_start and entry_address arguments, unused.
4657 (unexec): Remove bss_start, data_start and
4658 entry_address arguments.
4659 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4660 it as an argument, remove data_start and entry_address arguments, unused.
4661 (unexec): Remove bss_start, data_start and
4662 entry_address arguments.
4663
74f1829d
JB
46642010-10-03 Juanma Barranquero <lekktu@gmail.com>
4665
7f467e14
JB
4666 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4667
74f1829d
JB
4668 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4669 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4670 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4671 Fix typos in docstrings.
4672 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4673 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4674
6926550f
CY
46752010-10-03 Chong Yidong <cyd@stupidchicken.com>
4676
4677 * keyboard.c (command_loop_1): Make sure the mark is really alive
4678 before using it (Bug#7044).
4679
54b65f7b
JB
46802010-10-02 Juanma Barranquero <lekktu@gmail.com>
4681
4682 * makefile.w32-in (tags): Rename target to full-tags.
4683
383ebd15
EZ
46842010-10-02 Eli Zaretskii <eliz@gnu.org>
4685
4686 * emacs.c (main): Remove !WINDOWSNT conditional.
4687 (Fkill_emacs): Don't mention exemption on MS-Windows.
4688
9c524fcb
GM
46892010-10-02 Glenn Morris <rgm@gnu.org>
4690
3226d6ca
GM
4691 * character.c (Fchar_bytes): Remove obsolete function.
4692 (syms_of_character): Remove Schar_bytes.
4693
9c524fcb
GM
4694 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4695 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4696 in batch-mode.
4697 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
4698 (kill-emacs-hook): Doc fix.
4699
1b217849
LMI
47002010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
4701
4702 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 4703 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
4704 renamed to reflect that these are the libxml functions.
4705
54cc6a83
EZ
47062010-10-01 Eli Zaretskii <eliz@gnu.org>
4707
0ebf79de
EZ
4708 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4709 screen dimensions in tty->Wcm.
4710
54cc6a83
EZ
4711 * xdisp.c (set_cursor_from_row): When the row is truncated and
4712 point is outside the range of displayed characters, position the
4713 cursor inside the scroll margin. (Bug#6349)
4714
321401d1
DN
47152010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
4716
4cacd822
DN
4717 Do not include stdlib.h and string.h, config.h does it.
4718 * xfont.c:
4719 * w32term.c:
4720 * w32reg.c:
4721 * w32inevt.c:
4722 * w32heap.c:
4723 * w32console.c:
4724 * w16select.c:
4725 * unexsol.c:
4726 * term.c:
4727 * sound.c:
4728 * scroll.c (m):
4729 * gtkutil.c:
4730 * font.c:
4731 * filelock.c:
4732 * fileio.c:
4733 * dosfns.c:
4734 * dbusbind.c:
4735 * bidi.c:
4736 * callproc.c:
4737 * process.c:
4738 * msdos.c:
4739 * charset.c: Do not include stdlib.h and string.h, config.h does it.
4740
bba3e508
SM
4741 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
4742 defines it.
0781e7ab 4743
9bf58201
DN
4744 * process.c: Move #include <pty.h> earlier.
4745 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
4746 (pty_name): Move definition later.
4747
088dcc3e
DN
4748 * nsselect.m (syms_of_nsselect):
4749 * nsmenu.m (syms_of_nsmenu):
4750 * nsfns.m (syms_of_nsfns):
4751 * msdos.c (syms_of_msdos):
4cacd822 4752
088dcc3e
DN
4753 * image.c (syms_of_image):
4754 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4755
321401d1
DN
4756 * point.h: Remove, unused.
4757
73077a9a
EZ
47582010-10-01 Eli Zaretskii <eliz@gnu.org>
4759
4760 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4761 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4762 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4763
55e572ef
DN
47642010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4765
4766 * xml.c (parse_string): Use const.
4767
d4b6d95d
LMI
47682010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
4769
ef1b0ba7
SM
4770 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4771 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
4772 the level to 8 to produce more useful backtraces for bug reports.
4773
e4b6db12
DN
47742010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4775
4776 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4777
1becef93
JB
47782010-09-30 Juanma Barranquero <lekktu@gmail.com>
4779
4780 * w32console.c (vga_stdcolor_name): Remove unused function;
4781 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
4782
df7fcaff
LMI
47832010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
4784
bac5cef8
LMI
4785 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
4786 (Fgnutls_boot): Start the handshake.
4787 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
4788 (Fgnutls_boot): Remove some debugging messages.
4789 Change indentation throughout to use the Emacs style.
4790 (emacs_gnutls_handshake): Cast the fds to something that's
4791 possibly the expected length.
4792 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 4793
df7fcaff
LMI
4794 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
4795
4796 * process.c (make_process): Set the gnutls_p field to zero by
4797 default.
4798 (read_process_output): Always call the gnutls_read function if the
4799 stream is a gnutls stream.
4800 (send_process): Ditto for writes.
4801
4802 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
4803 or write anything until the state is GNUTLS_STAGE_READY.
4804 (Fgnutls_boot): Mark the stream as being a gnutls stream.
4805
d585695f
EZ
48062010-09-29 Eli Zaretskii <eliz@gnu.org>
4807
af7ef32d
EZ
4808 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
4809 NEUTRAL_DIR.
4810 (handle_invisible_prop, iterate_out_of_display_property)
4811 (next_element_from_buffer): If bidi_it.first_elt is set, call
4812 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
4813 (Bug#7128)
4814
d585695f
EZ
4815 * print.c (print_object): Fix format string and argument types for
4816 printing a Lisp_Misc_Marker.
4817
4818 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
4819 (load_overlay_strings, get_overlay_strings_1)
4820 (get_overlay_strings, forward_to_next_line_start)
4821 (back_to_previous_visible_line_start, reseat, reseat_to_string)
4822 (get_next_display_element, next_element_from_string)
4823 (next_element_from_c_string, next_element_from_buffer)
4824 (move_it_vertically_backward, move_it_by_lines, add_to_log)
4825 (message_dolog, message_log_check_duplicate, message2_nolog)
4826 (message3, message3_nolog, vmessage, set_message, set_message_1)
4827 (hscroll_window_tree, text_outside_line_unchanged_p)
4828 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
4829 (find_last_unchanged_at_beg_row)
4830 (find_first_unchanged_at_end_row, row_containing_pos)
4831 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
4832 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
4833 Use EMACS_INT for buffer and string positions.
d585695f
EZ
4834
4835 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
4836 (row_containing_pos): Adjust prototype.
4837
4838 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
4839 (message2_nolog, set_message): Adjust prototypes.
4840
a6f3211f
SM
48412010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4842
4843 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
4844 (Fgnutls_boot): Use SDATA.
4845 (Fgnutls_handshake): Remove unused var `max_log_level'.
4846
e0720500
MA
48472010-09-27 Michael Albinus <michael.albinus@gmx.de>
4848
11a5af7c 4849 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
4850 (Bug#7113)
4851
d8a4b27a
J
48522010-09-27 Jan Djärv <jan.h.d@swipnet.se>
4853
42d3022b
J
4854 * xgselect.c (xg_select): Clear file descriptors not set from
4855 rfds and wfds.
4856
d8a4b27a
J
4857 * process.c (wait_reading_process_output): Add missing FD_CLR
4858 for write_mask (must mirror connect_wait_mask).
4859
8ed70bf3
LMI
48602010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
4861
4862 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
4863 prefix.
4864 (Fgnutls_boot): Use changed process members. Use log level with a
4865 function parameter to set it. Bring back Emacs-level debugging
4866 messages at log level 1 and 2.
4867
4868 * process.c (make_process): Initialize gnutls_log_level.
4869
4870 * process.h: Add gnutls_log_level and rename x509_cred and
4871 anon_cred to have the gnutls_ prefix for consistency.
4872
4873 * gnutls.h (GNUTLS_LOG): Add convenience macro.
4874
bedf4aab
JB
48752010-09-27 Juanma Barranquero <lekktu@gmail.com>
4876
4877 * w32.c (g_b_init_get_sid_identifier_authority)
4878 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
4879 Remove, not used.
4880 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
4881 (init_winsock): Remove useless assignment.
4882 (open_process_token, get_token_information, lookup_account_sid)
4883 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
4884 (get_security_descriptor_owner, get_security_descriptor_group)
4885 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
4886 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
4887 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
4888 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
4889 (unc_volume_file_attributes, convert_from_time_t)
4890 (create_toolhelp32_snapshot, process32_first, process32_next)
4891 (open_thread_token, impersonate_self, revert_to_self)
4892 (get_process_memory_info, get_process_working_set_size)
4893 (global_memory_status, global_memory_status_ex, socket_to_fd)
4894 (shutdown_handler): Make static.
4895
08609ffd
MA
48962010-09-27 Michael Albinus <michael.albinus@gmx.de>
4897
4898 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
4899 (xd_pending_messages): Functions removed.
4900 (xd_read_queued_messages): Add parameters fd, *data, for_read in
4901 order to be compatible with add_read_fd. Determine bus from data,
4902 and call xd_read_message just for this bus.
4903 (xd_add_watch): Use xd_read_queued_messages as callback function.
4904 Add data.
4905
4906 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
4907
d2e9d0bb
LMI
49082010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
4909
ef1b0ba7 4910 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 4911 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 4912
4be9765d
KH
49132010-09-27 Kenichi Handa <handa@m17n.org>
4914
4915 These changes are to remove restriction on the number of glyphs in
4916 one composition.
4917
4918 * dispextern.h (struct glyph): Change the member "slice" to union.
4919 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 4920 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
4921
4922 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
4923 instead of glyph->slice.
4924 (marginal_area_string): Likewise.
4925
4926 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
4927 glyph->u.cmp.
4928 (append_composite_glyph): Likewise.
4929
4930 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
4931 glyph->u.cmp.
4932 (fill_gstring_glyph_string, x_get_glyph_overhangs)
4933 (append_composite_glyph): Likewise.
4934 (fill_image_glyph_string): Use glyph->slice.img instead of
4935 glyph->slice.
4936 (append_glyph, produce_image_glyph, append_stretch_glyph)
4937 (note_mouse_highlight): Likewise.
4938
3fad2ad2
J
49392010-09-26 Jan Djärv <jan.h.d@swipnet.se>
4940
bf05eed6
J
4941 * process.c (add_keyboard_wait_descriptor)
4942 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
4943 (wait_reading_process_output): Don't pass write_mask to select
4944 if SELECT_CANT_DO_WRITE_MASK is defined.
4945 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 4946
3fad2ad2
J
4947 * process.h (add_read_fd, delete_read_fd, add_write_fd)
4948 (delete_write_fd): Declare.
4949
4950 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
4951 (write_mask): New variable.
ef1b0ba7 4952 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 4953 (fd_callback_info): New variable.
70e31436
JB
4954 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
4955 New functions.
3fad2ad2
J
4956 (Fmake_network_process): FD_SET write_mask.
4957 (deactivate_process): FD_CLR write_mask.
4958 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
4959 check_connect removed. check_write is new. Remove references to gpm.
4960 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
4961 NON_BLOCKING_CONNECT) instead of Connecting.
4962 Loop over file descriptors and call callbacks in fd_callback_info
4963 if file descriptor is ready for I/O.
4964 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
4965 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
4966 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
4967 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
4968 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
4969 (init_process): Initialize write_mask and fd_callback_info.
4970
4971 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
4972
4973 * dbusbind.c: Include process.h.
4974 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
4975 (xd_read_message_1): New functions.
70e31436
JB
4976 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
4977 Handle watch for both read and write.
3fad2ad2
J
4978 (Fdbus_init_bus): Also register xd_toggle_watch.
4979 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4980 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
4981 to dbus_connection_flush.
70e31436 4982 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
4983 Call xd_read_message_1 until status is COMPLETE.
4984
dce4c2ac
DN
49852010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
4986
4987 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
4988 (init_tty): Reorder code to reduce the number of #ifdefs.
4989 No code changes.
dce4c2ac 4990
8af55556
TZ
49912010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
4992
4993 * process.h: Set up GnuTLS support.
4994
4995 * process.c (make_process, Fstart_process)
4996 (read_process_output, send_process): Set up GnuTLS support for
4997 process input/output file descriptors.
4998
4999 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
5000
5001 * gnutls.c: The source code for GnuTLS support in Emacs.
5002
5003 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
5004
5005 * config.in: Set up GnuTLS support.
5006
5007 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
5008 (obj, LIBES): Set up GnuTLS support.
5009
83e245c4
JB
50102010-09-26 Juanma Barranquero <lekktu@gmail.com>
5011
5012 * w32.c (get_emacs_configuration_options): Fix previous change.
5013
d24ec09a
CY
50142010-09-25 Chong Yidong <cyd@stupidchicken.com>
5015
5016 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
5017 alive before using it (Bug#6977).
5018
b7bdc47c
LMI
50192010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
5020
a952d5f3
LMI
5021 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
5022
5023 * dispextern.h: EMACS_INT/int fixup.
5024
5025 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
5026 fixup.
5027
b7bdc47c
LMI
5028 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
5029
41118bd3
EZ
50302010-09-25 Eli Zaretskii <eliz@gnu.org>
5031
2452438f
EZ
5032 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
5033 (Fselect_window, window_scroll_pixel_based)
5034 (window_scroll_line_based, Frecenter, Fset_window_configuration):
5035 Use EMACS_INT for buffer positions.
5036
5037 * textprop.c (validate_interval_range, interval_of)
5038 (property_change_between_p, Fadd_text_properties)
5039 (set_text_properties_1, Fremove_text_properties)
5040 (Fremove_list_of_text_properties, Ftext_property_any)
5041 (Ftext_property_not_all, copy_text_properties)
5042 (text_property_list, extend_property_ranges)
5043 (verify_interval_modification): Use EMACS_INT for buffer
5044 positions.
5045
f877c546
EZ
5046 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
5047 for buffer positions.
5048
5049 * process.c (read_process_output, send_process)
5050 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
5051 and string positions and size.
5052
da43f021
EZ
5053 * print.c (print_object, print_string, strout): Use EMACS_INT for
5054 string indices.
5055
5056 * minibuf.c (string_to_object): Use EMACS_INT for string position
5057 and size.
5058
5059 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
5060
5061 * lread.c <read_from_string_index, read_from_string_index_byte>
5062 <read_from_string_limit, readchar_count>: Define EMACS_INT.
5063 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
5064 buffer positions and string length.
5065
41118bd3
EZ
5066 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
5067 EMACS_INT.
5068 (echo_truncate, adjust_point_for_property, read_char)
5069 (gen_help_event, make_lispy_event, modify_event_symbol)
5070 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
5071 for buffer positions and string length.
5072
5073 * keyboard.h (gen_help_event): Adjust prototype.
5074
5075 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
5076
5077 * commands.h <last_point_position>: Declare EMACS_INT.
5078
5079 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
5080 (truncate_echo_area): Accept EMACS_INT argument.
5081
5082 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
5083
5084 * lisp.h (truncate_echo_area): Adjust prototype.
5085
5086 * composite.c (composition_adjust_point): Return EMACS_INT.
5087
5088 * composite.h (composition_adjust_point): Adjust prototype.
5089
ba3033ee
JB
50902010-09-25 Juanma Barranquero <lekktu@gmail.com>
5091
5092 * process.c (Fmake_network_process): When arg :host is 'local,
5093 use address 127.0.0.1, not name "localhost". (Bug#6781)
5094
4f3a2f8d
EZ
50952010-09-24 Eli Zaretskii <eliz@gnu.org>
5096
5816888b
EZ
5097 * indent.c (Fcurrent_indentation, indented_beyond_p)
5098 (compute_motion): Use EMACS_INT for buffer position variables.
5099
5100 * lisp.h (indented_beyond_p): Adjust prototype.
5101
5102 * buffer.c (overlay_strings): Return EMACS_INT.
5103
5104 * buffer.h (overlay_strings): Adjust prototype.
5105
5106 * region-cache.c (pp_cache): Adjust format to arguments.
5107
5108 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
5109 (call_debugger): Use EMACS_INT for specpdl_size related variables.
5110 (verror): Use EMACS_INT for size of allocated buffer.
5111
ace1712c
EZ
5112 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
5113 positions.
5114
5115 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
5116 (set_cursor_from_row, find_first_unchanged_at_end_row):
5117 Use EMACS_INT for buffer positions.
ace1712c 5118
f5276b75 5119 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
5120
5121 * dispnew.c (increment_matrix_positions)
5122 (increment_row_positions, copy_glyph_row_contents)
5123 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
5124 positions.
5125
5126 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
5127 (increment_matrix_positions, increment_row_positions):
5128 Adjust prototypes.
ace1712c
EZ
5129
5130 * data.c (Faref, Faset): Use EMACS_INT for string length and
5131 positions.
5132
5133 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
5134 characters to insert.
5135
5136 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
5137 position and size.
5138
4f3a2f8d
EZ
5139 * syntax.c (scan_words, update_syntax_table)
5140 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
5141 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
5142 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
5143
5144 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
5145
5146 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
5147 positions.
5148
db063399
LMI
51492010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
5150
f0812d35
LMI
5151 * scroll.c (calculate_scrolling, line_ins_del)
5152 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
5153 conversion.
5154
f5c7fc27
LMI
5155 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
5156 (region_cache_backward, region_cache_forward)
5157 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
5158 conversion.
5159
db063399
LMI
5160 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5161
5162 * eval.c (verror): Fix EMACS_INT/int conversion.
5163
07914cd0 5164 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
5165 (print_preprocess, print_check_string_charset_prop)
5166 (print_object): Fix EMACS_INT/int conversion.
5167
5168 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5169
e6d4aefa
EZ
51702010-09-24 Eli Zaretskii <eliz@gnu.org>
5171
69481da7
EZ
5172 * callproc.c (Fcall_process): Use EMACS_INT for count of
5173 characters read from the subprocess.
5174
61bfec98
EZ
5175 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
5176 positions.
5177 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
5178 positions.
5179
145582a0
EZ
5180 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
5181 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
5182 length.
5183 (advance_to_char_boundary, Fset_buffer_multibyte)
5184 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
5185 (overlay_touches_p, record_overlay_string, overlay_strings)
5186 (recenter_overlay_lists, fix_start_end_in_overlays)
5187 (modify_overlay, Fmove_overlay, report_overlay_modification)
5188 (evaporate_overlays): Use EMACS_INT for buffer positions.
5189
bba3e508
SM
5190 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
5191 Adjust prototypes.
145582a0 5192
446470a9
EZ
5193 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
5194 positions.
5195
e6d4aefa
EZ
5196 * fns.c (Fcompare_strings, Fstring_lessp, concat)
5197 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
5198 (Fsubstring_no_properties, substring_both, Ffillarray)
5199 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
5200 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
5201 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
5202 (Fmd5): Use EMACS_INT for buffer and string positions and length
5203 variables and arguments.
5204
5205 * lisp.h (substring_both): Adjust prototype.
5206
eb652396
JB
52072010-09-24 Juanma Barranquero <lekktu@gmail.com>
5208
5209 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
5210 * w32fns.c (clipboard_sequence_fn): Don't declare.
5211 (globals_of_w32fns): Don't initialize it.
5212
266a86bd 52132010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
5214
5215 * syntax.c (back_comment): Detect the case where a 1-char comment
5216 starter is also the 2nd char of a 2-char comment ender.
5217
266a86bd 52182010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
5219
5220 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
5221
40283062
LMI
52222010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5223
db063399
LMI
5224 * eval.c (verror): EMACS_INT/int cleanup.
5225
faf8b5bc
LMI
5226 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
5227 unwind_protect more than 2GB worth of functions.
5228
5229 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
5230
40283062
LMI
5231 * lisp.h: Have oblookup take EMACS_INT to allow interning big
5232 string and avoid compiler warnings.
5233 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
5234 all users.
5235
5236 * lread.c (oblookup): EMACS_INT/int cleanup.
5237
5238 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
5239
fe3537c3
EZ
52402010-09-23 Eli Zaretskii <eliz@gnu.org>
5241
5242 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
5243
5244 * lisp.h (clip_to_bounds): Adjust prototype.
5245
5246 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
5247
0350982f
LMI
52482010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5249
84c9ce05
LMI
5250 * lisp.h: doprnt.c EMACS_INT/int cleanup.
5251
5252 * doprnt.c (doprnt): EMACS_INT/int cleanup.
5253
5254 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
5255 cleanup.
5256
0350982f
LMI
5257 * lisp.h: Change the definition of all marker.c functions that
5258 take and return buffer stuff to be EMACS_INT instead of int.
5259
5260 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
5261 (buf_charpos_to_bytepos, bytepos_to_charpos)
5262 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
5263 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
5264 for all buffer positions.
5265
c50bd0d2
CY
52662010-09-23 Chong Yidong <cyd@stupidchicken.com>
5267
5268 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5269 (split_interval_right, find_interval, next_interval)
5270 (delete_node, delete_interval, interval_deletion_adjustment)
5271 (adjust_intervals_for_deletion, merge_interval_right)
5272 (merge_interval_left, graft_intervals_into_buffer)
5273 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
5274
5275 * intervals.h (traverse_intervals): Update prototype.
5276
14162469
EZ
52772010-09-23 Eli Zaretskii <eliz@gnu.org>
5278
c098fdb8
EZ
5279 * indent.c (compute_motion): Use EMACS_INT for arguments to
5280 region_cache_forward.
5281
bba3e508
SM
5282 * region-cache.c (struct boundary, struct region_cache):
5283 Use EMACS_INT for positions.
c098fdb8
EZ
5284 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
5285 (delete_cache_boundaries, set_cache_region)
5286 (invalidate_region_cache, know_region_cache)
bba3e508
SM
5287 (region_cache_forward, region_cache_backward, pp_cache):
5288 Use EMACS_INT for buffer positions.
c098fdb8
EZ
5289
5290 * region-cache.h (know_region_cache, invalidate_region_cache)
5291 (region_cache_forward, region_cache_backward): Adjust prototypes.
5292
5293 * search.c (string_match_1, fast_c_string_match_ignore_case)
5294 (looking_at_1, scan_buffer, scan_newline)
5295 (find_next_newline_no_quit, find_before_next_newline)
5296 (search_command, trivial_regexp_p, search_buffer, simple_search)
5297 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
5298 and string positions and length.
5299
caefdbe7
EZ
5300 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
5301 (find_before_next_newline): Adjust prototypes.
c098fdb8 5302
29cdc13e
EZ
5303 * editfns.c (transpose_markers, update_buffer_properties)
5304 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
5305 (get_pos_property, Fconstrain_to_field)
5306 (Fline_beginning_position, Fline_end_position, Fprevious_char)
5307 (Fchar_after, Fchar_before, Finsert_char)
5308 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
5309 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
5310 Use EMACS_INT for buffer and string position variables.
c098fdb8 5311 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
5312
5313 * lisp.h (clip_to_bounds): Adjust prototype.
5314
e79123aa
EZ
5315 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5316 (balance_an_interval, split_interval_right, split_interval_left)
5317 (find_interval, next_interval, update_interval)
5318 (adjust_intervals_for_insertion, delete_node, delete_interval)
5319 (interval_deletion_adjustment, adjust_intervals_for_deletion)
5320 (offset_intervals, merge_interval_right, merge_interval_left)
5321 (graft_intervals_into_buffer, adjust_for_invis_intang)
5322 (move_if_not_intangible, get_local_map, copy_intervals)
5323 (copy_intervals_to_string, compare_string_intervals)
5324 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 5325 and for interval tree size.
e79123aa
EZ
5326
5327 * intervals.h (traverse_intervals, split_interval_right)
5328 (split_interval_left, find_interval, offset_intervals)
5329 (graft_intervals_into_buffer, copy_intervals)
5330 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
5331 (update_interval): Adjust prototypes.
5332
579c18d0
EZ
5333 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
5334 Use EMACS_INT for buffer position variables and arguments.
5335
5336 * composite.c (get_composition_id, find_composition)
5337 (run_composition_function, compose_text)
5338 (composition_gstring_width, autocmp_chars)
5339 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
5340 for buffer positions and string length variables and arguments.
5341
5342 * composite.h (get_composition_id, find_composition, compose_text)
5343 (composition_gstring_width): Adjust prototypes.
5344
5345 * editfns.c (Fformat): Use EMACS_INT for string size variables.
5346
bba3e508
SM
5347 * xdisp.c (store_mode_line_noprop, display_mode_element):
5348 Use EMACS_INT for string positions.
579c18d0
EZ
5349
5350 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
5351 position arguments.
5352
5353 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
5354
5355 * character.c (parse_str_as_multibyte, str_as_multibyte)
5356 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 5357 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
5358 (strwidth, lisp_string_width, multibyte_chars_in_text):
5359 Use EMACS_INT for string length variables and arguments.
14162469
EZ
5360
5361 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 5362 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
5363 (c_string_width, strwidth, lisp_string_width):
5364 Adjust prototypes.
14162469 5365
579c18d0
EZ
5366 * font.c (font_intern_prop): Use EMACS_INT for string length
5367 variables.
5368
5369 * font.c (font_intern_prop): Use EMACS_INT for string length
5370 variables.
5371
14162469
EZ
5372 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
5373 variables.
5374
5375 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
5376 (Fmake_string): Protect against too large strings.
5377 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
5378 (live_misc_p): Use ptrdiff_t instead of int for pointer
5379 differences.
5380 (string_bytes, check_sblock, check_string_free_list)
5381 (allocate_string_data, compact_small_strings, Fmake_string)
5382 (Fmake_bool_vector, make_string, make_unibyte_string)
5383 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
5384 (make_specified_string_string, Fmake_list, Fmake_vector):
5385 Use EMACS_INT for string length variables and arguments.
14162469
EZ
5386 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
5387 (Fpurecopy): Use EMACS_INT for string size.
5388 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
5389 for vector size.
5390
5391 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
5392 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
5393 (make_pure_string, string_bytes, check_point_in_composition):
5394 Adjust prototypes.
14162469 5395
c8a66ab8
EZ
53962010-09-22 Eli Zaretskii <eliz@gnu.org>
5397
5398 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
5399 (check_translation): Use EMACS_INT for buffer positions and
5400 length.
5401
5402 * undo.c (record_marker_adjustment, record_delete)
5403 (record_change, record_point, record_insert)
5404 (record_property_change, Fprimitive_undo): Use EMACS_INT for
5405 buffer positions.
5406
5407 * lisp.h (record_marker_adjustment, record_delete)
5408 (record_change, record_point, record_insert)
5409 (record_property_change, Fprimitive_undo): Adjust prototypes.
5410
38c54d9d
JB
54112010-09-22 Juanma Barranquero <lekktu@gmail.com>
5412 Eli Zaretskii <eliz@gnu.org>
5413
5414 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
5415
413d18e7
EZ
54162010-09-22 Eli Zaretskii <eliz@gnu.org>
5417
5418 * minibuf.c (Fminibuffer_contents)
5419 (Fminibuffer_contents_no_properties)
5420 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
5421 positions.
5422
5423 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
5424 mark.
5425
5426 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
5427 (allocate_string_data): Accept EMACS_INT for string length.
5428
5429 * editfns.c (Ffield_string, Ffield_string_no_properties)
5430 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
5431 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
5432 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
5433 (Ffield_end): Use EMACS_INT for buffer positions.
5434
5435 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
5436 point with mark.
5437
5438 * lisp.h (allocate_string_data, make_uninit_string)
5439 (make_uninit_multibyte_string, make_buffer_string)
5440 (make_buffer_string_both): Adjust prototypes.
5441
4b9832a6
CY
54422010-09-22 Chong Yidong <cyd@stupidchicken.com>
5443
5444 * xml.c: Switch to GNU indentation.
5445 (make_dom): Change parse tree format to match xml.el.
5446 (Fxml_parse_html_string_internal): Rename from html-parse-string.
5447 (Fxml_parse_string_internal): Rename from xml-parse-string.
5448
86282aab
KH
54492010-09-22 Kenichi Handa <handa@m17n.org>
5450
5451 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
5452 only if we are not at a composition.
5453 (set_iterator_to_next): Give it->end_charpos to
5454 composition_compute_stop_pos.
5455 (set_iterator_to_next, next_element_from_buffer): Likewise.
5456
5457 * dispnew.c (buffer_posn_from_coords): Fix position when the
5458 current display element is a grapheme cluster in bidi-reordered
5459 region.
5460
840b985a
AR
54612010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
5462
5463 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
5464 the regions may overlap.
5465
5bc88f4b
JB
54662010-09-21 Juanma Barranquero <lekktu@gmail.com>
5467
5468 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
5469
92bc9a36
DN
54702010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5471
d19e096e
DN
5472 * emacs.c: Do not include sys/ioctl.h, not needed.
5473
92bc9a36
DN
5474 * doprnt.c: Do not include stdlib.h, config.h does it.
5475 Move #include before macro definition.
5476
15f844ac
DN
54772010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
5478
48e24408
DN
5479 * Makefile.in (temacs): Link using $(CC) not $(LD).
5480 (LD_FIRSTFLAG): Define using autoconf.
5481 (LD): Remove.
5482
65539506
DN
5483 Remove HAVE_TERMIOS definitions.
5484 * s/usg5-4-common.h (HAVE_TERMIOS):
5485 * s/template.h (HAVE_TERMIOS):
5486 * s/gnu-linux.h (HAVE_TERMIOS):
5487 * s/darwin.h (HAVE_TERMIOS):
5488 * s/cygwin.h (HAVE_TERMIOS):
5489 * s/bsd-common.h (HAVE_TERMIOS):
5490 * s/aix4-2.h (HAVE_TERMIOS):
5491 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
5492 defined on all non-MS platforms.
5493 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
5494
15f844ac
DN
5495 * xterm.c (xt_action_hook): Use const.
5496
7d701334
JB
54972010-09-20 Juanma Barranquero <lekktu@gmail.com>
5498
5499 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
5500 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5501 (gethostname) [!HAVE_SOCKETS]: Remove.
5502 (SOCK_REPLACE_HANDLE): Remove macro.
5503 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
5504 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
5505 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5506 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
5507
f3ec267a
EZ
55082010-09-18 Eli Zaretskii <eliz@gnu.org>
5509
5510 * deps.mk (xml.o): Add dependencies.
5511
93acd23d
JB
5512 * xdisp.c (Fcurrent_bidi_paragraph_direction):
5513 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
5514
5515 * bidi.c (bidi_paragraph_init): Accept an additional argument
5516 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
5517 search back until a paragraph with a strong directional character
5518 is found, and use that to determine paragraph's base direction.
5519
5520 * dispextern.h (bidi_paragraph_init): Update prototype.
5521
69e847be
EZ
55222010-09-17 Eli Zaretskii <eliz@gnu.org>
5523
5524 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
5525 of w32api >= 3.15. (Bug#6989)
5526
283357a7
LMI
55272010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
5528
5529 * process.c (wait_reading_process_output): Don't message about
5530 accept-process-output unless the time limit really is zero.
5531
4ddb20d6
SM
55322010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5533
5534 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
5535 int/Lisp_Object mixup).
5536
e24ad6dd
J
55372010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5538
5539 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
5540 not HELP.
5541
fb0cf781
J
55422010-09-17 Stephen Berman <stephen.berman@gmx.net>
5543
5544 * frame.c (Ftool_bar_pixel_width): New function to expose tool
5545 bar's pixel width to Lisp (Bug#7048).
5546
4ddb20d6
SM
55472010-09-14 Juanma Barranquero <lekktu@gmail.com>
5548
5549 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 5550
318a04c6
J
55512010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5552
5553 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
5554 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
5555
78a21772
KH
55562010-09-17 Kenichi Handa <handa@m17n.org>
5557
5558 * ftfont.c (ftfont_check_otf): Fix previous change.
5559
fa3f6039
KH
55602010-09-14 Kenichi Handa <handa@m17n.org>
5561
5562 * ftfont.c (ftfont_check_otf): Fix the case of checking just
5563 existence of GSUB or GPOS.
5564
2b5491fa
JB
55652010-09-14 Juanma Barranquero <lekktu@gmail.com>
5566
5567 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5568
c97c655f
LMI
55692010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
5570
ef1b0ba7 5571 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
5572 what it does.
5573 (parse_string): Return nil when the document can't be parsed.
5574
6664fc59 55752010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
5576
5577 * xterm.c (get_current_vm_state): New function.
5578 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
5579 want_fullscreen so set_wm_state calls are few (Bug#7013).
5580 (x_handle_net_wm_state): Move code to get_current_vm_state and
5581 call that function.
5582
6664fc59 55832010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
5584
5585 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
5586
6664fc59 55872010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
5588
5589 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
5590 we may use designation or locking-shift.
5591
6664fc59 55922010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
5593
5594 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
5595 sequence when the source is multibyte.
5596
1da70e99
AS
55972010-09-14 Andreas Schwab <schwab@linux-m68k.org>
5598
6664fc59
JB
5599 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
5600 Don't make first argument optional. Doc fix.
1da70e99 5601
26632d8d
LMI
56022010-09-14 Leo <sdl.web@gmail.com> (tiny change)
5603
5604 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
5605 parameters for the doc string.
5606
21fa8e37
LMI
56072010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
5608
5609 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
5610
5616cc54
SM
56112010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5612
5613 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
5614 (syms_of_fns): Don't defsubr Sy_or_n_p.
5615 * lisp.h: Don't declare Fy_or_n_p.
5616 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
5617
381408e2
LMI
56182010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
5619
5620 * xml.c (Fxml_parse_buffer): New function to parse XML files.
5621
56222010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
5623
5624 * xml.c: New file.
5625 (Fhtml_parse_buffer): New function to interface to the libxml2
5626 html parsing function.
5627
733946e7
JB
56282010-09-05 Juanma Barranquero <lekktu@gmail.com>
5629
5630 * biditype.h: Regenerate.
5631
7574650a
AS
56322010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5633
5634 * nsimage.m (ns_load_image): Check argument types.
5635
5636 * image.c: Remove all uses of gcpro.
5637 (xpm_load): Check all lisp types.
5638 (pbm_load): Likewise.
5639 (png_load): Likewise.
5640 (jpeg_load): Likewise.
5641 (tiff_load): Likewise.
5642 (gif_load): Likewise.
5643 (imagemagick_load_image): Likewise.
5644 (imagemagick_load): Likewise.
5645 (svg_load): Likewise.
5646 (gs_load): Likewise.
5647
6e6b8e25
EZ
56482010-09-04 Eli Zaretskii <eliz@gnu.org>
5649
bba3e508
SM
5650 * w32uniscribe.c (uniscribe_shape): Update commentary.
5651 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
5652 hold them in the logical order.
5653 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5654 return glyph codes in the logical order.
5655
dbfe4532
AS
56562010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5657
5658 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 5659 (imagemagick_load_image): Fix type mismatch.
5e5992c2 5660 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 5661
6d7cc563
JD
56622010-09-02 Jan Djärv <jan.h.d@swipnet.se>
5663
5664 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5665
5666 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5667
5668 * xselect.c: Remove declaration of cut-buffer objects and functions.
5669 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5670 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5671 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5672 (Fx_rotate_cut_buffers_internal): Remove.
5673 (syms_of_xselect): Remove defsubr of above.
5674 Remove intern of QCUT_BUFFERn.
5675
8f4e9110
SM
56762010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5677
5678 * cmds.c (Vblink_paren_function): Remove.
5679 (internal_self_insert): Make it insert N chars at a time.
5680 Don't call blink-paren-function.
5681 (Fself_insert_command): Adjust accordingly.
5682 (syms_of_cmds): Don't declare blink-paren-function.
5683
d419e1d9
KH
56842010-08-31 Kenichi Handa <handa@m17n.org>
5685
5686 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5687 characters.
5688
5689 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
5690 (produce_glyphs): Don't set it->char_to_display here.
5691 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
5692 (produce_special_glyphs): Set temp_it.char_to_display before
5693 calling produce_glyphs.
5694
5695 * xdisp.c (get_next_display_element): Set it->char_to_display
5696 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5697 characters.
5698 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5699 calling PRODUCE_GLYPHS.
5700 (append_space_for_newline): Save and store it->char_to_display.
5701 Set it->char_to_display before calling PRODUCE_GLYPHS.
5702 (extend_face_to_end_of_line): Set it->char_to_display before
5703 calling PRODUCE_GLYPHS.
5704 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5705 character to its byte value.
5706 (get_char_glyph_code): New function.
5707 (produce_stretch_glyph): Set it2.char_to_display too before
5708 calling x_produce_glyphs.
5709 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
5710 non-ASCII characters. Don't set it->char_to_display here.
5711 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 5712 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 5713
b819f760
SM
57142010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5715
5716 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5717
07fa68a7
CY
57182010-08-31 Chong Yidong <cyd@stupidchicken.com>
5719
5720 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5721
cd196f12
SM
57222010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
5723
5724 * marker.c (Fcopy_marker): Make the first arg optional.
5725
49a752bb
KH
57262010-08-30 Kenichi Handa <handa@m17n.org>
5727
5728 * composite.c (composition_update_it): Fix computing of
5729 cmp_it->width.
5730
769ae9e1
KH
57312010-08-29 Kenichi Handa <handa@m17n.org>
5732
9e69cb05 5733 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 5734 corresponding bytes.
9e69cb05 5735
4520b858
J
57362010-08-29 Jan Djärv <jan.h.d@swipnet.se>
5737
5738 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
5739
fe50eb41
KH
57402010-08-26 Kenichi Handa <handa@m17n.org>
5741
5742 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
5743 on calling composition_compute_stop_pos.
5744
f6aa6ec6
KH
57452010-08-25 Kenichi Handa <handa@m17n.org>
5746
9dfdbc0a
KH
5747 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
5748 :otf.
5749
f6aa6ec6
KH
5750 * composite.c (composition_compute_stop_pos): Don't break
5751 composition at PT.
5752 (composition_reseat_it): Likewise. Fix calculation of character
5753 position starting a composition.
5754 (Fcomposition_get_gstring): Don't limit the number of components
5755 for automatic composition.
5756
ff94e32c
KH
57572010-08-25 Kenichi Handa <handa@m17n.org>
5758
5759 * composite.c (composition_compute_stop_pos): In forward search,
5760 pay attention to the possibility that some character after ENDPOS
5761 will be composed with charactrs before ENDPOS.
5762
1c409d0b
CY
57632010-08-24 Chong Yidong <cyd@stupidchicken.com>
5764
5765 * keyboard.c (command_loop_1): Don't clobber primary selection
5766 during handle-switch-frame (Bug#6872).
5767
0c372655
MA
57682010-08-23 Michael Albinus <michael.albinus@gmx.de>
5769
5770 * dbusbind.c: Accept UNIX domain sockets as bus address.
5771 (Fdbus_close_bus): New function.
5772 (Vdbus_registered_buses): New variable.
5773 (xd_initialize): Implement string as bus address.
5774 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5775 (Fdbus_get_unique_name, Fdbus_call_method)
5776 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5777 (Fdbus_method_error_internal, Fdbus_send_signal)
5778 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
5779 check. This is done in xd_initialize_bus. Adapt doc string, if
5780 necessary.
5781 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
5782 Vdbus_registered_buses.
5783 (Vdbus_registered_objects_table): Create hash.
5784
7133b7ee
JL
57852010-08-22 Juri Linkov <juri@jurta.org>
5786
5787 * keyboard.c (Fexecute_extended_command): Move reading a command name
5788 with `completing-read' to a new Elisp function `read-extended-command'.
5789 Call it to read a command to `function' (bug#5364, bug#5214).
5790
198a7a97
CY
57912010-08-22 Chong Yidong <cyd@stupidchicken.com>
5792
5793 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
5794
b0126eac 57952010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
5796
5797 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
5798 instead of SAFE_ALLOCA.
5799
b0126eac 58002010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
5801
5802 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
5803 (Bug#6214).
5804
b0126eac 58052010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
5806
5807 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
5808
b0126eac
CY
58092010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5810
5811 * doc.c (Fsnarf_documentation): Initialize skip_file before
5812 build-files test.
5813
692f3ddc 58142010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 5815
692f3ddc
JB
5816 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
5817 New definitions.
b0126eac
CY
5818 (HAVE_TERMIO): Remove.
5819
5f2f0bc1
EZ
58202010-08-22 Eli Zaretskii <eliz@gnu.org>
5821
b613941b
EZ
5822 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
5823
a583bbef
EZ
5824 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
5825 for w32.
5826
5827 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
5828 it's done in nt/config.nt.
5829
5830 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
5831
5f2f0bc1
EZ
5832 * unexcoff.c (report_error, make_hdr, write_segment)
5833 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
5834 Convert argument lists and prototypes to ANSI C.
5835 (make_hdr, write_segment): Remove unused variables.
5836 (unexec): Remove commented-out line. Initialize `new' to shut up
5837 compiler warnings.
5838
a7ebc409
DN
58392010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
5840
5841 Simplify termio code.
5842 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
5843 HAVE_TERMIO code is obsolete.
5844 Replace HAVE_TERMIOS conditionals with !DOS_NT.
5845 * systty.h: Do not define HAVE_TCATTR.
5846 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
5847 Do not define EMACS_HAVE_TTY_PGRP. Only define
5848 EMACS_GET_TTY_PGRP for !DOS_NT.
5849 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
5850 sys/ioctl.h and termios.h, systty.h does it.
5851 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
5852 (init_baud_rate): Remove HAVE_TERMIO code.
5853 (child_setup_tty): Remove HAVE_TERMIO code.
5854 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
5855 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
5856 (new_ltchars, new_tchars): Remove, unused.
5857 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
5858 code. Remove special casing for __mips__, it was a no-op.
5859 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
5860 (init_sys_modes): Remove HPUX special case.
5861 * process.c: Include stdlib.h unconditionally. Do not include
5862 fcntl.h, systty.h does it. Remove conditional code for
5863 HAVE_SERIAL, it is always true.
5864 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
5865 always true when SIGNALS_VIA_CHARACTERS is true.
5866 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
5867 !WINDOWSNT means HAVE_TERMIOS.
5868 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
5869 conditional, which is true for all HAVE_TERMIOS systems.
5870 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
5871 instead of HAVE_TERMIOS.
5872 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
5873 EMACS_HAVE_TTY_PGRP.
5874 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
5875 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
5876 anyway.
5877
914f049b 58782010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
5879
5880 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
5881 mirroring pixel positions.
5882
d931da8c
DN
58832010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
5884
b5c76d0c
DN
5885 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
5886 write only.
5887 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
5888 malloc_sbrk_used, nothing uses them.
5889
74815588
DN
5890 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
5891 defined, unconditionally defined in lisp.h.
5892
f5817d1c
DN
5893 * term.c: Do not include <termios.h>, systty.h does it.
5894
d931da8c
DN
5895 * s/unixware.h (HAVE_TCATTR):
5896 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
5897 systty.h defines it when HAVE_TERMIOS is defined.
5898
ff2de6d2 58992010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 5900
b43c883c 5901 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 5902 terminals: add one-character offset for R2L lines.
b43c883c 5903
491a1546
EZ
5904 * emacs.c <emacs_version>: Add a comment regarding
5905 msdos/mainmake.v2's dependency on the syntax of this declaration.
5906
2396cbba
EZ
59072010-08-20 Eli Zaretskii <eliz@gnu.org>
5908
5909 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
5910 position for R2L lines by mirroring the pixel position wrt the
5911 text are box. Improve commentary.
5912
7df6150a
AS
59132010-08-20 Andreas Schwab <schwab@linux-m68k.org>
5914
5915 * image.c (imagemagick_clear_image): Remove debugging output.
5916
a2e5caf7
SM
59172010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5918
5919 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
5920 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
5921 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
5922 self-insert-face.
5923 (syms_of_cmds): Initialize the new vars.
5924
20d60baf
JR
59252010-08-19 Jason Rumney <jasonr@gnu.org>
5926
cc477da7
JR
5927 * w32menu.c (set_frame_menubar): Remove call to undefined function.
5928
20d60baf
JR
5929 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
5930
2c0ac867
J
59312010-08-19 Jan Djärv <jan.h.d@swipnet.se>
5932
5933 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
5934
93352106
EZ
59352010-08-18 Eli Zaretskii <eliz@gnu.org>
5936
5937 * xterm.c (x_draw_bar_cursor):
5938 * w32term.c (x_draw_bar_cursor): If the character under cursor is
5939 R2L, draw the bar cursor on its right rather than on its left.
5940
c785836d
SM
59412010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
5942
0193499f
SM
5943 * eval.c (Fdefmacro): Only obey one declaration.
5944
c785836d
SM
5945 * casefiddle.c (casify_region): Setup gl_state.
5946
9cb728a5
J
59472010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5948
5949 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
5950
e1e18511
J
59512010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5952
1d77b63e 5953 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 5954
64cb6c78
J
59552010-08-18 David De La Harpe Golden <david@harpegolden.net>
5956
5957 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
5958 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
5959 QPRIMARY => NXPrimaryPboard.
5960 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
5961 NXPrimaryPboard => QPRIMARY.
5962 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
5963 NXSecondaryPboard = SecondarySelection.
5964 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
5965
0c9b8993
GM
59662010-08-18 Joakim Verona <joakim@verona.se>
5967
5968 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
5969 defined:
5970 (imagemagick_image_p): New function to test for ImageMagic image.
5971 (imagemagick_load): New function to load ImageMagick image.
5972 (imagemagick_load_image): New function, helper for imagemagick_load.
5973 (imagemagick-types): New function.
5974 (Qimagemagick): New Lisp_object.
5975 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 5976
c3554f68
SM
59772010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
5978
5979 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
5980 is a string.
5981
1ff2e434
J
59822010-08-17 Jan Djärv <jan.h.d@swipnet.se>
5983
5984 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
5985 x_set_tool_bar_position handler.
5986
0cc56427
EZ
59872010-08-17 Eli Zaretskii <eliz@gnu.org>
5988
5989 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
5990 x_set_tool_bar_position handler, needed to support changes from
5991 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
5992
e45a249b
JD
59932010-08-16 Jan Djärv <jan.h.d@swipnet.se>
5994
2f8f196d 5995 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
921242c6 5996 declaration (Bug#6863).
573d150b 5997 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 5998
e45a249b
JD
5999 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
6000
6001 * keyboard.h (QPRIMARY): Declare (Bug#6864).
6002
7c23dd44
CY
60032010-08-16 Chong Yidong <cyd@stupidchicken.com>
6004
6005 * keyboard.c (command_loop_1): Avoid setting selection twice,
6006 since it's done in deactivate-mark as well.
6007 (Vselect_active_regions): Change default to t. Replace `lazy'
6008 with non-default value `only', meaning only set PRIMARY for
6009 temporarily active regions.
6010
6011 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
6012 select-active-regions.
6013
0005830c
J
60142010-08-15 Jan Djärv <jan.h.d@swipnet.se>
6015
6016 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
6017 isn't a string.
6018
603dfc72
AS
60192010-08-15 Andreas Schwab <schwab@linux-m68k.org>
6020
6021 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
6022
c25ce9d0
J
60232010-08-15 Jan Djärv <jan.h.d@swipnet.se>
6024
c3554f68
SM
6025 * keyboard.c (parse_tool_bar_item): malloc buf.
6026 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
6027 new_lbl (Bug#6855).
c25ce9d0 6028
5872c762
EZ
60292010-08-14 Eli Zaretskii <eliz@gnu.org>
6030
b236615c
EZ
6031 * xterm.c (x_draw_stretch_glyph_string):
6032 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
6033 the cursor on the right edge of the stretch glyph.
6034
c3554f68
SM
6035 * xdisp.c (window_box_right_offset, window_box_right):
6036 Fix commentary.
b236615c 6037
5872c762
EZ
6038 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
6039 direction when point is inside a run of whitespace characters.
6040
6041 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
6042
e66f9a1b
JR
60432010-08-14 Jason Rumney <jasonr@gnu.org>
6044
6045 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
6046
79d6f59e
CY
60472010-08-14 Chong Yidong <cyd@stupidchicken.com>
6048
6049 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
6050
1c9b4129
JR
60512010-08-13 Jason Rumney <jasonr@gnu.org>
6052
6053 * w32menu.c (simple_dialog_show): Use unicode message box if available.
6054 (MessageBoxW_Proc): New function typedef.
6055 (unicode-message-box): New function pointer.
2f8f196d 6056 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1c9b4129 6057
2b4e6277
J
60582010-08-13 Jan Djärv <jan.h.d@swipnet.se>
6059
6060 * frame.h (Qtool_bar_position): Declare.
6061
6062 * xfns.c (Fx_create_frame): Call x_default_parameter for
6063 Qtool_bar_position.
6064
94c97d85
EZ
60652010-08-13 Eli Zaretskii <eliz@gnu.org>
6066
8ee81892
EZ
6067 * unexcoff.c: Remove the parts used when "emacs" is not defined.
6068 (report_error, report_error_1): Ditto.
6069 (write_segment): Remove "#if 0" unused code.
6070 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
6071 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
6072 (start_of_text): Remove unused function (was used only if NO_REMAP
6073 was NOT defined).
6074
891ef8f7
EZ
6075 * msdos.c (IT_set_face): Fix format string to match argument
6076 types.
6077 (IT_write_glyphs, IT_note_mode_line_highlight)
6078 (IT_set_frame_parameters): Remove unused variables.
6079 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
6080 (IT_set_terminal_modes): Disambiguate expression in if clause.
6081 (Fmsdos_remember_default_colors): Return Qnil.
6082 (IT_set_frame_parameters): Add parens to disambiguate boolean
6083 expression for logging the cursor type to termscript.
6084 (keyboard_layout_list, keypad_translate_map)
6085 (grey_key_translate_map): Add braces in inner initializers.
6086 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
6087 (dos_rawgetc): Remove unused label.
6088 (XMenuActivate): Add braces to remove ambiguous `else'.
6089 (dos_ttraw): Always return a value.
6090 (spawnve): Declare.
6091 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
6092
6093 * dosfns.h (x_set_title): Declare.
6094
6095 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
6096 Remove unused variables.
6097
6098 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
6099 variables.
6100 (init_dosfns): Declare get_lim_data.
6101 (system_process_attributes): Declare Fget_internal_run_time.
6102
38e41e0e
EZ
6103 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
6104 list to be consistent with menu.h.
6105
94c97d85
EZ
6106 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
6107 warnings due to mixing of "char *" and "const char *".
6108
c5683ceb
SM
61092010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6110
6111 Introduce a new comment style "c" flag.
6112 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
6113 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
6114 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
6115 (syntax_prefix_flag_p): New function.
6116 (Fstring_to_syntax): Understand new "c" flag.
6117 (Finternal_describe_syntax_value): Recognize new flag; use the
6118 SYNTAX_FLAGS_* macros.
6119 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
6120 comment style to accomodate the new styles.
6121 (back_comment, forw_comment, Fforward_comment, scan_lists)
6122 (scan_sexps_forward): Update code to obey the new comment style flag.
6123
6124 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
6125
6126 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
6127
7aee76f4
J
61282010-08-11 Jan Djärv <jan.h.d@swipnet.se>
6129
3a46642b
J
6130 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
6131 first.
94dff98f 6132 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
6133
6134 * gtkutil.h (xg_check_special_colors): Declare.
6135
6136 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
6137 (xg_create_frame_widgets): Connect theme name changes to
6138 style_changed_cb.
6139
42ca4633
J
6140 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
6141 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
6142 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 6143 string literal. file is const char*.
42ca4633
J
6144
6145 * xsmfns.c (NOSPLASH_OPT): Change to char[].
6146 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
6147 props. Free them at the end.
6148
6149 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
6150
c5683ceb
SM
6151 * xrdb.c (get_system_app): Make path const and use char *p for
6152 non-const char.
42ca4633
J
6153
6154 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 6155 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
6156 char *.
6157 (button_names): Is const char *.
6158 (xdialog_show): error_name and pane_string is const.
6159
6160 * process.h (synch_process_death): Is const char*.
6161
6162 * w32menu.c (w32_menu_show):
6163 * nsmenu.m (ns_menu_show): error parameter is const char **.
6164
6165 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
6166 is const char **.
6167
6168 * menu.c (Fx_popup_menu): error_name is const.
6169
6170 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
6171 with unsigned char and XtPointer with void *.
6172
6173 * gtkutil.h: Replace widget_value with struct _widget_value.
6174 (enum button_type, struct _widget_value): Remove and use the one from
6175 keyboard.h.
6176
6177 * gtkutil.c (get_utf8_string): Always return an allocated string.
6178 Parameter is const.
6179 (create_dialog, xg_create_one_menuitem, create_menus)
6180 (xg_item_label_same_p, xg_update_menu_item): Free result from
6181 get_utf8_string.
6182 (xg_separator_p, xg_item_label_same_p): label is const.
6183
6184 * font.h (font_open_by_name): Make name const.
6185
6186 * font.c (font_open_by_name): Make name const.
6187
6188 * floatfns.c (matherr): Use a const char* variable for x->name.
6189
6190 * emacs.c (main): Pass char[] to putenv instead of literal.
6191
6192 * callproc.c (synch_process_death): Make const.
6193 (Fcall_process): Make signame const.
6194
9c5bd55a
J
6195 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
6196 (addDisplayItemWithImage): Use const char*.
6197
6198 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
6199 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
6200
6201 * nsfont.m (ns_descriptor_to_entity): Use const char*.
6202
6203 * keyboard.h (_widget_value): name, value and key are const char*.
6204
7aee76f4
J
6205 * unexmacosx.c (unexec_error): Use const char *.
6206
09d93395
DN
62072010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6208
6209 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 6210 (font_parse_name, font_open_by_name):
09d93395 6211 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 6212 (font_parse_name, font_open_by_name): Remove const.
09d93395 6213
671d409f
AS
62142010-08-09 Andreas Schwab <schwab@linux-m68k.org>
6215
6216 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
6217 definition.
6218
6219 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
6220 * m/amdx86-64.h: Likewise.
6221 * m/arm.h: Likewise.
6222 * m/hp800.h: Likewise.
6223 * m/ia64.h: Likewise.
6224 * m/ibmrs6000.h: Likewise.
6225 * m/ibms390.h: Likewise.
6226 * m/intel386.h: Likewise.
6227 * m/iris4d.h: Likewise.
6228 * m/m68k.h: Likewise.
6229 * m/macppc.h: Likewise.
6230 * m/mips.h: Likewise.
6231 * m/sh3.h: Likewise.
6232 * m/sparc.h: Likewise.
6233 * m/template.h: Likewise.
6234 * m/vax.h: Likewise.
6235 * m/xtensa.h: Likewise.
6236 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
6237 WORDS_BIG_ENDIAN.
6238 * lisp.h: Likewise.
6239 * md5.c: Likewise.
6240 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
6241
8ea90aa3
DN
62422010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6243
6244 Use const char* instead of char*.
6245 Reduce the number of warnings with -Wwrite-strings.
6246 * xrdb.c (get_environ_db, get_system_name):
6247 * unexelf.c (find_section):
6248 * term.c (string_cost, string_cost_one_line, per_line_cost)
6249 (get_named_tty, init_tty):
6250 * sysdep.c (sys_subshell):
6251 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
6252 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
6253 * search.c (Freplace_match):
6254 * process.c (Fmake_network_process, send_process, init_process):
6255 * lread.c (Fload, init_lread):
6256 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
6257 * keyboard.c (parse_tool_bar_item, struct event_head):
6258 * gtkutil.h (xg_get_font_name):
6259 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
6260 (make_widget_for_menu_item, make_menu_item, create_menus)
6261 (xg_make_tool_item):
6262 * font.c (parse_matrix, font_parse_name):
6263 * floatfns.c (rounding_driver, float_error_fn_name):
6264 * filelock.c (get_boot_time_1, lock_file_1):
6265 * fileio.c (barf_or_query_if_file_exists, check_writable):
6266 * editfns.c (get_system_name, get_operating_system_release)
6267 (Fencode_time, Fset_time_zone_rule):
6268 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
6269 * buffer.c (defvar_per_buffer): Use const.
6270
7815fe19 62712010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 6272
692f3ddc 6273 * charset.c: Include <stdlib.h>.
7a84eee5
KH
6274 (struct charset_sort_data): New struct.
6275 (charset_compare): New function.
692f3ddc 6276 (Fsort_charsets): New function.
7a84eee5
KH
6277 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
6278
6279 * coding.c (decode_coding_iso_2022): Fix checking of dimension
6280 number in CTEXT extended segment.
6281
7815fe19 62822010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
6283
6284 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
6285 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
6286
7815fe19 62872010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
6288
6289 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
6290 (Fhash_table_size): Fix typos in docstrings.
6291 (Fmake_hash_table): Doc fix.
6292
7815fe19 62932010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
6294
6295 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
6296 Doc fix (bug#5625).
6297
7815fe19 62982010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
6299
6300 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
6301 the MSDOS definition.
6302
1b6d8cf0
DN
63032010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
6304
675e2c69
DN
6305 Use const char* instead of char*.
6306 * xterm.c (x_create_toolkit_scroll_bar):
6307 * xfont.c (xfont_list_pattern):
6308 * xfns.c (x_default_scroll_bar_color_parameter)
6309 (xic_create_fontsetname, x_default_font_parameter)
6310 (x_screen_planes):
6311 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
6312 (store_mode_line_string, decode_mode_spec, display_string):
6313 * menu.c (digest_single_submenu):
6314 * keymap.h (initial_define_key, initial_define_lispy_key):
6315 * keymap.c (initial_define_key, initial_define_lispy_key):
6316 * image.c (image_error, image_keyword):
6317 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
6318 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
6319 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
6320 (ftfont_list, ftfont_match):
6321 * frame.c (frame_parm_table):
6322 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6323 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6324 (font_add_log, font_deferred_log):
6325 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6326 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6327 (font_add_log, font_deferred_log):
6328 * emacs.c (argmatch):
6329 * dispextern.h (struct it):
6330 * coding.c (ENCODE_DESIGNATION):
6331 * charset.c (define_charset_internal): Use const.
6332
25717ca1
DN
6333 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
6334
c5683ceb
SM
6335 * xrdb.c: Remove include guard.
6336 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
6337 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
6338 realloc->xrealloc instead of using #defines.
6339
efb41e21
EZ
63402010-08-08 Eli Zaretskii <eliz@gnu.org>
6341
cd21226d 6342 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
6343 * editfns.c (Fline_beginning_position, Fline_end_position):
6344 State in the doc strings that start and end of line are in the
6345 logical order.
cd21226d 6346
efb41e21
EZ
6347 * xdisp.c (display_line): Move the handling of overlay arrow after
6348 the call to find_row_edges. (Bug#6699)
6349
746812d9
CY
63502010-08-07 Chong Yidong <cyd@stupidchicken.com>
6351
6352 * keyboard.c (command_loop_1):
6353 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
6354
9852377f
CY
63552010-08-07 Chong Yidong <cyd@stupidchicken.com>
6356
6357 * insdel.c (prepare_to_modify_buffer): Save active region text to
6358 Vsaved_region_selection.
6359
6360 * xselect.c (QPRIMARY): Move to keyboard.c.
6361
6362 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
6363 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
6364 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 6365
0e9c8657
JB
63662010-08-07 Juanma Barranquero <lekktu@gmail.com>
6367
6368 * alloc.c (lisp_malloc):
6369 * buffer.c (set_buffer_internal, set_buffer_internal_1):
6370 * charset.h (emacs_mule_charset):
6371 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
6372 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
6373 (bitch_at_user):
6374 * lisp.h (Fcheck_coding_system, Fget_text_property)
6375 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
6376 Remove duplicate declarations.
6377
648801d1
DN
63782010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6379
32bc6709
DN
6380 * process.c: Simplify include logic.
6381
3ef1d108
DN
6382 * keyboard.h (quit_char): Add declaration.
6383 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
6384 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
6385 Add declarations.
3ef1d108
DN
6386 * sysdep.c:
6387 * w32.c: Remove the above declarations.
6388
97ec208f
DN
6389 Remove extern declarations in .c files, .h files have them.
6390 * xterm.c:
6391 * xdisp.c:
97ec208f
DN
6392 * msdos.c:
6393 * image.c:
6394 * gtkutil.c:
6395 * fileio.c:
6396 * eval.c: Remove declarations.
6397
94eed851
DN
6398 * frame.c (frame_params): Make const.
6399
36e053eb
DN
6400 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
6401
0e843971
DN
6402 * emacs.c (emacs_copyright, emacs_version): Make static.
6403 (Vinitial_window_system, Vauto_save_list_file_name)
6404 (Vinhibit_redisplay): Remove declarations.
6405 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
6406 for AIX.
6407
648801d1
DN
6408 Use const for some arrays and functions.
6409 * xterm.h (xg_set_icon_from_xpm_data):
6410 * xfns.c (xg_set_icon_from_xpm_data):
6411 * term.c (fkeys):
6412 * keyboard.c (lispy_accent_keys, lispy_function_keys)
6413 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
6414 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
6415 (frame.c frame_parms):
6416 * emacs-icon.h (gnu_xpm_bits):
6417 * callint.c (callint_argfuns): Use const.
6418
8646d999
J
64192010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6420
6421 * sysdep.c: Move include term.h last of includes (Bug#6812).
6422
cb4545ad
EZ
64232010-08-06 Eli Zaretskii <eliz@gnu.org>
6424
6425 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
6426
6427 * msdos.c (IT_display_cursor): Log cursor position on termscript.
6428
6429 * .gdbinit (pgx): Display the avoid_cursor_p flag.
6430
da7e2be6
JB
64312010-08-06 Juanma Barranquero <lekktu@gmail.com>
6432
6433 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
6434
3d608a86
J
64352010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6436
7908fb60
J
6437 * xterm.h (x_get_focus_frame): Declare.
6438
6439 * keyboard.h (poll_for_input_1): Unconditionally declare.
6440
4094bf36
J
6441 * nsterm.h (x_set_menu_bar_lines): Declare.
6442
6443 * window.c: Don't include menu.h, it depends on lots of other .h-files.
6444
3d608a86
J
6445 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
6446
6447 * window.c: Include menu.h.
6448
6449 * unexmacosx.c (print_region_list, print_regions)
6450 (build_region_list, find_emacs_zone_regions)
6451 (unexec_regions_merge, read_load_commands, dump_it)
6452 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
6453
6454 * term.c: Check HAVE_SYS_IOCTL_H.
6455
686b968e 6456 * sysdep.c: Check HAVE_TERM_H.
3d608a86 6457
686b968e 6458 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
6459
6460 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
6461 (ns_ring_bell, ns_defined_color, hide_hourglass)
6462 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
6463 Convert to ANSI C prototypes.
6464 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
6465 before code.
6466
6467 * nsterm.h : Include sysselect.h.
6468 (x_sync, x_get_focus_frame, x_set_mouse_position)
6469 (x_set_mouse_pixel_position, x_make_frame_visible)
6470 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
6471 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
6472 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
6473 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 6474 Declare.
3d608a86
J
6475
6476 * nsmenu.m (popup_activated, name_is_separator)
6477 (syms_of_nsmenu): Convert to ANSI C prototypes.
6478 (runMenuAt): Prototypes and move declarations before code.
6479
6480 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
6481
6482 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
6483 prototypes.
6484
6485 * nsfns.m (have_menus_p, ns_display_info_for_name)
6486 (x_set_cursor_type, ns_appkit_version_str)
6487 (ns_appkit_version_int, ns_do_applescript)
6488 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
6489 (syms_of_nsfns): Convert to ANSI C prototypes.
6490
6491 * menu.h (x_set_menu_bar_line): Declare.
6492 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
6493
6494 * lisp.h (fmod_float): Declare.
6495
6496 * image.c (xpm_scan, xpm_make_color_table_v)
6497 (xpm_put_color_table_v, xpm_get_color_table_v)
6498 (xpm_make_color_table_h, xpm_put_color_table_h)
6499 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
6500 (xpm_load): Convert to ANSI C prototypes.
6501
6502 * emacs.c: Include nsterm.h if HAVE_NS.
6503
6504 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
6505
fce70521
DN
65062010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6507
6508 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
6509 subprocesses, only MSDOS does not define HAVE_SOCKETS.
6510 (socket_options): Use const char* for name.
6511
a11889ab
JB
65122010-08-06 Juanma Barranquero <lekktu@gmail.com>
6513
6514 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
6515
6516 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
6517 Don't declare xmalloc_widget_value and digest_single_submenu.
6518
6519 * w32font.c (Qlatin): Remove declaration.
6520
6521 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
6522
c95b508f 6523 * dired.c (compile_pattern): Restore declaration.
a11889ab 6524
6254cdda
DN
65252010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
6526
04bab72c
DN
6527 Remove extern declarations in .c files, .h files have them.
6528 * data.c:
6529 * dired.c:
6530 * editfns.c:
6531 * filelock.c:
6532 * fns.c:
6533 * font.c:
6534 * fontset.c:
6535 * frame.c:
6536 * fringe.c:
6537 * ftfont.c:
6538 * gtkutil.c:
6539 * indent.c:
6540 * keyboard.c:
6541 * keymap.c:
6542 * lread.c:
6543 * menu.c:
6544 * print.c:
6545 * search.c:
6546 * sound.c:
6547 * window.c:
6548 * xdisp.c:
6549 * xfaces.c:
6550 * xfns.c:
6551 * xfont.c:
6552 * xftfont.c:
6553 * xmenu.c:
6554 * xterm.c: Remove declarations.
6555
dff94ed5
DN
6556 Cleanup syssignal.h.
6557 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
6558 (main_thread): Move down to remove #ifdef.
6559 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
6560 Remove conditional definition following unconditional ones.
6561
99f3388e
DN
6562 * lisp.h: Remove HAVE_SHM code, unused.
6563 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
6564 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
6565 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
6566 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
6567 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
6568 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
6569 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
6570 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
6571 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
6572 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
6573 (Qwindow_scroll_functions, Vafter_load_alist)
6574 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
6575 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
6576 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
6577 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
6578 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
6579 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
6580 (initial_argv, last_nonmenu_event, load_in_progress)
6581 (noninteractive_need_newline, scroll_margin): Add declarations.
6582
bba3e508
SM
6583 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6584 Remove declarations, menu.h has them.
99f3388e
DN
6585 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
6586 (Vinput_method_function, Qinput_method_function)
6587 (Qevent_symbol_element_mask, last_event_timestamp):
6588 * dispextern.h (Voverflow_newline_into_fringe):
6589 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
6590 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
6591 (syms_of_w32font, syms_of_nsfont):
6592 * fontset.h (find_font_encoding, Qlatin):
6593 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
6594 (Vtool_bar_mode, set_frame_menubar):
6595 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
6596 * xterm.h (Qx_gtk_map_stock):
6597 * keymap.h (meta_prefix_char): Add declarations.
6598
9f5dd6f2
DN
6599 * term.c: Remove dead code.
6600
6254cdda
DN
6601 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
6602 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
6603 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
6604 which is what was there before BSD_PGRPS was removed.
6605
29cf3e20
EZ
66062010-08-05 Eli Zaretskii <eliz@gnu.org>
6607
6608 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
6609
6610 * unexcoff.c: Renamed from unexec.c.
6611
aaa0a19a
SM
66122010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
6613
6614 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
6615
8d1d9587
JB
66162010-08-03 Johan Bockgård <bojohan@gnu.org>
6617
6618 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 6619 (Bug#6744)
8d1d9587 6620
9a747ba6
JD
66212010-08-02 Jan Djärv <jan.h.d@swipnet.se>
6622
4d464ae4
JD
6623 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
6624 to TRUE if depth of screen is < 16.
6625
ac01763e
JD
6626 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
6627 USE_GTK_TOOLTIP.
e0d62a9b
JB
6628 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
6629 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 6630 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
6631 USE_GTK_TOOLTIP.
6632 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
6633
6634 * xterm.h (USE_GTK_TOOLTIP): New define.
6635 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6636
9a747ba6
JD
6637 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6638 to Control-D (Bug#6771).
6639
7b0815ba
JB
66402010-08-02 Juanma Barranquero <lekktu@gmail.com>
6641
6642 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6643 Wording by Drew Adams <drew.adams@oracle.com>.
6644
aa1859f5
J
66452010-08-01 Jan Djärv <jan.h.d@swipnet.se>
6646
6647 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6648 ttip_lbl.
6649
6650 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6651 calling gtk_widget_queue_draw.
6652 (x_free_frame_resources): Call xg_free_frame_widgets.
6653
6654 * xfns.c (x_gtk_use_system_tooltips): New variable.
6655 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6656 new gtkutil tooltip functions to show the tooltip.
6657 (Fx_hide_tip): Call xg_hide_tooltip.
6658 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6659
6660 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6661 (xg_show_tooltip, xg_hide_tooltip): Declare.
6662
6663 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
6664 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6665 New functions.
aa1859f5
J
6666 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
6667 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
6668 Remove code that is commented out.
6669
76417ef4
SM
66702010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
6671
6672 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6673
16041401
CY
66742010-07-31 Chong Yidong <cyd@stupidchicken.com>
6675
6676 * xselect.c (x_own_selection): Use list4.
6677
2c09a58f
DN
66782010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6679
6680 * buffer.c (Qwindow): Do not define, already defined in data.c.
6681 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
6682
59df9fdd 66832010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 6684
59df9fdd
JB
6685 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6686 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6687 * config.in: Undef HAVE_DIRENT_H.
1c97e857 6688 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 6689 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 6690
1b231651
DN
66912010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6692
6693 Rename s/usg5-4.h -> s/usg5-4-common.h.
6694 * s/usg5-4.h: Rename file to ...
6695 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6696 * s/unixware.h:
6697 * s/sol2-6.h:
6698 * s/irix6-5.h: Update includes accordingly.
6699
bfeabdc3
JD
67002010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6701
2ebf1083
J
6702 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6703
bfeabdc3 6704 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
6705 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6706 Remove toolbar_height.
6707 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
6708 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6709 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6710 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6711
6712 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6713
6714 * xfns.c (x_set_tool_bar_position): New function.
6715 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6716 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 6717 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
6718
6719 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6720 and FRAME_TOOLBAR_LEFT_WIDTH.
6721
6722 * gtkutil.h (xg_change_toolbar_position): Declare.
6723
6724 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6725 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6726 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6727 (xg_create_frame_widgets): Create a hobox for placing widgets
6728 vertically. Use gtk_box_pack_start.
ef1b0ba7 6729 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
6730 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6731 (xg_update_frame_menubar, free_frame_menubar): Change to
6732 xg_height_or_width_changed.
6733 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6734 size correctly. Remove hardcoded 4, instead use handlebox size -
6735 toolbar size.
6736 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 6737 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
6738 (xg_pack_tool_bar): POS is a new parameter.
6739 Set orientation of tool bar based on pos.
6740 Only make handlebox_widget if NULL.
6741 Check if tool bar goes to vbox or hbox depending on pos.
6742 (xg_update_tool_bar_sizes): New function.
686b968e 6743 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
6744 height, call xg_update_tool_bar_sizes instead.
6745 (free_frame_tool_bar): Remove from hbox or vbox depending on
6746 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
6747 (xg_change_toolbar_position): New function.
6748
6749 * frame.h (struct frame): Add tool_bar_position.
6750 (Qbottom): Declare.
6751
6752 * frame.c (Qtool_bar_position): New variable.
6753 (make_frame): Set tool_bar_position to Qtop.
6754 (frame_parms): Add tool-bar-position.
6755 (x_report_frame_params): Store tool_bar_position.
6756 (x_set_fringe_width): Reset wm size hint after fringe changes.
6757
26469a38
DN
67582010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6759
6760 Make lisp_time_argument declaration work on all systems.
6761 * lisp.h (lisp_time_argument): Move declaration ...
6762 * systime.h (lisp_time_argument): ... here
6763 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
6764
8848b728
JD
67652010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6766
6767 * vm-limit.c (POINTER): Add typedef for it.
6768 (start_of_data): Change return type from POINTER to char *.
6769
6770 * frame.h (Qtty_color_mode): Move declaration out of ifdef
6771 HAVE_WINDOW_SYSTEM.
6772
76fd1ee9
DN
67732010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6774
0441987e
DN
6775 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6776 Remove reference to __osf__, unused.
6777
56a000c7
DN
6778 * mem-limits.h: Remove duplicated includes.
6779 (NULL): Remove definition, unused.
6780 (POINTER): Remove definition.
6781 (start_of_data): Use char* in prototype, as the function
6782 definition does.
6783
e6cba650
DN
6784 Remove extern declarations from .c files, and them to .h files.
6785 * keyboard.h (Qhelp_echo, waiting_for_input)
6786 (input_available_clear_time, ignore_mouse_drag_p)
6787 (Vdouble_click_time, real_this_command, Vthis_original_command):
6788 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
6789 (Voverriding_local_map_menu_flag):
6790 * lisp.h (Qinteractive_form, use_file_dialog)
6791 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
6792 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
6793 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6794 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
6795 (Qfunction, debug_on_next_call, Qfield)
6796 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
6797 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
6798 (Qfile_directory_p, Qinsert_file_contents)
6799 (Qcompletion_ignore_case, Qcompletion_ignore_case)
6800 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
6801 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
6802 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
6803 (Qminibuffer_prompt)
6804 (Vtemporary_file_directory,char_ins_del_vector, Qface):
6805 * xterm.h (gray_bitmap_width, gray_bitmap_height)
6806 (gray_bitmap_bits, xic_create_fontsetname):
6807 * coding.h (Vtranslation_table_for_input): Add extern declarations.
6808
6809 * xsmfns.c (Vuser_login_name):
6810 * xrdb.c (Vdouble_click_time):
6811 * xfaces.c (xic_create_fontsetname):
6812 * w32select.c (waiting_for_input):
6813 * print.c (minibuffer_auto_raise):
6814 * msdos.c (Qhelp_echo):
6815 * macros.c (real_this_command):
6816 * keymap.c (Voverriding_local_map):
6817 * xterm.c (poll_for_input_1, gray_bitmap_width)
6818 (gray_bitmap_height, gray_bitmap_bits;
6819 * xmenu.c ( Voverriding_local_map)
6820 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
6821 (use_file_dialog, Xt_app_con):
6822 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
6823 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
6824 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
6825 (Qtool_bar_lines, ignore_mouse_drag_p):
6826 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
6827 (Qrear_nonsticky, nconc2):
6828 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
6829 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
6830 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
6831 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
6832 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
6833 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
6834 (gc_in_progress):
6835 * doc.c (Voverriding_local_map, Qremap):
6836 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
6837 (Vcompletion_regexp_list):
6838 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
6839 (Qcompletion_ignore_case):
6840 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
6841 (Vhistory_length, Vthis_original_command, real_this_command)
6842 (Qface, Qminibuffer_prompt, history_delete_duplicates):
6843 * image.c (Qrisky_local_variable):
6844 * fontset.c (QCname):
6845 * fns.c (minibuffer_auto_raise, QCname):
6846 * dispnew.c (char_ins_del_cost):
6847 * composite.c (font_fill_lglyph_metrics):
6848 * cmds.c (Qface, Vtranslation_table_for_input):
6849 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
6850 * ccl.c (charset_unicode):
6851 * callproc.c (Vtemporary_file_directory):
6852 * buffer.c (emacs_strerror): Remove extern declarations.
6853
6854 * data.c (Qwindow): Make non-static, used from other files too.
6855 * frame.c (validate_x_resource_name): Remove shadow definition for i.
6856
76fd1ee9
DN
6857 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
6858 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
6859 * s/usg5-4.h (COFF):
6860 * s/template.h:
6861 * s/msdos.h (COFF, NO_REMAP):
6862 * s/ms-w32.h (NO_REMAP):
6863 * s/hpux10-20.h (NO_REMAP):
6864 * m/sparc.h (SEGMENT_MASK):
6865 * m/m68k.h (NO_REMAP):
6866 * m/intel386.h (SEGMENT_MASK):
6867 * m/arm.h (NO_REMAP):
6868 * m/alpha.h (COFF):
6869 * m/template.h: Remove references to unused defines.
6870
8a52f00a
JD
68712010-07-28 Jan Djärv <jan.h.d@swipnet.se>
6872
6873 * xsettings.c (Ftool_bar_get_system_style): Also check for
6874 Qtext_image_horiz.
6875
6876 * xdisp.c (Qtext_image_horiz): Define.
6877 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 6878 to documentation of tool-bar-style.
8a52f00a
JD
6879
6880 * lisp.h (Qtext_image_horiz): Declare.
6881
6882 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
6883 style text_image_horiz.
6884
89dc303e
DN
68852010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6886
60799703
DN
6887 * emacs.c (Fkill_emacs): Remove return statement.
6888
37254dc1
DN
6889 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
6890 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
6891 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
6892 Remove local extern declarations.
37254dc1 6893
71c7345a
DN
6894 * xmenu.c: Do not included lwlib.h, not needed.
6895
6ba577cb
DN
6896 * m/iris4d.h (XUINT, XSET): Remove, not needed.
6897
fdb183d6
DN
6898 * process.c: Move definitions earlier to minimize #ifdefs.
6899
6900 * xterm.h (x_get_customization_string, x_load_resources)
6901 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
6902 (x_check_errors, x_property_data_to_lisp, defined_color)
6903 (xic_set_xfontset, x_defined_color): Use const.
6904
6905 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
6906 (x_text_icon, x_check_errors, x_connection_closed): Use const.
6907
6908 * xselect.c (selection_data_to_lisp_data)
6909 (x_property_data_to_lisp):
6910 * xrdb.c (x_get_string_resource, file_p)
6911 (x_get_customization_string, magic_file_p, search_magic_path)
6912 (get_system_app, get_user_app, x_load_resources, x_get_resource)
6913 (x_get_string_resource): Use const.
6914
6915 * xfns.c: Include xlwmenu.h when USE_LUCID.
6916 (x_defined_color, xic_set_xfontset): Use const.
6917 (Fx_hide_tip): Remove local extern declaration.
6918
6919 * xfaces.c (Qmouse_face): Remove declaration.
6920 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 6921 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
6922
6923 * xdisp.c (do_mouse_tracking): Remove declaration.
6924 (add_to_log): Use const.
6925
6926 * minibuf.c (Qmouse_face): Remove declaration.
6927
6928 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
6929
6930 * keyboard.h (do_mouse_tracking): Add declaration.
6931
6932 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
6933 (QCdata, QCtype, Qcenter): Remove declarations.
6934
6935 * frame.c (x_get_resource_string, x_get_string_resource)
6936 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6937 (x_default_parameter): Use const.
6938
6939 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
6940 (QCheight, QCsize, QCname): Remove declarations.
6941
6942 * emacs.c (main): Remove local extern declaration.
6943
6944 * editfns.c (region_limit, syms_of_editfns): Remove local extern
6945 declarations.
6946
6947 * dispnew.c: Remove duplicate #include <unistd.h>.
6948 (update_window, update_frame_1, init_display): Remove local extern
6949 declarations.
6950
6951 * dispextern.h (add_to_log): Remove declaration.
6952 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6953 (x_frame_get_and_record_arg, x_default_parameter): Add const.
6954
6955 * dired.c (scmp): Add const.
6956 (directory_files_internal): Remove local extern declaration.
6957
6958 * data.c (Finteractive_form): Use const.
6959
6960 * composite.c (syms_of_composite): Remove local extern declarations.
6961
6962 * charset.c (add_to_log): Remove declaration.
6963
6964 * character.c (strwidth, parse_str_to_multibyte): Add const.
6965
6966 * character.h (strwidth, parse_str_to_multibyte): Likewise.
6967
6968 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
6969
89dc303e 6970 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
6971 (Lisp_Subr): Make doc and intspec constant.
6972 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
6973 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
6974 (QCheight, QCsize, QCname, QCwidth, QCforeground)
6975 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
6976 (display_arg): Add declarations.
89dc303e 6977
0ed082fe 69782010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
6979
6980 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
6981
0ed082fe
JB
6982 * window.c (Fwindow_height): Doc fix (bug#6518).
6983
69842010-07-27 Juanma Barranquero <lekktu@gmail.com>
6985
6986 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
6987
ccaf0336
DN
69882010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
6989
977105dc
DN
6990 * keyboard.c (Ftop_level, Fexit_recursive_edit)
6991 (Fabort_recursive_edit): Remove return statements in NO_RETURN
6992 functions.
6993
f5ada890
DN
6994 * frame.h (Qtty_color_mode): Add declaration.
6995
ccaf0336
DN
6996 * lisp.h (Ftop_level, Fexit_recursive_edit)
6997 (Fabort_recursive_edit): Mark as NO_RETURN.
6998
dfe3c90f
KH
69992010-07-26 Kenichi Handa <handa@m17n.org>
7000
7001 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 7002 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 7003
7d383292
JB
70042010-07-26 Juanma Barranquero <lekktu@gmail.com>
7005
7006 * lread.c (unreadpure, mapatoms_1): Make static.
7007
da31e629
JB
70082010-07-25 Juanma Barranquero <lekktu@gmail.com>
7009
7010 * terminfo.c (tparam): Fix prototype of tparm.
7011
7bfa6d77
AS
70122010-07-25 Andreas Schwab <schwab@linux-m68k.org>
7013
dcc19aac
AS
7014 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
7015 find start of text segment.
7016 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
7017 is defined.
7018
7bfa6d77
AS
7019 * callproc.c (set_initial_environment): Avoid unbalanced braces.
7020
63f9a672
KB
70212010-07-25 Ken Brown <kbrown@cornell.edu>
7022
7023 * vm-limit.c (check_memory_limits): Fix previous change;
7024 accidentally reverted an earlier change.
7025
24933075
KB
70262010-07-25 Ken Brown <kbrown@cornell.edu>
7027
7028 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
7029 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
7030
361358ea
JB
70312010-07-25 Juanma Barranquero <lekktu@gmail.com>
7032
7033 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
7034 * dired.c (opendir, readdir): Fix prototypes.
7035 * editfns.c (w32_get_internal_run_time): Fix prototypes.
7036 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
7037 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
7038 (telldir): Remove declaration.
7039 * ralloc.c (real_morecore, __morecore): Fix prototypes.
7040 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
7041 * syssignal.h (strsignal): Fix prototype.
7042 * term.c (tparam): Fix prototype.
7043 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
7044 (term_get_fkeys): Set inside "#ifndef DOS_NT".
7045 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
7046 and __morecore.
7047 * w32gui.h (XParseGeometry): Fix prototype.
7048 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
7049 * w32term.c (my_set_focus): Declare inside #if 0.
7050 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
7051 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
7052 (drain_message_queue, get_next_msg, post_msg, parse_button)
7053 (ClipboardSequence_Proc): Fix prototypes.
7054 (wait_for_sync): Remove declaration.
7055
630b9592
JB
70562010-07-24 Juanma Barranquero <lekktu@gmail.com>
7057
7058 * w32fns.c (w32_to_x_color): Remove, unused.
7059
6a0d6611
AS
70602010-07-24 Andreas Schwab <schwab@linux-m68k.org>
7061
7062 * lisp.h: Remove leftover P_.
7063
4e8608ff
DN
70642010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7065
7066 * ecrt0.c, unexalpha.c: Remove files, unused.
7067
c8197983
AS
70682010-07-24 Andreas Schwab <schwab@linux-m68k.org>
7069
7070 * cmds.c (internal_self_insert): Make static.
7071 * lisp.h (internal_self_insert): Remove declaration.
7072
97b372d7
JB
70732010-07-23 Juanma Barranquero <lekktu@gmail.com>
7074
33ac0414
JB
7075 * alloc.c (free_float):
7076 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
7077 * frame.c (delete_frame_handler):
7078 * ralloc.c (reorder_bloc):
7079 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
7080 Remove unused static functions.
7081
94da8397
JB
7082 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
7083 it is called only from NS code.
7084
2e6c8532
JB
7085 * w32term.c (my_set_focus): #ifdef away; it is called only from
7086 "#ifdef 0" code.
7087
97b372d7
JB
7088 * w32fns.c (x_edge_detection):
7089 * xfaces.c (may_use_scalable_font_p):
7090 Remove obsolete static declarations.
7091
7c3320d8
JB
70922010-07-20 Juanma Barranquero <lekktu@gmail.com>
7093
7094 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
7095 (emacs_blocked_realloc, uninterrupt_malloc):
7096 * fringe.c (w32_reset_fringes):
7097 * image.c (convert_mono_to_color_image, lookup_rgb_color)
7098 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
7099 * sound.c (be2hs, do_play_sound):
7100 * vm-limit.c (get_lim_data, ret_lim_data):
7101 * w32term.c (x_free_frame_resources):
7102 * xfaces.c (x_create_gc, x_free_gc):
7103 Convert definitions to standard C.
7104
d5273788
SM
71052010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
7106
7107 * eval.c (Feval, Ffuncall): Use the new names.
7108
7109 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
7110 (DEFUN): Add braces around the union initialisation and use ## to
7111 specify the right union alternative and avoid a cast.
7112
8d16a259
JB
71132010-07-18 Juanma Barranquero <lekktu@gmail.com>
7114
7115 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
7116
3b8eff32
CY
71172010-07-17 Chong Yidong <cyd@stupidchicken.com>
7118
7119 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
7120
499322ce
J
71212010-07-17 Jan Djärv <jan.h.d@swipnet.se>
7122
7123 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
7124 is related to the menu bar (Bug#6499).
a628ad9d 7125 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 7126
f6003da5 71272010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
7128
7129 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
7130
7131 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
7132
7133 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
7134 i.e. don't put back ButtonRelease (Bug#6608).
7135
7136 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
7137 instead of Window. Call xg_event_is_for_menubar when
7138 USE_GTK (Bug#6499).
7139
7140 * gtkutil.h (xg_event_is_for_menubar): Declare.
7141
7142 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
7143
f6003da5 71442010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
7145
7146 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
7147 when it's the same as the old foreground. (Bug#6609)
7148
23243f29
J
71492010-07-16 Jan Djärv <jan.h.d@swipnet.se>
7150
7151 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
7152 widget is non-null (Bug#6645).
7153
2b23d2a6
AS
71542010-07-15 Andreas Schwab <schwab@linux-m68k.org>
7155
01b564ff
AS
7156 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
7157 Convert old-style definition.
7158
2b23d2a6
AS
7159 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
7160 timestamp argument.
7161
c4affd2c
EZ
71622010-07-15 Eli Zaretskii <eliz@gnu.org>
7163
7164 * fringe.c (update_window_fringes): Restore mistakenly reverted
7165 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
7166
cf28cebc
J
71672010-07-14 Jan Djärv <jan.h.d@swipnet.se>
7168
7169 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
7170 (SET_SAVED_KEY_EVENT): Remove (not used).
7171 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
7172 remove size parameter.
7173 (handle_one_xevent): Check popup_activated () for menu for Xt also.
7174 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
7175 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
7176 ButtonRelease.
6b2c4bd9
J
7177 (x_set_window_size_1): scroll_bar_actual_width is always
7178 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
7179
7180 * xdisp.c (pending_menu_activation): Remove extern declaration.
7181 (prepare_menu_bars): Remove setting of pending_menu_activation.
7182
7183 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
7184 (x_activate_menubar): Set popup_activated_flag for Xt also.
7185 Remove setting of pending_menu_activation.
cf28cebc
J
7186 (set_frame_menubar): Remove check of pending_menu_activation.
7187 Declare menubar_size before code. Correct spelling in comment.
7188
f6c1c771
KH
71892010-07-14 Kenichi Handa <handa@m17n.org>
7190
7191 * font.c (font_open_entity): Cancel previous change.
7192 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
7193
20477505
EZ
71942010-07-13 Eli Zaretskii <eliz@gnu.org>
7195
77defa9a
EZ
7196 Remove subprocesses #ifdefs.
7197 * process.c <inhibit_sentinels>: Move to the common part.
7198 (Fwaiting_for_user_input_p): Move to the common part; return nil
7199 if async subprocesses aren't supported.
7200 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
7201 MS-DOS. Remove "#ifdef subprocesses".
7202 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
7203 (gettimeofday): Remove "#ifdef subprocesses".
7204 (wait_without_blocking): Remove function.
7205 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
7206 Remove "#ifdef subprocesses".
7207 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
7208 compiled on MS-DOS.
7209 * callproc.c (Fcall_process) [!MSDOS]: Don't call
7210 wait_for_termination on MS-DOS.
7211 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
7212 initialization of inhibit_sentinels.
7213 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
7214 subprocesses" conditional.
7215 * callproc.c (Fcall_process) [!subprocesses]: Don't call
7216 wait_for_termination, since `buffer' cannot be an integer when
7217 async subprocesses are not supported
7218 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
7219 for ifdefing away the call to Fprocess_status.
7220
20477505
EZ
7221 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
7222 away the entire body of the function.
7223
b3ffc17c
DN
72242010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7225
01faa934
DN
7226 Remove subprocesses #ifdefs from term.c.
7227 * process.c (add_keyboard_wait_descriptor)
7228 (delete_keyboard_wait_descriptor): Move to common section, do
7229 nothing when subprocesses is not defined.
a628ad9d
JB
7230 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
7231 Remove subprocesses #ifdefs.
01faa934 7232
b3ffc17c
DN
7233 Convert maybe_fatal to standard C.
7234 * lisp.h (verror): Declare.
7235 * eval.c (verror): New function containing the code from ...
7236 (error): ... this. Call verror.
7237 * term.c (vfatal): New function containing the code from ...
7238 (fatal): ... this. Call vfatal.
7239 (maybe_fatal): Convert to standard C, use variable number of
7240 arguments. Declare as non-return.
7241 (init_tty): Fix maybe_fatal call.
7242
0521f580
DN
72432010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7244
7245 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
7246 (_scroll_bar_note_movement): Convert definitions to standard C.
7247 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
7248 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
7249
ebd15611
DN
72502010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7251
7252 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
7253 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
7254 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
7255 (xaw_jump_callback, xaw_scroll_callback)
7256 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
7257 (x_wm_set_size_hint, x_activate_timeout_atimer):
7258 Convert definitions to standard C.
ebd15611
DN
7259 * xmenu.c (menubar_id_to_frame, popup_get_selection)
7260 (popup_activate_callback, popup_deactivate_callback)
7261 (menu_highlight_callback, menubar_selection_callback)
7262 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
7263 (free_frame_menubar, popup_selection_callback, as)
7264 (create_and_show_popup_menu, dialog_selection_callback)
7265 (create_and_show_dialog):
7266 * xfns.c (hack_wm_protocols, x_window):
7267 * xfaces.c (x_update_menu_appearance):
7268 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
7269 (char_to_pixel_size, round_size_to_char, get_wm_shell)
7270 (set_frame_size, update_wm_hints, setup_frame_gcs)
7271 (update_various_frame_slots, update_from_various_frame_slots)
7272 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
7273 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
7274 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
7275
de06a2dd
AS
72762010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7277
a628ad9d 7278 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 7279
fc549af9
EZ
72802010-07-12 Eli Zaretskii <eliz@gnu.org>
7281
7282 * process.c (setup_process_coding_systems): Move to the part
7283 shared by non-subprocesses systems, and make its body empty when
7284 subprocesses is not defined.
7285 (close_process_descs): Move to the part shared by non-subprocesses
7286 systems.
1408902e
EZ
7287 (wait_reading_process_output) [!subprocesses]: Convert arg list to
7288 ANSI C.
fc549af9 7289
d5a3eaaf
AS
72902010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7291
7292 * editfns.c (transpose_markers): Convert old-style definition.
7293 * emacs.c (abort, shut_down_emacs, fixup_locale)
7294 (synchronize_system_time_locale)
7295 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
7296 * floatfns.c (extract_float, matherr, init_floatfns)
7297 (syms_of_floatfns): Likewise.
7298 * fns.c (make_hash_table): Likewise.
7299 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
7300 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
7301 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
7302 (ftfont_variation_glyphs): Likewise.
7303 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
7304 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
7305 * lread.c (read_filtered_event): Likewise.
7306 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
7307 * process.c (wait_reading_process_output): Likewise.
7308 * scroll.c (do_line_insertion_deletion_costs): Likewise.
7309 * search.c (search_buffer, boyer_moore): Likewise.
7310 * syntax.c (scan_sexps_forward): Likewise.
7311 * xdisp.c (try_scrolling): Likewise.
7312 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
7313 (face_at_string_position): Likewise.
7314 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
7315 * xselect.c (x_get_window_property, receive_incremental_selection)
7316 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
7317 Likewise.
7318 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
7319
6f704c76
DN
73202010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7321
ded80a25
DN
7322 * callproc.c (child_setup): Remove subprocesses conditional.
7323 Remove code dealing with SET_EMACS_PRIORITY, unused.
7324
49d937f4 7325 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
7326 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
7327
7328 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
7329 (__do_global_dtors, __main): Use void in definition.
7330 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
7331 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
7332 the only users from ...
7333 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
7334 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
7335 (HAVE_VOLATILE): Remove, unused.
7336
6f704c76
DN
7337 Convert more function definitions to standard C.
7338 * xdisp.c (window_box_edges, handle_single_display_spec)
7339 (display_string): Convert definition to standard C.
7340 * scroll.c (do_direct_scrolling, scrolling_1):
7341 * dispnew.c (allocate_matrices_for_frame_redisplay)
7342 (mirrored_line_dance):
7343 * coding.c (code_convert_string):
7344 * charset.c (map_charset_chars):
7345 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
7346 (Fregister_ccl_program, Fregister_code_conversion_map):
7347 * keyboard.c (kbd_buffer_nr_stored): Likewise.
7348 (head_table): Make static and const.
7349
e6cfa7c3
AS
73502010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7351
7352 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
7353 (PROFILING_LDFLAGS): Set from substitution.
7354 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
7355 CFLAGS last.
7356
892dd565
KH
73572010-07-12 Kenichi Handa <handa@m17n.org>
7358
6f2cdcd1
KH
7359 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
7360 (shortlisp): Likewise.
7361
892dd565
KH
7362 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
7363
7364 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
7365 of FONT_ENTITY_INDEX.
7366 (Ffont_get): If KEY is :otf and the font-object doesn't have the
7367 property, get the property value dynamically.
7368 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 7369 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 7370 return value changed.
bba3e508 7371 (syms_of_font): Adjust for the above change.
892dd565 7372
ae96d47a
AS
73732010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7374
c8fc18ee
AS
7375 * blockinput.h: Remove obsolete comment.
7376
89887d67
AS
7377 * lisp.h: Include <stddef.h>.
7378 (OFFSETOF): Don't define.
7379 (VECSIZE): Use offsetof instead of OFFSETOF.
7380 (PSEUDOVECSIZE): Likewise.
7381 * process.c (conv_sockaddr_to_lisp): Likewise.
7382 * alloc.c: Don't include <stddef.h>.
7383 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
7384
ae96d47a
AS
7385 * process.c: Remove obsolete comment.
7386
635c0aa1
CY
73872010-07-11 Chong Yidong <cyd@stupidchicken.com>
7388
7389 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
7390
a64df650
AS
73912010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7392
8966b757
AS
7393 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
7394 index, rindex.
7395 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
7396 * editfns.c (Fuser_full_name, Fformat): Likewise.
7397 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
7398 * fileio.c (Ffile_symlink_p): Likewise.
7399 * filelock.c (current_lock_owner): Likewise.
7400 * font.c (font_parse_name, font_parse_family_registry): Likewise.
7401 * fontset.c (fontset_pattern_regexp): Likewise.
7402 * lread.c (read1): Likewise.
7403 * sysdep.c (init_system_name): Likewise.
7404 * xfns.c (select_visual): Likewise.
7405 * s/hpux10-20.h (index, rindex): Don't define.
7406 * s/ms-w32.h (index): Likewise.
7407 * s/usg5-4.h: Likewise.
7408
cf237e27
AS
7409 * callproc.c (relocate_fd): Use F_DUPFD if defined.
7410
a8fe7202
AS
7411 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
7412 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
7413 (egetenv): Likewise.
7414 * doprnt.c (doprnt): Likewise.
7415 * editfns.c (set_time_zone_rule, format2): Likewise.
7416 * emacs.c (decode_env_path): Likewise.
7417 * eval.c (signal_error, error): Likewise.
7418 * insdel.c (replace_range_2): Likewise.
7419 * keyboard.c (cmd_error_internal): Likewise.
7420 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
7421 * print.c (write_string, write_string_1, print_error_message):
7422 Likewise.
7423 * vm-limit.c (warn_function, memory_warnings): Likewise.
7424 * xdisp.c (message1, message1_nolog, message_with_string)
7425 (vmessage, message, message_nolog): Likewise.
7426 * emacs.c: Remove duplicate declaration.
7427 * keyboard.h: Likewise.
7428 * lisp.h: Update prototypes.
7429
bb8e180f
AS
7430 * eval.c: Fix indentation problem.
7431
01c35094 7432 * keyboard.c: Include "process.h".
83380e65 7433
a64df650
AS
7434 * eval.c: Remove obsolete noinline declaration.
7435 * fns.c: Likewise.
7436
6a8033e1
KR
74372010-07-11 Ken Raeburn <raeburn@raeburn.org>
7438
7439 * doprnt.c (doprnt): Take a va_list argument instead of count and
7440 pointer.
7441 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 7442 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
7443 changed to take a va_list argument.
7444 (message): New variadic wrapper.
7445 (message_nolog): Now a variadic function, calling vmessage.
7446 * lisp.h: Include stdarg.h for va_list.
7447 (doprnt, error, message, message_nolog): Decls updated.
7448
462aa963
EZ
74492010-07-11 Eli Zaretskii <eliz@gnu.org>
7450
7451 * process.c (syms_of_process) <delete-exited-processes>: Define
7452 even if !subprocesses.
7453 (delete_exited_processes): Ditto.
7454
7455 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
7456 (delete_exited_processes): Don't define.
7457
48104462
CY
74582010-07-10 Chong Yidong <cyd@stupidchicken.com>
7459
7460 * frame.c (make_frame): Initialize menu_bar_lines and
7461 tool_bar_lines members.
bba3e508
SM
7462 (make_initial_frame, make_terminal_frame):
7463 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
7464
7465 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
7466
f388c88a
EZ
74672010-07-10 Eli Zaretskii <eliz@gnu.org>
7468
7469 * process.c: Reshuffle #include's. Condition some of the global
7470 and static variables on `subprocesses'.
7471 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7472 Leave only one implementation.
7473 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
7474 (kill_buffer_processes, Flist_system_processes)
7475 (Fprocess_attributes, init_process, syms_of_process): Unify the
7476 implementations for with subprocesses and without them.
7477
723f5a07
J
74782010-07-09 Jan Djärv <jan.h.d@swipnet.se>
7479
7480 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
7481 correct size for Motif.
7482 (free_frame_menubar): Call x_set_window_size to update frame size.
7483
7484 * xfns.c (x_window): Set borderWidth to 0 for pane and
7485 EmacsFrame. Frame size calculation is wrong otherwise.
7486
2536a4b7
MA
74872010-07-09 Michael Albinus <michael.albinus@gmx.de>
7488
7489 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
7490 allows to suppress errors when polling in Emacs' main loop.
7491 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
7492 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
7493 (Fdbus_method_error_internal, Fdbus_send_signal)
7494 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
7495 (Fdbus_register_method): Use it. (Bug#6579)
7496
5842a27b
DN
74972010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7498
7499 * alloc.c: Convert DEFUNs to standard C.
7500 * buffer.c:
7501 * bytecode.c:
7502 * callint.c:
7503 * callproc.c:
7504 * casefiddle.c:
7505 * casetab.c:
7506 * category.c:
7507 * character.c:
7508 * charset.c:
7509 * chartab.c:
7510 * cmds.c:
7511 * coding.c:
7512 * composite.c:
7513 * data.c:
7514 * dbusbind.c:
7515 * dired.c:
7516 * dispnew.c:
7517 * doc.c:
7518 * dosfns.c:
7519 * editfns.c:
7520 * emacs.c:
7521 * eval.c:
7522 * fileio.c:
7523 * filelock.c:
7524 * floatfns.c:
7525 * fns.c:
7526 * font.c:
7527 * fontset.c:
7528 * frame.c:
7529 * fringe.c:
7530 * image.c:
7531 * indent.c:
7532 * insdel.c:
7533 * keyboard.c:
7534 * keymap.c:
7535 * lread.c:
7536 * macros.c:
7537 * marker.c:
7538 * menu.c:
7539 * minibuf.c:
7540 * msdos.c:
7541 * nsfns.m:
7542 * nsmenu.m:
7543 * nsselect.m:
7544 * print.c:
7545 * process.c:
7546 * search.c:
7547 * sound.c:
7548 * syntax.c:
7549 * term.c:
7550 * terminal.c:
7551 * textprop.c:
7552 * undo.c:
7553 * w16select.c:
7554 * w32console.c:
7555 * w32fns.c:
7556 * w32font.c:
7557 * w32menu.c:
7558 * w32proc.c:
7559 * w32select.c:
7560 * window.c:
7561 * xdisp.c:
7562 * xfaces.c:
7563 * xfns.c:
7564 * xmenu.c:
7565 * xselect.c:
7566 * xsettings.c:
7567 * xsmfns.c: Likewise.
7568
d568829b
EZ
75692010-07-08 Eli Zaretskii <eliz@gnu.org>
7570
7571 * process.c (kbd_is_on_hold, hold_keyboard_input)
7572 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
7573
52214050
J
75742010-07-08 Jan Djärv <jan.h.d@swipnet.se>
7575
7576 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
7577 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
7578 unless USE_LUCID.
7579
313d9eb2
DN
75802010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7581
a628ad9d
JB
7582 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
7583 declaration.
d8825aa3 7584
295d0d8f
DN
7585 Clean up include guards.
7586 * tparam.c: Remove include guards for config.h, string.h and code
7587 that assumes #ifndef emacs.
7588 * termcap.c:
7589 * unexalpha.c:
7590 * sysdep.c:
7591 * filemode.c:
7592 * filelock.c:
7593 * bidi.c: Likewise.
7594
49d9e6b0
DN
7595 Remove prefix-args.c
7596 * prefix-args.c: Remove file.
7597 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
7598 * Makefile.in (temacs${EXEEXT}): Remove references to
7599 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
7600 (mostlyclean): Remove reference to prefix-args.
7601 (prefix-args): Remove.
7602
313d9eb2
DN
7603 Simplify cstart_of_data, start_of_code and related code.
7604 * mem-limits.h: Remove !emacs and _LIBC conditional code.
7605 (start_of_data): Merge into start_of_data function.
7606 * sysdep.c (start_of_text): Remove. Move simplified versions of
7607 it in the only users: unexaix.c and unexec.c.
7608 (read_input_waiting): Remove local declaration of quit_char.
7609 (start, etext): Remove declarations.
7610 (start_of_data): Merge with the version in mem-limits.h and move
7611 to vm-limits.c.
7612 * vm-limit.c (start_of_data): Merged and simplified version of the
7613 code formerly in mem-limits.h and sysdep.c.
7614 * unexec.c (start): New declaration, moved from sysdep.c.
7615 (start_of_text): Simplified version of the code formerly in sysdep.c.
7616 * unexaix.c (start_of_text): Simplified version of the code
7617 formerly in sysdep.c.
7618 * m/alpha.h (HAVE_TEXT_START): Remove.
7619 (TEXT_START): Move ...
7620 * unexalpha.c (TEXT_START): ... here.
7621 * s/hpux10-20.h (TEXT_START): Remove.
7622 * s/darwin.h (TEXT_START):
7623 * m/mips.h (TEXT_START):
7624 * m/macppc.h (HAVE_TEXT_START):
7625 * m/m68k.h (TEXT_START):
7626 * m/iris4d.h (TEXT_START):
7627 * m/intel386.h (TEXT_START):
7628 * m/ibmrs6000.h (TEXT_START):
7629 * m/ia64.h (HAVE_TEXT_START):
7630 * s/msdos.h (TEXT_START): Likewise.
7631
72af86bd
AS
76322010-07-07 Andreas Schwab <schwab@linux-m68k.org>
7633
7634 * alloc.c (overrun_check_malloc, overrun_check_realloc)
7635 (overrun_check_free, xstrdup, allocate_string)
7636 (allocate_string_data, compact_small_strings, Fmake_string)
7637 (make_unibyte_string, make_multibyte_string)
7638 (make_string_from_bytes, make_specified_string, make_float)
7639 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7640 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7641 memcpy, memmove, memset, memcmp.
7642 * atimer.c (start_atimer, set_alarm): Likewise.
7643 * buffer.c (clone_per_buffer_values, report_overlay_modification)
7644 (mmap_realloc, init_buffer_once): Likewise.
7645 * callint.c (Fcall_interactively): Likewise.
7646 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7647 (getenv_internal_1): Likewise.
7648 * casefiddle.c (casify_object): Likewise.
7649 * ccl.c (ccl_driver): Likewise.
7650 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7651 * charset.c (load_charset_map_from_file)
7652 (load_charset_map_from_file, load_charset_map_from_vector)
7653 (Fdefine_charset_internal): Likewise.
7654 * cm.c (Wcm_clear): Likewise.
7655 * coding.c (decode_eol, decode_coding_object)
7656 (Fset_coding_system_priority, make_subsidiaries): Likewise.
7657 * data.c (Faset): Likewise.
7658 * dired.c (directory_files_internal, file_name_completion_stat):
7659 Likewise.
7660 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7661 (clear_glyph_row, copy_row_except_pointers)
7662 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7663 (save_current_matrix, restore_current_matrix)
7664 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7665 (mirror_line_dance, scrolling_window): Likewise.
7666 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7667 Likewise.
7668 * doprnt.c (doprnt): Likewise.
7669 * editfns.c (Fuser_full_name, make_buffer_string_both)
7670 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7671 * emacs.c (sort_args): Likewise.
7672 * eval.c (Fapply, Ffuncall): Likewise.
7673 * fileio.c (Ffile_name_directory, make_temp_name)
7674 (Fexpand_file_name, search_embedded_absfilename)
7675 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7676 (auto_save_error): Likewise.
7677 * fns.c (Fstring_equal, Fcopy_sequence, concat)
7678 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7679 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7680 (Fmake_hash_table): Likewise.
7681 * fringe.c (Fdefine_fringe_bitmap): Likewise.
7682 * ftfont.c (ftfont_text_extents): Likewise.
7683 * getloadavg.c (getloadavg): Likewise.
7684 * image.c (define_image_type, make_image, make_image_cache)
7685 (x_create_x_image_and_pixmap, xbm_image_p)
7686 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7687 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7688 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7689 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7690 (tiff_image_p, tiff_read_from_memory, gif_image_p)
7691 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7692 Likewise.
7693 * indent.c (scan_for_column, compute_motion): Likewise.
7694 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7695 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7696 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7697 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7698 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7699 (store_user_signal_events, menu_bar_items, tool_bar_items)
7700 (process_tool_bar_item, append_tool_bar_item)
7701 (read_char_minibuf_menu_prompt, read_key_sequence)
7702 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7703 Likewise.
7704 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7705 Likewise.
7706 * lisp.h (STRING_COPYIN): Likewise.
7707 * lread.c (Fload, read1, oblookup): Likewise.
7708 * msdos.c (Frecent_doskeys): Likewise.
7709 * nsfns.m (Fx_create_frame): Likewise.
7710 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7711 Likewise.
7712 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7713 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7714 Likewise.
7715 * nsmenu.m (ns_update_menubar): Likewise.
7716 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7717 * print.c (print_unwind, printchar, strout, print_string)
7718 (print_error_message): Likewise.
7719 * process.c (conv_lisp_to_sockaddr, set_socket_option)
7720 (Fmake_network_process, Fnetwork_interface_list)
7721 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7722 (init_process): Likewise.
7723 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7724 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7725 Likewise.
7726 * scroll.c (do_scrolling, do_direct_scrolling)
7727 (scrolling_max_lines_saved): Likewise.
7728 * search.c (search_buffer, wordify, Freplace_match): Likewise.
7729 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7730 * syntax.c (skip_chars, skip_syntaxes): Likewise.
7731 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7732 (emacs_set_tty): Likewise.
7733 * term.c (encode_terminal_code, calculate_costs)
7734 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
7735 Likewise.
7736 * termcap.c (tgetst1, gobble_line): Likewise.
7737 * termhooks.h (EVENT_INIT): Likewise.
7738 * tparam.c (tparam1): Likewise.
7739 * unexalpha.c (unexec): Likewise.
7740 * unexec.c (write_segment): Likewise.
7741 * unexmacosx.c (unexec_write_zero): Likewise.
7742 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
7743 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
7744 * w32font.c (w32font_list_family, w32font_text_extents)
7745 (w32font_list_internal, w32font_match_internal)
7746 (w32font_open_internal, compute_metrics, Fx_select_font):
7747 Likewise.
7748 * w32menu.c (set_frame_menubar, add_menu_item)
7749 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
7750 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
7751 * w32uniscribe.c (uniscribe_list_family): Likewise.
7752 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
7753 * window.c (make_window, replace_window, set_window_buffer)
7754 (Fsplit_window): Likewise.
7755 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7756 (add_to_log, message3, x_consider_frame_title)
7757 (append_space_for_newline, extend_face_to_end_of_line)
7758 (decode_mode_spec_coding, init_glyph_string): Likewise.
7759 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7760 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7761 (face_attr_equal_p, make_realized_face, make_face_cache)
7762 (free_realized_faces, lookup_named_face, smaller_face)
7763 (face_with_height, lookup_derived_face)
7764 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7765 (Finternal_set_font_selection_order, realize_default_face)
7766 (compute_char_face, face_at_buffer_position)
7767 (face_for_overlay_string, face_at_string_position, merge_faces):
7768 Likewise.
7769 * xfns.c (xic_create_fontsetname, Fx_create_frame)
7770 (Fx_window_property, x_create_tip_frame)
7771 (Fx_backspace_delete_keys_p): Likewise.
7772 * xfont.c (xfont_list, xfont_match, xfont_list_family)
7773 (xfont_text_extents): Likewise.
7774 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7775 * xrdb.c (magic_file_p, x_get_resource): Likewise.
7776 * xselect.c (x_queue_event, x_get_window_property)
7777 (receive_incremental_selection): Likewise.
7778 * xsmfns.c (x_session_check_input): Likewise.
7779 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7780 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7781 Likewise.
44f230aa 7782 * character.h (BCOPY_SHORT): Remove.
72af86bd
AS
7783 * config.in: Regenerate.
7784 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
7785 * emacs.c (main) [PROFILING]: Don't declare
7786 dump_opcode_frequencies.
7787 * lisp.h (safe_bcopy): Remove declaration.
7788 (memset) [!HAVE_MEMSET]: Declare.
7789 (memcpy) [!HAVE_MEMCPY]: Likewise.
7790 (memmove) [!HAVE_MEMMOVE]: Likewise.
7791 (memcmp) [!HAVE_MEMCMP]: Likewise.
7792 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
7793 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
7794 Don't define.
7795 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
7796 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
7797 (BCOPY_DOWNWARD_SAFE): Don't define.
7798 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
7799 (memcpy) [!HAVE_MEMCPY]: Define.
7800 (memmove) [!HAVE_MEMMOVE]: Define.
7801 (memcmp) [!HAVE_MEMCMP]: Define.
7802
cb768704
J
78032010-07-07 Jan Djärv <jan.h.d@swipnet.se>
7804
7805 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
7806 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7807 New functions.
cb768704
J
7808 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
7809 select on empty input mask.
7810 (init_process): Initialize kbd_is_on_hold to 0.
7811
7812 * process.h (hold_keyboard_input, unhold_keyboard_input)
7813 (kbd_on_hold_p): Declare.
7814
7815 * keyboard.c (input_available_signal): Declare.
7816 (kbd_buffer_nr_stored): New function.
7817 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
7818 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
7819 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
7820 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
7821 (tty_read_avail_input): If input is on hold, return.
7822 Don't read more that free slots in kbd_buffer (Bug#6571).
7823
3a8ce822
EZ
78242010-07-07 Eli Zaretskii <eliz@gnu.org>
7825
7826 * msdos.h:
7827 * msdos.c:
7828 * dosfns.c:
7829 * w16select.c: Convert function definitions to ANSI C.
7830
a628ad9d
JB
7831 * msdos.h (ctrl_break_func, install_ctrl_break_check):
7832 Remove unused prototypes.
3a8ce822 7833
cf84bb53
JB
78342010-07-07 Juanma Barranquero <lekktu@gmail.com>
7835
7836 * coding.c, sysdep.c: Convert some more functions to standard C.
7837
1a4990fb
JB
78382010-07-07 Juanma Barranquero <lekktu@gmail.com>
7839
7840 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
7841 (encode_coding_object): Use SPECPDL_INDEX.
7842 (syms_of_coding): Use DOS_NT.
7843
c0f2f16b
DN
78442010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
7845
48fb6855
DN
7846 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
7847
c0f2f16b
DN
7848 Make the function member of Lisp_Subr use standard C prototypes.
7849 * lisp.h (struct Lisp_Subr): Use a union for the function member.
7850 (DECL_ALIGN): Add a cast for the function.
7851 * eval.c (Feval, Ffuncall): Use the proper type for each type
7852 function call.
7853
67aecef9
CY
78542010-07-06 Chong Yidong <cyd@stupidchicken.com>
7855
7856 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
7857 fringe face id, so face-remapping-alist works (Bug#6091).
7858
b56ceb92
JB
78592010-07-06 Juanma Barranquero <lekktu@gmail.com>
7860
7861 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
7862 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
7863 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
7864
7af07b96
AS
78652010-07-06 Andreas Schwab <schwab@linux-m68k.org>
7866
7867 * xterm.c (x_get_keysym_name): Change type of parameter to int.
7868 * lisp.h: Declare x_get_keysym_name.
7869 * keyboard.c (modify_event_symbol): Don't declare
7870 x_get_keysym_name here.
7871
69e24e34
DN
78722010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
7873
7874 * ecrt0.c: Revert conversion to standard C.
7875
d3da34e0 78762010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
7877
7878 * vm-limit.c (memory_warnings):
7879 * keyboard.c (modify_event_symbol):
7880 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
7881 (round2, emacs_rint):
7882 * process.c (send_process, old_sigpipe): Convert function
7883 definitions and declarations to standard C.
7884
78852010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
7886
7887 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
7888 * xdisp.c: Convert function definitions to standard C.
7889
7890 * cm.c (cmputc): Arg C is now int, not char.
7891 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
7892
00be444c
J
78932010-07-05 James Cloos <cloos@jhcloos.com>
7894
7895 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
7896
7897 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
7898 _NET_WM_ICON_NAME atoms.
7899
7900 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
7901 and _NET_WM_ICON_NAME properties, too, matching what is
7902 done in the Gtk+ case.
7903
e4c8d29a
J
79042010-07-05 Jan Djärv <jan.h.d@swipnet.se>
7905
ff919460
J
7906 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
7907
e4c8d29a
J
7908 * xsmfns.c (SSDATA): New macro.
7909 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
7910 passed to strlen/strcpy/strcat.
bba3e508
SM
7911 (create_client_leader_window): Surround with #ifndef USE_GTK.
7912 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
7913
7914 * xsettings.c (something_changedCB, parse_settings)
7915 (apply_xft_settings): Reformat prototype.
7916 (something_changedCB, init_gconf): Remove unused variable i.
7917 (read_settings): Remove unused variable long_len.
7918
7919 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
7920 (xg_get_image_for_pixmap, create_dialog)
7921 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
7922 (menuitem_highlight_callback, make_menu_item)
7923 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
7924 (xg_create_scroll_bar, xg_update_scrollbar_pos)
7925 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
7926 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
7927 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
7928 (xg_tool_bar_item_expose_callback): Reformat prototype.
7929 (xg_update_menubar): GList *group => GSList *group.
7930 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
7931 before use.
7932 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
7933 to GTK_IMAGE (wimage).
7934
dd4c5104
DN
79352010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7936
898b4c5c
DN
7937 * atimer.c: Use "" instead of <> for local includes for
7938 consistency with the rest of the code.
7939
dd4c5104
DN
7940 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
7941 * xrdb.c (get_system_name):
7942 * window.c (shrink_windows):
7943 * syntax.c (forw_comment):
7944 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
7945 (ins_del_costs):
7946 * mem-limits.h (start_of_data):
7947 * lread.c (readevalloop):
7948 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
7949 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
7950 * frame.c (x_get_focus_frame):
7951 * floatfns.c (fmod_float):
7952 * fileio.c (choose_write_coding_system):
7953 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
7954 (malloc_initialize_hook, sort_args, synchronize_locale):
7955 * doprnt.c (doprnt):
7956 * dired.c (compile_pattern):
7957 * data.c (fmod_float):
7958 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
7959 (map_char_table_for_charset):
7960 * charset.c (define_charset_internal):
7961 * alloc.c (Fgarbage_collect): Convert declarations or definitions
7962 to standard C.
7963
9a39b306 79642010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 7965 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
7966
7967 * lread.c (read1): Fix up last change to not mess up `c'.
7968
e6cb2cbb
JB
79692010-07-04 Juanma Barranquero <lekktu@gmail.com>
7970
7971 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
7972
438105ed
JB
79732010-07-04 Juanma Barranquero <lekktu@gmail.com>
7974
7975 Fix prototypes.
7976
e5447b22 7977 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 7978 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
7979 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
7980 arg, as required by internal_condition_case_1.
dcc7404b 7981 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
7982 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
7983 (analyse_first): Fix "const const".
e5447b22 7984 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 7985 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 7986 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 7987
971de7fb
DN
79882010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
7989
7990 * alloc.c: Convert function definitions to standard C.
7991 * atimer.c:
7992 * bidi.c:
7993 * bytecode.c:
7994 * callint.c:
7995 * callproc.c:
7996 * casefiddle.c:
7997 * casetab.c:
7998 * category.c:
7999 * ccl.c:
8000 * character.c:
8001 * charset.c:
8002 * chartab.c:
8003 * cmds.c:
8004 * coding.c:
8005 * composite.c:
8006 * data.c:
8007 * dbusbind.c:
8008 * dired.c:
8009 * dispnew.c:
8010 * doc.c:
8011 * doprnt.c:
8012 * ecrt0.c:
8013 * editfns.c:
8014 * fileio.c:
8015 * filelock.c:
8016 * filemode.c:
8017 * fns.c:
8018 * font.c:
8019 * fontset.c:
8020 * frame.c:
8021 * fringe.c:
8022 * ftfont.c:
8023 * ftxfont.c:
8024 * gtkutil.c:
8025 * indent.c:
8026 * insdel.c:
8027 * intervals.c:
8028 * keymap.c:
8029 * lread.c:
8030 * macros.c:
8031 * marker.c:
8032 * md5.c:
8033 * menu.c:
8034 * minibuf.c:
8035 * prefix-args.c:
8036 * print.c:
8037 * ralloc.c:
8038 * regex.c:
8039 * region-cache.c:
8040 * scroll.c:
8041 * search.c:
8042 * sound.c:
8043 * strftime.c:
8044 * syntax.c:
8045 * sysdep.c:
8046 * termcap.c:
8047 * terminal.c:
8048 * terminfo.c:
8049 * textprop.c:
8050 * tparam.c:
8051 * undo.c:
8052 * unexelf.c:
8053 * window.c:
8054 * xfaces.c:
8055 * xfns.c:
8056 * xfont.c:
8057 * xftfont.c:
8058 * xgselect.c:
8059 * xmenu.c:
8060 * xrdb.c:
8061 * xselect.c:
8062 * xsettings.c:
8063 * xsmfns.c:
8064 * xterm.c: Likewise.
8065
ae492bec
EZ
80662010-07-03 Eli Zaretskii <eliz@gnu.org>
8067
76ea4cc9
EZ
8068 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
8069 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
8070 `reverse' is specified in the frame parameters.
8071 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
8072 internal-set-lisp-face-attribute. Initialize screen colors from
8073 initial_screen_colors[] when f->default_face_done_p is zero,
8074 instead of depending on being called with default-frame-alist as
8075 the alist argument.
8076
8077 * xfaces.c (update_face_from_frame_parameter): Move out of
8078 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
8079 with HAVE_WINDOW_SYSTEM.
8080
1e6255ae
EZ
8081 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
8082 to menu-bar-mode, if not set in the frame parameters or in
8083 default-frame-alist.
8084
ae492bec
EZ
8085 * w32console.c (sys_tputs): Adjust argument list to prototype in
8086 term.c.
8087
3a35a84c
JB
80882010-07-03 Juanma Barranquero <lekktu@gmail.com>
8089
8090 * lisp.h (memory_warnings): Fix prototype.
8091
8092 * cm.h (evalcost): Fix prototype.
8093
8094 * cm.c (evalcost): Fix arg type.
8095
c532d349
DN
80962010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
8097
8098 * term.c (term_clear_mouse_face, Fidentity):
8099 * syssignal.h (signal_handler_t):
8100 * lisp.h (memory_warnings):
8101 * coding.h (preferred_coding_system):
8102 * cm.h (evalcost):
8103 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
8104
c0b36d46
EZ
81052010-07-02 Eli Zaretskii <eliz@gnu.org>
8106
8107 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
8108 from prototypes.
8109
8110 * msdos.h (load_pixmap): Don't define away.
8111
383e0970
J
81122010-07-02 Jan Djärv <jan.h.d@swipnet.se>
8113
f57e2426
J
8114 * lisp.h:
8115 * atimer.h: Remove define for P_.
8116
8117 * alloc.c: Remove __P and P_ from .c and .m files.
8118 * atimer.c:
8119 * buffer.c:
8120 * callint.c:
8121 * category.c:
8122 * charset.c:
8123 * chartab.c:
8124 * cm.c:
8125 * coding.c:
8126 * composite.c:
8127 * data.c:
8128 * dired.c:
8129 * dispnew.c:
8130 * doc.c:
8131 * editfns.c:
8132 * emacs.c:
8133 * eval.c:
8134 * fileio.c:
8135 * filelock.c:
8136 * fns.c:
8137 * font.c:
8138 * fontset.c:
8139 * frame.c:
8140 * ftfont.c:
8141 * ftxfont.c:
8142 * gmalloc.c:
8143 * gtkutil.c:
8144 * image.c:
8145 * indent.c:
8146 * intervals.c:
8147 * keyboard.c:
8148 * keymap.c:
8149 * lread.c:
8150 * marker.c:
8151 * menu.c:
8152 * minibuf.c:
8153 * print.c:
8154 * process.c:
8155 * scroll.c:
8156 * search.c:
8157 * sound.c:
8158 * strftime.c:
8159 * syntax.c:
8160 * sysdep.c:
8161 * term.c:
8162 * terminal.c:
8163 * textprop.c:
8164 * unexalpha.c:
8165 * w32console.c:
8166 * w32fns.c:
8167 * w32font.c:
8168 * w32menu.c:
8169 * w32term.c:
8170 * w32uniscribe.c:
8171 * window.c:
8172 * xdisp.c:
8173 * xfaces.c:
8174 * xfns.c:
8175 * xfont.c:
8176 * xftfont.c:
8177 * xmenu.c:
8178 * xselect.c:
8179 * xterm.c: Likewise.
8180
383e0970 8181 Remove P_ and __P macros.
f57e2426
J
8182 * atimer.h: Remove P_ and __P macros.
8183 * buffer.h:
383e0970
J
8184 * category.h:
8185 * ccl.h:
8186 * character.h:
8187 * charset.h:
8188 * cm.h:
8189 * coding.h:
8190 * composite.h:
8191 * dispextern.h:
8192 * disptab.h:
9e892c8d 8193 * dosfns.h:
383e0970
J
8194 * font.h:
8195 * fontset.h:
8196 * frame.h:
8197 * gtkutil.h:
8198 * indent.h:
8199 * intervals.h:
8200 * keyboard.h:
8201 * keymap.h:
8202 * lisp.h:
8203 * macros.h:
8204 * md5.h:
8205 * menu.h:
8206 * msdos.h:
8207 * nsterm.h:
8208 * puresize.h:
8209 * region-cache.h:
8210 * syntax.h:
8211 * syssignal.h:
8212 * systime.h:
8213 * termhooks.h:
9e892c8d 8214 * w32font.h:
383e0970
J
8215 * w32term.h:
8216 * widget.h:
8217 * window.h:
8218 * xgselect.h:
8219 * xsettings.h:
8220 * xterm.h: Likewise.
8221
98601119
DN
82222010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
8223
d9170db5
DN
8224 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
8225
98601119
DN
8226 Cleanup old code.
8227 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
8228 * syssignal.h: Remove code for Lynx, not supported anymore.
8229 * vm-limit.c: Remove unused code the depends on emacs not being
8230 defined and NO_LIM_DATA being defined.
8231 * mem-limits.h: Remove dead code.
8232
1f984e12
J
82332010-07-01 Jan Djärv <jan.h.d@swipnet.se>
8234
c49d071a
J
8235 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
8236
9d5405ec
J
8237 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
8238 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
8239
7a18115b
J
8240 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
8241 parameters, they are already absolute.
8242
a628ad9d
JB
8243 * nsterm.m (x_set_window_size, initFrameFromEmacs):
8244 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 8245
a628ad9d 8246 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 8247
a628ad9d
JB
8248 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
8249 Update FRAME_TOOLBAR_HEIGHT.
581a8100 8250
a628ad9d
JB
8251 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
8252 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 8253
c1ef4455
CY
82542010-06-30 Chong Yidong <cyd@stupidchicken.com>
8255
bba3e508
SM
8256 * frame.c (get_future_frame_param, Fmake_terminal_frame):
8257 Don't check default-frame-alist.
c1ef4455 8258
ce8f5a9a
AS
82592010-06-30 Andreas Schwab <schwab@linux-m68k.org>
8260
8261 * process.c (create_process): Avoid using invalid file descriptors.
8262
8263 * callproc.c (child_setup): Avoid closing a file descriptor twice.
8264
bf935339
J
82652010-06-30 Jan Djärv <jan.h.d@swipnet.se>
8266
8267 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
8268 Improve documentation. Return font regardless of use_system_font.
8269 (syms_of_xsettings): Improve documentation for font-use-system-font.
8270
7c33a057
CY
82712010-07-10 Chong Yidong <cyd@stupidchicken.com>
8272
2ec1b5ee
CY
8273 * xfaces.c (realize_face): Garbage the frame if a face is removed
8274 (Bug#6593).
8275
82762010-07-05 Andreas Schwab <schwab@linux-m68k.org>
8277
8278 * keyboard.c: Remove duplicate <setjmp.h>.
8279 (read_key_sequence): Remove volatile qualifiers.
8280
82812010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8282
8283 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
8284 (struct glyph_row): New members left_fringe_offset and
8285 right_fringe_offset.
8286
8287 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
8288 specially.
8289 * w32term.c (w32_draw_fringe_bitmap): Likewise.
8290 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
8291
8292 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 8293 Take account of bitmap offset.
2ec1b5ee
CY
8294 (draw_window_fringes): Take account of window vscroll.
8295 (update_window_fringes): Likewise. Extend top-aligned top indicator
8296 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
8297 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
8298 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
8299
83002010-07-04 Juanma Barranquero <lekktu@gmail.com>
8301
8302 * w32fns.c (Qtooltip): Declare.
8303 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
8304
83052010-07-03 Jan Djärv <jan.h.d@swipnet.se>
8306
8307 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
8308 grab on just Press (Bug#6499).
8309
83102010-07-02 Chong Yidong <cyd@stupidchicken.com>
8311
8312 * frame.c (Qtooltip): New var.
8313 (delete_frame): Use it. Fix faulty if statement. Don't update
8314 mode line for tooltip frames. Suggested by Martin Rudalics.
8315
8316 * xfns.c (x_create_tip_frame):
8317 * w32fns.c (x_create_tip_frame): Use it.
8318
83192010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
8320
8321 * xftfont.c (xftfont_open): Check font width one by one also when
8322 spacing is dual.
8323
8324 * ftfont.c (ftfont_open): Ditto.
8325
6259c2ec
GM
83262010-06-30 Glenn Morris <rgm@gnu.org>
8327
a46007e9
GM
8328 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
8329
6259c2ec
GM
8330 * Makefile.in (CANNOT_DUMP): Update for configure name change.
8331
8332 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
8333 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
8334 * s/darwin.h (SYSTEM_MALLOC):
8335 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
8336
5d1d3d04
J
83372010-06-29 Jan Djärv <jan.h.d@swipnet.se>
8338
8339 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
8340 (ns_get_screen): Don't assign integer to f.
8341 (Fx_display_color_cells): Declarations before statements.
8342
e547b051
J
83432010-06-28 Jan Djärv <jan.h.d@swipnet.se>
8344
5fc8e5bc
J
8345 * xfns.c (x_default_font_parameter): Remove got_from_system
8346 (Bug#6526).
8347
e547b051 8348 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
8349 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
8350 New defines based on what configure finds.
e547b051
J
8351
8352 * xterm.c (XTflash): Use gtk_widget_get_window.
8353 (xg_scroll_callback): Use gtk_adjustment_get_upper and
8354 gtk_adjustment_get_page_size.
8355 (handle_one_xevent): Use gtk_widget_get_mapped.
8356 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
8357 messages.
8358
8359 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
8360
8361 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
8362 HAVE_GTK_FILE_SELECTION_NEW.
8363
bba3e508
SM
8364 * gtkutil.c (xg_display_open, xg_display_close):
8365 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
8366 (xg_display_open): Return type is void.
8367 (gtk_widget_set_has_window)
8368 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
8369 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
8370 (gtk_adjustment_set_page_increment)
8371 (gtk_adjustment_get_step_increment): #define these if not found
8372 by configure.
8373 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
8374 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
8375 Use gtk_widget_get_window.
e547b051
J
8376 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
8377 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
8378 (create_dialog): Use gtk_dialog_get_action_area and
8379 gtk_dialog_get_content_area.
8380 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
8381 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
8382 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
8383 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
8384 Use g_object_ref and g_object_unref.
8385 (xg_update_menu_item, xg_tool_bar_menu_proxy):
8386 Use gtk_widget_get_sensitive.
e547b051
J
8387 (xg_update_submenu): Use remove_submenu.
8388 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
8389 properties instead to get old x and y position.
8390 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
8391 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 8392 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
8393 (xg_get_tool_bar_widgets): New function.
8394 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
8395 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
8396 (toolbar_set_orientation): New #define based on if configure
8397 finds gtk_orientable_set_orientation.
8398 (xg_create_tool_bar): Call toolbar_set_orientation.
8399 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
8400 instead of gtk_box_pack_start_defaults.
8401
b9229673
CY
84022010-06-28 Chong Yidong <cyd@stupidchicken.com>
8403
8404 * cmds.c (Fdelete_backward_char): Move into Lisp.
8405
bbc803b0
DN
84062010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8407
8408 * s/freebsd.h (BSD4_2): Remove redundant definition.
8409 bsd-common.h defines it already.
8410
6431f2e6
CY
84112010-06-27 Chong Yidong <cyd@stupidchicken.com>
8412
8413 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
8414 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
8415 tool-bar-mode, which are now set using these X resources at
8416 startup, to determine the defaults (Bug#2249).
8417
8418 * w32fns.c (Fx_create_frame):
8419 * nsfns.m (Fx_create_frame): Likewise.
8420
8421 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
8422
8c079ebb
JB
84232010-06-24 Juanma Barranquero <lekktu@gmail.com>
8424
8425 * gtkutil.c (xg_update_scrollbar_pos):
8426 Avoid C99 mid-block variable declaration.
8427
e9b7ab96
JD
84282010-06-22 Jan Djärv <jan.h.d@swipnet.se>
8429
bc869eca
JD
8430 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
8431
2b7e356a 8432 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
8433
8434 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
8435 if height is less than scroll bar min size.
8436 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
8437
e9b7ab96
JD
8438 * xfns.c (x_default_font_parameter): Try to open font from system
8439 before using it (bug#6478). Rename got_from_gconf to got_from_system.
8440
a628ad9d 84412010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
8442
8443 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
8444
70c4cfbb
EZ
84452010-06-20 Eli Zaretskii <eliz@gnu.org>
8446
8447 * xdisp.c (try_scrolling): When scroll-conservatively is set to
8448 most-positive-fixnum, be extra accurate when scrolling window
8449 start, to avoid missing the cursor line.
8450
ad5a12b5
EZ
84512010-06-19 Eli Zaretskii <eliz@gnu.org>
8452
8453 * xdisp.c (try_scrolling): Compute the limit for searching point
8454 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
8455 of 10 screen lines.
8456 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
8457 and
8458 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
8459 for details.
8460
2a64315a 84612010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
8462
8463 * editfns.c (Fbyte_to_string): Pacify compiler.
8464
288cf4e9
SM
84652010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8466
8467 * lread.c (read1): Phase out old-style backquotes a bit more.
8468
6e6e5760
EZ
84692010-06-12 Eli Zaretskii <eliz@gnu.org>
8470
cbc4fd20
EZ
8471 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
8472 bidimirror.h.
8473
8474 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
8475
317fbf33
EZ
8476 * bidi.c (bidi_initialize): Remove explicit initialization of
8477 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 8478 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 8479 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
8480
8481 * biditype.h: New file.
8482
cbc4fd20
EZ
8483 * bidimirror.h: New file.
8484
6e6e5760
EZ
8485 * window.c (syms_of_window): Doc fix (bug#6409).
8486
4176cba2
RF
84872010-06-12 Romain Francoise <romain@orebokech.com>
8488
8489 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
8490 ediff-hook.
8491
cb4bfcb5
GM
84922010-06-10 Glenn Morris <rgm@gnu.org>
8493
64c60c2f
GM
8494 * editfns.c (Fbyte_to_string): Pacify compiler.
8495
cb4bfcb5
GM
8496 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
8497
2ec1b5ee
CY
84982010-06-26 Andreas Schwab <schwab@linux-m68k.org>
8499
8500 * alloc.c (Fmake_byte_code): Don't access undefined argument
8501 (Bug#6517).
8502
85032010-06-25 Chong Yidong <cyd@stupidchicken.com>
8504
8505 * xdisp.c (next_element_from_image): Ensure that after-strings are
8506 read the next time we hit handle_stop (Bug#1336).
8507
85082010-06-23 Andreas Schwab <schwab@linux-m68k.org>
8509
8510 * lread.c (read1): Signal error if #s is not followed by paren.
8511
85122010-06-19 Chong Yidong <cyd@stupidchicken.com>
8513
8514 * image.c (free_image): Mark frame as garbaged (Bug#6426).
8515
8516 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
8517
85182010-06-15 Glenn Morris <rgm@gnu.org>
8519
8520 * editfns.c (Fbyte_to_string): Pacify compiler.
8521
e454a4a3
SM
85222010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
8523
8524 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
8525 Check `object's type before accessing its guts.
8526
c1b1acc2
DN
85272010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
8528
8529 * s/usg5-4.h: Fix previous change.
8530 Suggested by Lawrence Mitchell <wence@gmx.li>
8531
657d4c0b
AS
85322010-06-08 Andreas Schwab <schwab@linux-m68k.org>
8533
8534 * minibuf.c (Fall_completions): Add more checks.
8535
9b27fd9f
JB
85362010-06-08 Juanma Barranquero <lekktu@gmail.com>
8537
8538 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
8539
a99ebb40
DN
85402010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
8541
d7c5d87d
DN
8542 * lread.c (X_OK): Remove, unused.
8543
0263a941
DN
8544 * dispnew.c: Remove obsolete comment.
8545
a99ebb40
DN
8546 Remove INCLUDED_FCNTL.
8547 * xterm.c (INCLUDED_FCNTL):
8548 * callproc.c (INCLUDED_FCNTL):
8549 * alloc.c (INCLUDED_FCNTL):
8550 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
8551 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
8552
13b5221f
MR
85532010-06-07 Martin Rudalics <rudalics@gmx.at>
8554
8555 * window.c (Fselect_window): Move `record_buffer' up to the
8556 beginning of this function, so the buffer gets recorded
8557 even if the selected window does not change.
8558 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
8559
5220357f
JB
85602010-06-07 Juanma Barranquero <lekktu@gmail.com>
8561
8562 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
8563 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
8564
3085237c
DN
85652010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
8566
8567 Remove BSTRING related code, all platforms define it.
8568 * s/usg5-4.h (BSTRING): Remove definition.
8569 * s/template.h (BSTRING):
8570 * s/msdos.h (BSTRING):
8571 * s/ms-w32.h (BSTRING):
8572 * s/hpux10-20.h (BSTRING):
8573 * s/gnu-linux.h (BSTRING):
8574 * s/darwin.h (BSTRING):
8575 * s/cygwin.h (BSTRING):
8576 * s/bsd-common.h (BSTRING):
8577 * s/aix4-2.h (BSTRING): Likewise.
8578 * sysdep.c: Remove code depending on BSTRING not being defined.
8579
409f2919
JB
85802010-06-05 Juanma Barranquero <lekktu@gmail.com>
8581
8582 Remove obsolete macro BASE_LEADING_CODE_P.
8583 * character.h (BASE_LEADING_CODE_P): Remove.
8584 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
8585 * buffer.c (Fset_buffer_multibyte):
8586 * indent.c (scan_for_column, compute_motion):
8587 * insdel.c (count_combining_before, count_combining_after):
8588 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
8589
087fc47a
JB
85902010-06-04 Juanma Barranquero <lekktu@gmail.com>
8591
8592 Turn `directory-sep-char' into a noop.
8593
8594 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
8595 (DIRECTORY_SEP): Define unconditionally.
8596
8597 * s/ms-w32.h (DIRECTORY_SEP): Remove.
8598
8599 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
8600 call dostounix_filename directly.
8601
8602 * fileio.c (CORRECT_DIR_SEPS): Remove.
8603 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
8604 (Fsubstitute_in_file_name): Use dostounix_filename instead.
8605 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
8606 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
8607
8608 * w32proc.c (CORRECT_DIR_SEPS): Remove.
8609 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
8610
0eb7675e
AS
86112010-06-03 Andreas Schwab <schwab@linux-m68k.org>
8612
a628ad9d
JB
8613 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
8614 (Bug#6346)
0eb7675e 8615
78edd3b7
JB
86162010-06-03 Juanma Barranquero <lekktu@gmail.com>
8617
8618 * ccl.c (Fccl_program_p): Fix typo in docstring.
8619
eb697db5
DN
86202010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
8621
8622 Move UNEXEC definition to autoconf.
8623 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
8624 * s/sol2-10.h (UNEXEC):
8625 * s/irix6-5.h (UNEXEC):
8626 * s/hpux10-20.h (UNEXEC):
8627 * s/gnu-linux.h (UNEXEC):
8628 * s/darwin.h (UNEXEC):
8629 * s/cygwin.h (UNEXEC):
8630 * s/bsd-common.h (UNEXEC):
8631 * s/aix4-2.h (UNEXEC):
8632 * m/alpha.h (UNEXEC): Likewise.
8633 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8634
aa3830c4
JB
86352010-06-03 Juanma Barranquero <lekktu@gmail.com>
8636
8637 Remove obsolete pre-unicode2 macros.
8638 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8639 * composite.c (composition_reseat_it):
8640 * data.c (Faset):
8641 * fns.c (Ffillarray):
8642 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8643 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8644
d234d13e
JL
86452010-06-03 Juri Linkov <juri@jurta.org>
8646
8647 * buffer.c (Fother_buffer): Add CHECK_FRAME.
8648 (Fswitch_to_buffer): Remove unused variable `err'.
8649
0d4bcf4d
GM
86502010-06-03 Glenn Morris <rgm@gnu.org>
8651
e23dc1e2
GM
8652 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8653
05b09564
GM
8654 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8655 now that AH_BOTTOM does it.
8656
824e2978
GM
8657 * m/hp800.h (HAVE_ALLOCA):
8658 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8659
0d4bcf4d
GM
8660 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8661 Remove NOT_C_CODE tests, it is always true now.
8662
c55d2abf
DN
86632010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
8664
08a494a3
DN
8665 Fix config.h includes.
8666 * xsettings.c:
8667 * xgselect.c:
8668 * nsterm.m:
8669 * nsselect.m:
8670 * nsimage.m:
8671 * nsfont.m:
8672 * nsfns.m:
8673 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8674 other files do.
8675
75934b1d
DN
8676 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8677
9f32a766
DN
8678 * s/sol2-6.h: Remove obsolete comments.
8679
c55d2abf
DN
8680 Remove unnecessary alloca.h includes.
8681 * keymap.c: Do not include alloca.h, config.h does that.
8682 * sysdep.c: Likewise. Do not define fwrite, not used.
8683
06ac62b4
SM
86842010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8685
8686 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8687 the HAVE_TERMIO where it belongs (bug#6149).
8688
1ab8293c
SM
86892010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8690
8691 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8692 of bug#6305).
8693
6dcfd253
EZ
86942010-05-30 Eli Zaretskii <eliz@gnu.org>
8695
8696 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8697 state is always cached (bug#6306).
8698
6d26bbb2
EZ
86992010-05-29 Eli Zaretskii <eliz@gnu.org>
8700
06fa4a23
EZ
8701 Fix cursor motion in bidi-reordered continued lines.
8702 * xdisp.c (try_cursor_movement): Backup to non-continuation line
8703 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
8704 over continuation lines in bidi-reordered buffers.
8705 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
8706 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8707
f5783df3
MA
87082010-05-28 Michael Albinus <michael.albinus@gmx.de>
8709
8710 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8711
7d56b2dd
KH
87122010-05-28 Kenichi Handa <handa@m17n.org>
8713
8714 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8715 Don't sheck SPEC if it is nil.
8716 (font_list_entities): Call font_delete_unmatched if
b925d231 8717 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 8718
e58d4ff7
GM
87192010-05-28 Glenn Morris <rgm@gnu.org>
8720
8721 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8722
f1a5d776
CY
87232010-05-27 Chong Yidong <cyd@stupidchicken.com>
8724
8725 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8726 whether to trash.
8727 (internal_delete_file, Frename_file): Callers changed.
8728 (delete_by_moving_to_trash): Doc fix.
8729 (Fdelete_directory_internal): Don't move to trash.
8730
8731 * callproc.c (delete_temp_file):
8732 * buffer.c (Fkill_buffer): Callers changed.
8733
8734 * lisp.h: Update prototype.
8735
f44a59e6
CY
87362010-05-27 Chong Yidong <cyd@stupidchicken.com>
8737
8738 * xdisp.c (redisplay_window): After redisplay, check if point is
8739 still valid before setting it (Bug#6177).
8740
81ac4f35
GM
87412010-05-27 Glenn Morris <rgm@gnu.org>
8742
8743 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
8744 Convert comments to Makefile format.
8745
8746 * Makefile.in (bootstrap-clean): No more Makefile.c.
8747
ccd89fb3
GM
87482010-05-26 Glenn Morris <rgm@gnu.org>
8749
90278cb6
GM
8750 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
8751 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
8752
ccd89fb3
GM
8753 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8754 Remove.
8755 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8756
b7050583
KH
87572010-05-26 Kenichi Handa <handa@m17n.org>
8758
8759 * composite.c (composition_compute_stop_pos): Fix condition for
8760 backward scanning.
8761
e5458003
GM
87622010-05-25 Glenn Morris <rgm@gnu.org>
8763
c345fe90
GM
8764 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8765 Move before TEMACS_LDFLAGS.
8766 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8767 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8768
2e0689ab
GM
8769 * Makefile.in (NOT_C_CODE): No longer define.
8770 (config.h): No longer include.
8771
8009a5e8
GM
8772 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8773 variables it may reference.
8774
e5458003
GM
8775 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8776 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8777
10f72a37
KH
87782010-05-25 Kenichi Handa <handa@m17n.org>
8779
8780 * dispextern.h (struct composition_it): New members rule_idx and
8781 charpos.
8782
8783 * xdisp.c (set_iterator_to_next): While scanning backward, assume
8784 that the character positions of IT point the last character of the
8785 current grapheme cluster.
8786 (next_element_from_composition): Don't change character positions
8787 of IT.
8788 (append_composite_glyph): Set glyph->charpos to
8789 it->cmp_it.charpos.
8790
8791 * composite.c (autocmp_chars): Change the first argument to RULE,
8792 and try composition with RULE only.
8793 (composition_compute_stop_pos): Record the index number of the
8794 composition rule in CMP_IT->rule_idx.
8795 (composition_reseat_it): Call autocmp_chars repeatedly until the
8796 correct rule of the composition is found.
8797 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
8798 is at the last character of the current grapheme cluster when
8799 CMP_IT->reversed_p is nonzero.
8800
171eda53 88012010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 8802
171eda53
SM
8803 * editfns.c (Fbyte_to_string): New function.
8804
66a9f7f4
SM
88052010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8806
8807 * process.c (Fmake_network_process): Set :host to nil if it's not used.
8808 Suggested by Masatake YAMATO <yamato@redhat.com>.
8809
d8c315d1
EZ
88102010-05-23 Eli Zaretskii <eliz@gnu.org>
8811
171eda53 8812 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 8813
f5b416d2 88142010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
8815
8816 * s/netbsd.h: If terminfo is found, use it in preference to
8817 termcap. (Bug#6190) [Backport from trunk]
8818
0416466c
EZ
88192010-05-19 Eli Zaretskii <eliz@gnu.org>
8820
11117830 8821 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
8822
8823 * dispextern.h (struct glyph_row): New members minpos and maxpos.
8824 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
8825 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
8826 and maxpos members instead of start.pos and end.pos, respectively.
8827
8828 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
8829 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
8830 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
8831 (try_window_reusing_current_matrix, try_window_id):
8832 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
8833 (init_from_display_pos, init_iterator): Use EMACS_INT for
8834 character and byte positions.
66a9f7f4 8835 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
8836 arguments for minimum and maximum buffer positions seen by
8837 display_line for this row. Don't use iterator to find the
8838 position following the maximum one; instead, increment the
11117830
EZ
8839 position found by display_line directly. Fix logic; eol_pos
8840 should be tested before the rest. Handle the case of characters
8841 delivered from display vector (bug#6036). Fix tests related to
8842 it->method. Handle the truncated_on_right_p rows.
8843 (RECORD_MAX_MIN_POS): New macro.
8844 (display_line): Use it to record the minimum and maximum buffer
8845 positions for glyphs in the row being assembled. Record the
8846 position of the newline that terminates the line. If word wrap is
8847 in effect, restore minimum and maximum positions seen up to the
8848 wrap point, when iterator returns to it.
8849 (try_window_reusing_current_matrix): Give up if in bidi-reordered
8850 row and cursor not already at point. Restore original pre-bidi
8851 code for unidirectional buffers.
d36fe237
EZ
8852
8853 * dispnew.c (increment_row_positions, check_matrix_invariants):
8854 Increment and check row->start.pos and row->end.pos, in addition
8855 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
8856
11117830
EZ
8857 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
8858 Display truncated_on_left_p and truncated_on_right_p flags.
8859 Formatting fixes.
8860 (pmtxrows): Display the ordinal number of each row. Don't display
8861 rows beyond the last one.
8862
8863 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
8864 it is not copied by bidi_copy_it.
8865
6e83d800
EZ
88662010-05-22 Eli Zaretskii <eliz@gnu.org>
8867
8868 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
8869 (Bug#6237)
8870
110683ad
CY
88712010-05-22 Chong Yidong <cyd@stupidchicken.com>
8872
8873 * image.c (Fimage_flush): Rename from image-refresh.
8874
98fe5161
CY
88752010-05-21 Chong Yidong <cyd@stupidchicken.com>
8876
8877 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
8878 just one window.
8879
8880 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
8881 (clear_image_cache): If the number of cached images is unusually
8882 large, decrease the cache eviction delay (Bug#6230).
8883
e8752c66
GM
88842010-05-21 Glenn Morris <rgm@gnu.org>
8885
66dbf213
GM
8886 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
8887 Move these rules to ns.mk.
8888 * ns.mk: New file.
8889
04384b2d
GM
8890 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
8891
e8752c66
GM
8892 * Makefile.in (CANNOT_DUMP): New, set by configure.
8893 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
8894
2e2bbddb
JL
88952010-05-20 Juri Linkov <juri@jurta.org>
8896
8897 * fileio.c (Fdelete_file): Change interative spec to use
8898 `read-file-name' like in `find-file-read-args' where the default
8899 value is `default-directory' instead of `buffer-file-name'.
8900 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
8901
31c4aaf6
KR
89022010-05-20 Kevin Ryde <user42@zip.com.au>
8903
8904 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
8905 (Voverriding_terminal_local_map, Vsystem_key_alist)
8906 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
8907
9d5cf9b6
GM
89082010-05-20 Glenn Morris <rgm@gnu.org>
8909
8910 * Makefile.in (DEPDIR): New constant.
8911 (DEPFLAGS): Set with configure, not cpp.
8912 (MKDEPDIR): New, set by configure.
8913 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
8914 (clean): Use $DEPDIR.
8915 (deps_frag): Include from configure.
8916 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
8917 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
8918
bba3e508
SM
8919 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
8920 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 8921
7f34aec3
GM
89222010-05-19 Glenn Morris <rgm@gnu.org>
8923
d494e8f2
GM
8924 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
8925
c1d0dcfd
GM
8926 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
8927 (GNULIB_VAR): Remove.
8928 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
8929
8930 * m/ibms390x.h (LINKER):
8931 * m/macppc.h (LINKER) [GNU_LINUX]:
8932 * s/aix4-2.h (ORDINARY_LINK):
8933 * s/cygwin.h (LINKER):
8934 * s/darwin.h (ORDINARY_LINK):
8935 * s/gnu.h (ORDINARY_LINK):
8936 * s/netbsd.h (LINKER):
8937 * s/usg5-4.h (ORDINARY_LINK):
8938 Move to configure.
8939
7f34aec3
GM
8940 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
8941
754790b6
CY
89422010-05-18 Chong Yidong <cyd@stupidchicken.com>
8943
8944 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
8945 prevent stack overflow if number of arguments is too large
8946 (Bug#6214).
8947
161e44d1
JB
89482010-05-18 Juanma Barranquero <lekktu@gmail.com>
8949
8950 * charset.c (load_charset_map_from_file): Don't call close after fclose.
8951
be4ff9da
GM
89522010-05-18 Glenn Morris <rgm@gnu.org>
8953
9539dc5d
GM
8954 * s/gnu-linux.h: Combine two conditionals.
8955
8956 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
8957 $(POST_ALLOC_OBJ).
8958
40dc6bf4
GM
8959 * Makefile.in (RALLOC_OBJ): New, set by configure.
8960 (rallocobj): Replace with the previous variable.
8961 (otherobj): Use $RALLOC_OBJ.
8962
8963 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
8964 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
8965
be4ff9da
GM
8966 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
8967 (gmallocobj, vmlimitobj): Replace with previous two variables.
8968 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
8969
16455a85
GM
89702010-05-17 Glenn Morris <rgm@gnu.org>
8971
8972 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
8973 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
8974
5fdb7468
GM
89752010-05-16 Glenn Morris <rgm@gnu.org>
8976
7ca1f3f9
GM
8977 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
8978
7541dad5
GM
8979 * Makefile.in (clean): Get rid of HAVE_NS conditional.
8980
da53fab9
GM
8981 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
8982 trailing "/".
8983
b02a6645
GM
8984 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
8985 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
8986
8877ca0f
GM
8987 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
8988 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
8989 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
8990 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
8991 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
8992
5fdb7468
GM
8993 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
8994 Remove ${STARTFLAGS}, nothing ever sets it.
8995
95adb4b1
DN
89962010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
8997
8998 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
8999
676b6304
GM
90002010-05-16 Glenn Morris <rgm@gnu.org>
9001
9beab9ce
GM
9002 * Makefile.in (LIBX_BASE): Always define.
9003
8a95f0e7
GM
9004 * Makefile.in (LIBX_OTHER): Move out of cpp section.
9005
676b6304
GM
9006 * Makefile.in (LIBXT): Always define.
9007
6e546d18
GM
90082010-05-15 Glenn Morris <rgm@gnu.org>
9009
4235ca47 9010 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 9011
6e546d18
GM
9012 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
9013 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
9014
8c5ff6dd
KR
90152010-05-15 Ken Raeburn <raeburn@raeburn.org>
9016
560bb7ae 9017 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
9018 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
9019
8b4eb796
KR
9020 * emacs.c (main): Initialize initial-environment and
9021 process-environment before generating from env, not after.
9022
8c5ff6dd
KR
9023 Handle --version reasonably in CANNOT_DUMP configuration.
9024 * emacs.c (emacs_version, emacs_copyright): New string variables.
9025 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
9026 (syms_of_emacs): Defvar them, and initialize them from the C
9027 string variables.
9028 (main): If initialization hasn't been done, print initial version
9029 info from the C strings, instead of starting an interactive session.
9030
dbd3f723
EZ
90312010-05-15 Eli Zaretskii <eliz@gnu.org>
9032
d20e1419
EZ
9033 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
9034 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
9035 (bidi_paragraph_init): Remove redundant assertion that we are at
9036 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
9037
9038 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
9039 (syms_of_xdisp): Defsubr it.
9040
d36fe237
EZ
9041 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
9042
dbd3f723
EZ
9043 * Makefile.in: Fix MSDOS-related comments.
9044
02be533b
GM
90452010-05-15 Glenn Morris <rgm@gnu.org>
9046
1a82cca9
GM
9047 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
9048 (really-lwlib, really-oldXMenu): Always define.
9049 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
9050
3df7b338
GM
9051 * Makefile.in: Simplify cpp conditional.
9052
2b5f541b
GM
9053 * Makefile.in (${ns_appdir}): Simplify using umask.
9054
02be533b
GM
9055 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
9056
4e2db1fe
SM
90572010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
9058
9059 * eval.c (specbind): Remove left-over duplicate test.
9060 Disallow let-binding frame-local vars. Add comment.
9061
4b292a22
EZ
90622010-05-14 Eli Zaretskii <eliz@gnu.org>
9063
2fe72643 9064 Make the cache of bidi iterator states dynamically allocated.
1edbd309 9065 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
9066 (bidi_init_it): Call it.
9067 (bidi_cache_iterator_state): Enlarge the cache if needed.
9068
4e2db1fe 9069 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
9070 bidi_get_next_char_visually. All callers changed.
9071
82ebc97b
KH
90722010-05-14 Kenichi Handa <handa@m17n.org>
9073
9074 * dispextern.h (struct composition_it): New member reversed_p.
9075
9076 * composite.c (composition_compute_stop_pos): Search backward if
9077 ENDPOS < CHARPOS.
9078 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
9079 Set CMP_IT->reversed_p.
b4b6e17e 9080 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 9081
4e2db1fe
SM
9082 * xdisp.c (set_iterator_to_next):
9083 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
9084 scanning backward. Call composition_compute_stop_pos if scan
9085 direction is changed.
9086 (next_element_from_buffer): Call composition_compute_stop_pos with
9087 negative ENDPOS if we are scanning backward.
9088 (next_element_from_composition): Pay attention to
9089 IT->cmp_it.reversed_p.
9090
0e5d7800
KH
90912010-05-14 Kenichi Handa <handa@m17n.org>
9092
560bb7ae 9093 * font.c (font_range): Return the range for the font found at first.
0e5d7800 9094
cb027b32
GM
90952010-05-14 Glenn Morris <rgm@gnu.org>
9096
177b0288
GM
9097 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
9098
fbc00890
GM
9099 * Makefile.in (mktime, X11, register): Move undefs to configure.
9100
f14d1dfd
GM
9101 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
9102 (MSDOS_X_OBJ): New variable.
9103 (MSDOS_SUPPORT_REAL): New constant.
9104 (MSDOS_SUPPORT): Set as a variable, not with cpp.
9105 (obj): Use MSDOS_X_OBJ.
9106 (lisp): Use MSDOS_SUPPORT as a variable.
9107
11842bd8
GM
9108 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
9109 (GPM_MOUSE_SUPPORT): Now it's a constant.
9110 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
9111 not cpp.
9112
489d31a4 9113 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 9114 (ns_appresdir): Remove, unused.
e20f1f07 9115
489d31a4
GM
9116 * Makefile.in (SHELL): Move outside cpp section.
9117
cb027b32
GM
9118 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
9119
5a903aa9
GM
91202010-05-13 Glenn Morris <rgm@gnu.org>
9121
3369c79f
GM
9122 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
9123 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
9124
d5e982a6
GM
9125 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
9126 HAVE_WINDOW_SYSTEM must be too.
9127
6192e163
GM
9128 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
9129 (lisp): Remove WINNT_SUPPORT.
9130
472c5d6b
GM
9131 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
9132 Let configure set these variables (to empty) in this case as well.
9133
0116466b
GM
9134 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
9135 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
9136
5a903aa9
GM
9137 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
9138 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
9139 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
9140 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
9141 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 9142 the values output by configure.
5a903aa9
GM
9143 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
9144
1a0d7c06
GM
91452010-05-12 Glenn Morris <rgm@gnu.org>
9146
b5457f14
GM
9147 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
9148 (LINKER_WAS_SPECIFIED): Remove.
9149
1a0d7c06
GM
9150 * Makefile.in (LIB_GCC): Set using configure, not cpp.
9151 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
9152 * m/arm.h (LIB_GCC) [GNU_LINUX]:
9153 * s/cygwin.h (LIB_GCC):
9154 * s/freebsd.h (LIB_GCC):
9155 * s/gnu-linux.h (LIB_GCC):
9156 * s/msdos.h (LIB_GCC):
9157 * s/netbsd.h (LIB_GCC):
9158 Move to configure.
9159
d1ddd1d0 91602010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
9161
9162 * ftfont.c: Fix incorrect parentheses of #if condition for
9163 definining M17N_FLT_USE_NEW_FEATURE.
9164
acddf8ae
GM
91652010-05-11 Glenn Morris <rgm@gnu.org>
9166
9167 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
9168 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
9169
ae5e04fa
EZ
91702010-05-10 Eli Zaretskii <eliz@gnu.org>
9171
9172 * xdisp.c (init_iterator): Don't turn on bidi reordering in
9173 unibyte buffers. See
9174 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
9175
7490175b
GM
91762010-05-10 Glenn Morris <rgm@gnu.org>
9177
97efb629
GM
9178 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
9179 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
9180 (LIBES): Use LIBS_SYSTEM as a variable.
9181 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
9182 * s/aix4-2.h (LIBS_SYSTEM):
9183 * s/freebsd.h (LIBS_SYSTEM):
9184 * s/hpux10-20.h (LIBS_SYSTEM):
9185 * s/sol2-6.h (LIBS_SYSTEM):
9186 * s/unixware.h (LIBS_SYSTEM):
9187 Move to configure.
9188
7490175b
GM
9189 * s/aix4-2.h (MAIL_USE_LOCKF):
9190 * s/bsd-common.h (MAIL_USE_FLOCK):
9191 * s/darwin.h (MAIL_USE_FLOCK):
9192 * s/gnu-linux.h (MAIL_USE_FLOCK):
9193 * s/irix6-5.h (MAIL_USE_FLOCK):
9194 * s/template.h (MAIL_USE_FLOCK):
9195 Move to configure.
9196
0235128c 91972010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
9198
9199 * Version 23.2 released.
9200
0235128c 92012010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
9202
9203 * composite.c (autocmp_chars): Save point as marker before calling
9204 auto-composition-function (Bug#5984).
9205
9206 * lisp.h (restore_point_unwind): Add prototype.
9207
9208 * fileio.c (restore_point_unwind): Remove static attribute.
9209
0235128c 92102010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
9211
9212 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
9213 new feature of libotf and m17n-flt.
0235128c
SM
9214 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
9215 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
9216 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
9217 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
9218 that OUT is NULL. Use OTF_drive_gsub_with_log and
9219 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
9220 OTF_drive_gpos.
9221 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
9222 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
9223 Setup mflt_enable_new_feature and mflt_try_otf.
9224
4721152c
J
92252010-05-08 Jan Djärv <jan.h.d@swipnet.se>
9226
9227 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
9228
9229 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
9230 box and toolbar (Bug #6139).
9231 (xg_create_tool_bar): Remove comment (Bug #6139).
9232 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
9233 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
9234
ee0a16cf
JB
92352010-05-08 Juanma Barranquero <lekktu@gmail.com>
9236
9237 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
9238 Update dependencies.
9239
96d79611
EZ
92402010-05-08 Eli Zaretskii <eliz@gnu.org>
9241
9242 * fringe.c (update_window_fringes): Set up truncation bitmaps for
9243 R2L lines.
9244
40c17879
GM
92452010-05-08 Glenn Morris <rgm@gnu.org>
9246
7b42b29f
GM
9247 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
9248
40c17879
GM
9249 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
9250 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
9251 (termcapobj): Replace with TERMCAP_OBJ.
9252 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
9253 (LIBES): Use LIBS_TERMCAP as a variable.
9254
9255 * s/freebsd.h (osreldate.h): No longer include, since this file
9256 does not use __FreeBSD_version any more.
9257
9258 * s/aix4-2.h (TERMINFO):
9259 * s/cygwin.h (TERMINFO):
9260 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9261 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
9262 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9263 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9264 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
9265 * s/irix6-5.h (TERMINFO):
9266 * s/netbsd.h (LIBS_TERMCAP):
9267 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
9268 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
9269 * s/usg5-4.h (TERMINFO):
9270 Move to configure.
9271
94b612ad
SM
92722010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
9273
9274 * eval.c (unbind_to): Don't unbind a local binding into the global
9275 binding when the local binding disappeared. Inversely, don't unbind
9276 a global binding into a newly created local binding.
9277 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
9278 can specify the frame to use, when applicable. Adjust callers.
9279
15e12598 92802010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 9281 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
9282
9283 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
9284
f724825e
EZ
92852010-05-07 Eli Zaretskii <eliz@gnu.org>
9286
5cba3209
EZ
9287 * w32fns.c: Include w32.h.
9288 (Fw32_shell_execute): Decode the error message before passing it
9289 to `error'. (Bug#6126)
9290
d16bdfc3
EZ
9291 * msdos.c (dos_set_window_size):
9292 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
9293 instead of `XSYMBOL (foo)->value'.
9294
59d93e87
EZ
92952010-05-07 Eli Zaretskii <eliz@gnu.org>
9296
9fdec8bc
EZ
9297 Fix the MS-DOS build, broken by autoconfiscation.
9298
9299 * Makefile.in: Don't use Make-style comments past the "start of
9300 cpp stuff" line.
9301 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
9302
9303 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
9304 edited directly by msdos/sed1v2.inp).
f724825e 9305
2f86b22b
GM
93062010-05-07 Glenn Morris <rgm@gnu.org>
9307
9308 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
9309 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
9310 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
9311 move out of cpp section.
9312 * s/freebsd.h (LD_SWITCH_SYSTEM):
9313 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
9314 * s/netbsd.h (LD_SWITCH_SYSTEM):
9315 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
9316
49ebbd65
DN
93172010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9318
9319 Define LIB_STANDARD and START_FILES using autoconf.
9320 * s/usg5-4.h (LIB_STANDARD):
9321 * s/netbsd.h (START_FILES):
9322 * s/irix6-5.h (LIB_STANDARD):
9323 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
9324 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9325 * s/freebsd.h (START_FILES):
9326 * s/darwin.h (START_FILES):
9327 * s/cygwin.h (START_FILES):
9328 * s/aix4-2.h (LIB_STANDARD):
9329 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
9330 * Makefile.in (STARTFILES): Rename to START_FILES, define using
9331 autoconf, not cpp.
9332
d43c06d6
DN
93332010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
9334
28823648
DN
9335 Remove NEED_BSDTTY and NEED_UNISTD_H.
9336 * s/hpux10-20.h (NEED_BSDTTY): Remove.
9337 * s/aix4-2.h (NEED_UNISTD_H): Remove.
9338 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
9339 <sys/ptyio.h> and <unistd.h>.
9340
aca00430
DN
9341 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
9342
d43c06d6
DN
9343 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
9344 * s/gnu.h (START_FILES): Remove empty definition.
9345
3e56b11d
JD
93462010-05-06 Jan Djärv <jan.h.d@swipnet.se>
9347
9348 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
9349
e3cf0cde
GM
93502010-05-06 Glenn Morris <rgm@gnu.org>
9351
9352 * Makefile.in (CPP, LN_S): Remove unused variables.
9353
774b9a60
SM
93542010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9355
9356 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
9357
4ab92842
LM
93582010-05-05 Lawrence Mitchell <wence@gmx.li>
9359
9360 * m/sparc.h: Fix typo in earlier change.
9361
178f2507
SM
93622010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9363
9364 Misc tweaks.
9365 * eval.c (Fdefvaralias): Remove unintended nested if.
9366 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
9367
80f00217 93682010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
9369
9370 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
9371
ef03a4e6
DN
93722010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9373
58eb6cf0
DN
9374 Remove BSD_PGRPS.
9375 * s/bsd-common.h (BSD_PGRPS): Remove undef.
9376 * s/gnu-linux.h (BSD_PGRPS): Remove.
9377 * term.c (dissociate_if_controlling_tty):
9378 * sysdep.c (narrow_foreground_group, widen_foreground_group)
9379 (init_sys_modes, reset_sys_modes):
9380 * emacs.c (main):
9381 * callproc.c (Fcall_process, child_setup): Remove code depending
9382 on BSD_PGRPS.
9383
ef03a4e6
DN
9384 Remove POSIX_SIGNALS.
9385 * s/usg5-4.h (POSIX_SIGNALS):
9386 * s/netbsd.h (POSIX_SIGNALS):
9387 * s/msdos.h (POSIX_SIGNALS):
9388 * s/ms-w32.h (POSIX_SIGNALS):
9389 * s/hpux11.h (POSIX_SIGNALS):
9390 * s/gnu.h (POSIX_SIGNALS):
9391 * s/gnu-linux.h (POSIX_SIGNALS):
9392 * s/freebsd.h (POSIX_SIGNALS):
9393 * s/darwin.h (POSIX_SIGNALS):
9394 * s/cygwin.h (POSIX_SIGNALS):
9395 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
9396 * s/unixware.h:
9397 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
9398 * process.c (create_process):
9399 * syssignal.h:
9400 * sysdep.c (wait_for_termination, init_signals):
9401 * process.c (create_process):
9402 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
9403 remove all code that assumes the contrary.
9404
49628785
GM
94052010-05-04 Glenn Morris <rgm@gnu.org>
9406
27a2cdfc
GM
9407 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
9408 variable.
9409 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9410 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
9411 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9412 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
9413 LD_SWITCH_SYSTEM_tmp.
9414 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
9415 New variables, set by configure.
9416
eb21eab5
GM
9417 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9418 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
9419 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9420 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
9421 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
9422
49628785
GM
9423 * s/aix4-2.h (C_SWITCH_SYSTEM):
9424 * m/alpha.h (C_SWITCH_MACHINE):
9425 Move to configure.in.
9426 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
9427 New variables, set by configure.
9428 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
9429 $c_switch_machine and $c_switch_system.
9430
7dff330b
DN
94312010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9432
9433 * s/hpux10-20.h (LIB_STANDARD): New definition.
9434 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
9435 on it, not used anymore.
9436
53967e09
CY
94372010-05-03 Chong Yidong <cyd@stupidchicken.com>
9438
9439 * eval.c (internal_condition_case_n): Rename from
9440 internal_condition_case_2.
9441 (internal_condition_case_2): New function.
9442
9443 * xdisp.c (safe_call): Use internal_condition_case_n.
9444
9445 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
9446 (internal_delete_file, Frename_file): Callers changed.
9447
9448 * buffer.c (Fkill_buffer):
9449 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
9450
9451 * lisp.h: Update prototypes.
9452
3dee6fdb
GM
94532010-05-03 Glenn Morris <rgm@gnu.org>
9454
9455 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
9456 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
9457 (LIBXT): Set with configure, not cpp.
9458 (LIBX): Remove.
9459 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
9460
a101e0fb
DN
94612010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9462
9463 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
9464 The FreeBSD is not needed, the default works, Solaris version is
9465 not needed, and the remaining case is not supported by configure.
9466
f63d0028
JD
94672010-05-02 Jan Djärv <jan.h.d@swipnet.se>
9468
9469 * xsmfns.c (CHDIR_OPT): New define.
9470 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
9471 restarting emacs.
9472
9473 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
9474 shut_down_emacs.
9475
9476 * emacs.c (USAGE1): Mention --chdir.
9477 (main): Handle --chdir.
9478 (standard_args): Add --chdir.
9479 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
9480 #5552).
9481
e4814a9f
DN
94822010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
9483
cd03c74a
DN
9484 Remove LD_SWITCH_MACHINE.
9485 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
9486 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
9487
c3a398a1
DN
9488 Clean up IRIX code.
9489 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
9490 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
9491
87e7285c
DN
9492 Clean up AIX code.
9493 * m/ibmrs6000.inp: Remove file, unused.
9494 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
9495 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
9496 definition ...
9497 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
9498
80f00217
JB
9499 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
9500 unused.
e4814a9f 9501
59ca28de
EZ
95022010-05-01 Eli Zaretskii <eliz@gnu.org>
9503
197daef4
EZ
9504 Emulate POSIX_SIGNALS on MS-Windows.
9505
9506 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
9507 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
9508
9509 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
9510 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
9511 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
9512
80f00217
JB
9513 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
9514 New stubs.
197daef4 9515
af7c7572
EZ
9516 Miscellaneous fixes of bidi display.
9517
59ca28de
EZ
9518 * xdisp.c (find_row_end): New function, refactored from display_line.
9519 (display_line): Use it.
017ea819
EZ
9520 (extend_face_to_end_of_line): In almost-filled rows, extend only
9521 if the row is R2L and not continued.
166e930d 9522 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 9523 Preserve overlay and string info in row->end.
166e930d
EZ
9524 (insert_left_trunc_glyphs): Support addition of left truncation
9525 glyphs to R2L rows.
b47e0dcf 9526 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
9527 glyph between adjacent windows. Fix a crash when a display string
9528 is continued to the next line. Don't return zero if cursor was
9529 found by `cursor' property of a display string.
b47e0dcf
EZ
9530 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
9531 test for that explicitly.
59ca28de 9532
7acac9f4
GM
95332010-05-01 Glenn Morris <rgm@gnu.org>
9534
9535 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
9536 for clarity.
9537 (OTHER_OBJ): Remove.
9538 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
9539 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
9540
45841e65
KK
95412010-05-01 Karel Klíč <kklic@redhat.com>
9542
9543 * fileio.c (Ffile_selinux_context): Context functions may return null.
9544
afc61943
DN
95452010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
9546
80f00217 9547 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 9548
5a1bb006
GM
95492010-04-30 Glenn Morris <rgm@gnu.org>
9550
9551 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
9552 (OTHER_OBJ): Define as a separate variable, for clarity.
9553
210af043
J
95542010-04-30 Jan Djärv <jan.h.d@swipnet.se>
9555
2f8f196d 9556 * xsettings.c: Include limits.h and update file comment.
210af043 9557
0a7df391
GM
95582010-04-30 Glenn Morris <rgm@gnu.org>
9559
d5096f16
GM
9560 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
9561 Set with configure, not cpp.
9562 (LIBW): Remove, replace with $TOOLKIT_LIBW.
9563
7eb1ac33
GM
9564 * Makefile.in (mallocobj): Remove.
9565 (otherobj): Simplify using @OTHER_OBJ@.
9566
517d086b
GM
9567 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
9568 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
9569 Don't bother making nsgui.h dependency platform-specific.
9570
0a7df391
GM
9571 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
9572
d6d23852
SM
95732010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
9574
d2630aef
SM
9575 * process.c (read_process_output, exec_sentinel): Don't burp if the
9576 sentinel/filter kills the current buffer (bug#6060).
9577
f9dddf52 9578 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
9579 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
9580 Remove unused var `args'.
9581 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
9582 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
9583 * doc.c (store_function_docstring): Use XSETCAR.
9584
f1e3642a
GM
95852010-04-28 Glenn Morris <rgm@gnu.org>
9586
faf535f8
GM
9587 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
9588 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
9589
c40f9449
GM
9590 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
9591
658f86ca
GM
9592 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
9593 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
9594
bc0b5f61
GM
9595 * Makefile.in (FONT_OBJ): New, set by configure.
9596 (FONT_DRIVERS): Use $FONT_OBJ.
9597
294c50a0
GM
9598 * Makefile.in (LIBXMU): Set with configure, not cpp.
9599 * s/aix4-2.h (LIBXMU):
9600 * s/hpux10-20.h (LIBXMU):
9601 Remove definition, now set in configure.
9602
e6ec4e99
GM
9603 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
9604
f1e3642a
GM
9605 * m/amdx86-64.h [i386]: Move this test to configure.in.
9606
c6ea2936
GM
96072010-04-27 Glenn Morris <rgm@gnu.org>
9608
8fdac2c3
GM
9609 * Makefile.in (LIBXTR6): Set with configure, not cpp.
9610 * s/unixware.h (NEED_LIBW): Remove definition.
9611
986fb647
GM
9612 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
9613 (TOOLKIT_LIBW): New, set by configure.
9614 (@X_TOOLKIT_TYPE@): No longer define it.
9615
c6ea2936
GM
9616 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
9617 (MOTIF_LIBW): Set with configure, not cpp.
9618 * s/aix4-2.h (LIB_MOTIF):
9619 * s/gnu-linux.h (LIB_MOTIF):
9620 * s/unixware.h (LIB_MOTIF): Move to configure.in.
9621
aaa36002
DN
96222010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
9623
9624 Reduce CPP usage.
9625 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
9626 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
9627 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
9628 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 9629 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 9630
b678dd8b
GM
96312010-04-27 Glenn Morris <rgm@gnu.org>
9632
76cda504
GM
9633 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9634 since the defaults (set by the system file) are fine in most cases.
9635 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9636 * m/ibms390x.h (START_FILES, LIB_STANDARD):
9637 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9638 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9639 Remove definitions, since they are set correctly in s/gnu-linux.h.
9640 * s/freebsd.h (START_FILES, LIB_STANDARD):
9641 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9642 * s/hpux10-20.h (START_FILES):
9643 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9644 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9645
b678dd8b
GM
9646 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9647 (MOTIF_LIBW): Use $LIBXP.
9648 (otherobj): Use $WIDGET_OBJ.
9649
9452ded1
DN
96502010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
9651
7e10844c
DN
9652 * Makefile.in (LIBS_MACHINE): Remove, unused.
9653
9452ded1
DN
9654 Use autoconf instead of cpp for LIB_MATH.
9655 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9656 * s/cygwin.h (LIB_MATH): Likewise.
9657 * Makefile.in (LIB_MATH): Do not define with cpp.
9658 (LIBES): Use autoconf for LIB_MATH.
9659
fcebfc6a
KH
96602010-04-26 Kenichi Handa <handa@m17n.org>
9661
9662 * composite.c (Ffind_composition_internal): Fix the return value
9663 for an automatic composition.
9664
39e2ad1b
DN
96652010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
9666
9667 Remove all NO_ARG_ARRAY uses.
9668 * fns.c (concat2, concat3, nconc2):
9669 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9670 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9671 * m/xtensa.h (NO_ARG_ARRAY):
9672 * m/template.h (NO_ARG_ARRAY):
9673 * m/sparc.h (NO_ARG_ARRAY):
9674 * m/sh3.h (NO_ARG_ARRAY):
9675 * m/mips.h (NO_ARG_ARRAY):
9676 * m/macppc.h (NO_ARG_ARRAY):
9677 * m/iris4d.h (NO_ARG_ARRAY):
9678 * m/intel386.h (NO_ARG_ARRAY):
9679 * m/ibms390x.h (NO_ARG_ARRAY):
9680 * m/ibms390.h (NO_ARG_ARRAY):
9681 * m/ibmrs6000.h (NO_ARG_ARRAY):
9682 * m/ia64.h (NO_ARG_ARRAY):
9683 * m/hp800.h (NO_ARG_ARRAY):
9684 * m/arm.h (NO_ARG_ARRAY):
9685 * m/amdx86-64.h (NO_ARG_ARRAY):
9686 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9687
adf4f59c
EZ
96882010-04-25 Eli Zaretskii <eliz@gnu.org>
9689
6bdf5d65
EZ
9690 * xdisp.c (display_line): Don't assume 2nd call to
9691 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
9692 (iterate_out_of_display_property): New function, body from pop_it.
9693 (pop_it): Use it.
adf4f59c 9694
dfbbda83
GM
96952010-04-24 Glenn Morris <rgm@gnu.org>
9696
9697 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9698 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9699 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9700 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
9701
2d4018aa
EZ
97022010-04-24 Eli Zaretskii <eliz@gnu.org>
9703
a49884a6
EZ
9704 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9705 use `get_next_display_element' and `set_iterator_to_next' to
9706 advance to the next character, when looking for the character that
9707 begins the next row.
9708
76db6fcc 9709 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
9710 definition of "struct Lisp_Symbol".
9711
70eab5c1
GM
97122010-04-24 Glenn Morris <rgm@gnu.org>
9713
9714 * Makefile.in (CRT_DIR): New variable, set by configure.
9715 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9716 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
9717
1ad4cc3d
DN
97182010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9719
e769f484
DN
9720 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9721
4196ff33
DN
9722 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9723
879b0ee4
DN
9724 Remove redundant flags.
9725 * s/freebsd.h (C_SWITCH_SYSTEM):
9726 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9727 * s/netbsd.h (C_SWITCH_SYSTEM):
9728 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9729 of these.
9730
03cbbcb8
DN
9731 Simplify m/intel386.h.
9732 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9733 user: ecrt0.c.
9734 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
9735 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
9736 the only user: s/unixware.h.
9737 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
9738 from m/intel386.h.
bba3e508
SM
9739 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
9740 Definitions moved here from m/intel386.h.
03cbbcb8 9741
1ad4cc3d
DN
9742 * m/mips.h: Remove #if 0 code.
9743
8785b888
EZ
97442010-04-23 Eli Zaretskii <eliz@gnu.org>
9745
728588cc
EZ
9746 Fix display of composed characters from L2R scripts in bidi buffers.
9747 * xdisp.c (set_iterator_to_next, next_element_from_composition):
9748 After advancing IT past the composition, resync the bidi iterator
9749 with IT's position. (Bug#5977)
9750
a63f80b4
DN
97512010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9752
9753 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9754 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9755
ff5dec5c
SM
97562010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9757
9758 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9759
8785b888
EZ
97602010-04-23 Eli Zaretskii <eliz@gnu.org>
9761
58ccf243 9762 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
9763 * xdisp.c (pop_it): When the stack is popped after displaying
9764 from a string, bidi-iterate to exit from the text portion covered
9765 by the `display' property or overlay. (Bug#5988, bug#5920)
9766
feeb1604
DN
97672010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9768
8e324eb6
DN
9769 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9770 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9771
809fcaba
DN
9772 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9773 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9774
ed710380
DN
9775 Simplify STARTFILES definition.
9776 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9777 relying on Makefile.in to define it.
9778 * s/cygwin.h (START_FILES): Likewise.
9779 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
9780
feeb1604
DN
9781 Clean up Solaris code.
9782 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
9783 (LIB_MOTIF): Remove, configure takes care of this.
9784 (NOT_USING_MOTIF): Remove, unused.
9785 * xrdb.c: Remove #if 0-ed #include.
9786 (SYSV): Remove conditional for old SysV.
9787 * sysdep.c (closedir): Remove conditional code for Solaris,
9788 Solaris has closedir.
9789
a0d0b563
JD
97902010-04-22 Jan Djärv <jan.h.d@swipnet.se>
9791
9792 * xsettings.c (read_and_apply_settings): Check if current_font is
9793 NULL before strcmp (Bug#6001).
9794
56bae7c7
DN
97952010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
9796
9797 Clean up HP-UX files.
9798 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
9799 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
9800 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
9801 * s/hpux10-20.h: ... to the only user, here.
9802
372b7a95
EZ
98032010-04-21 Eli Zaretskii <eliz@gnu.org>
9804
9805 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
9806 use buffer-local values of paragraph-start and paragraph-separate.
9807 <paragraph_start_re, paragraph_separate_re>: Rename from
9808 fallback_paragraph_start_re and fallback_paragraph_separate_re.
9809 (Bug#5992)
9810
f904c0f9
JD
98112010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9812
9813 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
9814 current_tool_bar_style are new.
9815 (store_config_changed_event): Rename from store_font_changed_event.
9816 (XSETTINGS_TOOL_BAR_STYLE): New define.
9817 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
9818 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
9819 HAVE_XFT.
9820 (something_changedCB): store_font_changed_event is now
c4cc8b9a 9821 store_config_changed_event.
bba3e508
SM
9822 (parse_settings): Rename from parse_xft_settings.
9823 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 9824 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
9825 (apply_xft_settings): Take current settings as parameter. Do not
9826 call read_(xft)_settings.
9827 (read_and_apply_settings): New function.
bba3e508
SM
9828 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
9829 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 9830 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
9831 Call read_and_apply_settings unconditionally.
9832 (xsettings_initialize): Call init_xsettings.
9833 (Ftool_bar_get_system_style): New function.
9834 (syms_of_xsettings): Define Qmonospace_font_name and
9835 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 9836 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 9837 dynamic-setting.
01c35094 9838 Move misplaced HAVE_GCONF.
f904c0f9
JD
9839
9840 * xsettings.h (Ftool_bar_get_system_style): Declare.
9841
9842 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
9843 Qtext, Qboth, Qboth_horiz are new.
9844 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
9845 Vtool_bar_style, tool_bar_max_label_size.
9846
9847 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
9848
9849 * keyboard.c: QClabel is new.
9850 (parse_tool_bar_item): Take out QClabel from tool bar items.
9851 Try to construct a label if ther is no QClabel.
9852 (syms_of_keyboard): Intern :label as QClabel.
9853
9854 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
9855 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
9856 New.
9857
9858 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
9859 dynamic-setting.el.
9860
9861 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
9862 (xg_make_tool_item, xg_show_toolbar_item): New function.
9863 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
9864 Call xg_make_tool_item to make a tool bar item.
9865 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
9866
9867 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
9868 into account for toolbars.
9869
c632dfda
JD
98702010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9871
9872 * data.c (make_blv): Declarations before code (Bug#5993).
9873
10efe302
GM
98742010-04-21 Glenn Morris <rgm@gnu.org>
9875
9876 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
9877 Define using autoconf, not cpp.
9878 (LIBXSM): New variable, set by autoconf.
9879 (LIBXT): Use $LIBXSM.
9880
4285ac5a
DN
98812010-04-21 Dan Nicolaescu <local_user@dannlt>
9882
3ec759e7
DN
9883 Remove NOMULTIPLEJOBS, unused.
9884 * s/template.h (NOMULTIPLEJOBS):
9885 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
9886
4285ac5a
DN
9887 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
9888 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
9889 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
9890 detects -znocombreloc and passes it to the linker
9891 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
9892
2807228d
GM
98932010-04-21 Glenn Morris <rgm@gnu.org>
9894
9895 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
9896
574c05e2
KK
98972010-04-21 Karel Klíč <kklic@redhat.com>
9898
9899 * Makefile.in (LIBSELINUX_LIBS): New.
9900 (LIBES): Add $LIBSELINUX_LIBS.
9901 * eval.c, lisp.h (call7): New function.
9902 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
9903 (Ffile_selinux_context, Fset_file_selinux_context):
9904 New functions.
9905 (Fcopy_file): New parameter preserve-selinux-context.
9906 (Frename_file): Preserve selinux context when renaming by copy-file.
9907
91eac4bb 99082010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 9909 Eli Zaretskii <eliz@gnu.org>
91eac4bb 9910
50426a04
JB
9911 Don't depend on cm.c or termcap.c on Windows, use stubs.
9912 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
9913 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
9914 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
9915 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
9916 (sys_tputs, sys_tgetstr): New stubs.
9917 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
9918 (tputs, tgetstr): New; define to sys_*.
91eac4bb 9919
938efb77
JB
99202010-04-20 Juanma Barranquero <lekktu@gmail.com>
9921
9922 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
9923
b4bf28b7
SM
99242010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9925
8b1e1112
SM
9926 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
9927 Just signal a warning rather than an error when inside a let.
9928 (Fmake_variable_frame_local): Add the same test.
9929
933ac235
SM
9930 * font.c (syms_of_font): Make the style table vars read-only.
9931
b4bf28b7
SM
9932 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
9933 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
9934
9935 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
9936
93d68d0c
EZ
99372010-04-20 Eli Zaretskii <eliz@gnu.org>
9938
9939 Fix R2L paragraph display on TTY.
9940
9941 * xdisp.c (unproduce_glyphs): New function.
9942 (display_line): Use it when produced glyphs are discarded from R2L
9943 glyph rows.
9944 (append_composite_glyph): In R2L rows, prepend the glyph rather
9945 than appending it.
9946
9947 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
9948 rather than append it. Set up the resolved_level and bidi_type
9949 attributes of the appended glyph.
283ccc18
EZ
9950 (produce_special_glyphs): Mirror the backslash continuation
9951 character in R2L lines.
93d68d0c 9952
283ccc18 9953 Implement display of R2L paragraphs in GUI sessions.
26cdf528 9954
283ccc18
EZ
9955 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
9956 append_stretch_glyph.
bba3e508
SM
9957 (set_cursor_from_row) <cursor_x>: Remove unused variable.
9958 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
9959 (append_stretch_glyph): In reversed row, prepend the glyph rather
9960 than append it. Set resolved_level and bidi_type of the glyph.
9961 (extend_face_to_end_of_line): If the row is reversed, prepend a
9962 stretch glyph whose width is such that the rightmost glyph will be
9963 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
9964 TTY frames in testing whether a line needs face extension.
9965 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
9966 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
9967 region face.
bba3e508
SM
9968 (set_cursor_from_row, display_line):
9969 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 9970 row->continuation_lines_width.
283ccc18
EZ
9971 (next_element_from_buffer): Don't call bidi_paragraph_init if we
9972 are at ZV. Fixes a crash when reseated to ZV by
9973 try_window_reusing_current_matrix.
45903529
EZ
9974 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
9975 which happens with R2L glyph rows. Fixes a crash when inserting a
9976 character at end of an R2L line.
283ccc18
EZ
9977 (set_cursor_from_row): Don't be fooled by truncated rows: don't
9978 treat them as having zero-width characters. Improve comments.
9979 Don't reverse pos_before and pos_after for reversed glyph rows.
9980 Set cursor.x to negative value when the cursor might be on the
9981 left fringe.
9982 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
9983 left fringe, not the right one.
f951a506
EZ
9984 (notice_overwritten_cursor, draw_phys_cursor_glyph)
9985 (erase_phys_cursor): For reversed cursor_row, support cursor on
9986 the left fringe.
9987
283ccc18
EZ
9988 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
9989 of continuation indicators on the fringes.
9990 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
9991 left fringe.
9992
f951a506
EZ
9993 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
9994 draw cursor on the left fringe.
9995
9996 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
9997 cursor on the left fringe.
9998
f951a506
EZ
9999 * dispnew.c (update_text_area): Handle reversed desired rows when
10000 the cursor is on the left fringe.
10001 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
10002 below, not by 0, for when the cursor is on the left fringe.
10003
3bb49aaf
JD
100042010-04-20 Jan Djärv <jan.h.d@swipnet.se>
10005
10006 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
10007 widget is a scrollbar.
10008
c0be27fd
KH
100092010-04-20 Kenichi Handa <handa@m17n.org>
10010
10011 * charset.c (char_charset): Consider Vcharset_non_preferred_head
10012 only when the arg CHARSET_LIST is nil.
10013
ce5b453a
SM
100142010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
10015
10016 Make variable forwarding explicit rather the using special values.
10017 Basically, this makes the structure of buffer-local values and object
10018 forwarding explicit in the type of Lisp_Symbols rather than use
10019 special Lisp_Objects for that. This tends to lead to slightly more
10020 verbose code, but is more C-like, simpler, and makes it easier to make
10021 sure we handled all cases, among other things by letting the compiler
10022 help us check it.
10023 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
10024 Removing forwarding objects.
10025 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
10026 (struct Lisp_Symbol): Make the various forms of variable-forwarding
10027 explicit rather than hiding them inside Lisp_Object "values".
10028 (XFWDTYPE): New macro.
10029 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
10030 (XBUFFER_LOCAL_VALUE): Remove.
10031 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
10032 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
10033 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
10034 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
10035 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
10036 Remove the Lisp_Misc_* header.
10037 (struct Lisp_Buffer_Local_Value): Redefine.
10038 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
10039 (struct Lisp_Misc_Any): Add filler to get the right size.
10040 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
10041 Lisp_Intfwd.
10042 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
10043 (DEFVAR_KBOARD): Allocate a forwarding object.
10044 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
10045 (let_shadows_global_binding_p): New function.
10046 (union Lisp_Val_Fwd): New type.
10047 (make_blv): New function.
10048 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
10049 (store_symval_forwarding, swap_in_global_binding, Fboundp)
10050 (swap_in_symval_forwarding, find_symbol_value, Fset)
10051 (let_shadows_buffer_binding_p, set_internal, default_value)
10052 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
10053 (Fkill_local_variable, Fmake_variable_frame_local)
10054 (Flocal_variable_p, Flocal_variable_if_set_p)
10055 (Fvariable_binding_locus):
10056 * xdisp.c (select_frame_for_redisplay):
10057 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
10058 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
10059 * frame.c (store_frame_param):
10060 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
10061 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
10062 value structure.
10063 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
10064 (clone_per_buffer_values): Only adjust markers into the current buffer.
10065 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
10066 (Fbuffer_local_value, set_buffer_internal_1)
10067 (swap_out_buffer_local_variables):
10068 Adapt to the new symbol value structure.
10069 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
10070 (defvar_per_buffer): Take a new arg for the fwd object.
10071 (buffer_lisp_local_variables): Return a proper alist (different fix
10072 for bug#4138).
10073 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
10074 (Fgarbage_collect): Don't handle buffer_defaults specially.
10075 (mark_object): Handle new symbol value structure rather than the old
10076 special Lisp_Misc_* objects.
10077 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
10078 * term.c (set_tty_color_mode):
10079 * bidi.c (bidi_initialize): Don't access the ->value field directly.
10080 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
10081 a buffer_local_flags.
10082 * print.c (print_object): Get rid of impossible forwarding objects.
10083
fd3998ff
EZ
100842010-04-19 Eli Zaretskii <eliz@gnu.org>
10085
10086 * bidi.c (bidi_get_type, bidi_get_category)
10087 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
10088 (bidi_type_of_next_char, bidi_level_of_next_char):
10089 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 10090
e42cd1a7
JB
100912010-04-19 Juanma Barranquero <lekktu@gmail.com>
10092
10093 * dired.c (Ffile_attributes): Fix typo in docstring.
10094
6e104790 100952010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
10096
10097 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
10098 NSInteger (Bug#5811).
10099
6e104790 101002010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
10101
10102 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
10103 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
10104
6e104790 101052010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
10106
10107 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
10108
6e104790
SM
101092010-04-19 Chong Yidong <cyd@stupidchicken.com>
10110
10111 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
10112 terminal frames (Bug#5837).
10113
37dcfea0
EZ
101142010-04-19 Eli Zaretskii <eliz@gnu.org>
10115
d1da276f
EZ
10116 * .gdbinit (xsubchartable): New command.
10117
37dcfea0
EZ
101182010-04-19 Eli Zaretskii <eliz@gnu.org>
10119
10120 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 10121 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
10122 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
10123 and
10124 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
10125
e9515805
SM
101262010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10127
10128 * alloc.c (Fpurecopy): Hash-cons if requested.
10129 (syms_of_alloc): Update purify-flag docstring.
10130
22aa44a8
JD
101312010-04-18 Jan Djärv <jan.h.d@swipnet.se>
10132
10133 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
10134 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
10135
ebb5722e
EZ
101362010-04-17 Eli Zaretskii <eliz@gnu.org>
10137
10138 Fix a crash when an NSM character is inserted at BEGV.
10139
10140 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
10141 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
10142 NEUTRAL_B or UNKNOWN_BT.
10143
0f4442ef
EZ
101442010-04-16 Eli Zaretskii <eliz@gnu.org>
10145
10146 * xdisp.c (set_cursor_from_row): Don't consider possibility of
10147 other rows with cursor unless they are different from this row and
10148 this row is part of a continued line. (Bug#5943)
10149
7d4e45f8
DN
101502010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
10151
10152 * s/freebsd.h: Restore osreldate.h include.
10153 Suggested by Naohiro Aota.
10154
5ba5ec85
J
101552010-04-16 Jan Djärv <jan.h.d@swipnet.se>
10156
10157 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
10158
20af301d
CY
101592010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
10160
10161 * s/cygwin.h: Avoid linking against static libgcc.
10162
a4b000fb
JL
101632010-04-15 Juri Linkov <juri@jurta.org>
10164
10165 * window.c: Add Qscroll_command.
10166 Remove Vscroll_preserve_screen_position_commands.
10167 (window_scroll_pixel_based, window_scroll_line_based): Check the
10168 `scroll-command' property on the last command instead of searching
10169 the last command in Vscroll_preserve_screen_position_commands.
10170 (syms_of_window): Initialize and staticpro `Qscroll_command'.
10171 Put Qscroll_command property on Qscroll_up and Qscroll_down.
10172 (scroll-preserve-screen-position): Doc fix.
10173 (Vscroll_preserve_screen_position_commands): Remove variable.
10174
bc319ba4
DN
101752010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
10176
6bb24457
DN
10177 * xdisp.c (message): Do not use NO_ARG_ARRAY.
10178
19d4c244
DN
101792010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
10180
10181 Reduce cpp use in Makefile.in.
10182 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
10183 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
10184 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
10185 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
10186 (CRT0_COMPILE): Remove, inline it in the only user.
10187
32129746
JL
101882010-04-14 Juri Linkov <juri@jurta.org>
10189
10190 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
10191 `scroll-up-command' and `M-v' from `scroll-down' to
10192 `scroll-down-command'.
10193
9013a7f8
JL
101942010-04-14 Juri Linkov <juri@jurta.org>
10195
10196 * window.c (Vscroll_preserve_screen_position_commands): New variable
10197 with the default value as the list of Qscroll_down and Qscroll_up.
10198 (window_scroll_pixel_based, window_scroll_line_based): Search the
10199 last command in the list Vscroll_preserve_screen_position_commands
10200 instead of comparing with Qscroll_up and Qscroll_down.
10201
4bef8d26
JD
102022010-04-13 Jan Djärv <jan.h.d@swipnet.se>
10203
92848133
JD
10204 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
10205 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
10206 does that.
10207
4bef8d26
JD
10208 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
10209 to zero.
10210
58b963f7
SM
102112010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10212
84164a0d
SM
10213 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
10214
2b0a91e7
SM
10215 Try to solve the problem of spurious EOF chars in long lines of text
10216 sent to interactive subprocesses.
10217 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
10218 (system_process_attributes): Remove unused var `ttotal'.
10219 * process.c (send_process): Don't bother breaking long line with EOF
10220 chars when talking to ttys any more.
10221 (wait_reading_process_output): Output a warning when called in such
10222 a way that it could block without being interruptible.
10223
58b963f7
SM
10224 Try to detect file modification within the same second.
10225 * buffer.h (struct buffer): New field modtime_size.
10226 * buffer.c (reset_buffer): Initialize it.
10227 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
10228 (Fverify_visited_file_modtime): Check it.
10229 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
10230 (Fset_visited_file_modtime): Set (or clear) it.
10231
01f5787b
SM
102322010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10233
10234 * process.c (status_notify): Remove unused var `ro'.
10235
83725342
JD
102362010-04-12 Jan Djärv <jan.h.d@swipnet.se>
10237
10238 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
10239 more than one visual (Bug#5938).
10240
b9465836
DN
102412010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10242
50426a04
JB
10243 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
10244 Undefine.
b9465836 10245
8d9c8ece
DN
102462010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
10247
b1f52161
DN
10248 Remove C_SWITCH_SYSTEM_TEMACS.
10249 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
10250 (malloc, realloc, free): Use emacs, not temacs for conditional
10251 definition.
10252
10253 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
10254 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
10255
8d9c8ece
DN
10256 Use autoconf, not cpp for some variables.
10257 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
10258 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
10259 (ALL_CFLAGS): Use them as make variables.
10260 (really-lwlib, really-oldXMenu): Do not pass them.
10261
1ecb2d3f
JD
102622010-04-11 Jan Djärv <jan.h.d@swipnet.se>
10263
10264 * xmenu.c (apply_systemfont_to_dialog): New.
10265 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
10266
3a4fa2f2
SM
102672010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10268
97e53006
SM
10269 * process.c (exec_sentinel): Preserve current-buffer.
10270
3a4fa2f2
SM
10271 * process.c (read_process_output): Move the save-current-buffer to
10272 apply to both the filter and the non-filter branches.
10273
88df7221
DN
102742010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
10275
10276 * s/msdos.h (UNEXEC): New definition.
10277
5634ff85
YM
102782010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10279
6eff5c3d
YM
10280 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
10281 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
10282
10283 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
10284 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
10285 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
10286 TRY_WINDOW_CHECK_MARGINS.
10287
10288 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
10289 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
10290 width only when it is for padding.
5634ff85 10291
b13aef54
J
102922010-04-09 Jan Djärv <jan.h.d@swipnet.se>
10293
10294 * xfns.c (Fx_show_tip): Call try_window in a loop until
10295 fonts_changed_p is zero (Bug#2423).
10296
21d28484
EZ
102972010-04-08 Eli Zaretskii <eliz@gnu.org>
10298
10299 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
10300 the end of TEXT_AREA. (Bug#5856)
10301
0269ef77
JD
103022010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10303
10304 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
10305 HAVE_GCONF.
10306
5930fe97
EZ
103072010-04-08 Eli Zaretskii <eliz@gnu.org>
10308
10309 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
10310 prev.orig_type, for resolving type of NSM. (Bug#5858)
10311
99852628
JD
103122010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10313
10314 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
10315 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
10316 in current_font.
10317 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
10318 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
10319 New functions.
10320 (syms_of_xsettings): Initialize current_font.
10321 defsubr Sfont_get_system_normal_font.
99852628 10322
686b968e
JB
10323 * xsettings.h (Ffont_get_system_normal_font)
10324 (xsettings_get_system_normal_font): Declare.
99852628
JD
10325
10326 * xfns.c (extern xlwmenu_default_font): Remove.
10327 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
10328 to xlwmenu.c.
10329
10330 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
10331 menu items in UTF-8.
10332
2f8f196d 10333 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
99852628 10334 (apply_systemfont_to_menu): New function.
bba3e508
SM
10335 (set_frame_menubar, create_and_show_popup_menu):
10336 Call apply_systemfont_to_menu.
99852628 10337
7fc874c4
J
103382010-04-07 Jan Djärv <jan.h.d@swipnet.se>
10339
10340 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
10341 FRAME_LINE_TO_PIXEL_Y.
10342
10343 * xterm.c (x_set_window_size_1): Don't add border_width/height to
10344 pixelwidth/height.
10345
863bf481
DN
103462010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
10347
5e5a3b92
DN
10348 Simplify code for HP machines.
10349 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
10350 for GNU_LINUX, not needed.
10351 (UNEXEC, NEED_BSDTTY): Move definitions...
10352 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
10353
863bf481
DN
10354 * m/iris4d.h (UNEXEC): Move definition ...
10355 * s/irix6-5.h (UNEXEC): ... here.
10356
3e6bec3b
JD
103572010-04-04 Jan Djärv <jan.h.d@swipnet.se>
10358
10359 * xfns.c (set_machine_and_pid_properties): New function.
10360 (Fx_create_frame): Call set_machine_and_pid_properties.
10361
2912322b
SM
103622010-04-03 Eli Zaretskii <eliz@gnu.org>
10363
bba3e508
SM
10364 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
10365 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
10366 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
10367
2912322b
SM
10368 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
10369 in this function. (Bug#5703)
10370
103712010-04-03 Chong Yidong <cyd@stupidchicken.com>
10372
10373 * nsterm.h: Fix last change.
10374
c435b432
DN
103752010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
10376
a568f507
DN
10377 * m/intel386.h (NO_REMAP): Move definition ...
10378 * s/msdos.h (NO_REMAP): ... here.
10379
4cd9f6c2
DN
10380 * m/vax.h (CRT0_DUMMIES): Remove, unused.
10381
c435b432
DN
10382 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
10383 used on those platforms.
10384
42a2c622
DN
103852010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
10386
10387 Remove extern errno declarations.
10388 * xterm.c:
10389 * xrdb.c:
10390 * w32term.c:
10391 * unexec.c:
10392 * unexaix.c:
10393 * sysdep.c:
10394 * process.c:
10395 * lread.c:
10396 * keyboard.c:
10397 * floatfns.c:
10398 * filelock.c:
10399 * fileio.c:
10400 * emacs.c (main):
10401 * ecrt0.c:
10402 * dispnew.c:
10403 * callproc.c:
10404 * buffer.c: Remove errno extern declarations.
10405 * s/netbsd.h (NEED_ERRNO): Remove.
10406
8224f93d
DN
104072010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
10408
10409 Remove all uses of LIBX11_SYSTEM.
10410 * Makefile.in (LIBX11_SYSTEM): Remove.
10411 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
10412 instead.
10413
814062c7
EZ
104142010-04-01 Eli Zaretskii <eliz@gnu.org>
10415
ed68db4d
EZ
10416 Remove support for DJGPP v1.x (bug#5813).
10417
10418 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
10419 * s/msdos.h:
10420 * unexec.c (make_hdr, copy_text_and_data):
10421 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 10422 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
10423 (IT_set_terminal_modes, __write, _rename, gethostname)
10424 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
10425 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
10426 the value of __DJGPP__.
ed68db4d
EZ
10427 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
10428 compatibility code.
8224f93d
DN
10429 * lread.c:
10430 * gmalloc.c (memalign):
10431 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
10432 * emacs.c (main):
10433 * dosfns.c (init_dosfns):
ed68db4d
EZ
10434 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
10435
52f4d8d5
EZ
104362010-04-01 Eli Zaretskii <eliz@gnu.org>
10437
814062c7
EZ
10438 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
10439 string with `cursor' property comes from an `after-string'
10440 overlay. (Bug#5816)
10441
0dc2e11d
GM
104422010-04-01 Glenn Morris <rgm@gnu.org>
10443
10444 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
10445 Define as Makefile variables.
10446 (LIBX): Use above variables rather than directly using autoconf.
10447
1d29df59
DN
104482010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
10449
10450 Clean up BSD_SYSTEM use.
10451 * xterm.c:
10452 * process.c:
10453 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
10454 for including <sys/ioctl.h>.
10455 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
10456 code is only used for MSDOS.
10457
1546c559
JL
104582010-03-31 Juri Linkov <juri@jurta.org>
10459
10460 * image.c: Add `Qextension_data'.
10461 (syms_of_image): Initialize and staticpro `Qextension_data'.
10462 (Fimage_metadata): Rename from `Fimage_extension_data'.
10463 (gif_load): Put GIF extension data to the property
10464 `Qextension_data'.
10465
6521c534
CY
104662010-03-31 Chong Yidong <cyd@stupidchicken.com>
10467
10468 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
10469 * nsterm.h: Fix prototype.
10470
52c30783
EZ
104712010-03-31 Eli Zaretskii <eliz@gnu.org>
10472
10473 * xdisp.c (highlight_trailing_whitespace): Support highlight of
10474 trailing whitespace in right-to-left rows.
10475
855a0da7
SM
104762010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10477
10478 Get rid of the direct_output optimizations.
10479 * keyboard.c (nonundocount): Remove extern declaration.
10480 (command_loop_1): Remove brittle optimisation for cheap and
10481 common operations.
10482 * xdisp.c (redisplay_internal): Don't bother checking
10483 redisplay_performed_directly_p any more.
10484 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
10485 any more.
10486 * dispnew.c (redisplay_performed_directly_p)
10487 (direct_output_for_insert, direct_output_forward_char):
10488 * dispextern.h (redisplay_performed_directly_p)
10489 (direct_output_for_insert, direct_output_forward_char): Remove.
10490 * cmds.c (nonundocount): Make it static.
10491
85738751 104922010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
10493
10494 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
10495
85738751 104962010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
10497
10498 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
10499 invisible (Bug#5766).
10500
85738751 105012010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 10502
855a0da7
SM
10503 * xdisp.c (x_consider_frame_title, update_window_cursor):
10504 Remove HAVE_NS conditionals.
194d44e7 10505 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
10506
10507 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
10508 filename for the title.
10509 (ns_set_doc_edited): Do nothing if the selected window is a
10510 minibuffer window.
10511
10512 * nsterm.h: Add prototypes for ns_set_name_as_filename and
10513 ns_set_doc_edited.
10514
10515 * nsterm.m: Remove unneeded prototype.
10516
85738751 105172010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
10518
10519 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
10520 in the DOC file. (Bug#5336)
10521
85738751 105222010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
10523
10524 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
10525
75d1428c
SM
105262010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10527
10528 * window.c (keys_of_window): Remove redundant/overridden bindings.
10529
82043cfb
EZ
105302010-03-30 Eli Zaretskii <eliz@gnu.org>
10531
10532 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
10533 Restore original behavior when the iterator is not bidi_p.
10534
b5dd0ae7
DN
105352010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10536
10537 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
10538
bd924a5d
EZ
105392010-03-30 Eli Zaretskii <eliz@gnu.org>
10540
10541 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
10542 are outside the range of cached character positions.
10543
3580374b
JB
105442010-03-30 Juanma Barranquero <lekktu@gmail.com>
10545
10546 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
10547
a7b02820
EZ
105482010-03-30 Eli Zaretskii <eliz@gnu.org>
10549
10550 Initial support for bidirectional editing.
10551
10552 * Makefile.in (obj): Include bidi.o.
10553 (bidi.o): New target.
10554
10555 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
10556 ($(BLD)/bidi.$(O)): New target.
10557
10558 * bidi.c: New file.
10559
10560 * buffer.h (struct buffer): New members bidi_display_reordering
10561 and bidi_paragraph_direction.
10562
10563 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
10564 and bidi_paragraph_direction.
10565 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
10566 and bidi-paragraph-direction.
10567 (Fbuffer_swap_text): Swap the values of
10568 bidi_display_reordering and bidi_paragraph_direction.
10569
10570 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
10571 (bidi_type_t, bidi_dir_t): New types.
10572 (bidi_saved_info, bidi_stack, bidi_it): New structures.
10573 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
10574 prev_stop, base_level_stop, and eol_pos.
10575 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
10576 (IT_STACK_SIZE): Enlarge to 5.
10577 (struct glyph_row): New member reversed_p.
10578 <string_buffer_position>: Update prototype.
10579 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
10580 glyph_row if bidi_it.paragraph_dir == R2L.
10581 (struct glyph): New members resolved_level and bidi_type.
10582
10583 * dispnew.c (direct_output_forward_char): Give up if we need bidi
10584 processing or buffer's direction is right-to-left.
10585 (prepare_desired_row): Preserve the reversed_p flag.
10586 (row_equal_p): Compare the reversed_p attributes as well.
10587
bba3e508
SM
10588 * xdisp.c (init_iterator): Initialize it->bidi_p.
10589 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
10590 buffer's value of bidi_paragraph_direction.
10591 (reseat_1): Initialize bidi_it.first_elt.
10592 (set_iterator_to_next, next_element_from_buffer): Use the value of
10593 paragraph_embedding to determine the paragraph direction.
10594 (set_iterator_to_next): Under bidi reordering, call
10595 bidi_get_next_char_visually. Call bidi_paragraph_init if the
10596 new_paragraph flag is set in the bidi iterator.
10597 (next_element_from_buffer): If bidi_it.first_elt is set,
10598 initialize paragraph direction and find the first character to
10599 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
10600 prime the bidi iterator starting at the line's beginning.
10601 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
10602 non-linearity of the bidi iteration. Likewise for when we back up
10603 beyond the previous stop_charpos. When moving across stop_charpos,
10604 record it in prev_stop.
10605 (display_line): Set row->end and it->start for the next row to the
10606 next character in logical order. Always extend reversed_p rows to
10607 the end of line, even if they end at ZV. Copy the reversed_p flag
10608 to the next glyph row. Keep calling set_cursor_from_row for
10609 bidi-reordered rows even if we already have a possible candidate
10610 for cursor position. Set row_end after all the row's glyphs have
10611 been produced, by looping over the glyphs. Record the position
10612 after EOL in it->eol_pos, and use it to set end_pos of the last
10613 row produced for a continued line.
10614 <Qright_to_left, Qleft_to_right>: New variables.
10615 (syms_of_xdisp): Initialize and staticpro them.
10616 (string_buffer_position_lim): New function.
10617 (string_buffer_position): Most of code moved to
10618 string_buffer_position_lim. Last argument and return value are
10619 now EMACS_INT; all callers changed.
10620 (set_cursor_from_row): Rewritten to support bidirectional text and
10621 reversed glyph rows.
bba3e508
SM
10622 (text_outside_line_unchanged_p, try_window_id):
10623 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
10624 paragraph direction can be affected by the change.
10625 (append_glyph, append_composite_glyph)
10626 (produce_image_glyph, append_stretch_glyph): Set the
10627 resolved_level and bidi_type members of each glyph.
10628 (append_glyph): If the glyph row is reversed, prepend the glyph
10629 rather than appending it.
10630 (handle_stop_backwards): New function.
10631 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2f8f196d 10632 (reseat): Call handle_stop_backwards to recompute prev_stop and
a7b02820
EZ
10633 base_level_stop for the new position.
10634 (handle_invisible_prop): Under bidi iteration, skip invisible text
10635 using bidi_get_next_char_visually. If we are `reseat'ed, init the
10636 paragraph direction. Update IT->prev_stop after skipping
10637 invisible text.
10638 (move_it_in_display_line_to): New variables prev_method
10639 and prev_pos. Compare for strict equality in
10640 BUFFER_POS_REACHED_P.
10641 (try_cursor_movement): Examine all the candidate rows that occlude
10642 point, to return the best match. If rows are bidi-reordered
10643 and point moved backwards, back up to the row that is not a
10644 continuation line, and start looking for a suitable row from
10645 there.
10646
10647 * term.c (append_glyph): Reverse glyphs by pre-pending them,
10648 rather than appending, if the glyph_row's reversed_p flag is set.
10649 Set the resolved_level and bidi_type members of each glyph.
10650
10651 * .gdbinit (pbiditype): New command.
10652 (pgx): Use it to display bidi level and type of the glyph.
10653 (pitx): Display some bidi information about the iterator.
10654 (prowlims, pmtxrows): New commands.
10655
32a8894e
DN
106562010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10657
10658 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10659 * s/usg5-4.h (LIBS_DEBUG):
10660 * s/irix6-5.h (C_DEBUG_SWITCH):
10661 * s/gnu-linux.h (LIBS_DEBUG):
10662 * s/darwin.h (LIBS_DEBUG):
10663 * s/bsd-common.h (LIBS_DEBUG):
10664 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10665 * m/iris4d.h (LIBS_DEBUG):
10666 * m/hp800.h (LIBS_DEBUG): Remove definitions.
10667
10668 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10669 (LIBS_DEBUG): Remove definition.
10670
649dbf36
CY
106712010-03-27 Chong Yidong <cyd@stupidchicken.com>
10672
10673 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10674 Windows.
10675
cad4261f
YM
106762010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10677
10678 * process.c (Fmake_network_process): Don't call turn_on_atimers around
10679 `connect' (Bug#5723).
10680
cd591dbc
HE
106812010-03-25 Helmut Eller <eller.helmut@gmail.com>
10682
10683 * process.c (Fmake_network_process): Call `select' for interrupted
10684 `connect' rather than creating new socket (Bug#5173).
10685
e867cb5d 106862010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
10687
10688 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10689
10690 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10691
10692 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10693
e867cb5d 106942010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
10695
10696 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10697 XLoadQueryFont.
10698
e867cb5d 106992010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
10700
10701 * coding.c (decode_coding_ccl): Fix previous change for the
10702 multibyte case.
fb608df3
KH
10703 (encode_coding_ccl): Don't setup ccl program here. Fix for the
10704 case that the output buffer is fullfilled.
10705 (encode_coding): Setup ccl program here.
fbdc1721 10706
5845f0ed
DN
107072010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
10708
814fb708
DN
10709 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10710
5845f0ed
DN
10711 Simplify LIBS_MACHINE definitions.
10712 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10713 * m/iris4d.h (LIBS_MACHINE): Likewise.
10714 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10715 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 10716 * s/netbsd.h: Remove commented out code.
5845f0ed 10717
b7064064
DN
107182010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
10719
df7734b2
DN
10720 Remove dead code dealing with POSIX_SIGNALS.
10721 * atimer.c (set_alarm): Remove dead code, all USG systems define
10722 POSIX_SIGNALS.
10723 * data.c (arith_error): Likewise.
10724 * keyboard.c (input_available_signal, handle_user_signal)
10725 (interrupt_signal): Likewise.
10726 * process.c (sigchld_handler): Likewise.
10727 (create_process): Remove if 0 code. Remove HPUX conditional when
10728 !defined (POSIX_SIGNALS), it cannot be true.
10729 * syssignal.h: Remove USG5_4 and USG conditionals when
10730 !POSIX_SIGNALS, they cannot be true.
10731
b7064064
DN
10732 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10733 NO_SOCK_SIGIO, not used anymore.
10734
55da5ee3
DN
107352010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
10736
0be96e3a
DN
10737 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
10738 support vax on BSDs.
10739
55da5ee3
DN
10740 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
10741 * s/aix4-2.h (ORDINARY_LINK): ... here.
10742
c0282183
AS
107432010-03-21 Andreas Schwab <schwab@linux-m68k.org>
10744
82c3d67a
AS
10745 * Makefile.in (abs_builddir): Define.
10746 (bootstrap_exe): Use it.
10747 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 10748
3613edce
SM
107492010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10750
10751 * Makefile.in (bootstrap_exe): Use an absolute name.
10752
7f110ddc
DN
107532010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10754
22e87574
DN
10755 Remove support for old GNU/Linux using libc version 5.
10756 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10757 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10758
05a670e6
DN
10759 Consolidate redundant definitions in s/bsd-common.h.
10760 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10761 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10762 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10763 doing it in all files that include this one.
10764 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10765 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10766 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10767 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10768 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10769 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10770 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10771 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10772 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10773
2968f561
DN
10774 Consolidate redundant definitions.
10775 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10776 it's undefined in all files that include this one.
10777 (POSIX_SIGNALS): Define here instead of doing it in all files that
10778 include this one.
10779 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10780 (POSIX_SIGNALS): Do not define.
10781 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10782 (POSIX_SIGNALS): Do not define.
10783 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10784 (POSIX_SIGNALS): Do not define.
10785
15d25dc0 10786 Remove support for old UNIX System V systems.
fe7be221
GM
10787 * s/unixware.h: Add the contents of s/usg5-4-2.h.
10788 * s/usg5-4-2.h: Remove.
15d25dc0 10789
07e339e4
DN
10790 Remove support for Solaris on PPC and for old versions.
10791 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
10792 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
10793 that cancel each other.
10794 * s/sol2-3.h:
10795 * s/sol2-4.h:
10796 * s/sol2-5.h: Remove.
10797 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
10798 (NO_REMAP): Remove, unused.
10799 (UNEXEC): Move definition ...
10800 * s/aix4-2.h (UNEXEC): ... here.
10801
7f110ddc
DN
10802 * s/openbsd.h: Remove support for non-ELF and for systems that do
10803 not support shared libraries.
10804 * s/netbsd.h:
10805 * s/freebsd.h: Likewise.
10806
605f35cd
DN
108072010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10808
10809 Remove non-working support for lynxos 3.0.
10810 * s/lynxos.h: Remove file.
10811
10812 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
10813 COFF_BSD_SYMBOLS, nothing defines it anymore.
10814
aed71cf4
DN
108152010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10816
10817 Remove obsolete uses of HAVE_SHM.
10818 * emacs.c (standard_args):
10819 (Fdump_emacs):
10820 (syms_of_emacs): Remove code depending on HAVE_SHM.
10821
10822 * alloc.c: Remove HAVE_SHM dependent definition.
10823
10824 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
10825
aded53ff
GM
108262010-03-18 Glenn Morris <rgm@gnu.org>
10827
17284745
GM
10828 * emacs.c (USAGE4): Hard-code bug address.
10829 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
10830 (bug_reporting_address): Remove.
10831 (main): Don't call bug_reporting_address.
10832
aded53ff
GM
10833 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
10834 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
10835
303500aa
CY
108362010-03-15 Chong Yidong <cyd@stupidchicken.com>
10837
10838 * xfns.c (Fx_create_frame):
10839 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
10840 on left.
10841
cef3058f
CY
108422010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
10843
10844 * editfns.c (Fformat): Account for string precision when computing
10845 field width (Bug#5710).
10846
a647d59d
CY
108472010-03-12 Chong Yidong <cyd@stupidchicken.com>
10848
4fa42018
CY
10849 * xfns.c (Fx_create_frame): Set default to Qright.
10850
a647d59d
CY
10851 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
10852 all window systems.
10853
6da23aaa
EZ
108542010-03-12 Eli Zaretskii <eliz@gnu.org>
10855
a96f6398 10856 These changes remove termcap.c from the build on Posix platforms.
83d02def 10857 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
10858 (MSDOS_OBJ): ...to here.
10859 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
10860 now identical to when LIBS_TERMCAP is defined.
10861
10862 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
10863
10864 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
10865
a96f6398 10866 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 10867
288f9fc0
CY
108682010-03-10 Chong Yidong <cyd@stupidchicken.com>
10869
10870 * Branch for 23.2.
10871
d48cd3f4
SM
108722010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10873
10874 Cleanup setup of gl_state in various parts of the code.
10875 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
10876 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
10877 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
10878 (skip_chars):
10879 * regex.c (regex_compile): Use it.
10880 (re_compile_pattern): Don't set gl_state.current_syntax_table since
10881 it's now set in regex_compile when/if we need it.
10882
618db430
SM
108832010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
10884
c0335e02
SM
10885 Make it possible to C-g in a tight bytecode loop again (bug#5680).
10886 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
10887 (QUIT): Use it to consolidate code and remove redundancy.
10888 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
10889
254c06a8
SM
10890 * regex.c (regex_compile): Setup gl_state as well.
10891
618db430
SM
10892 * syntax.c (skip_chars): Setup gl_state (bug#3823).
10893 (in_classes): Use CONSP before XCAR/XCDR.
10894
233f0c9f
CY
108952010-03-03 Chong Yidong <cyd@stupidchicken.com>
10896
10897 * keymap.c (Fwhere_is_internal): Use Fequal to compare
10898 definitions, so that keyboard macros are correctly handled
10899 (Bug#5481).
10900
75f80e63
EZ
109012010-03-02 Eli Zaretskii <eliz@gnu.org>
10902
10903 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
10904 text that could be relocated inside the call to emacs_mule_char.
10905 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
10906 (CODING_DECODE_CHAR): Add a comment describing its purpose.
10907
dcfb9bc4
KH
109082010-03-02 Kenichi Handa <handa@m17n.org>
10909
fc9a17bc
KH
10910 * character.c (parse_str_as_multibyte): Fix handling of the
10911 multibyte form of raw-bytes.
10912 (str_as_multibyte): Likewise.
10913
dcfb9bc4
KH
10914 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
10915 form of raw-bytes.
10916
412c01b6
CY
109172010-02-28 Chong Yidong <cyd@stupidchicken.com>
10918
10919 * charset.c (load_charset_map_from_file)
10920 (load_charset_map_from_vector): Zero out allocated
10921 charset_map_entries before using them.
10922
df7e1ea0
AS
109232010-02-27 Andreas Schwab <schwab@linux-m68k.org>
10924
10925 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
10926
fe69a722
CY
109272010-02-27 Chong Yidong <cyd@stupidchicken.com>
10928
4ed28cf4
CY
10929 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
10930 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 10931
7379cfce
KH
109322010-02-26 Kenichi Handa <handa@m17n.org>
10933
f88cc4d6
KH
10934 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
10935
7379cfce
KH
10936 * xdisp.c (reseat_to_string): Fix previous change.
10937
cf2fdcfb
CY
109382010-02-26 David Reitter <david.reitter@gmail.com>
10939
10940 * nsfont.m (nsfont_draw): ns_antialias_text should be a
10941 Lisp_Object (Bug#4736).
10942
cc6c7c75
KH
109432010-02-25 Kenichi Handa <handa@m17n.org>
10944
10945 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
10946
32e737d7
JD
109472010-02-24 Jan Djärv <jan.h.d@swipnet.se>
10948
10949 * xterm.c (XTflash): Move declarations before statements.
10950
10951 * gtkutil.c (xg_get_gdk_display): Remove (unused).
10952 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
10953 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
10954 (xg_create_tool_bar): Remove unused variables.
10955 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 10956 (xg_create_frame_widgets): Remove variable grav.
32e737d7 10957
676cae9f
CY
109582010-02-21 Chong Yidong <cyd@stupidchicken.com>
10959
10960 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
10961
886cc2b8
SM
109622010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10963
10964 * term.c (fatal): Add a final \n if needed (bug#5596).
10965
ddb2d8e2
CY
109662010-02-18 Chong Yidong <cyd@stupidchicken.com>
10967
10968 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
10969
2a4f8d3d
GM
109702010-02-18 Glenn Morris <rgm@gnu.org>
10971
10972 * callint.c (Finteractive): Doc fix.
10973
ebaf11b6
KH
109742010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
10975
886cc2b8
SM
10976 * coding.c (record_conversion_result):
10977 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
10978 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
10979 memory allocation error.
10980
d0396581
KH
109812010-02-17 Kenichi Handa <handa@m17n.org>
10982
886cc2b8
SM
10983 * coding.c (decode_coding_ccl): Don't setup ccl program here.
10984 Fix for the case that the output buffer is fullfilled.
d0396581
KH
10985 (decode_coding): Setup ccl program here. Keep looping when the
10986 decoder stopped because the output buffer is
10987 fullfilled (bug#5534).
10988
10989 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
10990
98599f74
JD
109912010-02-13 Jan Djärv <jan.h.d@swipnet.se>
10992
471e4f04 10993 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 10994 bug #5571.
886cc2b8 10995 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 10996 overdrawn.
98599f74 10997
182659ae
JD
109982010-02-10 Jan Djärv <jan.h.d@swipnet.se>
10999
11000 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
11001 doing_interact here.
11002 (ice_connection_closed): New function.
11003 (x_session_check_input, smc_die_CB, ice_io_error_handler)
11004 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
11005 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
11006 returns I/O error.
11007 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
11008 bug #5512.
11009
9be32c4e 110102010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
11011
11012 * nsfont.m (nsfont_open): The system's value for the font descent
11013 is negative, so round it down to avoid clipping.
11014
a2f3eb19
CY
110152010-02-06 Chong Yidong <cyd@stupidchicken.com>
11016
11017 * charset.c (load_charset_map_from_file)
11018 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 11019 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 11020
3088147c
CY
110212010-02-05 Chong Yidong <cyd@stupidchicken.com>
11022
11023 * charset.c (load_charset_map_from_file): Allocate large
11024 charset_map_entries structure on the heap rather than the stack.
11025 (Bug#5526).
11026
b57d9029
KH
110272010-01-31 Kenichi Handa <handa@m17n.org>
11028
11029 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 11030 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 11031
c67d885b
CY
110322010-01-31 Chong Yidong <cyd@stupidchicken.com>
11033
11034 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
11035 <deactivated@gmail.com> (Bug#3605).
11036
8fab2362
CY
110372010-01-31 David De La Harpe Golden <david@harpegolden.net>
11038
11039 * fileio.c (Frename_file): Correctly rename symlinks to
11040 directories (Bug#5496).
11041
cb2a62f2
CY
110422010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
11043
11044 * nsterm.m (ns_ring_bell): Handle visible bell like X.
11045
944c7a26
AS
110462010-01-30 Andreas Schwab <schwab@linux-m68k.org>
11047
11048 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
11049
c024ac08
CY
110502010-01-29 Chong Yidong <cyd@stupidchicken.com>
11051
11052 * frame.c (DEFAULT_ROWS): Change default to 35.
11053
11054 * xfns.c (x_default_font_parameter): Change default XFT font to
11055 monospace-10 (Bug#3643).
11056
af93af83
EZ
110572010-01-29 Eli Zaretskii <eliz@gnu.org>
11058
11059 * w32inevt.c (key_event): Remove unnecessary comparison of
11060 event->uChar.AsciiChar with 128.
11061
ca0eb708
CY
110622010-01-28 Chong Yidong <cyd@stupidchicken.com>
11063
b242dbfc
CY
11064 * fileio.c (Frename_file): Fix last change (Bug#5487).
11065
ca0eb708
CY
11066 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
11067
11068 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
11069
45d45af5
JD
110702010-01-28 Jan Djärv <jan.h.d@swipnet.se>
11071
11072 * xfns.c (Fx_create_frame): Remove window size matching code from
11073 2010-01-15.
a73f9c9d 11074 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 11075
7e233730
JR
110762010-01-27 Jason Rumney <jasonr@gnu.org>
11077
11078 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 11079 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 11080
86e893e3
KH
110812010-01-27 Kenichi Handa <handa@m17n.org>
11082
11083 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 11084 pattern string (Bug#4209).
86e893e3 11085
8719abec
CY
110862010-01-27 David De La Harpe Golden <david@harpegolden.net>
11087
11088 * fileio.c (Frename_file): Call copy-directory and
11089 delete-directory for directories, in order to handle cross-device
11090 renaming (Bug#3353).
11091
844794c8
JD
110922010-01-25 Jan Djärv <jan.h.d@swipnet.se>
11093
aa3e13b5 11094 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 11095 sizes 24 and 10. Bug #3643.
844794c8 11096
bd4b5750
SM
110972010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
11098
8dc1adf6 11099 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
11100 * keymap.c (shadow_lookup): Add `remap' arg.
11101 (describe_map, describe_vector): Update calls to shadow_lookup.
11102 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
11103 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
11104 perform remapping during shadow_lookup check of remapped_sequences.
11105
285d07e2
CY
111062010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
11107
11108 * image.c (png_load): Use png_sig_cmp instead of the obsolete
11109 png_check_sig, which has been removed in libpng 1.4.
11110
c6d09b8d
CY
111112010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
11112
11113 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
11114 lacks this header file).
11115
3d782998
YM
111162010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11117
11118 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
11119 as in Emacs 22.
11120
2aff7c53
YM
111212010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11122
11123 * lisp.h (make_pure_string): String pointer arg now points to const.
11124
11125 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
11126 args now point to const.
11127
74327f7a
EZ
111282010-01-22 Eli Zaretskii <eliz@gnu.org>
11129
11130 * lread.c (Fload): Don't treat files without .elc extension as
11131 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
11132 them. (bug#5303)
11133
4d1e6632
KH
111342010-01-20 Kenichi Handa <handa@m17n.org>
11135
11136 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
11137 treat the source as actual byte sequence.
11138
1fdede8f
AM
111392010-01-19 Alan Mackenzie <acm@muc.de>
11140
11141 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 11142 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
11143 `signal_after_change_p' to `coherent_change_p', and make the
11144 invocation of `modify_region' conditional on it.
11145
67477f30
JD
111462010-01-19 Jan Djärv <jan.h.d@swipnet.se>
11147
11148 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
11149 for debug purpose.
11150 (syms_of_xsettings): Declare xft-settings.
11151
244b023e
CY
111522010-01-18 Chong Yidong <cyd@stupidchicken.com>
11153
11154 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
11155
617364fe
CY
111562010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
11157
11158 * xterm.c (event_handler_gdk): Block input (Bug#5037).
11159
4fe22cdf
CY
111602010-01-16 Chong Yidong <cyd@stupidchicken.com>
11161
11162 * emacs.c (standard_args): Adjust arg priorities to reflect how
11163 they are processed in startup.el.
11164
e118d2be
AS
111652010-01-16 Andreas Schwab <schwab@linux-m68k.org>
11166
11167 * Makefile.in (lisp, shortlisp): Update.
11168
523ae620
SM
111692010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
11170
11171 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
11172 code, link the new kboard into all_kboard before running Lisp code,
11173 and protect the new terminal with GCPRO (Bug#5365).
11174 (x_term_init): Remove unused var `atom'.
11175 (x_delete_display, x_delete_terminal): Remove unused var `i'.
11176
f0d13888
JD
111772010-01-15 Jan Djärv <jan.h.d@swipnet.se>
11178
11179 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
11180 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
11181 to find out usable size of the desktop. Don't make frames larger than
ac146f82 11182 this. Bug #3643.
f0d13888 11183
cc320f07
KH
111842010-01-15 Kenichi Handa <handa@m17n.org>
11185
11186 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
11187
7ffdf101
CY
111882010-01-15 Chong Yidong <cyd@stupidchicken.com>
11189
11190 * nsterm.m (Qnone): Define.
11191
11192 * nsfns.m (Qnone): Move definition to nsterm.m.
11193
d12bd917
KH
111942010-01-14 Kenichi Handa <handa@m17n.org>
11195
11196 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
11197 systems.
11198
d9a7c140
KH
111992010-01-14 Kenichi Handa <handa@m17n.org>
11200
11201 Make auto-composition work on all buffers even if they are
11202 fundamental mode.
11203
11204 * composite.c (Vauto_composition_mode): New variable.
11205 (composition_compute_stop_pos): Check Vauto_composition_mode
11206 instead of Vauto_composition_function.
11207 (composition_adjust_point, Ffind_composition_internal): Likewise.
11208 (syms_of_composite): Declare Lisp variable
11209 "auto-composition-mode" here.
11210
63286bb2
CY
112112010-01-13 Chong Yidong <cyd@stupidchicken.com>
11212
11213 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
11214 during call to vendor-specific-keysyms (Bug#5365).
11215
c2623ee7
YM
112162010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11217
11218 * keyboard.c (input_available_signal) [SYNC_INPUT]:
11219 Call SIGNAL_THREAD_CHECK (Bug#5333).
11220
11221 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
11222 Call SIGNAL_THREAD_CHECK.
11223
0b5397c2
SM
112242010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
11225
11226 Try to fix bug#5314. This is probably not the final word, tho.
11227 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
11228 recent-auto-save-p as a side-effect.
11229 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
11230 * buffer.c (Fkill_buffer, reset_buffer):
11231 * editfns.c (Fsubst_char_in_region):
11232 * fileio.c (Finsert_file_contents, Fdo_auto_save)
11233 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
11234
dc954cb2
KH
112352010-01-13 Kenichi Handa <handa@m17n.org>
11236
11237 Display buffer name, etc. in mode line by composing correctly.
11238
11239 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
11240 STRING is not nil.
0b5397c2 11241 (display_mode_element): Adjust for the change of
dc954cb2
KH
11242 decode_mode_spec and display_line.
11243 (decode_mode_spec): Change arg MULTIBYTE to STRING.
11244 (display_string): Handle the case that STRING is non-null and
11245 LISP_STRING is not nil.
11246
0b5397c2
SM
11247 * xterm.c (x_draw_composite_glyph_string_foreground):
11248 Pay attention to s->face->overstrike.
dc954cb2
KH
11249
11250 * composite.c (composition_reseat_it): Don't check PT if STRING is
11251 non nil.
11252
4a00eaca
YM
112532010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11254
11255 * keyboard.c (read_char): Don't apply previous change when current
11256 buffer is unchanged by command execution.
11257
60abb287
JD
112582010-01-12 Jan Djärv <jan.h.d@swipnet.se>
11259
11260 * keyboard.c (read_char): Return after executing from special map.
11261
893db5bc
GM
112622010-01-12 Glenn Morris <rgm@gnu.org>
11263
11264 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
11265 bug-gnu-emacs rather than emacs-pretest-bug.
11266
4d03ece0
CY
112672010-01-11 Chong Yidong <cyd@stupidchicken.com>
11268
11269 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
11270 initializing the Lisp variables that depend on them.
11271
1df47e38
YM
112722010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11273
11274 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
11275 Clear areas that will not be updated after change of menu bar lines.
11276 Clear the menu bar window's current matrix when the window gets empty.
11277
2f1c6384
CY
112782010-01-09 Chong Yidong <cyd@stupidchicken.com>
11279
e398c61c
CY
11280 * intervals.h, textprop.c (extend_property_ranges): Return value
11281 and args changed. Discard properties that begin at or after the
11282 new end (Bug#5306).
11283
11284 * editfns.c (Fformat): Caller changed.
11285
e5a29a10
CY
11286 * nsterm.m (ns_set_default_prefs): Delete function.
11287 (syms_of_nsterm): Initialize ns_command_modifier,
11288 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
11289 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
11290
2f1c6384
CY
11291 * xdisp.c (pos_visible_p): Check for invisible text at the correct
11292 position (Bug#4040).
11293
d427a9fa
EZ
112942010-01-09 Eli Zaretskii <eliz@gnu.org>
11295
11296 * editfns.c (Ffloat_time): Doc fix.
11297
21b9df2f
JD
112982010-01-09 Jan Djärv <jan.h.d@swipnet.se>
11299
11300 * xfns.c (Fx_create_frame): Don't create frame larger than display
11301 by default bug#3643.
11302
4b00d3b1
YM
113032010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11304
11305 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
11306 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
11307 windows above internal border.
11308
11309 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
11310 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
11311 windows above internal border.
11312
11313 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
11314 tool bar windows specially.
11315
11316 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
11317
11318 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
11319 specially.
11320 (XTflash): Take account of menu bar height.
11321
11322 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
11323 specially.
11324
5075d853
JD
113252010-01-08 Jan Djärv <jan.h.d@swipnet.se>
11326
ac146f82 11327 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
11328 also be true before we can return early (bug #5339).
11329
474217c8
CY
113302010-01-06 David Reitter <david.reitter@gmail.com>
11331
11332 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
11333 (Fns_display_usable_bounds): Rewrite, computing bounds properly
11334 (Bug#3233).
11335
c0e6d47d
JD
113362010-01-06 Jan Djärv <jan.h.d@swipnet.se>
11337
d0cf45b7
JD
11338 * font.c (font_open_entity): Enable chache and call cached_font_ok
11339 for the driver if defined.
11340 (QCuser_spec): New symbol.
11341 (font_spec_from_name): Save name as user-spec.
11342 (font_load_for_lface): Keep user-spec instead of name.
11343 (font_open_by_name): Save name as user-spec.
11344 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 11345 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
11346
11347 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
11348 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
11349 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
11350
11351 * font.h (struct font_driver): Add cached_font_ok.
11352
c0e6d47d
JD
11353 * xterm.c (x_clear_frame): Queue draw for scroll bars.
11354
7c583cd8
JD
113552010-01-05 Jan Djärv <jan.h.d@swipnet.se>
11356
11357 * xterm.c (x_new_font): Move code for setting rows/cols before
11358 resizing ...
ac146f82 11359 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
11360
11361 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
11362 (xg_frame_resized, xg_frame_set_char_size):
11363 Call xg_clear_under_internal_border.
7c583cd8 11364 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 11365
03f77f0a
CY
113662010-01-05 Chong Yidong <cyd@stupidchicken.com>
11367
11368 * keyboard.c (read_key_sequence): Catch keyboard switch after
11369 making a new tty frame (Bug#5095).
11370
2a1ef5be
KH
113712010-01-05 Kenichi Handa <handa@m17n.org>
11372
11373 * fontset.c (fontset_find_font): Fix getting the frame pointer.
11374
e3eb1dae
SM
113752010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
11376
11377 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
11378 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
11379 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
11380
777013f2
MA
113812010-01-03 Michael Albinus <michael.albinus@gmx.de>
11382
11383 * dbusbind.c (xd_add_watch): Improve debug message.
11384 (xd_remove_watch): Improve debug message. If DATA is the session
11385 bus, unset D-Bus session environment.
11386 (Fdbus_init_bus): Pass the bus as argument to
11387 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 11388
8932b1c2
CY
113892010-01-01 Chong Yidong <cyd@stupidchicken.com>
11390
87231e2c
CY
11391 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
11392
4801c5fa
CY
11393 * lread.c (syms_of_lread): Make it clearer that these are the
11394 names of loaded files (Bug#5068).
11395
8932b1c2
CY
11396 * eval.c (run_hook_with_args): Handle the case where the global
11397 value has the obsolete single-function form (Bug#5026).
11398
11e3c684
CY
113992009-12-27 Chong Yidong <cyd@stupidchicken.com>
11400
11401 * minibuf.c (Fall_completions): Minor optimization.
11402
5b28ce35
EZ
114032009-12-26 Eli Zaretskii <eliz@gnu.org>
11404
5ce6e4f4
JB
11405 * .gdbinit (pgx): Fix display of composite glyphs.
11406 Display cmp.from and cmp.to as well.
11407 (pitx): Fix last change.
5b28ce35 11408
bcffff46
KH
114092009-12-25 Kenichi Handa <handa@m17n.org>
11410
11411 * composite.h (composition_adjust_point): Update prototype.
11412
11413 * composite.c (composition_reseat_it): Don't make a composition
11414 spanning over point.
11415 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
11416 composable characters.
11417 (composition_adjust_point): New arg NEW_PT. Callers changed.
11418
11419 * keyboard.c (command_loop_1): Force redisplay if the last point
11420 was within a composition.
11421 (adjust_point_for_property): Don't adjust point for automatic
11422 composition when called after buffer modification.
11423
3f670e9a
EZ
114242009-12-19 Eli Zaretskii <eliz@gnu.org>
11425
5ce6e4f4
JB
11426 * .gdbinit (pitx): Don't use enum names, use their values.
11427 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
11428 (pgx): Don't use enum names, use their values.
11429 (pitmethod): New helper command.
11430 (pitx): Use it to display iteration method.
11431 (pgrowit): New command.
11432
ad903955
EZ
11433 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
11434
3f670e9a
EZ
11435 Update dependencies in Makefile.in.
11436
11437 * Makefile.in (alloc.o): Depend on termhooks.h.
11438 (atimer.o): Depend on blockinput.h.
11439 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
11440 and frame.h.
11441 (callint.o): Depend on systime.h, coding.h, and composite.h.
11442 (callproc.o): Depend on buffer.h.
11443 (casefiddle.o): Don't depend on charset.h.
11444 (casetab.o): Depend on character.h.
11445 (ccl.o): Depend on composite.h.
11446 (chartab.o): Depend on ccl.h.
11447 (cm.o): Depend on dispextern.h.
11448 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
11449 (coding.o): Don't depend on $(INTERVALS_H).
11450 (composite.o): Don't depend on dispextern.h explicitly (it's in
11451 $(INTERVALS_H)). Depend on ccl.h.
11452 (data.o): Depend on systime.h, coding.h, composite.h,
11453 dispextern.h, font.h, and ccl.h.
11454 (dired.o): Depend on composite.h.
11455 (dispnew.o): Depend on coding.h. Don't depend explicitly on
11456 composite.h (it's in $(INTERVALS_H)).
11457 (doc.o): Depend on systime.h, coding.h, and composite.h.
11458 (editfns.o): Don't depend explicitly on dispextern.h.
11459 (emacs.o): Depend on frame.h and coding.h.
11460 (eval.o): Depend on coding.h, composite.h, and xterm.h.
11461 (fileio.o): Depend on frame.h and commands.h. Don't depend
11462 explicitly on dispextern.h.
11463 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
11464 composite.h.
11465 (fns.o): Don't depend on termhooks.h.
11466 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
11467 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
11468 coding.h, $(INTERVALS_H), window.h, xterm.h.
11469 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
11470 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
11471 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
11472 fontset.h, ccl.h, and ftfont.h.
11473 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11474 (gtkutil.o): Depend on dispextern.h and composite.h.
11475 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
11476 termhooks.h, and ccl.h.
11477 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
11478 (intervals.o): Depend on systime.h and coding.h.
11479 (keyboard.o): Depend on composite.h and coding.h.
11480 (keymap.o): Depend on coding.h and frame.h.
11481 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
11482 (macros.o): Depend on systime.h, coding.h, and composite.h.
11483 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
11484 and atimer.h.
11485 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
11486 dispextern.h explicitly.
0b5397c2
SM
11487 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
11488 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
11489 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
11490 (regex.o): Don't depend on charset.h.
11491 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
11492 (search.o): Don't depend explicitly on composite.h.
11493 (sound.o): Depend on atimer.h and systime.h.
11494 (syntax.o): Don't depend explicitly on composite.h.
11495 (sysdep.o): Depend on coding.h and composite.h.
11496 (term.o): Depend on xterm.h and buffer.h.
11497 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
11498 (textprop.o): Don't depend on dispextern.h explicitly.
11499 (undo.o): Depend on dispextern.h.
11500 (window.o): Depend on coding.h and termhooks.h. Don't depend on
11501 dispextern.h and composite.h explicitly.
11502 (xdisp.o): Depend on ccl.h.
11503 (xfaces.o): Depend on coding.h and ccl.h.
11504 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
11505 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11506 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
11507 ftfont.h.
11508 (xgselect.o): New dependency.
11509 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
11510 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
11511 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
11512 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
11513 (xsmfns.o): Depend on frame.h and dispextern.h.
11514 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
11515 sysselect.h.
11516
7a6f7fea
AS
115172009-12-19 Andreas Schwab <schwab@linux-m68k.org>
11518
11519 * font.c (Fclear_font_cache): Pass correct cache argument to
11520 font_clear_cache.
11521
f4c21026
AS
115222009-12-16 Andreas Schwab <schwab@linux-m68k.org>
11523
11524 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
11525 twice.
11526
f7ab0997
CY
115272009-12-15 Chong Yidong <cyd@stupidchicken.com>
11528
11529 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
11530 calling file-remote-p. Reported by Jim Meyering.
11531
fa8e045a
MA
115322009-12-15 Michael Albinus <michael.albinus@gmx.de>
11533
11534 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 11535 avoid compiler warnings. (Bug #5217)
fa8e045a 11536
a63dba42
KH
115372009-12-14 Kenichi Handa <handa@m17n.org>
11538
11539 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
11540 in 8-bit encoding.
11541
5ce6e4f4 115422009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
11543
11544 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
11545 tooltip windows.
11546
223e5fc6
JD
115472009-12-13 Jan Djärv <jan.h.d@swipnet.se>
11548
36acb2a7
JD
11549 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
11550 Xatom_net_window_type.
11551
11552 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
11553 Xatom_net_window_type.
11554
b8f00677
JD
11555 * xterm.c (my_log_handler): New function.
11556 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 11557 so we can filter out buggy messages. (Bug #5120).
b8f00677 11558
e5f0bc9a
JD
11559 * xterm.c (xg_scroll_callback): Parameter list changed,
11560 use parameter GtkScrollType to determine scroll/line/page.
11561 Only allow dragging if a button < 4 is grabbed (bug #5177).
11562 (xg_end_scroll_callback): New function.
11563 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
11564 xg_create_scroll_bar.
11565
11566 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
11567 (scroll_end_callback): Remove.
11568 (xg_create_scroll_bar): Add parameter end_callback, bind it to
11569 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 11570 bug #5177.
e5f0bc9a
JD
11571 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
11572 bug #5177.
11573
11574 * gtkutil.h (XG_LAST_SB_DATA): Remove.
11575 (xg_create_scroll_bar): Add GCallback end_callback.
11576
223e5fc6
JD
11577 * xftfont.c (QClcdfilter): New variable.
11578 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
11579 (syms_of_xftfont): Initialize QClcdfilter.
11580
3c055b77
JD
115812009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11582
11583 * xsettings.c (struct xsettings): Add member seen.
11584 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 11585 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
11586 (apply_xft_settings): Only update Xft settings with what member seen
11587 indicates as new.
11588
05fe33ff
EZ
115892009-12-12 Eli Zaretskii <eliz@gnu.org>
11590
c4cc8b9a 11591 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
11592 (struct glyph): Use EMACS_INT for charpos.
11593 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
11594 region_beg_charpos, region_end_charpos,
11595 redisplay_end_trigger_charpos, and also for
11596 iterator_stack_entry.end_charpos and
11597 iterator_stack_entry.stop_charpos.
11598
e8d7886a
JD
115992009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11600
5ce6e4f4 11601 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
11602 (xg_create_scroll_bar): Call scroll_end_callback on button release
11603 event (bug #5177).
11604 (xg_event_is_for_scrollbar): != replaced with ==.
11605
d0db2ec8
KH
116062009-12-12 Kenichi Handa <handa@m17n.org>
11607
11608 * ftfont.c (struct ftfont_info): New member matrix.
11609 (ftfont_open): Setup xftfont_info->matrix.
11610 (MFLTFontFT): New member matrix.
11611 (FLOOR, CEIL, ROUND): New macros.
11612 (ftfont_get_metrics): Handle matrix transformation.
11613 (ftfont_shape_by_flt): New arg matrix. Callers changed.
11614
11615 * xftfont.c (struct xftfont_info): New member matrix.
11616 (xftfont_open): Setup xftfont_info->matrix.
11617
116182009-12-10 Kenichi Handa <handa@m17n.org>
11619
11620 * xdisp.c (append_space_for_newline): Consider face-remapping.
11621
2cc7b62f
AS
116222009-12-09 Andreas Schwab <schwab@linux-m68k.org>
11623
b87dd913
AS
11624 * xsettings.c: Include "keyboard.h".
11625
eba5eb94
AS
11626 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
11627
2cc7b62f
AS
11628 Fix implicit function declarations.
11629 * cmds.c: Include "frame.h".
11630 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
11631 * frame.h: Move declaration of delete_frame outside of
11632 HAVE_WINDOW_SYSTEM.
11633
a4ef73c8
CY
116342009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
11635
11636 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11637
11638 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11639 GTK builds.
11640
944a300c
AS
116412009-12-07 Andreas Schwab <schwab@linux-m68k.org>
11642
11643 * unexelf.c (unexec): Don't search for .data twice.
11644
022eef62
CY
116452009-12-05 Chong Yidong <cyd@stupidchicken.com>
11646
426ac949
CY
11647 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
11648 if push failed.
11649 (handle_line_prefix): Set avoid_cursor_p here. Check return value
11650 of push_display_prop (Bug#5000).
11651
022eef62
CY
11652 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11653 value of font_list_entities (Bug#5085).
11654
be95bee9
JB
116552009-12-04 Juanma Barranquero <lekktu@gmail.com>
11656
11657 Fix `string-to-number' to deal consistently with integers and floats.
11658 * lread.c (isfloat_string): New argument ignore_trailing to accept all
11659 trailing characters, not just whitespace.
11660 (read1): Pass new arg 0 to keep old behavior.
11661 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11662 trailing chars, as it is already done for integers. Doc fixes.
11663 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11664
24c2d7ce
EZ
116652009-12-04 Eli Zaretskii <eliz@gnu.org>
11666
0b5397c2
SM
11667 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11668 Delete unused enumeration value.
24c2d7ce 11669
7e694795
EZ
116702009-12-03 Eli Zaretskii <eliz@gnu.org>
11671
11672 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11673
84b31826
SM
116742009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
11675
11676 * process.c (Fmake_network_process): Fix up the tests for
11677 "connectionless socket", so they DTRT for seqpacket sockets as well.
11678
f00c449b
SM
116792009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
11680
11681 * process.c (Qseqpacket): New symbol.
11682 (HAVE_SEQPACKET): New macro.
11683 (Fmake_network_process): Accept new :type `seqpacket'.
11684 (init_process): Add `seqpacket' feature when applicable.
11685 (syms_of_process): Initialize Qseqpacket.
11686
8096a0ff
YM
116872009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11688
11689 * font.c (font_load_for_lface, font_open_by_name): Don't store name
11690 if entity is Qnil.
11691
3e0de07f
SM
116922009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
11693
11694 * print.c (print_preprocess): Preprocess the key_and_value table of
11695 hashtables, even tho they're "hidden" (bug#5082).
11696
abeafb2a
JD
116972009-11-29 Jan Djärv <jan.h.d@swipnet.se>
11698
11699 * frame.c (frame_make_pointer_invisible)
11700 (frame_make_pointer_visible): Declare f before statements.
11701
4bf47195
EZ
117022009-11-28 Eli Zaretskii <eliz@gnu.org>
11703
11704 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11705 omitted dependencies on lisp.h.
11706
c525b3f2
JD
117072009-11-27 Jan Djärv <jan.h.d@swipnet.se>
11708
ece2d4ed
JD
11709 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11710 is NULL.
11711
11712 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11713
11714 * frame.c (frame_make_pointer_invisible)
3e0de07f 11715 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
11716 frame.
11717
c525b3f2
JD
11718 * search.c (simple_search): Remove warning by making *p const.
11719
2f00e299
DN
117202009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
11721
11722 * xdisp.c (power_letter): Remove duplicate const.
11723
084b049b
JD
117242009-11-25 Jan Djärv <jan.h.d@swipnet.se>
11725
a1fadc6f
JD
11726 * term.c (delete_tty): Remove check for last terminal (bug#4970).
11727
5ce6e4f4 11728 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
11729 defaults (bug #5025).
11730
28259cac
SM
117312009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
11732
11733 * insdel.c (adjust_markers_for_delete): Move it in the
11734 right direction! (bug#4803)
11735
e8e14166
YM
117362009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11737
11738 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
11739
11740 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
11741
86677b58
GM
117422009-11-24 Glenn Morris <rgm@gnu.org>
11743
11744 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
11745
581e51e8
JD
117462009-11-23 Jan Djärv <jan.h.d@swipnet.se>
11747
cfc86c7a
JD
11748 * Makefile.in: Must create deps for ecrt0.o in its rule.
11749
581e51e8
JD
11750 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
11751 because that is what Gtk+ font dialog understands.
11752
11753 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11754 of Fcopy_sequence.
11755 (font_open_by_name): Put name given into QCname for font-object returned.
11756
11757 * frame.c (x_set_font): Save original font name as frame parameter
11758 font-parameter.
11759
11760 * xsettings.c (set_default_xft_settings): New function.
11761 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11762 is found.
11763
8b264ecb
AS
117642009-11-22 Andreas Schwab <schwab@linux-m68k.org>
11765
11766 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11767 searching backwards through multibyte buffer.
11768
872870b2
JD
117692009-11-21 Jan Djärv <jan.h.d@swipnet.se>
11770
11771 * xterm.c: #include xgselect.h.
11772 (x_initialize): Call xgselect_initialize.
11773
11774 * xsettings.c (something_changedCB): C++ comments => C comments.
11775 (init_gconf): Do not deal with any GLib file descriptors, xg_select
11776 does that now.
11777
11778 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11779 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
11780 (scroll_bar_button_cb): Remove.
5ce6e4f4 11781 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
11782 event.
11783 (xg_create_scroll_bar): Don't bind button-press-event and
11784 button-release-event.
11785
11786 * process.c: Include xgselect.h if defined (USE_GTK) ||
11787 defined (HAVE_GCONF).
11788 (wait_reading_process_output): Call xg_select for the same condition.
11789
11790 * xgselect.c (xg_select): New function to better integrate with
11791 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
11792
11793 * xgselect.h: New file, declare xg_select, xgselect_initialize.
11794
11795 * Makefile.in (XOBJ): Add xgselect.o.
11796
62a6e103
AS
117972009-11-21 Andreas Schwab <schwab@linux-m68k.org>
11798
0b5397c2
SM
11799 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
11800 Remove ignored second argument. All callers changed.
62a6e103
AS
11801 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
11802 (RE_STRING_CHAR_AND_LENGTH): Likewise.
11803 * xdisp.c (string_char_and_length): Likewise.
11804
b0ca0f33
DN
118052009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
11806
11807 * xterm.c (x_new_font):
11808 * print.c (print_object):
11809 * cmds.c (Fself_insert_command): Move declarations before statements.
11810
dd5a6279
CY
118112009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
11812
11813 * s/cygwin.h: Remove unneeded linker flags.
11814
4a8e097d
JD
118152009-11-20 Jan Djärv <jan.h.d@swipnet.se>
11816
0d1d0d26
JD
11817 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
11818
11819 * xsettings.h: Declare xsettings_get_system_font.
11820
11821 * xsettings.c (xsettings_get_system_font): New function.
11822 (init_gconf): No use initiating gconf unless we have Xft also.
11823 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
11824 HAVE_GCONF.
11825
4a8e097d
JD
11826 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
11827 add a blank entry so it doesn't collapse into nothing.
11828
8ab1650e
SM
118292009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11830
11831 * lread.c (Funintern): Comment out last change.
11832
82c602f0
RS
118332009-11-19 Richard Stallman <rms@gnu.org>
11834
11835 * lread.c (Funintern): Error if symbol is t or nil.
11836
87e32266
SM
118372009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11838
11839 * insdel.c (make_gap_larger): Don't make as many assumptions about the
11840 representation of Lisp integers.
11841 Reported by MJ Chan <mjchan.inbox@gmail.com>.
11842
1b9ac145
AS
118432009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11844
11845 * lisp.h: Remove declaration of Ffont_get_system_font.
11846 * xfns.c: Move include of "xsettings.h".
11847 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
11848
dfb3c4c6
JD
118492009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11850
87e32266
SM
11851 * xsettings.c (something_changedCB, Ffont_get_system_font):
11852 Check use_system_font.
dfb3c4c6
JD
11853 (syms_of_xsettings): DEFVAR font-use-system-font.
11854
9370c1d8
AS
118552009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11856
25fe851a
AS
11857 * xfns.c (x_default_font_parameter): Remove dead assignment.
11858
9370c1d8
AS
11859 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
11860
637fa988
JD
118612009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11862
87e32266 11863 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 11864 not have FC_LCD_*. #define them if not there.
a6eb20d8 11865
87e32266 11866 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 11867
637fa988
JD
11868 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
11869
11870 * xterm.c (handle_one_xevent): Call xft_settings_event for
11871 ClientMessage, PropertyNotify and DestroyNotify.
11872 (x_term_init): If we have XFT, get DPI from Xft.dpi.
11873 Call xsettings_initialize.
11874
11875 * xftfont.c (xftfont_fix_match): New function.
11876 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
11877 Call xftfont_fix_match after XftFontMatch.
11878
11879 * xfont.c (xfont_driver): Initialize all members.
11880
87e32266
SM
11881 * xfns.c (x_default_font_parameter):
11882 Try font from Ffont_get_system_font.
637fa988
JD
11883 Do not get font from x_default_parameter if we got one from
11884 Ffont_get_system_font.
87e32266 11885 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
11886
11887 * w32font.c (w32font_driver): Initialize all members.
11888
11889 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
11890
11891 * lisp.h: Declare syms_of_xsettings.
11892
87e32266
SM
11893 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
11894 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
11895
11896 * ftfont.c (ftfont_filter_properties): New function.
11897
11898 * frame.c (x_set_font): Remove unused variable lval.
11899
87e32266 11900 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
11901
11902 * font.c (font_put_extra): Don't return if val is nil, it means
11903 boolean option is off.
11904 (font_parse_fcname): Collect all extra properties in extra_props
11905 and call filter_properties for all drivers with extra_props and
11906 font as parameter.
87e32266
SM
11907 (font_open_entity): Do not use cache, it does not pick up new
11908 fontconfig settings like hinting.
637fa988
JD
11909 (font_load_for_lface): If spec had a name in it, store it in entity.
11910
a73f9c9d 11911 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
11912
11913 * config.in: HAVE_GCONF is new.
11914
11915 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
11916 xsettings.o is new.
11917
5a942932
KH
119182009-11-17 Kenichi Handa <handa@m17n.org>
11919
11920 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
11921 back to the default font in case that no suitable font is found.
11922
b7c7a4d1
SM
119232009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
11924
11925 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
11926 Suggested by Chad Brown <yandros@mit.edu>.
11927 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
11928
072f1e39
JD
119292009-11-16 Jan Djärv <jan.h.d@swipnet.se>
11930
11931 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
11932
5d1e70a2
AS
119332009-11-14 Andreas Schwab <schwab@linux-m68k.org>
11934
87e32266 11935 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 11936
a53cfbe5
JD
119372009-11-14 Jan Djärv <jan.h.d@swipnet.se>
11938
473a99b7
JD
11939 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
11940 has a parent.
11941
a53cfbe5 11942 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 11943 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
11944
11945 * config.in: Generated (AUTO_DEPEND).
11946
f04bb9b2
MA
119472009-11-13 Michael Albinus <michael.albinus@gmx.de>
11948
b7c7a4d1 11949 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
11950 Vdbus_registered_functions_table, because it contains also
11951 properties. Fix docstring.
b7c7a4d1 11952 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 11953
8f11f7ec
SM
119542009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
11955
11956 * alloc.c (mark_object): Don't reprocess marked strings.
11957 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
11958 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
11959
8a605fe8
KH
119602009-11-13 Kenichi Handa <handa@m17n.org>
11961
8f11f7ec 11962 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
11963 semantics of Vword_combining_categories.
11964 (Vword_combining_categories): Describe the slight change of the
11965 semantics.
11966
241c4680
EZ
119672009-11-13 Eli Zaretskii <eliz@gnu.org>
11968
11969 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
11970
11971 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
11972
5d58e44c
SM
119732009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
11974
11975 * xdisp.c (syms_of_xdisp): Fix typo in last change.
11976
5e13f9d3
JB
119772009-11-12 Juanma Barranquero <lekktu@gmail.com>
11978
11979 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
11980
cf54c754
DR
119812009-11-11 David Reitter <david.reitter@gmail.com>
11982
11983 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
11984 variables to fix 2009-11-09 change.
11985
a4ada374
DN
119862009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
11987
91433552
DN
11988 * process.c (ifflag_def): Make flag_sym constant.
11989 (Fnetwork_interface_info): Use a constant pointer.
11990 (ifflag_table):
11991 * xfns.c (cursor_bits):
11992 * xdisp.c (power_letter):
11993 * termcap.c (speeds, esctab):
11994 * sysdep.c (baud_convert):
11995 * keyboard.c (lispy_accent_codes, modifier_names):
11996 * image.c (xbm_format, xpm_format, pbm_format, png_format)
11997 (jpeg_format, tiff_format, gif_format, svg_format)
11998 (interlace_start, interlace_increment, gs_format):
11999 * gtkutil.c (separator_names):
12000 * fringe.c (swap_nibble):
12001 * fns.c (base64_value_to_char, base64_char_to_value):
12002 * fileio.c (make_temp_name_tbl):
12003 * coding.c (suffixes): Make constant.
12004
f4265f6c
DN
12005 * frame.c (make_initial_frame):
12006 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
12007 build_string.
12008 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
12009
04420943
DN
12010 * s/freebsd.h:
12011 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
12012
0a5d24ae
DN
12013 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
12014 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
12015
a4ada374
DN
12016 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
12017 * xterm.c (syms_of_xterm):
12018 * xfaces.c (syms_of_xfaces):
12019 * xdisp.c (syms_of_xdisp):
12020 * lread.c (syms_of_lread):
12021 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
12022 build_string.
91433552 12023
a4ada374
DN
12024 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
12025
af98fc7f
SM
120262009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12027
8ab1650e 12028 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 12029
e90292a9
JD
120302009-11-10 Jan Djärv <jan.h.d@swipnet.se>
12031
12032 * keyboard.h: Declare timer_check.
12033
12034 * keyboard.c (timer_check_2): New function that does what the old
12035 timer_check did.
12036 (timer_check): Call timer_check_2 until -1 or a non-zero time is
12037 returned, i.e. don't return -1 with timers pending.
12038
12039 * process.c: Remove extern declaration of timer_check.
12040
12041 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
12042 even if timer_check returned -1.
12043
af98fc7f
SM
12044 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
12045 xg_dialog_data.
e90292a9
JD
12046 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
12047 the event loop.
12048 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
12049 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
12050 Destroy the dialog after xg_dialog_run.
12051
045b83c0
SM
120522009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12053
12054 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
12055
1fb99a3a
JD
120562009-11-10 Jan Djärv <jan.h.d@swipnet.se>
12057
12058 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
12059
04e452cb
JB
120602009-11-09 Juanma Barranquero <lekktu@gmail.com>
12061
12062 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
12063
ef7417fd
SM
120642009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
12065
12066 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
12067 w32menu.c, and nsmenu.m.
12068 Simplify the obsolete case where position is nil.
12069 (cleanup_popup_menu): New function, moved from nsmenu.m.
12070 (struct skp): Remove slot `notreal'.
12071 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
12072 adjust callers.
12073 (single_menu_item): Adjust call to parse_menu_item.
12074 (syms_of_menu): Defsubr x-popup-menu.
12075 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
12076 (keymap_panes): Don't export any more.
12077 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
12078 (xmenu_show): Declare.
12079 * keyboard.c (parse_menu_item): Remove arg `notreal'.
12080 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
12081 * keyboard.h (parse_menu_item): Update declaration.
12082 * xmenu.c (Fx_popup_menu): Remove.
12083 (syms_of_xmenu): Don't defsubr x-popup-menu.
12084 * w32menu.c (Fx_popup_menu): Remove.
12085 (syms_of_w32menu): Don't defsubr x-popup-menu.
12086 * nsmenu.m (cleanup_popup_menu): Remove.
12087 (ns_menu_show): Rename from ns_popup_menu and remove all the code
12088 moved to menu.c's Fx_popup_menu.
12089 (Fx_popup_menu): Remove.
12090 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
12091 menu_items (it's done in menu.c already).
12092
424d6179
SM
120932009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
12094
12095 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
12096 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
12097
c0df13a6 120982009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
12099
12100 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 12101 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
12102 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
12103 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
12104
2de9f71c
SM
121052009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
12106
12107 Let integers use up 2 tags to give them one extra bit and thus double
12108 their range.
12109 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
12110 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
12111 New macros.
12112 (enum Lisp_Type): Use them. Give explicit values.
12113 (Lisp_Type_Limit): Remove.
12114 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
12115 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
12116 Pay attention to USE_2_TAGS_FOR_INTS.
12117 (INTEGERP): Use LISP_INT_TAG_P.
12118 * fns.c (internal_equal): Simplify the default case.
12119 (sxhash): Use case_Lisp_Int.
12120 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
12121 any more.
12122 (Ftype_of): Use case_Lisp_Int.
12123 (store_symval_forwarding): Take into account the fact that Ints can
12124 now have more than one tag.
12125 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 12126 (buffer_slot_type_mismatch):
2de9f71c
SM
12127 * xfaces.c (face_attr_equal_p):
12128 * print.c (print_object):
12129 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
12130 Use case_Lisp_Int.
12131
323637a2
EZ
121322009-11-06 Eli Zaretskii <eliz@gnu.org>
12133
7ac65b38
EZ
12134 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
12135
323637a2
EZ
12136 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
12137 warning.
12138
e511451f
JD
121392009-11-06 Jan Djärv <jan.h.d@swipnet.se>
12140
12141 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
12142
12143 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
12144
12145 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
12146 ButtonPressRelease and MotionNotify (bug#4870).
12147
5e2327cf
DN
121482009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
12149
5adc433e
DN
12150 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
12151
d67b4f80
DN
12152 * xterm.c (syms_of_xterm):
12153 * xselect.c (syms_of_xselect):
12154 * xmenu.c (syms_of_xmenu):
12155 * xfns.c (syms_of_xfns):
12156 * xfaces.c (syms_of_xfaces):
12157 * xdisp.c (syms_of_xdisp):
12158 * window.c (syms_of_window):
12159 * w32fns.c (syms_of_w32fns):
12160 * undo.c (syms_of_undo):
12161 * textprop.c (syms_of_textprop):
12162 * terminal.c (syms_of_terminal):
12163 * syntax.c (syms_of_syntax):
12164 * sound.c (syms_of_sound):
12165 * search.c (syms_of_search):
12166 * print.c (syms_of_print):
12167 * minibuf.c (syms_of_minibuf):
12168 * macros.c (syms_of_macros):
12169 * keymap.c (syms_of_keymap, initial_define_key)
12170 (initial_define_lispy_key):
12171 * keyboard.c (syms_of_keyboard):
12172 * insdel.c (syms_of_insdel):
12173 * image.c (syms_of_image):
12174 * fringe.c (syms_of_fringe):
12175 * frame.c (syms_of_frame):
12176 * fontset.c (syms_of_fontset):
12177 * fns.c (syms_of_fns):
12178 * fns.c (syms_of_fns):
12179 * fileio.c (syms_of_fileio):
12180 * fileio.c (syms_of_fileio):
12181 * eval.c (syms_of_eval):
12182 * doc.c (syms_of_doc):
12183 * dispnew.c (syms_of_display):
12184 * dired.c (syms_of_dired):
12185 * dbusbind.c (syms_of_dbusbind):
12186 * data.c (syms_of_data):
12187 * composite.c (syms_of_composite):
12188 * coding.c (syms_of_coding):
12189 * cmds.c (syms_of_cmds):
12190 * charset.c (define_charset_internal, syms_of_character):
12191 * ccl.c (syms_of_ccl):
12192 * category.c (syms_of_category, init_category_once):
12193 * casetab.c (syms_of_casetab):
12194 * casefiddle.c (syms_of_casefiddle):
12195 * callint.c (syms_of_callint):
12196 * bytecode.c (syms_of_bytecode):
12197 * buffer.c (keys_of_buffer, syms_of_buffer):
12198 * alloc.c (syms_of_alloc):
12199 * process.c (syms_of_process, init_process):
12200 * lread.c (syms_of_lread, init_obarray):
12201 * font.c (build_style_table):
12202 * emacs.c (syms_of_emacs, main): Replace calls to intern with
12203 intern_c_string, calls to make_pure_string with
12204 make_pure_c_string. Use pure_cons instead of Fcons.
12205
5e2327cf
DN
12206 * process.c (socket_options): Make it const.
12207 (set_socket_option, init_process): Use a const pointer.
12208
12209 * lread.c (intern_c_string): New function.
12210 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12211 (defvar_int): Uset it. Make the name const char*.
12212
12213 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12214 (defvar_int): Update prototypes.
12215 (DEFUN, EXFUN): Support for prototypes is now required.
12216 (intern_c_string): New prototype.
12217 (struct Lisp_Subr): Make symbol_name constant.
12218
12219 * font.c (struct table_entry): Remove unused member. Make NAMES
12220 constant.
12221 (weight_table, slant_table, width_table): Make constant.
12222
12223 * emacs.c (struct standard_args): Make name and longname constant.
12224
12225 * character.h (DEFSYM): Use intern_c_string.
12226
a56eaaef
DN
122272009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
12228
12229 * alloc.c (make_pure_c_string): New function.
12230
12231 * eval.c (Fautoload): Purecopy all arguments.
12232
f6a07420
KH
122332009-11-05 Kenichi Handa <handa@m17n.org>
12234
12235 * fileio.c (Finsert_file_contents): Be sure set coding-system of
12236 the buffer in case of replace.
12237
5d28d4b1
DN
122382009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
12239
12240 * puresize.h (BASE_PURESIZE): Increase to 1620000.
12241
b349d111
SM
122422009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
12243
d528b1ce
SM
12244 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
12245 when applicable (bug#4851).
12246
b349d111
SM
12247 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
12248 (P_): Support for prototypes is now required.
12249
c38eb027
CY
122502009-10-31 Chong Yidong <cyd@stupidchicken.com>
12251
12252 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
12253 (Bug#4827).
12254
0405f8d9
EZ
122552009-10-30 Eli Zaretskii <eliz@gnu.org>
12256
d528b1ce 12257 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 12258
ca0a881a
DN
122592009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
12260
12261 * puresize.h (BASE_PURESIZE): Increase to 1470000.
12262
d528b1ce
SM
12263 * lread.c (Fload): Purecopy the file name when building
12264 Vpreloaded_file_list.
ca0a881a 12265
47e0e0e4
JR
122662009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
12267
12268 * w32fns.c (syms_of_w32fns): Change default value of
12269 w32-scroll-lock-modifier to nil. (Bug#2827)
12270
057bce6f
JB
122712009-10-26 Juanma Barranquero <lekktu@gmail.com>
12272
782a943e 12273 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 12274
242bc74c
AS
122752009-10-26 Andreas Schwab <schwab@redhat.com>
12276
12277 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
12278
522d013a
JB
122792009-10-26 Juanma Barranquero <lekktu@gmail.com>
12280
12281 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
12282 For delta < 0, skip check that only makes sense when the mini-window
12283 is going to be enlarged. (Bug#4534)
12284
18060980
CY
122852009-10-25 Chong Yidong <cyd@stupidchicken.com>
12286
12287 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
12288 string in menu maps (Bug#4471).
12289
fec8f0fe
CY
122902009-10-24 Chong Yidong <cyd@stupidchicken.com>
12291
12292 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
12293 FRAME_NS_VIEW on terminal frames (Bug#4765).
12294
10d66ec0
AS
122952009-10-24 Andreas Schwab <schwab@linux-m68k.org>
12296
1cae01f7
AS
12297 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
12298 DBUS_TYPE_UINTnn separately to get proper sign extension.
12299
58a12889
AS
12300 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
12301 can properly handle unsigned types.
d528b1ce 12302 (make_uid, make_gid): Remove.
58a12889 12303
987c9327
AS
12304 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
12305 types again.
12306
522d013a 12307 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
12308 (system_process_attributes): Likewise.
12309
905a9ed3
DN
123102009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
12311
12312 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
12313
12314 * eval.c (Fautoload): Purecopy the filename. Simplify.
12315
12316 * category.c (Fdefine_category): Purecopy docstring.
12317
a599b3e8
AS
123182009-10-23 Andreas Schwab <schwab@linux-m68k.org>
12319
7b792fc9
AS
12320 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
12321
a599b3e8
AS
12322 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
12323
b35ac83e
CY
123242009-10-23 Chong Yidong <cyd@stupidchicken.com>
12325
12326 * window.c (Fwindow_edges, Fwindow_pixel_edges)
12327 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
12328 (Bug#4775).
12329
e8903e00
SM
123302009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
12331
12332 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
12333 (init_fileio_once):
12334 * lisp.h (init_fileio_once): Remove.
12335 * emacs.c (main): Don't call init_fileio_once.
12336
8f43cbf3
DN
123372009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
12338
12339 * puresize.h (BASE_PURESIZE): Increase to 1430000.
12340
26898943
AS
123412009-10-21 Andreas Schwab <schwab@linux-m68k.org>
12342
12343 * doprnt.c (doprnt): Fix overflow check.
12344
5c646d5a
JD
123452009-10-21 Jan Djärv <jan.h.d@swipnet.se>
12346
3132a7ea
JD
12347 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
12348
5c646d5a
JD
12349 * xterm.h (x_wait_for_event): Declare it.
12350
12351 * xterm.c (pending_event_wait): New variable.
12352 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
12353 see pending_event_wait.eventtype.
12354 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
12355 (x_new_font): Call change_frame_size with new rows/columns before we
12356 try to resize the frame.
5c646d5a 12357 (x_wait_for_event): New function.
d528b1ce
SM
12358 (x_set_window_size_1): Don't change gravity unless change_gravity
12359 is set.
5c646d5a
JD
12360 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
12361 don't change frame size, instead wait for the ConfigureNotify.
12362 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
12363 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
12364 (x_initialize): Initialize pending_event_wait.
12365
12366 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
12367 size.
12368
12369 * widget.c (EmacsFrameSetValues): Add comment.
12370 (EmacsFrameSetCharSize): Just call x_set_window_size.
12371
12372 * gtkutil.c (xg_frame_set_char_size): Flush events and call
12373 x_wait_for_event.
d528b1ce 12374 (flush_and_sync): Remove again.
5c646d5a
JD
12375 (xg_get_font_name): Suggest monospace if no previous font is known.
12376
e9c1637d
SM
123772009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
12378
12379 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 12380 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 12381
5a72cccb
YM
123822009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12383
12384 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
12385 processing pending events when event is filtered for input method.
ab04798f 12386 (Bug#3681)
5a72cccb 12387
2629aa37
JB
123882009-10-20 Juanma Barranquero <lekktu@gmail.com>
12389
12390 * fns.c: Add #endif accidentally removed in previous change.
12391
c3417a74
DN
123922009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12393
12394 * fns.c: Remove code for unsupported system: MAC_OS.
12395 * image.c: Likewise. Include setjmp.h.
12396
9685cef2
JD
123972009-10-19 Jan Djärv <jan.h.d@swipnet.se>
12398
12399 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
12400 pixel -1 (bug #4742).
12401
d7306fe6
DN
124022009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12403
019d2c4c
DN
12404 * process.c (create_pty): Remove conditionals for no longer
12405 supported systems: UNIPLUS and RTU.
12406
ee6bacd4
DN
12407 * xterm.c:
12408 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
12409
d7306fe6
DN
12410 * alloc.c: Do not define struct catchtag.
12411 * eval.c: Move struct catchtag definition ...
12412 * lisp.h: ... here.
12413
12414 * image.c: Move png.h #include earlier to avoid warnings.
12415
12416 * xterm.c:
12417 * xsmfns.c:
12418 * xselect.c:
12419 * xrdb.c:
12420 * xmenu.c:
12421 * xftfont.c:
12422 * xfont.c:
12423 * xfns.c:
12424 * xfaces.c:
12425 * xdisp.c:
12426 * window.c:
12427 * widget.c:
12428 * w32xfns.c:
12429 * w32uniscribe.c:
12430 * w32term.c:
12431 * w32select.c:
12432 * w32reg.c:
12433 * w32proc.c:
12434 * w32menu.c:
12435 * w32inevt.c:
12436 * w32heap.c:
12437 * w32font.c:
12438 * w32fns.c:
12439 * w32console.c:
12440 * w32.c:
12441 * w16select.c:
12442 * vm-limit.c:
12443 * unexsol.c:
12444 * unexec.c:
12445 * unexcw.c:
12446 * unexaix.c:
12447 * undo.c:
12448 * tparam.c:
12449 * textprop.c:
12450 * terminfo.c:
12451 * terminal.c:
12452 * termcap.c:
12453 * term.c:
12454 * syntax.c:
12455 * sound.c:
12456 * sheap.c:
12457 * search.c:
12458 * scroll.c:
12459 * region-cache.c:
12460 * regex.c:
12461 * ralloc.c:
12462 * process.c:
12463 * print.c:
b024548b
DN
12464 * nsterm.m:
12465 * nsselect.m:
12466 * nsmenu.m:
12467 * nsimage.m:
12468 * nsfont.m:
12469 * nsfns.m:
d7306fe6
DN
12470 * msdos.c:
12471 * minibuf.c:
12472 * menu.c:
12473 * marker.c:
12474 * macros.c:
12475 * keymap.c:
12476 * keyboard.c:
12477 * intervals.c:
12478 * insdel.c:
12479 * indent.c:
12480 * gtkutil.c:
12481 * ftxfont.c:
12482 * ftfont.c:
12483 * fringe.c:
12484 * frame.c:
12485 * fontset.c:
12486 * font.c:
12487 * fns.c:
12488 * floatfns.c:
12489 * filelock.c:
12490 * fileio.c:
12491 * emacs.c:
12492 * editfns.c:
12493 * dosfns.c:
12494 * doprnt.c:
12495 * doc.c:
12496 * dispnew.c:
12497 * dired.c:
12498 * dbusbind.c:
12499 * data.c:
12500 * composite.c:
12501 * coding.c:
12502 * cmds.c:
12503 * cm.c:
12504 * chartab.c:
12505 * charset.c:
12506 * character.c:
12507 * ccl.c:
12508 * category.c:
12509 * casetab.c:
12510 * casefiddle.c:
12511 * callproc.c:
12512 * callint.c:
12513 * bytecode.c:
12514 * buffer.c:
12515 * atimer.c: Include setjmp.h. (Bug#4643)
12516
fd5f21e6
SM
125172009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12518
4c0354d7
SM
12519 Remove leftover table unibyte_to_multibyte_table.
12520 * character.c (unibyte_to_multibyte_table): Remove.
12521 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
12522 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
12523 * character.h (UNIBYTE_TO_CHAR): New macro.
12524 (MAKE_CHAR_MULTIBYTE): Use it.
12525 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
12526 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
12527 (message_dolog, set_message_1):
12528 * search.c (Freplace_match):
12529 * editfns.c (Fcompare_buffer_substrings):
12530 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
12531 (concat):
12532 * insdel.c (copy_text, count_size_as_multibyte):
12533 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
12534 * term.c (produce_glyphs):
12535 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
12536 * regex.c (RE_CHAR_TO_MULTIBYTE):
12537 * cmds.c (internal_self_insert):
12538 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
12539
fd5f21e6
SM
12540 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
12541
4418646e
DN
125422009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
12543
12544 * puresize.h (BASE_PURESIZE): Increase to 1310000.
12545
35f5c1d2
JB
125462009-10-16 Juanma Barranquero <lekktu@gmail.com>
12547
12548 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
12549
a0cd8f6b
AR
125502009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12551
12552 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
12553 still needed under Tiger.
12554
12555 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
12556
12557 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
12558 __Apple__.
12559
12560 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
12561
01a8d3fa
KH
125622009-10-15 Kenichi Handa <handa@m17n.org>
12563
12564 * print.c (print_object): Escape a symbol like "2E10" too.
12565
bf6c75c9 125662009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
12567
12568 Cleanups and changes for 64-bit compile under Snow Leopard.
12569 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
12570
12571 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
12572
c5959062 12573 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
12574 (ns_findfonts, nsfont_list_family): Use long format in printf, and
12575 cast argument.
12576 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 12577 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
12578
12579 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
12580
12581 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
12582 where appropriate.
12583
12584 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
12585 where appropriate.
6e4780c5
JB
12586 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
12587 Use stringWithUTF8String.
bf6c75c9
AR
12588 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
12589
6e4780c5
JB
12590 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
12591 Add formal protocol mention to inheritance.
bf6c75c9
AR
12592 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
12593
6e4780c5
JB
12594 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
12595 Fix printf format.
bf6c75c9
AR
12596 (ns_query_color): Use CGFloat where appropriate.
12597 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 12598 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
12599 argument.
12600
3d87f118
AR
12601 * config.in (NS_HAVE_NSINTEGER): Drop.
12602
a95c8102
AR
12603 * dbusbind.c (dbus-method-return-internal)
12604 (dbus-method-error-internal): Use long format in printf, and cast
12605 argument.
12606
12607 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
12608 in printf, and cast argument.
12609
6873acca 12610 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
12611 cast argument.
12612
9ec6f100
GM
126132009-10-11 Glenn Morris <rgm@gnu.org>
12614
12615 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
12616
5be883cd
JD
126172009-10-08 Jan Djärv <jan.h.d@swipnet.se>
12618
12619 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
12620 menu bar with a small width so it doesn't enlarge the frame.
12621
d7a39b51
JB
126222009-10-08 Juanma Barranquero <lekktu@gmail.com>
12623
12624 * fontset.c (Fset_fontset_font): Fix typos in error messages.
12625
0c2b6f8e
GM
126262009-10-06 Glenn Morris <rgm@gnu.org>
12627
12628 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
12629 SOME_MACHINE_LISP (this enters indirectly via DOC).
12630
e02131a2
EZ
126312009-10-05 Eli Zaretskii <eliz@gnu.org>
12632
12633 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
12634
b4744254
EZ
126352009-10-04 Eli Zaretskii <eliz@gnu.org>
12636
12637 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12638 Doc fix.
12639
dbf64827
JB
126402009-10-03 Martin Rudalics <rudalics@gmx.at>
12641
12642 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
12643
e9a0aef8
MA
126442009-10-02 Michael Albinus <michael.albinus@gmx.de>
12645
d528b1ce 12646 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
12647 used anymore outside fileio.c.
12648
12649 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12650
64eb2b56
JB
126512009-10-01 Juanma Barranquero <lekktu@gmail.com>
12652
12653 * lisp.h (Qdelete_directory_internal):
12654 Declare, instead of Qdelete_directory.
12655
12656 * w32fns.c (Fsystem_move_file_to_trash): Use it.
12657
9d28c33e
SM
126582009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
12659
12660 * eval.c (Fcalled_interactively_p): Add `kind' argument.
12661
9d8f3bd9
MA
126622009-10-01 Michael Albinus <michael.albinus@gmx.de>
12663
9d28c33e 12664 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
12665 Fdelete_directory. It is not a command anymore. It has no file
12666 name handler.
12667
9694740b
SM
126682009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12669
12670 * xdisp.c (get_next_display_element): Use an enum in last change.
12671
748e162f
KH
126722009-09-28 Kenichi Handa <handa@m17n.org>
12673
9694740b 12674 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
12675 unibyte_display_via_language_environment in handling
12676 Vnobreak_char_display.
12677
17efd58d
AR
126782009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12679
12680 * nsterm.h (ns_app_name): New extern variable.
12681
12682 * nsterm.m (ns_app_name): New variable.
12683 (ns_term_init): Set and use it.
12684 (ns_term_shutdown): Use it.
12685
12686 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
12687 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12688
12689 * nsfns.m (ns_set_name_iconic, ns_set_name)
12690 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12691 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12692
9694740b
SM
12693 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12694 Remove double-casting in client_data comparison.
31c2d412 12695
3208cb35
YM
126962009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12697
12698 * keyboard.c (make_lispy_event): Remember last wheel direction.
12699 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12700
b7d552d6
GM
127012009-09-26 Glenn Morris <rgm@gnu.org>
12702
12703 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12704 internal.elc. Add term/pc-win.elc.
12705 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12706 term/x-win.elc.
12707 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12708 term/w32-win.elc.
12709 (NS_SUPPORT): New.
12710 (lisp): Add NS_SUPPORT.
12711 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12712
4ff670a8
DR
127132009-09-25 David Reitter <david.reitter@gmail.com>
12714
12715 * nsmenu.m (EmacsMenu-clear): Recognize application menu
12716 on Mac OS X 10.6+ (bug#4513).
12717
feabfb6c
JB
127182009-09-24 Juanma Barranquero <lekktu@gmail.com>
12719
12720 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
12721 some parts of Emacs code (like font selection) don't grok them.
12722 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 12723
de59072a
AS
127242009-09-24 Andreas Schwab <schwab@redhat.com>
12725
12726 * coding.c (decode_coding_iso_2022): Fix operator precedence.
12727
a489517b
JB
127282009-09-24 Juanma Barranquero <lekktu@gmail.com>
12729
12730 * dired.c (Fdirectory_files): Fix typo in docstring.
12731
0592970c
AR
127322009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12733
12734 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
12735 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
12736 (EmacsScroller-setPosition:portion:whole:): Remove -display call
12737 under GNUstep.
12738 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
12739
12740 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
12741 glyph advancement.
12742
48e8a88b
AR
127432009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12744
12745 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 12746 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
12747
12748 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
12749 deleted (bug #4492).
12750
e14f0a78
AR
12751 * nsfont.m (Vns_reg_to_script): New lisp variable.
12752 (syms_of_nsfont): Declare it.
12753 (ns_registry_to_script): New function.
12754 (ns_get_req_script): Call it.
12755 (ns_findfonts): Don't give up on non-unicode registry.
12756
12757 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12758
5b650faa
SM
127592009-09-20 Tom Tromey <tromey@redhat.com>
12760
12761 * eval.c (find_handler_clause): Make stack-trace-on-error work in
12762 batch mode (bug#4228).
12763
a489517b 127642009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
12765
12766 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 12767 carefully. (Bug #4339)
0bae4e09 12768
fcfe06f3
CY
127692009-09-18 Chong Yidong <cyd@stupidchicken.com>
12770
d798ba87 12771 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 12772
31642728
AR
127732009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12774
12775 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
12776 (main) [HAVE_NS]: Don't process --no-init-file option.
12777 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
12778
12779 * nsterm.h (ns_no_defaults): Remove.
12780
12781 * nsterm.m (ns_no_defaults): Remove.
12782 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
12783 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
12784 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
12785 don't update the NSWindow itself.
bba3e508
SM
12786 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
12787 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
12788
12789 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
12790 ns_use_qd_smoothing.
12791
12792 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
12793 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 12794 (x-close-connection): Drop PSFlush() under OS X.
a489517b 12795 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 12796
8686ac71
JB
127972009-09-17 Juanma Barranquero <lekktu@gmail.com>
12798
12799 * emacs.c (inhibit_x_resources): New variable.
12800 (main) [HAVE_NS]: Don't process --quick command line option.
12801 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
12802
12803 * lisp.h (inhibit_x_resources): Declare it extern.
12804
12805 * w32reg.c (x_get_string_resource):
12806 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
12807
e227ba05
EZ
128082009-09-17 Eli Zaretskii <eliz@gnu.org>
12809
362654a6
JB
12810 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
12811 Add lisp/term/internal.elc.
e227ba05 12812
742d40e8
SM
128132009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12814
12815 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
12816 (bug#4461).
12817
005bd5a2
DN
128182009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
12819
12820 * puresize.h (BASE_PURESIZE): Increase to 1290000.
12821
12822 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
12823 (OBJECTS_MACHINE): Remove, unused.
12824
f9af9719
SM
128252009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
12826
12827 * frame.c (x_get_resource_string): Remove unused.
12828
0307c7d2
JD
128292009-09-15 Jan Djärv <jan.h.d@swipnet.se>
12830
12831 * xterm.c (x_new_font): Call change_frame_size before calling
12832 x_set_window_size, in case frame size won't change.
12833
12834 * frame.c (x_set_font): Remove dead code.
12835
428b13d6
SM
128362009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
12837
12838 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
12839
5766c380
SM
128402009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12841
12842 * lread.c (Fload): Don't output a message after loading an obsolete
12843 package any more (done in Lisp now).
12844
2fd0161b
CY
128452009-09-12 Chong Yidong <cyd@stupidchicken.com>
12846
12847 * fns.c (syms_of_fns): Doc fix (Bug#4227).
12848
bc5e75b6
SM
128492009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12850
12851 * keymap.c (Fwhere_is_internal): Use nconc2.
12852
c31c985e
AM
128532009-09-11 Alan Mackenzie <acm@muc.de>
12854
12855 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
12856 batch mode.
12857
78012bd2
AS
128582009-09-11 Andreas Schwab <schwab@linux-m68k.org>
12859
12860 * xdisp.c (display_mode_element): Detect cycles.
12861
9d889332
SM
128622009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12863
12864 * keymap.c (where_is_internal): Don't erroneously return nil right after
12865 filling the cache.
12866 (where_is_internal_1): Fix up typo.
12867
7ab5d780
GM
128682009-09-11 Glenn Morris <rgm@gnu.org>
12869
12870 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
12871 share a common doc-string.
12872
5238a749
SM
128732009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12874
66d77eda
SM
12875 * keymap.c (get_keymap): Return the actual keymap symbol rather than
12876 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
12877
5238a749
SM
12878 * keymap.c (QCadvertised_binding): New constant.
12879 (syms_of_keymap): Initialize it.
12880 (Fwhere_is_internal): Try and use bindings from :advertised-binding
12881 if applicable.
12882
19f48442
SM
128832009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12884
50d4ba39
SM
12885 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
12886 (parse_menu_item): Streamline since bindings are recomputed all the
12887 time anyway. Don't bother checking Vdefine_key_rebound_commands any
12888 more and don't support lmenu's menu-alias any more either.
12889
a88a5372
SM
12890 * keymap.c (where_is_internal_data): Make noindirect a boolean.
12891 (where_is_internal): Strip it down to only traverse the keymaps.
12892 Move the cache handling from Fwhere_is_internal to here.
12893 (Fwhere_is_internal): Move the handling of remapping and the choice of
12894 the best binding from where_is_internal to here.
12895 Unify the cached/noncached paths, so remapping is also handled
12896 correctly when the cache is used, and so the cache can be used to
12897 speed up remap-handling when applicable.
12898 Give preference to non-remapped bindings.
12899 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
12900 non-remapped bindings.
12901 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
12902 command remapping.
12903
19f48442
SM
12904 * xdisp.c (display_mode_element): Move list length limit from 50 to
12905 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
12906
599498c3 129072009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
12908
12909 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
12910
f9b7b5ac
SM
129112009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
12912
a53af587
JB
12913 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
12914 (Bug#4334)
12915
f9b7b5ac
SM
12916 * keymap.c (where_is_internal): Filter out shadowed remappings.
12917 Assume that where_is_internal returns unshadowed bindings to simplify
12918 the code and get rid of the gotos. Use ASIZE.
12919
04f4b72d
JD
129202009-09-04 Jan Djärv <jan.h.d@swipnet.se>
12921
4da146f2
JD
12922 * xterm.c (x_focus_changed): If we get a focusout and pointer
12923 is invisible, make it visible.
12924
04f4b72d
JD
12925 * xterm.h: Remove condition for declaration of
12926 x_*_window_to_frame.
12927
7cef7ce3
SM
129282009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
12929
12930 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
12931 initial terminal as well.
12932
a54fa5b7
JD
129332009-09-02 Jan Djärv <jan.h.d@swipnet.se>
12934
12935 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 12936 x_menubar_window_to_frame.
a54fa5b7 12937
50426a04 12938 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
12939 (XTmouse_position): Do not return valid positions
12940 for clicks in the menubar and the toolbar for Gtk+.
12941
12942 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
12943 if the widget for the event has the same top level as a frame,
12944 return the frame.
12945 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
12946 internal windows, bug #4122.
12947 (x_non_menubar_window_to_frame): Remove.
12948
5a021dd0
GM
129492009-09-02 Glenn Morris <rgm@gnu.org>
12950
12951 * buffer.c (default-major-mode): Move most of the doc from here...
12952 (major-mode): ... to here.
12953
548fe2f3
NR
129542009-08-30 Nick Roberts <nickrob@snap.net.nz>
12955
12956 * process.c (wait_reading_process_output): Keep the descriptor
12957 when pty is used by a non-child process, e.g., in I/O buffer of
12958 GDB this allows inferior to be restarted.
12959
e0840eef
EZ
129602009-08-29 Eli Zaretskii <eliz@gnu.org>
12961
12962 * xdisp.c (redisplay_internal): Remove redundant test and collapse
12963 both branches into one.
12964
82e98df4
SM
129652009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12966
12967 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
12968 (main): Use enable-multibyte-characters rather than
12969 default-enable-multibyte-characters. Output a warning message when
12970 running a unibyte session.
12971
890617cb
YM
129722009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12973
12974 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
12975 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
12976 (copy_data_segment): Also copy __program_vars section.
12977 (copy_dyld_info) [LC_DYLD_INFO]: New function.
12978 (dump_it) [LC_DYLD_INFO]: Use it.
12979
12980 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
12981
e7adeadc
EZ
129822009-08-28 Eli Zaretskii <eliz@gnu.org>
12983
12984 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
12985 $(SRC)/buildobj.h.
ef1b0ba7 12986 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
12987 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
12988 $(SRC)/buildobj.h.
12989 (clean): Add buildobj.h.
12990
3ed8bbdc
TZ
129912009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
12992
12993 * print.c (print_object): Set escapeflag to 1 when printing
12994 hashtable keys and values.
12995
155a6764
SM
129962009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
12997
12998 * lread.c (read_integer): Use doubles (and potentially return a float
12999 number) as we do in string-to-number.
13000 (read1): Use strtol to read integers, signal errors on strtol's
13001 overflow and use floats if strtol's output is too large for
13002 Elisp integers.
13003
877610de
EZ
130042009-08-27 Eli Zaretskii <eliz@gnu.org>
13005
13006 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
13007 (make-buildobj-SH): Fix last change.
13008 (SRC): Move to before where it's first used.
13009
ef73e7be
KH
130102009-08-27 Kenichi Handa <handa@m17n.org>
13011
550c8289
KH
13012 * process.c (send_process): Use encode_coding_object instead of
13013 encode_coding_string to perform eol-conversion even if the string
13014 is unibyte.
13015
60afa08d
KH
13016 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
13017 character.
13018
ef73e7be 13019 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 13020 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 13021
7b3a82d7
DN
130222009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
13023
5654bf63
DN
13024 * callproc.c (Fcall_process): Remove always true #if.
13025
7b3a82d7
DN
13026 * lisp.h: Replace #if 0 code for checking with text pointing to
13027 the --enable-checking configure flag.
13028
13029 * emacs.c (main): Mention the --enable-profiling configure flag
13030 instead of using CFLAGS.
13031
878bde49
KR
130322009-08-26 Ken Raeburn <raeburn@raeburn.org>
13033
13034 * Makefile.in (buildobj.h): New target.
13035 (doc.o): Depend on it.
13036 (temacs${EXEEXT}): Don't generate buildobj.lst.
13037 (mostlyclean): Delete buildobj.h, not buildobj.lst.
13038 * makefile.w32-in ($(SRC)/buildobj.h): New target.
13039 ($(BLD)/doc.$(O)): Depend on it.
13040 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
13041 provided by Eli Zaretskii.)
13042 ($(TEMACS)): Don't generate buildobj.lst.
13043 * doc.c: Include buildobj.h.
13044 (buildobj): New static variable.
13045 (Fsnarf_documentation): Use it, instead of opening and reading
13046 buildobj.lst.
13047
1574224c
MA
130482009-08-25 Michael Albinus <michael.albinus@gmx.de>
13049
13050 * dbusbind.c (Fdbus_call_method)
13051 (Fdbus_call_method_asynchronously): Use English numeric format for
13052 timeout values in doc string.
13053
d9da2f45
KH
130542009-08-25 Kenichi Handa <handa@m17n.org>
13055
ef73e7be
KH
13056 * alloc.c (mark_char_table): New function.
13057 (mark_object): Use mark_char_table for a char-table.
13058
d9da2f45
KH
13059 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
13060 (CHAR_TABLE_REF): Use it.
13061
c8edcc01
KR
130622009-08-23 Ken Raeburn <raeburn@raeburn.org>
13063
13064 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
13065 before invoking the newly build emacs to check for load-path
13066 shadowing.
13067
7763401b
GM
130682009-08-22 Glenn Morris <rgm@gnu.org>
13069
13070 * Makefile.in (bootstrap_exe): New variable.
13071 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
13072 Use ${bootstrap_exe}.
13073
729eadda
EZ
130742009-08-22 Eli Zaretskii <eliz@gnu.org>
13075
13076 * coding.h (encode_coding_string): Don't encode unibyte strings.
13077 (Bug#4047)
13078
eb4c6ace
MA
130792009-08-22 Michael Albinus <michael.albinus@gmx.de>
13080
13081 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
13082
13083 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
13084 intended as hotfix only.
13085 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
13086
36e34d1b
AR
130872009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13088
13089 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
13090 change, and clean up loose ends in the code left by it.
13091 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
13092 yet another X11 format (rgb:r/g/b) for compatibility.
13093 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
13094 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
13095
f983eb8a
SM
130962009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
13097
13098 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
13099
3f56d3c6
MA
131002009-08-20 Michael Albinus <michael.albinus@gmx.de>
13101
13102 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
13103 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
13104 (xd_initialize, xd_pending_messages): Check, whether
13105 $DBUS_SESSION_BUS_ADDRESS is set.
13106
fb641d68
YM
131072009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13108
13109 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
13110
13111 * nsterm.m (ns_get_color): Remove incompatible color formats again.
13112
cf59a374
GM
131132009-08-20 Glenn Morris <rgm@gnu.org>
13114
13115 * emacs.c (system-type): Doc fix.
13116
1373f3be
SM
131172009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
13118
13119 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
13120 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
13121
058ed861
MA
131222009-08-18 Michael Albinus <michael.albinus@gmx.de>
13123
1373f3be
SM
13124 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
13125 New functions.
058ed861
MA
13126 (xd_initialize): Revert change from 2009-08-16.
13127
563a866e 131282009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
13129
13130 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 13131 font-group vector, return nil.
5fc05db0 13132
e42bdf01
CY
131332009-08-17 Chong Yidong <cyd@stupidchicken.com>
13134
13135 * process.c (status_notify): Don't perform redisplay.
13136 (Fdelete_process, list_processes_1, process_send_signal):
13137 Expliticly perform redisplay.
13138 (wait_reading_process_output): Always check process status, but
13139 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
13140
4230ab74
KR
131412009-08-17 Ken Raeburn <raeburn@raeburn.org>
13142
1373f3be 13143 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
13144 (XFLOAT_INIT): New macro for storing a float value.
13145 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
13146 * fns.c (sxhash): Copy out the value of a float in order to
13147 examine its bytes.
13148 * dbusbind.c (xd_append_arg): Likewise.
13149
4230ab74
KR
13150 * emacs.c (main): Don't call syms_of_data twice.
13151
a0645cdd
MA
131522009-08-16 Michael Albinus <michael.albinus@gmx.de>
13153
13154 * dbusbind.c (xd_initialize): Add connection file descriptor to
13155 input_wait_mask, in order to let select() detect, whether a new
13156 message has been arrived.
ca4f31ea 13157 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 13158
485db0ba
MA
131592009-08-15 Michael Albinus <michael.albinus@gmx.de>
13160
1373f3be
SM
13161 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
13162 New functions.
485db0ba
MA
13163
13164 * lisp.h (xd_pending_messages): Declare.
13165
13166 * keyboard.c (readable_events): Call xd_pending_messages.
13167
b5b98ff4
CY
131682009-08-15 Chong Yidong <cyd@stupidchicken.com>
13169
1373f3be 13170 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 13171
f8354c6e
CY
13172 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
13173
b5b98ff4
CY
13174 * buffer.c (set_buffer_internal_1)
13175 (swap_out_buffer_local_variables): Check for unbound local
13176 variables (Bug#4138).
13177
8b9fc636
EZ
131782009-08-14 Eli Zaretskii <eliz@gnu.org>
13179
13180 * process.c (create_pty): Fix last change.
13181
ce959360
CY
131822009-08-13 Chong Yidong <cyd@stupidchicken.com>
13183
13184 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
13185 (xbm_load_image): Caller changed.
64b807c9 13186 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 13187
c7baf7e9
NR
131882009-08-13 Nick Roberts <nickrob@snap.net.nz>
13189
13190 * process.c (create_pty): New function.
13191 (Fstart_process): Use it to allow Emacs to just associate a pty
13192 with the buffer. See associated change in gdb-mi.el.
13193 (list_processes_1): Deal with no program name.
13194 (start_process_unwind): Use pid == -2 to mean no process.
13195
1ac9108a
SM
131962009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
13197
13198 * cmds.c (nonundocount): New global variable.
13199 (keys_of_cmds): Initialize it.
13200 (Fself_insert_command): Use it to combine upto 20 sequential chars
13201 into a single undo entry, just like the Qself_insert_command code in
13202 keyboard.c does.
13203 Call frame_make_pointer_invisible, also like the Qself_insert_command
13204 code in keyboard.c does.
13205 * keyboard.c (command_loop_1): Use the new global nonundocount rather
13206 than its own local replacement for it.
13207
e267324c
KR
132082009-08-10 Ken Raeburn <raeburn@raeburn.org>
13209
1ac9108a 13210 * fns.c (concat): Don't re-set string length to its current value.
77437343 13211
1ac9108a
SM
13212 * coding.h (decode_coding_string, encode_coding_string):
13213 Use SBYTES macro.
f0bed503 13214
1ac9108a 13215 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
13216 (doprnt): Merge with doprnt1, discarding lispstrings code.
13217 * lisp.h (doprnt_lisp): Don't declare.
13218
416e006d
JL
132192009-08-07 Juri Linkov <juri@jurta.org>
13220
13221 * puresize.h (BASE_PURESIZE): Increase to 1270000.
13222
6f7d5780
DN
132232009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13224
13225 * print.c (syms_of_print): Undo previous change.
13226
f19a0f5b
TZ
132272009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
13228
13229 * lread.c (read1, syms_of_lread): Read hashtables back from the
13230 readable format.
13231
13232 * print.c (print_preprocess, print_object): Print hashtables fully
13233 and readably.
13234 (syms_of_print): Provide 'hashtable-print-readable.
13235
b9173dc2
AR
132362009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13237
13238 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
13239 no family set.
13240 (nsfont_open): Handle case when entity has no family.
13241
1586503c
AR
132422009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13243
13244 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
13245 element, not a list, for match case.
13246
087048cd
KH
132472009-07-28 Kenichi Handa <handa@m17n.org>
13248
13249 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
13250 rigidly.
13251
13252 * xfont.c (xfont_list_pattern): Don't ignore the return value of
13253 font_parse_xlfd. Check font properties more rigidly.
13254
780c2506
DN
132552009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13256
31fd7c5c
JB
13257 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
13258 bsd-common.h.
780c2506 13259
a8c0cc18
KH
132602009-07-27 Kenichi Handa <handa@m17n.org>
13261
13262 * xfaces.c (face_with_height): Call font_clear_prop.
13263
4fbe2306
CY
132642009-07-26 Chong Yidong <cyd@stupidchicken.com>
13265
111d9af3
CY
13266 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
13267
13268 * xterm.c (x_term_init): Use Qx.
13269
4fbe2306
CY
13270 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
13271
1ac9108a 13272 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
13273 (ns_get_color): Revert 2009-07-16 change.
13274
beb0b7f9
EZ
132752009-07-25 Eli Zaretskii <eliz@gnu.org>
13276
13277 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 13278 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 13279
2baf5e76
KR
132802009-07-25 Ken Raeburn <raeburn@raeburn.org>
13281
1ac9108a
SM
13282 * coding.h (decode_coding_string, encode_coding_string):
13283 Use SCHARS macro.
8890e5f5 13284
2baf5e76 13285 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 13286 (load_depth): Delete.
2baf5e76
KR
13287 (Qload_in_progress): New variable.
13288 (load_unwind): Don't reference load_depth or load_in_progress.
13289 (Fload): Likewise; specbind Qload_in_progress instead.
13290 (init_lread): Don't initialize load_depth.
13291 (syms_of_lread): Initialize and protect Qload_in_progress.
13292
1395c6f5
AR
132932009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13294
13295 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
13296
4e2f36cf
AR
132972009-07-23 Yavor Doganov <yavor@gnu.org>
13298
13299 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
13300
5dd9a6f7
AR
133012009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13302
13303 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
13304 Bugs 3792, 3720, 2402.
13305 (ns_lookup_indexed_color): Check for bad index.
13306 (ns_index_color): Init unused slot to 0.
13307 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
13308 Bug 3714, possibly 3082.
5dd9a6f7 13309
c902b920
JR
133102009-07-22 Jason Rumney <jasonr@gnu.org>
13311
1ac9108a
SM
13312 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
13313 Position IME window at cursor (Bug#2570).
c902b920
JR
13314 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
13315 (globals_of_w32fns): Dynamically load functions required above.
13316
13317 * w32term.c (w32_draw_window_cursor): Send message to reposition
13318 any IME window.
13319
090101cf
CY
133202009-07-21 Chong Yidong <cyd@stupidchicken.com>
13321
13322 * fileio.c: Revert 2009-07-16 changes.
13323 (Vauto_save_include_big_deletions): New variable.
13324 (Fdo_auto_save): Disable auto-save only if
13325 auto-save-include-big-deletions is nil.
13326
e6583e3d
CY
133272009-07-21 Chong Yidong <cyd@stupidchicken.com>
13328
13329 * xdisp.c (move_it_to): For continued lines ending in a tab, take
13330 the overflowed pixels into account (Bug#3879).
13331
ece435a5
KR
133322009-07-21 Ken Raeburn <raeburn@raeburn.org>
13333
13334 * lread.c (load_depth): New variable.
13335 (Fload, load_unwind, init_lread): Set it to the load recursion
13336 depth; set load_in_progress as a simple boolean based on the
13337 current load_depth. (Bug#3892)
13338
40b2d973
AR
133392009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13340
13341 * nsfont.m (ns_has_attribute): Remove.
13342 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
13343
10be7e0d
JL
133442009-07-18 Juri Linkov <juri@jurta.org>
13345
13346 * process.c (Fset_process_query_on_exit_flag): Mention killing
13347 a buffer in docstring.
13348
fa055055
KH
133492009-07-17 Kenichi Handa <handa@m17n.org>
13350
13351 * casetab.c (shuffle): Fix the logic of setting up the cycle.
13352
042f7b69
YM
133532009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13354
13355 * nsfns.m (Fns_set_alpha): Remove function.
13356 (syms_of_nsfns): Don't defsubr it.
13357
13358 * nsterm.m (ns_get_color): Remove incompatible color formats.
13359 (ns_color_to_lisp): Generate #rrggbb color format string.
13360
4be941e3
RS
133612009-07-16 Richard Stallman <rms@gnu.org>
13362
13363 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
13364 (Fset_buffer_auto_saved): Handle save_length = -2.
13365
4e6b227d
CY
133662009-07-16 Chong Yidong <cyd@stupidchicken.com>
13367
13368 * xterm.c (Qx_gtk_map_stock): New var.
13369
13370 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
13371 of calling intern each time.
13372
a1856973
YM
133732009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13374
13375 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
13376 does tiling.
13377
13378 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
13379
497e54d8
KH
133802009-07-14 Kenichi Handa <handa@m17n.org>
13381
72d36834
KH
13382 * font.c (font_vconcat_entity_vectors): New function.
13383 (struct font_sort_data): New member font_driver_preference.
13384 (font_compare): Check font_driver_preference.
13385 (font_sort_entities): The format of the first argument changed.
13386 (font_delete_unmatched): Likewise.
13387 (font_list_entities): The return type changed.
13388 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
13389 (font_find_for_lface): Adjuste for the above changes.
13390 Don't suppress the checking of C even if the repertory supports it.
13391 (Flist_fonts): Adjust for the above changes.
72d36834 13392
1ac9108a
SM
13393 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
13394 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
13395 Reject a font who has adstyle property that is different from a
13396 langname derived from registry property.
1ac9108a 13397 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 13398
b6046155
EZ
133992009-07-13 Eli Zaretskii <eliz@gnu.org>
13400
13401 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
13402 local copy of dirfilename.
13403
fb6b6049
KH
134042009-07-13 Kenichi Handa <handa@m17n.org>
13405
e2402a5e
KH
13406 * chartab.c (sub_char_table_ref_and_range): Fix the range check
13407 against max_char.
13408
fb6b6049
KH
13409 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
13410 calling XSYMBOL (sym).
13411
65156807
EZ
134122009-07-11 Eli Zaretskii <eliz@gnu.org>
13413
1ac9108a
SM
13414 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
13415 New function.
13416 (directory_files_internal) [WINDOWSNT]:
13417 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
13418 the filesystem of the directory is fast or slow.
13419
13420 * w32.c (logon_network_drive): Don't assume PATH is an absolute
13421 file name.
13422 (is_slow_fs): New function.
13423 (stat): Use it to determine whether to issue more system calls to
13424 get accurate file attributes, when w32-get-true-file-attributes is
13425 `local'.
13426
e0ab5fcf
JD
134272009-07-10 Jan Djärv <jan.h.d@swipnet.se>
13428
13429 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 13430 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
13431 parameter font-parameter as default to the font dialog.
13432
784ceded
KH
134332009-07-10 Kenichi Handa <handa@m17n.org>
13434
13435 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
13436
fb8edc0b
EZ
134372009-07-09 Eli Zaretskii <eliz@gnu.org>
13438
1ac9108a 13439 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 13440
fb8edc0b
EZ
13441 * w32.c (stat): Treat UNC file names as residing on remote
13442 drives. (Bug#3542)
13443
635c75b1
KH
134442009-07-09 Kenichi Handa <handa@m17n.org>
13445
13446 * fontset.c (fontset_find_font): Fix previous change.
13447
c1d5ce94
MA
134482009-07-08 Michael Albinus <michael.albinus@gmx.de>
13449
13450 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
13451 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
13452 error flag.
13453
edb61b39
KH
134542009-07-08 Kenichi Handa <handa@m17n.org>
13455
374bf7e4
KH
13456 * fontset.c (fontset_find_font): Fix the logic of handling
13457 charset_matched.
13458 (font_for_char): Delete unused var.
13459 (generate_ascii_font_name): Delete it.
13460
edb61b39
KH
13461 * coding.h (JIS_TO_SJIS2): Fix the code range check.
13462
13463 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
13464 (encode_coding_sjis): Fix the code range check.
13465
0f3f018c
CY
134662009-07-07 Chong Yidong <cyd@stupidchicken.com>
13467
13468 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
13469 (Fexpand_file_name): Copy string data properly (Bug#3772).
13470
fcaf6f3a
JD
134712009-07-07 Jan Djärv <jan.h.d@swipnet.se>
13472
13473 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
13474 first MapNotify.
13475
6809ca75
KH
134762009-07-07 Kenichi Handa <handa@m17n.org>
13477
13478 * character.h (unibyte_has_multibyte_table): Delete extern.
13479 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
13480
13481 * charset.c (Fset_charset_priority): Update charset_unibyte.
13482 (syms_of_charset): Initialize charset_unibyte.
13483
13484 * character.c (unibyte_has_multibyte_table): Delete it.
13485 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
13486 charset_unibyte.
13487 (multibyte_char_to_unibyte_safe): Likewise.
13488 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
13489
1ac9108a 13490 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
13491 (x_produce_glyphs): Likewise.
13492
13493 * .gdbinit (xcharset): Fix the treating $arg0.
13494
ad9e2d54
EZ
134952009-07-04 Eli Zaretskii <eliz@gnu.org>
13496
13497 Emulation of `getloadavg' on MS-Windows.
50426a04 13498 * w32.c: Include float.h.
ad9e2d54
EZ
13499 (g_b_init_get_native_system_info, g_b_init_get_system_times)
13500 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
13501 (get_native_system_info, get_system_times): New functions.
13502 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
13503 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
13504 (globals_of_w32): Initialize g_b_init_get_native_system_info,
13505 g_b_init_get_system_times, and num_of_processors.
13506
0a3472c7
JR
135072009-07-03 Jason Rumney <jasonr@gnu.org>
13508
13509 * w32term.c (w32_initialize): Use standard types.
13510
80904120
EZ
135112009-07-03 Eli Zaretskii <eliz@gnu.org>
13512
13513 * dired.c (Ffile_attributes): Decode user and group names by the
13514 locale's encoding. (Bug#3443)
13515
6978862d
DN
135162009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
13517
f8d23104
DN
13518 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
13519 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
13520
13521 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
13522
13523 * term.c (init_tty): Remove spurious #ifdef.
13524
6978862d
DN
13525 * m/mips.h: Mention this file is also used for netbsd.
13526 * m/pmax.h: Remove file.
13527
e044e4fc
JD
135282009-07-03 Jan Djärv <jan.h.d@swipnet.se>
13529
13530 * xterm.h (struct x_display_info): Add invisible_cursor.
13531 (struct x_output): Add current_cursor.
13532
13533 * xterm.c (XTtoggle_invisible_pointer): New function.
13534 (x_define_frame_cursor): Don't define cursor if invisible or the
13535 same as before. Set current_cursor.
13536 (x_create_terminal): Set toggle_invisible_pointer_hook.
13537
13538 * xfns.c (make_invisible_cursor): New function.
13539 (x_set_mouse_color): Call make_invisible_cursor.
13540 Set current_cursor.
13541 (x_window): Set current_cursor.
13542
13543 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
13544
13545 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
13546 inserting a character.
13547 (read_avail_input): Call frame_make_pointer_visible.
13548
13549 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
13550 (frame_make_pointer_invisible, frame_make_pointer_visible):
13551 New functions.
e044e4fc
JD
13552 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
13553
13554 * frame.h: Declare frame_make_pointer_invisible and
13555 frame_make_pointer_visible.
13556 (struct frame): Add pointer_invisible.
13557
574c8efa
JD
135582009-07-02 Jan Djärv <jan.h.d@swipnet.se>
13559
7b507248
JD
13560 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
13561 frame isn't visible.
13562 (xg_frame_resized): If width/height is -1, get size of window
13563 from X server.
13564
13565 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
13566 for MapNotify.
13567
835bdaa7 13568 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 13569 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 13570 (flush_and_sync): Reintroduce.
574c8efa 13571
3f1c6666 135722009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 13573
31fd7c5c 13574 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
13575
13576 * xterm.c (x_handle_net_wm_state): Also look for sticky.
13577 (x_term_init): Initialize Xatom_net_wm_state_sticky.
13578
13579 * frame.h: Declare Qsticky.
13580
cad9ef74
JD
13581 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
13582
13583 * nsfns.m (ns_frame_parm_handlers): Ditto.
13584
13585 * frame.c: Declare Qsticky.
13586 (frame_parms): Add sticky.
13587
13588 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
13589
13590 * xterm.h: Declare x_set_sticky.
13591
13592 * xterm.c (x_set_sticky): New function.
13593
69b16610
JD
13594 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
13595 (xg_tool_bar_menu_proxy): Attach enter/leave events to
13596 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
13597
13598 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
13599
13600 * frame.c: Qmaximized is new.
13601 (x_set_frame_parameters): Do not handle fullscreen specially.
13602 Only set width and height if explicitly set.
13603 (x_set_fullscreen): Handle Qmaximized.
13604 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
13605 (syms_of_frame): Initialize Qmaximized.
13606
1ac9108a
SM
13607 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
13608 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
13609
13610 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
13611 for Expose event. Add call to x_check_fullscreen for MapNotify event.
13612 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
13613 set gravity to NorthWestGravity when USE_GTK.
13614 (set_wm_state): New function.
31fd7c5c 13615 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
13616 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
13617 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 13618 or the case when no window manager is running. That means remove calls
3f1c6666
JD
13619 to x_real_positions and x_fullscreen_adjust.
13620
13621 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
13622 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
13623 flush_and_sync.
13624 (xg_height_changed): New function.
13625 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
13626 and gtk_window_set_policy. Set frame gravity after parsing the
13627 geometry string.
3f1c6666
JD
13628 (xg_update_frame_menubar, free_frame_menubar)
13629 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13630 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
13631 Remove calls to xg_frame_set_char_size.
13632
fd503d99
KH
136332009-07-01 Kenichi Handa <handa@m17n.org>
13634
13635 * keyboard.c (decode_keyboard_code): New function.
13636 (tty_read_avail_input): Decode the input bytes if necessary.
13637
1ac9108a
SM
13638 * coding.c (setup_coding_system):
13639 Initialize coding->carryover_bytes to 0.
fd503d99
KH
13640 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13641 use Qno_conversion.
13642
24ed93fb
YM
136432009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13644
13645 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13646
99061dfc
CY
136472009-06-30 Chong Yidong <cyd@stupidchicken.com>
13648
1ac9108a 13649 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 13650
ff90fbde
JR
136512009-06-30 Jason Rumney <jasonr@gnu.org>
13652
13653 * w32term.c (w32_initialize): Use GetModuleHandle for library that
13654 is already loaded.
13655 Set user model ID if supported (bug#1849).
13656
5f445726
JM
136572009-06-29 Jim Meyering <meyering@redhat.com>
13658
13659 Remove useless if-before-xfree test.
13660 * nsfont.m (nsfont_close): Remove useless test.
13661 * term.c (delete_tty): Likewise.
13662 * w32.c (system_process_attributes): Likewise.
13663 * w32font.c (w32font_close): Likewise.
13664 * xfaces.c (x_free_gc): Likewise.
13665 * xselect.c (buffer): Likewise.
13666
b9607587
AS
136672009-06-28 Andreas Schwab <schwab@linux-m68k.org>
13668
13669 * process.c (send_process): Keep decoded string in a local
13670 variable and protect it from GC. (Bug#3521)
13671
89ba96f4
EZ
136722009-06-28 Eli Zaretskii <eliz@gnu.org>
13673
13674 * term.c (create_tty_output) [MSDOS]: #ifdef away.
13675 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13676
098a1589
CY
136772009-06-28 Chong Yidong <cyd@stupidchicken.com>
13678
485422be
CY
13679 * xdisp.c (start_display, handle_face_prop)
13680 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
13681 (redisplay_window, try_window_id, produce_image_glyph):
13682 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 13683
098a1589
CY
13684 * xterm.c (x_update_window_begin, x_new_focus_frame)
13685 (x_scroll_bar_handle_click, handle_one_xevent)
13686 (handle_one_xevent, XTread_socket, x_focus_on_frame)
13687 (x_make_frame_visible, x_make_frame_invisible)
13688 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13689 code chunks that are now obsolete.
13690
78c38319
MA
136912009-06-28 Michael Albinus <michael.albinus@gmx.de>
13692
13693 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13694 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
13695 for hours, when optimzation is enabled.
13696 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13697 (xd_read_message): Make them static.
13698
4189ed40
CY
136992009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
13700
13701 * term.c (turn_on_face): Allow simultaneously bold and dim
13702 terminal faces (Bug#3530).
13703
cd9b5e16
CY
137042009-06-27 Chong Yidong <cyd@stupidchicken.com>
13705
4e23bedb
CY
13706 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13707
cd9b5e16
CY
13708 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13709 truncation glyphs (Bug#3686).
13710
07cc3c35
GM
137112009-06-27 Glenn Morris <rgm@gnu.org>
13712
13713 * m/pmax.h: Restore file, with only netbsd portions.
13714
31fd7c5c 137152009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 13716
cd9b5e16 13717 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 13718
42d4a64f
KH
137192009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
13720
13721 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13722 the arg FORCE_SYMBOL.
13723
930fe55b 137242009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
13725
13726 * fontset.c (fontset_find_font): When a usable rfont_def is found
13727 in a fallback font-group, make it the first element of the group.
13728
57ebc3fd
CY
137292009-06-24 Chong Yidong <cyd@stupidchicken.com>
13730
13731 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13732
f084f942
KH
137332009-06-24 Kenichi Handa <handa@m17n.org>
13734
13735 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
13736 set for C.
13737 (fontset_font): Record the availability of a font for C both in
13738 the realized fontsets of the current one and the default one.
13739
2f686c87
DN
137402009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
13741
13742 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
13743 conditional, it is always defined on AIX.
13744
666e158e
MB
137452009-06-23 Miles Bader <miles@gnu.org>
13746
13747 * window.c (Vrecenter_redisplay): New variable.
13748 (syms_of_window): Initialize it.
13749 (Qtty): New extern declaration.
13750 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
13751
c6da7cd2
JM
137522009-06-23 Jim Meyering <meyering@redhat.com>
13753
1ac9108a
SM
13754 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13755 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 13756 pointer dereferences are guaranteed to be valid.
c6da7cd2 13757
678dca3d
KH
137582009-06-23 Kenichi Handa <handa@m17n.org>
13759
74d75424
KH
13760 * emacs.c (main): Call init_font ().
13761
13762 * font.h (Vfont_log): Extern it.
13763 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13764
13765 * font.c (font_sort_entities, font_list_entities)
13766 (font_matching_entity, font_open_entity)
13767 (font_close_object): Change font_add_log to FONT_ADD_LOG.
13768 (Vfont_log): Delete static.
13769 (font_log_env_checked): Delete this variable.
13770 (font_add_log): Don't check font_log_env_checked.
13771 (font_deferred_log): Check Vfont_log.
13772 (init_font): New function.
13773
678dca3d
KH
13774 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13775
13776 * w32font.c: Change font_add_log to FONT_ADD_LOG.
13777
13778 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
13779
13780 * xfont.c: Change font_add_log to FONT_ADD_LOG.
13781
13782 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
13783 (face_for_char): Don't call font_deferred_log here.
13784 (font_for_char): Likewise.
13785
8a668709
CY
137862009-06-22 Chong Yidong <cyd@stupidchicken.com>
13787
9a01ee33
CY
13788 * w32term.c (x_draw_glyph_string): Use the glyph string's width
13789 rather than its background_width for drawing the overline and
13790 underline (Bug#489).
13791
13792 * xterm.c (x_draw_glyph_string): Use the glyph string's width
13793 rather than its background_width for drawing the overline and
13794 underline (Bug#489).
ec7c9926
CY
13795 (xg_default_icon_file): New variable.
13796 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
13797 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 13798
8a668709
CY
13799 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
13800 (load_overlay_strings): Remove externs.
13801 (fast_find_position): Function deleted.
13802 (mouse_face_from_buffer_pos): New function, based on
13803 fast_find_position. Correctly handle before-strings,
13804 display-strings, and after-strings (Bug#1220).
13805 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
13806
4d4c02d8
CY
138072009-06-21 Chong Yidong <cyd@stupidchicken.com>
13808
1ac9108a 13809 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
13810 (move_it_in_display_line_to, move_it_in_display_line_to)
13811 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
13812
70243478
CY
138132009-06-21 Chong Yidong <cyd@stupidchicken.com>
13814
13815 * Branch for 23.1.
13816
13087e59
JR
138172009-06-21 Jason Rumney <jasonr@gnu.org>
13818
13819 * w32term.c (keyboard_codepage): New static variable.
13820 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
13821 (w32_read_socket) [WM_CHAR]: Use it to decode character
13822 input (bug#3237).
13823 (w32_initialize): Initialize it.
13824 (codepage_for_locale): New function.
13825
4735b74e
KR
138262009-06-20 Ken Raeburn <raeburn@raeburn.org>
13827
13828 * process.c (status_message): Pass Faset index argument as a lisp
13829 object, so as to work with USE_LISP_UNION_TYPE.
13830
0e727afa
YM
138312009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13832
13833 * coding.c (Ffind_coding_systems_region_internal):
13834 Cache checked characters.
13835
cf299835
KH
138362009-06-18 Kenichi Handa <handa@m17n.org>
13837
1ac9108a 13838 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 13839
90f20d94
AS
138402009-06-18 Andreas Schwab <aschwab@redhat.com>
13841
13842 * xdisp.c (redisplay_internal): Check that the frame is still
13843 live after redisplay of its windows.
13844 (redisplay_windows): Check that the window is still live.
13845
7f1faf1c
KH
138462009-06-17 Andreas Schwab <schwab@linux-m68k.org>
13847
13848 * coding.c (detect_coding_utf_16): Fix previous change.
13849
cc13543e
KH
138502009-06-16 Kenichi Handa <handa@m17n.org>
13851
13852 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
13853 UTF-16 by checking the dispersion of Eth and Oth bytes.
13854
977b85f4
AS
138552009-06-15 Andreas Schwab <schwab@linux-m68k.org>
13856
13857 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
13858
66bd43d1
KH
138592009-06-15 Kenichi Handa <handa@m17n.org>
13860
13861 * process.c (status_message): Fix previous change. Be sure to
13862 decode a localized string.
13863
cb5ca9c5
YM
138642009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13865
13866 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
13867 add comment explaining why.
13868
ec7709ba 138692009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 13870
ec7709ba 13871 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 13872
4b7f335c
AR
138732009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
13874
13875 * nsfont.m (ns_attribute_value): Remove.
13876 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
13877 (ns_has_attribute): Shrink the normal range.
13878 (ns_findfonts): Don't worry about requested spec in determining
13879 need for synthItal.
e41820ee 13880 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 13881
73b26103
SZ
138822009-06-14 Seiji Zenitani <zenitani@mac.com>
13883
13884 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
13885
5753e4da
KH
138862009-06-11 Kenichi Handa <handa@m17n.org>
13887
13888 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13889 overhang for the static composition case.
13890
3561b671
KH
138912009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13892
5753e4da
KH
13893 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13894 overhang for the automatic composition case.
13895
3561b671
KH
13896 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
13897 composition case.
13898
852bbd41
CY
138992009-06-10 Chong Yidong <cyd@stupidchicken.com>
13900
13901 * xdisp.c (get_next_display_element): When handling wrap-prefix
13902 and line-prefix, treat \n as a control character (bug#3502).
13903
9903d1e6
KH
139042009-06-10 Kenichi Handa <handa@m17n.org>
13905
13906 * font.c (font_parse_family_registry): Fix for one-char foundry.
13907 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
13908
0bcbaaaa
CY
139092009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
13910
13911 * process.c (status_message): Fix handling of multibyte signal
13912 string (Bug#3499).
13913
40aa3f13
JM
139142009-06-09 Jim Meyering <meyering@redhat.com>
13915
1f80c7e2
CY
13916 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
13917 color name is missing.
40aa3f13 13918
72d51285
KH
139192009-06-09 Kenichi Handa <handa@m17n.org>
13920
13921 * charset.c (Fmap_charset_chars): In docstring, state clearly that
13922 FROM-CODE and TO-CODE are codepoints of CHARSET.
13923
c1d04d84
AR
139242009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13925
13926 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
13927
139282009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13929
13930 Changes to support :script/:lang/:otf in NS font driver.
13931 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
13932 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
13933 indicate not part of font driver interface, and change callers.
13934 (ns_get_family): Remove pointless null check.
13935 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
13936 ns_spec_to_descriptor, ns_descriptor_to_entity.
13937 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
13938 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
13939 (ns_spec_to_descriptor, ns_descriptor_to_entity)
13940 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
13941 (ns_get_req_script, ns_accumulate_script_ranges)
13942 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
13943 New functions.
13944 (nsfont_list, nsfont_match): Use ns_findfonts.
13945 (nsfont_open): Use font descriptor instead of traits.
13946 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
13947 (dump_glyphstring): Rename to ns_dump_glyphstring.
13948
c7eb9816
AR
13949 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
13950
c1d04d84
AR
13951 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
13952
13953 * fontset.c (fontset_from_font): Remove NS-specific code.
13954
ec7709ba 139552009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
13956
13957 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
13958 nonactive windows.
13959
31fd7c5c 139602009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 13961
1ac9108a 13962 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 13963
68852c13 139642009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
13965
13966 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
13967
6756cd1d
CY
139682009-06-07 Chong Yidong <cyd@stupidchicken.com>
13969
13970 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
13971 account for the overflowing of newlines into the last glyph on the
13972 display line (Bug#3482).
13973
28bf482a
DR
139742009-06-05 David Reitter <david.reitter@gmail.com>
13975
ec7709ba
JB
13976 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
13977 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
13978 Fns_selection_exists_p, Fns_selection_owner_p.
13979
fdb55376
JR
139802009-06-03 Jason Rumney <jasonr@gnu.org>
13981
13982 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
13983 available. (Bug#3379)
13984
05129fbe
KH
139852009-05-29 Kenichi Handa <handa@m17n.org>
13986
1ac9108a
SM
13987 * coding.c (get_translation_table):
13988 Check Venable_character_translation.
05129fbe 13989
ec7709ba 139902009-05-26 David Reitter <david.reitter@gmail.com>
15891144 13991
ec7709ba
JB
13992 * nsterm.m (ns_raise_frame): Only raise frame if visible.
13993 (x_make_frame_visible): Move frame to front rather than calling
15891144 13994 ns_raise_frame().
ec7709ba 13995 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 13996 isn't key window.
ec7709ba 13997 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
13998 drawRect may be called by NSView even if the frame is hidden.
13999
ec7709ba
JB
14000 * nsfns.m (Fx_create_frame): Follow other ports in
14001 determining visibility; default to t. Ensure async_visible is set.
15891144 14002
21f73755
EZ
140032009-05-23 Eli Zaretskii <eliz@gnu.org>
14004
14005 * dired.c (Ffile_attributes): Doc fix.
14006
34001e41
CY
140072009-05-22 Chong Yidong <cyd@stupidchicken.com>
14008
14009 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
14010
46306a17
SM
140112009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
14012
14013 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
14014 and xfont_scratch_props.
14015 (syms_of_xfont): Do it here instead.
14016 (xfont_find_ccl_program): Delete, unused.
14017 (xfont_open): Delete unused var `i'.
14018
ef6e0694
KH
140192009-05-21 Kenichi Handa <handa@m17n.org>
14020
14021 * fontset.c (Qlatin): Don't make it static.
14022
46306a17
SM
14023 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
14024 New functions.
ef6e0694
KH
14025 (xfont_scripts_cache, xfont_scratch_props): New variables.
14026 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
14027 (xfont_list_pattern): Argument changed. Callers changed.
14028 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
14029 (xfont_list): Don't reject a font spec with :script property.
14030 (xfont_has_char): Fix setting of encoding.
14031 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
14032 xfont_scratch_props.
14033
140342009-05-19 Kenichi Handa <handa@m17n.org>
14035
46306a17 14036 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
14037 Callers changed.
14038
140392009-05-18 Kenichi Handa <handa@m17n.org>
14040
14041 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
14042
ac71ced7
SM
140432009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14044
14045 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
14046 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
14047
1c6d1051
YM
140482009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14049
14050 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
14051 (x_delete_terminal): Dissociate resource database from display and
14052 then call XrmDestroyDatabase before closing display.
14053
9b9b779c
AR
140542009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
14055
14056 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
14057 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
14058 whether selected frame is viable before raising it (based on patch
14059 by David Reitter), and improve commentary.
14060 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 14061
cccd42d5
KH
140622009-05-15 Kenichi Handa <handa@m17n.org>
14063
14064 * font.c (Ffont_spec): Check arguments.
14065
337fbd17
CY
140662009-05-14 Chong Yidong <cyd@stupidchicken.com>
14067
14068 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
14069 weight when testing attributes (Bug#3282).
14070
47a6002f
JD
140712009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14072
14073 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
14074 what we expect to get in the next ConfigureNotify event.
14075
9cb363db
YM
14076 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
14077 before Xft one (Bug#1696).
14078
b9126609
CY
140792009-05-07 David Reitter <david.reitter@gmail.com>
14080
14081 * nsfns.m (Fx_display_planes): Compute bitplanes using
14082 NSBitsPerPixelFromDepth (Bug#3207).
14083
27a69fd9
CY
140842009-05-10 Chong Yidong <cyd@stupidchicken.com>
14085
14086 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
14087
00f37552
TTN
140882009-05-10 Ulrich Mueller <ulm@gentoo.org>
14089
14090 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
14091
2d82a920
DR
140922009-05-07 David Reitter <david.reitter@gmail.com>
14093
ec7709ba
JB
14094 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
14095 Respect mouse face background.
2d82a920 14096
46b0d52d
DR
140972009-05-07 David Reitter <david.reitter@gmail.com>
14098
ec7709ba
JB
14099 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
14100 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
14101 in ns_update_begin and ns_update_end.
14102
ce1b23bb
SM
141032009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14104
5996e1b7
SM
14105 * nsfns.m (ns_get_screen): Rewrite.
14106 Don't presume selected-frame is of type `ns'.
14107
ba98e3a0
SM
14108 * font.c (font_update_drivers): Sanity fallback to avoid disabling
14109 all drivers.
14110
ce1b23bb
SM
14111 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
14112
bcda200f
YM
141132009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14114
14115 * keyboard.h (add_user_signal): Fix typo in extern.
14116
14117 * lisp.h (add_user_signal): Remove extern.
14118
14119 * unexelf.c (unexec): Consider a section to precede the .bss section
14120 if its addresses overlap that of .bss.
14121 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
14122 instead of dumping process.
14123
864660a2
SM
141242009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14125
14126 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
14127
50da4e56
SM
141282009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
14129
14130 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
14131
51520a1a
DN
141322009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
14133
14134 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
14135 any statements.
14136
409ea3a1
AS
141372009-05-02 Andreas Schwab <schwab@linux-m68k.org>
14138
59c4c60f
AS
14139 * process.c (read_process_output): Make sure the current buffer is
14140 always restored.
14141
409ea3a1
AS
14142 * coding.c (record_conversion_result): Don't modify
14143 Vlast_code_conversion_error for successful result.
14144 (alloc_destination): Don't clobber conversion result. (Bug#1650)
14145
56f00ed2
KH
141462009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14147
14148 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 14149 (load_charset_map): Remove unnecessary code.
56f00ed2 14150
4491c9d2
DR
141512009-04-30 David Reitter <david.reitter@gmail.com>
14152
35f5b128 14153 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
14154 through f24.
14155
6970f632
CY
141562009-04-30 Chong Yidong <cyd@stupidchicken.com>
14157
14158 * xfaces.c (face_at_buffer_position): New arg base_face_id.
14159
14160 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
14161 face_at_buffer_position.
14162 (face_before_or_after_it_pos, get_next_display_element)
14163 (note_mouse_highlight): Update face_at_buffer_position call.
14164
14165 * term.c (term_mouse_highlight):
14166 * msdos.c (IT_note_mouse_highlight):
14167 * fontset.c (Finternal_char_font):
35f5b128 14168 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
14169
14170 * dispextern.h (face_at_buffer_position): Update prototype.
14171
0c616f63
KH
141722009-04-30 Kenichi Handa <handa@m17n.org>
14173
35f5b128 14174 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 14175
ad3aaf33
AS
141762009-04-29 Andreas Schwab <schwab@linux-m68k.org>
14177
14178 * callproc.c (Fcall_process): Fix GC protection. Make sure
14179 current buffer is always restored.
14180
c3c963a0
YM
141812009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14182
14183 * atimer.c (init_atimer): Also clear stopped_atimers.
14184
14185 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
14186
7e3386cb
YM
14187 * process.c (create_process): Clean up merger residues of
14188 2008-07-17 change.
14189
91f68422
CY
141902009-04-29 Ulrich Mueller <ulm@gentoo.org>
14191
14192 * lread.c (Vread_circle): New variable.
14193 (read1): Disable recursive read if Vread_circle is nil.
14194
24b34550
KH
141952009-04-29 Kenichi Handa <handa@m17n.org>
14196
14197 * fontset.h (set_default_ascii_font): Delete extern.
14198
14199 * fontset.c (set_default_ascii_font): Delete this unused function.
14200
14201 * frame.c (x_set_font): When ARG is a font-object, check if the
14202 font-object matches with the ASCII font-spec of the frame's
9c358bda 14203 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 14204
77bf07e1
AS
142052009-04-28 Andreas Schwab <schwab@linux-m68k.org>
14206
14207 * fns.c (Flocale_info): Protect vector from GC during decoding.
14208
14209 * process.c (Fstart_process): Protect argv strings from GC during
14210 encoding.
14211
2c55aacf
AS
142122009-04-27 Andreas Schwab <schwab@linux-m68k.org>
14213
14214 * sysdep.c: Include <ctype.h>.
14215
b892d3c9
DR
142162009-04-27 David Reitter <david.reitter@gmail.com>
14217
35f5b128 14218 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
14219 Remove commented-out code.
14220
9d0644c4
JB
142212009-04-26 Johan Bockgård <bojohan@gnu.org>
14222
14223 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14224
b7053016
JR
142252009-04-25 Jason Rumney <jasonr@gnu.org>
14226
14227 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
14228
4e8231f3
YM
142292009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14230
14231 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
14232 Swap bytes in short integer if fringe bitmap width > 8.
14233
493dcf2c
KH
142342009-04-23 Kenichi Handa <handa@m17n.org>
14235
14236 * xfaces.c (Fx_list_fonts): If a font size is specified in
14237 PATTERN, set it in returned scalable fonts.
14238
401e9e57
CY
142392009-04-22 Chong Yidong <cyd@stupidchicken.com>
14240
708e05dc
CY
14241 * keyboard.c (Fset_input_meta_mode): Doc fix.
14242
14243 * dispnew.c (Fsend_string_to_terminal): Doc fix.
14244
1ac9108a 14245 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
14246
14247 * coding.c (Fterminal_coding_system): Doc fix.
14248
14249 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
14250 (Fx_display_pixel_height, Fx_display_planes)
14251 (Fx_display_color_cells, Fx_server_max_request_size)
14252 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14253 (Fx_display_mm_height, Fx_display_mm_width)
14254 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
14255 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
14256 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
14257 (check_x_display_info): Handle terminal objects instead of
14258 terminal ids.
14259
401e9e57
CY
14260 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
14261 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
14262 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
14263 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 14264
df80c7f0
KH
142652009-04-21 Kenichi Handa <handa@m17n.org>
14266
5a8f12af 14267 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 14268 (font_score): Check AVGWIDTH too.
908567ef 14269
df80c7f0
KH
14270 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
14271 worst case.
1ac9108a
SM
14272 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
14273 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 14274
705af33f
JR
142752009-04-19 Jason Rumney <jasonr@gnu.org>
14276
14277 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 14278 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
14279
14280 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
14281 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
14282 get_phys_cursor_geometry.
14283
b71ac3dd 14284 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
14285 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
14286 using get_phys_cursor_geometry.
14287
14288 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
14289 correctly calculated.
14290
dc2933eb
JD
142912009-04-19 Jan Djärv <jan.h.d@swipnet.se>
14292
1ac9108a
SM
14293 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
14294 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
14295 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
14296 is deprecated.
14297
973e7849
AS
142982009-04-18 Andreas Schwab <schwab@linux-m68k.org>
14299
14300 * font.c (font_put_frame_data): Use xfree instead of free.
14301
314d66f4
JB
143022009-04-17 Juanma Barranquero <lekktu@gmail.com>
14303
14304 * w32font.c (Qja, Qko): Remove declarations.
14305 (syms_of_w32font): Don't DEFSYM them.
14306
cf702558
CY
143072009-04-17 Chong Yidong <cyd@stupidchicken.com>
14308
14309 * font.c (Qja, Qko): Move definitions here from ftfont.c.
14310
14311 * font.h (Qja, Qko): Extern them.
14312
14313 * ftfont.c (Qja, Qko): Remove declarations.
14314
14315 * xfont.c (Qja, Qko): Remove declarations.
14316
b50504f5
KH
143172009-04-17 Kenichi Handa <handa@m17n.org>
14318
bde25748
KH
14319 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
14320 string from a vector to handle Latin-1 characters correctly.
14321
b50504f5
KH
14322 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
14323 entity even if the cache hits.
14324
f4646fff
AS
143252009-04-16 Andreas Schwab <schwab@linux-m68k.org>
14326
14327 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 14328 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 14329
e7deaab0
AS
14330 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
14331 * lisp.h: Adjust prototypes.
14332
0a0e7d49
CY
143332009-04-16 Chong Yidong <cyd@stupidchicken.com>
14334
14335 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
14336 change (Bug#3003).
14337
3c908a57
KH
143382009-04-16 Kenichi Handa <handa@m17n.org>
14339
1ac9108a 14340 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
14341
14342 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
14343 adstyle.
14344
14345 * ftfont.c (Qja, Qko): Don't make them static.
14346 (enum ftfont_cache_for): New enum.
14347 (fc_charset_table): Undo the previous change.
14348 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
14349 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
14350 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
14351 non-scarable font, try to get AVERAGE_WIDTH.
14352 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
14353 Change ft_face_cache from a list of a hash-table. Don't check
14354 `ja' and `ko' adstyle here.
14355 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
14356 FTFONT_CACHE_FOR_CHARET.
14357 (ftfont_get_charset): Undo the previous change.
1ac9108a 14358 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
14359 (ftfont_close): Likewise.
14360 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
14361
14362 * font.c (font_sort_entites): Change the meaning of the arg
14363 BEST-ONLY. Don't optimize for VEC of lenght 1.
14364 (font_select_entity): Just return the value of font_sort_entites.
14365
14366 * xfaces.c (merge_face_vectors): Reflect font properties in
14367 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
14368 font_clear_prop if a face attribute doesn't change.
14369
3c908a57
KH
14370 * charset.h (charset_ksc5601): Extern it.
14371
14372 * charset.c (charset_ksc5601): New variable.
14373 (Fdefine_charset_internal): Set charset_ksc5601.
14374 (init_charset_once): Initialize charset_ksc5601 to -1.
14375
d65859c3
DN
143762009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
14377
14378 * fileio.c (history_delete_duplicates): Remove unused declaration.
14379
14380 * callint.c (history_delete_duplicates): New declaration.
14381 (Fcall_interactively): Remove command history duplicates when
14382 history_delete_duplicates is true.
14383
3ba010e5
EZ
143842009-04-14 Eli Zaretskii <eliz@gnu.org>
14385
14386 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
14387
06f19b91
KH
143882009-04-14 Kenichi Handa <handa@m17n.org>
14389
14390 * font.c (Ffont_info): Fix docstring. Fix the second element of
14391 the returned value (bug#2949).
14392
2cce8bfc
CY
143932009-04-14 Chong Yidong <cyd@stupidchicken.com>
14394
14395 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
14396
d156542d
KH
143972009-04-14 Kenichi Handa <handa@m17n.org>
14398
14399 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
14400 encoding charset is ascii_compatible.
14401
14402 * charset.c (Fdefine_charset_internal): Make charset
14403 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
14404 code_offset is 0, and covers all ASCII characters.
14405
86fa089e
SM
144062009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
14407
14408 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
14409 (ns_string_to_pasteboard_internal):
14410 * nsmenu.m (process_dialog):
14411 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
14412 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
14413 * lisp.h (Fx_load_color_file): Declare.
14414
a8a3728b
KH
144152009-04-13 Kenichi Handa <handa@m17n.org>
14416
1ac9108a 14417 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
14418 (font_select_entity): Suppress the code to optimize for the same
14419 kind of fonts.
14420 (font_load_for_lface): Get a font that supports at least ASCII
14421 characters.
14422
14423 * ftfont.c (Qja, Qko): New variables.
14424 (fc_charset_table): Delete uniquifier data for iso8859-1.
14425 (ftfont_get_latin1_charset): New function.
14426 (get_adstyle_property): New function.
14427 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
14428 bitmap fonts.
14429 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
14430 Delete iso-8859-1 range from the charset of fonts whose adstyle is
14431 `ko' or `ja'.
14432 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 14433 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
14434 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
14435 property.
14436 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
14437 (syms_of_ftfont): DEFSYM Qja and Qko.
14438
483670b5
KH
144392009-04-09 Kenichi Handa <handa@m17n.org>
14440
12b55765
KH
14441 * charset.c (map_charset_chars): For a charset of `superset'
14442 method, fix calculation of code range.
14443
483670b5
KH
14444 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
14445 from the list of extra properties.
14446 (font_clear_prop): Be sure to delete `:name' font property.
14447
57d3b93b
KH
144482009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14449
b4b2c2ca
YM
14450 * dispnew.c (redraw_overlapping_rows): Fix detection of
14451 overlapping for topmost and bottommost rows.
14452
1ac9108a 14453 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 14454
472c3609
JR
144552009-04-06 Jason Rumney <jasonr@gnu.org>
14456
14457 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
14458
ab193662
KH
144592009-04-06 Kenichi Handa <handa@m17n.org>
14460
14461 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
14462
14463 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
14464
0c26f026
KH
144652009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14466
14467 * ftfont.c (ftfont_open): Fix checking of the return value of
14468 FT_Load_Char. Fix setting font->underline_thickness.
14469
e173bbce
CY
144702009-04-04 Chong Yidong <cyd@stupidchicken.com>
14471
14472 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
14473 (Fterminal_parameters, Fterminal_parameter)
14474 (Fset_terminal_parameter): In doc string, refer to terminal
14475 objects rather than terminal ids.
14476
693a2698
EZ
144772009-04-04 Eli Zaretskii <eliz@gnu.org>
14478
14479 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
14480 ret_lim_data. (Bug#2867)
14481
d5221487
CY
144822009-04-03 Chong Yidong <cyd@stupidchicken.com>
14483
14484 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
14485 so they don't get wider than the window, matching 2006-01-23
14486 change to the partner function in xdisp.c (Bug#2800).
14487
223509a3
KH
144882009-04-03 Kenichi Handa <handa@m17n.org>
14489
14490 * print.c (print_object): Make each lowest sub_char_table start a
14491 new line (Bug#2866).
14492
74fcd0b1
KH
144932009-04-02 Kenichi Handa <handa@m17n.org>
14494
14495 * fontset.c (fontset_font): Record no-font when a fontset
14496 explicitly tells not to try another font-specs.
14497
c542407d
SM
144982009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
14499
14500 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
14501
e3869731
KH
145022009-03-30 Kenichi Handa <handa@m17n.org>
14503
d8d2f142
KH
14504 * fontset.c (fontset_from_font): Specify only registry in a
14505 font-spec for all characters supported by that registry.
14506
e3869731
KH
14507 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
14508 even if HAVE_M17N_FLT is not defined.
14509
5da5f805
CY
145102009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
14511
14512 * ftfont.c: Conditionalize prototyping and use of
14513 ftfont_variation_glyphs.
14514
ab226c50
SM
145152009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14516
9628fed7
SM
14517 * frame.c (delete_frame): Work around compiler bug.
14518
14519 * editfns.c (general_insert_function): Adjust to insdel.c changes.
14520 * insdel.c (prepare_to_modify_buffer, signal_before_change):
14521 Some more EMACS_INT.
14522 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
14523
14524 * xdisp.c (dump_glyph): Fix typo.
14525
ae19ba7c
SM
14526 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
14527 (adjust_markers_gap_motion, adjust_markers_for_delete)
14528 (adjust_markers_for_insert, adjust_point)
14529 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
14530 (make_gap, copy_text, count_size_as_multibyte, insert)
14531 (insert_and_inherit, insert_before_markers)
14532 (insert_before_markers_and_inherit, insert_1)
14533 (count_combining_before, count_combining_after, insert_1_both)
14534 (insert_from_string, insert_from_string_before_markers)
14535 (insert_from_string_1, insert_from_gap, insert_from_buffer)
14536 (insert_from_buffer_1, adjust_after_replace)
14537 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
14538 (replace_range_2, del_range, del_range_1, del_range_byte)
14539 (del_range_both, del_range_2, modify_region)
14540 (prepare_to_modify_buffer, signal_before_change)
14541 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
14542 for buffer positions and sizes.
14543 * lisp.h: Adjust prototypes accordingly.
14544
14545 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
14546 (non_regular_inserted, non_regular_nbytes, read_non_regular)
14547 (Finsert_file_contents): Use EMACS_INT for buffer positions.
14548
ab226c50
SM
14549 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
14550
46dfb8fb
JD
145512009-03-27 Jan Djärv <jan.h.d@swipnet.se>
14552
14553 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
14554 lines and columns so we keep the same pixel height and width.
14555
14556 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
14557 the property _NET_WM_STATE has changed.
46dfb8fb
JD
14558 (x_handle_net_wm_state): New function to update frame parameter
14559 fullscreen.
14560 (x_term_init): Initialize atoms for _NET_WM_STATE.
14561
14562 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
14563
d347e494
SM
145642009-03-27 Kevin Ryde <user42@zip.com.au>
14565
14566 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
14567 Gpm_GetEvent as an error that justifies closing the filedescriptor.
14568 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
14569 (Fgpm_mouse_stop): Pass that new parameter.
14570 * termhooks.h (close_gpm): Adjust prototype.
14571
84db11d6
SM
145722009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14573
c95a5008
SM
14574 * lisp.h (Fx_focus_frame): Declare.
14575
84db11d6
SM
14576 * callint.c (Fcall_interactively): For '^' just delegate the work to
14577 handle-shift-selection.
14578 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
14579
0a1958d6
CY
145802009-03-24 Chong Yidong <cyd@stupidchicken.com>
14581
0bfdff23
CY
14582 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
14583
0a1958d6
CY
14584 * data.c (Qinteractive_form): New variable.
14585 (Finteractive_form): Use it.
14586
14587 * eval.c (Fcommandp): Use Qinteractive_form.
14588
58aec0d6
JR
145892009-03-24 Jason Rumney <jasonr@gnu.org>
14590
14591 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
14592 Calculate total size precisely. Decode environment variables
14593 before substituting. (Bug#38)
14594
553dd618
KH
145952009-03-24 Kenichi Handa <handa@m17n.org>
14596
14597 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 14598 encoding (Bug#2722).
553dd618 14599
c39ea606
JD
146002009-03-23 Jan Djärv <jan.h.d@swipnet.se>
14601
14602 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
14603 that gdpy is set.
14604
bc9b2b5e
AM
146052009-03-22 Alan Mackenzie <acm@muc.de>
14606
14607 * callint.c (Finteractive): Clarify the doc string - even
14608 promptless elements need \n separators.
14609
9f995a76
JR
146102009-03-22 Jason Rumney <jasonr@gnu.org>
14611
14612 * w32term.c (syms_of_w32term): Doc fix for
14613 x-use-underline-position-properties.
14614
22749e9a
EZ
146152009-03-21 Eli Zaretskii <eliz@gnu.org>
14616
14617 * w32.c (getpwuid): Change argument type to unsigned.
14618 (struct w32_id): Change type of `rid' member to unsigned.
14619 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
14620 argument ID to unsigned. All callers changed.
14621 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
14622
e00553bf
EZ
146232009-03-20 Eli Zaretskii <eliz@gnu.org>
14624
14625 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
14626 negative, produce a float value.
14627
14628 * dired.c (make_uid, make_gid): New functions.
14629 (Ffile_attributes): Use them to avoid negative UID and GID.
14630
f761d6b6
JB
146312009-03-20 Juanma Barranquero <lekktu@gmail.com>
14632
14633 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14634 (syms_of_keyboard) <command-hook-internal, input-method-function>:
14635 Fix typos in docstrings.
14636
d507f8d7
KH
146372009-03-19 Kenichi Handa <handa@m17n.org>
14638
14639 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
14640 changed, use font_load_for_lface to get a new font object.
14641 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
14642
14643 * frame.c (x_set_font): Handle the case that ARG is a cons.
14644
c68845e0
GM
146452009-03-19 Glenn Morris <rgm@gnu.org>
14646
14647 * fileio.c (Fsubstitute_in_file_name): Doc fix.
14648
bfa49dd1
CY
146492009-03-19 Chong Yidong <cyd@stupidchicken.com>
14650
14651 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14652
8458d4c1
KH
146532009-03-19 Kenichi Handa <handa@m17n.org>
14654
14655 * charset.c (load_charset_map_from_file): When a mapfile can't be
14656 loaded, signal an error.
14657
78e7d1fe
EZ
146582009-03-18 Eli Zaretskii <eliz@gnu.org>
14659
14660 * dired.c (Ffile_attributes): Make sure UID and GID are always
14661 positive, even if the value is too large for a positive EMACS_INT.
14662 Doc fix.
14663
14664 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
14665
5da9fdfa
YM
146662009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14667
14668 * xmenu.c (xdialog_show): Move Fredisplay call ...
14669 (Fx_popup_dialog): ... here.
14670
7519c40d
SM
146712009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
14672
14673 * dired.c (file_name_completion): Disable the first optimization just
14674 installed, since it is not implemented correctly.
14675
2cd298e2
SM
146762009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14677
14678 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 14679 only if the entry can affect bestmatch.
2cd298e2
SM
14680 Stop the search early, as Ftry_completion already does.
14681
48d37adf
CY
146822009-03-17 Chong Yidong <cyd@stupidchicken.com>
14683
e10c9c93 14684 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 14685
9286b16a
CY
146862009-03-15 Chong Yidong <cyd@stupidchicken.com>
14687
14688 * keyboard.c (parse_menu_item): Don't display remappings as menu
14689 equivalent bindings (Bug#788).
14690
f7b146dc
JR
146912009-03-15 Jason Rumney <jasonr@gnu.org>
14692
14693 * w32term.h (WM_EMACS_PAINT): New message.
14694 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14695 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14696 before passing to lisp thread. (Bug#950)
14697
f761d6b6 146982009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 14699
d93f9575
CY
14700 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14701 variable as it was never reset.
14702 (ns_term_init): Remove initialization of Lisp-settable defaults
14703 and ns_expand_space.
14704 (-setPanelFromDefaultValues): Remove ns_expand_space.
14705 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14706 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
14707 i.e. no additional spacing, similar to Carbon port.
14708
d93f9575
CY
14709 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14710 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 14711
305018ec
JD
147122009-03-14 Jan Djärv <jan.h.d@swipnet.se>
14713
14714 * sound.c (alsa_configure): Remove call to deprecated
14715 snd_pcm_sw_params_set_xfer_align.
14716
f761d6b6 147172009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
14718
14719 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14720 after clicking in a detached tool bar.
14721 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14722
46e722a9
SM
147232009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
14724
348db3dd
SM
14725 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14726 int/Lisp_Object mixup).
46e722a9 14727
a3d16f39
KH
147282009-03-13 Kenichi Handa <handa@m17n.org>
14729
14730 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 14731 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
14732 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14733 (set_fontset_font): Change ARG to a vector. Handle range_list in
14734 ARG correctly.
14735 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 14736 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
14737 the above change.
14738 (fontset_from_font): Fix previous change.
fe24f56a 14739 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
14740 entry. If FONTSET is the default fontset, don't set the extra
14741 slot of the returning char-table.
14742
b066e6b6
JB
147432009-03-12 Juanma Barranquero <lekktu@gmail.com>
14744
14745 * nsfns.m (Fx_close_connection): Doc fix.
14746 (Fns_do_applescript): Reflow docstring.
14747 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
14748 (Fx_display_pixel_width, Fx_display_pixel_height)
14749 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
14750 Fix typos in docstrings.
14751 (Fns_set_alpha): Fix typos in error messages.
14752
d472514e 147532009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 14754
d472514e 14755 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
14756 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
14757 were used for such events.
14758
d472514e
JB
14759 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14760 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 14761
d472514e 14762 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
14763 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14764
fb930676
KH
147652009-03-11 Kenichi Handa <handa@m17n.org>
14766
ff85581a
KH
14767 * font.h (font_open_by_spec): Extern it.
14768
c50b7e98
KH
14769 * font.c (font_open_by_spec): New function.
14770 (font_open_by_name): Use font_open_by_spec.
14771
fb930676
KH
14772 * frame.c (x_set_font): When ARG is a font-object, don't alter the
14773 fontset of the frame.
14774
14775 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14776 modify the default font of frames that use this fontset.
14777 (num_auto_fontsets): New variable.
14778 (fontset_from_font): Use num_auto_fontsets to decide a fontset
14779 name. Be sure to set FONTSET_ASCII to the correct font name.
14780 (update_auto_fontset_alist): New function.
14781
df4e8455
JB
147822009-03-11 Juanma Barranquero <lekktu@gmail.com>
14783
14784 * makefile.w32-in: Update dependencies.
14785
0a375797
AR
147862009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14787
14788 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
14789
61313fa3
SM
147902009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14791
14792 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
14793
b55103fb
CY
147942009-03-10 Chong Yidong <cyd@stupidchicken.com>
14795
14796 * lread.c (Feval_buffer): Doc fix.
14797
dde2559c
KH
147982009-03-09 Kenichi Handa <handa@m17n.org>
14799
14800 * charset.c (Qfile_name_handler_alist): Extern it.
14801 (load_charset_map_from_file): Temporarily bind
14802 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
14803
df4e8455 148042009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 14805
47f588bb
GM
14806 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
14807 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 14808
4ddf94bd
AR
148092009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14810
4c9bdfc2
AR
14811 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
14812 (x_set_window_size): Change back to calculated method of setting
14813 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
14814 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
14815 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
14816
fe41ae9e
AR
14817 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
14818
4c9bdfc2
AR
14819 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
14820 accelerator in parens under GNUstep.
14821
825d0875
KH
148222009-03-06 Kenichi Handa <handa@m17n.org>
14823
14824 These changes are to detect incorrect composition sequence without
f3b3be74 14825 looking ahead the source. (Bug#2370)
825d0875
KH
14826
14827 * coding.h: Include "composite.h".
14828 (enum compisition_state): New enum.
14829 (struct compisition_status): New struct.
14830 (struct iso_2022_spec): New member cmp_status.
14831 (struct emacs_mule_spec): New struct.
14832 (struct coding_system): New members ctext_extended_segment_len and
14833 embedded_utf_8. Change the union member
14834 spec.emacs_mule_full_support to spec.emacs_mule.
14835
14836 * coding.c (CODING_ISO_CMP_STATUS): New macro.
14837 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 14838 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
14839 (ADD_COMPOSITION_DATA): New arg nbytes.
14840 (emacs_mule_char): New arg cmp_status.
14841 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
14842 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
14843 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
14844 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
14845 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
14846 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
14847 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
14848 (EMACS_MULE_COMPOSITION_END): New macro.
14849 (emacs_mule_finish_composition): New function.
14850 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
14851 (decode_coding_emacs_mule): Avoid long looking ahead while
14852 handling composition.
14853 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
14854 (ENCODE_COMPOSITION_RULE): New macro.
14855 (finish_composition): New function.
14856 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
14857 (DECODE_COMPOSITION_START): New implementation.
14858 (DECODE_COMPOSITION_END): Likewise.
14859 (STORE_COMPOSITION_RULE): New macro.
14860 (decode_coding_iso_2022): Avoid long looking ahead while handling
14861 composition, CTEXT extended segment, and embedded UTF-8.
14862 (setup_coding_system): For a coding of type iso-2022, reset
14863 CODING_ISO_EXTSEGMENT_LEN (coding) and
14864 CODING_ISO_EMBEDDED_UTF_8 (coding).
14865 (get_translation): Delete arguments last_block, from_nchars,
14866 to_nchars. Callers changed.
14867 (produce_chars): Don't modify charbuf. Adjusted for the change of
14868 get_translation.
98a326f7 14869 (produce_composition): Adjust for the new annotation sequence.
825d0875 14870 (handle_composition_annotation): Likewise.
98a326f7 14871 (consume_chars): Adjust for the change of get_translation.
825d0875 14872
ccbc4452
AR
148732009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
14874
4ddf94bd 14875 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 14876
988a7ddb
KH
148772009-03-05 Kenichi Handa <handa@m17n.org>
14878
14879 * font.c (font_select_entity): New function.
14880 (font_find_for_lface): Use font_select_entity to select a font.
14881
14882 * fontset.c (fontset_find_font): If a font found without
a8a3728b 14883 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
14884 font with C restriction.
14885
98a326f7 148862009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 14887
be1bce46 14888 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 14889
10ea2b82
JR
148902009-03-04 Jason Rumney <jasonr@gnu.org>
14891
2c93b248 14892 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 14893 characters that have already been read. (Bug#2569)
2c93b248 14894
10ea2b82
JR
14895 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
14896 Log an error message if check_image_size failed.
14897 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 14898 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 14899
71a0c011
EZ
149002009-03-02 Eli Zaretskii <eliz@gnu.org>
14901
14902 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
14903 when decoding process output.
14904
2f63bba8
RS
149052009-03-01 Richard M Stallman <rms@gnu.org>
14906
14907 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
14908
14909 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
14910
0a9564cb
EZ
149112009-02-28 Eli Zaretskii <eliz@gnu.org>
14912
14913 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
14914 (decode_coding_emacs_mule, decode_coding_iso_2022)
14915 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14916 (decode_coding_raw_text, decode_coding_charset)
14917 (setup_coding_system, decode_eol, decode_coding, consume_chars):
14918 Honor inhibit-eol-conversion. (Bug #2186)
14919
449148b3
JR
149202009-02-28 Jason Rumney <jasonr@gnu.org>
14921
14922 * coding.c (detect_coding_charset): If not checking latin extra,
14923 fail on characters between 0x80 and 0xA0. (Bug#2354)
14924
a4aee864
EZ
149252009-02-28 Eli Zaretskii <eliz@gnu.org>
14926
14927 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 14928 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 14929
d88bee5a
GM
149302009-02-27 Glenn Morris <rgm@gnu.org>
14931
14932 * callint.c (Finteractive): Doc fix.
14933
a808f22d
KH
149342009-02-27 Kenichi Handa <handa@m17n.org>
14935
14936 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
14937
caf8d60c
CY
149382009-02-27 Chong Yidong <cyd@stupidchicken.com>
14939
14940 * font.c (font_style_to_value): Set value for unknown symbols to
14941 100 instead of 255.
b61137ea
CY
14942 (weight_table, slant_table, width_table): Treat "unspecified" as
14943 the default value.
caf8d60c 14944
1a0de25c
JB
149452009-02-26 Juanma Barranquero <lekktu@gmail.com>
14946
14947 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
14948
8fc45744
JB
149492009-02-25 Juanma Barranquero <lekktu@gmail.com>
14950
107bd7d1
JB
14951 * lread.c (Fload): Stop checking Vloads_in_progress and signal
14952 error as soon as a recursive load is detected.
8fc45744 14953
f097e223
AR
149542009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14955
14956 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
14957 before caching.
14958
8810a12f
KH
149592009-02-24 Kenichi Handa <handa@m17n.org>
14960
14961 * fontset.c (fontset_find_font): Fix the condition for checking
14962 unavailable font.
14963
2c7d1565
GM
149642009-02-24 Glenn Morris <rgm@gnu.org>
14965
14966 * xfaces.c (Finternal_set_font_selection_order): Remove leading
14967 whitespace that confuses documentation.
14968
a20878b6
MB
149692009-02-23 Miles Bader <miles@gnu.org>
14970
14971 * process.c (Flist_system_processes, Fprocess_attributes)
14972 (syms_of_process): Rename `system-process-attributes' to
14973 `process-attributes'.
14974
b3b58c01
AS
149752009-02-22 Andreas Schwab <schwab@linux-m68k.org>
14976
1b3b981b
AS
14977 * coding.h (struct coding_system): Make safe_charsets a pointer to
14978 unsigned char.
14979 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
14980 being 255.
14981 (SAFE_CHARSET_P): Likewise.
14982 (setup_iso_safe_charsets): Properly setup safe_charsets.
14983 (Fdefine_coding_system_internal): Likewise.
14984 (setup_coding_system): Likewise. Remove unneeded casts.
14985 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
14986 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
14987 Remove unneeded casts.
1b3b981b 14988
b3b58c01
AS
14989 * insdel.c (del_range_2): Don't modify gap contents when called
14990 from decode_coding_object. (Bug#1809)
14991
0b6f228c
CY
149922009-02-21 Chong Yidong <cyd@stupidchicken.com>
14993
14994 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
14995 Qfont_object.
14996 (Ftype_of): Recognize font objects.
14997
14998 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
14999
bba3e508
SM
15000 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
15001 Definitions moved to data.c.
0b6f228c 15002
52f8870b
AR
150032009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15004
15005 * nsterm.m (x_make_frame_invisible): Unset async_visible,
15006 async_iconified. Based on a patch by Christian Lynbech
15007 <christian.lynbech@tieto.com>.
15008 (EmacsView-windowDidMiniaturize:): Unset async_visible.
15009
7087d5e9
GM
150102009-02-20 Glenn Morris <rgm@gnu.org>
15011
15012 * syntax.c (Fskip_chars_forward): Fix doc typo.
15013
41d2ceef
CY
150142009-02-20 Chong Yidong <cyd@stupidchicken.com>
15015
15016 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
15017
1a3b7ca6
CY
150182009-02-19 Chong Yidong <cyd@stupidchicken.com>
15019
15020 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
15021
73cce38d
KH
150222009-02-19 Kenichi Handa <handa@m17n.org>
15023
15024 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 15025 Don't overflow coding->carryover. (Bug#2370)
73cce38d 15026
a51092ee
DN
150272009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
15028
15029 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
15030
c423ecca
KH
150312009-02-18 Kenichi Handa <handa@m17n.org>
15032
15033 * font.c (font_check_otf_features): Fix handling of `nil' element.
15034 (Ffont_spec): Describe :lang and :otf in the docstring.
15035
4c1958f4
AS
150362009-02-16 Andreas Schwab <schwab@suse.de>
15037
15038 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
15039 string.
15040
5704f39a
KH
150412009-02-16 Kenichi Handa <handa@m17n.org>
15042
15043 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 15044 (Bug#1723)
5704f39a 15045
8f0085aa
CY
150462009-02-14 Chong Yidong <cyd@stupidchicken.com>
15047
a057d86a 15048 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
15049
15050 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
15051 (handle_line_prefix): Suppress wrapping of wrap prefixes.
15052
aff01dd9
EZ
150532009-02-14 Eli Zaretskii <eliz@gnu.org>
15054
15055 * msdos.c (MAX_SCREEN_BUF): New macro.
15056 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
15057 Encode the entire run of glyphs sharing the same face, instead of
15058 doing that one glyph at a time (fixes a bug with displaying
15059 double-size characters).
15060
ba301db3
AR
150612009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
15062
15063 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
15064
15065 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
15066 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 15067 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
15068
15069 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 15070 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 15071
51d861de
SM
150722009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15073
ac146f82 15074 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
15075 invisible areas.
15076
7fed8996
JR
150772009-02-12 Jason Rumney <jasonr@gnu.org>
15078
631ea4fb
JR
15079 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
15080 (add_font_entity_to_list): Call check_face_name even when family
15081 is unspecified.
15082
cb4a3e42
JR
15083 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15084 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 15085 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 15086
7fed8996 15087 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 15088 raster fonts. (Bug#2219)
7fed8996 15089
895416e3
KH
150902009-02-12 Kenichi Handa <handa@m17n.org>
15091
15092 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
15093 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
15094 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 15095 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
15096 (find_automatic_composition): While looking forward and backward,
15097 check static composition. Fix where to stop looking forward.
15098 (composition_adjust_point): Fix checking of static composition.
15099 (Fcomposition_get_gstring): Pay attention to
1dacf998 15100 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
15101
15102 * lisp.h (fast_looking_at): Extern it.
15103
15104 * search.c (fast_looking_at): New function.
15105
51d861de 15106 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
15107 <struct glyph>.u.cmp.to.
15108 (append_composite_glyph): Likewise.
15109
51d861de 15110 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
15111 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
15112 composition.
51d861de 15113 (append_composite_glyph): Adjust for the change of
895416e3
KH
15114 <strcut glyph>.u.cmp.to.
15115
8510724d
JB
151162009-02-11 Juanma Barranquero <lekktu@gmail.com>
15117
15118 * casetab.c (init_casetab_once):
15119 * coding.c (ALLOC_CONVERSION_WORK_AREA):
15120 * font.c (font_update_lface):
15121 * fontset.c (Fnew_fontset):
15122 * ftfont.c (ftfont_drive_otf):
15123 * xfont.c (xfont_open):
15124 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
15125
294fa707
SM
151262009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15127
15128 * fileio.c (Fwrite_region): !NILP -> CONSP.
15129
b5bfebec
AS
151302009-02-10 Andreas Schwab <schwab@suse.de>
15131
15132 * process.c (send_process): Properly relocate pointer into data
adab88bd 15133 when using encoded data. (Bug#2272)
b5bfebec 15134
cb84a2be
KH
151352009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
15136
15137 * coding.c (detect_coding_charset): Fix previous change.
15138
89e09428
JR
151392009-02-08 Jason Rumney <jasonr@gnu.org>
15140
15141 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 15142 disappeared while hourglass was displayed. (Bug #2193)
89e09428 15143
4470a277
AS
151442009-02-07 Andreas Schwab <schwab@suse.de>
15145
15146 * unexelf.c (unexec): Fix error message.
15147
3175b12a
AR
151482009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
15149
15150 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 15151 when modal window is active. (Bug #2152)
3175b12a
AR
15152 (applicationShouldTerminate:): Remove now-unneeded while loop
15153 around NSRunAlertPanel.
15154
15155 * nsmenu.m (popupSession): New file-global variable.
15156 (pop_down_menu): End the popupSession before closing dialog.
15157 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
15158 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
15159 don't query NSApp for events (just sleep instead).
15160
8434d0b8
EZ
151612009-02-07 Eli Zaretskii <eliz@gnu.org>
15162
51d861de
SM
15163 * coding.c (syms_of_coding) <translation-table-for-input>:
15164 Modify doc string to discourage use for character code unification.
8434d0b8 15165
aa82edfd
CY
151662009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15167
15168 * atimer.c (run_timers): Update pending_atimers.
15169
2d283c7c
CY
151702009-02-06 Chong Yidong <cyd@stupidchicken.com>
15171
eb306cab
CY
15172 * image.c (svg_load_image): Fix last change.
15173
2d283c7c
CY
15174 * xfns.c (Fx_create_frame): Signal an error if no font is
15175 found (Bug#2147).
15176
4d8e170e
JB
151772009-02-05 Juanma Barranquero <lekktu@gmail.com>
15178
15179 * character.c (syms_of_character) <script-representative-chars>:
15180 Fix typo in docstring.
15181
c96169a0
AR
151822009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15183
15184 * nsmenu.m (pop_down_menu): New function.
15185 (ns_popup_dialog): Call it on unwind.
15186 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
15187 call timer_check() (Bug#2154).
15188 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
15189 handling_signal is set.
15190 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
15191
31fd7c5c 15192 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
15193
15194 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
15195
15196 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
15197
51d861de
SM
15198 * keyboard.c (poll_for_input_1, handle_async_input):
15199 Set handling_signal under HAVE_NS.
c96169a0 15200
aacd8ba1
GM
152012009-02-04 Glenn Morris <rgm@gnu.org>
15202
15203 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
15204
4cb75c4b
KH
152052009-02-04 Kenichi Handa <handa@m17n.org>
15206
15207 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
15208
15209 * charset.c (Fchar_charset): New optional arg restriction.
15210
15211 * coding.h (coding_system_charset_list): Extern it.
15212
15213 * coding.c (coding_system_charset_list): New function.
15214
15215 * composite.c: Include coding.h and termhooks.h.
15216 (composition_gstring_p): Fix for the terminal case.
15217 (composition_gstring_width): Likewise.
15218 (fill_gstring_body): Likewise.
15219 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
15220 the frame.
15221 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
15222 is within a composition.
867d4bb3 15223 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
15224
15225 * term.c (encode_terminal_code): Fix handling of composition.
15226 (produce_composite_glyph): For static composition, get pixel_width
15227 from struct composition.
15228
826ba17e
AS
152292009-02-02 Andreas Schwab <schwab@suse.de>
15230
15231 * unexelf.c (unexec): Handle unaligned bss offset.
15232
8ad093db
AR
152332009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15234
15235 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
15236 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 15237
8ad093db
AR
15238 * keyboard.c (handle_interrupt): Don't call
15239 quit_throw_to_read_char() under NS.
d0a76a6e 15240
8ad093db
AR
15241 * blockinput.h: Remove NS-specific code.
15242
4d18a7a2
DN
152432009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
15244
db878925
DN
15245 * dispnew.c (window_change_signal): Don't try to get the size of a
15246 suspended tty frame.
15247 * term.c (Fresume_tty): Resize if the size has changed while the
15248 tty was suspended.
15249
4d18a7a2
DN
15250 * alloc.c (mark_stack): Properly conditionalize previous change.
15251
8984df7c
JB
152522009-01-30 Juanma Barranquero <lekktu@gmail.com>
15253
15254 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
15255 * w32term.c (w32_read_socket) [SYNC_INPUT]:
15256 Remove; this code is not used on Windows.
15257
75f4f1ac
EZ
152582009-01-30 Eli Zaretskii <eliz@gnu.org>
15259
15260 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
15261 EOLs that also has stray ^M characters.
15262
07a1e794
JB
152632009-01-30 Juanma Barranquero <lekktu@gmail.com>
15264
15265 * atimer.c (run_timers, alarm_signal_handler):
15266 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
15267 * w32inevt.c (w32_console_read_socket):
15268 * w32term.c (w32_read_socket):
15269 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
15270
a8b11cc9
CY
152712009-01-30 Chong Yidong <cyd@stupidchicken.com>
15272
15273 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
15274 Initialize it as a relative filename pattern.
15275 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
15276 (Fcall_process_region): Simplify temp file creation using
15277 temporary-file-directory.
15278
c279587b
EZ
152792009-01-29 Eli Zaretskii <eliz@gnu.org>
15280
15281 * msdos.c: Rename pending_signals to msdos_pending_signals.
15282 (sig_suspender, sigprocmask): Adjust.
15283
a8fe3242
CY
152842009-01-29 Chong Yidong <cyd@stupidchicken.com>
15285
15286 * keyboard.c (pending_signals): New var.
15287 (poll_for_input, input_available_signal, init_keyboard): Set it.
15288 (process_pending_signals): New function.
15289
15290 * lisp.h (QUIT): Check pending_signals instead of
15291 interrupt_input_pending. Use process_pending_signals.
15292
51d861de 15293 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 15294
51d861de 15295 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
15296
15297 * sysdep.c (emacs_write): Use process_pending_signals.
15298
15299 * xterm.c (XTread_socket): Update pending_signals.
15300
15301 * w32term.c (w32_read_socket): Update pending_signals.
15302
15303 * w32inevt.c (w32_console_read_socket): Update pending_signals.
15304
6570a1c4
KH
153052009-01-29 Kenichi Handa <handa@m17n.org>
15306
15307 * xftfont.c (xftfont_has_char): New function.
15308 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
15309
d72a4afa
AR
153102009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15311
15312 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
15313 under GNUstep.
15314 (ns_query_color): New declaration.
15315
15316 * nsterm.m (ns_confirm_quit): New variable.
15317 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
15318 (EmacsApp-applicationShouldTerminate:): Use it.
15319 (EmacsPrefsController): Let user set it.
15320 (ns_query_color): New function.
15321 (ns_defined_color): Use it.
15322 (ns_initialize): Drop.
15323 (ns_term_init): Add two lines from ns_initialize(), and set
15324 input_interrupt_mode to nil.
15325
15326 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 15327 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 15328
9fe78804
KH
153292009-01-28 Kenichi Handa <handa@m17n.org>
15330
15331 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
15332 (fontset_get_font_group): Remember that no font-group is specified
15333 for C.
9fe78804 15334
fa57de36
CY
153352009-01-27 Chong Yidong <cyd@stupidchicken.com>
15336
930600e9
CY
15337 * fns.c (concat): Check for string overflow (bug#1787).
15338
fa57de36
CY
15339 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
15340 Quadruple undo limits (bug#1501).
15341
7179ce7b
KH
153422009-01-27 Kenichi Handa <handa@m17n.org>
15343
15344 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
15345 directly use GT_Get_Char_index.
15346
15347 * xftfont.c (struct xftfont_info): New member `index'.
15348
15349 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 15350 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 15351
5be8fcc0
CY
153522009-01-26 Kenichi Handa <handa@m17n.org>
15353
15354 * fontset.c (fontset_find_font): Fix handling of non-cons return
15355 value of fontset_get_font_group.
15356 (fontset_font): Revert last change.
15357
19ae3e61
JR
153582009-01-26 Jason Rumney <jasonr@gnu.org>
15359
15360 * w32font.c (w32font_list_internal): Return quickly if registry is
15361 unknown. Simplify final return.
15362 (add_font_entity_to_list): Break complex logic down into more
15363 manageable chunks. Move unknown registry check to
15364 w32font_list_internal.
15365
8612b71a
AR
153662009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
15367
15368 Changes to remove Feval calls from GUI under NS.
15369
d8038940
JB
15370 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
15371 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
15372 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
15373
15374 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
15375 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
15376 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
15377 instead of NON_ASCII_KEYSTROKE_EVENT.
15378 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
15379 (EmacsApp-applicationShouldTerminate:): Query user.
15380 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
15381 instead of Feval.
15382
15383 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
15384
15385 * keyboard.c (kbd_buffer_get_event): Check for it.
15386 (keys_of_keyboard): Define lispy keys for
15387 ns-put/unput-working-text.
15388
15389 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
15390 versions.
15391 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
15392
6288ae55
CY
153932009-01-25 Chong Yidong <cyd@stupidchicken.com>
15394
15395 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 15396 setting current_buffer directly. (Bug#2044)
6288ae55 15397
289e7f8f
CY
153982009-01-24 Chong Yidong <cyd@stupidchicken.com>
15399
5ce87308 15400 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 15401 any work. (Bug#1952, bug#1990).
5ce87308 15402
64cc3cf6 15403 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 15404
b3243e6f
AR
154052009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
15406
15407 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
15408 (ns_no_defaults): New declaration.
15409 (main): Use it.
e0d2e69a 15410
d900b2af 15411 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 15412
d900b2af 15413 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 15414
d900b2af
AR
15415 * nsterm.m (ns_no_defaults): New variable.
15416 (ns_initialize): Don't read defaults when ns_no_defaults.
15417 (EmacsView-readSelectionFromPasteboard:)
15418 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 15419 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
15420 (ns_dumpglyphs_stretch): New function.
15421 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 15422 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 15423
e0d2e69a
AR
15424 * nsimage.m (setPixmapData:): Set to ignore image DPI.
15425
3ac71f5d
CY
154262009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
15427
15428 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
15429 call for Sparc64.
15430
3fe53a83
AR
154312009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15432
15433 * nsfns.m:
15434 * nsgui.h:
15435 * nsmenu.m:
15436 * nsselect.m:
15437 * nsterm.h:
15438 * nsterm.m: Remove '23' comments that indicated code added during
15439 update from emacs-20 -> emacs-23.
15440
10f87c6f 154412009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
15442
15443 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 15444 ns_alternate_modifier. (Bug#1217)
a3b53a85 15445
c7cef62d
AR
15446 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
15447 Display all shortcuts, including those w/o super modifier.
15448
575fb8bd
AR
15449 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
15450
918b848b
CY
154512009-01-22 Chong Yidong <cyd@stupidchicken.com>
15452
15453 * fileio.c (Vwrite_region_post_annotation_function)
15454 (Vwrite_region_annotation_buffers): New vars.
15455 (build_annotations_unwind): Just reset
15456 Vwrite_region_annotation_buffers.
15457 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
15458 Call write-region-post-annotation-function.
15459 (build_annotations): Add to Vwrite_region_annotation_buffers if
15460 buffer changes.
15461
a39e2539
AR
154622009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15463
15464 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
15465 Tiger.
51d861de
SM
15466 * nsfns.m (ns_do_applescript):
15467 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 15468
35ed44db
AR
154692009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
15470
15471 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
15472
cbe0b5bf
AR
154732009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15474
15475 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 15476
6049d3a0
AR
15477 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
15478
15479 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
15480 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
15481 handle Ctrl-tab. (Bug#1841)
15482 (ns_get_color): Use unsigned long long for scanned hex string value.
15483 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 15484 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 15485 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 15486 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 15487 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 15488 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 15489 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 15490
d3810c21 15491 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 15492 DPI. (Bug#1316)
d3810c21
AR
15493 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
15494 values in onTiger section.
4c7077c3 15495
e301e634
CY
154962009-01-19 Chong Yidong <cyd@stupidchicken.com>
15497
7f82490b
CY
15498 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
15499 Check return value of font_spec_from_name.
64cc3cf6 15500 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
15501
15502 * font.c (font_spec_from_name): Return Qnil if font name could not
15503 be parsed.
15504 (font_parse_name): Treat a `?' character as part of an XLFD.
15505
e301e634
CY
15506 * fns.c (Fsubstring): Doc fix.
15507
1c0db158
KH
155082009-01-19 Kenichi Handa <handa@m17n.org>
15509
51d861de 15510 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
15511 (ftfont_list): Likewise.
15512
acf20901
JB
155132009-01-18 Juanma Barranquero <lekktu@gmail.com>
15514
fff4e459
JB
15515 * dbusbind.c (Fdbus_register_signal):
15516 * process.c (conv_sockaddr_to_lisp):
15517 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
15518
acf20901
JB
15519 * callproc.c (Fgetenv_internal): Doc fix.
15520
e7abcdfb
CY
155212009-01-16 Chong Yidong <cyd@stupidchicken.com>
15522
15523 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
15524 it is not even used.
15525
b60861e6
GM
155262009-01-16 Glenn Morris <rgm@gnu.org>
15527
15528 * font.c (Ffont_variation_glyphs): Silence compiler.
15529
8db52afe
JB
155302009-01-15 Juanma Barranquero <lekktu@gmail.com>
15531
15532 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
15533 Reported by David Robinow <drobinow@gmail.com>.
15534
4cddb209
KH
155352009-01-15 Kenichi Handa <handa@m17n.org>
15536
51d861de 15537 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 15538
f247f67b
JR
155392009-01-14 Jason Rumney <jasonr@gnu.org>
15540
15541 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 15542 never a fontset. (Bug#1562)
f247f67b 15543
f56a4450
KH
155442009-01-14 Kenichi Handa <handa@m17n.org>
15545
15546 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 15547 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 15548
4e99855e
CY
155492009-01-13 Chong Yidong <cyd@stupidchicken.com>
15550
15551 * font.c (font_clear_prop): If clearing the family, clear the font
15552 width index too.
15553
fff4e459 15554 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 15555
24f01470
JB
155562009-01-12 Juanma Barranquero <lekktu@gmail.com>
15557
15558 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
15559 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
15560 functions, use sizeof.
15561
a41240a3
MR
155622009-01-12 Martin Rudalics <rudalics@gmx.at>
15563
15564 * keyboard.c (read_char): Fix case where last_nonmenu_event
15565 returned a bad value with submenus. (Bug#447)
15566
944636b8
CY
155672009-01-12 Chong Yidong <cyd@stupidchicken.com>
15568
15569 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
15570 family, clear the font width index too.
15571
0dad7c6f
JR
155722009-01-11 Jason Rumney <jasonr@gnu.org>
15573
15574 * keyboard.c (cmd_error_internal): Exit when errors occur before
15575 frame creation and not in daemon mode. (Bug#1836)
15576
7c2363af
CY
155772009-01-10 Chong Yidong <cyd@stupidchicken.com>
15578
15579 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
15580 of a display vector, backtrack.
15581 (try_window_reusing_current_matrix): Check glyph type before
15582 referencing charpos member.
15583
97b1b294
EZ
155842009-01-10 Eli Zaretskii <eliz@gnu.org>
15585
15586 Fix Bug #876:
15587
15588 * coding.c (inhibit_null_byte_detection): New variable.
15589 (detect_coding, detect_coding_system): Don't pay attention to null
15590 bytes if inhibit_null_byte_detection is non-zero.
51d861de 15591 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
15592 <inhibit-iso-escape-detection>: Doc fix.
15593
4624b6e3
JR
155942009-01-09 Jason Rumney <jasonr@gnu.org>
15595
15596 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 15597 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
15598 Only report Unicode Plane 2 fonts as unicode-sip.
15599
323b840c
CY
156002009-01-09 Chong Yidong <cyd@stupidchicken.com>
15601
51d861de
SM
15602 * xfaces.c (Fx_font_family_list): Delete function.
15603 Move compatibility version to faces.el.
323b840c 15604
51d861de 15605 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 15606
eba7400d
MR
156072009-01-09 Martin Rudalics <rudalics@gmx.at>
15608
15609 * frame.c (x_set_frame_parameters): Remember requested value for
15610 fullscreen before it's reset by the parameter handler.
15611
4b09796d
GM
156122009-01-09 Glenn Morris <rgm@gnu.org>
15613
15614 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 15615 (last_command_event): ... and update all users.
4b09796d
GM
15616 (last_input_char): For clarity, rename to...
15617 (last_input_event): ... and update all users.
15618 (last-command-char, last-input-char): Move to subr.el as aliases.
15619 * cmds.c, commands.h: Update for last_command_char rename.
15620
14ccea62
CY
156212009-01-08 Chong Yidong <cyd@stupidchicken.com>
15622
51d861de 15623 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 15624
5f004711
JR
156252009-01-08 Jason Rumney <jasonr@gnu.org>
15626
15627 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
15628 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
15629 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
15630 Don't declare.
fff4e459 15631 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
15632 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
15633
b71f6f73
KH
156342009-01-07 Kenichi Handa <handa@m17n.org>
15635
50b06221 15636 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 15637 remember the coding system used for decoding in
50b06221
KH
15638 coding_system (Bug#1039).
15639
b71f6f73 15640 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 15641 breaking the loop. (Bug#870)
b71f6f73
KH
15642 (decode_coding_utf_16, decode_coding_emacs_mule)
15643 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15644 (decode_coding_charset): Likewise.
15645
56f668f7
MR
156462009-01-05 Martin Rudalics <rudalics@gmx.at>
15647
15648 * frame.c (x_set_frame_parameters): Make sure height (width) get
15649 applied when fullwidth (fullheight) is set. (Bug#1522)
15650
5da9424d
JB
156512009-01-04 Juanma Barranquero <lekktu@gmail.com>
15652
15653 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
15654 (utc_base): Declare as ULONGLONG, not long double.
15655 (convert_time_raw): Delete.
15656 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15657 (initialize_utc_base): New function.
15658 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15659 (convert_from_time_t): Use initialize_utc_base; compute result with
15660 64-bit arithmetic.
15661 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15662
c4605e09
EZ
156632009-01-03 Eli Zaretskii <eliz@gnu.org>
15664
9acef61c 15665 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
15666 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15667 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15668 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15669 [!subprocesses]: Define.
15670 (syms_of_process) [!subprocesses]: Intern and staticpro them.
15671 (Flist_system_processes, Fsystem_process_attributes)
15672 [!subprocesses]: Call list_system_processes and
15673 system_process_attributes instead of returning Qnil.
15674
9acef61c
JB
15675 * dosfns.c (system_process_attributes, list_system_processes):
15676 New functions.
c4605e09
EZ
15677
15678 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15679
15680 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15681 Don't use the default (no-op) implementation.
15682
8b7d0a16
JR
156832009-01-03 Jason Rumney <jasonr@gnu.org>
15684
a6d46bc1
JR
15685 * keyboard.c (parse_modifiers_uncached): Wheel events are
15686 clicks (bug#687).
15687
8b7d0a16
JR
15688 * w32term.c (x_query_colors, x_query_color): New functions.
15689
15690 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15691 (svg_load_image): Cast returned pointers from dynamically loaded
15692 functions. Eliminate W32 specific code.
15693
bfe11752
DN
156942009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
15695
89e2438a
DN
15696 * nsfns.m (x_set_foreground_color, x_set_background_color)
15697 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15698 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15699 x_ prefix instead of ns_. Update references.
15700 (syms_of_nsfns): Add a FIXME comment.
15701
15702 * nsterm.m (x_set_cursor_type): New prototype.
15703 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15704
bfe11752
DN
15705 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15706 for Solaris instead of incorrectly providing Qutime and Qcutime.
15707
031da700
EZ
157082009-01-02 Eli Zaretskii <eliz@gnu.org>
15709
15710 * w32.c (process_times): Compute sum of utime and stime.
15711 (system_process_attributes): Add Qtime to the alist.
15712
15713 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15714 and add them to the alist.
15715
15716 * process.c (top level) <Qtime, Qctime>: New variables.
15717 (syms_of_process): staticpro them.
15718 (Fsystem_process_attributes): Add their documentation to the doc
15719 string.
15720
15721 * process.h: Declare Qtime and Qctime.
15722
df23bf08
JR
157232009-01-02 Jason Rumney <jasonr@gnu.org>
15724
9acef61c 15725 * image.c (Qgobject): New symbol.
df23bf08
JR
15726 (syms_of_image): Initialize it.
15727 (init_svg_functions): Load some functions from gobject library.
15728
5bbdf7aa
DN
157292009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
15730
15731 * frame.c (make_terminal_frame): Remove redundant code and useless
15732 block.
15733
63136da6
AS
157342009-01-01 Andreas Schwab <schwab@suse.de>
15735
15736 * process.c (conv_sockaddr_to_lisp): Add workaround for
15737 getsockname bug on BSD.
15738
9ef69046
CY
157392009-01-01 Chong Yidong <cyd@stupidchicken.com>
15740
d6fafbe0
CY
15741 * xfns.c (x_create_tip_frame): Set border width of the X window.
15742
51d861de 15743 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 15744
f9c34147
JR
157452009-01-01 Jason Rumney <jasonr@gnu.org>
15746
9acef61c 15747 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
15748 Don't block input, as per earlier xterm.c changes.
15749
f5497e45
AR
157502008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
15751
15752 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
15753 (ns_appkit_version_int): New function.
15754 (x-server-version): Use ns_appkit_version_int and follow 21+
15755 convention of returning 3 integers.
15756
c19cab20
KH
157572008-12-30 Kenichi Handa <handa@m17n.org>
15758
15759 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15760 (CHAR_SURROGATE_PAIR_P): New macro.
15761
15762 * font.h (struct font_driver): New member get_variation_glyphs.
15763
9acef61c 15764 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
15765 (Ffont_variation_glyphs): New function.
15766 (syms_of_font): Defsubr it.
15767
15768 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15769 ftfont_variation_glyphs.
15770 (setup_otf_gstring): New function.
15771 (ftfont_drive_otf): Use it.
15772 (ftfont_shape_by_flt): Handle variation selector.
15773 (ftfont_variation_glyphs): New function.
15774
28cd591f
MR
157752008-12-30 Martin Rudalics <rudalics@gmx.at>
15776
15777 * frame.c (Vemacs_iconified): Remove.
15778
7f714baf
JR
157792008-12-30 Jason Rumney <jasonr@gnu.org>
15780
15781 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 15782 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 15783
9d2d22ab
CY
157842008-12-30 Chong Yidong <cyd@stupidchicken.com>
15785
15786 * indent.c (Fvertical_motion): Don't advance iterator if we have
15787 reseated to the desired position.
15788
15789 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
15790 checking for pos match.
15791
545312c2
KH
157922008-12-30 Kenichi Handa <handa@m17n.org>
15793
1ede3eb6
KH
15794 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
15795 just get the low 8-bit of the code.
15796
545312c2
KH
15797 * font.c (font_intern_prop): Validate str as multibyte.
15798
bd7bbf29
DN
157992008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15800
31e0750e
DN
15801 * dispextern.h (struct face): Move lface and hash from the middle
15802 of bitfields.
15803
bd7bbf29
DN
15804 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
15805
b5672e7c
DN
158062008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15807
15808 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
15809 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
15810 instead of intervals.h.
15811
d704470f
AS
158122008-12-26 Andreas Schwab <schwab@suse.de>
15813
15814 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
15815 cons.
15816
54b33868
MR
158172008-12-26 Martin Rudalics <rudalics@gmx.at>
15818
15819 * textprop.c (Qminibuffer_prompt): New variable.
15820 (syms_of_textprop): Initialize it.
15821 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
15822 in minibuffer-prompt face. (Bug#1662)
15823
40b615d6
JR
158242008-12-25 Jason Rumney <jasonr@gnu.org>
15825
15826 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
15827
baae5c2d
JR
158282008-12-24 Jason Rumney <jasonr@gnu.org>
15829
15830 * ralloc.c (r_alloc_reset_variable): New function.
15831
15832 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 15833 record of what points where. (Bug#716)
baae5c2d 15834
a9051c88
DN
158352008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
15836
15837 * minibuf.c (read_minibuf): Follow the non-interactive case when
15838 running as a daemon, before detaching.
15839
8b146312
AS
158402008-12-22 Andreas Schwab <schwab@suse.de>
15841
15842 * buffer.c (init_buffer): Use realloc instead of xrealloc.
15843 * gtkutil.c (free_widget_value): Use xfree instead of free.
15844
56f2de10
MR
158452008-12-22 Martin Rudalics <rudalics@gmx.at>
15846
15847 * frame.c (delete_frame): New function derived from
15848 Fdelete_frame to handle Qnoelisp value for FORCE argument.
15849 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
15850 (Fdelete_frame): Call delete_frame. Remove line from doc-string
15851 saying that FORCE non-nil doesn't run `delete-frame-functions'.
15852 * frame.h: Extern delete_frame.
15853 * window.c (window_loop):
15854 * terminal.c (delete_terminal):
15855 * xterm.c (x_connection_closed):
15856 * xfns.c (Fx_hide_tip):
9acef61c 15857 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 15858
1fc200d6
JR
158592008-12-21 Jason Rumney <jasonr@gnu.org>
15860
15861 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
15862 when character maps to .notdef character.
15863
5e252df2
SM
158642008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
15865
15866 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
15867
99b72cc4
JR
158682008-12-20 Jason Rumney <jasonr@gnu.org>
15869
15870 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 15871 a graphical frame on Windows. (Bug#1325)
99b72cc4 15872
acc49a52
JD
158732008-12-20 Jan Djärv <jan.h.d@swipnet.se>
15874
15875 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
15876
6ea15123
CY
158772008-12-20 Chong Yidong <cyd@stupidchicken.com>
15878
15879 * minibuf.c (Fread_buffer): Doc fix.
15880
b2dab6c8
JR
158812008-12-20 Jason Rumney <jasonr@gnu.org>
15882
54ea0c87 15883 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 15884 server name in UNC paths. (Bug#719)
54ea0c87 15885
b2dab6c8 15886 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 15887 charbuf. (Bug#1035)
b2dab6c8 15888
6d1921be
DN
158892008-12-19 Daniel Engeler <engeler@gmail.com>
15890
15891 * sysdep.c (serial_configure): Fix typo.
15892
53934c98
DN
158932008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15894
15895 * sysdep.c: Include alloca.h.
f4f634e8
DN
15896 (system_process_attributes): Add implementation for Solaris.
15897
15898 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 15899
06e111a6
DN
159002008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15901
15902 Reorganize implementation of Flist_system_processes and
15903 Fsystem_process_attributes. No functional changes.
15904 * process.c: Don't #include pwd.h, grp.h and limits.h.
15905 (Flist_system_processes): Just call list_system_processes.
15906 (Fsystem_process_attributes): Just call system_process_attributes.
15907 (procfs_list_system_processes, time_from_jiffies)
15908 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15909 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
15910
15911 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
15912 (list_system_processes): Rename from
15913 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
15914 Provide a do nothing implementation.
15915 (system_process_attributes): Rename from
15916 procfs_list_system_processes.
15917 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 15918 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
15919
15920 * w32.c (list_system_processes): Rename from
15921 w32_list_system_processes.
15922 (system_process_attributes): Rename from
15923 w32_system_process_attributes.
15924
15925 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
15926
15927 * process.h (w32_list_system_processes)
15928 (w32_system_process_attributes): Remove.
362654a6
JB
15929 (list_system_processes, system_process_attributes):
15930 New prototypes.
06e111a6 15931
6a705b23
KH
159322008-12-19 Kenichi Handa <handa@m17n.org>
15933
15934 * xfont.c (xfont_decode_coding_xlfd): New function.
15935 (xfont_encode_coding_xlfd): New function.
15936 (xfont_list_pattern): Decode XLFD by iso-8859-1.
15937 (xfont_list): Decode and encode XLFD by iso-8859-1.
15938 (xfont_match): Likewise.
15939 (xfont_list_family): Likewise.
15940 (xfont_open): Likewise.
15941
d66c0241 15942 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
15943 names are utf-8.
15944
d66c0241 15945 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
15946 names are utf-8.
15947
5a130941
JD
159482008-12-18 Jan Djärv <jan.h.d@swipnet.se>
15949
15950 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
15951 changed.
bfd20325
JD
15952 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
15953 clicked on a detached tool bar button.
5a130941 15954
fd95644b
DN
159552008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
15956
15957 * emacs.c (main): Print and error and exit when no data is read
15958 from the pipe.
15959
e6eee6ae
JR
159602008-12-17 Jason Rumney <jasonr@gnu.org>
15961
15962 * w32font.c (w32font_has_char): Always return -1.
15963
a35dd56b
KH
159642008-12-16 Kenichi Handa <handa@m17n.org>
15965
15966 * font.c (font_open_entity): Fix previous change.
15967
0e3635c2
DN
159682008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
15969
15970 * process.c: Include <limits.h>.
15971
d4835507 159722008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
15973
15974 * font.c (font_update_drivers): Fix mistake in reconstructing the
15975 driver list.
15976
159772008-12-16 Chong Yidong <cyd@stupidchicken.com>
15978
15979 * font.c (font_clear_cache): Fix format of font cache data.
15980
e2cbc401
CY
159812008-12-15 Chong Yidong <cyd@stupidchicken.com>
15982
15983 * xftfont.c (xftfont_open): Free Xft font pattern if
15984 XftFontOpenPattern fails.
15985
15986 * xterm.c (x_free_frame_resources): Remove extraneous call to
15987 free_frame_faces.
15988
b131d535
CY
159892008-12-13 Chong Yidong <cyd@stupidchicken.com>
15990
15991 * xterm.c (x_delete_display): Move xim_close_dpy call to
15992 x_delete_terminal.
15993 (x_delete_terminal): Call xim_close_dpy.
15994
e6df5336
JR
159952008-12-13 Jason Rumney <jasonr@gnu.org>
15996
15997 * w32font.c (intern_font_name): New function.
15998 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
15999 (w32font_open_internal, Fx_select_font): Decode font name.
16000 (fill_in_logfont, list_all_matching_fonts): Encode font name.
16001
16002 * w32font.h (intern_font_name): Declare new function.
16003
16004 * w32uniscribe.c (add_opentype_font_name_to_list):
16005 Use intern_font_name.
16006
20d68145
CY
160072008-12-13 Chong Yidong <cyd@stupidchicken.com>
16008
9f2554de
CY
16009 * frame.c (Fdelete_frame): Call free_font_driver_list.
16010
3d9bec9a
CY
16011 * font.c (free_font_driver_list): Implement missing function.
16012
20d68145
CY
16013 * w32term.c (w32_term_init): Don't initialize the image cache
16014 here; it will be done in init_frame_faces.
16015
16016 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
16017 (struct x_display_info): Remove unused member null_pixel.
16018 New member xim_callback_data.
20d68145
CY
16019
16020 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
16021 (xim_initialize): Save pointer to callback function data.
16022 (xim_close_dpy): Free callback function data. Call XCloseIM,
16023 reverting 2008-11-04 change by David Smith.
16024 (x_term_init): Don't initialize the image cache here; it will be
16025 done in init_frame_faces. Remove ancient "null_pixel" cruft.
16026 (x_delete_display): Free x_dnd_atoms member.
16027
96f9306b
KH
160282008-12-13 Kenichi Handa <handa@m17n.org>
16029
ef1b0ba7 16030 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 16031 Argument type changed. Handle a font-spec too.
96f9306b 16032 (font_score): Check Vface_font_rescale_alist.
6dec9044 16033 (font_open_entity): Likewise. (Bug#1547)
96f9306b 16034
ef1b0ba7 16035 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 16036
8d5b4964
CY
160372008-12-13 Chong Yidong <cyd@stupidchicken.com>
16038
16039 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
16040
e6df5336
JR
160412008-12-12 Jason Rumney <jasonr@gnu.org>
16042
bba3e508
SM
16043 * w32fns.c (x_display_info_for_name, Fx_open_connection):
16044 Set Vwindow_system_version to the real w32 major version.
e6df5336 16045
97c6058a
DN
160462008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
16047
16048 * term.c (init_tty): Move setting the terminal name before the
16049 potential user: maybe_fatal.
16050
ec4e88d7
CY
160512008-12-11 Chong Yidong <cyd@stupidchicken.com>
16052
ef1b0ba7 16053 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 16054 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 16055
b4233ec9
JR
160562008-12-11 Jason Rumney <jasonr@gnu.org>
16057
8ec71e23 16058 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 16059 SYMBOL_CHARSET. (Bug#547)
8ec71e23 16060
b4233ec9 16061 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 16062 size for surrogates. (Bug#1096, bug#872)
b4233ec9 16063
011a0143
JB
160642008-12-11 Juanma Barranquero <lekktu@gmail.com>
16065
16066 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
16067
3c309f34
JB
160682008-12-11 Juanma Barranquero <lekktu@gmail.com>
16069
16070 * process.c (Fsystem_process_attributes, syms_of_process):
16071 Fix typo in name of Ssystem_process_attributes.
16072 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
16073
fedc6ab5
JB
160742008-12-11 Juanma Barranquero <lekktu@gmail.com>
16075
16076 * syntax.c (Fmodify_syntax_entry): Doc fix.
16077
ba3de0e8
JB
160782008-12-10 Juanma Barranquero <lekktu@gmail.com>
16079
16080 * font.c (Ffont_spec): Move usage to end of docstring.
16081
174f1c74
JR
160822008-12-10 Jason Rumney <jasonr@gnu.org>
16083
16084 * w32font.c (Qcham): New symbol.
16085 (font_supported_scripts): Add cham, and comments for other new
16086 scripts in bitfield from OpenType spec.
9d32f818
JR
16087 (add_font_entity_to_list): Limit unicode-sip fonts to those that
16088 contain characters beyond the bmp.
174f1c74 16089
7b649478
KH
160902008-12-10 Kenichi Handa <handa@m17n.org>
16091
16092 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 16093 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
16094 Qunicode_sip.
16095
2133e2d1
JB
160962008-12-10 Juanma Barranquero <lekktu@gmail.com>
16097
16098 * coding.c (QCdefault_char): Rename from QCdefalut_char.
16099 (Fcoding_system_put): Use QCdefault_char.
16100 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
16101
9af886ee
CY
161022008-12-09 Chong Yidong <cyd@stupidchicken.com>
16103
74d819eb
CY
16104 * xftfont.c (syms_of_xftfont): Fix typo.
16105
4ccfa1c0 16106 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 16107
7c19d3ae
DN
161082008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
16109
16110 * emacs.c (main): Close daemon_pipe on exec.
16111
567826bb
CY
161122008-12-08 Chong Yidong <cyd@stupidchicken.com>
16113
16114 * termchar.h (struct tty): New members termcap_term_buffer and
16115 termcap_strings_buffer.
16116
16117 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 16118 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
16119 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
16120 All callers changed.
16121 (init_tty): Store termcap data and string buffers in new struct
16122 tty members termcap_term_buffer and termcap_strings_buffer.
16123 (delete_tty): Free them.
4ccfa1c0 16124 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 16125
aa96c42b
SZ
161262008-12-07 Seiji Zenitani <zenitani@mac.com>
16127
16128 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 16129 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 16130
b7e1d896
CY
161312008-12-06 Chong Yidong <cyd@stupidchicken.com>
16132
16133 * coding.c (make_conversion_work_buffer): Disable buffer
16134 modification hooks in the work buffer.
16135
b5ec91a5
EZ
161362008-12-05 Eli Zaretskii <eliz@gnu.org>
16137
16138 * process.c (procfs_system_process_attributes): If `nread' has a
16139 negative value, assign zero to it.
16140
a5d2a52b
CY
161412008-12-05 Chong Yidong <cyd@stupidchicken.com>
16142
68c5540b 16143 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 16144
7bf1bb21
KH
161452008-12-05 Kenichi Handa <handa@m17n.org>
16146
16147 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
16148 second character is a combining character.
16149
2fdc7d00
EZ
161502008-12-05 Eli Zaretskii <eliz@gnu.org>
16151
16152 * process.c (procfs_system_process_attributes): Don't use cmd,
16153 cmdsize, and q without initializing them first.
16154
bf6bfba8
JR
161552008-12-04 Jason Rumney <jasonr@gnu.org>
16156
16157 * w32font.c (w32font_draw): Initialize orig_clip before getting
16158 it, and delete it when finished.
16159
a3b1a468
DN
161602008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
16161
16162 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
16163 case when running as a daemon before detaching.
16164
8b8be8eb
JB
161652008-12-03 Juanma Barranquero <lekktu@gmail.com>
16166
805f2638 16167 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 16168
b1bde622
KH
161692008-12-03 Kenichi Handa <handa@m17n.org>
16170
e500c47d
KH
16171 * font.c (font_at): Set `multibyte' at first.
16172
ca516334
KH
16173 * coding.c (decode_coding_charset): Check type of an element of
16174 vector VALIDS.
7bf1bb21 16175 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 16176
4ccfa1c0 16177 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
16178 (font_for_char): Likewise.
16179
1e5ecd37
CY
161802008-12-03 Chong Yidong <cyd@stupidchicken.com>
16181
d5b01609 16182 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
16183 (font_update_lface): Handle fonts with corrupted size specs,
16184 i.e. non-int and non-float.
d5b01609 16185
11e3a6e4 16186 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 16187 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 16188 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 16189
ab06788b
CY
16190 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
16191
1e5ecd37 16192 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 16193 underline_minimum_offset for underline position.
1e5ecd37 16194
63c125ab
DN
161952008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
16196
16197 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
16198
16199 * character.c (c_string_width): Specify the type for LEN.
16200
3a8406e1
KH
162012008-12-03 Kenichi Handa <handa@m17n.org>
16202
4ccfa1c0 16203 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 16204 (decode_coding_utf_8): Likewise.
4ccfa1c0 16205 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 16206 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 16207
651df7d9
CY
162082008-12-02 Chong Yidong <cyd@stupidchicken.com>
16209
16210 * keyboard.c (make_lispy_position): Only use PT if the selected
16211 window is current.
16212
1f625c6c
AS
162132008-12-02 Andreas Schwab <schwab@suse.de>
16214
f7741ce9
AS
16215 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
16216
1f625c6c
AS
16217 * doprnt.c (doprnt1): Fix size of charbuf.
16218
92bc2678
CY
162192008-12-02 Chong Yidong <cyd@stupidchicken.com>
16220
16221 * keyboard.c (timer_check): Revert last change.
16222
93b9e8cc
JB
162232008-12-02 Juanma Barranquero <lekktu@gmail.com>
16224
16225 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
16226
fd7a37d5
JB
162272008-12-01 Juanma Barranquero <lekktu@gmail.com>
16228
16229 * makefile.w32-in: Update dependencies.
16230 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
16231
c115043b
AS
162322008-12-01 Andreas Schwab <schwab@suse.de>
16233
16234 * font.c (register_font_driver): Use xmalloc.
16235 (font_put_frame_data): Likewise.
16236
f5668d2a
CY
162372008-12-01 Chong Yidong <cyd@stupidchicken.com>
16238
860d96be
CY
16239 * xfaces.c (realize_x_face): Make abort condition clearer.
16240
f5668d2a
CY
16241 * gtkutil.c (update_frame_tool_bar): Initialize variable.
16242
379c17e7
CY
162432008-11-30 Chong Yidong <cyd@stupidchicken.com>
16244
16245 * keyboard.c (timer_check): After a timer runs, ensure that the
16246 selected window's buffer is current.
16247
35f36d65
JB
162482008-11-30 Juanma Barranquero <lekktu@gmail.com>
16249
f952c61c
JB
16250 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
16251 It was accidentally restored by the Unicode merge.
16252
35f36d65
JB
16253 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
16254
b23077df
JB
162552008-11-29 Juanma Barranquero <lekktu@gmail.com>
16256
16257 * w32proc.c: Include "coding.h".
16258 (Fw32_short_file_name): Encode filename passed to Windows API.
16259 (Fw32_long_file_name): Encode filename passed to Windows API and
16260 decode back the result. (Bug#1433)
16261
b8ebe9dd
KH
162622008-11-29 Kenichi Handa <handa@m17n.org>
16263
8cc53f96
KH
16264 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
16265 not before accessing it.
16266
b8ebe9dd
KH
16267 * charset.c (Fdefine_charset_internal): After calculating
16268 min_char, max_char, and fastmap, copy the charset structure again.
16269 (encode_char): Fix the previous change.
16270
59bc82c0
SZ
162712008-11-28 Seiji Zenitani <zenitani@mac.com>
16272
16273 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
16274
16275 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
16276
16277 * nsterm.m (x_set_frame_alpha): New function.
16278
32247e3d
EZ
162792008-11-27 Eli Zaretskii <eliz@gnu.org>
16280
16281 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
16282
b003e5ff
JB
162832008-11-27 Juanma Barranquero <lekktu@gmail.com>
16284
16285 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
16286 pointer to check_face_name.
16287
708550f5
KH
162882008-11-27 Kenichi Handa <handa@m17n.org>
16289
16290 * category.h (SET_CATEGORY_SET): Call set_category_set.
16291 (set_category_set): Extern it.
16292
16293 * category.c (hash_get_category_set): New function.
bba3e508 16294 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
16295 char_table_ref_and_range. Call hash_get_category_set to get a
16296 category set to store in the table.
16297
16298 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
16299 Funify_charset.
16300
2ae37cf0 16301 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
16302 (DECODE_CHAR): Check if the decoder vector is ready.
16303 (ENCODE_CHAR): Check if the encoder char-table is ready.
16304 (maybe_unify_char): Extern it.
16305
16306 * charset.c (Vchar_unified_charset_table): Delete it.
16307 (inhibit_load_charset_map): New variable.
16308 (temp_charset_work): New variable.
16309 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
16310 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
16311 New macros.
bba3e508
SM
16312 (load_charset_map): Meaning of control_flag changed.
16313 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
16314 temp_charset_work.
16315 (load_charset): New argument control_flag.
16316 (map_charset_for_dump): New function.
16317 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
16318 map_charset_for_dump.
16319 (Fdefine_charset_internal): If the charset method is MAP, load
16320 mapping tables by calling load_charset.
16321 (Funify_charset): Don't load a mapping table but directly set
16322 Vchar_unify_table.
16323 (maybe_unify_char): New function.
16324 (decode_char): Don't handle the deleted method MAP_DEFERRED.
16325 Handle the case of inhibit_load_charset_map being nonzero.
16326 (encode_char): Don't handle the deleted method MAP_DEFERRED.
16327 Handle the case of inhibit_load_charset_map being nonzero.
16328 (Fclear_charset_maps): Just free temp_charset_work.
16329 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
16330 variable.
16331
bba3e508 16332 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
16333 change of char_table_ref_and_range.
16334 (char_table_ref_and_range): Change the meaning of argument FROM
16335 and TO. Now the caller must provide initial values for *FROM
16336 and *TO.
16337
bba3e508 16338 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
16339 char_table_ref_and_range.
16340 (fontset_get_font_group): Likewise.
16341 (Ffontset_info): Likewise.
16342
bba3e508 16343 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
16344 char_table_ref_and_range. For char-table, put boundary between
16345 non-ASCII and 8-bit characters.
16346
16347 * print.c (print_object): For bool-vector, delete unnecessary
16348 check of ASCII_BYTE_P.
16349
9196133b
JR
163502008-11-26 Jason Rumney <jasonr@gnu.org>
16351
16352 * w32font.c (w32font_open_internal): Don't include external
9acef61c 16353 leading in font height. (Bug#879)
9196133b 16354
9f688acf
GM
163552008-11-26 Glenn Morris <rgm@gnu.org>
16356
16357 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
16358 redefinition with ifdef. (Bug#1383)
16359
90d19aff
AR
163602008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16361
16362 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
16363
4ccfa1c0 163642008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
16365
16366 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
16367 New EmacsView methods.
16368 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
16369 Fixes bug #1048,1357,1414.
16370
163712008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16372
16373 Fix bug #1362.
16374 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
16375 is not an indexed color.
16376 * nsterm.m (free_indexed_color): Add argument checking.
16377 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
16378
e7d5ecb3
CY
163792008-11-24 Chong Yidong <cyd@stupidchicken.com>
16380
16381 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
16382 Document confirm-after-completion value for
16383 minibuffer-completion-confirm.
16384
c285743c
JR
163852008-11-24 Jason Rumney <jasonr@gnu.org>
16386
16387 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
16388 warning.
16389
b0857706
JR
163902008-11-23 Jason Rumney <jasonr@gnu.org>
16391
16392 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
16393 restored before returning.
16394
16395 * w32font.c (check_face_name): New function.
16396 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 16397 fonts. (Bug#642)
b0857706 16398
ee50ff07
MR
163992008-11-22 Martin Rudalics <rudalics@gmx.at>
16400
16401 * buffer.c (Fswitch_to_buffer): Reword and mention new option
16402 confirm-nonexistent-file-or-buffer in doc-string.
16403
b8ff72fa
SM
164042008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16405
16406 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
16407 Fix copy/paste typo. Add checks.
16408
cee53ed4
KH
164092008-11-21 Kenichi Handa <handa@m17n.org>
16410
16411 * coding.c (detect_coding_iso_2022): Reject invalid composition
16412 sequence.
16413 (DECODE_COMPOSITION_START): If the current source is the last
16414 block, and the current composition doesn't end, regard this
16415 sequence as invalid.
16416 (decode_coding_iso_2022): Handle invalid composition sequence.
16417
f6ef1e65
MR
164182008-11-20 Martin Rudalics <rudalics@gmx.at>
16419
16420 * window.c (coordinates_in_window): Don't return
16421 ON_VERTICAL_BORDER for the rightmost position of a mode/header
16422 line when the window is not the rightmost one. (Bug#1372)
16423
e08b1705
MR
164242008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
16425
16426 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
16427
ad98e89f
EZ
164282008-11-15 Eli Zaretskii <eliz@gnu.org>
16429
16430 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
16431 and bright_bg if noninteractive is non-zero.
16432
fb098a4b
CY
164332008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16434
16435 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
16436 x_draw_glyph_string_background.
16437
16438 * w32term.c (x_draw_glyph_string): Likewise.
16439
ce952b6e
CY
164402008-11-15 Chong Yidong <cyd@stupidchicken.com>
16441
16442 * xterm.c (x_draw_glyph_string): Stop drawing the background of
16443 the next glyph string once past the overhang width.
16444
16445 * nsterm.m (ns_draw_glyph_string): Likewise.
16446
16447 * w32term.c (x_draw_glyph_string): Likewise.
16448
26ea7079
CY
164492008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
16450
16451 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
16452 double file close.
16453
1c33c906
MR
164542008-11-14 Martin Rudalics <rudalics@gmx.at>
16455
16456 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
16457 dedicated status of window before attempting to display another
16458 buffer in it.
16459
8fc29035
JB
164602008-11-14 Juanma Barranquero <lekktu@gmail.com>
16461
16462 * msdos.c (Fmsdos_long_file_names):
16463 (syms_of_msdos) <dos-unsupported-char-glyph>:
16464 * dosfns.c (Fint86): Fix typos in docstrings.
16465
55fb4286
EZ
164662008-11-14 Eli Zaretskii <eliz@gnu.org>
16467
16468 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
16469
3fda0315
KY
164702008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
16471
16472 * puresize.h (BASE_PURESIZE): Increase to 1260000.
16473
7e849c17
CY
164742008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
16475
16476 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
16477
16478 * frame.h: Negative alpha means "don't touch".
16479
16480 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
16481
16482 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
16483
b9fd67bd
DN
164842008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
16485
16486 * hftctl.c:
16487 * chpdef.h:
16488 * acldef.h: Remove files used only for systems no longer supported.
16489
16490 * Makefile.in: Fix .o alphabetical ordering.
16491 (hftctl.o): Remove dependency, file removed.
16492 (keymap.o, print.o): Depend on charset.h.
16493
d5998e03
KH
164942008-11-10 Kenichi Handa <handa@m17n.org>
16495
2ae37cf0 16496 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 16497
be70e183
CY
164982008-11-08 Chong Yidong <cyd@stupidchicken.com>
16499
16500 * dired.c (file_name_completion): If completion_ignore_case is
16501 enabled, ignore case when checking completion-regexp-list.
16502
7cf94eac
EZ
165032008-11-08 Eli Zaretskii <eliz@gnu.org>
16504
16505 * vm-limit.c (get_lim_data): Fix last change.
16506
ee107a89
KH
165072008-11-08 Kenichi Handa <handa@m17n.org>
16508
16509 * character.c (Fget_byte): New function.
16510 (syms_of_character): Defsubr Fget_byte.
16511
5fd15622
CY
165122008-11-07 Chong Yidong <cyd@stupidchicken.com>
16513
16514 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
16515 cursor position is valid after scrolling.
16516
13d62fad
JB
165172008-11-06 Juanma Barranquero <lekktu@gmail.com>
16518
16519 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
16520
a1dd2936
GM
165212008-11-06 Glenn Morris <rgm@gnu.org>
16522
16523 * xterm.c (handle_one_xevent): Don't let popup menus cause
16524 mouse-autoselect-window related window switching. (Bug#1261)
16525
860cd236
CY
165262008-11-04 David Smith <davidsmith@acm.org> (tiny change)
16527
16528 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
16529
653a3150
AS
165302008-11-04 Andreas Schwab <schwab@suse.de>
16531
16532 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
16533
870f5cac
CY
165342008-11-03 Chong Yidong <cyd@stupidchicken.com>
16535
16536 * xfns.c (Fx_wm_set_size_hint): New function.
16537
1e02f3cb
MR
165382008-11-03 Martin Rudalics <rudalics@gmx.at>
16539
16540 * textprop.c (Fprevious_single_char_property_change): Return 0
16541 when there's no change in a string. (Bug#1301)
16542
e630dfc6
MR
165432008-11-02 Martin Rudalics <rudalics@gmx.at>
16544
16545 * frame.c (do_switch_frame): New argument NORECORD passed to
16546 Fselect_window.
16547 (Fselect_frame): New argument NORECORD passed to
16548 do_switch_frame.
16549 (Fset_frame_selected_window): New argument NORECORD passed to
16550 Fselect_frame.
16551 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
16552 in call of do_switch_frame.
16553 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
16554 Handle NORECORD argument in call of Fselect_frame.
16555 * lisp.h (do_switch_frame, Fselect_frame)
16556 (Fset_frame_selected_window): Adjust declarations.
16557 * window.c (select_frame_norecord): New function.
16558 (run_window_configuration_change_hook): Use it and call
16559 Fselect_frame with NORECORD set.
16560 (Fselect_window): Pass NORECORD to Fselect_frame.
16561 (Fset_window_configuration): Handle NORECORD argument in call of
16562 do_switch_frame.
16563 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
16564 Fset_frame_selected_window.
16565 * keyboard.c (command_loop_1): Handle NORECORD in call of
16566 Fselect_frame (currently ifdefd).
16567
9020b223
GM
165682008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
16569
16570 * emacs.c (USAGE2): Untabify.
16571
793ffee8
SM
165722008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
16573
16574 * composite.c (fill_gstring_header): Fix copy/paste typo.
16575
ab6d1131
MR
165762008-10-31 Martin Rudalics <rudalics@gmx.at>
16577
16578 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
16579 (Fother_window): Rename argument and rewrite doc-string.
16580 (select_window_norecord): Fix return value. (Bug#1276)
16581
601a9cf1
JB
165822008-10-30 Juanma Barranquero <lekktu@gmail.com>
16583
16584 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
16585 new frames overriding foreground for tooltips. Based on similar patch
16586 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
16587
813b0652
CY
165882008-10-29 Chong Yidong <cyd@stupidchicken.com>
16589
16590 * emacs.c (Fdaemon_initialized): Initialize nfd.
16591
4414f58f
MR
165922008-10-29 Martin Rudalics <rudalics@gmx.at>
16593
16594 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
16595 (Fwindow_text_height): Clarify doc-strings.
16596 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
16597 doc-string of window-scroll-functions.
16598
ecdcaa09
RS
165992008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
16600
16601 * category.c (syms_of_category): Fix typo in docstring.
16602
23fe745a
JB
166032008-10-28 Juanma Barranquero <lekktu@gmail.com>
16604
16605 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
16606 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
16607 Fix typos in docstrings.
16608
ff808935
DN
166092008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
16610
16611 * emacs.c (daemon_pipe): Make non-static.
16612 (IS_DAEMON): Move definition ...
16613 * lisp.h (IS_DAEMON): ... here.
16614 (daemon_pipe): Declare.
16615 (is_daemon): Remove.
16616 * dispnew.c (init_display): Use IS_DAEMON.
16617
fc012771
SM
166182008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16619
16620 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
16621 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
16622
16623 * emacs.c (is_daemon): Remove.
16624 (main): Don't set is_daemon.
16625 (IS_DAEMON): New macro.
16626 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 16627 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
16628 parent exits.
16629 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
16630
d8bdbe6f
CY
166312008-10-27 Chong Yidong <cyd@stupidchicken.com>
16632
d1a072bf
CY
16633 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16634 over-sized glyph, draw it with the default glyph width.
16635
e2e325aa
CY
16636 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16637 glyph, draw it with the default glyph width.
16638
16639 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16640 glyph, draw it with the default glyph width.
16641
d8bdbe6f
CY
16642 * xdisp.c (try_scrolling): When computing the distance from the
16643 scroll margin to PT, try moving some distance past the window
16644 bottom before giving up.
16645
7bfac547
MR
166462008-10-27 Martin Rudalics <rudalics@gmx.at>
16647
16648 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16649 (Fset_window_buffer): Explain in doc-string that a window can be
16650 "strongly" dedicated to its buffer.
16651
4ff029f6
DN
166522008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
16653
16654 * emacs.c (daemon_name): New variable.
16655 (main): Deal with --daemon=SERVER_NAME.
16656 (Fdaemonp): Return a name if one was passed to --daemon.
16657
5790ef40
DN
166582008-10-26 Romain Francoise <romain@orebokech.com>
16659
f9bd0df9 16660 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
16661 (main): Create a pipe before forking, make the parent exit only after
16662 the child has closed its end of the pipe. Move closing the
16663 descriptors ...
16664 (Fdaemon_initialized): ... here. New function.
16665
f5385255
SM
166662008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
16667
4d632321
SM
16668 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16669 the previous unoptimized table.
16670
f5385255
SM
16671 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16672 the distinction between non-nil and non-t value of `dedicated'.
16673
6c56a0f3
CY
166742008-10-25 Chong Yidong <cyd@stupidchicken.com>
16675
16676 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 16677 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 16678
fec89261
MR
166792008-10-25 Martin Rudalics <rudalics@gmx.at>
16680
16681 * window.c (Fget_buffer_window, Fdelete_windows_on)
16682 (Freplace_buffer_in_windows): Make buffer argument optional and
16683 rename to buffer_or_name.
16684
34fcddd0
CY
166852008-10-24 Chong Yidong <cyd@stupidchicken.com>
16686
f5385255
SM
16687 * xdisp.c (handle_single_display_spec, handle_display_prop):
16688 Undo 2005-05-16 change.
34fcddd0
CY
16689 (handle_stop): Pop iterator if it's loaded with an empty string.
16690 (get_overlay_strings_1): Don't save iterator if it's loaded with
16691 an empty string (bug#1201).
16692
064766f2
KH
166932008-10-24 Kenichi Handa <handa@m17n.org>
16694
16695 * ftfont.c (ftfont_otf_features): Fix previous change.
16696 (ftfont_otf_capability): Check FeatureList.FeatureCount before
16697 calling ftfont_otf_features.
16698
f9bd0df9 166992008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
16700
16701 * font.c (font_match_p): Fix for the case that a vector of
16702 characters is in script-representative-chars.
16703
1dae9197
MA
167042008-10-24 Michael Albinus <michael.albinus@gmx.de>
16705
16706 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 16707 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
16708 (xd_read_queued_messages): Catch Qdbus_error from the macros.
16709 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 16710 macro. (Bug#1186)
1dae9197 16711
f9bd0df9 167122008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
16713
16714 * s/sol2-10.h: New file.
16715
878a4584
JB
167162008-10-23 Juanma Barranquero <lekktu@gmail.com>
16717
16718 * xdisp.c (fill_glyph_string): Fix typo in source (though the
16719 poor beast has survived 9+ years and the jump from xterm.c!).
16720
cd265ca6
MR
167212008-10-23 Martin Rudalics <rudalics@gmx.at>
16722
16723 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16724 Reword doc-string.
f5385255 16725 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 16726
472a4dc9
JB
167272008-10-23 Juanma Barranquero <lekktu@gmail.com>
16728
16729 * character.c (syms_of_character) <script-representative-chars>:
16730 <unicode-category-table>: Doc fixes.
16731
159bd5a2
NF
167322008-10-23 Noah Friedman <friedman@splode.com>
16733
16734 * coding.c (make_conversion_work_buffer): Check that
16735 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
16736 Fget_buffer_create.
16737
49f9c344
KH
167382008-10-23 Kenichi Handa <handa@m17n.org>
16739
16740 * font.c (font_add_log): Check the values of extra properties.
16741
12bb3111
MR
167422008-10-22 Martin Rudalics <rudalics@gmx.at>
16743
16744 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16745 Reword doc-string.
16746 (Fset_window_parameter): Use NILP.
16747 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 16748 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 16749
bbeb4e99
JB
167502008-10-22 Juanma Barranquero <lekktu@gmail.com>
16751
16752 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
16753
167542008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
16755
16756 * nsfns.m (ns_appkit_version): New function.
16757 (x-server-version): Use it.
16758 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16759 (x-server-vendor): Don't check_ns().
16760
16761 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16762
a9b555d3
JB
167632008-10-22 Juanma Barranquero <lekktu@gmail.com>
16764
16765 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16766 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16767
4626499f
KH
167682008-10-22 Kenichi Handa <handa@m17n.org>
16769
e3681952
KH
16770 * syntax.c (scan_words): Call word_boundary_p instead of comparing
16771 scripts.
16772
4626499f
KH
16773 * category.c (word_boundary_p): Check scripts instead of charset.
16774 Handle nil value in word-separating-categories and
16775 word-combining-categories.
16776 (syms_of_category): Fix docstrings of word-separating-categories
16777 and word-combining-categories.
16778
1560f91a
EZ
167792008-10-21 Eli Zaretskii <eliz@gnu.org>
16780
16781 * coding.c (Fencode_coding_region, Fdecode_coding_region)
16782 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
16783
f4668441
MR
167842008-10-21 Martin Rudalics <rudalics@gmx.at>
16785
16786 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
16787 Rename arg "buffer" to "buffer_or_name".
16788 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
16789 it optional.
16790 (no_switch_window): Remove since the return value is not used.
a9b555d3 16791 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
16792 Consider window as dedicated when Fwindow_dedicated_p returns a
16793 non-nil value.
16794 * lisp.h: Remove prototype for no_switch_window.
16795
fd75ddb2
JD
167962008-10-21 Jan Djärv <jan.h.d@swipnet.se>
16797
16798 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 16799 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 16800
07295713
KH
168012008-10-21 Kenichi Handa <handa@m17n.org>
16802
16803 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
16804 check Vlatin_extra_code_table.
16805
712adc82
EZ
168062008-10-20 Eli Zaretskii <eliz@gnu.org>
16807
16808 * fileio.c (Fset_file_modes): Doc fix.
16809
f549eb0b
MA
168102008-10-19 Michael Albinus <michael.albinus@gmx.de>
16811
16812 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
16813 in arrays.
16814
aac0c6e3
MR
168152008-10-19 Martin Rudalics <rudalics@gmx.at>
16816
16817 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16818 Mention kill-buffer in doc-string.
16819 (Fset_window_buffer): Reinsert tem check removed in last commit.
16820 (Fenlarge_window, Fshrink_window): Have argument names and
16821 doc-string follow Elisp manual more closely.
16822
168232008-10-18 Eli Zaretskii <eliz@gnu.org>
16824
16825 * fileio.c (Fset_file_modes): Doc fix.
16826
168272008-10-18 Martin Rudalics <rudalics@gmx.at>
16828
16829 * window.c (Fwindow_width, Fset_window_start)
16830 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
16831 (Fdelete_windows_on, Freplace_buffer_in_windows):
16832 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
16833 (Fwindow_dedicated_p): Make window argument optional.
16834 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
16835 (Fset_window_buffer): Respect any non-nil dedicated value for
16836 window. Rename "buffer" argument to "buffer_or_name".
16837
168382008-10-18 Ulrich Mueller <ulm@gentoo.org>
16839
16840 * m/sh3.h: New file, machine description for SuperH.
16841
168422008-10-17 Martin Rudalics <rudalics@gmx.at>
16843
16844 * window.c (Fsplit_window): Rename arg horflag to horizontal.
16845
168462008-10-17 Kenichi Handa <handa@m17n.org>
16847
16848 * ftfont.c (ftfont_otf_features): Fix indexing
16849 gsub_gpos->FeatureList.Feature. Check the validity of indices.
16850
168512008-10-16 Magnus Henoch <mange@freemail.hu>
16852
16853 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
16854 (Fdbus_call_method_asynchronously): Ditto.
16855 This change makes C-h f display the argument list.
16856
168572008-10-16 Chong Yidong <cyd@stupidchicken.com>
16858
16859 * fileio.c (Fexpand_file_name): Doc fix.
16860
16861 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
16862 of :foreground and :background equivalent to unspecified (20.x
16863 compatibility).
16864
168652008-10-15 Eli Zaretskii <eliz@gnu.org>
16866
16867 * buffer.c (syms_of_buffer): Doc fix.
16868
168692008-10-14 Kenichi Handa <handa@m17n.org>
16870
16871 * font.c (font_clear_prop): When clearing font width, clear the
16872 average width field too.
16873
168742008-10-12 Andreas Schwab <schwab@suse.de>
16875
16876 * ftfont.c (ftfont_shape_by_flt): Make static.
16877 * ftfont.h (ftfont_shape_by_flt): Don't declare.
16878
16879 * font.c: Don't include <m17n-flt.h>.
16880
168812008-10-10 Eli Zaretskii <eliz@gnu.org>
16882
16883 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
16884
168852008-10-09 Eli Zaretskii <eliz@gnu.org>
16886
16887 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
16888 away code.
16889
168902008-10-09 Chong Yidong <cyd@stupidchicken.com>
16891
16892 * dispnew.c (update_text_area): Avoid looping due to large glyph
16893 overhangs (bug#1070).
16894
168952008-10-09 Kenichi Handa <handa@m17n.org>
16896
16897 * fontset.c (face_for_char): If face->fontset is negative, just
16898 return ascii_face.
16899
f5385255
SM
16900 * font.c (font_delete_unmatched): Fix previous change.
16901 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
16902
169032008-10-09 Martin Rudalics <rudalics@gmx.at>
16904
16905 * frame.c (Fraise_frame): On text-only terminals select frame in
16906 order to make it visible. (Bug#1061)
16907
169082008-10-08 Chong Yidong <cyd@stupidchicken.com>
16909
16910 * fontset.c (fontset_find_font): Check frame validity.
16911
169122008-10-07 Chong Yidong <cyd@stupidchicken.com>
16913
a9b555d3 16914 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
16915 (xg_display_close): Allow Emacs to close all displays (bug#985).
16916
169172008-10-06 Andreas Schwab <schwab@suse.de>
16918
f5385255 16919 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
16920
169212008-10-06 Chong Yidong <cyd@stupidchicken.com>
16922
f5385255 16923 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 16924
a9b555d3 16925 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
16926
16927 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
16928 during initialization.
16929
169302008-10-04 Eli Zaretskii <eliz@gnu.org>
16931
16932 * xdisp.c (redisplay_internal): If frame switched, redisplay the
16933 whole thing on MSDOS frames as well as on a TTY.
16934
16935 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
16936 well as for TTY.
16937 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
16938 well as on a TTY.
16939
16940 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
16941 as well as for TTY.
16942
16943 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
16944
16945 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
16946 MSDOS frames as well.
16947
169482008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16949
16950 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
16951 correct arguments.
b71ac3dd 16952 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
16953
169542008-10-03 Glenn Morris <rgm@gnu.org>
16955
16956 * emacs.c (USAGE1): Add --daemon.
16957
169582008-10-02 Eli Zaretskii <eliz@gnu.org>
16959
16960 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
16961 100, so it's in percents as advertised.
16962
169632008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16964
16965 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
16966 (ns_output.current_cursor, ns_output.desired_cursor)
16967 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
16968 (FRAME_NEW_CURSOR_COLOR): Remove.
16969
16970 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 16971 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
16972 enumeration (HOLLOW_BOX_CURSOR, etc.).
16973
16974 * nsterm.m (ns_frame_rehighlight): Remove commented code.
16975 (draw_window_cursor): Simplify code.
f5385255
SM
16976 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
16977 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 16978 updates manually.
a9b555d3
JB
16979 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
16980 Use core Emacs cursor types.
aac0c6e3 16981
b8ff72fa 16982 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
16983
169842008-10-02 Martin Rudalics <rudalics@gmx.at>
16985
16986 * process.c (Faccept_process_output): Fix doc-string.
16987
169882008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
16989
16990 * gmalloc.c (__sbrk): Also define for uClibc.
16991
16992 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
16993 for uClibc.
16994
169952008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16996
16997 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
16998 styles.
16999 (nsfont_open): Reenable the cache.
17000
170012008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17002
17003 * font.c (font_matching_entity): Reflect ATTRS in font selection.
17004 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
17005
170062008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
17007
17008 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
17009 a suspended terminal.
17010
170112008-09-30 Michael Albinus <michael.albinus@gmx.de>
17012
17013 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
17014
170152008-09-30 Eli Zaretskii <eliz@gnu.org>
17016
17017 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
17018
170192008-09-30 Chong Yidong <cyd@stupidchicken.com>
17020
17021 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
17022 in a continued line coincides with a line beginning.
17023
170242008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
17025
17026 * nsfont.m (nsfont_trait_distance): Fix bug.
17027 (nsfont_list): Return a list rather than a vector (syncs with Handa
17028 changes of 2008-05-14).
17029 (nsfont_open): Improve logging.
17030
170312008-09-29 Andreas Schwab <schwab@suse.de>
17032
17033 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
17034
170352008-09-28 Martin Rudalics <rudalics@gmx.at>
17036
17037 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
17038 name as char-resolve-modifiers.
17039 Reported by: Markus Triska <markus.triska@gmx.at>
17040
170412008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
17042
17043 * dispnew.c (init_display): Return earlier when running as a daemon.
17044
170452008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17046
17047 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
17048
170492008-09-27 Eli Zaretskii <eliz@gnu.org>
17050
17051 * composite.c (Fcomposition_get_gstring)
17052 (Fcompose_region_internal, Fcompose_string_internal)
17053 (Ffind_composition_internal): Doc fix.
17054 (syms_of_composite) <compose-chars-after-function>: Doc fix.
17055 (syms_of_composite) <auto-composition-function>: Doc fix.
17056 (syms_of_composite) <composition-function-table>: Doc fix.
17057
170582008-09-25 Chong Yidong <cyd@stupidchicken.com>
17059
17060 * search.c (wordify): New argument for lax word-ends.
17061 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
17062
170632008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
17064
17065 * lisp.h (is_daemon): Declare.
17066 * dispnew.c (init_display): Do not try to initialize the terminal
17067 when running as a daemon.
17068
170692008-09-22 Chong Yidong <cyd@stupidchicken.com>
17070
17071 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
17072 x_display_pixel_height.
17073
170742008-09-22 Martin Rudalics <rudalics@gmx.at>
17075
17076 * undo.c (record_point): Don't call Fundo_boundary for first
17077 change. (Bug#731)
17078
170792008-09-22 Juanma Barranquero <lekktu@gmail.com>
17080
17081 * emacs.c (Fdaemonp): Doc fix.
17082
170832008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
17084
17085 * emacs.c (main): Place #ifdef in the proper place.
17086
170872008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
17088
17089 * emacs.c (standard_args): Add --daemon.
17090 (main): Disconnect from the terminal when --daemon is passed.
17091 (is_daemon): New variable.
17092 (Fdaemonp): New function.
17093 (syms_of_emacs): Defsubr it.
17094
170952008-09-20 Chong Yidong <cyd@stupidchicken.com>
17096
17097 * xdisp.c (get_next_display_element): Handle string display
17098 correctly when checking for the end of a box run.
17099
171002008-09-20 Glenn Morris <rgm@gnu.org>
17101
17102 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
17103 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
17104 (Frename_file): Avoid copying to trash if a rename involves
17105 a delete. (Bug#964).
17106
171072008-09-20 Eli Zaretskii <eliz@gnu.org>
17108
17109 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
17110 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
17111 frames as well as termcap frames.
17112 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
17113 get_named_tty.
17114
171152008-09-19 Eli Zaretskii <eliz@gnu.org>
17116
17117 * process.c (procfs_system_process_attributes): Fix cmdline in
17118 case /proc/PID/cmdline is empty.
17119
17120 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
17121 x_display_pixel_height.
17122
171232008-09-19 Juanma Barranquero <lekktu@gmail.com>
17124
17125 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
17126
17127 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
17128 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
17129
171302008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
17131
17132 * dispextern.h (struct it): Move line_wrap away from the middle of
17133 bitfields. Move voffset in struct iterator_stack_entry after the
17134 bitfields. Move tab_width near after another short.
17135
171362008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
17137
17138 * frame.h (struct frame): Move alpha from the middle of bitfields.
17139
17140 * window.h (struct window): Move frozen_window_start_p after the
17141 rest of the bitfields to reduce padding.
17142
171432008-09-18 Chong Yidong <cyd@stupidchicken.com>
17144
17145 * xterm.h (x_display_info): Remove `height' and `width' members.
17146
17147 * nsterm.h (ns_display_info): Remove `height' and `width' members.
17148
17149 * w32term.h (w32_display_info): Remove `height', `width',
17150 `height_in', and `width_in' members.
17151
b8ff72fa
SM
17152 * xterm.c (x_display_pixel_height, x_display_pixel_width):
17153 New functions.
aac0c6e3
MR
17154 (x_calc_absolute_position): Use them.
17155 (x_term_init): Omit removed `height' and `width' members.
17156
b8ff72fa
SM
17157 * w32term.c (x_display_pixel_height, x_display_pixel_width):
17158 New functions.
aac0c6e3
MR
17159 (w32_read_socket, x_calc_absolute_position): Use them.
17160 (w32_initialize_display_info, w32_term_init): Omit removed members
17161 of w32_display_info.
17162
b8ff72fa
SM
17163 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
17164 New functions.
17165 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 17166
b8ff72fa
SM
17167 * xterm.c (x_display_pixel_height, x_display_pixel_width):
17168 New functions.
aac0c6e3
MR
17169 (x_calc_absolute_position): Use them.
17170 (x_term_init): Omit removed `height' and `width' members.
17171
17172 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
17173 (compute_tip_xy):
17174 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
17175 * xmenu.c (menu_position_func): Use x_display_pixel_height and
17176 x_display_pixel_width.
17177
171782008-09-18 Kenichi Handa <handa@m17n.org>
17179
17180 * composite.c (fill_gstring_header): Don't check FROM and TO here.
17181 (composition_compute_stop_pos): Fix handling of static composition.
17182 (Fcomposition_get_gstring): Check FROM and TO at first.
17183
171842008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
17185
46e722a9 17186 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
17187 mixup (YAILOM).
17188
171892008-09-17 Chong Yidong <cyd@stupidchicken.com>
17190
17191 * indent.c (Fvertical_motion): Use position reported by iterator
17192 instead of PT for determining screen motion (bug#943).
17193
171942008-09-17 Romain Francoise <romain@orebokech.com>
17195
17196 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
17197
171982008-09-17 Kenichi Handa <handa@m17n.org>
17199
17200 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
17201
17202 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
17203 if necessary.
17204
172052008-09-16 Kenichi Handa <handa@m17n.org>
17206
17207 * coding.c (make_conversion_work_buffer): Avoid calling
17208 Fget_buffer_create if it is not necessary.
17209
172102008-09-15 Martin Rudalics <rudalics@gmx.at>
17211
17212 * window.c (Fselect_window): Don't update window_select_count and
17213 use_time when norecord is not nil.
17214
172152008-09-14 Kenichi Handa <handa@m17n.org>
17216
17217 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
17218 specpdl_ptr.
17219
172202008-09-12 Kenichi Handa <handa@m17n.org>
17221
17222 * indent.c (scan_for_column): Don't handle automatic composition
17223 if the current buffer is not associated with a window.
17224
17225 * composite.c (composition_reseat_it): If the current buffer is
17226 not associated with a window, ignore the automatic composition.
17227 (find_automatic_composition): Likewise.
17228
172292008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
17230
17231 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
17232 (Fgpm_mouse_stop): Use it.
17233 * termhooks.h (close_gpm): Declare.
17234 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
17235 connection if Gpm_GetEvent fails.
17236
17237 * window.c (set_window_buffer): Always preserve current-buffer.
17238
172392008-09-12 Glenn Morris <rgm@gnu.org>
17240
17241 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
17242
172432008-09-11 Glenn Morris <rgm@gnu.org>
17244
17245 * charset.c (charset-map-path): Doc fix.
17246
172472008-09-10 Kenichi Handa <handa@m17n.org>
17248
17249 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
17250
17251 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
17252 compose a grapheme cluster with the preceding base glyph.
17253
17254 * composite.c (composition_compute_stop_pos): Fix previous change.
17255 Reset cmp_it->id to -1 at first.
17256
172572008-09-10 Glenn Morris <rgm@gnu.org>
17258
17259 * Makefile.in (character.o, chartab.o): Fix config.h typo.
17260
172612008-09-09 Chong Yidong <cyd@stupidchicken.com>
17262
17263 * keyboard.c (read_key_sequence): Reapply translation maps when
17264 switching keyboards.
17265
172662008-09-09 Kenichi Handa <handa@m17n.org>
17267
17268 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
17269 characters.
17270
17271 * composite.c (FORWARD_CHAR): Fix calculation
17272 of (POSITION).pos_byte.
17273 (composition_compute_stop_pos): Limit the search of composition to
17274 at most 500 characters ahead. If we reach the limit or find a
17275 newline, set cmp_it->ch to -2 and return 0.
17276 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
17277
172782008-09-08 Kenichi Handa <handa@m17n.org>
17279
17280 * indent.c (Fvertical_motion): Be sure to set
17281 it_overshoot_expected if it.cmp_it.id is non-negative.
17282
172832008-09-07 Andreas Schwab <schwab@suse.de>
17284
17285 * callproc.c (Fcall_process): Don't hold references to string data
17286 across garbage collection. Move initialisation of new_argv down
17287 to avoid compiler bug.
17288
172892008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17290
17291 * process.c (Fsystem_process_attributes): Doc fix.
17292
172932008-09-07 Chong Yidong <cyd@stupidchicken.com>
17294
17295 * callproc.c (Fcall_process): Canonicalize current directory name.
17296
17297 * xdisp.c (move_it_to): When moving by vpos, ensure that the
17298 iterator advances to the next line if the current line ends in a
17299 continued tab.
17300
173012008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
17302
17303 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
17304 member to point to cmp_from.
17305
17306 * xdisp.c: Doc fix for references to gidx data member.
17307
173082008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17309
17310 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
17311
173122008-09-07 Kenichi Handa <handa@m17n.org>
17313
17314 * composite.c (FORWARD_CHAR): Check STOP after
17315 incrementing (POSITION).pos.
17316
173172008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17318
17319 * process.c (Fsystem_process_attributes): Doc fix.
17320
173212008-09-06 Chong Yidong <cyd@stupidchicken.com>
17322
17323 * keyboard.c (Ftop_level): Doc fix.
17324
173252008-09-06 Eli Zaretskii <eliz@gnu.org>
17326
17327 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
17328 minibuffer, don't let lower part of menu invade the echo area.
17329
17330 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
17331 "char *q" to access menu text and advance through it. Revert the
17332 change that displayed ">" instead of ASCII character 0x10.
17333
173342008-09-05 Eli Zaretskii <eliz@gnu.org>
17335
17336 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
17337 toggle boxes and radio buttons on MS-DOS as well.
17338
173392008-09-05 Kenichi Handa <handa@m17n.org>
17340
17341 * composite.c (autocmp_chars): Check lookback count.
17342 (composition_compute_stop_pos): Set cmp_it->lookback.
17343 (composition_reseat_it): Check lookback count.
17344 (struct position_record): New struct.
17345 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
17346 (find_automatic_composition): New function.
17347 (composition_adjust_point): Use find_automatic_composition.
17348
17349 * dispextern.h (struct composition_it): New member lookback.
17350
173512008-09-02 Chong Yidong <cyd@stupidchicken.com>
17352
17353 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
17354 if moving by a single line.
17355
173562008-09-02 Andreas Schwab <schwab@suse.de>
17357
17358 * xterm.c (x_delete_display): Fix merge error.
17359
17360 * fileio.c (Fexpand_file_name): Remove unused variables.
17361
173622008-09-02 Eli Zaretskii <eliz@gnu.org>
17363
17364 * fileio.c (Fexpand_file_name): Copy argument `name' into local
17365 storage on all platforms, not just on DOS_NT.
17366
173672008-09-02 Jason Rumney <jasonr@gnu.org>
17368
b8ff72fa
SM
17369 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
17370 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
17371
173722008-09-01 Chong Yidong <cyd@stupidchicken.com>
17373
17374 * xfaces.c (Finternal_set_alternative_font_family_alist)
17375 (Finternal_set_alternative_font_registry_alist): Properly copy
17376 entire alist structure.
17377
173782008-09-01 Kenichi Handa <handa@m17n.org>
17379
d66c0241 17380 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 17381 representative chars of the script is a vector.
d66c0241
JB
17382 (ftfont_list): Handle the case where the representative chars of
17383 the script is a vector.
aac0c6e3
MR
17384
17385 * character.c (syms_of_character): Docstring of
17386 script-representative-chars fixed.
17387
173882008-08-31 Eli Zaretskii <eliz@gnu.org>
17389
17390 * msdos.c (BUILD_CHAR_GLYPH): New macro.
17391 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
17392 the menu. Allocate larger buffer for `text', to account for
17393 possible ^C characters.
17394
173952008-08-31 Martin Rudalics <rudalics@gmx.at>
17396
17397 * xdisp.c (prepare_menu_bars): Don't call
17398 Vwindow_size_change_functions with arg Qt.
17399
174002008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17401
17402 * font.h (font_range):
17403 * fileio.c (report_file_error):
46e722a9
SM
17404 * composite.c (composition_update_it): Yet another int/Lisp_Object
17405 mixup (YAILOM).
aac0c6e3
MR
17406
174072008-08-30 Glenn Morris <rgm@gnu.org>
17408
17409 * data.c (Fmake_variable_frame_local): Doc fix.
17410
17411 * frame.c (Fmodify_frame_parameters): Doc fix.
17412
174132008-08-30 Eli Zaretskii <eliz@gnu.org>
17414
17415 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
17416 needed by GetTokenInformation.
17417 (w32_system_process_attributes): Check return values of all system
17418 APIs.
17419
17420 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
17421 only when the state changes.
17422 (IT_update_begin, IT_update_end): Add termscript trace.
17423
17424 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
17425 clipboard is unavailable. Set dst to NULL if it doesn't point to
17426 malloc'ed data.
17427 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
17428 passing random values to xfree.
17429
17430 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 17431 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
17432
174332008-08-29 Jason Rumney <jasonr@gnu.org>
17434
17435 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
17436
174372008-08-29 Eli Zaretskii <eliz@gnu.org>
17438
17439 * composite.c (fill_gstring_body): Avoid compiler warnings.
17440
17441 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
17442 LGLYPH_SET_CODE to avoid compiler warnings.
17443
2ae37cf0 17444 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
17445
17446 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
17447
17448 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
17449 LGLYPH_SET_CODE.
17450
174512008-08-29 Kenichi Handa <handa@m17n.org>
17452
17453 * fileio.c (report_file_error): Don't downcase the first character
17454 of errstring if it is still unibyte.
17455
174562008-08-29 Kenichi Handa <handa@m17n.org>
17457
17458 These changes are to re-implement the automatic composition so
17459 that it doesn't use text properties.
17460
17461 * Makefile.in (ftfont.o): Depend on composite.h.
17462 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
17463
17464 * character.h (Vunicode_category_table): Extern it.
17465
17466 * character.c (Vunicode_category_table): New variable.
17467 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
17468
17469 * chartab.c (optimize_sub_char_table): Perform more greedy
17470 optimization.
17471
b8ff72fa
SM
17472 * composite.h (enum composition_method):
17473 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
17474 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
17475 (Vcomposition_function_table): Extern it.
17476 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
17477 (composition_gstring_put_cache, composition_gstring_from_id)
17478 (composition_gstring_p, composition_gstring_width)
17479 (composition_compute_stop_pos, composition_reseat_it)
17480 (composition_update_it, composition_adjust_point): Extern them.
17481 (Fcomposition_get_gstring): EXFUN it.
17482
d66c0241 17483 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
17484 (Vcomposition_function_table)
17485 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
17486 (gstring_hash_table, gstring_work, gstring_work_headers):
17487 New variables.
aac0c6e3
MR
17488 (gstring_lookup_cache, composition_gstring_put_cache)
17489 (composition_gstring_from_id, composition_gstring_p)
17490 (composition_gstring_width, fill_gstring_header)
17491 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
17492 (composition_reseat_it, composition_update_it)
b8ff72fa 17493 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
17494 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
17495 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 17496 Defsubr composition_get_gstring.
aac0c6e3
MR
17497
17498 * dispextern.h (struct glyph): New union u.cmp. Delete the member
17499 cmp_id.
17500 (struct glyph_string): Delete the member gidx. New members
17501 cmp_id, cmp_from, and cmp_to.
17502 (enum it_method): Delete GET_FROM_COMPOSITION.
17503 (struct composition_it): New struct.
17504 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
17505 Delete c, len, cmp_id, cmp_len in u.comp.
17506
17507 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 17508 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 17509 (enum lglyph_indices): Likewise.
b8ff72fa 17510 (font_range): Adjust extern.
aac0c6e3
MR
17511 (font_fill_lglyph_metrics): Extern it.
17512
17513 * font.c (QCf): New variable.
17514 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17515 (font_prepare_composition): Delete this function.
17516 (font_range): Type and arguments changed.
17517 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
17518 (font_fill_lglyph_metrics): New function.
b8ff72fa 17519 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 17520 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
17521 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
17522 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
17523
17524 * fontset.h (font_for_char): Extern it.
17525
17526 * fontset.c (font_for_char): New function.
17527
17528 * ftfont.c: Include composite.h.
17529 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 17530 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
17531
17532 * indent.c: Include composite.h and dispextern.h.
17533 (check_composition): Delete this function.
17534 (scan_for_column): Handle composition by
17535 composition_compute_stop_pos, composition_reseat_it, and
17536 composition_update_it.
17537 (compute_motion): Likewise.
17538 (Fvertical_motion): Fix checking of composition.
17539
17540 * keyboard.c (adjust_point_for_property): Check composition by
17541 composition_adjust_point.
17542
b8ff72fa 17543 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
17544 struct glyph_string.
17545
b8ff72fa
SM
17546 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
17547 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
17548 struct glyph.
17549 (produce_composite_glyph): Likewise.
17550
b8ff72fa
SM
17551 * w32term.c (x_draw_composite_glyph_string_foreground):
17552 Adjust for the change of struct glyph_string.
aac0c6e3
MR
17553 (x_draw_glyph_string): Likewise.
17554
17555 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
17556 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17557
17558 * xdisp.c: Include font.h.
17559 (it_props): Delete the entry for Qauto_composed.
17560 (init_iterator): Initialize it->cmp_it.id to -1.
17561 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 17562 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
17563 (handle_auto_composed_prop): Delete it.
17564 (handle_composition_prop): Handle only static composition.
17565 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
17566 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 17567 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
17568 (pop_it): Likewise.
17569 (get_next_element): Delete next_element_from_composition.
17570 (CHAR_COMPOSED_P): New macro.
17571 (get_next_display_element): For automatic composition, get a face
17572 from the font in the glyph-string.
17573 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 17574 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
17575 (next_element_from_string): Check if the character at the current
17576 position is composed by CHAR_COMPOSED_P.
17577 (next_element_from_buffer): Likewise.
d66c0241
JB
17578 (next_element_from_composition): Adjust for the change of struct it.
17579 Update it->cmp_it.
b8ff72fa
SM
17580 (dump_glyph): Adjust for the change of struct glyph.
17581 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
17582 it and struct glyph. Don't handle automatic composition here.
17583 (fill_gstring_glyph_string): New function.
17584 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 17585 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
17586 (BUILD_GSTRING_GLYPH_STRING): New macro.
17587 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
17588 automatic composition.
b8ff72fa 17589 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 17590 struct glyph.
b8ff72fa 17591 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 17592
b8ff72fa 17593 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
17594 the change of struct glyph_string.
17595 (x_draw_glyph_string): Likewise.
17596
175972008-08-29 Glenn Morris <rgm@gnu.org>
17598
17599 * buffer.c (word-wrap): Doc fix.
17600 * xdisp.c (truncate-partial-width-windows): Doc fix.
17601 Increase default to 50.
17602
176032008-08-29 Chong Yidong <cyd@stupidchicken.com>
17604
17605 * xdisp.c (update_tool_bar_unwind): New function.
17606 (update_tool_bar): Temporarily set selected frame before building
17607 tool-bar items.
17608
176092008-08-28 Michael Albinus <michael.albinus@gmx.de>
17610
17611 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
17612 snprintf, respectively.
17613 (xd_append_arg): Convert strings with Fstring_make_unibyte.
17614
176152008-08-28 Chong Yidong <cyd@stupidchicken.com>
17616
17617 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
17618 LDFLAGS to GNUstep CC invocation.
17619
176202008-08-27 Chong Yidong <cyd@stupidchicken.com>
17621
17622 * indent.c (Fvertical_motion): Revert last change. Handle the
17623 general case where we are moving forward, and PT spans multiple
17624 screen lines.
17625
17626 * eval.c (find_handler_clause): Temporarily increase
17627 max-lisp-eval-depth while printing the backtrace buffer, to
17628 guarantee that help-mode code can run.
17629
176302008-08-27 Eli Zaretskii <eliz@gnu.org>
17631
17632 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
17633 colors under -rv.
17634 (IT_set_frame_parameters): Don't swap foreground and background
17635 colors if `(reverse . t)' is present in the frame properties.
17636 (internal_terminal_init): Call init_frame_faces only for the
17637 initial frame.
17638
176392008-08-27 Andreas Schwab <schwab@suse.de>
17640
17641 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17642
176432008-08-27 Andreas Schwab <schwab@suse.de>
17644
17645 * search.c (search_buffer): Set char_base to zero only at the end.
17646
176472008-08-27 Kenichi Handa <handa@m17n.org>
17648
b8ff72fa 17649 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
17650
176512008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
17652
17653 * xterm.c (x_term_init): Temporarily hide the partially
17654 initialized terminal while calling vendor-specific-keysyms.
17655
176562008-08-26 Eli Zaretskii <eliz@gnu.org>
17657
17658 * msdos.c (internal_terminal_init): Most initializations done only
17659 once, especially initial_screen_colors[] and termscript open.
17660
176612008-08-26 Chong Yidong <cyd@stupidchicken.com>
17662
17663 * eval.c (Fcondition_case): Doc fix.
17664
17665 * widgetprv.h (EmacsFramePart): Change font member to the new font
17666 struct.
17667
17668 * widget.c: Include character.h and font.h for XSETFONT.
17669 (setup_frame_gcs): Compute X font id from font struct, just once.
17670
176712008-08-26 Eli Zaretskii <eliz@gnu.org>
17672
17673 * term.c (get_named_tty): Fix last change.
17674
176752008-08-26 Chong Yidong <cyd@stupidchicken.com>
17676
17677 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 17678 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
17679
176802008-08-25 Eli Zaretskii <eliz@gnu.org>
17681
17682 * frame.c (do_switch_frame): Mark previously displayed frame as
17683 obscured for FRAME_MSDOS_P frames as well.
17684
176852008-08-24 Eli Zaretskii <eliz@gnu.org>
17686
17687 * frame.c (make_terminal_frame): Initialize f->terminal,
17688 f->terminal->reference_count, and scroll bars on MS-DOS as well.
17689 Set the top frame to newly created frame.
17690 (Fmake_terminal_frame): Reuse the_only_display_info.
17691
17692 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17693 estimating available memory.
17694
b97439ce 176952008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
17696
17697 * nsterm.m (ns_draw_window_cursor): Don't call
17698 NSDisableScreenUpdates and NSEnableScreenUpdates on
17699 non-NS_IMPL_COCOA systems.
17700
177012008-08-23 Andreas Schwab <schwab@suse.de>
17702
17703 * process.c (procfs_system_process_attributes): Fix use of
17704 uninitialized variables.
17705
177062008-08-23 Eli Zaretskii <eliz@gnu.org>
17707
17708 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17709
17710 * dispnew.c (init_display): Remove MS-DOS specific conditions for
17711 calling tty-set-up-initial-frame-faces.
17712
b8ff72fa
SM
17713 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17714 Allow MSDOS frames along with X frames.
aac0c6e3
MR
17715
17716 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17717 addition to output_termcap.
17718
17719 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17720
17721 * termchar.h (FRAME_TTY): Support output_msdos_raw.
17722 (struct tty_display_info) [MSDOS]: Add fields related to mouse
17723 highlight.
17724
17725 * process.c [!subprocesses]: Define QCname.
17726 (syms_of_process): Intern and staticpro it.
17727
17728 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
17729 Adjust for changes in encoding/decoding routines.
17730 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
17731 encode_coding and decode_coding.
17732
b8ff72fa 17733 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
17734
17735 * dosfns.c: Include frame.h before termhooks.h.
17736 (dos_cleanup): Use CURTTY ()->termscript instead of a global
17737 variable termscript.
17738
17739 * s/msdos.h (USER_FULL_NAME): Define.
17740 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
17741
17742 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
17743 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
17744 pw->pw_gecos.
17745
17746 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
17747 SELECTED_FRAME as additional (1st) argument.
17748 (tty_read_avail_input): Handle output_msdos_raw in
17749 addition to output_termcap.
17750
17751 * msdos.c: Include frame.h before termhooks.h.
17752 (mouse_on, mouse_off, mouse_moveto, mouse_init)
17753 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17754 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17755 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17756 (IT_set_terminal_modes, IT_reset_terminal_modes)
17757 (IT_set_frame_parameters): Use tty->termscript instead of a global
17758 variable termscript.
17759 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17760 global variable terminal_coding. Don't refer to
17761 Vnonascii_translation_table.
17762 (internal_terminal_init): Set Vwindow_system in current_kboard.
17763 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
17764 Announce date and time of session start, if termscript is open.
17765 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
17766 term.c:init_tty). Open termscript only of not already open.
17767 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
17768 here instead of dos_ttraw. Don't initialize display if this is an
17769 initial tty. Don't set FRAME_FONT.
17770 (Vwindow_system_version): Bump to 23.
17771 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
17772 is available, set up mouse_position_hook.
17773 (dos_ttraw, IT_set_terminal_modes): If called with initial
17774 terminal, do nothing.
17775 (IT_set_frame_parameters): Handle the Qtty_type frame
17776 parameter by calling internal_terminal_init.
17777 (dos_set_window_size, show_mouse_face)
17778 (clear_mouse_face, IT_note_mode_line_highlight)
17779 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
17780 (dos_rawgetc): Use tty_display_info instead of x_display_info.
17781 (initialize_msdos_display): New function.
17782 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
17783 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
17784 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
17785 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 17786 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
17787 (request_sigio, unrequest_sigio): Don't define, now defined on
17788 sysdep.c.
17789 (IT_write_glyphs): Rewrite to use encode_terminal_code.
17790
17791 * term.c [MSDOS]: Include msdos.h.
17792 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
17793 conditional to DOS_NT. Allow only one call to this function in a
17794 session. Don't allocate a new struct tty_display_info; instead,
17795 reuse the_only_display_info. Call get_tty_size to get screen
17796 dimensions. Call init_baud_rate to set bad_rate.
17797 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
17798 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 17799 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
17800 (get_tty_terminal, get_named_tty, Ftty_type)
17801 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
17802 output_termcap.
b8ff72fa
SM
17803 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
17804 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 17805 only when subprocesses are supported.
aac0c6e3
MR
17806
17807 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
17808 f->output_data.x.
17809 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
17810 terminal devices.
17811
5582fbc7 17812 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
17813 x_output.
17814 (FRAME_FONT): Use output_data.tty.
17815 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
17816 (struct x_display_info): Rename from display_info. Update all users in
17817 msdos.c.
aac0c6e3 17818 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 17819 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
17820 (dos_ttraw): Update prototype.
17821
17822 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
17823 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
17824
178252008-08-23 Jason Rumney <jasonr@gnu.org>
17826
17827 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
17828 (fn_TIFFSetDirectory): New library function used.
17829 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
17830 (tiff_load): Use :index to select among multiple images. Set count
17831 property when multiple images exist.
17832 (gif_format): Use :index, not :image.
17833
178342008-08-23 Chong Yidong <cyd@stupidchicken.com>
17835
17836 * xdisp.c (try_scrolling): Check INT_MAX instead of
17837 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
17838 to obtain INT_MAX.
17839
178402008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
17841
17842 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
17843
178442008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
17845
17846 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
17847 GNUstep library location.
17848
178492008-08-21 Chong Yidong <cyd@stupidchicken.com>
17850
17851 * xfaces.c (x_update_menu_appearance): Check validity of menu font
17852 before using it.
17853
17854 * puresize.h (BASE_PURESIZE): Increase to 1250000.
17855
178562008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17857
17858 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
17859 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
17860 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
17861 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
17862 (EmacsApp-cursor_blink_handler): Remove declaration.
17863 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
17864 match 01 Feb 2008 changes in xterm.c.
17865 (ns_read_socket): Add cast to avoid warning.
17866 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
17867 GNUstep.
17868
178692008-08-20 Chong Yidong <cyd@stupidchicken.com>
17870
17871 * xselect.c (x_get_foreign_selection): Return nil if desired
17872 selection could not be obtained, instead of signalling an error.
17873
178742008-08-20 David Reitter <david.reitter@gmail.com>
17875
17876 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
17877 * nsterm.m: Remove ns-specific code for cursor blinking.
17878 (ns_draw_window_cursor): Clear cursor properly rather than
17879 redrawing the area. Respect width of bar cursors.
17880 These changes enable the use of generic blink-cursor-mode and
17881 generic cursor types in NS and support smooth cursor movements (do
17882 not blink off after command).
17883 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
17884 Nextstep, too.
17885
178862008-08-19 Kenichi Handa <handa@m17n.org>
17887
17888 * font.c (Vfont_log_deferred): New variable.
17889 (font_add_log): Check Vfont_log_deferred.
17890 (font_deferred_log): New function.
17891
17892 * font.h (font_deferred_log): Extern it.
17893
17894 * fontset.c (reorder_font_vector): Use encoding charset of fonts
17895 for sorting.
17896 (face_for_char): Use deferred log.
17897
178982008-08-18 Kenichi Handa <handa@m17n.org>
17899
17900 * fontset.c (face_for_char): Add font log.
17901
17902 * font.c (font_add_log): Add the font properties :script, :lang,
17903 and :otf in the log.
17904
179052008-08-17 Chong Yidong <cyd@stupidchicken.com>
17906
17907 * xdisp.c: Remove dead code.
17908 (handle_invisible_prop, next_overlay_string): Defer call to
17909 setup_for_ellipsis.
17910 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
17911
179122008-08-15 Chong Yidong <cyd@stupidchicken.com>
17913
17914 * xfaces.c (lookup_derived_face): Properly handle possible zero
17915 return value of get_lface_attributes.
17916 (merge_faces): Don't tell lookup_derived_face to signal an error
17917 if face is not found.
17918
17919 * dired.c (Fdirectory_files): Doc fix.
17920
17921 * process.c (make_process): Initialize kill_without_query struct
17922 member.
17923
179242008-08-15 Eli Zaretskii <eliz@gnu.org>
17925
17926 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
17927 Alternative calculation of totphys for Visual Studio 6.
17928
17929 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
17930
17931 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
17932 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
17933 All users changed.
17934 (stat): Only root directory passed to GetDriveType. Allow RAM
17935 disk as well as local fixed disk when w32-get-true-file-attributes
17936 is set to `local'.
17937 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
17938 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
17939 (w32_cached_id, w32_add_to_cache): New functions.
17940 (get_name_and_id): Look account names in the cache before calling
17941 lookup_account_sid.
17942 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
17943 New initialization flags.
17944 (globals_of_w32): Initialize them to zero.
17945 (w32_system_process_attributes): Use w32_cached_id and
17946 w32_add_to_cache.
17947
179482008-08-14 Lawrence Mitchell <wence@gmx.li>
17949
17950 * lread.c (Fread_char, Fread_char_exclusive): If no character
17951 event is read before timeout is reached, return nil, rather than
17952 converting to a number.
17953
179542008-08-14 Chong Yidong <cyd@stupidchicken.com>
17955
17956 * fns.c (use_dialog_box): Doc fix.
17957
17958 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
17959 on OS X.
17960
179612008-08-13 Chong Yidong <cyd@stupidchicken.com>
17962
17963 * frame.c (Qns_parse_geometry): New var.
17964 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
17965
179662008-08-11 Chong Yidong <cyd@stupidchicken.com>
17967
17968 * xdisp.c (x_produce_glyphs): Handle the case when font has no
17969 space character in calculating tabs.
17970
179712008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
17972
17973 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
17974
179752008-08-10 Glenn Morris <rgm@gnu.org>
17976
17977 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
17978 silence gcc "limited range of data type" warnings in some
17979 make_fixnum_or_float calls.
17980
179812008-08-09 Eli Zaretskii <eliz@gnu.org>
17982
17983 * w32.c (w32_system_process_attributes): If the process does not
17984 exist, return nil.
17985
17986 * w32.c: Include thelp32.h, psapi.h and coding.h.
17987 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
17988 declarations.
17989 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
17990 (Process32Next_Proc): New typedefs.
17991 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
17992 (g_b_init_process32_next, g_b_init_open_thread_token)
17993 (g_b_init_impersonate_self, g_b_init_revert_to_self)
17994 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
17995 (g_b_init_get_process_working_set_size)
17996 (g_b_init_global_memory_status_ex): New static variables.
17997 (globals_of_w32): Initialize them.
17998 (create_toolhelp32_snapshot, process32_first, process32_next)
17999 (open_thread_token, impersonate_self, revert_to_self)
18000 (get_process_memory_info, get_process_working_set_size)
18001 (global_memory_status, global_memory_status_ex): New wrapper
18002 functions.
18003 (w32_list_system_processes, w32_system_process_attributes)
18004 (enable_privilege, restore_privilege, ltime, process_times):
18005 New functions.
18006 (convert_time_raw): New function.
18007 (convert_time): Remove conversion of FILETIME into time in 100
18008 nsec units, call convert_time_raw instead.
18009
18010 * process.h (w32_list_system_processes, w32_system_process_attributes):
18011 Add prototypes.
18012 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
18013 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
18014 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
18015 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
18016
18017 * process.c (Fsystem_process_attributes): Doc fix.
18018
180192008-08-08 Chong Yidong <cyd@stupidchicken.com>
18020
18021 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
18022 a continued multi-char glyph; if so, advance to the actual glyph.
18023
180242008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
18025
18026 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
18027
18028 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
18029 (.m.o): Use it.
18030 * config.in: Regenerate.
18031
180322008-08-07 Chong Yidong <cyd@stupidchicken.com>
18033
18034 * xdisp.c (redisplay_window): Revert last change.
18035 (try_window): Check bottom scroll margin too.
18036
180372008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
18038
18039 * config.in: Regenerate.
18040
18041 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
18042 -list-load-path-shadows'.
18043 (nsgui.h): Reduce number of things depending on it.
18044
180452008-08-06 Chong Yidong <cyd@stupidchicken.com>
18046
18047 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
18048 instead of window-end which does the wrong thing at eob.
18049 (try_cursor_movement): Minor optimization.
18050 (redisplay_window): If scroll margin is defined, don't assume
18051 window doesn't need scrolling.
18052
180532008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
18054
18055 * config.in: Regenerate.
18056
18057 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
18058 (mostlyclean): Don't delete *.d under NS.
18059
18060 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
18061
180622008-08-06 Kenichi Handa <handa@m17n.org>
18063
18064 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
18065
180662008-08-06 Andreas Schwab <schwab@suse.de>
18067
18068 * config.in: Regenerate.
18069
180702008-08-05 Chong Yidong <cyd@stupidchicken.com>
18071
18072 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
18073 forcing a window start.
18074
18075 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
18076 (auto_save_1): Update modtime when auto-save-list-file-name is on.
18077
180782008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18079
18080 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
18081 argument.
18082
180832008-08-05 Juanma Barranquero <lekktu@gmail.com>
18084
18085 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
18086 <scroll-down-aggressively, before-change-functions>:
18087 <after-change-functions>: Reflow docstrings.
18088
180892008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 18090 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
18091
18092 Dock menu customization, based on a patch by Ken Raeburn, plus some
18093 other fixes.
18094 * nsmenu.m (dockMenu): New variable.
18095 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
18096
18097 * nsterm.h (dockMenu): Declare.
18098
18099 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
18100 (ns_term_init): Initialize dockMenu.
18101 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
18102 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
18103 left.
18104
18105 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
18106
181072008-08-04 Chong Yidong <cyd@stupidchicken.com>
18108
18109 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
18110
18111 * config.in: Regenerate.
18112
181132008-08-04 Seiji Zenitani <zenitani@mac.com>
18114
18115 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
18116
181172008-08-04 Chong Yidong <cyd@stupidchicken.com>
18118
18119 * nsterm.h (find_and_call_menu_selection): Fix prototype.
18120
181212008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18122
18123 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
18124
18125 * keyboard.h: Comment an #endif.
18126
18127 * lisp.h (have_menus_p): Adjust comment.
18128
18129 * menu.c (find_and_return_menu_selection): Fix comparison with
18130 client_data.
18131
18132 * nsmenu.m (popup_activated_flag): New variable.
18133 (popup_activated): New function.
18134 (menu-or-popup-active-p): New exported lisp definition.
18135 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
18136 when popup done.
18137 (ns_popup_dialog): Set popup_activated_flag.
18138
18139 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
18140 version for GNUstep (handled by conditional typedef in nsterm.m).
18141 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
18142 in rgb.txt).
18143
18144 * process.c (init_process): Use DARWIN_OS, not DARWIN.
18145
18146 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
18147
18148 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
18149
18150 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
18151 shortcircuit if popup_activated like GTK and X toolkit.
18152
18153 * m/inter386.h: Change DARWIN to DARWIN_OS.
18154
18155 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
18156 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
18157 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
18158 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
18159
181602008-08-03 Chong Yidong <cyd@stupidchicken.com>
18161
18162 * nsterm.m (windowDidResize): Remove stopModal call.
18163
181642008-08-03 Andreas Schwab <schwab@suse.de>
18165
18166 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
18167 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
18168
181692008-08-02 Chong Yidong <cyd@stupidchicken.com>
18170
18171 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
18172 Don't use uninitialized pointer variable when using getrlimit.
18173
181742008-08-02 Jason Rumney <jasonr@gnu.org>
18175
18176 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
18177
181782008-08-02 Eli Zaretskii <eliz@gnu.org>
18179
18180 * alloc.c (NSTATICS): Bump to 0x640.
18181
18182 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
18183
18184 * lisp.h: Add prototype for directory_files_internal.
18185
18186 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
18187 New functions.
18188 (syms_of_process): Defsubr them. Add initializations for various
18189 Q* symbols used in procfs_system_process_attributes.
18190 (procfs_list_system_processes, procfs_system_process_attributes)
18191 [HAVE_PROCFS]: New functions.
18192 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
18193 (procfs_get_total_memory): New functions.
18194
181952008-08-01 Juanma Barranquero <lekktu@gmail.com>
18196
18197 * xfaces.c (Fx_load_color_file): Fix previous change;
18198 it is #ifdef WINDOWSNT, not WINDOWS_NT.
18199
182002008-08-01 Michael Albinus <michael.albinus@gmx.de>
18201
18202 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
18203
182042008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18205
18206 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
18207
182082008-08-01 Chong Yidong <cyd@stupidchicken.com>
18209
18210 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
18211
18212 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
18213 define NSApplicationDelegateReplySuccess.
18214 (EmacsView -converstationIdentifier): Use long instead of
18215 NSInteger for GNUstep, since it doesn't have NSInteger.
18216
18217 * xmenu.c: Revert last change.
18218
18219 * keyboard.h: Fix last change.
18220
182212008-08-01 Juanma Barranquero <lekktu@gmail.com>
18222
18223 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
18224 on Windows.
18225
182262008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18227
18228 Warning clearing and clean-up in NS port.
18229 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
18230 Add prototypes.
18231 * nsgui.h (FACE_DEFAULT): Remove, unused.
18232 (XGCValues): Change colors to unsigned long.
18233 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
18234 nsterm.m.
18235 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
18236 (ns_list_fonts): Remove, unused.
18237 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
18238 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
18239 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
18240 (nsfont_draw): Compare face colors to 0, not nil.
18241 * nsmenu.m (struct widget_value): Drop unneeded declaration.
18242 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
18243 (-addSubmenuWithTitle:): Use NSMenuItem class.
18244 (ns_popup_menu): Use NO, not NULL, for enabled setting.
18245 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
18246 (ns_clip_to_row): Make gc arg a BOOL.
18247 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
18248 ns_clip_to_row() call.
18249 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
18250 used). Cast FRAME_FONT assignments.
18251 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
18252 (ns_string_to_lispmod): Change arg to const char.
18253 (ns_term_init): Use NSMenuItem class.
18254 (EmacsApp -openFile:): Move to different section of file.
18255 (EmacsApp -application:openFiles:): Don't return a value, call
18256 -replyToOpenOrPrint:.
18257 (EmacsView -keyDown:): Fix up cast.
18258 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
18259 (EmacsView -menuDown:): Cast tag in call to
18260 find_and_call_menu_selection().
18261 (ns_list_fonts): Remove, unused.
18262 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
18263 (ns_fontname_to_xlfd): Make static.
18264 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
18265 Remove prototypes (now in keyboard.h).
18266 (next_menubar_widget_id): Remove, unused.
18267 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
18268 Remove prototypes (now in keyboard.h).
18269 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
18270
182712008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
18272
18273 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
18274 (floatfns.o): Depend on syssignal.h.
18275 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
18276
18277 * systty.h: Fix previous change that removed BSD_TERMIOS.
18278 Add comments to #ifdefs.
18279
182802008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18281
18282 * w32fns.c (w32-load-color-file): Remove.
18283 (x-open-connection): Use renamed Fx_load_color_file.
18284 * xfaces.c (x-load-color-file): Add.
18285 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
18286 Emacs.clr.
18287 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
18288
182892008-07-31 Michael Albinus <michael.albinus@gmx.de>
18290
18291 * dbusbind.c (Fdbus_call_method_asynchronously)
18292 (Fdbus_method_error_internal): New defuns.
18293 (xd_read_message): Handle also reply messages.
18294 (Vdbus_registered_functions_table): Extend docstring.
18295
182962008-07-31 Juanma Barranquero <lekktu@gmail.com>
18297
18298 * keyboard.c (gobble_input): Fix previous change.
18299
183002008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18301
18302 * bitmaps/README:
18303 * xfns.c:
18304 * termcap.c:
18305 * term.c:
18306 * syswait.h:
18307 * systty.h:
18308 * systime.h:
18309 * syssignal.h:
18310 * sysdep.c:
18311 * process.h:
18312 * process.c:
18313 * print.c:
18314 * ndir.h:
18315 * lread.c:
18316 * keyboard.c:
18317 * getpagesize.h:
18318 * floatfns.c:
18319 * fileio.c:
18320 * emacs.c:
18321 * doc.c:
18322 * dispnew.c:
18323 * dired.c:
18324 * data.c:
18325 * callproc.c:
18326 * buffer.c:
18327 * README:
18328 * Makefile.in:
18329 * s/template.h:
18330 * s/msdos.h:
18331 * m/vax.h: Remove VMS support.
18332 * s/vms.h:
18333 * vlimit.h:
18334 * uaf.h:
18335 * temacs.opt:
18336 * param.h:
18337 * ioctl.h: Remove file.
18338
183392008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18340
18341 * s/ms-w32.h (MULTI_KBOARD): Remove.
18342 * xterm.c:
18343 * xselect.c:
18344 * xfns.c:
18345 * window.c:
18346 * w32term.c:
18347 * w32fns.c:
18348 * terminal.c:
18349 * termhooks.h:
18350 * term.c:
18351 * sysdep.c:
18352 * keyboard.h:
18353 * keyboard.c:
18354 * frame.h:
18355 * frame.c:
18356 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
18357 * config.in: Regenerate.
18358
183592008-07-30 Jason Rumney <jasonr@gnu.org>
18360
18361 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
18362
18363 * w32font.c (w32font_encode_char): Leave as unicode if in range.
18364 (w32font_open_internal): Get unicode version of textmetrics.
18365 Don't enable or disable glyph indices here.
18366 (w32font_open): Disable use of glyph indices.
18367
18368 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
18369
183702008-07-30 Chong Yidong <cyd@stupidchicken.com>
18371
18372 * minibuf.c (Vread_buffer_function): Doc fix.
18373
183742008-07-30 John Paul Wallington <jpw@pobox.com>
18375
18376 * minibuf.c (read_buffer_completion_ignore_case): New var.
18377 (Fread_buffer): Use it.
18378
183792008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
18380
18381 * systty.h (sensemode): Remove empty #if. Remove reference to
18382 BSD_TERMIOS, unused.
18383
18384 * sysdep.c: Remove reference to DGUX.
18385 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
18386
18387 * config.in: Regenerate.
18388
183892008-07-30 Jason Rumney <jasonr@gnu.org>
18390
18391 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
18392
183932008-07-29 Jason Rumney <jasonr@gnu.org>
18394
18395 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
18396 is populated.
18397 (uniscribe_encode_char): Always use uniscribe.
18398 Avoid using context if cache is populated.
18399
184002008-07-29 Jan Djärv <jan.h.d@swipnet.se>
18401
18402 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
18403 open menu.
18404
18405 * gtkutil.c (menu_nav_ended): Remove.
18406 (create_menus): Remove signal connect for menu_nav_ended.
18407
184082008-07-28 Chong Yidong <cyd@stupidchicken.com>
18409
18410 * xdisp.c (redisplay_window): Check return value of
18411 compute_window_start_on_continuation_line before forcing a window
18412 start.
18413
184142008-07-28 Jason Rumney <jasonr@gnu.org>
18415
18416 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
18417
18418 * w32term.c (w32_enable_unicode_output, cleartype_active):
18419 Remove obsolete display options.
18420 (x_draw_glyph_string_background): Don't use old cleartype_active
18421 workaround.
18422 (w32_initialize): Remove cleartype_active initialization.
18423 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
18424
184252008-07-28 Andreas Schwab <schwab@suse.de>
18426
18427 * lisp.h (init_weak_hash_tables, syms_of_font)
18428 (xd_read_queued_messages, syms_of_dbusbind): Declare.
18429 (remove_hash_entry): Don't declare.
18430 * eval.c (maybe_call_debugger): Make static and move before use.
18431 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
18432 * xdisp.c: Include "gtkutil.h" if USE_GTK.
18433 * xterm.h (x_set_frame_alpha): Declare.
18434
184352008-07-28 Jan Djärv <jan.h.d@swipnet.se>
18436
18437 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
18438 (create_menus): Connect selection-done to menu_nav_ended.
18439
184402008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18441
18442 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
18443 Set Vx_resource_name to a fallback. Replace read of 'buffered'
18444 parameter with read of 'alpha' one.
18445 (Qns_frame_parameter): Remove.
5582fbc7 18446 * nsselect.m (selection-coding-system)
aac0c6e3
MR
18447 (next-selection-coding-system, Vselection_coding_system)
18448 (Vnext_selection_coding_system): Drop.
18449
184502008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18451
18452 * nsfns.m (do-applescript, do_applescript): Rename to
18453 ns-do-applescript, ns_do_applescript, and move within file.
18454
184552008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
18456
18457 Remove support for Mac Carbon.
18458 * mactoolbox.c:
18459 * macterm.h:
18460 * macterm.c:
18461 * macselect.c:
18462 * macmenu.c:
18463 * macgui.h:
18464 * macfns.c:
18465 * mac.c: Remove file.
18466 * s/darwin.h:
18467 * m/intel386.h:
18468 * xfaces.c:
18469 * xdisp.c:
18470 * window.c:
18471 * tparam.c:
18472 * termhooks.h:
18473 * termcap.c:
18474 * term.c:
18475 * syssignal.h:
18476 * sysselect.h:
18477 * sysdep.c:
18478 * process.c:
18479 * lread.c:
18480 * lisp.h:
18481 * keyboard.c:
18482 * image.c:
18483 * fringe.c:
18484 * frame.h:
18485 * frame.c:
18486 * fontset.c:
18487 * font.h:
18488 * font.c:
18489 * fns.c:
18490 * fileio.c:
18491 * emacs.c:
18492 * dispnew.c:
18493 * dispextern.h:
18494 * config.in:
18495 * atimer.c:
2ae37cf0 18496 * Makefile.in: Remove code for Carbon.
aac0c6e3 18497
f0131492 184982008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
18499
18500 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
18501
185022008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18503
18504 * macterm.h (kCGBitmapByteOrder32Host): New define for
18505 non-universal SDKs.
18506
18507 * image.c (mac_create_cg_image_from_image, image_load_image_io)
18508 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18509
18510 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
18511 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18512
185132008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
18514
18515 * w32inevt.c: Include dispextern.h.
18516
185172008-07-26 Andreas Schwab <schwab@suse.de>
18518
18519 * print.c (print_object): Fix off-by-one in last change.
18520
185212008-07-25 Juanma Barranquero <lekktu@gmail.com>
18522
18523 * term.c (syms_of_term): Don't initialize default_orig_pair,
18524 default_set_foreground and default_set_background on Windows.
18525
185262008-07-25 Jason Rumney <jasonr@gnu.org>
18527
18528 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
18529 ScriptItemize. Clean up return value checking. Remove unused
18530 variables.
18531 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
18532 shaping engine.
18533
18534 * w32font.c (w32font_has_char): Handle the case where we can't
18535 determine the script for a character.
18536
185372008-07-25 Chong Yidong <cyd@stupidchicken.com>
18538
18539 * term.c (syms_of_term): Initialize default_orig_pair,
18540 default_set_foreground, and default_set_background.
18541
18542 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18543 clash (bug#86).
18544 (getloadavg): Callers changed.
18545
18546 * image.c (svg_load_image): Fix last change.
18547 (svg_load_image): Use rsvg_handle_get_dimensions to check that
18548 image size is valid. Use g_object_unref instead of deprecated
18549 rsvg_handle_free to free rsvg handle.
18550 (x_from_xcolors): Don't initialize pixmap (silence compiler).
18551
185522008-07-25 Jason Rumney <jasonr@gnu.org>
18553
18554 * w32font.c (w32font_encode_char): Encode characters outside BMP as
18555 surrogates before looking up glyph index.
18556 (w32font_text_extents): Encode as surrogates if falling back to
18557 functions that need UTF-16 wide chars.
18558
18559 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
18560 BMP as surrogates before looking up glyph index.
18561
185622008-07-25 Chong Yidong <cyd@stupidchicken.com>
18563
18564 * image.c (svg_load_image): Check for failure in return value of
18565 rsvg_handle_get_pixbuf. Free rsvg handle when done.
18566
185672008-07-25 Jason Rumney <jasonr@gnu.org>
18568
18569 * w32font.c (Fx_select_font): Reverse sense of second arg.
18570
185712008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
18572
18573 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
18574 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
18575
18576 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
18577 (PURESIZE): Use it.
18578
185792008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
18580
18581 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
18582 * m/alpha.h (TEXT_END):
18583 * m/ibmrs6000.h (TEXT_END):
18584 * m/macppc.h (TEXT_END):
18585 * s/darwin.h (TEXT_END):
18586 * s/msdos.h (TEXT_END): Remove, unused.
18587 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
18588 * s/cygwin.h: Remove comment.
18589
18590 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
18591 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
18592 * m/intel386.h (DOT_GLOBAL_START):
18593 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
18594 (USG): Remove, file not used on USG platforms.
18595
18596 * Makefile.in (HAVE_X11): Remove empty #else.
18597
185982008-07-24 Andreas Schwab <schwab@suse.de>
18599
18600 * fileio.c (Finsert_file_contents): Properly adjust undo list
18601 after format conversion.
18602
186032008-07-24 Jan Djärv <jan.h.d@swipnet.se>
18604
18605 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
18606 (menu_nav_ended): Remove.
18607 (create_menus): Remove signal connect for menu_nav_ended.
18608 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
18609 create_menus.
18610 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
18611
186122008-07-23 Jason Rumney <jasonr@gnu.org>
18613
18614 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
18615 with opened font.
18616 (w32font_open): Set font type to gdi.
18617
18618 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
18619
186202008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
18621
18622 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
18623 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
18624 defines it.
18625 * unexec.c (ADDR_CORRECT): Define unconditionally.
18626
18627 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
18628
18629 * unexec.c: Remove code depending on !COFF and USG, the file is
18630 not used for such systems.
18631
18632 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
18633 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18634 (LD_SWITCH_SYSTEM_1): Remove, update users.
18635
18636 * s/darwin.h (DATA_END):
18637 * m/intel386.h (DATA_END):
18638 * m/ibmrs6000.h (DATA_END):
18639 * m/alpha.h (DATA_END): Remove, unused.
18640
18641 * config.in: Regenerate.
18642 * s/ms-w32.h (subprocesses): Define unconditionally.
18643 * s/template.h (subprocesses): Update comment.
18644 * s/vms.h (subprocesses):
18645 * s/usg5-4.h (subprocesses):
18646 * s/hpux10-20.h (subprocesses):
18647 * s/gnu-linux.h (subprocesses):
18648 * s/cygwin.h (subprocesses):
18649 * s/bsd-common.h (subprocesses):
18650 * s/aix4-2.h (subprocesses):
18651 * s/darwin.h (subprocesses): Do not define, defined by default now.
18652
18653 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18654 Remove all references.
18655 (temacs): Add GNUstep specific ld flags.
18656
18657 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18658 similarly to what X does.
18659
186602008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18661
18662 * nsfns.m (x-list-fonts): Remove.
18663 (syms_of_nsfns): Drop the x-list-fonts declaration.
18664 * nsterm.m: Get rid of remaining "//" comments.
18665
186662008-07-22 Chong Yidong <cyd@stupidchicken.com>
18667
18668 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18669
18670 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18671 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18672 (Fns_own_selection_internal, Fx_disown_selection_internal)
18673 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18674
18675 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18676 ... */' style of docstrings. Doc fixes.
18677
186782008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18679
18680 * terminfo.c (UP, BC, PC): Undo previous change.
18681
18682 * nsfns.m: Rename ns prefixed functions/variables to the
18683 corresponding x versions. Update references.
18684
186852008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
18686
18687 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18688
186892008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18690
18691 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18692 Remove forwarding functions.
18693 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18694 non-static.
18695 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18696 non-static.
18697 (ns_frame_parm_handlers): Use the new names.
18698 (syms_of_nsfns): Move to the end of file.
18699
18700 * nsterm.m (syms_of_nsterm): Move to the end of file.
18701
18702 * dispnew.c (init_display): Remove code for X10.
18703
187042008-07-22 Jason Rumney <jasonr@gnu.org>
18705
18706 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18707 bare drive.
18708
187092008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18710
18711 * nsterm.m (syms_of_nsterm): Remove debugging println.
18712
187132008-07-22 David Reitter <david.reitter@gmail.com>
18714
18715 * nsfns.m (do_applescript, F_do_applescript): NS version of the
18716 Carbon implementation of the same functionality: execute arbitrary
18717 AppleScript code.
18718
187192008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
18720
18721 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18722 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18723 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18724 (Fx_display_mm_height, Fx_display_mm_width)
18725 (Fx_display_backing_store, Fx_display_visual_class)
18726 (Fx_display_save_under, Fx_open_connection)
18727 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18728 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18729 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18730 (Fx_display_pixel_width, Fx_display_pixel_height)
18731 (Fx_display_usable_bounds, Fx_display_planes)
18732 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18733 ... */' style of docstrings.
18734
187352008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
18736
18737 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
18738 on this platform.
18739 (mips):
18740 * m/iris4d.h (mips): Do not define.
18741 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
18742
18743 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
18744
18745 * image.c:
18746 * nsfns.m:
18747 * nsselect.m:
18748 * nsterm.h:
18749 * nsterm.m: Rename ns prefixed functions/variables to the
18750 corresponding x versions. Update references.
18751
18752 * m/ibms390x.h (NO_REMAP): Do not undefine.
18753
18754 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18755
187562008-07-21 Chong Yidong <cyd@stupidchicken.com>
18757
18758 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18759 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18760 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18761 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18762 (Fns_display_mm_height, Fns_display_mm_width)
18763 (Fns_display_backing_store, Fns_display_visual_class)
18764 (Fns_display_save_under, Fns_open_connection)
18765 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18766 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18767 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18768 (Fns_display_pixel_width, Fns_display_pixel_height)
18769 (Fns_display_usable_bounds, Fx_display_planes)
18770 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18771
187722008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18773
18774 * print.c (print_object): Check print_depth before searching for
18775 circularities.
18776
187772008-07-21 Michael Albinus <michael.albinus@gmx.de>
18778
18779 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
18780 only sprintf.
18781
187822008-07-21 Kenichi Handa <handa@m17n.org>
18783
18784 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
18785
187862008-07-20 Andreas Schwab <schwab@suse.de>
18787
18788 * syntax.c (find_start_pos, find_start_value)
18789 (find_start_value_byte, find_start_begv, find_defun_start)
18790 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
18791
187922008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18793
18794 * s/sol2-3.h: Insert contents of s/sol2.h.
18795 (LD_SWITCH_SYSTEM): Remove redundant definition.
18796 * s/sol2.h: Remove, unused.
18797
187982008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18799
18800 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
18801
188022008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18803
18804 * Makefile.in (ns_appdir): Fix typo in find command.
18805
188062008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18807
18808 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
18809
18810 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
18811 added not supported anymore.
18812
18813 * s/usg5-4-2.h (LIBS_SYSTEM):
18814 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
18815
18816 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18817 * s/lynxos.h (GETPGRP_NO_ARG):
18818 * s/hpux10-20.h (NO_SIOCTL_H):
18819 * s/gnu.h (GETPGRP_NO_ARG):
18820 * s/gnu-linux.h (NO_SIOCTL_H):
18821 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18822 * s/cygwin.h (GETPGRP_NO_ARG):
18823 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
18824 (C_DEBUG_SWITCH): Remove duplicate definition.
18825
18826 * m/ibms390.h: Remove boilerplate comments.
18827
18828 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
18829
18830 * process.c (HAVE_SERIAL): Consolidate ifdefs.
18831 (wait_reading_process_output): Remove code for SunOS, platform not
18832 supported anymore. Use SOLARIS2 instead of sun.
18833
188342008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18835
18836 * font.c (font_open_by_name): Under NS, default lface height to zero.
18837 (font_open_for_lface): Under NS, set size based on frame fontsize.
18838 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
18839 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
18840
188412008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18842
18843 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
18844 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
18845 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
18846 YES/NO.
18847 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
18848 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
18849 * Makefile.in (clean): Clear out build destination dir.
18850
188512008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18852
18853 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
18854 xterm, xselect.
18855 * lisp.h: Remove declaration of hash_remove.
18856 * nsgui.h: Remove redefinitions of hash_remove.
18857 * fns.c (hash_remove): Rename to hash_remove_from_table.
18858
188592008-07-19 Seiji Zenitani <zenitani@mac.com>
18860
18861 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
18862 strdup() the family UTF8String before modifying it.
18863
188642008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18865
18866 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
18867 NS_FACE_BACKGROUND with 0 instead of nil.
18868 * nsfont.m (nsfont_draw): Same.
18869
188702008-07-19 Chong Yidong <cyd@stupidchicken.com>
18871
18872 * nsfns.m (ns_set_background_color): Fix crash.
18873
188742008-07-18 Chong Yidong <cyd@stupidchicken.com>
18875
18876 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
18877
188782008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
18879
18880 * puresize.h (BASE_PURESIZE): Increase to 1240000.
18881
188822008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18883
18884 * gtkutil.c: Include <config.h> instead of "config.h".
18885
18886 * lisp.h (Foverlay_buffer): Add EXFUN.
18887
18888 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
18889 child process to complete child_setup. Undo 2005-09-21 change.
18890
18891 * s/darwin.h: Mention setsid after vfork.
18892
188932008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18894
18895 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
18896 Depend on macgui.h.
18897
18898 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
18899 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
18900
18901 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
18902 and f19.
18903 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
18904
18905 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
18906 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
18907 Remove enumerators.
18908
18909 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
18910 Check if FACE_FROM_ID returns NULL.
18911
189122008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
18913
18914 * w32inevt.c (change_frame_size): Remove extern declaration.
18915 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
18916 change_frame_size.
18917
189182008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18919
18920 * getloadavg.c: Revert last change (2008-07-15).
18921
189222008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18923
18924 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 18925 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
18926 from configure.
18927
189282008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
18929
18930 * s/sol2.h:
18931 * s/sol2-4.h: Reorganize conditionals.
18932
18933 * ecrt0.c: Remove code depending on m68000, not used anymore.
18934
18935 * fns.c (hash_remove): Make static.
18936 * lisp.h (hash_remove): Don't prototype.
18937
18938 * m/ibmrs6000.h:
18939 * m/ibms390x.h:
18940 * m/macppc.h: Remove boilerplate comments.
18941
18942 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
18943 Solaris, which does not need them.
18944
18945 * m/vax.h: Remove comments about unsupported systems.
18946
18947 * s/darwin.h: Reorganize ifdefs.
18948
189492008-07-17 Andreas Schwab <schwab@suse.de>
18950
18951 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
18952
189532008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18954
18955 Use SDATA. Follow coding convention of placing operators at
18956 beginning of next line rather than end of previous line, and placing
18957 spaces around infix operators.
18958
18959 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
18960 in case it was defined already.
18961 USE @GNUSTEP_MAKEFILES@ rather than envvars.
18962 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
18963 ns_default.
18964 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
18965 Lisp_Objects.
18966 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
18967 (ns_defined_color, ns_color_to_lisp): Declare.
18968 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
18969 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
18970 it's accepted even with USE_LISP_UNION_TYPE.
18971 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
18972 (update_frame_tool_bar): Remove apparently obsolete tests for
18973 non-integerness of f->tool_bar_lines.
18974 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
18975 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
18976 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
18977 (nsfont_open): Don't confuse NULL for Qnil.
18978 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
18979 * menu.h (find_and_call_menu_selection):
18980 * menu.c (find_and_call_menu_selection): Use just int for vector size.
18981 (find_and_return_menu_selection): Always return something.
18982 * frame.h: Include dispextern.h for Display_Info.
18983 (display_x_get_resource): Declare.
18984
189852008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
18986
18987 * syntax.c: Remove stdio.h include accidentally introduced in
18988 Emacs.app commit.
18989 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
18990 NS_IMPL_COCOA.
18991 * keyboard.c (handle_async_input, input_available_signal): Remove
18992 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
18993
189942008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18995
18996 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
18997 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
18998 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
18999 Use SDATA.
19000
19001 * keymap.c: Remove all NS-specific code.
19002 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
19003 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
19004 where_is_preferred_modifier, return a different value depending on how
19005 preferred is the binding.
19006 (where_is_internal): Adjust accordingly.
19007 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
19008 Adjust to new preferred_sequence_p.
19009 (syms_of_keymap): Declare `where-is-preferred-modifier'.
19010 * keyboard.c (parse_solitary_modifier): Not static any more.
19011 * keyboard.h (parse_solitary_modifier): Declare.
19012
190132008-07-16 Andreas Schwab <schwab@suse.de>
19014
19015 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
19016 of easymenu.
19017
190182008-07-16 Chong Yidong <cyd@stupidchicken.com>
19019
19020 * xdisp.c (move_it_in_display_line): Account for word wrap, so
19021 that we don't move off the line.
19022
190232008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
19024
19025 * keyboard.c (Qsuper): Remove.
19026 (parse_menu_item): Don't call where_is_internal specially for NS.
19027
190282008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
19029
19030 * s/gnu-linux.h: Remove boilerplate comments.
19031
19032 * m/alpha.h (__ELF__): Consolidate conditions.
19033
19034 * m/m68k.h (linux): Use GNU_LINUX instead.
19035 Remove boilerplate comments.
19036
19037 * m/intel386.h: Undo refactoring from previous change.
19038 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
19039 too, remove dead code.
19040 (linux): Use GNU_LINUX instead.
19041
190422008-07-16 Jason Rumney <jasonr@gnu.org>
19043
19044 * w32gui.h: Repeat 26 June changes lost by last change.
19045
190462008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
19047
19048 * systty.h: Remove code for Aix on 386, unsupported platform.
19049
19050 * s/ms-w32.h: Remove boilerplate comments.
19051 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
19052
19053 * s/gnu-linux.h (TERM): Remove support.
19054 (HAVE_SYSVIPC): Remove, unused.
19055 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
19056 for this system.
19057
19058 * process.c: Remove support for IRIS, unused.
19059 Remove support for TERM, not relevant anymore.
19060
19061 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
19062 used with the definition.
19063
19064 * s/aix4-2.h (static): Do not undef.
19065
19066 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
19067 only used on Aix.
19068 (HAVE_SYSVIPC): Remove, unused.
19069
19070 * m/hp800.h (CANNOT_DUMP): Do not undef.
19071
19072 * m/alpha.h: Fix comment.
19073
19074 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
19075 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
19076 used by this configuration.
19077 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
19078 * unexec.c: Remove code depending on HPUX and
19079 USG_SHARED_LIBRARIES, not used with this file. Remove code
19080 depending on IRIS, unused. Remove if 0-ed code.
19081
19082 * s/template.h: Remove comments about static.
19083
19084 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
19085 Remove if 0-ed code.
19086 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
19087 were the same as the default.
19088 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
19089 Remove boilerplate comments.
19090 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
19091 (HAVE_SYSVIPC): Remove, unused.
19092 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
19093
19094 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19095 Remove boilerplate comments.
19096 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19097 Remove boilerplate comments.
19098 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19099 Remove boilerplate comments.
19100 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
19101
19102 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
19103 USG systems which do not use DATA_SEG_BITS.
19104 Refactor code. Remove boilerplate comments.
19105
19106 * m/ibms390.h:
19107 * m/m68k.h:
19108 * s/bsd-common.h:
19109 * s/cygwin.h:
19110 * s/darwin.h:
19111 * s/freebsd.h:
19112 * s/gnu.h:
19113 * s/msdos.h: Remove boilerplate comments.
19114
19115 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 19116 do not use this file.
aac0c6e3
MR
19117 (IRIS_4D): Remove, unused.
19118
19119 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 19120 do not use this file.
aac0c6e3
MR
19121 (SIGN_EXTEND_CHAR):
19122 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
19123 * unexmips.c: Remove file, unused.
19124
19125 * editfns.c (Fuser_full_name): Replace the only use of
19126 USER_FULL_NAME with its value.
19127 * config.in: Regenerate.
19128
191292008-07-16 David Reitter <david.reitter@gmail.com>
19130
19131 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
19132 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
19133
191342008-07-16 Glenn Morris <rgm@gnu.org>
19135
19136 * emacs.c (system-type): Doc fix.
19137
191382008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
19139
19140 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
19141 If the cache doesn't work, let's fix it, rather than work around it.
19142
191432008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19144
19145 * Makefile.in: Correct additions for nsfont.o in last commit.
19146 * nsfont.m: New file (forgot last commit).
19147
191482008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
19149
bba3e508
SM
19150 * callproc.c (set_initial_environment):
19151 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
19152 batch-compiling for bootstrap).
19153
191542008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 19155 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 19156
c4cc8b9a
JB
19157 * frame.c (make_initial_frame): Call init_frame_faces(f) in
19158 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
19159
191602008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19161
19162 Changes and additions for NeXTstep windowing system (Cocoa and
19163 GNUstep) support.
19164
19165 * Makefile.in:
19166 * config.in: Support defines and build commands for NS port.
19167 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
19168 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
19169 * dispextern.h: Include nsgui.h and add needed typedefs under NS
19170 windowing.
19171 (struct face): Add synth_ital field.
19172 * dispnew.c: Include nsterm.h when compiling under NS windowing.
19173 (init_display): Initialize Vinitial_window_system to "ns" when so
19174 compiled.
19175 * emacs.c: Include GSConfig.h when compiling under GNUstep.
19176 (display_arg): Use under NS.
19177 (main): Under NS, allocate autorelease pool and handle command line
19178 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
19179 (standard_args): Add NS-specific args.
19180 (shut_down_emacs): Shut down NS terminal if compiled under NS.
19181 * font.c (DEFAULT_ENCODING): New variable.
19182 (font_find_for_lface): Use it.
19183 (syms_of_font): Load syms_of_nsfont under NS.
19184 * font.h: Declare nsfont_driver when compiled under NS.
19185 * fontset.c: When compiling under NS, include nsterm.h.
19186 (fontset_from_font): Autoconstruct fontset under NS.
19187 * frame.c (various): Under NS, include nsterm.h, add Qns window system
19188 symbol, document and use it.
19189 (do_switch_frame): When for_deletion under Cocoa, add
19190 Fraise_frame(Qnil).
19191 (x_set_frame_parameters): Ensure font attribute changes are picked up.
19192 (x_get_arg): Allow "yes" and "no" as boolean values.
19193 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
19194 Qright under Cocoa.
19195 (focus-follows-mouse): Default to 0 under NS.
19196 * frame.h (enum output_method): Add output_ns.
19197 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
19198 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
19199 (FRAME_WINDOW_P): NS-specific definition.
19200 * fringe.c (max_used_fringe_bitmap): Make public.
19201 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
19202 (getloadavg): Use NeXT code under descendant OS's.
19203 * image.c (includes and header section, x_create_bitmap_from_data)
19204 (x_create_bitmap_from_file, free_bitmap_record, image_background)
19205 (image_background_transparent, x_clear_image_1)
19206 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
19207 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
19208 (x_to_xcolors, x_from_xcolors, x_disable_image)
19209 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
19210 other GUIs, including XPM support using code originally written for
19211 Carbon GUI.
19212 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
19213 using NS API.
19214 (image_ascent): Use font metrics macros instead of direct struct field
19215 access.
19216 * keyboard.c (includes): Add nsterm.h when compiling under NS.
19217 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
19218 Also, handle NS as GTK for menu bar purposes.
19219 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
19220 toolkit where they differ.
19221 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
19222 use cachelist, still needed under NS.
19223 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
19224 (struct widget_value): Define it here for menu.c.
19225 * keymap.c (includes): Include modifier internals.
19226 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
19227 NS.
19228 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
19229 support for preferring sequences using certain modifiers, specified by
19230 the FIRSTONLY argument.
19231 * lisp.h (hash_remove): Rename to avoid name clash when compiling
19232 under NS GNUstep implementation.
19233 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
19234 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
19235 * menu.c: Include nsterm.h under NS.
19236 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
19237 (free_menubar_widget_tree_value, update_submenu_strings)
19238 (find_and_call_menu_selection): Treat NS as X and NT.
19239 (find_and_return_menu_selection): New function, used for popup menus.
19240 * nsgui.h:
19241 * nsterm.h:
19242 * nsfns.m:
19243 * nsimage.m:
19244 * nsmenu.m:
19245 * nsselect.m:
19246 * nsterm.m: New files.
19247 * process.c (wait_reading_process_output): Under NS, call ns_select()
19248 instead of plain select().
19249 * syntax.c (char_quoted): Under NS, avoid a crash when called near
19250 beginning of buffer.
19251 * sysselect.h (init_process): Rename when compiling under Cocoa to
19252 avoid name conflict.
19253 * termhooks.h (display_info): Add ns_display_info to union.
19254 * terminal.c (Fterminal_live_p): Add ns to terminal types.
19255 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
19256 COCOA environment.
19257 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
19258 unexec() signature. (Note, this will dump, but the resulting file
19259 crashes; unexosx is used instead; keeping around for reference and
19260 possible aid in getting dump working under GNUstep.)
19261 * w32gui.h (button_type, widget_value): Remove definitions (now in
19262 keyboard.h).
19263 * window.c: Include nsterm.h when compiling under NS.
19264 * xdisp.c (includes): Include nsterm.h when compiling under NS.
19265 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
19266 other GUI windowing systems.
19267 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
19268 GTK.
19269 (x_consider_frame_title): Under NS, set icon type and frame
19270 modified-state indicator; use ns_set_name_as_filename() when using
19271 formatted title.
19272 (update_window_cursor): Make public when compiling under NS.
19273 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
19274 (hourglass_atimer, Vhourglass_delay
19275 * xfaces.c (header section, init_frame_faces, clear_font_table)
19276 (defined_color, unload_color, x_face_list_fonts)
19277 (prepare_face_for_display): Add NS support parallel to other GUIs.
19278 Emulate GCs like other non-X GUIs.
19279 (split_font_name): Don't lowercase font name under NS.
19280 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
19281 under NS.
19282 * s/darwin.h: Add support for compilation under NS.
19283
192842008-07-15 Jason Rumney <jasonr@gnu.org>
19285
19286 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
19287 (w32_show_hourglass): Rename from show_hourglass.
19288 (w32_hide_hourglass): Rename from hide_hourglass.
19289 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
19290 (Vhourglass_delay): Declare extern.
19291 (hourglass_started): Remove.
19292
19293 * xdisp.c (Vhourglass_delay): Remove static.
19294 (hourglass_started, start_hourglass, cancel_hourglass):
19295 Don't include these versions on WINDOWSNT.
19296
192972008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19298
19299 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
19300 variables (formerly in xfns.c).
19301 (show_hourglass, hide_hourglass): New prototypes (same).
19302 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
19303 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
19304 in xfns.c).
19305 (syms_of_xdisp): Declare/initialize display-hourglass,
19306 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
19307 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
19308 formerly in xfns.c.
19309 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19310 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19311 (start_hourglass, cancel_hourglass): Remove.
19312 (show_hourglass, hide_hourglass): Remove prototypes and static
19313 modifiers.
19314 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
19315 hourglass_atimer, hourglass_shown_p declaration/initialization.
19316 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19317 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19318 (start_hourglass, cancel_hourglass): Remove.
19319 (show_hourglass, hide_hourglass): Remove prototypes and static
19320 modifiers.
19321 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
19322 hourglass_atimer, hourglass_shown_p declaration/initialization.
19323 * w32fns.c (display_hourglass_p, Vhourglass_delay)
19324 (DEFAULT_HOURGLASS_DELAY): Remove.
19325 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
19326 hourglass_shown_p declaration/initialization.
19327
193282008-07-14 Jason Rumney <jasonr@gnu.org>
19329
19330 * w32fns.c (w32_get_arg): Remove wrapper function.
19331 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
19332 directly.
19333 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
19334
193352008-07-14 Kenichi Handa <handa@m17n.org>
19336
19337 * xfont.c (xfont_open): Add workaround for X's bug.
19338
193392008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19340
19341 * fontset.c: Include <stdio.h> unconditionally.
19342
193432008-07-13 Michael Albinus <michael.albinus@gmx.de>
19344
19345 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
19346 for filtering.
19347
193482008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
19349
19350 * s/vms.h: Use __GNUC__ instead of _GNUC_.
19351
19352 * m/macppc.h:
19353 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
19354
c4cc8b9a 19355 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
19356 (SPECIAL_EMACS_INT):
19357 * m/ia64.h (SPECIAL_EMACS_INT):
19358 * m/amdx86-64.h (SPECIAL_EMACS_INT):
19359 * s/gnu.h (NLIST_STRUCT):
19360 * s/aix4-2.h (X11R5_INHIBIT_I18N):
19361 * s/gnu-linux.h (LINUX):
19362 * s/msdos.h (HAVE_FACES):
19363 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
19364
19365 * systty.h:
19366 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
19367 anymore.
19368
193692008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
19370
19371 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
19372 always defined as int.
19373
19374 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
19375 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
19376 * s/gnu-linux.h (HAVE_WAIT_HEADER):
19377 * s/freebsd.h (HAVE_WAIT_HEADER):
19378 * s/bsd-common.h (HAVE_UNION_WAIT):
19379 * s/aix4-2.h (HAVE_WAIT_HEADER):
19380 * m/mips.h (HAVE_UNION_WAIT):
19381 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
19382 (COFF, static): Do not define, they are undefined later in the file.
19383
19384 * process.c (update_status): Don't use a union.
19385 (status_convert):
19386 (sigchld_handler): Use int instead of WAITTYPE.
19387
193882008-07-12 Chong Yidong <cyd@stupidchicken.com>
19389
19390 * indent.c (Fvertical_motion): Restore hscroll before moving to
19391 goal column.
19392
193932008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19394
19395 * lisp.h: Remove left over code.
19396
193972008-07-11 Andreas Schwab <schwab@suse.de>
19398
19399 * lisp.h: Fix logic in last change.
19400
19401 * menu.h: New file.
19402 * menu.c: Include it.
19403 * xmenu.c: Likewise.
19404 * Makefile.in: Update dependencies.
19405
194062008-07-11 Kenichi Handa <handa@m17n.org>
19407
19408 * fontset.c (fontset_from_font): Cancel the previous change.
19409
194102008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19411
19412 * lisp.h:
19413 * w32heap.c:
19414 * emacs.c:
19415 * alloc.c: Replace all references of NO_UNION_TYPE with
19416 USE_LISP_UNION_TYPE.
19417
19418 * m/xtensa.h (NO_UNION_TYPE):
19419 * m/vax.h (NO_UNION_TYPE):
19420 * m/template.h (NO_UNION_TYPE):
19421 * m/sparc.h (NO_UNION_TYPE):
19422 * m/mips.h (NO_UNION_TYPE):
19423 * m/macppc.h (NO_UNION_TYPE):
19424 * m/m68k.h (NO_UNION_TYPE):
19425 * m/iris4d.h (NO_UNION_TYPE):
19426 * m/intel386.h (NO_UNION_TYPE):
19427 * m/ibms390x.h (NO_UNION_TYPE):
19428 * m/ibms390.h (NO_UNION_TYPE):
19429 * m/ibmrs6000.h (NO_UNION_TYPE):
19430 * m/ia64.h (NO_UNION_TYPE):
19431 * m/hp800.h (NO_UNION_TYPE):
19432 * m/arm.h (NO_UNION_TYPE):
19433 * m/amdx86-64.h (NO_UNION_TYPE):
19434 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
19435 defining it the same.
19436
194372008-07-10 Chong Yidong <cyd@stupidchicken.com>
19438
19439 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
19440
194412008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19442
19443 * fileio.c:
50426a04 19444 * sysdep.c:
aac0c6e3
MR
19445 * systty.h:
19446 * m/ibmrs6000.h:
19447 * m/iris4d.h:
19448 * s/aix4-2.h:
19449 * s/freebsd.h:
19450 * s/gnu-linux.h:
19451 * s/hpux10-20.h:
19452 * s/hpux11.h:
19453 * s/netbsd.h:
19454 * s/sol2-3.h:
19455 * s/sol2-4.h:
19456 * s/sol2.h:
19457 * s/usg5-4.h:
19458 * s/vms.h: Remove references to unused variables.
19459
194602008-07-10 Andreas Schwab <schwab@suse.de>
19461
19462 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
19463 pattern before matching the generic family.
19464
194652008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19466
19467 * unexec.c:
19468 * s/vms.h:
19469 * s/usg5-4-2.h:
19470 * s/sol2-5.h:
19471 * s/freebsd.h:
19472 * s/darwin.h: Remove dead code.
19473
19474 * m/template.h:
19475 * m/sparc.h:
19476 * m/mips.h:
19477 * m/m68k.h:
19478 * m/iris4d.h:
19479 * m/intel386.h:
19480 * m/ibms390x.h:
19481 * m/ibms390.h:
19482 * m/ia64.h:
19483 * m/hp800.h:
19484 * m/arm.h:
19485 * m/amdx86-64.h: Remove dead code and references to unused
19486 and compiler defined symbols.
19487
19488 * unexmips.c:
19489 * unexelf.c: Remove references to desupported systems.
19490
19491 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
19492
19493 * m/powermac.h: Remove boilerplate comments.
19494 (NO_REMAP): Remove unused definition.
19495
19496 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
19497 define them.
19498
194992008-07-10 Kenichi Handa <handa@m17n.org>
19500
19501 * xfont.c (xfont_open): Log the reason of failure.
19502
195032008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
19504
19505 * fontset.c (fontset_get_font_group):
19506 * font.c (font_check_otf): Specify argument types.
19507
195082008-07-09 Kenichi Handa <handa@m17n.org>
19509
19510 * coding.c (detect_coding_utf_8): Set detect_info->found only when
19511 non-ASCII char is found.
19512
19513 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
19514 (reorder_font_vector): Change the arg preferred_family to font.
19515 Prefer the spec matching with font.
19516 (fontset_get_font_group): New function.
19517 (fontset_find_font): Change the format of an element of a realized
19518 fontset. Use fontset_get_font_group.
19519 (fontset_font): Try the current fontset, the default fontset, the
19520 fallbacks of the current fontset, and the fallbacks of the default
19521 fontset in this order.
19522 (face_for_char): Delete the shortcut to use the current font.
19523 (fontset_from_font): Don't set fonts for Latin in the fontset.
19524
19525 * font.h (font_make_object, font_match_p): Adjust prototypes.
19526
19527 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
19528
19529 * font.c (font_make_object): New arg entity and pixelsize.
19530 (font_check_otf_features, font_check_otf): New functions.
19531 (font_match_p): Check :lang, :script, and :otf properties.
19532
19533 * xfont.c (xfont_open): Adjust it for the change of
19534 font_make_object.
19535 (xfont_text_extents): Fix initial setting of metrics.
19536
19537 * ftfont.c (struct ftfont_info): New member index, delete member
19538 fc_charset_idx. Make the member order compatible with struct
19539 xftfont_info.
19540 (fc_charset_table): Change charset names to registry names.
19541 (ftfont_pattern_entity): Delete the args registry and
19542 fc_charset_idx. Change the value of :font-entity property
19543 to (FONTNAME . INDEX). Always set :registry property to
19544 `iso10646-1'.
19545 (struct ftfont_cache_data): New struct.
19546 (ftfont_lookup_cache): New arg for_face.
19547 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
19548 (ftfont_driver): Set the member otf_capability.
19549 (ftfont_get_charset): Adjust it for the change of
19550 fc_charset_table.
19551 (OTF_TAG_SYM): New macro.
19552 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
19553 for the change of fc_charset_table.
19554 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
19555 ftfont_pattern_entity. Add FC_INDEX to objset.
19556 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
19557 and ftfont_pattern_entity.
19558 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
19559 font_make_object, struct ftfont_info.
19560 (ftfont_has_char): Use ftfont_get_fc_charset.
19561 (ftfont_otf_features, ftfont_otf_capability): New functions.
19562 (ftfont_shape): Use ftfont_get_otf.
19563 (ftfont_text_extents): Fix initial setting of metrics.
19564
19565 * xftfont.c (struct xftfont_info): New member ft_size. Make the
19566 member order compatible with struct ftfont_info.
bba3e508
SM
19567 (xftfont_open): Add FC_CHARSET to the pattern.
19568 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
19569 properties if appropriate.
19570 (xftfont_close): Unlock the face.
44f230aa 19571 (xftfont_anchor_point, xftfont_shape): Delete.
aac0c6e3
MR
19572 (syms_of_xftfont): Don't set members anchor_point and shape of
19573 xftfont_driver.
19574
19575 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
19576 font_make_object.
19577
19578 * w32font.c (w32font_open): Adjust it for the change of
19579 font_make_object.
19580 (w32font_open_internal): Don't set properties of font_object here.
19581
195822008-07-08 Chong Yidong <cyd@stupidchicken.com>
19583
19584 * macfns.c (x_create_tip_frame):
19585 * w32fns.c (x_create_tip_frame):
19586 * xfns.c (x_create_tip_frame): Pass parameter argument to
19587 face-set-after-frame-default.
19588
19589 * xfaces.c (Finternal_merge_in_global_face): Save merged
19590 attributes for the default face back into the face vector.
19591
195922008-07-08 Andreas Schwab <schwab@suse.de>
19593
19594 * fontset.h: Declare fontset_from_font. Don't declare
19595 new_fontset_from_font and fontset_from_font_name.
19596 * xterm.c: Include "fontset.h".
19597 * Makefile.in (xterm.o): Update dependencies.
19598
195992008-07-08 Glenn Morris <rgm@gnu.org>
19600
19601 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
19602 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
19603
196042008-07-07 Chong Yidong <cyd@stupidchicken.com>
19605
19606 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
19607 (x_set_frame_parameters): Don't bind it.
19608
196092008-07-07 Juanma Barranquero <lekktu@gmail.com>
19610
19611 * w32fns.c (map_w32_filename): Declare extern.
19612
196132008-07-07 Jason Rumney <jasonr@gnu.org>
19614
19615 * w32term.c (WS_EX_LAYERED): Define if not already.
19616
196172008-07-06 Chong Yidong <cyd@stupidchicken.com>
19618
19619 * xfaces.c (set_font_frame_param): Don't try to set the font
19620 parameter if it is still unspecified in the lface.
19621
196222008-07-05 Chong Yidong <cyd@stupidchicken.com>
19623
19624 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
19625 face if it didn't already exist.
19626
19627 * xdisp.c (try_window_id): Give up if word-wrapping is on.
19628
196292008-07-05 Andreas Schwab <schwab@suse.de>
19630
19631 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
19632
196332008-07-05 Chong Yidong <cyd@stupidchicken.com>
19634
19635 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19636 word-wrapping.
19637 (IT_DISPLAYING_WHITESPACE): New macro.
19638 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19639 when word-wrapping. Simplify word-wrapping logic. Use correct
19640 pixel positions when saving copies of the iterator.
19641 (display_line): Use proper wrap point if the last character on a
19642 line was preceded by whitespace.
19643
196442008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
19645
19646 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19647
196482008-07-04 Kenichi Handa <handa@m17n.org>
19649
19650 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19651
19652 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19653
196542008-07-02 Jason Rumney <jasonr@gnu.org>
19655
19656 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 19657 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
19658
19659 * xdisp.c (next_element_from_display_vector): Move assignment out
19660 of if statement.
19661
196622008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
19663
19664 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19665
19666 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19667 (syms_of_fileio): Initialize and export them.
19668 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19669
19670 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19671 (Fsystem_move_file_to_trash): New function.
19672 (syms_of_w32fns): Export it to lisp.
19673
196742008-07-01 Jason Rumney <jasonr@gnu.org>
19675
19676 * w32font.c (w32font_text_extents): Don't count overhang as part
19677 of width.
19678
196792008-06-30 Miles Bader <miles@gnu.org>
19680
19681 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19682 Add `avoid_cursor_p' field.
19683
19684 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19685 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19686 (append_glyph, append_composite_glyph, produce_image_glyph)
19687 (append_stretch_glyph): Initialize avoid_cursor_p.
19688 (get_it_property): Rename from `get_line_height_property'.
19689 (x_produce_glyphs): Use get_it_property.
19690 (handle_line_prefix, push_display_prop): New functions.
19691 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19692 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19693 New variables.
19694 (syms_of_xdisp): Initialize them.
19695
196962008-06-30 Kenichi Handa <handa@m17n.org>
19697
19698 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19699 XftDefaultSubstitute (they are called in XftFontMatch).
19700 (xftfont_open): Fix args to ftfont_font_format.
19701
19702 * ftfont.c (fc_charset_table): New member lang.
19703 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 19704 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
19705 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19706 (ftfont_open): Fix args to ftfont_font_format.
19707 (ftfont_font_format): New arg filename.
19708
197092008-06-30 Chong Yidong <cyd@stupidchicken.com>
19710
19711 * xfaces.c (Finternal_merge_in_global_face): If default face was
19712 modified, realize it again. Update the font face attribute.
19713
197142008-06-29 Jason Rumney <jasonr@gnu.org>
19715
19716 * w32term.c (x_set_frame_alpha): Fix logic.
19717
197182008-06-29 Kenichi Handa <handa@m17n.org>
19719
19720 * fontset.c (Finternal_char_font): Return font-object instead of
19721 font-name.
19722
19723 * composite.c (get_composition_id): Fix the width calculation for TAB.
19724
197252008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
19726
19727 * indent.c (Fvertical_motion): Properly handle float column arg.
19728
197292008-06-28 Jason Rumney <jasonr@gnu.org>
19730
19731 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19732 (pfnSetLayeredWindowAttributes): New function pointer.
19733 (w32_initialize): Initialize it when supported.
19734 (x_set_frame_alpha): New function.
19735
19736 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
19737 (w32_frame_parm_handlers): Set alpha handler.
19738
19739 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
19740
197412008-06-27 Jason Rumney <jasonr@gnu.org>
19742
19743 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
19744 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
19745 (w32_to_x_charset, x_to_w32_charset)
19746 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19747 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19748 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19749 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19750 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19751 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19752 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
19753 (Qw32_charset_unicode): Remove.
19754 (syms_of_w32fns): Update for above changes.
19755
19756 * w32font.c (w32_to_x_charset, x_to_w32_charset)
19757 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19758 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19759 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19760 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19761 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19762 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19763 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19764 (syms_of_w32font): Update for above changes.
19765
197662008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
19767
19768 * s/usg5-4.h: Fix previous change: keep the correct branch of a
19769 removed #if.
19770 (USG_SHARED_LIBRARIES): Remove duplicate definition.
19771
197722008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 19773 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
19774
19775 * makefile.w32-in (LOCAL_FLAGS):
19776 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19777
19778 * sysdep.c (_spawnlp, _getpid):
19779 Declare with explicit _cdecl instead of _CRTAPI1.
19780
19781 * editfns.c (Fget_internal_run_time):
19782 Check for WINDOWSNT with #ifdef, not #if.
19783
197842008-06-26 Jason Rumney <jasonr@gnu.org>
19785
19786 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
19787
19788 * w32term.c (x_draw_glyph_string_foreground)
19789 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
19790 Use FONT_HANDLE macro.
19791 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
19792
19793 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19794 (uniscribe_encode_char): Use FONT_HANDLE macro.
19795
19796 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
19797 (w32font_text_extents): Use precast w32_font.
19798 (w32font_close): Free cached metrics.
19799 (w32font_open_internal): Allocate space for name on stack.
19800
198012008-06-26 Chong Yidong <cyd@stupidchicken.com>
19802
19803 * xdisp.c (extend_face_to_end_of_line): Fix last change.
19804
198052008-06-26 Jason Rumney <jasonr@gnu.org>
19806
19807 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
19808 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
19809
198102008-06-26 Juanma Barranquero <lekktu@gmail.com>
19811
19812 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
19813
198142008-06-26 Jason Rumney <jasonr@gnu.org>
19815
19816 * w32bdf.c, w32bdf.h: Remove obsolete files.
19817
19818 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
19819
19820 * w32gui.h: Don't include w32bdf.h.
19821 (XCharStruct, enum w32_char_font_type, W32FontStruct):
19822 Remove obsolete font support.
19823
19824 * w32font.h (struct w32font_info): Remove compat_w32_font.
19825 Add hfont member.
19826 (FONT_COMPAT): Remove obsolete macro.
19827
19828 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
19829 (w32font_encode_char, w32font_text_extents): Use new hfont member.
19830 (w32font_open_internal): Remove compat code. Set new hfont member.
19831 (Fx_select_font): Use new hfont member.
19832
19833 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19834 (uniscribe_encode_char): Use new hfont member.
19835
19836 * w32term.c (x_draw_glyph_string_foreground)
19837 (x_draw_composite_glyph_string_foreground): Use new hfont member.
19838 (x_draw_glyph_string): Use metrics in w32font_info.
19839
198402008-06-26 Kenichi Handa <handa@m17n.org>
19841
19842 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
19843
198442008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
19845
19846 * unexnext.c:
19847 * m/ews4800.h:
19848 * m/hp9000s300.h:
19849 * m/ibm370aix.h:
19850 * m/mips-siemens.h:
19851 * m/ncr386.h:
19852 * m/next.h:
19853 * m/pmax.h:
19854 * m/powerpcle.h:
19855 * m/tandem-s2.h:
19856 * s/386bsd.h:
19857 * s/bsd386.h:
19858 * s/bsd4-1.h:
19859 * s/bsd4-2.h:
19860 * s/bsdos2-1.h:
19861 * s/bsdos2.h:
19862 * s/bsdos3.h:
19863 * s/bsdos4.h:
19864 * s/nextstep.h:
19865 * s/ultrix4-3.h:
19866 * s/usg5-0.h:
19867 * s/usg5-2-2.h:
19868 * s/usg5-2.h:
19869 * s/usg5-4-3.h:
19870 * s/ux4800.h:
19871 * s/uxpds.h:
19872 * s/uxpv.h: Remove support for obsolete systems.
19873 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 19874 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
19875 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
19876 Remove, insert contents in s/aix4-2.h.
19877 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
19878 * s/bsd4-3.h: Rename to ...
19879 * s/bsd-common.h: ... this.
19880 * data.c:
19881 * doc.c:
19882 * ecrt0.c:
19883 * emacs.c:
19884 * fileio.c:
19885 * floatfns.c:
19886 * keyboard.c:
19887 * mem-limits.h:
19888 * print.c:
19889 * process.c:
19890 * sysdep.c:
19891 * syssignal.h:
19892 * systty.h:
19893 * syswait.h:
19894 * term.c:
19895 * unexec.c:
19896 * unexelf.c:
19897 * unexhp9k800.c:
19898 * m/hp800.h:
19899 * m/ibmrs6000.h:
19900 * m/mips.h:
19901 * m/vax.h:
19902 * s/darwin.h:
19903 * s/freebsd.h:
19904 * s/gnu.h:
19905 * s/ms-w32.h:
19906 * s/msdos.h:
19907 * s/netbsd.h:
19908 * s/template.h: Remove references to obsolete variables.
19909
19910 * Makefile.in: Add dependencies for all unexec files.
19911 (admindir): Remove unused variable.
19912 (UNEXEC_SRC): Remove references.
19913
199142008-06-25 Chong Yidong <cyd@stupidchicken.com>
19915
19916 * xfns.c (x_default_font_parameter): If Xft is available, first
19917 try Monospace-12 for the default font.
19918
199192008-06-25 Jason Rumney <jasonr@gnu.org>
19920
19921 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
19922
199232008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
19924
19925 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
19926
19927 * buffer.c (syms_of_buffer): Remove default-word-wrap.
19928
199292008-06-25 Juanma Barranquero <lekktu@gmail.com>
19930
19931 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
19932 <scroll-conservatively>: Fix typo in docstring.
19933
19934 * xselect.c (Fx_send_client_event): Doc fix.
19935
199362008-06-25 Kenichi Handa <handa@m17n.org>
19937
19938 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
19939
19940 * font.c (font_parse_fcname): Remove unused variables.
19941 (font_sort_entites): Delete the arg SPEC. Caller changed.
19942 Fix for the case of ! best_only.
19943 (font_delete_unmatched): Check DPI and AVGWIDTH too.
19944
19945 * lisp.h (Fstring_to_unibyte): EXFUN it.
19946
19947 * character.h (str_to_unibyte): Extern it.
19948
19949 * character.c (str_to_unibyte): New function.
19950
19951 * fns.c (Fstring_to_unibyte): New function.
19952 (syms_of_fns): Defsubr it.
19953
199542008-06-24 Kenichi Handa <handa@m17n.org>
19955
19956 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
19957 DPI too.
19958 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
19959
199602008-06-24 Andreas Schwab <schwab@suse.de>
19961
19962 * Makefile.in (${lispsource}loaddefs.el): Rename from
19963 ../lisp/loaddefs.el.
19964 (bootstrap-clean): Do what distclean does but don't remove
19965 Makefile.
19966 (distclean): Depend on bootstrap-clean and remove Makefile.
19967
199682008-06-24 Chong Yidong <cyd@stupidchicken.com>
19969
19970 * buffer.h (struct buffer): New member word_wrap.
19971
19972 * buffer.c (syms_of_buffer): New variables default-word-wrap and
19973 word-wrap.
19974 (init_buffer_once): Initialize them.
19975
19976 * dispextern.h (struct it): Replace bool truncate_lines_p with a
19977 line_wrap enum possessing three possible values.
19978
19979 * termopts.h: Replace truncate_partial_width_windows with
19980 Vtruncate_partial_width_windows.
19981
19982 * dispnew.c (direct_output_for_insert): Avoid direct output when
19983 inserting a space with word wrap on.
19984
19985 * indent.c (compute_motion): Obey integer values of
19986 truncate-partial-width-windows.
19987
19988 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
19989 replacing truncate_partial_width_windows.
19990 (init_iterator): If Vtruncate_partial_width_windows is an integer,
19991 truncate only if the window width is below that integer.
19992 (start_display, resize_mini_window, produce_stretch_glyph)
19993 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
19994 (back_to_previous_visible_line_start, reseat_1):
19995 Reset string_from_display_prop_p.
aac0c6e3
MR
19996 (display_line): Extend default face to end of line when wrapping.
19997
199982008-06-24 Kim F. Storm <storm@cua.dk>
19999
20000 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
20001 to wrap continued lines at word boundaries.
20002
200032008-06-24 Jason Rumney <jasonr@gnu.org>
20004
20005 * font.c (Ffont_face_attributes): Multiply pixel size before point
20006 conversion to avoid multiplying rounding error.
20007
200082008-06-23 Jason Rumney <jasonr@gnu.org>
20009
20010 * w32term.c (x_draw_glyph_string_background)
20011 (x_draw_glyph_string): Remove old bdf font code.
20012
20013 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
20014
200152008-06-22 Kenichi Handa <handa@m17n.org>
20016
20017 * font.c (font_find_for_lface): Try the adstyle specified in
20018 the property of LFACE_FONT of LFACE (if any).
20019
200202008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 20021 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
20022
20023 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
20024
200252008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
20026
20027 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
20028 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
20029 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
20030 (witness-emacs): Remove.
20031 (lisp, shortlisp): Move loaddefs.el earlier.
20032 (mostlyclean): Forget about witness-emacs.
20033
200342008-06-22 Glenn Morris <rgm@gnu.org>
20035
20036 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
20037 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
20038
200392008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
20040
20041 * Makefile.in (PRECOMP): Remove.
20042 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
20043 (witness-emacs): Run `compile-first'.
20044 (.el.elc): Use the new compile-onefile target.
20045
200462008-06-21 Kenichi Handa <handa@m17n.org>
20047
20048 * xftfont.c (xftfont_open): Handle QCembolden only when
20049 FC_EMBOLDEN is defined.
20050
200512008-06-21 Andreas Schwab <schwab@suse.de>
20052
20053 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
20054 (.el.elc): Likewise.
20055
200562008-06-21 Miles Bader <miles@gnu.org>
20057
20058 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
20059 build dir, not the lisp source dir.
20060
200612008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
20062
20063 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
20064 (bootstrapclean): Remove.
20065 (.el.elc): New rule.
20066 (PRECOMP): New var.
20067 (../lisp/subdirs.el): Remove.
20068 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
20069 (witness-emacs): New target.
20070 (mostlyclean): Remove witness-emacs as well.
20071 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
20072 Add witness-emacs dependency.
20073
200742008-06-20 Chong Yidong <cyd@stupidchicken.com>
20075
20076 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
20077 defined by the font.
20078
200792008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20080
20081 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
20082 (bootstrap-clean): New target that keeps TAGS around.
20083 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
20084 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
20085
200862008-06-20 Jason Rumney <jasonr@gnu.org>
20087
20088 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
20089 Remove obsolete font code.
20090
20091 * w32font.c (font_matches_spec): Use csb bitfield from font signature
20092 to determine language support.
20093
200942008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20095
20096 * sysdep.c (cfsetspeed): New fun extracted from the code.
20097 (cfmakeraw): Move before first use.
20098
200992008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
20100
20101 * sysdep.c (cfmakeraw): Provide fallback implementation.
20102 (serial_configure): Provide fallback implementation of cfsetspeed.
20103
201042008-06-20 Kenichi Handa <handa@m17n.org>
20105
20106 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
20107 the pattern.
20108
20109 * fontset.c (fontset_from_font): Copy font_spec before changing
20110 the elements.
20111
20112 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
20113
201142008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20115
20116 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
20117 for explicit `font' parameters.
20118
20119 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
20120
201212008-06-19 Kenichi Handa <handa@m17n.org>
20122
20123 * frame.c: Include <ctype.h>.
20124 (x_set_font_backend): Allow spacing characters in the X resource
20125 for FontBackend.
20126
201272008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
20128
20129 * w32fns.c, xfns.c (Qfont_param): New var.
20130 (syms_of_w32fns): Initialize it.
20131 (x_default_font_parameter): Record explicit `font' into
20132 `font-parameter'.
20133
201342008-06-18 Kenichi Handa <handa@m17n.org>
20135
20136 * font.c (font_parse_xlfd): Fix previous change.
20137 (font_parse_fcname): Don't use :fc-unknown-spec.
20138 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
20139 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
20140 (font_add_log): Prepend the driver name to the resulting fonts.
20141
20142 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
20143 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
20144 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
20145
20146 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
20147 (QCembolden): New variables.
20148 (syms_of_xftfont): DEFSYM them.
20149 (xftfont_open): Call XftFontMatch. Don't trust the result of
20150 XftTextExtents8 if the pixel_size is less than 5.
20151
201522008-06-18 Andreas Schwab <schwab@suse.de>
20153
20154 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
20155 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
20156
201572008-06-18 Jason Rumney <jasonr@gnu.org>
20158
20159 * w32font.c (w32font_list, w32font_match): Add logging.
20160
20161 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
20162
201632008-06-17 Chong Yidong <cyd@stupidchicken.com>
20164
20165 * font.c (font_parse_fcname): Store divider characters for
20166 unknown-spec list. For known key symbols, intern using correct
20167 symbol name.
20168
201692008-06-17 Kenichi Handa <handa@m17n.org>
20170
20171 * xfaces.c (realize_default_face): If the frame is not on window
20172 system, set the fontset of face to nil.
20173
201742008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20175
20176 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
20177
201782008-06-16 Juanma Barranquero <lekktu@gmail.com>
20179
20180 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
20181 (build_font_name_from_vector): Delete externs.
20182
20183 * xfaces.c (struct font_name): Don't declare.
20184
201852008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
20186
20187 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
20188
201892008-06-16 Chong Yidong <cyd@stupidchicken.com>
20190
20191 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
20192
201932008-06-16 Juanma Barranquero <lekktu@gmail.com>
20194
20195 * font.c (Ffont_spec): Fix usage in docstring.
20196 (Ffont_face_attributes): Doc fix.
20197
201982008-06-16 Andreas Schwab <schwab@suse.de>
20199
20200 * font.c (Ffont_face_attributes): Fix definition.
20201
202022008-06-16 Jason Rumney <jasonr@gnu.org>
20203
20204 * font.h (font_style_symbolic_from_value): Remove.
20205
20206 * font.c (font_style_symbolic_from_value): Remove.
20207 (font_style_symbolic): Revert to pre 2008-06-13 version.
20208
20209 * w32font.c (w32_to_fc_weight): New function.
20210 (w32font_full_name, logfont_to_fcname): Use it.
20211
202122008-06-16 Kenichi Handa <handa@m17n.org>
20213
20214 * font.c (font_check_object): Delete it.
20215 (font_clear_cache): Check if a font-object is alive.
20216 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
20217 font-object to nil.
20218 (font_close_object): Don't check FONT_CLOSE_OBJECT.
20219 (font_at): Don't call font_check_object.
20220 (Ffont_get): Return a symbol for :weight, :slant, and :width.
20221
202222008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
20223
20224 * puresize.h (BASE_PURESIZE): Increase to 1230000.
20225
202262008-06-16 Chong Yidong <cyd@stupidchicken.com>
20227
20228 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
20229
202302008-06-15 Chong Yidong <cyd@stupidchicken.com>
20231
20232 * font.c (font_parse_fcname): Only one decimal point.
20233 (font_unparse_fcname): Handle data in family and foundry indices
20234 as symbols, not strings.
20235 (font_unparse_gtkname, Ffont_face_attributes): New functions.
20236
20237 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
20238
20239 * font.h (font_unparse_gtkname): Add prototype.
20240
202412008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20242
20243 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
20244
202452008-06-15 Andreas Schwab <schwab@suse.de>
20246
20247 * font.c (font_update_drivers): Fix crash when no drivers match.
20248
202492008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
20250
20251 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
20252 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
20253
202542008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
20255
20256 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
20257
202582008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
20259
20260 * process.c (Fserial_process_configure, Fprocess_send_eof):
20261 Use EQ to compare Lisp_Objects.
20262
202632008-06-13 Jason Rumney <jasonr@gnu.org>
20264
20265 * w32fns.c (Fw32_select_font): Remove old font API function.
20266
20267 * w32font.c (logfont_to_fcname): New function.
20268 (Fx_select_font): New font dialog function compatible with
20269 GTK/fontconfig version.
20270
20271 * font.c (font_style_symbolic_from_value): New function.
20272 (font_style_symbolic): Use it.
20273
20274 * font.h (font_style_symbolic_from_value): Declare new function.
20275
202762008-06-13 Juanma Barranquero <lekktu@gmail.com>
20277
20278 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
20279 <font-width-table>: Fix typos in docstrings.
20280
202812008-06-13 Daniel Engeler <engeler@gmail.com>
20282
20283 These changes add serial port access.
20284 * process.c: Add HAVE_SERIAL.
20285 (Fdelete_process, Fprocess_status, Fset_process_buffer)
20286 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
20287 (list_processes_1, select_wrapper, Fstop_process)
20288 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
20289 (status_notify): Modify to handle serial processes.
20290 [HAVE_SERIAL] (Fserial_process_configure)
20291 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
20292 New functions.
20293 * process.h (struct Lisp_Process): Add `type'.
20294 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
20295 New functions.
20296 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
20297 serial ports.
b71ac3dd 20298 (serial_open, serial_configure): New functions.
aac0c6e3
MR
20299 * w32.h: Add FILE_SERIAL.
20300 (struct _child_process): Add ovl_read, ovl_write.
20301
203022008-06-13 Kenichi Handa <handa@m17n.org>
20303
20304 * dispextern.h (enum lface_attribute_index): New member
20305 LFACE_FOUNDRY_INDEX.
20306
20307 * font.c (font_score): Delete arg alternate_families. Check only
20308 weight, slant, width, and size. Ignore the difference of alias
20309 style symbols.
20310 (font_sort_entites): Adjust for the above change. Reflect the
20311 order of font-driver to scores.
20312 (font_list_entities): Don't check alternate_familes here.
20313 (font_clear_prop): Handle foundry.
20314 (font_update_lface): Don't parse "foundry-family" form here.
20315 Handle FONT_FOUNDRY_INDEX.
20316 (font_find_for_lface): Likewise. Handle alternate families here.
20317 If registry is nil, try iso8859-1 and ascii-0.
20318 (font_open_for_lface): Pay attention to size in ENTITY.
20319 (font_open_by_name): Simplify by calling font_load_for_lface.
20320 (free_font_driver_list): Delete it.
20321 (font_update_drivers): Preserve the order of backends.
20322 (syms_of_font): Setting of sort_shift_bits adjusted for the change
20323 of font_score and font_sort_entites.
20324 (font_update_sort_order): Likewise.
20325
20326 * xfaces.c (LFACE_FOUNDRY): New macro.
20327 (check_lface_attrs): Check foundry.
20328 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
20329 (merge_face_vectors): Check foundry.
20330 (merge_face_ref): Likewise.
20331 (Finternal_set_lisp_face_attribute): Likewise.
20332 (x_update_menu_appearance): Likewise.
20333 (Finternal_get_lisp_face_attribute): Likewise.
20334 (lface_hash): Likewise.
20335 (lface_same_font_attributes_p): Likewise.
20336 (x_supports_face_attributes_p): Likewise.
20337 (tty_supports_face_attributes_p): Likewise.
20338 (Finternal_set_alternative_font_family_alist): Intern strings.
20339 (Finternal_set_alternative_font_registry_alist): Downcase strings.
20340 (realize_default_face): Set LFACE_FOUNDRY (lface).
20341
20342 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
20343 font-driver at first.
20344
20345 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
20346
203472008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
20348
20349 * lread.c (Fload): Use xfree, not free on saved_doc_string.
20350
203512008-06-12 Jim Meyering <meyering@redhat.com>
20352
20353 Make unexec_free handle NULL the same way free does.
20354 * unexmacosx.c (unexec_free): Ignore a NULL argument.
20355
203562008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20357
20358 * character.h (CHAR_TO_BYTE_SAFE): New macro.
20359 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
20360 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
20361 (WEAK_ALIAS): Simplify.
20362 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
20363 when searching a unibyte buffer.
20364
203652008-06-12 Chong Yidong <cyd@stupidchicken.com>
20366
20367 * xfns.c (Fx_select_font): Rename from x-font-dialog.
20368
203692008-06-12 Juanma Barranquero <lekktu@gmail.com>
20370
20371 * w32font.c: Include ctype.h.
20372
203732008-06-11 Jason Rumney <jasonr@gnu.org>
20374
20375 * w32font.c (w32font_encode_char): Detect missing glyphs that are
20376 misreported as space.
20377 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
20378 as aliases for registry iso10646-1.
20379
203802008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20381
20382 * buffer.c (clone_per_buffer_values): Skip `name'.
20383
203842008-06-11 Chong Yidong <cyd@stupidchicken.com>
20385
20386 * font.c (font_parse_fcname): Fix last change; accept decimal
20387 points in font size.
20388
203892008-06-10 Jason Rumney <jasonr@gnu.org>
20390
20391 * w32uniscribe.c (add_opentype_font_name_to_list):
20392 Skip non unicode fonts.
20393
203942008-06-10 Chong Yidong <cyd@stupidchicken.com>
20395
20396 * xfns.c (Fx_font_dialog): New function.
20397
20398 * gtkutil.c (xg_dialog_response_cb): Rename from
20399 xg_file_response_callback.
20400 (pop_down_dialog): Rename from pop_down_file_dialog.
20401 (xg_get_file_name): Callers changed.
20402 (xg_get_font_name): New function.
20403
20404 * gtkutil.h (xg_get_font_name): Insert prototype.
20405
204062008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20407
20408 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
20409 x_underline_minimum_display_offset.
20410 (syms_of_xdisp): Declare it here rather than in xterm.c.
20411 * dispextern.h (underline_minimum_offset): Declare it.
20412 * w32term.c (x_draw_glyph_string): Use it.
20413 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
20414 (syms_of_xterm): Don't declare it any more.
20415 (x_draw_glyph_string): Adjust to the new name.
20416
8719abec 204172008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
20418
20419 * xterm.c (x_underline_minimum_display_offset): New var.
20420 (x_draw_glyph_string): Use it.
20421 (syms_of_xterm): Declare it.
20422
204232008-06-10 Chong Yidong <cyd@stupidchicken.com>
20424
20425 * font.c (font_parse_fcname): Accept GTK-style font names too.
20426
204272008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20428
20429 * dired.c (file_name_completion): Don't return t if the match is exact
20430 but with different capitalization.
20431 * minibuf.c (Ftry_completion): Simplify.
20432
20433 * window.c (Vwindow_point_insertion_type): New var.
20434 (set_window_buffer): Use it.
20435 (syms_of_window): Init and export it to Lisp.
20436
204372008-06-10 Kenichi Handa <handa@m17n.org>
20438
20439 * font.h (font_intern_prop): Prototype adjusted.
20440
20441 * font.c (font_intern_prop): New arg force_symbol.
20442 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
20443 Adjust for the change of font_intern_prop.
20444
20445 * ftfont.c (ftfont_pattern_entity):
20446 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
20447 (w32_registry):
20448 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
20449 the change of font_intern_prop.
20450
204512008-06-09 Juanma Barranquero <lekktu@gmail.com>
20452
20453 * w32menu.c (digest_single_submenu): Declare extern.
20454
204552008-06-09 Jason Rumney <jasonr@gnu.org>
20456
20457 * w32term.c (x_make_frame_visible): Use alternate restore flags.
20458
20459 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
20460 (parse_single_submenu): Remove.
20461 (digest_single_submenu): Remove.
20462 (syms_of_w32menu): Don't initialise variables that have moved
20463 to menu.c.
20464 (set_frame_menubar): Sync with version in xmenu.c.
20465 (w32_menu_show): Sync with xmenu_show in xmenu.c.
20466
20467 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
20468 Make static again.
20469
204702008-06-09 Jason Rumney <jasonr@gnu.org>
20471
20472 Changes to w32 files related to the move of common menu code
20473 to menu.c on 2008-06-08 by Chong Yidong.
20474
20475 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
20476 defs to w32gui.h.
20477 (single_keymap_panes, push_menu_item, push_menu_pane):
20478 Make globally visible.
20479
20480 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
20481 (local_free, malloc_widget_value, free_widget_value)
20482 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
20483 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
20484 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
20485 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
20486 (menu_items, menu_items_allocated, menu_items_used)
20487 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
20488 (init_menu_items, finish_menu_items, discard_menu_items)
20489 (grow_menu_items, push_submenu_start, push_submenu_end)
20490 (push_left_right_boundary, push_menu_pane, push_menu_item)
20491 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
20492 (free_menubar_widget_tree_value, parse_single_submenu)
20493 (update_submenu_strings): Remove functions.
20494 (xmalloc_widget_value): Remove and declare extern.
20495
20496 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
20497 (OBJ1): Build it.
20498
20499 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
20500 (local_heap, local_alloc, local_free, malloc_widget_value)
20501 (free_widget_value): Define here.
20502
205032008-06-09 Kenichi Handa <handa@m17n.org>
20504
20505 * font.h (Qascii_0): Extern it.
20506
20507 * font.c (Qascii_0): New variable.
20508 (syms_of_font): DEFSYM it.
20509 (font_open_by_name): If the registry "iso8859-1" fails, try also
20510 "ascii-0".
20511
20512 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
20513
205142008-06-08 Kenichi Handa <handa@m17n.org>
20515
20516 * .gdbinit (xfont): New command.
20517
205182008-06-08 Andreas Schwab <schwab@suse.de>
20519
20520 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
20521 * Makefile.in (menu.o): Update dependencies.
20522
20523 * Makefile.in (obj): Always add menu.o.
20524 * emacs.c (main): Always call syms_of_menu.
20525 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
20526
205272008-06-08 Chong Yidong <cyd@stupidchicken.com>
20528
20529 * Makefile.in: Compile menu.c.
20530
20531 * lisp.h: Declare syms_of_menu.
20532
20533 * emacs.c (main): Call syms_of_menu.
20534
20535 * keyboard.h: Relocate platform-independent menu definitions from
20536 xmenu.c.
20537
20538 * menu.c: New file. Relocate platform-independent menu
20539 definitions from xmenu.c. Suggested by Adrian Robert.
20540
20541 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 20542 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
20543 (menu_items_used, menu_items_n_panes)
20544 (menu_items_submenu_depth): Move to keyboard.h.
20545 (init_menu_items, finish_menu_items, unuse_menu_items)
20546 (discard_menu_items, restore_menu_items, save_menu_items)
20547 (grow_menu_items, push_submenu_start, push_submenu_end)
20548 (push_left_right_boundary, push_menu_pane, push_menu_item)
20549 (keymap_panes, single_keymap_panes, single_menu_item)
20550 (list_of_panes, list_of_items, find_and_call_menu_selection)
20551 (xmalloc_widget_value, free_menubar_widget_value_tree)
20552 (parse_single_submenu, digest_single_submenu)
20553 (update_submenu_strings): Move to menu.c.
20554
205552008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
20556
20557 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
20558
205592008-06-06 Miles Bader <miles@gnu.org>
20560
20561 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
20562 face, not frame default.
20563
205642008-06-05 Martin Rudalics <rudalics@gmx.at>
20565
20566 * window.c (pop_up_windows, pop_up_frames)
20567 (display_buffer_reuse_frames, Vpop_up_frame_function)
20568 (Vdisplay_buffer_function, Veven_window_heights)
20569 (Vspecial_display_buffer_names, Vspecial_display_regexps)
20570 (Vspecial_display_function, Vsame_window_buffer_names)
20571 (Vsame_window_regexps, split_height_threshold)
20572 (Vsplit_window_preferred_function): Move those vars to window.el.
20573 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
20574 (Fdisplay_buffer): Move those functions to window.el.
20575 (syms_of_window): Remove corresponding declarations.
20576 (display_buffer): New function.
20577 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
20578 * dispnew.c (Flast_nonminibuf_frame): New function.
20579 * buffer.c (Fpop_to_buffer): Move to window.el.
20580
205812008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20582
20583 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
20584
205852008-06-05 Kenichi Handa <handa@m17n.org>
20586
20587 * coding.c (detect_coding): Fix previous change.
20588 (detect_coding_system): Likewise.
20589
205902008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20591
20592 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
20593
20594 * keymap.c (Vminibuffer_local_filename_must_match_map):
20595 Rename from Vminibuffer_local_must_match_filename_map.
20596 (syms_of_keymap):
20597 * minibuf.c (Fcompleting_read): Adjust accordingly.
20598 * commands.h: Rename declaration as well.
20599
206002008-06-05 Kenichi Handa <handa@m17n.org>
20601
20602 * font.c (Ffont_spec): Don't use font_parse_family_registry for
20603 family name.
20604 (Ffont_put): Likewise.
20605
20606 * fontset.c (fontset_find_font): Call font_open_for_lface with the
20607 current font-spec.
20608
20609 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
20610 is unspecified.
20611
20612 * xfaces.c (realize_x_face): If the font-related face attributes
20613 are the same as those of default face, realize a new fontset from
20614 default->fontset.
20615 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
20616
206172008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20618
20619 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
20620 (move_it_in_display_line): New wrapper.
20621
20622 * window.c (window_scroll_pixel_based_preserve_x)
20623 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
20624 (window_scroll_pixel_based, window_scroll_line_based):
20625 Use them to preserve column positions.
20626 (syms_of_window): Initialize them.
20627
20628 * indent.c (Fvertical_motion): Extend first arg to allow passing an
20629 (HPOS . VPOS) pair.
20630
20631 * dispextern.h (move_it_in_display_line): Declare.
20632
206332008-06-05 Juanma Barranquero <lekktu@gmail.com>
20634
20635 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20636 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
20637 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
20638
206392008-06-04 Juanma Barranquero <lekktu@gmail.com>
20640
20641 * window.c (Fset_window_parameter): Doc fix.
20642 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20643
206442008-06-04 Joakim Verona <joakim@verona.se>
20645
20646 * window.h (struct window): Add new member window_parameters.
20647
20648 * window.c (Fwindow_parameters, Fwindow_parameter)
20649 (Fset_window_parameter): New defuns.
20650 (syms_of_window): Defsubr the new defuns.
20651 (make_window): Initialize window_parameters to nil.
20652
206532008-06-04 John Paul Wallington <jpw@pobox.com>
20654
20655 * eval.c (Fdefmacro): Doc fix.
20656
206572008-06-04 Kenichi Handa <handa@m17n.org>
20658
20659 * coding.c (detect_coding): Fix handling of coding->head_ascii.
20660 Be sure to call setup_coding_system when we find a proper coding system.
20661 (detect_coding_system): Fix handling of coding->head_ascii.
20662
206632008-06-03 Andreas Schwab <schwab@suse.de>
20664
20665 * font.c (font_prop_validate_spacing): Fix last change.
20666
206672008-06-03 Kenichi Handa <handa@m17n.org>
20668
20669 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20670 (font_parse_fcname): Fix handling of unknown key.
20671
20672 * xfont.c (xfont_list): Try an alias.
20673
20674 * charset.c (char_charset): Return NULL if the arg charset_list is
20675 specified and C doesn't belong to any of them.
20676
206772008-06-02 Chip Coldwell <coldwell@redhat.com>
20678
20679 * font.c (font_pixel_size): Don't take cdr of an integer.
20680
206812008-06-02 Jim Meyering <meyering@redhat.com>
20682
20683 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20684 * alloc.c (xfree): Return right away for a NULL arg.
20685 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20686 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20687 * mac.c (create_apple_event_from_event_ref): Likewise.
20688 (create_apple_event_from_drag_ref, cfstring_create_normalized):
20689 Likewise.
20690 * doprnt.c (doprnt1): Likewise.
20691 * frame.c (frame): Likewise.
20692 * keyboard.c (wipe_kboard): Likewise.
20693 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20694 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20695 * term.c (tty_default_color_capabilities, maybe_fatal)
20696 (delete_tty): Likewise.
20697 * w16select.c (string): Likewise.
20698 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20699 * w32bdf.c (w32_free_bdf_font): Likewise.
20700 * w32fns.c (w32_unload_font): Likewise.
20701 * w32font.c (w32font_close): Likewise.
20702 * window.c (size_window): Likewise.
20703 * xselect.c (receive_incremental_selection): Likewise.
20704 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20705 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20706 * w32.c (stat): Likewise.
20707
20708 Remove useless if-before-free tests.
20709 * editfns.c (Fset_time_zone_rule): Likewise.
20710 * lread.c (nosuffix): Likewise.
20711 * ralloc.c (get_bloc): Likewise.
20712 * regex.c (reg_free): Likewise.
20713 * xftfont.c (xftfont_open, xftfont_close): Likewise.
20714 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20715 * xsmfns.c (smc_save_yourself_CB): Likewise.
20716
207172008-06-02 Kenichi Handa <handa@m17n.org>
20718
20719 * font.c (font_find_for_lface): Handle float font size.
20720 (font_open_for_lface): Likewise.
20721
20722 * xfaces.c (x_supports_face_attributes_p): Check face->font before
20723 comparing the properties.
20724
207252008-06-01 Jason Rumney <jasonr@gnu.org>
20726
20727 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20728 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20729 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20730 Don't add empty script list.
20731 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20732
207332008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
20734
20735 * Makefile.in (dot, dotdot): Remove, update users.
20736 ".." has been used elsewhere in the file for a long time.
20737 (LIBXT_STATIC): Remove conditional based on unused variable.
20738
207392008-06-01 Miles Bader <miles@gnu.org>
20740
20741 * xfaces.c (Vface_remapping_alist): New variable.
20742 (syms_of_xfaces): Initialize it.
20743 (enum named_merge_point_kind): New type.
20744 (struct named_merge_point): Add `named_merge_point_kind' field.
20745 (push_named_merge_point): Make cycle detection respect different
20746 named-merge-point kinds.
20747 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
20748 Remove face-name alias resolution.
20749 (lface_from_face_name): New definition using
20750 `lface_from_face_name_no_resolve'.
20751 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
20752 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
20753 (get_lface_attributes): New definition that layers face-remapping on
20754 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
20755 (lookup_basic_face): New function.
20756 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20757 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20758 `get_lface_attributes'.
20759 (face_at_buffer_position): Use `lookup_basic_face' to lookup
20760 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
20761 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20762
20763 * xdisp.c (init_iterator): Pass base_face_id through
20764 `lookup_basic_face' when we actually use it as a face-id.
20765 (handle_single_display_prop): Use `lookup_basic_face' to lookup
20766 DEFAULT_FACE_ID.
20767
20768 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20769 lookup the initial face-id.
20770
20771 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20772
207732008-06-01 Juanma Barranquero <lekktu@gmail.com>
20774
20775 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20776 (Fremove_text_properties): Fix typos in docstrings.
20777
207782008-05-31 Kenichi Handa <handa@m17n.org>
20779
20780 * font.c (font_list_entities): Fix the car part of data to be
20781 stored in the cache.
20782
20783 * ftfont.c (ftfont_font_format): Don't use strcasestr.
20784
207852008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20786
20787 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
20788 Add a `test' argument so another predicate than `equal' can be used.
20789 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
20790 (map_char_table): Remove unused vars `c' and `i'.
20791 * lisp.h (Foptimize_char_table): Adjust declaration.
20792 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
20793
207942008-05-30 Kenichi Handa <handa@m17n.org>
20795
20796 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
20797 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
20798 defined.
20799
208002008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20801
20802 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20803 (Fmake_variable_frame_local): Disallow mixing buffer-local and
20804 frame-local settings for the same variable.
20805
208062008-05-30 Kenichi Handa <handa@m17n.org>
20807
20808 * fontset.c (Ffont_info): Move to font.c.
20809 (syms_of_fontset): Delete defsubr of Sfont_info.
20810
20811 * font.c (font_style_to_value, font_score): Delete casting of the
20812 args to xstcasecmp.
20813 (register_font_driver): Increment num_font_drivers only when
20814 registering the driver globally.
20815 (Ffont_info): Move from fontset.c. Handle a font object too.
20816 (syms_of_font): Defsubr Sfont_info.
20817
208182008-05-29 Kenichi Handa <handa@m17n.org>
20819
20820 * coding.h (enum define_coding_utf8_arg_index): New enum.
20821 (enum coding_attr_index): Change coding_attr_utf_16_bom to
20822 coding_attr_utf_bom.
20823 (enum utf_bom_type): Rename from utf_16_bom_type.
20824 (struct utf_16_spec): Adjust for the above change.
20825 (struct coding_system): Add utf_8_bom in `spec' union.
20826
20827 * coding.c (CODING_UTF_8_BOM): New macro.
20828 (enum coding_category): Delete coding_category_utf_8, add
20829 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
20830 coding_category_utf_8_sig.
20831 (CATEGORY_MASK_UTF_8): Delete it.
20832 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
20833 (CATEGORY_MASK_UTF_8_SIG): New macros.
20834 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
20835 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
20836 CATEGORY_MASK_UTF_8_SIG.
20837 (CATEGORY_MASK_UTF_8): New macro.
20838 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
20839 (detect_coding_utf_8): Check BOM.
20840 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
20841 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
20842 (encode_coding_utf_16): Likewise.
20843 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
20844 (detect_coding, detect_coding_system): Handle utf-8-auto.
20845 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
20846 (syms_of_coding): Fix setting up of Vcoding_category_table.
20847
208482008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
20849
20850 * process.c (Faccept_process_output): If `millisec' is non-nil,
20851 `seconds' default to 0.
20852 (wait_reading_process_output): Also return non-nil if we read output
20853 from a non-running process.
20854
208552008-05-29 Jason Rumney <jasonr@gnu.org>
20856
20857 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
20858 `raster' specified.
20859 (add_font_entity_to_list): Allow non-opentype truetype fonts back
20860 in the uniscribe backend, but disallow any font that has no
20861 unicode subrange support.
20862
208632008-05-29 Juanma Barranquero <lekktu@gmail.com>
20864
20865 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
20866 Fix typos in docstrings.
20867
208682008-05-29 Kenichi Handa <handa@m17n.org>
20869
20870 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
20871 (Fx_family_fonts): Set frame correctly.
20872
208732008-05-28 Jason Rumney <jasonr@gnu.org>
20874
20875 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
20876
208772008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
20878
20879 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
20880 calling build_annotations.
20881
208822008-05-28 Juanma Barranquero <lekktu@gmail.com>
20883
20884 * coding.c (Fdecode_coding_region, Fencode_coding_region)
20885 (Fencode_coding_string):
20886 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
20887 <latin-extra-code-table>: Fix typos in docstrings.
20888 (syms_of_coding) <coding-system-alist>: Doc fix.
20889 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
20890
208912008-05-28 Kenichi Handa <handa@m17n.org>
20892
20893 * fontset.c (Ffont_info): Don't call font_close_object.
20894
20895 * font.c (font_parse_family_registry): Use Ffont_put to validate
20896 foundry and family.
20897 (font_delete_unmatched): Don't check spacing.
20898 (font_list_entities): Add spacing to the spec to list fonts.
20899
20900 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
20901 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
20902
20903 * coding.c (encode_coding_raw_text): Fix previous change.
20904 (encode_coding_object): When the dst_object is a buffer and is
20905 different from src_object, move gap to PT.
20906
209072008-05-27 Chong Yidong <cyd@stupidchicken.com>
20908
20909 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
20910
209112008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20912
20913 * coding.c (encode_coding_raw_text): Set coding->produced_char for
20914 all branches. Compute it differently.
20915
20916 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
20917
209182008-05-27 Juanma Barranquero <lekktu@gmail.com>
20919
20920 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
20921 into "else if () ... else ...".
20922
209232008-05-27 Jason Rumney <jasonr@gnu.org>
20924
20925 * w32font.c (w32font_open_internal): Determine if glyph indices
20926 are likely to work here.
20927
209282008-05-27 Chong Yidong <cyd@stupidchicken.com>
20929
20930 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
20931 draw overlap glyphs with appropriate highlighting.
20932
209332008-05-27 Kenichi Handa <handa@m17n.org>
20934
20935 * xfont.c (xfont_open): Fix calculation of font->average_width.
20936
209372008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20938
20939 * casefiddle.c (casify_object): Try to guess better whether the
20940 argument is a byte or a char.
20941
209422008-05-26 Andreas Schwab <schwab@suse.de>
20943
20944 * xselect.c (x_reply_selection_request): Properly handle format == 32.
20945 Always send multiples of format size.
20946
20947 * xterm.c (x_set_frame_alpha): Fix type mismatch.
20948
209492008-05-26 Jason Rumney <jasonr@gnu.org>
20950
20951 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
20952 (compute_metrics): Don't set failure if we just cleared the cache.
20953 (w32_weight_table): Remove unused variable.
20954 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
20955 backwards compatibility.
20956
209572008-05-25 Kenichi Handa <handa@m17n.org>
20958
20959 * w32term.c (x_draw_glyph_string):
20960 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
20961
20962 * xfaces.c: Delete unused function prototypes.
20963 (xstrlwr, font_frame): Delete them.
20964 (clear_face_cache): Delete unused variable.
20965
20966 * xftfont.c (xftfont_open): Delete unused variable.
20967 If underline_thickness is not 1, adjust underline_position.
20968
20969 * ftxfont.c (ftxfont_open): Delete unused variable.
20970
20971 * fontset.c (face_for_char): Optimize for the case of no charset
20972 property.
20973
20974 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
20975 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
20976 (otf_open, font_otf_capability, generate_otf_features)
20977 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20978 Comment out by surrounding "#if 0" and "#endif" for the moment.
20979 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
20980 (syms_of_font): Codes for accessing above commented out.
20981
209822008-05-24 Eli Zaretskii <eliz@gnu.org>
20983
20984 * w32proc.c: Include dispextern.h.
20985
20986 * w32.c: Include dispextern.h.
20987
209882008-05-23 Juanma Barranquero <lekktu@gmail.com>
20989
20990 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
20991 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
20992 Fix typos in docstrings.
20993
209942008-05-23 Jason Rumney <jasonr@gnu.org>
20995
20996 * xsmfns.c: Remove includes that are already included by config.h.
20997
209982008-05-23 Kenichi Handa <handa@m17n.org>
20999
21000 * charset.c (Qemacs, charset_emacs): New variables.
21001 (char_charset): Fix for non-Unicode characters.
21002 (syms_of_charset): Define charset_emacs.
21003
21004 * w32term.c (x_draw_glyph_string): Be sure to update
21005 s->underline_thickness and s->underline_position. Be sure to draw
21006 underline within the current line area.
21007
21008 * xterm.c (x_draw_glyph_string): Be sure to update
21009 s->underline_thickness and s->underline_position. Be sure to draw
21010 underline within the current line area.
21011
21012 * fontset.c: Delete unused variables and add casting for char *
21013 throughout the file.
21014 (fontset_font): Try the fallback fonts of the current fontset
21015 before consulting the default fontset.
21016
21017 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
21018
21019 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
21020
210212008-05-22 Jason Rumney <jasonr@gnu.org>
21022
21023 * font.c: Don't include strings.h.
21024
21025 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
21026
21027 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
21028 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
21029 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
21030 to call xstrcasecmp.
21031
21032 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
21033
21034 * fontset.c (fs_query_fontset): Use xstrcasecmp.
21035
21036 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
21037
21038 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
21039
210402008-05-22 Kenichi Handa <handa@m17n.org>
21041
21042 * puresize.h (BASE_PURESIZE): Increase to 1220000.
21043
21044 * font.c (font_prop_validate_style): Adjust for the format
21045 change of font_style_table.
21046
21047 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
21048 two args.
21049
21050 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
21051 two args.
21052
210532008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
21054
21055 * minibuf.c (keys_of_minibuf): Delete.
21056 * lisp.h (keys_of_minibuf): Delete.
21057 * emacs.c (main): Don't call keys_of_minibuf.
21058
210592008-05-22 Kenichi Handa <handa@m17n.org>
21060
21061 * ftfont.c (ftfont_resolve_generic_family): Rename from
21062 ftfont_list_generic_family. Return a single family for each
21063 generic family.
21064 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
21065 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
21066 Call font_add_log.
21067 (ftfont_match): Call font_add_log.
21068
21069 * font.h (Ffont_xlfd_name): EXFUN adjusted.
21070 (FONT_DEBUG): Define it.
21071 (font_add_log): Extern it.
21072 (font_assert): Rename from xassert.
21073
21074 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
21075 (xfont_list_family): Call font_add_log.
21076 (xfont_match): Likewise.
21077 (memq_no_quit): Delete.
21078
21079 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
21080 call of Ffont_xlfd_name.
21081
21082 * xfaces.c (struct table_entry, slant_table, weight_table)
21083 (swidth_table): Move to font.c.
21084
21085 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
21086 xassert are changed to font_assert. Delete many unused variables.
21087 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
21088 New variables.
21089 (struct table_entry): Move from xfaces.c and modified.
21090 (weight_table, slant_table, width_table): Move from xfaces.c and
21091 contents adjusted for the change of struct table_entry.
21092 (font_style_to_value, font_style_symbolic): Adjust for the
21093 format change of font_style_table.
21094 (font_parse_family_registry): Don't overwrite existing foundry and
21095 family of font_spec.
21096 (font_score): Fix calculation of diff for sizes.
21097 (font_sort_entites): Call font_add_log.
21098 (font_delete_unmatched): Return a newly created list.
21099 (font_list_entities): Fix previous change. Call font_add_log.
21100 (font_matching_entity, font_open_entity, font_close_entity):
21101 Call font_add_log.
21102 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
21103 (Finternal_set_font_style_table): Delete.
21104 (BUILD_STYLE_TABLE): New macro.
21105 (build_style_table): New function.
21106 (Vfont_log, font_log_env_checked): New variables.
21107 (font_add_log): New function.
21108 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
21109 Declare Lisp variables "font-weight-table", "font-slant-table",
21110 "font-width-table", and "font-log". Initialize font_style_table.
21111
211122008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
21113
21114 * xterm.c (x_set_frame_alpha): Move declarations before statements.
21115
211162008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 21117 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
21118
21119 * frame.c (Qalpha): Add a new frame parameter `alpha'.
21120 (Vframe_alpha_lower_limit): New variable.
21121 (x_set_alpha): New function.
21122
21123 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
21124
21125 * xfns.c (x-create-frame, Qalpha):
21126 Initialize the frame parameter `alpha'.
21127 * xterm.c (OPAQUE, OPACITY): New.
21128 (x_set_frame_alpha): New function.
21129 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
21130
21131 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
21132 * w32fns.c (w32_frame_parm_handlers): Likewise.
21133
211342008-05-20 Jason Rumney <jasonr@gnu.org>
21135
21136 * w32font.c (add_font_entity_to_list): Don't add non-opentype
21137 truetype fonts to opentype list.
21138
211392008-05-20 Juanma Barranquero <lekktu@gmail.com>
21140
21141 * fontset.c (Ffontset_info): Doc fix.
21142 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
21143 <ignore-relative-composition>: Fix typos in docstrings.
21144
21145 * font.c (syms-of-font) <font-encoding-alist>:
21146 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
21147 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
21148 (Ffont_otf_alternates): Doc fixes.
21149
211502008-05-20 Kenichi Handa <handa@m17n.org>
21151
21152 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
21153 font.h through out the file.
21154 (FONT_DRIVERS): Rename from FONTOBJ.
21155 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
21156 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
21157
21158 * emacs.c (main): Call syms_of_font unconditionally.
21159
21160 * font.h (find_font_encoding): Extern it.
21161
21162 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
21163 fontset.c.
194d44e7 21164 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
21165 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
21166 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
21167 only when HAVE_WINDOW_SYSTEM is defined.
21168 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
21169 when HAVE_WINDOW_SYSTEM is defined.
21170
21171 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
21172 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
21173
21174 * xfaces.c: Include font.h unconditionally.
21175 (merge_face_ref, merge_face_vectors)
21176 (Finternal_set_lisp_face_attribute): Cancel the previous change.
21177
211782008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
21179
21180 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
21181 indirect_variable.
21182 * eval.c (lisp_indirect_variable): New fun.
21183 (Fuser_variable_p): Use it.
21184
211852008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21186
21187 * lisp.h (indirect_variable):
21188 * data.c (indirect_variable, let_shadows_buffer_binding_p):
21189 Use Lisp_Symbol pointers rather than Lisp_Object.
21190 Adjust callers.
21191 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
21192 To this end, change calling-convention.
21193
21194 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
21195 if some non-hidden buffers are selected by string&pred.
21196
211972008-05-19 Chong Yidong <cyd@stupidchicken.com>
21198
21199 * process.c (wait_reading_process_output): Always check status
21200 when in batch mode.
21201
212022008-05-19 Kenichi Handa <handa@m17n.org>
21203
21204 * font.c (font_list_entities): Fix handling of cache.
21205 (font_matching_entity): Likewise.
21206
21207 * ftfont.c (cs_iso8859_1): Delete.
21208 (ft_face_cache): New variable.
21209 (struct ftfont_info): New member fc_charset_idx.
21210 (ftfont_build_basic_charsets): Delete.
21211 (fc_charset_table): New variable.
21212 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
21213 . FC_CHARSET_IDX) as :font-entity property in the font entity.
21214 Callers changed.
21215 (ftfont_lookup_cache, ftfont_get_charset): New functions.
21216 (ftfont_spec_pattern): New argument fc_charset_idx.
21217 Check registry more rigidly. Change callers.
21218 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
21219 change of :font-entity property of the font.
21220
21221 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
21222 property of the font.
21223
212242008-05-18 Juanma Barranquero <lekktu@gmail.com>
21225
21226 * coding.c (Fcoding_system_p): Rename argument to match docstring.
21227 (Funencodable_char_position, Fcheck_coding_systems_region)
21228 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
21229 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
21230 (Ffind_operation_coding_system, Fset_coding_system_priority)
21231 (Fcoding_system_eol_type): Doc fixes.
21232
212332008-05-17 Glenn Morris <rgm@gnu.org>
21234
21235 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
21236
212372008-05-16 Eli Zaretskii <eliz@gnu.org>
21238
21239 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
21240 and st_gid.
21241
21242 * frame.c (Fdelete_frame): Don't call font_update_drivers if
21243 HAVE_WINDOW_SYSTEM is not defined.
21244
21245 * xfaces.c (merge_face_ref, merge_face_vectors)
21246 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
21247 HAVE_WINDOW_SYSTEM is defined.
21248 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
21249
212502008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
21251
21252 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
21253
212542008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21255
21256 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
21257
212582008-05-15 Kenichi Handa <handa@m17n.org>
21259
21260 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
21261 preference.
21262
212632008-05-15 Glenn Morris <rgm@gnu.org>
21264
21265 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
21266
212672008-05-15 Chong Yidong <cyd@stupidchicken.com>
21268
21269 * fns.c (init_fns): Don't initialize weak_hash_tables here.
21270 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
21271
21272 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
21273
212742008-05-15 Kenichi Handa <handa@m17n.org>
21275
21276 * ftfont.c (ftfont_list): Downcase family name to check generic
21277 families.
21278
21279 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
21280 font-spec for QCfont value.
21281
21282 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
21283 buffer. Check the return value of it.
21284
212852008-05-14 Jason Rumney <jasonr@gnu.org>
21286
21287 * w32term.c (w32_get_glyph_overhangs): Remove.
21288 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
21289
212902008-05-14 Kenichi Handa <handa@m17n.org>
21291
21292 * font.c (font_prop_validate): Make nil a valid value.
21293 (font_clear_cache): Check if the cached vector of entities is nil
21294 or not.
21295
212962008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21297
21298 * emacs.c (main_thread): Conditionalize on
21299 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21300 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
21301
21302 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
21303 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
21304 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21305
213062008-05-14 Kenichi Handa <handa@m17n.org>
21307
21308 * coding.c (detect_coding_iso_2022): Ignore a coding category that
21309 has no corresponding coding system.
21310
213112008-05-14 Jason Rumney <jasonr@gnu.org>
21312
21313 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
21314
21315 * w32font.h (w32font_open_internal): Update declaration.
21316
21317 * w32font.c (w32font_open_internal): Change last argument from
21318 w32font_info struct to font object. Fill in font object from
21319 font_entity. Get Outline metrics if possible. Use them to
21320 calculate underline position and thickness. Use xlfd name as name
21321 property. Don't set codepage.
21322 (w32font_open): Pass font_object to w32font_open_internal. Don't
21323 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
21324 (w32font_draw): Use s->font.
21325 (clear_cached_metrics): Don't clear non-existent blocks.
21326
21327 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
21328 font was not found.
21329 (x_draw_glyph_string): Use underline position and thickness from font.
21330
21331 * w32uniscribe.c (uniscribe_open): Pass font_object to
21332 w32font_open_internal.
21333
213342008-05-14 Kenichi Handa <handa@m17n.org>
21335
21336 These changes are to delete all legacy font-handling codes, and
21337 make Emacs use only font-backends.
21338
21339 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
21340 (frame.o, image.o, print.o): Depend on $(FONTSRC).
21341
21342 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
21343
21344 * charset.h (Vcharset_non_preferred_head)
21345 (Vcurrent_iso639_language): Extern them.
21346
21347 * charset.c (Vcharset_non_preferred_head): New variable.
21348 (Vcurrent_iso639_language): New variable.
21349 (syms_of_charset): Declare it as a Lisp variable.
21350 (char_charset): Don't check non preferred charsets. As a last
21351 resort, return charset_unicode.
21352 (Fset_charset_priority): Update Vcharset_non_preferred_head.
21353
21354 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
21355 conditionals. Don't check enable_font_backend. Delete all codes
21356 used only when USE_FONT_BACKEND is not defined.
21357
21358 * dispextern.h (struct glyph_string): Change type of `font' to
21359 `struct font *'.
21360 (struct glyph_string): New member underline_position and
21361 underline_thickness.
21362 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
21363 (struct face): Change type of `font' to `struct font *'.
21364 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
21365 (per_char_metric, encode_char): Delete externs.
21366 (calc_pixel_width_or_height): Adjust the prototype.
21367
21368 * emacs.c (enable_font_backend): Delete extern.
21369 (main): Don't set enable_font_backend. Don't check the command
21370 line argument "-disable-font-backend".
21371
21372 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
21373 (enum font_property_index): New members FONT_DPI_INDEX,
21374 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
21375 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
21376 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
21377 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
21378 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
21379 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
21380 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
21381 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
21382 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 21383 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
21384 (struct font): Many members from old "struct font_info" moved to
21385 here. Members font and entity deleted.
21386 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
21387 the new font-related objects.
21388 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
21389 (CHECK_FONT_GET_OBJECT): Likewise.
21390 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 21391 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
21392 (struct font_driver): New members case_sensitive anc check.
21393 Type of the member list and open changed.
aac0c6e3
MR
21394 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
21395 (font_symbolic_width, font_find_object, font_get_spec)
21396 (font_set_lface_from_name): Delete extern.
21397 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
21398
21399 * font.c: Include <strings.h>.
21400 (enable_font_backend): Delete it.
21401 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
21402 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 21403 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
21404 (null_string): Delete it.
21405 (null_vector): Make it static.
21406 (font_family_alist): Delete it.
21407 (Qnormal): Extern it.
21408 (QCextra, QClanguage): Delete it.
21409 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
21410 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 21411 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 21412 the string. Callers changed.
bba3e508 21413 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
21414 objects.
21415 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
21416 (font_style_to_value, font_style_symbolic): New function.
21417 (build_font_family_alist): Delete it.
21418 (font_registry_charsets): Use Fassoc_string instead of
21419 assq_no_quit.
21420 (font_prop_validate_symbol): Don't return null_string.
bba3e508 21421 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
21422 style-related values in a font vector.
21423 (font_property_table): Delete entries for QClanguage and
21424 QCantialias, add entries for QCavgwidth.
21425 (get_font_prop_index): Delete the 2nd argument FROM.
21426 (font_prop_validate): Arguments changed.
bba3e508 21427 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
21428 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
21429 (font_parse_fcname, font_unparse_fcname)
21430 (font_prepare_composition): Likewise.
ef1b0ba7 21431 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 21432 (otf_open): Delete the 1st arg entity.
bba3e508 21433 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
21434 (font_score): New arg alternate_families. Adjusted for the change
21435 of font-related objects.
21436 (font_sort_entites): New arg best_only.
21437 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
21438 Delete them.
21439 (font_match_p): Check alternate families.
21440 (font_find_object): Delete it.
21441 (font_check_object): New function.
bba3e508 21442 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
21443 (font_delete_unmatched): New arg.
21444 (font_list_entities): Call font_driver->list with a spec that
21445 doesn't specify style-related properties.
21446 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 21447 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
21448 (font_close_object, font_has_char, font_encode_char)
21449 (font_get_name, font_get_spec): Likewise.
21450 (font_spec_from_name, font_clear_prop, font_update_lface):
21451 New functions.
21452 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
21453 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 21454 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
21455 (font_range): New function.
21456 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 21457 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 21458 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 21459 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
21460 (Finternal_set_font_style_table): Arguments changed.
21461 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 21462 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
21463 change of font-related objects.
21464 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
21465
21466 * fontset.h (struct font_info): Delete it. Most members go to
21467 struct font.
ef1b0ba7 21468 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
21469 (enum FONT_SPEC_INDEX): Delete it.
21470 (font_info, list_fonts_func, load_font_func, query_font_func)
21471 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
21472 (get_font_repertory_func, new_fontset_from_font_name):
21473 Delete externs.
aac0c6e3
MR
21474 (fontset_from_font_name): Extern it.
21475 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
44f230aa 21476 (FONT_INFO_FROM_FACE): Delete.
aac0c6e3
MR
21477 (face_for_font): Adjust prototype.
21478
21479 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
21480 conditionals. Don't check enable_font_backend. Delete all codes
21481 used only when USE_FONT_BACKEND is not defined.
21482 (get_font_info_func, list_font_func, load_font_func)
21483 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
21484 (get_font_repertory_func): Delete them.
21485 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
21486 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
21487 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
21488 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
21489 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
21490 (fontset_compare_rfontdef): New function.
21491 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
21492 rfont-defs by qsort. Adjusted for the change of font-group vector.
44f230aa 21493 (load_font_get_repertory): Delete.
aac0c6e3
MR
21494 (fontset_find_font): Use new macros to ref/set elements of
21495 font-def and rfont-def.
21496 (fontset_font): Fix the timing of remembering that no font for C.
21497 (free_face_fontset): Do nothing if the face has no fontset.
21498 (face_suitable_for_char_p): Use new macros to ref/set elements of
21499 rfont-def.
21500 (face_for_char): Likewise. Call face_for_char with font_object.
21501 (fs_load_font): Delete. Delete #pragma surrounding it.
21502 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 21503 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
21504 font-spec.
21505 (Fset_fontset_font): Likewise. Use new macros to set elements of
21506 font-def.
21507 (Fnew_fontset): Use font_unparse_xlfd to generate
21508 FONTSET_ASCII (fontset).
44f230aa 21509 (new_fontset_from_font_name): Delete.
ef1b0ba7 21510 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
21511 a fontset is already created for the font. FIx updating of
21512 Vfontset_alias_alist.
44f230aa 21513 (fontset_ascii_font): Delete.
bba3e508 21514 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
21515 (Finternal_char_font): Likewise.
21516 (Ffontset_info): Likewise.
21517 (syms_of_fontset): Don't check load_font_func.
21518
21519 * fns.c (internal_equal): Handle PREV_FONT.
21520
21521 * frame.h: Delete USE_FONT_BACKEND conditional.
21522
21523 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
21524 conditionals. Don't check enable_font_backend. Delete all codes
21525 used only when USE_FONT_BACKEND is not defined.
21526 (x_set_font): Call x_new_font, not x_new_fontset2.
21527 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
21528 already set for the frame.
21529
bba3e508
SM
21530 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
21531 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
21532 of intern_downcase. Use FONT_SET_STYLE to set a style-related
21533 font property. If a font is scalable, set avgwidth property to 0.
21534 Set font-entity property by font_put_extra.
21535 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 21536 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
21537 (ftfont_spec_pattern): New function.
21538 (ftfont_list): Return a list, not vector.
21539 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
21540 (ftfont_list_family): Don't downcase names.
44f230aa 21541 (ftfont_free_entity): Delete.
aac0c6e3
MR
21542 (ftfont_open): Return a font-object. Adjusted for the change of
21543 struct font. Get underline_thickness and underline_position from
21544 font property. Don't update dpyinfo->smallest_font_height and
21545 dpyinfo->smallest_char_width.
21546 (ftfont_close): Don't free `struct font'.
bba3e508 21547 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
21548 (ftfont_encode_char, ftfont_text_extents): Likewise.
21549
21550 * ftxfont.c (ftxfont_list): Return a list, not vector.
21551 (ftxfont_open): Return a font-object. Adjusted for the change of
21552 struct font. Get underline_thickness and underline_position from
21553 font property. Don't update dpyinfo->smallest_font_height and
21554 dpyinfo->smallest_char_width.
21555 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 21556 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 21557
bba3e508
SM
21558 * image.c (image_ascent): Don't include "charset.h".
21559 Include "character.h" and "font.h".
aac0c6e3
MR
21560
21561 * lisp.h (enum pvec_type): New member PREV_FONT.
21562 (Fassoc_string): EXFUN it.
21563
21564 * print.c: Include font.h.
21565 (print_object): Handle font-related objects.
21566
21567 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
21568 conditionals. Don't check enable_font_backend. Delete all codes
21569 used only when USE_FONT_BACKEND is not defined.
21570 (handle_auto_composed_prop): Do nothing if it->f is not on a
21571 window system. Check how many following characters can be
21572 displayed by the same font.
21573 (calc_pixel_width_or_height): Type of the 4th arg is changed to
21574 'struct font *'.
21575 (get_char_face_and_encoding): Assign the whole encoding task to
21576 the `encode-char' method of a font driver.
bba3e508 21577 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
21578 face' and `struct glyph_string'.
21579 (fill_glyph_string): Likewise.
21580 (get_per_char_metric): Arguments changed.
bba3e508 21581 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
21582 and `struct glyph_string'.
21583 (produce_stretch_glyph, calc_line_height_property)
21584 (x_produce_glyphs): Likewise.
21585
21586 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
21587 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
21588 used only when USE_FONT_BACKEND is not defined.
21589 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
21590 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
21591 (Qp): Extern them.
21592 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
44f230aa
SM
21593 Delete.
21594 (struct font_name): Delete.
21595 (xlfd_numeric_value, xlfd_symbolic_value): Delete.
aac0c6e3
MR
21596 (compare_fonts_by_sort_order): New function.
21597 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
21598 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
44f230aa 21599 Delete.
aac0c6e3
MR
21600 (Fx_family_fonts): Use font_list_entities, and sort fonts by
21601 compare_fonts_by_sort_order.
21602 (Fx_font_family_list): Call Ffont_family_list.
21603 (face_numeric_value, face_numeric_weight, face_numeric_slant)
21604 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
21605 (face_symbolic_slant, face_symbolic_swidth)
21606 (split_font_name_into_vector, build_font_name_from_vector)
21607 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
21608 (font_rescale_ratio, split_font_name, build_font_name)
21609 (free_font_names, sort_fonts, x_face_list_fonts)
21610 (face_font_available_p, sorted_font_list, cmp_font_names)
21611 (font_list_1, concat_font_list, font_list, remove_duplicates):
44f230aa 21612 Delete.
aac0c6e3 21613 (Fx_list_fonts): Use Ffont_list.
44f230aa 21614 (LFACE_AVGWIDTH): Delete.
aac0c6e3
MR
21615 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
21616 by FONTP.
21617 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
21618 (set_lface_from_font_name): Delete it.
ef1b0ba7 21619 (set_lface_from_font): Rename from
aac0c6e3
MR
21620 set_lface_from_font_and_fontset. Caller changed. Don't set
21621 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
21622 for face.
21623 (merge_face_vectors): Copy font-spec if necessary.
21624 Clear properties of the font-spec if necessary.
21625 (merge_face_ref): Clear properties of the font-spec if necessary.
21626 (Finternal_set_lisp_face_attribute): Likewise.
21627 (set_font_frame_param): Use font_load_for_lface to load a
21628 font-object, and call Fmodify_frame_parameters with it.
21629 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
21630 font name by Ffont_xlfd_name.
21631 (Finternal_lisp_face_attribute_values): Don't check QCweight,
21632 QCslant, and QCwidth.
21633 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21634 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21635 Compare fonts by EQ.
44f230aa 21636 (lookup_non_ascii_face): Delete.
aac0c6e3
MR
21637 (face_for_font): The 2nd argument changed.
21638 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21639 Check atomic font properties by case insensitive.
21640 (realize_non_ascii_face): Set face->overstrike correctly.
21641 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
21642 (dump_realized_face): Get font name from
21643 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
21644
21645 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21646 conditionals. Don't check enable_font_backend. Delete all codes
21647 used only when USE_FONT_BACKEND is not defined.
21648 (xic_create_xfontset): Original code deleted and renamed from
21649 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
21650 (x_make_gc): Don't set GCFont in GCs.
21651 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21652 opened by "fixed".
21653 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21654 find_ccl_program_func, query_font_func, set_frame_fontset_func,
21655 get_font_repertory_func.
21656
21657 * xfont.c: Include <stdlib.h> and "ccl.h".
21658 (struct xfont_info): New structure.
44f230aa 21659 (xfont_query_font): Delete.
ef1b0ba7 21660 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 21661 moved from xterm.c.
bba3e508 21662 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 21663 (compare_font_names): New function.
ef1b0ba7
SM
21664 (xfont_list_pattern): Sort font names case insensitively.
21665 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
21666 (xfont_list): Return a list, not vector.
21667 (xfont_match): If the font doesn't have QCname property, generate
21668 a name from the other font properties.
21669 (xfont_open): Return a font-object. Adjusted for the change of
21670 struct font. Get underline_thickness and underline_position from
21671 font property. Don't update dpyinfo->smallest_font_height and
21672 dpyinfo->smallest_char_width.
21673 (xfont_close): Don't free struct font.
bba3e508 21674 (xfont_prepare_face): Adjust for the change of struct font.
44f230aa 21675 (xfont_done_face): Delete.
bba3e508 21676 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
21677 (xfont_encode_char, xfont_draw): Likewise.
21678 (xfont_check): New function.
21679
bba3e508 21680 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 21681 callback function.
bba3e508
SM
21682 (xftfont_match): Adjust for the format change of font-entity.
21683 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
21684 font-object. Adjusted for the change of struct font. Return a
21685 font-object. Don't update dpyinfo->smallest_font_height and
21686 dpyinfo->smallest_char_width.
21687 (xftfont_close): Block input while calling XftFontClose.
21688 (xftfont_prepare_face): Don't block input while calling
21689 xftfont_get_colors. Adjusted for the change of struct font.
21690 (xftfont_shape): Return value of error case fixed.
21691
21692 * xrdb.c (x_load_resources): Don't setup a fontset resource.
21693
21694 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21695 conditionals.
21696 (FONT_WIDTH): Return (f)->max_width.
21697 (struct x_display_info): Delete member `font'.
21698 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21699 (x_find_ccl_program, x_get_font_repertory): Delete externs.
21700 (struct x_output): Change type of `font' to `struct font *'.
21701
21702 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21703 conditionals. Don't check enable_font_backend. Delete all codes
21704 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
44f230aa 21705 (x_per_char_metric, x_encode_char): Delete.
aac0c6e3 21706 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 21707 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
21708 `struct face'.
21709 (x_draw_glyph_string_foreground)
21710 (x_draw_composite_glyph_string_foreground): Likewise.
21711 (x_draw_glyph_string): Likewise. Use font->underline_position and
21712 font->underline_thickness.
ef1b0ba7 21713 (x_new_font): Rename from x_new_fontset2.
44f230aa 21714 (x_new_fontset, x_get_font_info, x_list_fonts): Delete.
aac0c6e3
MR
21715 (x_check_font): Call `check' method of a font driver.
21716 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
44f230aa 21717 (x_query_font, x_get_font_repertory): Delete.
ef1b0ba7 21718 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 21719 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
21720 redisplay_interface'.
21721
21722 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
21723 conditionals. Don't check enable_font_backend. Delete all codes
21724 used only when USE_FONT_BACKEND is not defined. Surround non-used
21725 code by "#ifdef OLD_FONT" and "endif".
21726 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21727
21728 * w32font.h (struct w32font_info): New member.
21729 (FONT_COMPAT): New macro.
21730 (w32font_open_internal): Prototype adjusted.
21731
21732 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21733 OLD_FONT" and "endif".
21734
21735 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
21736 conditionals. Don't check enable_font_backend. Delete all codes
21737 used only when USE_FONT_BACKEND is not defined.
21738 (w32font_open): Return a font-object. Make a font-object by
21739 font_make_object. Adjusted for the change of struct w32font_info.
21740 (w32font_close): Don't free struct font. Adjusted for the change
21741 of struct w32font_info.
21742 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 21743 Adjust for the change of struct w32font_info.
aac0c6e3
MR
21744 (w32font_draw): Likewise.
21745 (w32font_list_internal): Return a list, not vector.
21746 (w32font_open_internal): Change the 4th arg to font-object.
21747 Adjusted for the change of struct w32font_info and font-object format.
21748 (add_font_name_to_list): Don't downcase names.
21749 (w32_enumfont_pattern_entity): Make a font-entity by
21750 font_make_entity. Adjusted for the format change of font-entity.
21751 Use FONT_SET_STYLE to set a style-related font property. If a
21752 font is scalable, set avgwidth property to 0. Set font-entity
21753 property by font_put_extra.
bba3e508 21754 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
21755 (w32_weight_table, w32_decode_weight): New variables.
21756 (w32_encode_weight): New function.
bba3e508 21757 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
21758 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21759 weight value.
bba3e508 21760 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
21761
21762 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21763 conditionals. Don't check enable_font_backend. Surround non-used
21764 code by "#ifdef OLD_FONT" and "endif".
21765 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 21766 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
21767
21768 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21769 conditionals. Don't check enable_font_backend. Delete all codes
21770 used only when USE_FONT_BACKEND is not defined. Surround non-used
21771 code by "#ifdef OLD_FONT" and "endif".
21772
21773 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21774 (uniscribe_open): Return value changed to font-object.
21775 Adjusted for the format change of font-object.
bba3e508 21776 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 21777 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 21778 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
21779 font_driver.
21780
217812008-05-13 Chong Yidong <cyd@stupidchicken.com>
21782
21783 * dispnew.c (update_frame_1): Check if tty output is still valid
21784 before flushing it.
21785
217862008-05-13 Jan Djärv <jan.h.d@swipnet.se>
21787
21788 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
21789 to Gtk+ menus.
21790
217912008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
21792
21793 * dired.c (file_name_completion): Tweak the code so as to always do it
21794 in a single pass. Tighten the scope of some variables.
21795
21796 * dired.c (Qdefault_directory): New var.
21797 (file_name_completion): Use it instead of Fexpand_file_name.
21798 (syms_of_dired): Initialize it.
21799
218002008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
21801
21802 * fileio.c (double_dollars): Remove dead code.
21803
218042008-05-10 Eli Zaretskii <eliz@gnu.org>
21805
21806 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
21807 Mention w32-get-true-file-attributes in doc string.
21808
21809 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
21810
218112008-05-09 Glenn Morris <rgm@gnu.org>
21812
21813 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
21814 2008-04-23.
21815
218162008-05-09 Eli Zaretskii <eliz@gnu.org>
21817
21818 Support for reporting owner and group of each file on MS-Windows:
21819 * dired.c (stat_uname, stat_gname): New functions, with special
21820 implementation for w32.
21821 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
21822
21823 * w32.c: Rename the_passwd_* to dflt_passwd_*.
21824 (dflt_group_name): New static variable.
21825 (dflt_group): Rename from the_group.
21826 (init_user_info): Init dflt_group fields. Get user's group name
21827 from LookupAccountSid.
21828 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
21829 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
21830 New initialization states.
21831 (globals_of_w32): Initialize them to zero. Initialize the default
21832 group name to "None".
21833 (GetFileSecurity_Name): New global var, the name of the function
21834 to call for GetFileSecurity.
21835 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
21836 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
21837 (get_file_security, get_security_descriptor_owner)
21838 (get_security_descriptor_group, is_valid_sid)
21839 (get_file_security_desc, get_rid, get_name_and_id)
21840 (get_file_owner_and_group): New functions.
21841 (stat): Use get_file_security_desc and get_file_owner_and_group to
21842 report the owner and primary group of each file. Don't ignore the
21843 high 32 bits of file's size, now that st_size is 64-bit wide.
21844 Fix test when to get true file attributes.
21845 (init_user_info): Use get_rid instead of equivalent inline code.
21846 (fstat): Don't ignore the high 32 bits of file's size.
21847
218482008-05-09 Chong Yidong <cyd@stupidchicken.com>
21849
21850 * image.c (png_load): Use correct bit-depth for setting background
21851 color.
21852
218532008-05-08 Eli Zaretskii <eliz@gnu.org>
21854
21855 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
21856 epa-hook.elc.
21857
218582008-05-08 Juanma Barranquero <lekktu@gmail.com>
21859
21860 * font.c (Ffont_match_p): Don't use `iff' in docstring.
21861
218622008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
21863
21864 * macfns.c (Fx_create_frame): Make a copy of frame parameters
21865 because the original parameters are in pure storage now.
21866 (mac_window): Remove unused params. Update callers.
21867
218682008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
21869
21870 * lread.c (substitute_object_recurse): Use lower-level primitives.
21871 Don't signal errors when traversing sub-char-tables.
21872 Don't loop over all the possible characters when traversing char-tables.
21873
21874 * print.c (print_preprocess): Add sub-char-tables to the print-table,
21875 just like we do in print.c.
21876
218772008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
21878
21879 * minibuf.c (Ftry_completion): Remove code left over from when we used
21880 scmp instead of Fcompare_strings.
21881
218822008-05-04 Juanma Barranquero <lekktu@gmail.com>
21883
21884 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
21885
218862008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21887
21888 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
21889 Create bitmap context in native byte order.
21890
21891 * macterm.c (XDrawLine)
21892 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
21893 context in native byte order.
21894
218952008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21896
21897 * config.in: Regenerate.
21898
21899 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
21900 New definitions for Image I/O support.
21901 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
21902 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
21903 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21904 (mac_data_provider_release_data, image_load_image_io)
21905 [USE_MAC_IMAGE_IO]: New functions.
21906 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
21907 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
21908 (init_image_func_pointer) [MAC_OSX]: Remove function.
21909 (image_load_quartz2d) [MAC_OSX]: Check availability of
21910 CGImageCreateWithPNGDataProvider at compile time.
21911 Use lowercase `false' for boolean constant.
21912 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
21913 Use image_load_image_io.
21914 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
21915 Don't check MyCGImageCreateWithPNGDataProvider.
21916 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
21917 Don't call init_image_func_pointer.
21918
21919 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
21920
21921 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
21922 Make variable non-static.
21923 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
21924 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21925
21926 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
21927 (RED_FROM_ULONG): Mask off higher bits.
21928 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
21929
21930 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
21931 Include AvailabilityMacros.h.
21932 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
21933 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
21934
219352008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
21936
21937 * chartab.c (Fset_char_table_range): If range is t, really set all
21938 chars to that value.
21939
219402008-05-03 Eli Zaretskii <eliz@gnu.org>
21941
21942 * dired.c (Ffile_attributes): Don't allow the device number become
21943 negative.
21944
219452008-05-02 Daiki Ueno <ueno@unixuser.org>
21946
21947 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
21948
219492008-05-02 Juri Linkov <juri@jurta.org>
21950
21951 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
21952 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
21953 DEFAULT argument as a list of default values in docstrings.
21954
219552008-05-01 Chong Yidong <cyd@stupidchicken.com>
21956
21957 * puresize.h (BASE_PURESIZE): Increase to 1210000.
21958
219592008-05-01 Martin Rudalics <rudalics@gmx.at>
21960
21961 * dispnew.c (change_frame_size_1): Preserve small windows when
21962 shrinking frames by calling set_window_height|width with third
21963 arg 2.
21964
21965 * window.h (struct window): Replace field too_small_ok by field
21966 resize_proportionally.
21967
21968 * window.c (make_window): Initialize resize_proportionally.
21969 (enlarge_window): Temporarily set resize_proportionally to make
21970 sure that shrink_windows does scale the window proportionally.
21971 (shrink_windows): When window has resize_proportionally set try
21972 to shrink it proportionally by stealing from other windows.
21973 (struct saved_window, Fset_window_configuration)
21974 (compare_window_configurations): Handle resize_proportionally.
21975 (WINDOW_TOTAL_SIZE): New macro.
21976 (window_min_size, shrink_windows, size_window): Use it.
21977 (check_min_window_sizes): Remove. Invalid values of
21978 window-min-height|width are handled by window_min_size_2 now.
21979 (size_window, Fsplit_window, enlarge_window)
21980 (adjust_window_trailing_edge, grow_mini_window): Don't call
21981 check_min_window_sizes.
21982 (window_min_size_2, window_min_size_1, window_min_size):
21983 New argument safe_p for retrieving "safe" minimum sizes.
21984 (Fdisplay_buffer, Fsplit_window, enlarge_window)
21985 (adjust_window_trailing_edge, grow_mini_window):
21986 Adjust arguments of window_min_size... functions.
21987 (shrink_windows): Argument min_size removed. New argument
21988 safe_p allows shrinking windows to their safe minimum sizes.
21989 Calculate minimum size and decide whether a window shall be
21990 deleted for each window individually.
21991 (size_window): When nodelete_p equals 2, tell shrink_windows to
21992 delete windows only if their new minimum size is no more safe.
21993 (shrink_window_lowest_first): Call window_min_size_1 to make
21994 sure to preserve modeline of bottom-most window when resizing
21995 the minibuffer.
21996 (Fset_window_configuration, Fcurrent_window_configuration)
21997 (compare_window_configurations): Do not handle
21998 window-min-height|width any more.
21999 (syms_of_window): Clarify window-min-height|width doc-strings.
22000
220012008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
22002
22003 * dired.c (file_name_completion): Fix up the encoding/decoding issue
22004 some more. Copy some of the code from Ftry_completions.
22005 Remove special case code that dates back to initial revision when the
22006 slash was only added when necessary and that can't trigger nowadays.
22007
220082008-04-27 Kenichi Handa <handa@m17n.org>
22009
22010 * font.c (font_prop_validate): Signal `error' instead of `font'.
22011
220122008-04-29 Jason Rumney <jasonr@gnu.org>
22013
22014 * w32fns.c (Fw32_battery_status): New defun.
22015 (syms_of_w32fns): Defsubr it.
22016
220172008-04-28 Andreas Schwab <schwab@suse.de>
22018
22019 * dired.c (file_name_completion): Fix another mixing of encoded
22020 and decoded names.
22021
220222008-04-28 Juanma Barranquero <lekktu@gmail.com>
22023
22024 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
22025
220262008-04-27 Juanma Barranquero <lekktu@gmail.com>
22027
22028 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
22029
220302008-04-27 Andreas Schwab <schwab@suse.de>
22031
22032 * dired.c (file_name_completion): Fix inappropriate mixing of
22033 encoded and decoded names.
22034
22035 * xterm.c (XTread_socket): Fix use of uninitialized variable.
22036
22037 * puresize.h (BASE_PURESIZE): Increase to 1200000.
22038
220392008-04-26 Eli Zaretskii <eliz@gnu.org>
22040
22041 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
22042 2008-03-31, it's not needed anymore with `struct stat' definition
22043 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
22044 for the same reasons.
22045
220462008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
22047
22048 * m/sparc.h: Additional redefinitions for GNU/Linux.
22049
220502008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22051
22052 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
22053 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
22054 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
22055 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
22056 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
22057 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
22058 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22059 Likewise.
22060
22061 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
22062 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
22063 (mac_ax_number_of_characters): Add externs.
22064 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
22065 [USE_MAC_TSM]: Likewise.
22066 (mac_handle_text_input_event) [MAC_OSX]:
22067 Handle kEventTextInputOffsetToPos for no active input area case.
22068 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
22069 (mac_handle_document_access_event)
22070 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
22071 (install_application_handler) [MAC_OSX]: Register handlers for
22072 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
22073 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22074 Register mac_handle_document_access_event.
22075
22076 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
22077 Make functions non-static.
22078
220792008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
22080
22081 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
22082 (read_file_name_completion_ignore_case, insert_default_directory)
22083 (Qdefault_directory): Move to minibuffer.el.
22084 (Fread_file_name): Call the new `read-file-name' instead.
22085
220862008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22087
22088 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
22089 Make function non-static.
22090 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
22091 Remove function.
22092 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
22093 Move to mactoolbox.c.
22094 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
22095
22096 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
22097 (mac_rect_make): New macro.
22098
22099 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
22100 instead of float.
22101 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
22102 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
22103 (XSetBackground) [USE_CG_DRAWING]: Likewise.
22104 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
22105 CGRectMake.
22106 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
22107 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
22108 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
22109 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
22110 instead of WindowRef in argument type.
22111 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
22112 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
22113 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
22114 instead of DISPLAY. All uses changed.
22115 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
22116 (x_calc_absolute_position): Simplify so as not to use
22117 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
22118
22119 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
22120 instead of WindowRef in argument type.
22121 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
22122 [TARGET_API_MAC_CARBON]: Remove externs.
22123 (create_apple_event, mac_event_parameters_to_lisp)
22124 [TARGET_API_MAC_CARBON]: Add externs.
22125
22126 * mactoolbox.c (Vmac_ts_script_language_on_focus)
22127 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
22128 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
22129 is clicked.
22130 (x_activate_menubar): Remove extern for saved_menu_event_location.
22131 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
22132 Move from mac.c.
22133
221342008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22135
22136 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
22137 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
22138
221392008-04-23 Jason Rumney <jasonr@gnu.org>
22140
22141 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
22142 attributes only for local files.
22143
22144 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
22145 default to Qlocal.
22146
221472008-04-22 Juri Linkov <juri@jurta.org>
22148
22149 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
22150 read-buffer-to-switch instead of using the letter "B".
22151
221522008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
22153
22154 * fileio.c (Qdefault_directory): New variable.
22155 (Fread_file_name): Use it to pass `dir' to the completion functions.
22156
221572008-04-20 Chong Yidong <cyd@stupidchicken.com>
22158
22159 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
22160
221612008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
22162
22163 * keyboard.c (Vpre_help_message): Remove.
22164 (show_help_echo): Remove default C code.
22165
22166 * dired.c (directory_files_internal, file_name_completion):
22167 Only call ENCODE_FILE if the string is indeed decoded.
22168
221692008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22170
22171 * Makefile.in (TOOLKIT_DEFINES): Remove.
22172 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
22173
221742008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22175
22176 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
22177 (mactoolbox.o): New target.
22178
22179 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
22180 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
22181
22182 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
22183 Use mac_set_frame_window_background instead of XSetWindowBackground.
22184 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
22185 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
22186 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
22187 instead of SetWindowTitleWithCFString.
22188 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
22189 Move function to mactoolbox.c.
22190 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
22191 Use mac_set_window_modified instead of SetWindowModified.
22192 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
22193 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
22194 (Fx_focus_frame): Use mac_front_non_floating_window instead of
22195 FrontNonFloatingWindow. Use mac_activate_window instead of
22196 ActivateWindow. Use mac_active_non_floating_window instead of
22197 ActiveNonFloatingWindow.
22198 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
22199 Use mac_show_hourglass and mac_hide_hourglass.
22200 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
22201 instead of GetGlobalMouse.
22202 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
22203 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
22204 Use mac_bring_window_to_front instead of BringToFront.
22205 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
22206 mactoolbox.c.
22207 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
22208 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
22209 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
22210 mactoolbox.c.
22211
22212 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
22213 (XtPointer): Move typedef from macmenu.c.
22214 (enum button_type): Move enum from macmenu.c.
22215 (widget_value): Move typedef from macmenu.c.
22216 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
22217 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22218 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22219 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22220 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22221 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22222 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22223 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
22224 (Selection): Move typedef from macselect.c.
22225 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
22226 macterm.c.
22227 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
22228 (mac_is_window_collapsed, mac_bring_window_to_front)
22229 (mac_send_window_behind, mac_hide_window, mac_show_window)
22230 (mac_collapse_window, mac_front_non_floating_window)
22231 (mac_active_non_floating_window, mac_activate_window)
22232 (mac_move_window_structure, mac_move_window, mac_size_window)
22233 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
22234
22235 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
22236 (enum mac_menu_kind): Move enum to mactoolbox.c.
22237 (min_menu_id): Move variable to mactoolbox.c.
22238 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
22239 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
22240 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22241 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22242 [TARGET_API_MAC_CARBON]: Likewise.
22243 (XtPointer): Move typedef to macgui.h.
22244 (enum button_type): Move enum to macgui.h.
22245 (widget_value): Move typedef to macgui.h.
22246 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22247 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22248 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22249 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22250 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22251 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22252 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
22253 (popup_activated_flag): Make variable non-static.
22254 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
22255 (add_menu_item, fill_menu, dispose_menus):
22256 Move functions to mactoolbox.c.
22257 (restore_show_help_function, menu_target_item_handler)
22258 (install_menu_target_item_handler, mac_handle_dialog_event)
22259 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
22260 [TARGET_API_MAC_CARBON]: Likewise.
22261 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
22262 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22263 (find_and_call_menu_selection, name_is_separator): Make function
22264 non-static.
22265 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
22266 to mactoolbox.c.
22267 (set_frame_menubar): Don't call install_menu_quit_handler.
22268 (menu_item_selection): New variable.
22269 (mac_menu_show): Use create_and_show_popup_menu.
22270 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
22271 selection but set variable menu_item_selection. All uses changed.
22272 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
22273 Call install_menu_quit_handler. Move to mactoolbox.c.
22274
22275 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
22276 (Selection): Move typedef to macgui.h.
22277 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
22278 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
22279 Make variables non-static.
22280 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22281 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
22282 Make functions non-static.
22283 (Vmac_service_selection) [MAC_OSX]: Likewise.
22284 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
22285 (mac_valid_selection_target_p, mac_clear_selection)
22286 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22287 (mac_put_selection_value, mac_selection_has_target_p)
22288 (mac_get_selection_value, mac_get_selection_target_list)
22289 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
22290 Move functions to mactoolbox.c.
22291 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
22292 Likewise.
22293 (copy_scrap_flavor_data, mac_handle_service_event)
22294 (install_service_handler) [MAC_OSX]: Likewise.
22295 (syms_of_macselect) <Vmac_dnd_known_types>:
22296 Use mac_dnd_default_known_types.
22297
22298 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
22299 Move to mactoolbox.c.
22300 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
22301 (Fx_selection_owner_p): Add EXFUN.
22302 (install_window_handler, remove_window_handler, XSetWindowBackground):
22303 Remove externs.
22304 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
22305 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
22306 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
22307 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
22308 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
22309 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
22310 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
22311 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
22312 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
22313 (create_and_show_popup_menu, mac_get_selection_from_symbol)
22314 (mac_valid_selection_target_p, mac_clear_selection)
22315 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22316 (mac_put_selection_value, mac_selection_has_target_p)
22317 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
22318 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
22319 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
22320 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22321 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
22322 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22323 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
22324 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22325 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22326
22327 * mactoolbox.c: New file.
22328
223292008-04-18 Jason Rumney <jasonr@gnu.org>
22330
22331 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
22332
223332008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22334
22335 * character.c (Fmultibyte_char_to_unibyte):
22336 Return latin1 chars unchanged.
22337
22338 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
22339 relocated if it points to `name'.
22340
223412008-04-17 Kenichi Handa <handa@m17n.org>
22342
22343 * data.c (Faset): Allow setting a multibyte character in an
22344 ASCII-only unibyte string.
22345
22346 * lisp.h (STRING_SET_MULTIBYTE): New macro.
22347
223482008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
22349
22350 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
22351 done in config.h.
22352
223532008-04-16 Juanma Barranquero <lekktu@gmail.com>
22354
22355 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
22356 (Fchar_direction): Add usage in the docstring.
22357
223582008-04-15 Chong Yidong <cyd@stupidchicken.com>
22359
22360 * keyboard.c (read_key_sequence): Remove always-true checks.
22361
223622008-04-14 Jason Rumney <jasonr@gnu.org>
22363
22364 * w32font.c (w32font_open_internal): Set max_bounds.descent in
22365 compatibility struct, for better underline positioning.
22366
223672008-04-13 David Hansen <david.hansen@gmx.net>
22368
22369 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
22370 string.
22371
223722008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
22373
22374 * m/hp800.h (XUINT, XSET): Remove.
22375
223762008-04-12 Juanma Barranquero <lekktu@gmail.com>
22377
22378 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
22379 previous change.
22380
223812008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
22382
22383 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
22384 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
22385
223862008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22387
22388 * keymap.h (map_keymap_canonical): Declare.
22389 * xmenu.c (single_keymap_panes): Use it.
22390
223912008-04-11 Glenn Morris <rgm@gnu.org>
22392
22393 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
22394 set the target's value to that of the alias.
22395
223962008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22397
22398 * term.c (set_tty_color_mode): Left over typo.
22399
224002008-04-10 Michael Albinus <michael.albinus@gmx.de>
22401
22402 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
22403 only after check for file name handler functions. Signal, when
22404 native functionality is not supported.
22405 (syms_of_fileio): Declare it unconditionally.
22406
224072008-04-10 Jason Rumney <jasonr@gnu.org>
22408
22409 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
22410 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
22411
22412 * w32.c (logon_network_drive): Also logon to remote drives that
22413 are mapped to drive letters.
22414
224152008-04-10 Glenn Morris <rgm@gnu.org>
22416
22417 * xdisp.c (truncate-partial-width-windows): Doc fix.
22418
224192008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
22420
22421 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
22422 Move functions to minibuffer.el.
22423 (syms_of_fileio): Don't declare them.
22424
224252008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22426
22427 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
22428 (syms_of_minibuf): Remove its initialization.
22429
22430 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
22431
224322008-04-09 Juanma Barranquero <lekktu@gmail.com>
22433
22434 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
22435
224362008-04-09 Jason Rumney <jasonr@gnu.org>
22437
22438 * makefile.w32-in (distclean): Delete makefile too.
22439 (maintainer-clean): New target.
22440
22441 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
22442
22443 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
22444 for new font backend and composite cases.
22445
224462008-04-09 Jan Djärv <jan.h.d@swipnet.se>
22447
22448 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
22449 Most of the code moved to run_timers.
22450 (do_pending_atimers): Call run_timers.
22451 (run_timers): New function.
22452
22453 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
22454 run atimers.
22455
22456 * process.c (wait_reading_process_output): The same as above.
22457
224582008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22459
22460 * minibuf.c (last_exact_completion): Remove variable.
22461 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
22462 (complete_and_exit_1, complete_and_exit_2)
22463 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
22464 (Fdisplay_completion_list, display_completion_list_1)
22465 (Fminibuffer_completion_help, Fself_insert_and_exit)
22466 (Fexit_minibuffer, Fminibuffer_message): Move functions to
22467 minibuffer.el.
22468 (syms_of_minibuf): Remove corresponding initializations.
22469
22470 * keyboard.c (Qdeactivate_mark): New var.
22471 (command_loop_1): Use it to call `deactivate-mark'.
22472 (syms_of_keyboard): Initialize it.
22473
22474 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
22475 to another frame.
22476 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
22477 Don't call set_tty_color_mode.
22478 (store_frame_param): Reset previous_frame rather than call
22479 set_tty_color_mode.
22480 * term.c (set_tty_color_mode): Rewrite.
22481 * dispextern.h (set_tty_color_mode): New type.
22482 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
22483
224842008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
22485
22486 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
22487 for generic chars, which do not exist any more in emacs-unicode.
22488
224892008-04-08 Michael Albinus <michael.albinus@gmx.de>
22490
22491 * coding.c (detect_coding_emacs_mule)
22492 (Ffind_operation_coding_system): Fix typo.
22493
224942008-04-08 Jason Rumney <jasonr@gnu.org>
22495
22496 * w32uniscribe.c (SNAME): Extract only symbol name.
22497
22498 * w32font.h (struct w32_metric_cache): New struct.
22499 (w32font_info): Use it.
22500 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
22501 (CACHE_BLOCKSIZE): New constants.
22502
22503 * w32font.c (Qja, Qko, Qzh): New symbols.
22504 (syms_of_w32font): Initialise them.
22505 (font_matches_spec): Use them to filter by language.
22506 (recompute_cached_metrics): Remove function.
22507 (compute_metrics, clear_cached_metrics): New functions.
22508 (w32font_encode_char): Use them to manage metric cache.
22509 (w32font_text_extents): Cache metrics for all glyphs on demand.
22510 Delay converting glyph indices to WORD until needed.
22511 (w32font_open_internal): Initialize metric cache to empty.
22512 (registry_to_w32_charset): Charset should always be a symbol.
22513 (fill_in_logfont, list_all_matching_fonts): Family should
22514 always be a symbol.
22515
225162008-04-06 Jason Rumney <jasonr@gnu.org>
22517
22518 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
22519 Give up if glyph indices not supported. Use uniscribe obtained
22520 ABC widths for individual metrics. Map glyph clusters back to
22521 characters using fClusterStart flag. Return number of glyphs
22522 produced, not chars processed.
22523 (uniscribe_shape): Map char at FROM to current glyph.
22524
225252008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22526
22527 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
22528 Use SetMenuItemHierarchicalMenu.
22529
225302008-04-05 Jason Rumney <jasonr@gnu.org>
22531
22532 * image.c (pbm_load): Allow color values up to 65535.
22533 Throw an error if max_color_idx is outside the supported range.
22534 Report an error when image size is invalid.
22535 Read two bytes at a time when raw images have max_color_idx above 255.
22536
aac0c6e3
MR
225372008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
22538
22539 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
22540 append "CCL: Quitted" when the CCL program is quitted.
22541 (setup_ccl_program): Initialize ccl->quit_silently to zero.
22542
22543 * ccl.h (struct ccl_program): New member quit_silently.
22544
225452008-04-05 Chong Yidong <cyd@stupidchicken.com>
22546
22547 * search.c (compile_pattern_1): Treat non-nil and non-string of
22548 search-spaces-regexp as nil.
22549
22550 * minibuf.c (Fassoc_string): Tweak docstring.
22551
225522008-04-05 Eli Zaretskii <eliz@gnu.org>
22553
22554 * dired.c (Ffile_attributes): Support inode numbers wider than 32
22555 bits. Remove ugly WINDOWSNT-specific kludge introduced on
22556 2008-03-14 to force inode be positive.
22557
22558 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
22559 _S_* ones, since we now use our own sys/stat.h.
22560 (stat, fstat): Don't mangle the inode number.
22561 (init_user_info): Don't restrict UID and GID to 0-60000 range.
22562
225632008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
22564
22565 * frame.h (struct frame): Give one more bit to `visible' since we use
22566 values larger than 1 to indicate obscured frames on ttys.
22567
22568 * keymap.c (Qkeymap_canonicalize): New var.
22569 (Fmap_keymap_internal): New fun.
22570 (describe_map): Use keymap-canonicalize.
22571
22572 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
22573 (Fundo_boundary): Set them.
22574 (syms_of_undo): Initialize them.
22575 (record_point): Use them instead of last_point_position*.
22576 (last_undo_buffer): Change type.
22577
225782008-04-04 Jason Rumney <jasonr@gnu.org>
22579
22580 * w32font.c (w32font_text_extents): Use font's ascent and descent.
22581 (recompute_cached_metrics): Don't set ascent and descent per char.
22582
22583 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
22584 (uniscribe_check_otf): Add GC protection before consing.
22585 Rearrange loop for counting features.
22586
225872008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
22588
22589 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
22590 buffer with byte-size of source buffer.
22591
225922008-04-03 Chong Yidong <cyd@stupidchicken.com>
22593
22594 * callint.c (Fcall_interactively): Handle temporary region even
22595 when shift-select-mode is off.
22596
225972008-04-03 Jason Rumney <jasonr@gnu.org>
22598
22599 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
22600
226012008-04-03 Kenichi Handa <handa@m17n.org>
22602
22603 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
22604 (CATEGORY_MASK_UTF_16): Likewise.
22605 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
22606 binary file.
22607 (detect_coding): Add null-byte detection for a binary file.
22608 (detect_coding_system): Likewise.
22609
226102008-04-03 Jason Rumney <jasonr@gnu.org>
22611
22612 * w32uniscribe.c: New file.
22613
22614 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
22615
22616 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
22617
22618 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
22619 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
22620 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
22621 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
22622 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
22623 (Qphonetic): New symbols.
22624 (syms_of_w32font): Initialize them.
22625 (font_supported_scripts): Use them.
22626 (w32font_list_family): List all charsets.
22627 (w32font_text_extents, recompute_cached_metrics): Fix metric
22628 calculations.
22629 (w32_enumfont_pattern_entity): Make full_type a DWORD.
22630 Give opentype fonts their own format.
22631 (font_matches_spec): New arguments backend and logfont.
22632 Handle :otf spec for uniscribe backend.
22633 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22634 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22635
22636 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22637 font backend.
22638 (globals_of_w32fns): Initialize uniscribe font backend.
22639
22640 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
22641 dependencies.
22642 (w32uniscribe.$(O)): New file to build.
22643 (FONT_OBJ): Include w32uniscribe.$(O).
22644 (LIBS): Add uniscribe libraries.
22645
22646 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22647
226482008-04-02 Chong Yidong <cyd@stupidchicken.com>
22649
22650 * callint.c (Vshift_select_mode): New var.
22651 (Finteractive): Document new ^ spec.
22652 (Fcall_interactively): Call handle-shift-selection if the ^ spec
22653 is present.
22654
22655 * keyboard.c (Vthis_command_keys_shift_translated): New var.
22656 (command_loop_1): Avoid running the direct display versions of
22657 forward-char and backward-char if shift-selection may occur.
22658 (read_key_sequence): Set Vthis_command_keys_shift_translated if
22659 shift-translation takes place.
22660
22661 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22662 avoid clobbering by define-minor-mode.
22663
22664 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22665 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22666
22667 * syntax.c (Fforward_word): Add ^ interactive spec.
22668
22669 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22670 (Fscroll_right): Add ^ interactive spec.
22671
226722008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
22673
22674 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22675
22676 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22677
22678 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22679
226802008-03-31 Juri Linkov <juri@jurta.org>
22681
22682 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22683
226842008-03-30 Jan Djärv <jan.h.d@swipnet.se>
22685
22686 * gtkutil.c (xg_set_geometry): Fix indentation.
22687 (xg_resize_outer_widget): Remove.
22688 (x_wm_size_hint_off): Fix indentation.
22689 (xg_frame_set_char_size): Call flush_and_sync after
22690 gtk_window_resize.
22691 (x_wm_set_size_hint): Pass NULL as geometry window to
22692 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22693 Add menu bar and tool bar height to base height.
22694 (xg_update_frame_menubar, free_frame_menubar)
22695 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22696 (update_frame_tool_bar, free_frame_tool_bar):
22697 Change xg_resize_outer_widget to xg_frame_set_char_size.
22698
226992008-03-30 Michael Albinus <michael.albinus@gmx.de>
22700
22701 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22702 (Fdbus_call_method): New parameter TIMEOUT.
22703 (dbus-send-signal): Optimize UNGCPRO call.
22704
227052008-03-29 Juri Linkov <juri@jurta.org>
22706
22707 * window.c (Fdisplay_buffer): Move call to
22708 Vsplit_window_preferred_function out of conditions that check
22709 if window is eligible for vertical splitting.
22710 When Vsplit_window_preferred_function is non-nil, call it and use
22711 its non-nil return value as window. Otherwise, continue doing
22712 vertical splitting using Fsplit_window with arg horflag=nil.
22713 (syms_of_window) <Vsplit_window_preferred_function>: Change the
22714 default value from `split-window' to nil.
22715
227162008-03-29 Juri Linkov <juri@jurta.org>
22717
22718 * callint.c (Fcall_interactively): Revert 2008-03-16 change
22719 for interactive code letters 'b' and 'B'.
22720
227212008-03-29 Eli Zaretskii <eliz@gnu.org>
22722
22723 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22724 multibyte string.
22725
227262008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
22727
22728 * keyboard.c (pending_funcalls): New var.
22729 (timer_check): Run it.
22730 (syms_of_keyboard): Initialize it.
22731 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22732 (Vdelete_terminal_functions): New vars.
22733 (syms_of_terminal): Initialize them.
22734 (Fdelete_terminal): Run delete-terminal-functions.
22735 * xdisp.c (safe_eval): Rewrite.
22736 (safe_call2): New fun.
22737 * frame.c (Qdelete_frame_functions): New var.
22738 (syms_of_frame): Initialize it.
22739 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
22740 * lisp.h (safe_call2, pending_funcalls): Declare.
22741
227422008-03-28 Andreas Schwab <schwab@suse.de>
22743
22744 * indent.c (Fmove_to_column): Move declaration before statements.
22745
227462008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
22747
22748 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
22749 (struct frame): Use bit fields for boolean vars.
22750
22751 * process.c (server_accept_connection): Simplify naming.
22752 (emacs_get_tty_pgrp): Use SDATA.
22753
22754 * coding.c (decode_coding_object): Fix last change.
22755
227562008-03-27 Jason Rumney <jasonr@gnu.org>
22757
22758 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22759
227602008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
22761
22762 * charset.c (Fdefine_charset_internal): Change the way of
22763 registering charsets in Vcharset_order_list.
22764 (syms_of_charset): Make the charset `eight-bit' supplementary.
22765
227662008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
22767
22768 * regex.c (EXTEND_BUFFER): Change order of pointer addition
22769 operations, to avoid having the difference between pointers
22770 overflow.
22771
227722008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
22773
22774 * indent.c (check_display_width): New fun.
22775 (scan_for_column): Use it.
22776
22777 * data.c (syms_of_data): Mark most-positive-fixnum and
22778 most-negative-fixnum as constants.
22779
22780 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
22781
22782 * indent.c (scan_for_column): Extract from current_column_1.
22783 Merge with the same code from Fmove_to_column.
22784 (current_column_1, Fmove_to_column): Use it.
22785
227862008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
22787
22788 * keymap.c (map_keymap_internal): New fun.
22789 (map_keymap): Use it.
22790 (Fmap_keymap_internal): New fun.
22791 (Fmap_keymap): Remove left-out test from before make_save_value.
22792
22793 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
22794
22795 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
22796 Use XCAR/XCDR.
22797
22798 * process.h (struct Lisp_Process): Remove filter_multibyte.
22799 * process.c (QCfilter_multibyte): Remove.
22800 (setup_process_coding_systems): Don't use filter_multibyte.
22801 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
22802 (read_process_output): Don't adjust multibyteness to filter_multibyte.
22803 (Fset_process_filter_multibyte): Change the coding-system to
22804 approximate the previous behavior.
22805 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
22806 coding-system.
22807
22808 * coding.c (decode_coding_object): When not decoding into a buffer,
22809 obey the coding system's preference of (uni|multi)byte.
22810
228112008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
22812
22813 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
22814 every char is changed and has a different byte-length.
22815 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
22816 Fix int -> EMACS_INT.
22817
228182008-03-23 David Hansen <david.hansen@gmx.net>
22819
22820 * dbusbind.c (xd_read_message): Remove extra copying of message
22821 strings. Check for NULL `interface' or `member'.
22822
228232008-03-22 Eli Zaretskii <eliz@gnu.org>
22824
22825 * w32.c (readdir): If FindFirstFile/FindNextFile return in
22826 cFileName a file name that includes `?' characters, use the 8+3
22827 alias in cAlternateFileName instead.
22828
228292008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
22830
22831 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
22832
228332008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22834
22835 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
22836 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
22837 work on current_buffer only instead (that was already the case
22838 for some of the code anyway).
22839 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
22840 (temp_set_point, temp_set_point_both): Use EMACS_INT.
22841 (SET_PT, SET_PT_BOTH): Adjust.
22842 * intervals.h (set_point, temp_set_point, set_point_both)
22843 (temp_set_point_both): Remove redundant declarations.
22844
228452008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22846
22847 * fileio.c (Finsert_file_contents):
22848 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
22849 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
22850 when buffer != current_buffer anyway.
22851
228522008-03-20 Andreas Schwab <schwab@suse.de>
22853
22854 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
22855 as default.
22856
228572008-03-19 Jason Rumney <jasonr@gnu.org>
22858
22859 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
22860 (syms_of_w32fns): Initialize them.
22861 (HOURGLASS_ID): New constant.
22862 (x_window_to_frame): Don't check hourglass_window.
22863 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
22864 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
22865 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
22866 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
22867 Only change the cursor if hourglass is not active.
22868 (Fx_create_frame): Initialize frame's current_cursor.
22869 (hourglass_atimer): Remove.
22870 (hourglass_started): New function.
22871 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
22872 (show_hourglass): Adapt to w32, changing argument to frame.
22873
22874 * w32term.h (struct w32_output): Remove hourglass_window.
22875 Add current_cursor.
22876
22877 * eval.c (call_debugger, Fsignal):
22878 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
22879 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
22880 (Fexecute_extended_command, cancel_hourglass_unwind):
22881 * minibuf.c (read_minibuf):
22882 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
22883
228842008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
22885
22886 * window.c (run_funs): New fun.
22887 (run_window_configuration_change_hook): Use it to run the buffer-local
22888 and the global part of the hook.
22889
22890 * xdisp.c (format_mode_line_unwind_data): Add window argument.
22891 (unwind_format_mode_line): Restore selected window.
22892 (x_consider_frame_title, Fformat_mode_line): Set selected window.
22893
228942008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
22895
22896 * editfns.c (Fchar_equal): Check they are valid characters.
22897
22898 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
22899
229002008-03-17 Andreas Schwab <schwab@suse.de>
22901
22902 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
22903 against a charset.
22904
22905 * lisp.h (Fbuffer_list): Declare.
22906
229072008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 22908
aac0c6e3
MR
22909 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
22910 handlebox_widget is != 0.
22911
229122008-03-16 Juri Linkov <juri@jurta.org>
22913
22914 * callint.c (Fcall_interactively): For interactive code letters
22915 'b' and 'B' put the buffer list into the list of default "future"
22916 values of the minibuffer.
22917
229182008-03-16 Andreas Schwab <schwab@suse.de>
22919
22920 * keyboard.c (read_key_sequence): Fix downcasing of letters with
22921 modifiers.
22922
22923 * regex.c (re_match_2_internal): Correct matching of a charset
22924 against latin-1 characters.
22925
229262008-03-16 Kenichi Handa <handa@m17n.org>
22927
22928 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
22929 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
22930 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
22931 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
22932 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
22933 CHAR_STRING_ADVANCE.
22934 (produce_chars): Fix for the case that the source and the
22935 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
22936 instead of CHAR_STRING_ADVANCE.
22937 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
22938 STRING_CHAR_ADVANCE.
22939
229402008-03-15 Andreas Schwab <schwab@suse.de>
22941
22942 * regex.c (re_match_2_internal): Correct matching of eight bit
22943 characters in unibyte strings.
22944
229452008-03-15 Martin Rudalics <rudalics@gmx.at>
22946
22947 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
22948 at end of range when it coincides with the end of the buffer.
22949
229502008-03-14 Eli Zaretskii <eliz@gnu.org>
22951
22952 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
22953
22954 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
22955
229562008-03-14 Jason Rumney <jasonr@gnu.org>
22957
22958 * editfns.c (initial_tz): New variable.
22959 (syms_of_editfns): Initialize it.
22960 (Fset_time_zone_rule): Set it when first called.
22961 Use it when TZSTRING is nil.
22962
22963 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
22964 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
22965 (monitor_from_point_fn, get_monitor_info_fn): New globals.
22966 (globals_of_w32fns): Initialize them.
22967 (compute_tip_xy): Use them to position tooltips.
22968
229692008-03-14 Glenn Morris <rgm@gnu.org>
22970
22971 * emacs.c (main): Revert previous change.
22972 (standard_args): Revert -internal-script back to -scriptload,
22973 and remove the long-option form.
22974
229752008-03-13 Glenn Morris <rgm@gnu.org>
22976
22977 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
22978 Remove option -enable-font-backend.
22979
229802008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
22981
22982 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
22983
229842008-03-11 Jan Djärv <jan.h.d@swipnet.se>
22985
22986 * xterm.c (x_connection_closed): For GTK: If this is the last
22987 terminal just exit without closing the display.
22988
229892008-03-11 Jason Rumney <jasonr@gnu.org>
22990
22991 * w32font.c (w32font_full_name): Use floor to round.
22992
f0131492 229932008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
22994
22995 * sound.c (alsa_configure): Declare vol at beginning of block.
22996
22997 * fontset.c (Ffontset_info): Remove extra semicolon.
22998
229992008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
23000
23001 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
23002 size of resulting string.
23003
230042008-03-10 Jason Rumney <jasonr@gnu.org>
23005
23006 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
23007
230082008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23009
23010 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
23011 Don't pretend as if characters with display property haven't been
23012 consumed for string-replacing-string case.
23013
230142008-03-08 Kim F. Storm <storm@cua.dk>
23015
23016 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
23017 (get_next_display_element, next_element_from_string)
23018 (next_element_from_ellipsis, next_element_from_buffer): Use it.
23019
230202008-03-08 Andreas Schwab <schwab@suse.de>
23021
23022 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
23023
230242008-03-06 Jason Rumney <jasonr@gnu.org>
23025
23026 * w32font.c (w32_registry): Take font_type argument. Use ANSI
23027 when charset not specified. Only translate ANSI to unicode when
23028 font_type is truetype.
23029 (w32font_coverage_ok): New function.
23030 (add_font_entity_to_list): Use it to filter unsuitable fonts.
23031
230322008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
23033
23034 * lread.c (Fread_char): Resolve modifiers.
23035 (Fread_char_exclusive): Likewise.
23036
23037 * character.c (char_resolve_modifier_mask): New function.
23038 (char_string): Use char_resolve_modifier_mask.
23039 (Fchar_resolve_modifiers): New function.
23040 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
23041 function.
23042
230432008-03-04 Jason Rumney <jasonr@gnu.org>
23044
23045 * makefile.w32-in: Always include w32font.c in the build.
23046 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
23047
230482008-03-04 Andreas Schwab <schwab@suse.de>
23049
23050 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
23051 (versionclean): Likewise.
23052
230532008-03-04 Juanma Barranquero <lekktu@gmail.com>
23054
23055 * .cvsignore: Add oo.
23056
230572008-03-03 Andreas Schwab <schwab@suse.de>
23058
23059 * coding.c (decode_coding_object): Inhibit gap shrinking while
23060 decoding in place.
23061
230622008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
23063
23064 * w32term.c: Remove unused include "gnu.h".
23065 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
23066
23067 * gnu.h: Rename to ...
23068 * emacs-icon.h: ... this.
23069 * xterm.c: Use emacs-icon.h instead of gnu.h.
23070 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
23071
230722008-03-03 Juanma Barranquero <lekktu@gmail.com>
23073
23074 * w32font.c: Include math.h.
23075
230762008-03-03 Jason Rumney <jasonr@gnu.org>
23077
23078 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
23079 Compute options separately.
23080 (w32font_open_internal): Set glyph_idx before caching metrics.
23081
23082 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
23083 Define if system headers don't.
23084 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
23085 (w32font_encode_char): Don't declare here.
23086
23087 * w32font.c (Quniscribe, QCformat): New symbols.
23088 (syms_of_w32font): Define them.
23089 (w32font_has_char): Indicate uncertainty.
23090 (w32font_encode_char): Encode as glyph point. Make static.
23091 (recompute_cached_metrics): New function.
23092 (w32font_open_internal): Use it. Set font to use glyph points
23093 initially. Set format based on type of font.
23094 (w32font_text_extents, w32font_draw): Optionally use glyph points.
23095 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
23096 on it. Set format based on information available here.
23097 (add_font_entity_to_list): Identify backend based on opentype_only.
23098
230992008-03-02 Andreas Schwab <schwab@suse.de>
23100
23101 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
23102
23103 * coding.c (decode_coding_big5, produce_chars):
23104 Fix typos in last change.
23105
231062008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
23107
23108 * gnu.h: New icon.
23109
231102008-03-02 Kenichi Handa <handa@m17n.org>
23111
23112 * coding.c (decode_coding_utf_8): When eol-type of CODING is
23113 `dos', don't decode '\r' if that is the last in the source.
23114 (decode_coding_utf_16, decode_coding_emacs_mule)
23115 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23116 (decode_coding_raw_text, decode_coding_charset): Likewise.
23117 (produce_chars): Don't decode EOL here. Use EMACS_INT.
23118
231192008-03-01 Jason Rumney <jasonr@gnu.org>
23120
23121 * w32font.c (w32font_full_name): Report point size for scalable fonts.
23122
231232008-03-01 Kim F. Storm <storm@cua.dk>
23124
23125 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
23126
231272008-03-01 Jason Rumney <jasonr@gnu.org>
23128
23129 * w32font.c (w32font_full_name): New function.
23130 (w32font_open_internal): Use it.
23131
231322008-03-01 Kim F. Storm <storm@cua.dk>
23133
23134 * dispnew.c (line_draw_cost): Fix invalid glyph check.
23135
231362008-03-01 Jason Rumney <jasonr@gnu.org>
23137
23138 * font.c (font_unparse_fcname): Increase len when style is a symbol.
23139
231402008-03-01 Jan Djärv <jan.h.d@swipnet.se>
23141
23142 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
23143 xg_frame_resized when the event is for the edit widget.
23144
ef1b0ba7 23145 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
23146
23147 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
23148 set_char_size.
ef1b0ba7 23149 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
23150 operations on widgets here. Just set frame size if needed.
23151 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
23152 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
23153 (x_wm_set_size_hint): Set size hints on the edit widget only, not
23154 the whole frame.
23155 (xg_create_tool_bar): Move attachment of the tool bar to
23156 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
23157 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
23158
231592008-03-01 Jason Rumney <jasonr@gnu.org>
23160
23161 * w32fns.c (w32_msg_pump): Disable debug code.
23162
231632008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23164
23165 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
23166
231672008-02-29 Chong Yidong <cyd@stupidchicken.com>
23168
23169 * xdisp.c (next_overlay_string): Don't set
23170 overlay_strings_at_end_processed_p if we're currently reading from
23171 a display string.
23172
231732008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
23174
23175 * xdisp.c (get_overlay_strings_1): Fix typo.
23176
231772008-02-29 Chong Yidong <cyd@stupidchicken.com>
23178
23179 * xdisp.c (get_overlay_strings_1): Add missing argument type.
23180
231812008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
23182
23183 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
23184
23185 * xdisp.c (display_mode_element): Cancel the previous change.
23186 (decode_mode_spec): Likewise.
23187 (handle_auto_composed_prop): Don't make composition if it->string
23188 is a string.
23189
231902008-02-27 Kim F. Storm <storm@cua.dk>
23191
23192 * lisp.h (GLYPH): Change type from int to struct with separate char
23193 and face_id members.
23194 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
23195 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
23196 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
23197 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
23198 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
23199 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
23200 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
23201 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
23202 handle new Lisp glyph code encoding, either an integer or a cons.
23203
23204 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
23205 (GLYPH_ALIAS): Delete.
23206 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
23207 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
23208 (GLYPH_FROM_CHAR): Replace macro by ...
23209 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
23210
23211 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
23212 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
23213 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
23214 (GLYPH_INVALID_P): New macro.
23215 (spec_glyph_lookup_face): Update prototype.
23216
23217 * dispnew.c (line_draw_cost): Adapt to new glyph type.
23218 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
23219 new glyph code encoding.
23220 (spec_glyph_lookup_face): No return value; update passed glyph instead.
23221 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
23222
23223 * xdisp.c (get_next_display_element, next_element_from_display_vector):
23224 Adapt to new glyph type and new glyph code encoding.
23225
23226 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
23227
23228 * indent.c (current_column, current_column_1, Fmove_to_column)
23229 (compute_motion): Adapt to new glyph code encoding.
23230
23231 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
23232
232332008-02-27 Chong Yidong <cyd@stupidchicken.com>
23234
23235 * process.c (wait_reading_process_output): Check for window
23236 changes caused by timers.
23237 Suggested by Johan Bockgård.
23238
232392008-02-27 Glenn Morris <rgm@gnu.org>
23240
23241 * emacs.c (USAGE1): Add `--disable-font-backend'.
23242
232432008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
23244
23245 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
23246 is made to the buffer.
23247
232482008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
23249
23250 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
23251 (face_at_string_position):
23252 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
23253 (face_at_string_position):
23254 * xdisp.c (display_string, next_overlay_change):
23255 * buffer.h (overlays_at):
23256 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
23257 Update callers.
23258
232592008-02-26 Chong Yidong <cyd@stupidchicken.com>
23260
23261 * editfns.c (Fformat): Doc fix.
23262
232632008-02-26 Juanma Barranquero <lekktu@gmail.com>
23264
23265 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
23266 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
23267 (Ffont_otf_alternates, Fquery_font): Doc fixes.
23268
232692008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23270
23271 * buffer.c (Fbuffer_swap_text): New function.
23272 (syms_of_buffer): Defsubr it.
23273
232742008-02-25 Chong Yidong <cyd@stupidchicken.com>
23275
23276 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
23277
232782008-02-25 Jason Rumney <jasonr@gnu.org>
23279
23280 * w32font.c (w32font_draw): Draw one character at a time when padding.
23281
232822008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23283
23284 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
23285 Handle a nil arg. Use run_window_configuration_change_hook.
23286 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
23287 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
23288 Use run_window_configuration_change_hook.
23289
232902008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23291
23292 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
23293 1-pixel width.
23294
232952008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23296
23297 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
23298 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
23299 if the glyph in the font is zero pixel with.
23300
23301 * dispextern.h (struct glyph_string): New member padding_p.
23302
23303 * w32font.c (w32font_draw): Pay attention to s->padding_p.
23304
23305 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
23306
23307 * xfont.c (xfont_draw): Pay attention to s->padding_p.
23308
23309 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
23310
23311 * font.c: If the font driver doesn't have `shape' function, return Qnil.
23312
233132008-02-25 Jason Rumney <jasonr@gnu.org>
23314
23315 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
23316
233172008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
23318
23319 Allow fine-grained image-cache flushing.
23320 * dispextern.h (struct image): Add `dependencies' field.
23321 (clear_image_caches): Change arg to Lisp_Object.
23322 * image.c (make_image): Initialize `dependencies' field.
23323 (clear_image_cache): Change arg to allow fine-grained flushing.
23324 Perform the flush even if image-cache-eviction-delay is nil.
23325 (clear_image_caches): Change arg to Lisp_Object.
23326 (Fclear_image_cache): Expand meaning of the argument.
23327 (mark_image): Mark `dependencies' field.
23328 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
23329 (lface_hash): Use XHASH rather than XFASTINT.
23330 (face_at_buffer_position): Fix int -> EMACS_INT position.
23331 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
23332 (select_frame_for_redisplay): Remove code duplication.
23333 (redisplay_internal): Adapt arg to call to clear_image_caches.
23334
233352008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
23336
23337 * s/vms4-0.h:
23338 * s/vms4-2.h:
23339 * s/vms4-4.h:
23340 * s/vms5-5.h: Remove, unused.
23341
23342 * s/irix5-2.h:
23343 * s/irix6-0.h:
23344 * s/riscos5.h:
23345 * s/mach-bsd4-3.h:
23346 * m/mips4.h: Remove files for obsolete systems.
23347
23348 * Makefile.in:
23349 * filelock.c:
23350 * unexmips.c:
23351 * m/hp9000s300.h:
23352 * m/iris4d.h:
23353 * s/aix3-1.h:
23354 * s/hpux.h:
23355 * s/msdos.h:
23356 * s/usg5-0.h:
23357 * s/usg5-2-2.h:
23358 * s/usg5-2.h:
23359 * s/usg5-3.h: Remove references to obsolete variables.
23360
23361 * s/irix5-0.h: Remove, move all the contents ...
23362 * s/irix6-5.h: ... here. Simplify.
23363 * config.in: Regenerate.
23364
233652008-02-24 Jason Rumney <jasonr@gnu.org>
23366
23367 * w32term.c (x_draw_glyph_string_background): Clear the background
23368 manually when cleartype is in use.
23369 (x_draw_glyph_string_foreground): Draw text transparently when
23370 cleartype is in use.
23371
23372 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
23373 a font into it unless we have to.
23374
233752008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23376
23377 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
23378 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 23379
aac0c6e3
MR
233802008-02-18 Jason Rumney <jasonr@gnu.org>
23381
23382 * w32fns.c (Fw32_shell_execute): Encode parameters.
23383
233842008-02-09 Eli Zaretskii <eliz@gnu.org>
23385
23386 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
23387
233882008-02-05 Juanma Barranquero <lekktu@gmail.com>
23389
23390 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
23391
233922008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
23393
23394 * xterm.c (x_set_offset): Don't change the gravity if
23395 CHANGE_GRAVITY is -1.
23396
233972008-02-23 Chong Yidong <cyd@stupidchicken.com>
23398
23399 * fileio.c (auto_save_error_occurred): New var.
23400 (auto_save_error): Set it.
23401 (Fdo_auto_save): Don't overwrite the error message if an auto-save
23402 error occurred.
23403
234042008-02-23 Eli Zaretskii <eliz@gnu.org>
23405
23406 * w32.c (globals_of_w32): Add initializations for
23407 g_b_init_get_sid_sub_authority and
23408 g_b_init_get_sid_sub_authority_count.
23409
234102008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
23411
23412 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
23413 (font_parse_xlfd): Use them for sanity check.
23414 (Finternal_set_font_style_table): Make sure the table is bijective.
23415
23416 Consolidate the image_cache to the terminal struct.
23417 * termhooks.h (P_): Remove redundant def.
23418 (struct terminal): New field `image_cache'.
23419 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
23420 of FRAME_X_IMAGE_CACHE.
23421 * xterm.h (struct x_display_info): Remove image_cache field.
23422 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23423 * w32term.h (struct w32_display_info): Remove image_cache field.
23424 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23425 * macterm.h (struct mac_display_info): Remove image_cache field.
23426 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23427 * xterm.c (x_term_init):
23428 * w32term.c (w32_term_init):
23429 * macterm.c (mac_term_init): Set the image_cache in the terminal.
23430 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
23431 Remove declarations.
23432 (clear_image_caches, mark_image_cache): New declarations.
23433 * xfaces.c (clear_face_cache):
23434 * xdisp.c (redisplay_internal): Use clear_image_caches.
23435 * image.c (clear_image_cache): Don't check that a frame is on
23436 a window-system before checking if it shares the same cache.
23437 (clear_image_caches): New function.
23438 (Fclear_image_cache): Use it.
23439 (mark_image): Move from allo.c.
23440 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
23441 * alloc.c (mark_image, mark_image_cache): Move to image.c.
23442 (mark_object): Don't call mark_image_cache for frames.
23443 (mark_terminals): Call mark_image_cache.
23444
23445 * lisp.h (Fdelete_terminal): Declare.
23446
23447 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
23448 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
23449 wrong_type_argument.
23450
234512008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
23452
23453 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
23454 malayalam.el, and tamil.el. Add sinhala.el.
23455
234562008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
23457
23458 * xterm.c (x_connection_closed): Consolidate identical tests.
23459 (x_delete_terminal): Don't crash if called via x_connection_closed.
23460
234612008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
23462
23463 * xdisp.c (decode_mode_spec): New arg string.
23464 (display_mode_element): Adjust for the above change.
23465
234662008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23467
23468 * callint.c (Fcall_interactively): Use AREF.
23469
234702008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
23471
23472 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
23473
234742008-02-18 Jan Djärv <jan.h.d@swipnet.se>
23475
23476 * xfns.c (Fx_show_tip): Set string to " " if empty.
23477
234782008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
23479
23480 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
23481 with Qt.
23482
234832008-02-17 Kenichi Handa <handa@m17n.org>
23484
23485 * ftfont.c (ftfont_shape): Return Lispy number.
23486
23487 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
23488 for GCs.
23489 (Finternal_set_font_selection_order): Call font_update_sort_order
23490 only when enable_font_backend is set.
23491 (realize_x_face): Set face->font_info to that of default face only
23492 when enable_font_backend is set.
23493
23494 * xdisp.c (handle_composition_prop): Set it->c to the fist
23495 character of the composed region.
23496 (fill_composite_glyph_string): Set base_face->font_info to
23497 s->font_info. Get a face for ascii from base_face->ascii_face.
23498 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
23499 with a face already decided.
23500 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
23501 non-negative.
23502 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
23503 call font_prepare_composition unconditionally.
23504
23505 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
23506
23507 * xterm.h (struct x_display_info): New member font.
23508
23509 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
23510 (x_set_mouse_face_gc, x_new_font): Likewise.
23511 (x_term_init): Setup display_info->font.
23512 (x_delete_terminal): Free display_info->font.
23513
23514 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
23515
23516 * ftxfont.c (ftxfont_default_fid): Delete it.
23517 (ftxfont_open): Set xfont->fid to 0.
23518 (ftxfont_end_for_frame): Clear data specific to the frame and the
23519 font-driver.
23520
23521 * xftfont.c (xftfont_default_fid): Delete it.
23522 (xftfont_open): Set xfont->fid to 0.
23523
23524 * fontset.c (FONTSET_OBJLIST): New macro.
23525 (fontset_find_font): Update font-object list of the fontset.
23526 (free_realized_fontset): New function.
23527 (free_face_fontset): Call free_realized_fontset.
23528 (Ffont_info): Call font_close_object only when enable_font_backend
23529 is set.
23530
23531 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
23532 [HAVE_NTGUI]: Include w32term.h.
23533 [MAC_OS]: Include macterm.ch.
23534 (font_otf_ValueRecord): Use make_number.
23535 (font_finish_cache): Fix handling of reference count.
23536 (font_clear_cache): Update num_fonts.
23537 (font_open_entity): Update smallest_char_width and
23538 smallest_font_height of the frame.
23539 (font_close_object): Update num_fonts.
23540 (Fclear_font_cache): Fix finding the target cache data.
23541
235422008-02-16 Glenn Morris <rgm@gnu.org>
23543
23544 * fontset.c (Finternal_char_font): Fix compilation warning.
23545
235462008-02-16 Eli Zaretskii <eliz@gnu.org>
23547
23548 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
23549 instead of char arrays. Enlarge the size of array passed to
23550 get_token_information.
23551
23552 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
23553 warnings.
23554
235552008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
23556
23557 * .gdbinit: Don't set `args', it breaks gdb --args.
23558
235592008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
23560
23561 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
23562 within a narrowed buffer.
23563
235642008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
23565
23566 * coding.c (decode_coding_object, encode_coding_object):
23567 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
23568
235692008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
23570
23571 * coding.c (coding_set_destination): Use BEG_BYTE rather than
23572 hardcoding 1.
23573 (detect_coding_system):
23574 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
23575 (string_char_to_byte, string_byte_to_char, insert_from_gap):
23576 * insdel.c (insert_from_gap):
23577 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
23578 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
23579 (string_to_multibyte):
23580 * character.c (chars_in_text, multibyte_chars_in_text):
23581 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
23582
23583 * character.h (FETCH_STRING_CHAR_ADVANCE)
23584 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
23585 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
23586 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
23587
23588 * casefiddle.c (casify_region): Only call after-change and composition
23589 functions on the part of the region that was changed.
23590
23591 * keyboard.c (read_avail_input):
23592 * frame.c (Fdelete_frame): Call Fdelete_terminal.
23593
235942008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23595
23596 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
23597 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
23598
235992008-02-11 Juanma Barranquero <lekktu@gmail.com>
23600
23601 * w32menu.c (push_submenu_start, push_submenu_end)
23602 (push_left_right_boundary, push_menu_pane, push_menu_item):
23603 * keyboard.c (read_key_sequence): Don't pass args with side effects
23604 to AREF, it fails when compiling with -DENABLE_CHECKING.
23605
236062008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
23607
23608 * Makefile.in (${lispsource}international/charprop.el):
23609 Delete this target.
23610
23611 * search.c (boyer_moore): Fix incorrect synching of the trunk and
23612 emacs-unicode-2.
23613
236142008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23615
23616 * terminal.c (Fdelete_terminal): Clean up the `force' path.
23617
236182008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23619
23620 * frame.c (Qnoelisp): New symbol.
23621 (syms_of_frame): Initialize it.
23622 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
23623 harmless Elisp code, from a strong `force' from x_connection_closed.
23624 * frame.h (Qnoelisp): Declare.
23625 * xterm.c (x_connection_closed): Pass `noelisp'.
23626
23627 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
23628 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
23629 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
23630 rather than `int' for the type of `type'.
23631
236322008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
23633
23634 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23635
23636 * Makefile.in (GNUC): Remove support for gcc-1.x.
23637
236382008-02-10 Richard Stallman <rms@gnu.org>
23639
23640 * lisp.h (ASET): Use AREF, not ASLOT.
23641
236422008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23643
23644 * lisp.h (ASET): Check bounds.
23645
236462008-02-10 Glenn Morris <rgm@gnu.org>
23647
23648 * buffer.c (mode-name): Doc fix.
23649
236502008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23651
23652 * Makefile.in:
23653 * emacs.c:
23654 * gmalloc.c:
23655 * keyboard.c:
23656 * lisp.h:
23657 * m/ibm370aix.h:
23658 * process.c:
23659 * regex.c:
23660 * s/hpux.h:
23661 * sysdep.c:
23662 * sysselect.h:
23663 * systty.h:
23664 * unexec.c:
23665 * w32term.c:
23666 * xsmfns.c:
23667 * xterm.c: Remove code that deals with obsolete variables.
23668
23669 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23670
23671 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23672 nothing else needs it anymore.
23673
236742008-02-09 Eli Zaretskii <eliz@gnu.org>
23675
23676 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23677 instead of unibyte_char_to_multibyte.
23678
236792008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23680
23681 * s/gnu-linux.h: Remove commented out code.
23682
23683 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23684
23685 * Makefile.in: Update what RMS says about using autoconf.
23686 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23687 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23688 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23689 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23690
236912008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
23692
23693 * keymap.c (Fkey_description): Move side effect outside of macro call.
23694
23695 * xfaces.c (Finternal_make_lisp_face):
23696 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23697
23698 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23699 (syms_of_fontset): Use ASET.
23700
23701 * fns.c (concat): Move side effect outside of macro call.
23702 (hash_clear): Use ASET.
23703
237042008-02-08 Richard Stallman <rms@gnu.org>
23705
23706 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23707 If FORCE, and frame has a surrogate minibuffer for another frame,
23708 delete the other frame first.
23709
237102008-02-07 Timo Savola <timo.savola@iki.fi>
23711
23712 * xterm.c (x_detect_focus_change): Handle embed client message.
23713 (handle_one_xevent): Ditto.
23714 (handle_one_xevent): If embedded and we get a button press/release,
23715 request focus.
23716 (xembed_set_info, xembed_send_message): New functions.
23717 (x_make_frame_visible): Call xembed_set_info if embedded.
23718 (x_make_frame_invisible): Call xembed_set_info if embedded.
23719 (x_term_init): Initialize Xatom_XEMBED.
23720 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23721 (x_iconify_frame): Ditto.
23722
23723 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23724 (enum xembed_info, enum xembed_message, enum xembed_focus)
23725 (enum xembed_modifier, enum xembed_accelerator): New.
23726 (xembed_set_info, xembed_send_message): Declare.
23727 (FRAME_X_EMBEDDED_P): New.
23728
23729 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23730 gtk_plug_new.
23731
23732 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23733 window ID of a frame.
23734 (x_window): Reparent frame if embedded.
23735 (Fx_create_frame): Don't set border width if embedded.
23736
23737 * emacs.c (USAGE3): Add --parent-id.
23738 (standard_args): Ditto.
23739
237402008-02-07 Jan Djärv <jan.h.d@swipnet.se>
23741
23742 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
23743
237442008-02-07 Jim Meyering <meyering@redhat.com>
23745
23746 Use "do...while (0)", not "if (1)...else" in macro definitions.
23747 The latter provokes a warning from gcc about the empty else, when
23748 followed by ";". Also, without that trailing semicolon, it would
23749 silently swallow up any following statement.
23750 * syntax.h (SETUP_SYNTAX_TABLE)
23751 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
23752 * buffer.h (DECODE_POSITION): Likewise.
23753 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23754 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23755 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23756 (FETCH_CHAR_ADVANCE): Likewise.
23757 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23758
237592008-02-07 Jim Meyering <meyering@redhat.com>
23760
23761 * lread.c [lint]: Don't include <sys/inode.h>.
23762
237632008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
23764
23765 * xselect.c (x_handle_dnd_message):
23766 * xmenu.c (digest_single_submenu, xmenu_show):
23767 * xdisp.c (with_echo_area_buffer_unwind_data)
23768 (format_mode_line_unwind_data, unwind_format_mode_line)
23769 (display_menu_bar):
23770 * eval.c (Ffetch_bytecode):
23771 * doc.c (store_function_docstring):
23772 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23773 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23774 * buffer.c (add_overlay_mod_hooklist): Use ASET.
23775
237762008-02-07 Kenichi Handa <handa@m17n.org>
23777
23778 * ftxfont.c (ftxfont_open): Don't set
23779 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
23780
23781 * ftfont.c (ftfont_open): Fix previous change.
23782
237832008-02-06 Jason Rumney <jasonr@gnu.org>
23784
23785 * w32font.c (w32font_text_extents): Fill in lbearing metric.
23786 Use cached metrics for ASCII characters.
23787 (w32font_open_internal): Don't set font's owning_frame.
23788 Cache metrics for ASCII characters.
23789
23790 * w32font.h (struct w32font_info): Add ascii_metrics.
23791 Remove owning_frame.
23792
237932008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
23794
23795 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
23796 to negative value.
23797
23798 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
23799
23800 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
23801
23802 * charset.c (syms_of_charset): Set QCtest and Qeq.
23803
238042008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
23805
23806 * process.c (Fstart_process):
23807 * callproc.c (Fcall_process): Handle the case where
23808 Funhandled_file_name_directory returns nil.
23809
23810 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
23811 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
23812 * font.c (check_gstring): Use them and AREF to access the vector before
23813 we know it's really a gstring.
23814 (Ffont_shape_text): Fix typo.
46e722a9 23815 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
23816
23817 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
23818 Declare.
23819
23820 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
23821
238222008-02-05 Jason Rumney <jasonr@gnu.org>
23823
23824 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
23825 Set smallest_font_height and smallest_char_width in display info.
23826
238272008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
23828
23829 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
23830
238312008-02-05 Miles Bader <miles@gnu.org>
23832
23833 * xfaces.c (get_lface_attributes, merge_named_face)
23834 (lookup_named_face, lookup_derived_face, realize_named_face):
23835 Revert 2008-02-01 change by cyd@stupidchicken.com.
23836
238372008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
23838
23839 * fontset.c (Ffontset_info): Handle the case of inhibitting the
23840 fallback fonts.
23841 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
23842
238432008-02-04 Jason Rumney <jasonr@gnu.org>
23844
23845 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
23846 set full_name.
23847 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
23848
238492008-02-03 Jason Rumney <jasonr@gnu.org>
23850
23851 * makefile.w32-in (OBJ1): Include font.o here.
23852 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
23853
238542008-02-02 Jason Rumney <jasonr@gnu.org>
23855
23856 * makefile.w32-in (temacs): Bump EMHEAP to 21.
23857
238582008-02-01 Jason Rumney <jasonr@gnu.org>
23859
23860 * s/cygwin.h: Define VIRT_ADDR_VARIES.
23861
23862 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
23863
238642008-02-01 Andreas Schwab <schwab@suse.de>
23865
23866 * Makefile.in (shortlisp, lisp): Update for rename of
23867 ../lisp/language/myanmar.el.
23868
238692008-02-01 Chong Yidong <cyd@stupidchicken.com>
23870
23871 * xfaces.c (get_lface_attributes): Delete function.
23872 (merge_named_face, lookup_named_face, lookup_derived_face)
23873 (realize_named_face): Call lface_from_face_name directly, and use
23874 the fact that merge_face_vectors does not alter its FROM argument.
23875
238762008-02-01 Jason Rumney <jasonr@gnu.org>
23877
23878 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
23879 input in the default locale. Handle non-Unicode multibyte input.
23880
238812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23882
23883 * fontset.c (reorder_font_vector): Exclude nil elements from the
23884 font group. Don't try multiple fonts.
23885 (fontset_font): Adjust for the above change.
23886 (Finternal_char_font): Return nil if the found font doesn't
23887 contain the character ch.
23888
23889 * Makefile.in (lisp, shortlisp): Add cham.el.
23890
238912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23892
23893 * font.h (FONTP): Make it return 1 also for a font-object.
23894
23895 * .gdbinit (xfontset): New function.
23896
23897 * font.c (font_find_for_lface): Check if the character C is
23898 supported or not only for the first font.
23899
23900 * fontset.c (reorder_font_vector): Fix typo.
23901 (fontset_find_font): Don't add a font-spec specifying a script.
23902 Use 0 (not Qt) for the indication of empty font-group. Change the
23903 format of RFONT-DEF. Return Qt if no font in the font-group
23904 support the character.
23905 (fontset_font): Adjust for the above change. If no font was
23906 found the character, remember that.
23907 (face_for_char): Adjust for the change of RFONT-DEF.
23908 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
23909 no font for the target.
23910 (Finternal_char_font): Adjust for the change of RFONT-DEF.
23911
239122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23913
23914 * font.c (font_load_for_face): Handle the case that the font in
23915 face->lface is a string.
23916
239172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23918
23919 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
23920
239212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23922
23923 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
23924 Fix previous change. If the frame is not on a window system,
23925 signal an error.
23926
239272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23928
bba3e508
SM
23929 * coding.c (decode_coding_object, encode_coding_object):
23930 Adjust marker positions after conversion.
aac0c6e3
MR
23931
23932 * lisp.h (struct Lisp_Marker): New member need_adjustment.
23933
239342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23935
23936 * font.c (font_find_for_lface): Fix the handling of the return
23937 value of font_has_char.
23938 (Ffont_shape_text): Fix previous change.
23939
23940 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
23941 (fontset_ref_and_range): Delete it.
23942 (fontset_find_font): Call char_table_ref_and_range instead of
23943 FONTSET_REF_AND_RANGE.
23944 (make_fontset): Don't setup font groups of Latin here.
23945 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
23946 (new_fontset_from_font): Make the specified font the default for
23947 all Latin characters.
23948
239492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23950
23951 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
23952 is on a window system before accessing the fontset of the frame.
23953
239542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23955
23956 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
23957
23958 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
23959 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
23960
23961 * font.c (Ffont_shape_text): If the font driver doesn't have a
23962 shaper function, make zero-width glyphs to have at least one-pixel
23963 width. Fix setting of `to' field of glyphs.
23964
239652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23966
23967 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
23968 glyphs.
23969
23970 * font.h (struct font_driver): Improve docstring of member `shape'.
23971
239722008-02-01 Kenichi Handa <handa@m17n.org>
23973
23974 * composite.c (syms_of_composite): Fix docstring of
23975 auto-composition-function.
23976
23977 * font.h (LGLYPH_SIZE): New macro.
23978
23979 * font.c (Ffont_fill_gstring): Stop filling when a character not
23980 supported by the font is found.
23981 (Ffont_shape_text): When a shape callback function returns nil,
23982 try at most two more times with larger gstring.
23983 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
23984
23985 * xdisp.c (handle_auto_composed_prop): Change the argument to
23986 auto-composition-function.
23987
23988 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
23989 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
23990 Lispy glyph and store it in the lgstring.
23991
23992 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
23993
23994 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
23995
239962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23997
23998 * font.c (Ffont_shape_text): Avoid unnecessary composition.
23999
24000 * fontset.c (Vfont_encoding_charset_alist): New variable.
24001 (syms_of_fontset): DEFVAR it.
24002 (reorder_font_vector, fontset_find_font): Optimize for the case of
24003 no need of reordering.
24004 (face_for_char): Map the charset property by
24005 Vfont_encoding_charset_alist.
24006
240072008-02-01 Jason Rumney <jasonr@gnu.org>
24008
24009 * w32font.c (logfonts_match): Don't check adstyle here.
24010 (font_matches_spec): Check here against physical font instead.
24011 (add_font_entity_to_list): Avoid some substitutions.
24012
24013 * font.c (font_parse_fcname): Default weight and slant to normal.
24014 (font_score): Prefer normal fonts if weight or slant unspecified.
24015 (font_score) [WINDOWSNT]: Scale weight difference down to closer
24016 match freetype scores.
24017
240182008-02-01 Jason Rumney <jasonr@gnu.org>
24019
24020 * w32font.c (w32font_text_extents): Don't use the frame stored in the
24021 font, as it may have been deleted.
24022 (w32_enumfont_pattern_entity): Map generic family to adstyle using
24023 most common hyphenless variation.
24024 (logfonts_match): Check generic family.
24025 (font_matches_spec): Don't check generic family here.
24026 (fill_in_logfont): Set generic family based on adstyle.
24027
24028 * w32font.h (w32font_get_cache): Update declaration.
24029
240302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24031
24032 * ftfont.c (ftfont_get_cache): Adjust the argument type.
24033
24034 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
24035 If none of the new drivers are available, call font_update_drivers
24036 with the old drivers.
24037
24038 * w32font.c (w32font_get_cache): Adjust the argument type.
24039
24040 * xfont.c (xfont_get_cache): Adjust the argument type.
24041
24042 * font.h (struct font_driver): Change argument type of get_cache.
24043
24044 * xftfont.c (xftfont_start_for_frame): Delete prototype.
24045
24046 * font.c (Ffont_get): Fix arguments to Fassoc.
24047 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
24048 (font_clear_cache): New function.
24049 (font_list_entities, font_matching_entity): Use font_get_cache.
24050 (font_update_drivers): Call font_clear_cache when finishing a driver.
24051
24052 * fontset.c (fontset_find_font): Fix previous change.
24053
240542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24055
24056 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
24057 dpyinfo->font_table.
24058 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
24059 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
24060
24061 * font.c (font_at): Handle the case that the arg C is negative.
24062 Handle the unibyte case.
24063 (Ffont_at): Call font_at with the arg C -1.
24064
24065 * xdisp.c (handle_auto_composed_prop): Don't get a character at
24066 the position here, and call font_at with the arg C -1.
24067 Don't check the range of the existing composition at the point.
24068
240692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24070
24071 * fontset.c (fontset_add): New args charset_id and family.
24072 Change caller.
24073 (load_font_get_repertory, fontset_find_font): Assume that
24074 font_spec is always a font-spec object.
24075 (Fset_fontset_font): Always store a font-spec object in a fontset.
24076
24077 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
24078 instead of get_property_and_range.
24079
240802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24081
24082 * xftfont.c (struct xftfont_info): Delete the member ft_face.
24083 (xftfont_open): Don't keep locking face.
24084 (xftfont_close): Don't unlock face.
24085 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
24086
24087 * fontset.c (fontset_find_font): Don't prefer a font of
24088 supplementary charset.
24089
240902008-02-01 Kenichi Handa <handa@m17n.org>
24091
24092 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
24093 script, langsys_tag to langsys, new member script.
24094 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 24095 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
24096 listing to the script specified in that property. Fix arg to
24097 OTF_check_features.
24098
240992008-02-01 Jason Rumney <jasonr@gnu.org>
24100
24101 * w32font.h: New file.
24102
24103 * w32font.c: Include it.
24104 (struct w32font_info): Add owning_frame field. Move to w32font.h.
24105 (w32font_open): Set owning_frame.
24106 (w32font_text_extents): Use owning_frame.
24107 (struct font_callback_data): Add opentype_only field.
24108 (add_font_entity_to_list): Use it to filter fonts.
24109 Don't check against full name.
24110 (w32font_list_internal): New function.
24111 (w32font_list): Use it.
24112 (w32font_match_internal): New function.
24113 (w32font_match): Use it.
24114 (w32font_open_internal): New function.
24115 (w32font_open): Use it.
24116 (w32font_get_cache, w32font_close, w32font_has_char)
24117 (w32font_encode_char, w32font_text_extents, w32font_draw):
24118 Make non-static.
24119
24120 * makefile.w32-in (w32font.o): Depend on w32font.h.
24121
241222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24123
24124 * charset.c (Fdefine_charset_internal): Record a supplementary
24125 charset at the tail of Vcharset_order_list.
24126
24127 * font.c (Ffont_shape_text): Fix the return value.
24128
24129 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
24130
24131 * xdisp.c (handle_auto_composed_prop): Fix previous change.
24132
241332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24134
24135 * ftfont.c (struct OpenTypeSpec): New struct.
24136 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
24137 (ftfont_get_open_type_spec): New function.
24138 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
24139
24140 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
24141
241422008-02-01 Jason Rumney <jasonr@gnu.org>
24143
24144 * w32font.c (add_font_entity_to_list): Compare only the beginning
24145 of full name.
24146
241472008-02-01 Kenichi Handa <handa@m17n.org>
24148
24149 * xdisp.c (handle_auto_composed_prop): Simplify the code.
24150 Never return HANDLED_RECOMPUTE_PROPS.
24151
241522008-02-01 Kenichi Handa <handa@m17n.org>
24153
24154 * font.c (font_gstring_produce): Delete it.
24155
24156 * composite.h (COMPOSITION_METHOD):
24157 Handle COMPOSITION_WITH_GLYPH_STRING.
24158
241592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24160
24161 * xfont.c (Qx): Delete.
24162 (syms_of_xfont): Don't initialize Qx.
24163
24164 * composite.h (enum composition_method):
24165 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
24166
241672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24168
24169 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
24170 (choose_face_font): Accept new form of font-spec.
24171
24172 * frame.h (font_driver_list): Declare it unconditionally.
24173 (struct frame): Define members font_driver_list and font_data_list
24174 unconditionally.
24175
24176 * fontset.c: Include "font.h" unconditionally.
24177 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
24178 (Fset_fontset_font): Accept a font-spec object.
24179
24180 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
24181 PIXEL_SIZE part a wild card.
24182
24183 * dispextern.h (struct glyph_string): Define members clip and
24184 num_clips unconditionally.
24185 (struct face): Define members font_info and extra unconditionally.
24186
24187 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
24188 ftfont_info only when HAVE_LIBOTF is defined.
24189
241902008-02-01 Andreas Schwab <schwab@suse.de>
24191
24192 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
24193 and end.
24194
241952008-02-01 Jason Rumney <jasonr@gnu.org>
24196
24197 * w32font.c (w32font_driver): Add new fields.
24198
241992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24200
24201 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
24202 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
24203 (LIBES): Add @M17N_FLT_CFLAGS@.
24204
24205 * composite.c (compose_text): Don't treat the new style
24206 composition specially.
24207
24208 * emacs.c (main): Call syms_of_font unconditionally.
24209
24210 * font.h (FONT_ENTITY_NOT_LOADABLE)
24211 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
24212 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
24213 (struct font_driver): New member shape.
24214 (font_registry_charsets): Extern it.
24215 (font_find_for_lface, font_prepare_composition): Adjust prototype.
24216 (font_otf_capability, font_drive_otf): Delete their externs.
24217
24218 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
24219 (font_charset_alist, font_registry_charsets): Move from xfont.c
24220 and rename.
24221 (font_prop_validate_otf): New function.
24222 (font_property_table): Register it for QCotf.
24223 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
24224 (font_drive_otf): Delete.
24225 (font_prepare_composition): New arg F. Adjust for the change of
24226 lispy gstring.
24227 (font_find_for_lface): New arg C.
24228 (font_load_for_face): Adjust for the change of font_find_for_lface.
24229 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
24230 lispy gstring.
24231 (Ffont_shape_text): New function.
24232 (Fopen_font): If the font size is not given, use 12-pixel.
24233 (Ffont_at): New arg STRING.
40b1a3a9 24234 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
24235 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
24236 conditionally.
24237
24238 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
24239 fonts of the same font-spec. Change the format of RFONT-DEF.
24240 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
24241 Adjust for the change of RFONT-DEF.
24242 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
24243
24244 * ftfont.h: New file.
24245
24246 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
24247 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24248 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24249 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
24250 font_otf_capability and font_drive_otf, set ftfont_shape.
24251 (ftfont_list): Adjust for the change of :otf property value.
24252 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
24253 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
24254 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
24255 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24256 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
24257 (otf_gstring, gstring, m17n_flt_initialized): New variables.
24258
24259 * w32term.c (x_draw_composite_glyph_string_foreground):
24260 Adjust for the change of lispy gstring.
24261
24262 * xdisp.c (handle_composition_prop): Adjust for the change of
24263 lispy gstring. Call a function for auto-composition with the
24264 third arg it->window.
24265 (fill_composite_glyph_string): Adjust for the change of lispy string.
24266 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
24267
24268 * xfaces.c (set_font_frame_param): Adjust for the change of
24269 font_find_for_lface.
24270
24271 * xfont.c (x_font_charset_alist): Move to font.c and rename.
24272 (xfont_registry_charsets): Likewise. Change caller.
24273 (syms_of_xfont): Don't handle x_font_charset_alist.
24274
24275 * xftfont.c: Include "ftfont.h".
24276 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24277 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24278 (xftfont_close) [HAVE_LIBOTF]: Close otf.
24279 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24280 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
24281 Set xftfont_driver.shape to xftfont_shape.
24282
24283 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24284 the change of lispy gstring.
24285
242862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24287
24288 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
24289
242902008-02-01 Jason Rumney <jasonr@gnu.org>
24291
24292 * w32font.c (w32font_draw): Fill background manually.
24293
242942008-02-01 Jason Rumney <jasonr@gnu.org>
24295
24296 * font.c (Qfontp): Remove unused symbol.
24297 (QCantialias): New symbol.
24298 (syms_of_font): Define it.
24299 (font_property_table): Set a validator for QCantialias.
24300
24301 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
24302 Define if not already.
24303 (QCfamily): Share with xfaces.c.
24304 (Qstandard, Qsubpixel, Qnatural): New symbols.
24305 (syms_of_w32font): Define them. Don't define QCfamily here.
24306 (w32_antialias_type, lispy_antialias_type): New functions.
24307 (w32_enumfont_pattern_entity): New arg requested_font.
24308 Set antialias parameter if non-default was requested.
24309 (fill_in_logfont): Fill in lfQuality if :antialias specified.
24310
243112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24312
24313 * lread.c (read1): Undo the previous change.
24314
243152008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
24316
24317 * frame.c (Fdelete_frame): Call font_update_drivers only when
24318 USE_FONT_BACKEND is defined.
24319
243202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24321
24322 * font.h (struct font_bitmap): New member bits_per_pixel.
24323 (struct font_driver): New members start_for_frame and end_for_frame.
24324 (struct font_data_list): New struct.
24325 (font_put_frame_data, font_get_frame_data): Extern them.
24326
24327 * frame.h (struct frame): New member font_data_list.
24328
24329 * font.c (font_update_drivers): Call driver->start_for_frame and
24330 driver->end_for_frame at proper timings.
24331 (font_put_frame_data, font_get_frame_data): New functions.
24332 (Ffont_spec): Add usage in the docstring.
24333
24334 * frame.c (make_frame): Initialize f->font_data_list to NULL.
24335 (Fdelete_frame): Call font_update_drivers.
24336
24337 * xftfont.c (struct xftface_info): Delete the member xft_draw.
24338 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
24339 (xftfont_get_xft_draw): New function.
24340 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
24341 (xftfont_end_for_frame): New function.
24342 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
24343
24344 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
24345 Change argument. Cache GCs in the per-frame data.
24346 (struct ftxfont_frame_data): New struct.
24347 (ftxfont_draw_bitmap): New arg gc_fore and flush.
24348 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
24349 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
24350 (ftxfont_end_for_frame): New function.
24351 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
24352
24353 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
24354
243552008-02-01 Kenichi Handa <handa@m17n.org>
24356
24357 * xselect.c (Vselection_coding_system)
24358 (Vnext_selection_coding_system): Delete them.
24359 (syms_of_xselect): Don't declare selection-coding-system and
24360 next-selection-coding-system. They are declared in select.el.
24361
243622008-02-01 Jason Rumney <jasonr@gnu.org>
24363
24364 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
24365
24366 * w32fns.c: Include imm.h.
24367 (get_composition_string_fn, get_ime_context_fn): New optional
24368 system functions.
24369 (globals_of_w32fns): Load them from imm32.dll.
24370 (ignore_ime_char): New flag.
24371 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
24372 WM_IME_ENDCOMPOSITION messages.
24373
24374 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
24375 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
24376
243772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24378
24379 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
24380 (READCHAR_REPORT_MULTIBYTE): New macro.
24381 (readchar): New 2nd arg MULTIBYTE.
24382 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
24383 Make symbol's name multibyte according to the multibyteness of the
24384 source.
24385
243862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24387
24388 * xfaces.c (face_for_overlay_string): Call lookup_face with
24389 correct arguments (fix of synching with the trunk).
24390
243912008-02-01 Kenichi Handa <handa@m17n.org>
24392
24393 * font.c (font_prop_validate_symbol, font_prop_validate_style)
24394 (font_prop_validate_non_neg, font_prop_validate_spacing):
24395 Delete argument prop_index.
24396 (font_property_table): Change arguments to validater. Change Callers.
24397 (font_lispy_object): Delete.
24398 (font_at): Use font_find_object instead fo font_lispy_object.
24399
244002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24401
24402 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
24403 and file names.
24404
244052008-02-01 Jason Rumney <jasonr@gnu.org>
24406
24407 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
24408 (font_matches_spec): Remove debug output.
24409 (add_font_entity_to_list): Avoid using substituted fonts.
24410
244112008-02-01 Jason Rumney <jasonr@gnu.org>
24412
24413 * doc.c (Fsnarf_documentation):
24414 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
24415
244162008-02-01 Miles Bader <miles@gnu.org>
24417
24418 * dispextern.h (struct glyph_row): Only define "clip" field if
24419 HAVE_WINDOW_SYSTEM is defined.
24420
244212008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24422
24423 Fix up multi-tty merge.
24424
24425 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
24426 and indentation.
24427
24428 * xfaces.c (free_realized_face, clear_face_gcs):
24429 Include font_done_for_face in the input_blocked section, just in case.
24430
24431 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
24432 (get_char_face_and_encoding): Undo last change and remove the *other*
24433 duplicate definition (i.e. keep the one that's better scoped and that
24434 includes code for the font-backend).
24435
24436 * terminal.c (create_terminal): Default keyboard_coding to
24437 `no-conversion' and terminal_coding to `undecided'.
24438
24439 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
24440
24441 * fontset.c (free_realized_fontsets): Check that the table entry does
24442 contain a fontset before trying to compare it to `base'.
24443
24444 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
24445 syms_of_charset, and syms_of_coding earlier because init_window_once
24446 now needs Vcoding_system_hash_table to be setup.
24447
24448 * coding.h (default_buffer_file_coding): Remove.
24449
24450 * coding.c (default_buffer_file_coding): Remove.
24451 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
24452 than ->symbol, and use the terminal-local coding system.
24453 (syms_of_coding): Don't setup the coding-systems that are not
24454 terminal-local.
24455 (Fdefine_coding_system_internal): Use XCAR/XCDR.
24456
24457 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
24458 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
24459
24460 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
24461 in chartab.c and were re-added here by mistake.
24462 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
24463
24464 * doc.c (Fsnarf_documentation):
24465 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
24466 src to etc.
24467
24468 * ChangeLog.10: Add mistakenly removed entry.
24469
244702008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
24471
24472 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
24473
244742008-02-01 Miles Bader <miles@gnu.org>
24475
24476 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
24477 Add extra args to FACE_FOR_CHAR.
24478
244792008-02-01 Kenichi Handa <handa@m17n.org>
24480
24481 * keymap.c (where_is_internal_1): If key is a cons, store the copy
24482 in sequence.
24483
24484 * chartab.c (map_sub_char_table, map_char_table): If the range
24485 contains just one character, call the function with that character
24486 even if the depth is not 3.
24487
244882008-02-01 Jason Rumney <jasonr@gnu.org>
24489
24490 * w32font.c (w32font_text_extents): Calculate metrics for the
24491 whole string.
24492
244932008-02-01 Jason Rumney <jasonr@gnu.org>
24494
24495 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
24496
244972008-02-01 Jason Rumney <jasonr@gnu.org>
24498
bba3e508
SM
24499 * w32term.c (x_set_glyph_string_clipping):
24500 Use get_glyph_string_clip_rects.
aac0c6e3
MR
24501 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24502 Adjust for the change of struct glyph_string.
24503
24504 * w32font.c (w32font_draw): Do clipping here.
24505
245062008-02-01 Kenichi Handa <handa@m17n.org>
24507
24508 * xftfont.c (xftfont_draw): Adjust for the change of struct
24509 glyph_string.
24510
bba3e508
SM
24511 * xterm.c (x_set_glyph_string_clipping):
24512 Use get_glyph_string_clip_rects.
aac0c6e3
MR
24513 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24514 Adjust for the change of struct glyph_string.
24515
24516 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
24517 the resulting clip(s}.
24518 (expose_overlaps): Add arg r. Change callers. Set it to
24519 row->clip temporarily.
24520 (expose_window): Redraw rows overlapping the exposed area.
24521
24522 * dispextern.h (struct glyph_row): New member clip.
24523 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
24524 clip_height, new member clip, and num_clips.
24525
245262008-02-01 Kenichi Handa <handa@m17n.org>
24527
24528 * data.c (Fchar_or_string_p): Fix docstring.
24529
245302008-02-01 Kenichi Handa <handa@m17n.org>
24531
24532 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
24533 create a temporary XftDraw object.
24534
245352008-02-01 Kenichi Handa <handa@m17n.org>
24536
24537 * font.c (Ffontp): Fix docstring.
24538
24539 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
24540 strong evidence of ISO-2022.
24541
245422008-02-01 Kenichi Handa <handa@m17n.org>
24543
24544 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
24545 SYNTAX_ENTRY_FOLLOW_PARENT.
24546
245472008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24548
24549 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
24550 its type.
24551 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24552 Update to the new type of weak_hash_tables and next_weak.
24553
24554 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
24555 a plain C pointer to Lisp_Hash_Table.
24556
24557 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
24558 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
24559 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
24560 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
24561 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
24562 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
24563 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
24564 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
24565 (GC_EQ): Remove since they've been identical to their non-GC_
24566 alter-egos ever since the markbit was eradicated.
24567
24568 * alloc.c:
24569 * buffer.c:
24570 * buffer.h:
24571 * data.c:
24572 * fileio.c:
24573 * filelock.c:
24574 * fns.c:
24575 * frame.h:
24576 * lisp.h:
24577 * macterm.c:
24578 * print.c:
24579 * process.c:
24580 * w32fns.c:
24581 * w32menu.c:
24582 * w32term.c:
24583 * xfns.c:
24584 * xmenu.c:
24585 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
24586
245872008-02-01 Kenichi Handa <handa@m17n.org>
24588
24589 * chartab.c (map_sub_char_table): Make it work for the top-level
24590 char-table. Fix handling of parent char-table.
24591 (map_char_table): Adjust for the above change.
24592
245932008-02-01 Jason Rumney <jasonr@gnu.org>
24594
24595 * w32font.c (Qgdi): Rename from Qw32.
24596
245972008-02-01 Jason Rumney <jasonr@gnu.org>
24598
24599 * w32bdf.c (get_quoted_string): Make function static.
24600
246012008-02-01 Kenichi Handa <handa@m17n.org>
24602
24603 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
24604 bigger ascent and descent than those of the font, use them as
24605 font's ascent and descent.
24606
246072008-02-01 Kenichi Handa <handa@m17n.org>
24608
24609 * Makefile.in (${lispsource}international/charprop.el): Move this
24610 target within "#ifdef HAVE_UNIDATA" and "#endif".
24611
246122008-02-01 Kenichi Handa <handa@m17n.org>
24613
24614 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
24615 (shortlisp): Add ../lisp/language/tai-viet.el.
24616
246172008-02-01 Ulrich Mueller <ulm@gentoo.org>
24618
24619 * Makefile.in (${lispsource}international/charprop.el): Depend on
24620 temacs${EXEEXT}.
24621
246222008-02-01 Jason Rumney <jasonr@gnu.org>
24623
24624 * w32font.c (w32font_close): Delete the GDI font object.
24625
24626 * w32menu.c: Include character.h.
24627
24628 * w32proc.c: Likewise.
24629
24630 * w32select.c: Likewise.
24631
24632 * makefile.w32-in (w32proc.o): Depend on character.h.
24633
246342008-02-01 Jason Rumney <jasonr@gnu.org>
24635
24636 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24637
24638 * w32menu.c (syms_of_w32menu): Likewise.
24639
24640 * w32proc.c (syms_of_ntproc): Likewise.
24641
24642 * w32select.c (syms_of_w32select): Likewise.
24643
24644 * w32term.c (syms_of_w32term): Likewise.
24645
246462008-02-01 Jason Rumney <jasonr@gnu.org>
24647
24648 * w32font.c (w32font_draw): Delete brush after using it.
24649
246502008-02-01 Jason Rumney <jasonr@gnu.org>
24651
24652 * w32font.c (w32font_open): Don't set font_idx.
24653 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24654 to font settings.
24655 (w32font_draw): Fill background explicitly.
24656
246572008-02-01 Jason Rumney <jasonr@gnu.org>
24658
24659 * w32term.c (w32_initialize): Don't call w32font_initialize.
24660
24661 * w32font.c (w32font_info): Remove subranges.
24662 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24663 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24664 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24665 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24666 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24667 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24668 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24669 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24670 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24671 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24672 New symbols.
24673 (font_callback_data): New struct.
24674 (w32font_list, w32font_match): Use it.
24675 (w32font_open): Don't populate subranges.
24676 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24677 (w32font_encode_char): Always return unicode code-point as-is.
24678 (w32font_text_extents): Supply a transformation matrix to
24679 GetGlyphOutline. Never look up by glyph index. Avoid looping
24680 twice. Use unicode version of GetTexExtentPoint32 instead of
24681 glyph index version.
24682 (set_fonts_frame): Remove.
24683 (w32_enumfont_pattern_entity): Add frame parameter, use it to
24684 set frame parameter. Use backward compatible fake foundries.
24685 Save generic family in extra slot under QCfamily. Make width slot
24686 constant. Save QCspacing value. Save list of scripts instead of
24687 binary subranges.
24688 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
24689 (add_font_entity_to_list): Use font_callback_data struct.
24690 Filter unwanted fonts.
aac0c6e3
MR
24691 (add_one_font_entity_to_list): Use font_callback_data struct.
24692 (w32_registry): Default to iso10646_1.
24693 (fill_in_logfont): Use dpi from extra slot. Don't bother with
24694 string font registries. Don't fill in font name if it is a generic
24695 family name, fill family instead. Use spacing, family and script
24696 extra info to fill pitch, family and charset fields.
24697 (list_all_matching_fonts): Use font_callback_data struct.
24698 (unicode_range_for_char): Remove.
24699 (font_supported_scripts): New function.
24700 (w32font_initialize): Remove.
24701 (syms_of_w32font): Update which symbols are defined.
24702
247032008-02-01 Jason Rumney <jasonr@gnu.org>
24704
24705 * font.c (font_pixel_size): Reverse assq_no_quit args.
24706
24707 * w32term.h (FONT_WIDTH): Report max width, not average.
24708 (FONT_MAX_WIDTH): Remove.
24709 (FONT_AVG_WIDTH): New macro.
24710
24711 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24712 redefinition of FONT_WIDTH.
24713
24714 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24715 (w32_cache_char_metrics): Use FONT_WIDTH.
24716
24717 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24718
247192008-02-01 Jason Rumney <jasonr@gnu.org>
24720
24721 * w32font.c (w32font_open): Make lfHeight negative.
24722
24723 * w32fns.c (x_default_font_parameter): Use new style font name.
24724 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24725
247262008-02-01 Jason Rumney <jasonr@gnu.org>
24727
24728 * w32font.c (QCsubranges): New symbol.
24729 (w32font_open, w32font_has_char): Get subranges from subproperty
24730 of extra.
24731 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24732 (syms_of_w32font): Define :subranges symbol.
24733
24734 * font.c (font_put_extra): Expose externally.
24735
24736 * font.h (font_put_extra): Move declaration from font.c.
24737
24738 * font.c (Ffont_get): Use font driver to determine otf capability.
24739 (adjust_anchor): Check if driver defines anchor_point before using.
24740
24741 * w32font.c (w32font_open): Handle size, height and pixel_size better.
24742 (w32font_draw): Use options.
24743 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
24744 Fix detection of truetype fonts.
24745 (registry_to_w32_charset): Handle charsets other than iso8859-1
24746 expressed as lisp symbols.
24747 (w32_registry): Express charset as lisp symbol.
24748 (fill_in_logfont): Reverse pixel and point height logic.
24749 Don't set width here. Set quality to default.
24750
24751 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
24752 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
24753
24754 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24755 Remove redundant loop and allocation.
24756
24757 * makefile.w32-in (font.o, w32font.o): New objects.
24758 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24759 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24760
24761 * xdisp.c (fill_composite_glyph_string): Make the first arg to
24762 STORE_XCHARB a valid l-value.
24763
24764 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24765 calculations for non-Truetype fonts.
24766 (x_draw_glyph_string): Sync with xterm.c.
24767 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24768 Remove redundant code.
24769 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24770
24771 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24772 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24773
24774 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24775 (x_to_w32_charset, w32_to_x_charset): Expose externally.
24776
24777 * w32font.c: New file for w32 font backend.
24778
247792008-02-01 Kenichi Handa <handa@m17n.org>
24780
24781 * term.c: Don't include "buffer.h" twice.
24782
247832008-02-01 Kenichi Handa <handa@m17n.org>
24784
24785 * character.c (Funibyte_string): New function.
24786 (syms_of_character): Defsubr it.
24787
247882008-02-01 Jason Rumney <jasonr@gnu.org>
24789
24790 * w32term.c [USE_FONT_BACKEND]:
24791 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
24792 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
24793 (x_draw_glyph_string, x_draw_glyph_string_foreground)
24794 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
24795 (x_free_frame_resources): Sync with xterm.c.
24796
247972008-02-01 Andreas Schwab <schwab@suse.de>
24798
24799 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
24800 char-table size.
24801
248022008-02-01 Kenichi Handa <handa@m17n.org>
24803
24804 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
24805
248062008-02-01 Kenichi Handa <handa@m17n.org>
24807
24808 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
24809 font_otf_gpos, add font_drive_otf.
24810
24811 * fontset.c (fontset_find_font): Pay attention to font size
24812 specified for a font.
24813 (reorder_font_vector): Check contents of font_def.
24814
24815 * font.c (struct otf_list): Delete it.
24816 (otf_list): Make it a lisp variable.
24817 (otf_open): Use lispy otf_list.
24818 (generate_otf_features): Rename from parse_gsub_gpos_spec.
24819 (check_otf_features): New function.
24820 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
24821 New functions.
24822 (font_drive_otf): New function merging font_otf_gsub and
24823 font_otf_gpos.
24824 (font_open_for_lface): New arg spec. Change argument order.
24825 (font_load_for_face): Adjust for the change of font_open_for_lface.
24826 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
24827 Ffont_otf_gpos.
24828 (syms_of_font): Staticpro otf_list. Delete defsubr of
24829 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
24830
24831 * xfaces.c (set_font_frame_param): Adjust for the change of
24832 font_open_for_lface.
24833
24834 * font.h (font_open_for_lface): Adjust prototype.
24835 (struct font_driver): Delete members otf_gsub and otf_gpos, add
24836 member otf_drive.
24837 (font_otf_gsub, font_otf_gpos): Delete externs.
24838 (font_drive_otf): Extern it.
24839
248402008-02-01 Kenichi Handa <handa@m17n.org>
24841
24842 * font.c (font_at): If the window W is not on a window system,
24843 return Qnil.
24844
24845 * coding.c (produce_chars, encode_coding): Don't call
24846 insert_from_gap if no characters to produce.
24847
248482008-02-01 Kenichi Handa <handa@m17n.org>
24849
24850 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
24851 Fclear_face_cache.
24852
24853 * xfaces.c (face_for_font): Check also face->font==font->font.font.
24854
248552008-02-01 Miles Bader <miles@gnu.org>
24856
24857 * emacs.c (main): Change default value of `enable_font_backend' to 1.
24858 Parse "--disable-font-backend" option.
24859 (standard_args): Add "--disable-font-backend" option.
24860
248612008-02-01 Kenichi Handa <handa@m17n.org>
24862
24863 * fontset.c (fontset_find_font): New function.
24864 (fontset_font): Use fontset_find_font.
24865 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
24866 Register the specified font for all Latin characters.
24867 (new_fontset_from_font): Register the specified font for all Latin
24868 characters.
24869 (dump_fontset): For a realized fontset, include the base fontset
24870 name in the returned vector.
24871
248722008-02-01 Kenichi Handa <handa@m17n.org>
24873
24874 * character.h (CHAR_STRING): Cast C to unsigned on calling
24875 char_string.
24876
24877 * character.c (char_string): Type of arg C changed to unsigned.
24878 Signal an error if C is an invalid character code.
24879
24880 * editfns.c (general_insert_function, Fchar_to_string):
24881 Use CHARACTERP, not INTEGERP.
24882
248832008-02-01 Kenichi Handa <handa@m17n.org>
24884
24885 * character.h (MIN_MULTIBYTE_LEADING_CODE)
24886 (MAX_MULTIBYTE_LEADING_CODE): New macros.
24887
24888 * regex.c (analyse_first): Fix for multibyte characters in "case
24889 charset:" and "case categoryspec:".
24890
248912008-02-01 Andreas Schwab <schwab@suse.de>
24892
24893 * Makefile.in (LIBES): Move standard libraries to the end.
24894
248952008-02-01 Kenichi Handa <handa@m17n.org>
24896
24897 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
24898 nonzero, don't shrink the buffer nextb.
24899
24900 * buffer.h (struct buffer_text): New member inhibit_shrinking.
24901
24902 * coding.c (coding_alloc_by_making_gap): New arg offset.
24903 (alloc_destination): Call coding_alloc_by_making_gap with the arg
24904 offset.
24905 (decode_coding_iso_2022): Update coding->safe_charsets.
24906 (decode_coding_gap): Temporarily set
24907 current_buffer->text->inhibit_shrinking to 1.
24908
249092008-02-01 Kenichi Handa <handa@m17n.org>
24910
bba3e508
SM
24911 * xterm.c (x_draw_composite_glyph_string_foreground):
24912 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
24913
249142008-02-01 Juanma Barranquero <lekktu@gmail.com>
24915
24916 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
24917
249182008-02-01 Kenichi Handa <handa@m17n.org>
24919
24920 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
24921 target_multibyte instead of multibyte.
24922 (re_match_2_internal): Call bcmp_translate with target_multibyte.
24923 (bcmp_translate): Change the argument name from multibyte to
24924 target_multibyte.
24925
249262008-02-01 Kenichi Handa <handa@m17n.org>
24927
24928 These changes are to compile a regexp into a pattern that can be
24929 used both for multibyte and unibyte targets.
24930
24931 * Makefile.in (search.o): Depend on charset.h.
24932
24933 * character.c (multibyte_char_to_unibyte_safe): New function.
24934
24935 * search.c: Include "charset.h".
24936 (compile_pattern_1): Delete argument multibyte. Don't set
24937 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
24938 (compile_pattern): Don't compare cp->buf.target_multibyte.
24939 Compare cp->buf.charset_unibyte.
24940 (compile_pattern): Set cp->buf.target_multibyte.
24941
24942 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
24943
24944 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
24945
24946 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
24947 multibyte. Change callers.
24948 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
24949 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
24950 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
24951 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
24952 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
24953 (regex_compile): Make the compiled pattern usable both for
24954 multibyte and unibyte targets.
24955 (analyse_first): Make the fastmap usable both for multibyte and
24956 unibyte targets.
24957 (TRANSLATE_VIA_MULTIBYTE): Delete.
24958 (re_match_2_internal): Pay attention to the case that the
24959 multibyteness of bufp and target may be different.
24960
249612008-02-01 Kenichi Handa <handa@m17n.org>
24962
24963 * xdisp.c (x_produce_glyphs): When a font is not found, make the
24964 empty box occupy at least one column width.
24965
249662008-02-01 Miles Bader <miles@gnu.org>
24967
24968 * Makefile.in: Remove redundant HAVE_XFT clause.
24969
249702008-02-01 Kenichi Handa <handa@m17n.org>
24971
24972 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
24973
249742008-02-01 Kenichi Handa <handa@m17n.org>
24975
24976 * fontset.c (Finternal_char_font): Fix for the case of POSITION
24977 being nil.
24978
249792008-02-01 Kenichi Handa <handa@m17n.org>
24980
24981 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
24982
249832008-02-01 Kenichi Handa <handa@m17n.org>
24984
24985 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
24986
249872008-02-01 Kenichi Handa <handa@m17n.org>
24988
24989 * search.c (simple_search): Fix previous change.
24990
249912008-02-01 Kenichi Handa <handa@m17n.org>
24992
24993 * xftfont.c (ftfont_font_format): Extern declaration.
24994
24995 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
24996
24997 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
24998 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
24999
25000 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
25001 (ftfont_font_format): Fix previous change.
25002
25003 * font.h (Ffont_xlfd_name): EXFUN it.
25004
25005 * font.c (font_parse_xlfd): Fix the array size of `f'.
25006 (register_font_driver): Use EQ to compare driver->type.
25007
25008 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
25009 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
25010 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
25011
250122008-02-01 Kenichi Handa <handa@m17n.org>
25013
25014 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
25015 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
25016
250172008-02-01 Kenichi Handa <handa@m17n.org>
25018
25019 * xfont.c (xfont_open): Set font->format.
25020
25021 * xftfont.c (xftfont_open): Set font->format.
25022
25023 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
25024 (ftfont_list): Include FC_FONTFORMAT in FcObject.
25025 (ftfont_open): Set font->format.
25026 (ftfont_font_format): New function.
25027
25028 * font.h (struct font): New member format.
25029
25030 * font.c (Qopentype): New variable.
25031 (syms_of_font): Defsym it.
25032 (Fquery_font): Change the format of the last element of the return
25033 value.
25034
250352008-02-01 Kenichi Handa <handa@m17n.org>
25036
25037 * xfns.c (xic_create_xfontset): Try the default fontset name as a
25038 last resort.
25039
250402008-02-01 Kenichi Handa <handa@m17n.org>
25041
25042 * coding.c (detect_coding_charset): Fix detection of multi-byte
25043 charset.
25044
250452008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
25046
25047 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
25048
250492008-02-01 Kenichi Handa <handa@m17n.org>
25050
25051 * xdisp.c (get_next_display_element): Set it->face_id for the
25052 first component of a composition.
25053 (x_produce_glyphs): Check if the font is changed or not for composition.
25054
250552008-02-01 Kenichi Handa <handa@m17n.org>
25056
25057 * fontset.c (Qlatin): New variable.
25058 (syms_of_fontset): Define it as a lisp symbol.
25059 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
25060
250612008-02-01 Kenichi Handa <handa@m17n.org>
25062
25063 * font.c (font_unparse_fcname): Pay attention to the case that
25064 some of font property is a null string.
25065
250662008-02-01 Kenichi Handa <handa@m17n.org>
25067
25068 * term.c: Include "composite.h".
25069 (encode_terminal_code): Output all components of composition.
25070 Check the size of encode_terminal_src.
25071 (produce_glyphs): For composition, call produce_composite_glyph.
25072 (append_composite_glyph, produce_composite_glyph): New functions.
25073
25074 * xdisp.c (x_produce_glyphs): In handling composition, if a font
25075 is not found, get font_info from the current ascii face.
25076
250772008-02-01 Kenichi Handa <handa@m17n.org>
25078
25079 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
25080 buffer-file-name to Qnil before calling insert_from_buffer.
25081
25082 * font.c (font_unparse_fcname): Pay attention to the case that
25083 foundry is a null string.
25084
250852008-02-01 Kenichi Handa <handa@m17n.org>
25086
25087 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
25088
25089 * font.c (Qunicode_sip): New variable.
25090 (syms_of_font): Declare it as a Lisp symbol.
25091
25092 * font.h (Qunicode_sip): Extern it.
25093
250942008-02-01 Kenichi Handa <handa@m17n.org>
25095
25096 * composite.c (get_composition_id): Pay attention to TAB component.
25097
25098 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
25099 TAB. Adjust for the change of s->char2b which always points to
25100 the first element of allocated memory.
25101
25102 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
25103
25104 * xdisp.c (handle_composition_prop): Set it->c to the first
25105 non-TAB component.
25106 (fill_composite_glyph_string): Change argument.
25107 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
25108 (x_produce_glyphs): Fix handling of left/right padding.
25109
251102008-02-01 Kenichi Handa <handa@m17n.org>
25111
25112 * coding.c (detect_coding_system): Fix for handling off
25113 inhibit_iso_escape_detection. Fix for the case that no coding
25114 system is defined for a specific coding category.
25115
251162008-02-01 Kenichi Handa <handa@m17n.org>
25117
25118 * font.c (font_matching_entity): Delete unused local var.
25119
25120 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
25121 opening a font.
25122
25123 * fileio.c (Finsert_file_contents): On recovering a file, assume
25124 Unix-like eol.
25125 (choose_write_coding_system): On auto-saving a file, force
25126 Unix-like eol.
25127
25128 * coding.c (setup_coding_system): Fix setting of
25129 coding->common_flags based on eol_type.
25130 (coding_inherit_eol_type): If PARENT is not nil, be sure to
25131 inherit from it.
25132
251332008-02-01 Kenichi Handa <handa@m17n.org>
25134
25135 * alloc.c (NSTATICS): Increas to 0x600.
25136
251372008-02-01 Kenichi Handa <handa@m17n.org>
25138
25139 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
25140 (ftfont_list): Don't check :name property.
25141 (ftfont_match): New function.
25142 (ftfont_pattern_entity): If the pattern doesn't contain
25143 FC_SPACING, don't assume FC_MONO.
25144
25145 * font.h (struct font_driver): New member `match'.
25146 (font_update_drivers): Adjust prototype.
25147
25148 * font.c (font_parse_fcname, font_parse_name): Don't change :name
25149 property of FONT.
bba3e508
SM
25150 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
25151 Define them unconditionally.
aac0c6e3
MR
25152 (font_matching_entity): New function.
25153 (font_open_by_name): Try font_matching_entity if exact match is
25154 not found.
25155 (font_update_drivers): Delete the arg FONT. Return a list of
25156 actually used backends. Don't free faces, font caches here.
25157 Don't store data in frame parameters. Don't call x_set_font.
25158 (Ffont_spec): Store :name property as is.
25159 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
25160 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
25161 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
25162 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
25163 Call font->driver->otf_gsub instead of font_otf_gsub.
25164
25165 * frame.c (x_set_font_backend): Do more works that were done in
25166 font_update_drivers before.
25167
25168 * xfont.c (xfont_match): New function.
25169 (xfont_driver): Set xfont_driver.match to xfont_match.
25170 (xfont_draw): Set font in GC if necessary.
25171
25172 * ftxfont.c (ftxfont_match): New function.
25173 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
25174
25175 * xftfont.c (xftfont_match): New function.
25176 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
25177
251782008-02-01 Kenichi Handa <handa@m17n.org>
25179
25180 * font.h (struct font): New member scalable.
25181 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
25182 (font_otf_gsub): Adjust prototype.
25183
25184 * font.c (font_otf_capability): Fix handling of the default langsys.
25185 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
25186 Check the contents of SPEC.
25187 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
25188 (check_gstring): New function.
25189 (REPLACEMENT_CHARACTER): New macro.
25190 (font_otf_gsub): New arg alternate_subst. Be sure to set all
25191 glyph codes of GSTRING.
25192 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
25193 (font_prepare_composition): Set cmp->glyph_len.
25194 (font_open_entity): Set font->scalable.
25195 (Ffont_get): Handle :otf property.
bba3e508
SM
25196 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
25197 New functions.
aac0c6e3
MR
25198 (Fquery_font): Use font->font.full_name.
25199 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
25200 Sfont_otf_alternates.
25201
25202 * ftfont.c (ftfont_open): Set font->font.full_name and
25203 font->font.name properly. Fix calculation of font->font.height
25204 and font->min_width.
25205
25206 * ftxfont.c (ftxfont_create_gcs): New function.
25207 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
25208 (ftxfont_draw_backgrond): Fix filling region.
25209 (ftxfont_default_fid): New function.
25210 (ftxfont_open): Set xfont->fid to the return value of
25211 ftxfont_default_fid.
25212 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
25213 (ftxfont_done_face): Free only GCs that are created by
25214 ftxfont_create_gcs.
25215 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
25216
25217 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
25218 Clip to src->width, etc (not src->clip_XXX).
25219
25220 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
25221 FontBackend frame parameter.
25222
252232008-02-01 Kenichi Handa <handa@m17n.org>
25224
25225 * font.h (struct font_driver_list): New member `on'.
25226 (Fclear_font_cache): EXFUN it.
25227 (font_update_drivers): Extern it.
25228
25229 * font.c (font_unparse_fcname): Fix typo (swidth->width).
25230 (font_list_entities): Check driver_list->on.
40b1a3a9 25231 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
25232 (font_update_drivers): New function.
25233 (Fclear_font_cache): Check driver_list->on.
25234
25235 * frame.h (Qfont_backend): Extern it.
25236 (x_set_font_backend): Extern it.
25237
25238 * frame.c (Qfont_backend): New variable.
25239 (frame_parms): New element for font-backend.
25240 (x_set_font_backend): New function.
25241
25242 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
25243 FontBackend frame parameter.
25244 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
25245 x_set_font_backend.
25246
25247 * xfont.c (xfont_list): Don't try listing by :name property if the
25248 name is not for XLFD.
25249
252502008-02-01 Kenichi Handa <handa@m17n.org>
25251
25252 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
25253 (LGLYPH_SET_TO): New macros.
25254 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
25255 element of G is vector or not.
25256 (font_at): Extern it.
25257
25258 * font.c: Include window.h.
25259 (font_lispy_object): New function.
25260 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
25261 end of valid glyph.
25262 (font_close_object): Fix getting (struct font *).
25263 (font_at): New function.
25264 (Ffont_get): If FONT is a font-object, get entity from it.
25265 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
25266 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
25267 Fix range check.
aac0c6e3
MR
25268 (Ffont_at): New function.
25269 (syms_of_font): Defsubr Sfont_at.
25270
25271 * xdisp.c (it_props): Move the entry for Qauto_composed to just
25272 before the entry for Qcomposition.
25273 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
25274 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
25275 the font in gstring.
25276 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
25277 LGLYPH_FORM (g) to detect the end of valid glyph.
25278 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
25279 we are composing with gstring.
25280
25281 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
25282 Check if adjustment is vector or not.
25283
25284 * Makefile.in (font.o): Make it depends on window.h.
25285
252862008-02-01 Kenichi Handa <handa@m17n.org>
25287
25288 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
25289 adjustment is vector or not.
25290
252912008-02-01 Miles Bader <miles@gnu.org>
25292
25293 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
25294
252952008-02-01 Kenichi Handa <handa@m17n.org>
25296
25297 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 25298 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
25299 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
25300
25301 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
25302 (DEVICE_DELTA): Fix typo.
25303 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
25304 LGLYPH format.
25305
25306 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
25307 the change of LGLYPH format.
25308
253092008-02-01 Kenichi Handa <handa@m17n.org>
25310
25311 * ftfont.c (ftfont_list): Fix typo.
25312 (ftfont_build_basic_charsets): Don't include letters with diacritics.
25313
253142008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25315
25316 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
25317
25318 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
25319 xftface_info is non-NULL.
25320
253212008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25322
25323 * ftfont.c (ftfont_list): Move misplaced #endif.
25324
253252008-02-01 Kenichi Handa <handa@m17n.org>
25326
25327 * ftfont.c (ftfont_list): Pay attention to the case that
25328 FC_CAPABILITY is not defined.
25329
253302008-02-01 Kenichi Handa <handa@m17n.org>
25331
25332 * xftfont.c (xftfont_open): Set charset related members to -1.
25333
25334 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
25335 QCname.
25336 (ftfont_open): Set charset related members to -1.
25337
25338 * fontset.c (Votf_script_alist): New variable.
25339 (syms_of_fontset): Initialize it.
25340 (fontset_font): Delete unused variable.
25341
25342 * fontset.h (Votf_script_alist): Extern it.
25343
25344 * font.c (font_find_for_lface): Optimize code.
25345
25346 * font.h (font_close_object, font_merge_old_spec): Extern them.
25347
253482008-02-01 Kenichi Handa <handa@m17n.org>
25349
25350 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
25351 (syms_of_font): Initialize them.
25352 (font_pixel_size): Allow float value in dpi.
25353 (font_prop_validate_type): Delete.
25354 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
25355 Change caller.
25356 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
25357 (font_prop_validate_extra): Delete.
25358 (font_prop_validate_spacing): New function.
25359 (font_property_table): Add elements for all known properties.
bba3e508
SM
25360 (get_font_prop_index): Rename from check_font_prop_name.
25361 New argument FROM. Change caller.
aac0c6e3
MR
25362 (font_prop_validate): Validate all known properties.
25363 (font_put_extra): Delete argument force. Change caller.
25364 (font_expand_wildcards): Make it static. Fix the way of shrinking
25365 the possible range.
25366 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
25367 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
25368 Change caller.
25369 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
25370 (font_parse_fcname): Delete argument merge. Fix parsing of point
25371 size. Don't validate properties values here. Change caller.
25372 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
25373 (font_open_by_name): Delete unused variable.
25374 (Ffont_spec): Likewise. Validate property values.
25375 (Ffont_match_p): New function.
25376
25377 * font.h (QCscalable): Extern it.
25378 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
25379
25380 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
25381
25382 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
25383 (xfont_list_pattern): New function.
25384 (xfont_list): Use xfont_list_pattern.
25385
253862008-02-01 Kenichi Handa <handa@m17n.org>
25387
25388 * font.h (Flist_fonts): EXFUN it.
25389
253902008-02-01 Jason Rumney <jasonr@gnu.org>
25391
25392 * w32term.c (w32_initialize): Add back smoothing_type and
25393 smoothing_enabled definitions.
25394
253952008-02-01 Kenichi Handa <handa@m17n.org>
25396
25397 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
25398 s->face->font on determining underline position.
25399
254002008-02-01 Kenichi Handa <handa@m17n.org>
25401
25402 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
25403 (font_has_char): Accept font-object too.
25404 (font_find_for_lface): Try at first with a size specified in face.
25405
254062008-02-01 Kenichi Handa <handa@m17n.org>
25407
25408 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
25409 font_open_by_name.
25410
254112008-02-01 Kenichi Handa <handa@m17n.org>
25412
25413 * font.h (QCspacing, QCdpi): Extern them.
25414 (enum font_spacing): New enum.
25415 (FONT_PIXEL_SIZE_QUANTUM): New macro.
25416
25417 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
25418 (QCspacing, QCdpi): New variables.
25419 (syms_of_font): Initialize them.
25420 (font_pixel_size): New function.
25421 (font_put_extra): New function.
25422 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
25423 in FONT_EXTRA.
25424 (font_parse_fcname): Handle enumerated values (e.g. bold).
25425 Fix handling font size. Add QCname property that contains only
25426 unknown properties.
25427 (font_score): Change argument. Change caller. Pay attention to
25428 FONT_PIXEL_SIZE_QUANTUM.
25429 (font_sort_entites, font_list_entities, font_find_for_lface)
25430 (font_open_for_lface, font_open_by_name): Fix handling of font size.
25431 (Ffont_spec): Add QCname property that contains only unknown properties.
25432
bba3e508
SM
25433 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
25434 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
25435 listed font. Don't include scalable in pattern. Pay attention to
25436 FONT_PIXEL_SIZE_QUANTUM.
25437
254382008-02-01 Kenichi Handa <handa@m17n.org>
25439
25440 * font.c (font_parse_fcname): Fix parsing of point-size.
25441 (font_unparse_fcname): Produce symbolic names for style properties.
25442 (font_list_entities): Handle float size correctly.
25443 (font_open_by_name): Prefer `normal' property values if the name
25444 doesn't specify them.
25445
25446 * fontset.c (Finternal_char_font): Use font_get_name, not
25447 Ffont_xlfd_name.
25448
25449 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
25450 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
25451 pattern. Don't force scalable.
25452
25453 * xftfont.c (xftfont_open): For generating a name, start from
25454 96-byte buffer.
25455
254562008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25457
25458 * frame.h (x_new_fontset2): Fix prototype.
25459
254602008-02-01 Kenichi Handa <handa@m17n.org>
25461
25462 * font.h (struct font_driver): Delete member parse_name.
25463 (font_match_p, font_get_spec, font_parse_fcname)
25464 (font_unparse_fcname): Extern them.
25465 (font_get_name): Adjust prototype.
25466
25467 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
25468 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
25469 (font_expand_wildcards): Fix handling ENCODING field.
25470 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
25471 (font_parse_fcname): New function.
25472 (font_unparse_fcname): New function.
25473 (font_parse_name): New function.
25474 (font_match_p): New function.
25475 (font_get_name): Change return value to Lisp string.
25476 (font_get_spec): New function.
25477 (Qunspecified, Qignore_defface): Don't extern them.
25478 (font_find_for_lface): Assume that LFACE is fully specified.
25479 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
25480 object, use it for FACE.
25481 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
25482 driver->parse_name.
25483 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
25484
25485 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
25486 prototype.
25487
25488 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
25489 argument F. Don't call Fnew_fontset. Instead, directly call
25490 make_fontset.
25491
25492 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
25493
25494 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
25495 of x_new_fontset2.
25496
25497 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
25498 (Qsans__serif): New variables.
25499 (ftfont_generic_family_list): New variable.
25500 (syms_of_ftfont): Initialize the above variables.
25501 (ftfont_pattern_entity): Delete argument NAME.
25502 (ftfont_list_generic_family): New function.
25503 (ftfont_parse_name): Delete this function.
25504 (ftfont_list): Try generic family only when FcFontList found no font.
25505 (ftfont_list_family): Fix args to FcObjectSetBuild.
25506
25507 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
25508 object in attrs[LFACE_FONT_INDEX].
25509 (set_lface_from_font_name): Cancel all changes for font-backend.
25510 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
25511 function.
25512 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
25513 font object in QCfont attribute.
25514 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
25515 (realize_default_face) [USE_FONT_BACKEND]: Call
25516 set_lface_from_font_and_fontset.
25517
25518 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
25519 "fixed", and signal error here if no suitable font was found.
25520
25521 * xfont.c (xfont_parse_name): Delete this function.
25522
25523 * xftfont.c (xftfont_open): Change coding style of error
25524 handling. Generate fontconfig's fontname pattern.
25525
25526 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
25527 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
25528
25529 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
25530 Both args FONTSET and FONT_OBJECT must be existing ones.
25531
255322008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25533
25534 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
25535
255362008-02-01 Kenichi Handa <handa@m17n.org>
25537
25538 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
25539
25540 * font.h (struct font): Fix typo.
25541
25542 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
25543 XLFD_XXX_INDEX.
25544 (enum xlfd_field_mask): New enum.
ef1b0ba7 25545 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
25546 are followed by non-digits, return a symbol.
25547 (font_expand_wildcards): New function.
25548 (font_parse_xlfd): Fix wildcard handling.
25549 (Ffont_spec): If :name is specified, reflect the info in the other
25550 properties.
25551
25552 * ftfont.c (ftfont_pattern_entity): Fix typo.
25553 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
25554 locale.
25555
255562008-02-01 Kenichi Handa <handa@m17n.org>
25557
25558 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
25559
25560 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
25561 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
25562 registry doesn't specify encoding part.
25563 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
25564 (font_open_by_name): At first try parsing the name.
25565 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
25566 as Lisp symbols.
25567
25568 * fontset.c (reorder_font_vector): Pay attention to the case that
25569 the 3rd element of font_def is nil.
25570 (fontset_font): For the default fontset, append one more fontset
25571 elements for a script-based font specification. Don't add script
25572 attribute on finding a font.
25573 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
25574 font name.
25575 (fontset_ascii_font): If a font can't be opened, return nil.
25576
25577 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
25578 (ftfont_pattern_entity): New function.
25579 (ftfont_get_cache): Assume that freetype_font_cache is already
25580 initialized.
25581 (ftfont_list): Handle the case that a file is specified in font
25582 name. Use ftfont_pattern_entity to generate entities.
25583 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
25584 (syms_of_ftfont): Initialize freetype_font_cache.
25585
25586 * xftfont.c (xftfont_open): Make the font name fontconfig's
25587 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
25588 (xftfont_close): Free font->font.name if not NULL.
25589
25590 * xfont.c (xfont_list): If script is specified for a font, return
25591 null_vector.
25592 (xfont_list_family): Declare argument type.
25593
25594 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
25595 name, set LFACE_FONT (lface) to nil.
25596
25597 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
25598 return Qnil.
25599
256002008-02-01 Kenichi Handa <handa@m17n.org>
25601
25602 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
25603 (standard_args): Add "-enable-font-backend".
25604
256052008-02-01 Kenichi Handa <handa@m17n.org>
25606
25607 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
25608 (struct xftdraw_list, xftdraw_list): Delete them.
25609 (register_xftdraw, check_xftdraw): Delete them.
25610 (xftfont_prepare_face): Don't call register_xftdraw.
25611 (xftfont_done_face): Don't call check_xftdraw.
25612 (xftfont_draw): Get background color only when with_background is
25613 nonzero.
25614
25615 * xfont.c (xfont_encode_char): Fix calculation of char2b.
25616
256172008-02-01 Kenichi Handa <handa@m17n.org>
25618
25619 These changes are for the new font handling codes.
25620
25621 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
25622 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
25623 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
25624 (FONTSRC, FONTOBJ): New variables.
25625 (obj): Add $(FONTOBJ).
25626 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
25627 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
25628 @LIBOTF_LIBS@.
25629 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
25630 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
25631
25632 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
25633
25634 * character.h (Vscript_representative_chars): Extern it.
25635
25636 * character.c (Vscript_representative_chars): New variable.
25637 (syms_of_character): Declare it as a Lisp variable.
25638
25639 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25640 enable_font_backend is nonzero, accept the composition method
25641 COMPOSITION_WITH_GLYPH_STRING.
25642
25643 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25644 enumeration COMPOSITION_WITH_GLYPH_STRING.
25645
25646 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25647 members clip_x, clip_y, clip_width, and clip_height.
25648 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25649
25650 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25651 --enable-font-backend. Call syms_of_font.
25652
25653 * fns.c (assoc_no_quit): New function.
25654
25655 * fontset.h (FONT_INFO_FROM_FACE): New macro.
25656 (face_for_font, new_fontset_from_font)
25657 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25658
25659 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25660 (fontset_font, fontset_ascii, face_for_char)
25661 (make_fontset_for_ascii_face, Ffont_info)
25662 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25663 is nonzero, use font-backend mechanism.
25664 (find_font_encoding): Make it non-static.
25665 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25666 New functions.
25667
25668 * frame.h (struct frame): New members resx and resy.
25669 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25670 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25671
25672 * frame.c [USE_FONT_BACKEND]: Include "font.h".
25673 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25674
25675 * lisp.h (assoc_no_quit): Extern it.
25676
25677 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25678 Through out the file, use FONT_INFO_FROM_FACE instead of
25679 FONT_INFO_FROM_ID, use get_per_char_metric instead of
25680 rif->per_char_metric.
25681 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25682 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25683 (get_glyph_face_and_encoding, fill_composite_glyph_string)
25684 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25685 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25686 nonzero, use font-backend mechanism.
25687 (get_per_char_metric): New function.
25688
25689 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25690 (set_lface_from_font_name)
25691 (set_font_frame_param, free_realized_face)
25692 (prepare_face_for_display, clear_face_gcs)
25693 (Finternal_set_font_selection_order, realize_x_face)
25694 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25695 font-backend mechanism.
25696 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25697 (load_face_font) [USE_FONT_BACKEND]: Abort.
25698 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25699 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25700
25701 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25702 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25703 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
25704 nonzero, register all available font drivers.
25705 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
25706 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25707
25708 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25709 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25710 (x_set_glyph_string_clipping_exactly)
25711 (x_compute_glyph_string_overhangs)
25712 (x_draw_glyph_string_foreground)
25713 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25714 (x_free_frame_resources) [USE_FONT_BACKEND]: If
25715 enable_font_backend is nonzero, use font-backend mechanism.
25716 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25717
257182008-02-01 Kenichi Handa <handa@m17n.org>
25719
25720 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25721 system_eol_type.
25722 (syms_of_coding): Initialize system_eol_type.
25723
25724 * process.c (Fset_process_coding_system): Inherit system's eol
25725 format if necessary.
25726
257272008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25728
25729 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25730
257312008-02-01 Kenichi Handa <handa@m17n.org>
25732
25733 * coding.c (decode_eol): Pay attention to buffer relocation in
25734 del_range_2.
25735 (decode_coding): Call decode_eol before restoring undo_list.
25736
257372008-02-01 Kenichi Handa <handa@m17n.org>
25738
25739 * charset.c (Fdefine_charset_internal): Fix setting of
25740 emacs_mule_bytes.
25741
257422008-02-01 Kenichi Handa <handa@m17n.org>
25743
25744 * keyboard.c (read_char): Check if C is a character or not before
25745 looking up Vkeyboard_translate_table.
25746
257472008-02-01 Kenichi Handa <handa@m17n.org>
25748
bba3e508
SM
25749 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
25750 Fix condition to terminate the loop.
aac0c6e3
MR
25751
257522008-02-01 Kenichi Handa <handa@m17n.org>
25753
25754 * coding.c (produce_composition): Compare charbuf[i] instead of
25755 args[i] against 0.
25756 (Fterminal_coding_system): Use EQ to compare Lisp objects.
25757
257582008-02-01 Kenichi Handa <handa@m17n.org>
25759
25760 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25761 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25762 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25763 detect_coding.
25764 (emacs_mule_char): Handle old style (Emacs 20) component character
25765 of a composition.
25766 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25767 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25768 composition rule.
25769 (decode_coding_emacs_mule): Handle invalid bytes correctly.
25770
257712008-02-01 Kenichi Handa <handa@m17n.org>
25772
25773 * coding.c (encode_coding_ccl): Allocate destination dynamically
25774 when necessary.
25775
257762008-02-01 Kenichi Handa <handa@m17n.org>
25777
25778 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
25779 the loop. When quitted, show a proper error message.
25780
257812008-02-01 Kenichi Handa <handa@m17n.org>
25782
bba3e508
SM
25783 * xterm.c (x_set_glyph_string_clipping_exactly):
25784 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
25785
25786 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
25787 character sequence.
25788 (Fccl_execute_on_string): Use ASET, not XSET.
25789
257902008-02-01 Kenichi Handa <handa@m17n.org>
25791
25792 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
25793
257942008-02-01 Kenichi Handa <handa@m17n.org>
25795
25796 * coding.c (decode_coding): Fix the condition of terminating the
25797 decoding loop.
25798
257992008-02-01 Kenichi Handa <handa@m17n.org>
25800
25801 * data.c (Faset): On setting a character bigger than 255 in a
25802 unibyte string, signal an error instead of make the string multibyte.
25803
258042008-02-01 Kenichi Handa <handa@m17n.org>
25805
25806 * charset.c (map_charset_chars): Fix for ascii-compatible charset
25807 made by a mapping table.
25808
258092008-02-01 Kenichi Handa <handa@m17n.org>
25810
25811 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
25812 not.
25813 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
25814 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
25815
bba3e508
SM
25816 * xterm.c (x_draw_composite_glyph_string_foreground):
25817 Check s->face is NULL or not.
aac0c6e3
MR
25818
258192008-02-01 Kenichi Handa <handa@m17n.org>
25820
25821 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
25822 (x_draw_glyph_string): Fix drawing of right_overhang and
25823 left_overhang around/on cursor.
25824
25825 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
25826
258272008-02-01 Kenichi Handa <handa@m17n.org>
25828
25829 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
25830
258312008-02-01 Kenichi Handa <handa@m17n.org>
25832
25833 * coding.c (Fdefine_coding_system_internal)
25834 (Fdefine_coding_system_alias): Avoid a duplicated element in
25835 Vcoding_system_alist.
25836
258372008-02-01 Kenichi Handa <handa@m17n.org>
25838
25839 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
25840
25841 * coding.c (Qcoding_system_define_form): New variable.
25842 (syms_of_coding): Intern and staticpro it.
25843 (Fcoding_system_p): Check Qcoding_system_define_form.
25844 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
25845
25846 * coding.h (CODING_SYSTEM_P): If ID is not available, call
25847 Fcoding_system_p.
25848 (CHECK_CODING_SYSTEM): If ID is not available, call
25849 Fcheck_coding_system.
25850 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
25851 Try also Fcheck_coding_system.
25852
258532008-02-01 Kenichi Handa <handa@m17n.org>
25854
25855 * coding.c (code_conversion_restore): GCPRO arg.
25856
258572008-02-01 Kenichi Handa <handa@m17n.org>
25858
25859 * character.c (lisp_string_width): Check multibyteness of STRING.
25860
258612008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25862
25863 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
25864 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
25865 (decode_mac_font_name): Use decode_coding_c_string instead of
25866 decode_coding.
bba3e508
SM
25867 (x_load_font): Initialize fontp->fontset to -1.
25868 Set fontp->encoding_type.
aac0c6e3
MR
25869
258702008-02-01 Kenichi Handa <handa@m17n.org>
25871
25872 * search.c (search_buffer): Give up BM search on case-fold-search
25873 if one of a target character has a case-equivalence of different
3b59c351 25874 byte length even if that target character is an ASCII.
aac0c6e3
MR
25875 (simple_search): Fix calculation of byte length of matched text.
25876 (boyer_moore): Fix handling of case-equivalent multibyte characters.
25877
258782008-02-01 Kenichi Handa <handa@m17n.org>
25879
25880 * coding.c (decode_coding): Fix handling of invalid bytes.
25881
258822008-02-01 Kenichi Handa <handa@m17n.org>
25883
25884 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
25885 Unicode characters.
25886
258872008-02-01 Kenichi Handa <handa@m17n.org>
25888
25889 * coding.c (encode_coding_object): If a pre-write-conversion
25890 function makes a new buffer, kill it.
25891
258922008-02-01 Kenichi Handa <handa@m17n.org>
25893
25894 * coding.c (QCascii_compatible_p): New variable.
25895 (syms_of_coding): Initialize it.
25896 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
25897 calling string_char.
25898 (record_conversion_result): Add `default:' case.
25899 (coding_charset_list): Delete unused variable `coding_type'.
25900 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
25901 property in the plist of the coding system.
25902 (Fcoding_system_put): Check QCascii_compatible_p.
25903
259042008-02-01 Miles Bader <miles@gnu.org>
25905
25906 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
25907 removed calculation of frame `f', as it's now used.
25908
259092008-02-01 Kenichi Handa <handa@m17n.org>
25910
25911 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
25912 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
25913 (UNIDATA): New variable.
25914 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
25915 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
25916 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
25917
259182008-02-01 Kenichi Handa <handa@m17n.org>
25919
25920 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
25921 (admindir): New variable.
25922 ($(lispsource)international/charprop.el): New target.
25923
259242008-02-01 Miles Bader <miles@gnu.org>
25925
25926 * character.c (chars-in-region): Remove obsolete function.
25927 (syms_of_character): Remove its initialization.
25928
259292008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
25930
25931 * w32select.c (validate_coding_system)
25932 (setup_windows_coding_system): New functions.
bba3e508
SM
25933 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
25934 Use setup_windows_coding_system.
25935 (setup_config, Fw32_get_clipboard_data):
25936 Use validate_coding_system.
aac0c6e3
MR
25937 (Fx_selection_exists): Move call to setup_config to a place
25938 where signals are allowed.
25939
25940 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
25941 (Fcheck_coding_system): Add declarations.
25942
259432008-02-01 Kenichi Handa <handa@m17n.org>
25944
25945 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
25946
259472008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25948
25949 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
25950 string as the second argument for x_new_fontset.
25951
259522008-02-01 Kenichi Handa <handa@m17n.org>
25953
25954 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
25955 (encode_coding_object): Use safe_call instead of call2.
25956
259572008-02-01 Kenichi Handa <handa@m17n.org>
25958
25959 * fontset.c (Fset_fontset_font): Check family element of a given vector.
25960
25961 * Makefile.in (lisp): Include charprop.el.
25962
259632008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25964
25965 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
25966 Not sure if it's unnecessary.
25967
259682008-02-01 Steven Tamm <steventamm@mac.com>
25969
25970 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
25971 some possibly unnecessary fontset checking code that crashed
25972 when creating a new frame.
25973
259742008-02-01 Kenichi Handa <handa@m17n.org>
25975
25976 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
25977 lookup_face.
25978
25979 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
25980
25981 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
25982
259832008-02-01 Kenichi Handa <handa@m17n.org>
25984
25985 * coding.c: Cancel the change done in HEAD on 2008-02-01.
25986 (coding_charset_list): New function.
25987
25988 * coding.h (coding_charset_list): Extern it.
25989
259902008-02-01 Kenichi Handa <handa@m17n.org>
25991
25992 * fontset.c (Fset_fontset_font): Call find_font_encoding with
25993 concatenation of family and registry.
25994
259952008-02-01 Kenichi Handa <handa@m17n.org>
25996
25997 * character.h (BYTE8_STRING): Fix typo.
25998
25999 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
26000 string to multibyte (sync to HEAD).
26001
26002 * casefiddle.c (casify_region): Handle changes in byte-length
26003 using replace_range_2 (sync to HEAD).
26004
260052008-02-01 Andreas Schwab <schwab@suse.de>
26006
26007 * chartab.c (map_char_table): GCPRO table and arg.
26008
260092008-02-01 Kenichi Handa <handa@m17n.org>
26010
26011 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
26012 already at limit.
26013
260142008-02-01 Kenichi Handa <handa@m17n.org>
26015
26016 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
26017 instead of fast_c_string_match_ignore_case.
bba3e508
SM
26018 (find_font_encoding): Change argument to Lisp_Object.
26019 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
26020 fast_c_string_match_ignore_case. Change caller.
26021
260222008-02-01 Kenichi Handa <handa@m17n.org>
26023
26024 * xdisp.c (get_next_display_element): In unibyte case, decide to
26025 display in octal form by checking a character by
26026 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
26027
26028 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
26029
26030 * character.c (unibyte_has_multibyte_table): New variable.
26031
26032 * character.h (unibyte_has_multibyte_table): Extern it.
26033 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
26034
260352008-02-01 Kenichi Handa <handa@m17n.org>
26036
26037 * coding.c (encode_coding_iso_2022): Fix handling of charset
26038 annotation.
26039
260402008-02-01 Kenichi Handa <handa@m17n.org>
26041
26042 * coding.c (setup_coding_system): If coding_system is nil, use
26043 Qundecided.
26044 (Fterminal_coding_system): Return nil if terminal coding system is
26045 `undecided'.
bba3e508
SM
26046 (syms_of_coding): Define coding-system `undecided' here.
26047 Setup terminal_coding as `undecided'.
aac0c6e3
MR
26048
260492008-02-01 Kenichi Handa <handa@m17n.org>
26050
bba3e508
SM
26051 * xdisp.c (message_dolog, set_message_1):
26052 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
26053
26054 * lread.c (read1): Fix reading of a char-table.
26055
26056 * print.c (print_object): Include sub char-table in circularities
26057 detection.
26058
260592008-02-01 Kenichi Handa <handa@m17n.org>
26060
26061 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
26062 Append the found sequences in car of ARGS instead of prepending.
26063
260642008-02-01 Kenichi Handa <handa@m17n.org>
26065
26066 * fileio.c (report_file_error): Make a unibyte string from
26067 strerror (errorno).
26068 (Fsubstitute_in_file_name): Fix the arg to
26069 unibyte_char_to_multibyte. It is evaluated twice.
26070
260712008-02-01 Kenichi Handa <handa@m17n.org>
26072
26073 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
26074
260752008-02-01 Kenichi Handa <handa@m17n.org>
26076
26077 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
26078 BOM is not found.
26079 (detect_coding, detect_coding_system): Optimization for ISO-2022
26080 when no 8-bit data is found.
26081
260822008-02-01 Jason Rumney <jasonr@gnu.org>
26083
26084 * w32fns.c (x_to_w32_font): Update to use new coding struct.
26085
260862008-02-01 Kenichi Handa <handa@m17n.org>
26087
26088 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
26089 CHARS.
26090
260912008-02-01 Steven Tamm <steventamm@mac.com>
26092
26093 * macterm.c (mac_encode_char): Add charset argument and update
26094 to use encoding_type.
26095 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
26096 switch to pure fontset.
26097 (decode_mac_font_name): Temporarily remove decoding.
26098 (x_font_name_to_mac_font_name): Temporarily remove encoding.
26099 (x_load_font): Temporarily remove encoding.
26100
261012008-02-01 Kenichi Handa <handa@m17n.org>
26102
26103 * xfaces.c (Fface_font): If frame is not on a window system,
26104 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
26105 refer to face->font.
26106 (split_font_name_into_vector, build_font_name_from_vector)
26107 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
26108 when HAVE_WINDOW_SYSTEM is defined.
26109
261102008-02-01 Kenichi Handa <handa@m17n.org>
26111
26112 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
26113 (x_produce_glyphs): Fix setting of members of cmp in case
26114 cmp->glyph_len is zero.
26115
26116 * fontset.c (Fset_fontset_font): Fix docstring.
26117 (Ffontset_info): Make it backward compatible. New arg ALL.
26118
261192008-02-01 Kim F. Storm <storm@cua.dk>
26120
26121 * process.c (read_process_output): Grow decoding_buf when needed;
26122 this could cause a crash in allocate_string and compact_small_strings.
26123
261242008-02-01 Kenichi Handa <handa@m17n.org>
26125
26126 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
26127
261282008-02-01 Kenichi Handa <handa@m17n.org>
26129
26130 * coding.c (setup_coding_system): Set coding->common_flags
26131 correctly for raw-text.
26132 (consume_chars): On encoding unibyte text by raw-text, don't check
26133 multibyte form.
26134 (encode_coding): On encoding by raw-text, never use translation tables.
26135
26136 * fileio.c (e_write): Short cut for the case of no encoding.
26137
261382008-02-01 Kenichi Handa <handa@m17n.org>
26139
26140 * coding.c (detect_coding, detect_coding_system): Delete unused
26141 variables.
26142
261432008-02-01 Kenichi Handa <handa@m17n.org>
26144
26145 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
26146 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
26147
261482008-02-01 Kenichi Handa <handa@m17n.org>
26149
bba3e508
SM
26150 * coding.c (Ffind_coding_systems_region_internal):
26151 Include raw-text and no-conversion in the result.
aac0c6e3
MR
26152
261532008-02-01 Kenichi Handa <handa@m17n.org>
26154
26155 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
26156 (load_font_get_repertory): Delete unnecessary check of ENCODING of
26157 FONT_DEF.
26158 (font_def_arg, add_arg, from_arg, to_arg): New args.
26159 (set_fontset_font): Change argument.
26160 (Fset_fontset_font): Fix for the case that TARGET is a script
26161 name and charset name.
26162 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
26163
261642008-02-01 Kenichi Handa <handa@m17n.org>
26165
26166 * fontset.c (fontset_font): Rename from fontset_face. Change return
26167 value.
26168 (face_suitable_for_char_p, face_for_char): Adjust for the change
26169 of fontset_font.
26170 (make_fontset_for_ascii_face): Fix setting of the fontset element
26171 for ASCII.
26172 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
26173 to get a font name.
26174 (Ffontset_info): Adjust for the change of fontset_font.
26175
26176 * coding.c (emacs_mule_char): Check invalid code more rigidly.
26177
26178 * character.h (LEADING_CODE_LATIN_1_MIN)
26179 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
26180
261812008-02-01 Kenichi Handa <handa@m17n.org>
26182
26183 * editfns.c (check_translation): New function.
26184 (Ftranslate_region_internal): Handle M:N mapping.
26185
261862008-02-01 Kenichi Handa <handa@m17n.org>
26187
26188 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
26189
261902008-02-01 Kenichi Handa <handa@m17n.org>
26191
26192 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
26193 goto invalid_code.
26194 (decode_coding_iso_2022): Fix handling of invalid designation.
26195
26196 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
26197 after calling code_conversion_save.
26198
261992008-02-01 Kenichi Handa <handa@m17n.org>
26200
26201 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
26202
26203 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
26204
26205 * fontset.c: Include "intervals.h".
26206 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
26207 (free_face_fontset, new_fontset_from_font_name):
26208 Fix Lisp_Object/int mixup.
aac0c6e3
MR
26209
26210 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
26211
26212 * coding.c: Add many prototypes for static functions.
26213 (get_translation_table): Allow max_lookup to be NULL.
26214 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
26215 (Funencodable_char_position, Fcheck_coding_systems_region):
26216 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
26217
262182008-02-01 Kenichi Handa <handa@m17n.org>
26219
26220 * coding.c (get_translation_table): Declare it as Lisp_Object.
26221 (LOOKUP_TRANSLATION_TABLE): New macro.
26222 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
26223 instead of CHAR_TABLE_REF.
26224
262252008-02-01 Kenichi Handa <handa@m17n.org>
26226
26227 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
26228 annotation data format.
26229 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
26230 Change arguments FROM and TO to single argument NCHARS. Change caller.
26231 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
26232 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26233 (decode_coding_ccl, decode_coding_charset): Pay attention to
26234 coding->charbuf_used.
26235 (get_translation): New function.
26236 (produce_chars): New arguments translation_table and last_block.
26237 Translate characters here. Return number of carryover chars.
26238 Change caller.
26239 (produce_composition): New argument pos. Change caller.
26240 Adjust for the change of annotation data format.
26241 (produce_charset, produce_annotation): Likewise.
26242 (decode_coding, encode_coding): Don't call translate_chars.
26243 (consume_chars): New arg translation_table. Change caller.
26244 (translate_chars): Delete.
26245 (syms_of_coding): Make translation-table's number of extra slots 2.
26246
262472008-02-01 Kenichi Handa <handa@m17n.org>
26248
26249 * search.c (simple_search): Fix setting this_pos_byte in backward
26250 search.
26251
26252 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
26253 byte sequence.
26254 (detect_coding_ccl): Fix setting of the variable valids.
26255
262562008-02-01 Kenichi Handa <handa@m17n.org>
26257
26258 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
26259
26260 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
26261
26262 * editfns.c (Ftranslate_region_internal): Rename from
26263 Ftranslate_region. Accept a char-table in TABLE.
26264 (syms_of_editfns): Defsubr Stranslate_region_internal.
26265
26266 * xfaces.c (set_lface_from_font_name): If a font is specified for
26267 a frame, generate a fontset from the font.
26268 (build_scalable_font_name): If the scalable font is requested for
26269 a specific size, don't change that size.
26270 (try_font_list): Try a scalable font also in the case that a
26271 pattern string is specified.
26272
262732008-02-01 Kenichi Handa <handa@m17n.org>
26274
26275 * xfaces.c (Fface_font): New optional arg CHARACTER.
26276
262772008-02-01 Kenichi Handa <handa@m17n.org>
26278
26279 * charset.h (CHARSET_OFFSET): New macro.
26280
262812008-02-01 Kenichi Handa <handa@m17n.org>
26282
26283 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
26284
26285 * fontset.c (fontset_face): Handle the case that repertory is a
26286 char-table.
26287 (find_font_encoding): Return nil for unknown encoding.
26288 (Fset_fontset_font): Ignore a font of unknown encoding.
26289
262902008-02-01 Kenichi Handa <handa@m17n.org>
26291
26292 * keymap.c (describe_vector): Handle default value of a char table.
26293
26294 * fontset.c (fontset_face): Handle fallback fonts correctly.
26295 (Ffontset_info): Return infomation about fallback fonts.
26296
262972008-02-01 Kenichi Handa <handa@m17n.org>
26298
26299 * fontset.c (FONTSET_DEFAULT): New macro.
26300 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
26301 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
26302 the case that it is nil.
26303 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
26304 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
26305
26306 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
26307 subset or superset.
26308
263092008-02-01 Kenichi Handa <handa@m17n.org>
26310
26311 * emacs.c (main): Call init_charset after syms_of_XXX.
26312
26313 * charset.c (Vcharset_map_directory): Delete.
26314 (Vcharset_map_path): New variable.
26315 (load_charset_map_from_file): Use Vcharset_map_path instead.
26316 (init_charset): Initialize Vcharset_map_path.
26317 (syms_of_charset): Delete declaration of "charset-map-directory",
26318 add declaration of "charset-map-path".
26319
263202008-02-01 Kenichi Handa <handa@m17n.org>
26321
26322 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
26323 ASCII only string.
26324
26325 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
26326
26327 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
26328 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
26329
263302008-02-01 Kenichi Handa <handa@m17n.org>
26331
26332 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
26333
26334 * coding.c (QCmnemonic, QCdefalut_char)
26335 (QCdecode_translation_table, QCencode_translation_table)
26336 (QCpost_read_conversion, QCpre_write_conversion): New variables.
26337 (get_translation_table): Return a list of translation tables if
26338 necessary.
26339 (decode_coding): Call get_translation_table with ENCODEP 0.
26340 (char_encodable_p): If translation_table is non-nil, always call
26341 translate_char.
26342 (Fdefine_coding_system_internal): Accept list of translation
26343 tables as :encode-translation-table and :decode-translation-table.
26344 (Fcoding_system_put): New function.
bba3e508
SM
26345 (syms_of_coding): Declare new symbols.
26346 Defsubr Scoding_system_put.
aac0c6e3
MR
26347 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
26348 typically JISX0212.
26349
26350 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
26351 when the charset is superset type.
26352
26353 * character.c (translate_char): Accept list of translation tables.
26354
263552008-02-01 Kenichi Handa <handa@m17n.org>
26356
26357 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
26358 (CODING_ATTR_TRANS_TBL): New macro.
26359
26360 * coding.c (get_translation_table): New function.
26361 (translate_chars): Fix the bug of skipping annotation data.
26362 (decode_coding, encode_coding): Utilize get_translation_table.
26363 (char_encodable_p, Funencodable_char_position): Translate char if
26364 necessary.
26365 (Ffind_coding_systems_region_internal)
26366 (Fcheck_coding_systems_region): Setup translation table for encode
26367 in a coding system attribute vector in advance.
26368 (Fdefine_coding_system_internal): Allow a symbol as translation
26369 table. For shift-jis type coding system, allow 4th charset.
26370
263712008-02-01 Kenichi Handa <handa@m17n.org>
26372
26373 * coding.c (decode_coding_sjis): Check the first byte rigidly.
26374
26375 * xdisp.c (get_next_display_element): Pass -1 as POS to
26376 FACE_FOR_CHAR if displaying a C-string.
26377
263782008-02-01 Kenichi Handa <handa@m17n.org>
26379
26380 * composite.c (get_composition_id): Handle xoff and yoff in a
26381 composition rule.
26382
26383 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
26384 (struct composition): New member lbearing and rbearing.
26385
26386 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
26387 (x_get_glyph_overhangs): Handle a composition glyph.
26388 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
26389
26390 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
26391 composition glyph.
26392
263932008-02-01 Kenichi Handa <handa@m17n.org>
26394
26395 * print.c: Include charset.h.
26396 (Vprint_charset_text_property): New variable.
26397 (Qdefault): Extern it.
26398 (PRINT_STRING_NON_CHARSET_FOUND)
26399 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
26400 (print_check_string_result): New variable.
26401 (print_check_string_charset_prop): New function.
26402 (print_prune_charset_plist): New variable.
26403 (print_prune_string_charset): New function.
26404 (print_object): Call print_prune_string_charset if
26405 Vprint_charset_text_property is not t.
26406 (print_interval): Print nothing if interval->plist is nil.
26407 (syms_of_print): Declare Vprint_charset_text_property as a lisp
26408 variable. Init and staticpro print_prune_charset_plist.
26409
264102008-02-01 Kenichi Handa <handa@m17n.org>
26411
26412 * fontset.c (new_fontset_from_font_name): Use the specified font
26413 for all characters in the new fontset.
26414
26415 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26416 OBJECT args.
26417
26418 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
26419 OBJECT args for composition too.
26420
26421 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26422 OBJECT args.
26423
264242008-02-01 Kenichi Handa <handa@m17n.org>
26425
26426 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
26427
26428 * fontset.c (reorder_font_vector): Adjust for the change of
26429 FONT_DEF format.
26430 (fontset_face): New arg id. Change caller.
26431 (face_for_char): New args pos and object.
26432 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
26433 (fs_query_fontset): Check NAME by Fassoc too.
26434 (Fset_fontset_font): Allow non-XLFD font name.
26435 (Ffontset_info): Adjust for the change of FONT_DEF format.
26436
26437 * fontset.h (face_for_char): Adjust prototype.
26438
26439 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
26440 (append_space, extend_face_to_end_of_line)
26441 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
26442 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
26443
26444 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
26445 POS and OBJECT args.
26446
26447 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
26448 POS and OBJECT args.
26449
264502008-02-01 Jason Rumney <jasonr@gnu.org>
26451
26452 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
26453 of GlobalAlloc'ed memory.
26454
264552008-02-01 Kenichi Handa <handa@m17n.org>
26456
26457 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
26458
26459 * charset.h (charset_table_used): Delete extern.
26460
26461 * charset.c (charset_table_used): Make it static.
26462 (map_charset_chars): Fix args to c_function with.
26463
26464 * chartab.c (map_sub_char_table_for_charset): Fix args to
26465 c_function with.
26466
bba3e508
SM
26467 * coding.h (enum coding_result_code):
26468 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
26469
26470 * coding.c (Qinsufficient_source, Qinconsistent_eol)
26471 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
26472 (Vlast_code_conversion_error): New variables.
26473 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
26474 (ONE_MORE_BYTE): Record error if any instead of signaling an
26475 error. If non-ASCII multibyte char is found, return the negative
26476 value of the code. All callers changed to check it.
26477 (ONE_MORE_BYTE_NO_CHECK): Likewise.
26478 (record_conversion_result): New function. Change all codes setting
26479 coding->result to call this function.
26480 (detect_coding_utf_8, decode_coding_utf_8)
26481 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
26482 Don't use the local variable incomplete.
26483 (emacs_mule_char): Change the second arg to `const'.
26484 (decode_coding): Fix of flushing out unprocessed data.
26485 (make_conversion_work_buffer): Fix making of a work buffer.
26486 (decode_coding_object): Return coding->dst_object.
26487
26488 * fontset.c (set_fontset_font): Fix args.
26489
26490 * lisp.h (CHARACTERBITS): Define as 22.
26491
26492 * process.c (send_process): Be sure to set coding->src_multibyte.
26493
26494 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
26495
264962008-02-01 Kenichi Handa <handa@m17n.org>
26497
26498 * xdisp.c (handle_auto_composed_prop): Give limit to
26499 Fnext_single_char_property_change.
26500
265012008-02-01 Kenichi Handa <handa@m17n.org>
26502
26503 * composite.c (syms_of_composite): Don't make the composition hash
26504 table weak.
26505
26506 * fontset.c (Fset_fontset_font): Fix docstring.
26507
26508 * lisp.h (detect_coding_system): Adjust prototype.
26509
26510 * fileio.c (kill_workbuf_unwind): Delete this function.
26511 (Finsert_file_contents): Adjust the call of detect_coding_system.
26512 Get conversion_buffer by code_conversion_save. Use the macro
26513 CODING_MAY_REQUIRE_DECODING. After decoding, update
26514 coding_system.
26515
26516 * coding.h (make_conversion_work_buffer): Delete extern.
26517 (code_conversion_save): Extern it.
26518
26519 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
26520 (CODING_GET_INFO): Delete argument eol_type. Change callers.
26521 (decode_coding_utf_8): Don't do eol converion.
26522 (detect_coding_utf_16): Check coding->src_chars, not
26523 coding->src_bytes. Add heuristics for those that have no signature.
26524 (decode_coding_emacs_mule, decode_coding_iso_2022)
26525 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26526 Don't do eol converion.
26527 (adjust_coding_eol_type): Return a new coding system.
26528 (detect_coding): Don't detect eol. Fix for utf-16 detection.
26529 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
26530 each change.
26531 (decode_coding): Pay attention to undo_list. Do eol conversion for
26532 all types of coding-systems (if necessary).
26533 (Vcode_conversion_work_buf_list): Delete it.
26534 (Vcode_conversion_reused_workbuf): Rename from
26535 Vcode_conversion_reused_work_buf.
26536 (Vcode_conversion_workbuf_name): New variable.
26537 (reused_workbuf_in_use): New variable.
26538 (make_conversion_work_buffer): Delete the arg DEPTH.
26539 (code_conversion_restore): Change argument to cons.
26540 (code_conversion_save): Delete the argument BUFFER. Change callers.
26541 (detect_coding_system): New argument src_chars. Change callers.
26542 Fix for utf-16 detection.
26543 (init_coding_once): Don't use ISO_carriage_return.
26544 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
26545 reused_workbuf_in_use.
26546
265472008-02-01 Kenichi Handa <handa@m17n.org>
26548
26549 * keymap.c (store_in_keymap): Pay attention to the case that idx
26550 is a cons specifying a character range.
26551
265522008-02-01 Kenichi Handa <handa@m17n.org>
26553
26554 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
26555 HANDLED_RECOMPUTE_PROPS.
26556
26557 * coding.c (Fdefine_coding_system_internal): Fix checking of
26558 ascii compatibility.
26559
265602008-02-01 Kenichi Handa <handa@m17n.org>
26561
26562 * charset.c (find_charsets_in_text): Delete unused locale variable.
26563 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
26564
26565 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
26566 Resync charset_list to Vemacs_mule_charset_list.
26567
26568 * keymap.c (store_in_keymap): Pay attention to the case that idx
26569 is a cons specifying a character range.
26570
265712008-02-01 Kenichi Handa <handa@m17n.org>
26572
26573 * composite.c (update_compositions): Bind inhibit-read-only, etc
26574 to t before calling remove-list-of-text-properties.
26575
26576 * print.c (print_object): Always print ASCII chars as is.
26577
265782008-02-01 Kenichi Handa <handa@m17n.org>
26579
26580 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
26581
26582 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
26583 is a char table.
26584
265852008-02-01 Kenichi Handa <handa@m17n.org>
26586
26587 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
26588
265892008-02-01 Kenichi Handa <handa@m17n.org>
26590
26591 * xfaces.c (set_lface_from_font_name): Fix for the case that
26592 FONTNAME is not fontset name.
26593
265942008-02-01 Kenichi Handa <handa@m17n.org>
26595
26596 * fns.c (base64_encode_1): Fix previous change.
26597
265982008-02-01 Kenichi Handa <handa@m17n.org>
26599
26600 * fontset.c (set_fontset_font): New function.
26601 (Fset_fontset_font): If a font is specified for a charset, use
26602 map_charset_chars to store the font spec in a fontset.
26603
266042008-02-01 Kenichi Handa <handa@m17n.org>
26605
26606 * fontset.c (fontset_face): Create a fallback fontset on demand.
26607 (make_fontset): Don't create a fallback fontset here.
26608 (free_face_fontset): Free a fallback fontset (if any) too.
26609 (n_auto_fontsets): Delete this variable.
26610 (auto_fontset_alist): New variable.
26611 (new_fontset_from_font_name): Check auto_fontset_alist.
26612 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
26613 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
26614 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
26615 Defsubr Sfontset_list_all.
26616
266172008-02-01 Kenichi Handa <handa@m17n.org>
26618
26619 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
26620
266212008-02-01 Kenichi Handa <handa@m17n.org>
26622
26623 * fontset.c (Fnew_fontset): Check NAME more rigidly.
26624
266252008-02-01 Kenichi Handa <handa@m17n.org>
26626
26627 * editfns.c (Fgoto_char): Fix docstring.
26628
266292008-02-01 Kenichi Handa <handa@m17n.org>
26630
26631 * insdel.c (insert_from_gap): Adjust intervals correctly.
26632
266332008-02-01 Jason Rumney <jasonr@gnu.org>
26634
26635 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26636 (pfnGetFontUnicodeRanges): New dynamically loaded function.
26637 (w32_initialize): Try to load it.
26638 (x_get_font_repertory): Use it if available.
26639 (w32_encode_char): Add shortcut for unicode output.
26640
26641 * w32fns.c (w32_load_system_font): Default charset to -1.
26642 (x_to_w32_charset): Match all fonts for unicode.
26643 (w32_to_x_charset): New parameter matching. Don't return partial
26644 or wildcard charsets.
26645 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26646 (w32_codepage_for_font): Return CP_UNICODE for unicode.
26647 (w32_to_x_font): Match charset to real charset.
26648 (enum_font_cb2): Always list unicode versions.
26649
26650 * makefile.w32-in (temacs): Increase EMHEAP.
26651
266522008-02-01 Jason Rumney <jasonr@gnu.org>
26653
26654 * w32term.c (w32_encode_char): New charset parameter.
26655 font_info.encoding becomes encoding_type.
26656 (x_get_font_repertory): New function. Warning: stub only!
26657 (x_new_font): Return quickly if font already set.
26658 (x_new_fontset): fontsetname parameter is Lisp_Object.
26659 Use new fs_query_fontset. Try new_fontset_from_font_name.
26660 Use fontset_name for return value.
26661
26662 * w32term.h: Declare x_get_font_repertory.
26663
26664 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26665 place of find_charset_in_text. Use encode_coding_object in place
26666 of encode_coding.
26667 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26668 decode_coding.
26669
26670 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26671 of x_new_fontset.
26672 (w32_load_system_font): Initialize charset as unicode.
26673 font_info.encoding becomes encoding_type.
26674 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26675 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26676 (syms_of_w32fns): Set get_font_repertory_func.
26677
26678 * w32console.c: Include character.h. Use terminal_encode_buffer
26679 from term.c.
bba3e508
SM
26680 (write_glyphs): Use new version of encode_terminal_code.
26681 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
26682
26683 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26684 encoding becomes encoding_type.
26685
26686 * term.c (terminal_encode_buffer): Make externally visible.
26687
26688 * makefile.w32-in: Add character.h dependancies.
26689 (character.o, chartab.o): New targets.
26690
266912008-02-01 Kenichi Handa <handa@m17n.org>
26692
26693 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26694 CODING_ID_EOL_TYPE.
26695
266962008-02-01 Andreas Schwab <schwab@suse.de>
26697
26698 * coding.c (produce_chars): Revert last change.
26699
267002008-02-01 Kenichi Handa <handa@m17n.org>
26701
26702 * charset.h (charset_unicode): Extern it.
26703
26704 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
26705 (find_charsets_in_text): Change format of the arc CHARSETS.
26706 New arg MULTIBYTE.
aac0c6e3
MR
26707 (Ffind_charset_region, Ffind_charset_string): Adjust for the
26708 change of find_charsets_in_text.
26709 (Fsplit_char): Fix doc. Never return unknown.
26710
26711 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26712
bba3e508
SM
26713 * coding.c (Fdefine_coding_system_alias):
26714 Update Vcoding_system_list.
aac0c6e3
MR
26715
26716 * fontset.c (load_font_get_repertory): Pay attention to the case
26717 that ENCODING of a font is specified by a char-table.
26718
26719 * xterm.c (x_get_font_repertory): Handle the case that the
26720 encoding of font is other than Unicode.
26721
267222008-02-01 Kenichi Handa <handa@m17n.org>
26723
bba3e508
SM
26724 * term.c (encode_terminal_code): Don't handle glyph-table.
26725 Check if a character is encodable by the terminal coding system.
26726 If not, produces proper number of `?'s. Update
aac0c6e3
MR
26727 terminal_encode_buffer and terminal_encode_buf_size if necessary.
26728 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26729
267302008-02-01 Kenichi Handa <handa@m17n.org>
26731
bba3e508
SM
26732 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26733 New variables.
aac0c6e3
MR
26734 (encode_terminal_code): Change argument. Encode multiple
26735 characters at once. Store the result of encoding in
26736 terminal_encode_buffer.
26737 (write_glyphs, insert_glyphs): Adjust for the change of
26738 encode_terminal_code.
26739 (term_init): Initialize terminal_encode_buffer and
26740 terminal_encode_buf_size.
26741
26742 * coding.c (consume_chars): If coding->src_object is nil, don't
26743 check annotation.
26744
267452008-02-01 Kenichi Handa <handa@m17n.org>
26746
26747 * character.c (char_string): Use ASCII_CHAR_P instead of
26748 SINGLE_BYTE_CHAR_P.
26749
267502008-02-01 Kenichi Handa <handa@m17n.org>
26751
26752 * xdisp.c (handle_auto_composed_prop): Check if the last
26753 characters of auto-composed region is newly composed with the
26754 following characters.
26755 (handle_composition_prop): Fix checking of point being inside
26756 composition.
26757
267582008-02-01 Kenichi Handa <handa@m17n.org>
26759
26760 * fns.c (concat): Don't change multibyteness of the result by
26761 concatenating an 8-bit character.
26762
26763 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
26764 multibyteness of the result when newelt is an 8-bit character.
26765
267662008-02-01 Dave Love <fx@gnu.org>
26767
26768 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26769 EMACS_INT.
26770
26771 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26772
26773 * xfaces.c (face_numeric_value): Declare dim size_t.
26774 (Finternal_lisp_face_equal_p): Remove unused f.
26775
26776 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26777 (MATRIX_ROW): Remove unused vars.
26778 (draw_glyphs, x_insert_glyphs, fast_find_position)
26779 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
26780 byte/char counts.
26781
26782 * regex.c (regex_compile): Remove unused var.
26783
26784 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26785
26786 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
26787 (Faccessible_keymaps, where_is_internal): Remove unused vars.
26788
26789 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
26790
26791 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
26792
26793 * fileio.c (Fwrite_region): Remove unused var.
26794
26795 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
26796 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
26797
26798 * composite.c (Fremove_list_of_text_properties): Declare.
26799
26800 * coding.c (inhibit_pre_post_conversion): Remove (unused).
26801 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
26802 (coding_inherit_eol_type): Remove unused attrs.
26803 (detect_coding): Cast arg of detect_eol.
26804
26805 * charset.c (syms_of_charset): Remove unused var p.
26806 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
26807 byte/char counts.
26808
26809 * casetab.c (set_case_table): Remove unused var.
26810
bba3e508
SM
26811 * window.c (Fdisplay_buffer, Fframe_selected_window):
26812 Remove unused vars.
aac0c6e3
MR
26813
268142008-02-01 Dave Love <fx@gnu.org>
26815
26816 * xterm.c (x_bitmap_mask): Declare.
26817
268182008-02-01 Dave Love <fx@gnu.org>
26819
26820 * xterm.c (x_term_init): Fix type error.
26821
26822 * lisp.h: Add Funibyte_char_to_multibyte.
26823
26824 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
26825 (Fset_coding_system_priority): Doc fix.
26826
26827 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
26828
26829 * indent.c (check_composition): Make start and end EMACS_INT.
26830
26831 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
26832
26833 * xdisp.c (handle_composition_prop, check_point_in_composition):
26834 Make buffer positions EMACS_INT.
26835
26836 * composite.c (find_composition, run_composition_function)
26837 (update_compositions, Ffind_composition_internal): Make buffer
26838 positions EMACS_INT.
26839
bba3e508
SM
26840 * composite.h (find_composition, update_compositions):
26841 Make position args EMACS_INT.
aac0c6e3
MR
26842
26843 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
26844
26845 * intervals.c (get_property_and_range):
26846 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
26847
26848 * unexalpha.c: Don't include varargs.h.
26849
268502008-02-01 Dave Love <fx@gnu.org>
26851
26852 * coding.h (ENCODE_UTF_8): New.
26853
26854 * Makefile.in (gtkutil.o): Depend on coding.h.
26855
26856 * coding.c (Fset_coding_system_priority): Doc fix.
26857
268582008-02-01 Kenichi Handa <handa@m17n.org>
26859
26860 * fileio.c (Finsert_file_contents): Call setup_coding_system in
26861 the case of auto saving.
26862
268632008-02-01 Andreas Schwab <schwab@suse.de>
26864
bba3e508
SM
26865 * chartab.c (map_char_table, map_char_table_for_charset):
26866 Protect `range' from GC.
aac0c6e3
MR
26867
268682008-02-01 Kenichi Handa <handa@m17n.org>
26869
26870 * coding.c (decode_coding_sjis): Check bytes more rigidly.
26871
268722008-02-01 Kenichi Handa <handa@m17n.org>
26873
26874 * fileio.c (choose_write_coding_system): Return a decided coding system.
26875 (Fwrite_region): Set Vlast_coding_system_used to the return value
26876 of choose_write_coding_system.
26877
268782008-02-01 Kenichi Handa <handa@m17n.org>
26879
26880 * charset.c (Fset_charset_priority): Pay attention to duplicated
26881 arguments.
26882
26883 * coding.c (QCcategory): New variable.
26884 (syms_of_coding): Defsym it. Set all elements of
26885 Vcoding_category_table and their symbol values.
26886 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
26887 coding-category-XXX, and coding-category-list.
26888 (Fdefine_coding_system_internal): Add category in the plist.
26889
268902008-02-01 Kenichi Handa <handa@m17n.org>
26891
26892 * callproc.c (Fcall_process): Handle carryover correctly.
26893
26894 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
26895 (raw_text_coding_system): Check NILP (coding_system).
26896 (coding_inherit_eol_type): Check NILP (coding_system) and
26897 NILP (parent).
26898 (consume_chars): Fix for the case of raw-text.
26899
26900 * process.c (read_process_output): Handle carryover correctly.
26901
269022008-02-01 Dave Love <fx@gnu.org>
26903
26904 * regex.c (re_search_2): Fix last change.
26905
269062008-02-01 Kenichi Handa <handa@m17n.org>
26907
26908 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
26909 target_multibyte. Even in a unibyte case, return a converted
26910 multibyte char.
26911 (GET_CHAR_AFTER): New macro.
26912 (PATFETCH): Translate via multibyte char.
26913 (HANDLE_UNIBYTE_RANGE): Delete this macro.
26914 (SETUP_MULTIBYTE_RANGE): New macro.
26915 (regex_compile): Setup compiled code so that its multibyteness
26916 matches that of a target. Fix the handling of "[X-YZ]" using
26917 SETUP_MULTIBYTE_RANGE.
26918 (analyse_first) <charset>: For filling fastmap for all multibyte
26919 characters, don't check by BASE_LEADING_CODE_P.
26920 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
26921 the same as RE_MULTIBYTE_P (bufp) now.
26922 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
26923 (TARGET_CHAR_AND_LENGTH): Delete this macro.
26924 (TRANSLATE_VIA_MULTIBYTE): New macro.
26925 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
26926 It is the same as RE_MULTIBYTE_P (bufp) now.
26927 <exactn>: Translate via multibyte.
bba3e508
SM
26928 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
26929 Don't translate it.
aac0c6e3
MR
26930 <charset, charset_not>: Fetch a character by
26931 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
26932 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
26933 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
26934 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
26935 by GET_CHAR_AFTER.
26936 (bcmp_translate): Likewise.
26937
26938 * search.c (compile_pattern): Check the member target_multibyte,
26939 not the member multibyte of buf.
26940
26941 * lread.c (read1): While reading a string, set force_singlebyte
26942 and force_multibyte correctly.
26943
26944 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
26945 up of unibyte_to_multibyte_table.
26946
269472008-02-01 Kenichi Handa <handa@m17n.org>
26948
26949 * coding.c (setup_coding_system): If coding has
26950 post-read-conversion or pre-write-conversion, set
26951 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
26952 respectively.
26953 (decode_coding_gap): Run post-read-conversion if any.
26954
26955 * fileio.c (Finsert_file_contents): Even if we read into a
26956 unibyte buffer, check if we must decode the result or not.
26957
269582008-02-01 Kenichi Handa <handa@m17n.org>
26959
26960 * coding.c (make_conversion_work_buffer): Change the work buffer
26961 name to the same one as that of Emacs 21.
26962
269632008-02-01 Kenichi Handa <handa@m17n.org>
26964
26965 * coding.h (make_conversion_work_buffer): Adjust prototype.
26966 (code_conversion_restore): Don't extern it.
26967
26968 * coding.c (detected_mask): Delete unused variable.
26969 (decode_coding_iso_2022): Pay attention to the byte sequence of
26970 CTEXT extended segment, and retain those bytes as is.
26971 (decode_coding_ccl): Delete unused variable `valids'.
26972 (setup_coding_system): Delete unused variable `category'.
26973 (consume_chars): Delete unused variable `category'. Make it work
26974 for non-multibyte case.
26975 (make_conversion_work_buffer): Change argument.
26976 (saved_coding): Delete unused variable.
26977 (code_conversion_restore): Don't check saved_coding->destination.
26978 (code_conversion_save): New function.
26979 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
26980 instead of record_unwind_protect.
26981 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
26982 (detect_coding_system): Delete unused variable `mask'.
26983 (Fdefine_coding_system_internal): Delete unused variable id.
26984
26985 * fileio.c (kill_workbuf_unwind): New function.
26986 (Finsert_file_contents): On replacing, call
26987 make_conversion_work_buffer with correct args, and call
26988 record_unwind_protect with the first arg kill_workbuf_unwind.
26989
26990 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
26991
269922008-02-01 Kenichi Handa <handa@m17n.org>
26993
26994 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
26995 (fontset_add): Fix for the case that TO is less than TO1.
26996 (Ffontset_info): Don't use fallback fontset on checking the
26997 default fontset.
26998 (dump_fontset): New function for debugging.
26999
27000 * coding.c (Fdefine_coding_system_internal): Fix for the case that
27001 coding_type is Qcharset.
27002
270032008-02-01 Kenichi Handa <handa@m17n.org>
27004
27005 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
27006 (map_char_table): Don't inherit the value from the parent on
27007 initializing VAL. Adjust for the above change.
27008
270092008-02-01 Kenichi Handa <handa@m17n.org>
27010
27011 * coding.c (Qsignature, Qendian): Delete these variables.
27012 (syms_of_coding): Don't initialize them.
27013 (CATEGORY_MASK_UTF_16_AUTO): New macro.
27014 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
27015 detect_info->found.
27016 (decode_coding_utf_16): Don't detect BOM here.
27017 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
27018 is NOT utf_16_without_bom.
27019 (setup_coding_system): For a coding system of type utf-16, check
27020 if the attribute :endian is Qbig or not (not nil or not), and set
27021 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
27022 (detect_coding): If coding type is utf-16 and BOM detection is
27023 required, detect it.
27024 (Fdefine_coding_system_internal): For a coding system of type
27025 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
27026
270272008-02-01 Kenichi Handa <handa@m17n.org>
27028
27029 * coding.c (coding_set_source): Fix for the case that the current
27030 buffer is different from coding->src_object.
27031 (decode_coding_object): Don't use the conversion work buffer if
27032 DST_OBJECT is a buffer.
27033
270342008-02-01 Dave Love <fx@gnu.org>
27035
27036 * lread.c (read_emacs_mule_char) [len==2]: Index
27037 emacs_mule_charset correctly.
27038
270392008-02-01 Dave Love <fx@gnu.org>
27040
27041 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
27042 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
27043 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
27044 treated specially.)
27045 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
27046 (detected_mask): Remove Big5 bits.
27047
270482008-02-01 Kenichi Handa <handa@m17n.org>
27049
27050 The following changes are to make the font rescaling facility
27051 compatible with Emacs 21.
27052
27053 * xfaces.c (Vface_font_rescale_alist): Rename from
27054 Vface_resizing_fonts.
27055 (struct font_name): Rename member resizing_ratio to rescale_ratio.
27056 (font_rescale_ratio): Rename from font_resizing_ratio.
27057 (split_font_name): Set font->rescale_ratio.
27058 (better_font_p): Pay attention to font->rescale_ratio.
27059 (build_scalable_font_name): Likewise. Change RESX, and RESY
27060 fields.
27061 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
27062
270632008-02-01 Kenichi Handa <handa@m17n.org>
27064
27065 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
27066 (Qutf_16_le): Remove these variables.
27067 (syms_of_coding): Don't DEFSYM them.
27068 (decode_coding_utf_16): Fix handling of BOM.
27069 (encode_coding_utf_16): Fix handling of BOM.
27070
270712008-02-01 Kenichi Handa <handa@m17n.org>
27072
27073 * fileio.c (Finsert_file_contents): On replacing, before decoding
27074 the file into the work buffer, set point of the work buffer to the end.
27075
270762008-02-01 Dave Love <fx@gnu.org>
27077
27078 * coding.c (Fcheck_coding_systems_region): Fix type errors.
27079
270802008-02-01 Dave Love <fx@gnu.org>
27081
27082 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27083 and fix C types.
27084
270852008-02-01 Kenichi Handa <handa@m17n.org>
27086
27087 * xdisp.c (SKIP_GLYPHS): New macro.
27088 (set_cursor_from_row): Pay attention to string display properties.
27089
27090 * category.c (copy_category_entry): Fix for the case that RANGE
27091 is an integer.
27092
27093 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
27094
27095 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
27096
270972008-02-01 Kenichi Handa <handa@m17n.org>
27098
27099 * charset.c (Fcharset_id_internal): New function.
27100 (syms_of_charset): Defsubr it.
27101
27102 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
27103 with the last arg charset_list acquired from coding.
27104 (Fdefine_coding_system_internal): For ccl-based coding system, fix
27105 the attribute coding_attr_ccl_valids.
27106
27107 * coding.h (enum define_coding_ccl_arg_index): Set the first
27108 member coding_arg_ccl_decoder to coding_arg_max.
27109
27110 * ccl.h (ccl_driver): Adjust prototype.
27111
27112 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
27113 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 27114 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
27115 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
27116 last arg Qnil.
27117
271182008-02-01 Kenichi Handa <handa@m17n.org>
27119
27120 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
27121 call encode_char.
27122
27123 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
27124
271252008-02-01 Dave Love <fx@gnu.org>
27126
27127 * composite.c (syms_of_composite): Make composition_hash_table weak.
27128
271292008-02-01 Kenichi Handa <handa@m17n.org>
27130
27131 * dispextern.h (check_face_attributes, generate_ascii_font_name)
27132 (font_name_registry): Don't extern them.
27133 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
27134
27135 * fontset.h (Qfontset): Don't extern it.
27136 (new_fontset_from_font_name): Extern it.
27137
27138 * fontset.c: Give 8 extra slots to fontset objects.
27139 (Qfontset_info): New variable.
27140 (syms_of_fontset): Defsym it.
27141 (FONTSET_FALLBACK): New macro.
27142 (fontset_face): Try also the default fontset.
27143 (make_fontset): Realize a fallback fontset from the default fontset.
27144 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
27145 using split_font_name_into_vector and build_font_name_from_vector.
27146 (Fset_fontset_font): Access the elements of font_spec by enum
27147 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
27148 name by using split_font_name_into_vector.
27149 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
27150 generate a proper font name from the fontset name.
27151 Update Vfontset_alias_alist.
aac0c6e3
MR
27152 (n_auto_fontsets): New variable.
27153 (new_fontset_from_font_name): New function.
27154 (Ffont_info): Store the information about fonts generated from the
27155 default fontset in the first extra slot of the returned char-table.
27156
27157 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
27158 (font_name_registry): Delete function.
27159 (split_font_name_into_vector): New function.
27160 (build_font_name_from_vector): New function.
27161 (font_list): The argument REGISTRY is now a list of registry names.
27162 (choose_face_font): If we are choosing an ASCII font, and ATTRS
27163 specifies an explicit font name, return the name as is. Make a
27164 list of registy names.
27165
27166 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
27167 of x_new_fontset.
27168 (Fx_create_frame): Don't call x_new_fontset here. Just use
27169 x_list_fonts to check the existence of fonts.
27170
27171 * xterm.h (x_new_fontset): Adjust prototype.
27172
27173 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
27174 string. Use new_fontset_from_font_name to create a fontset from a
27175 font name.
27176
271772008-02-01 Kenichi Handa <handa@m17n.org>
27178
27179 * syntax.c (Vfind_word_boundary_function_table): New name for
27180 Vnext_word_boundary_function_table.
27181 (find-word-boundary-function-table): New name for
27182 next-word-boundary-function-table.
27183
271842008-02-01 Dave Love <fx@gnu.org>
27185
27186 * Makefile.in: Fix some dependencies.
27187
27188 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
27189 set it to nil before returning.
27190
27191 * composite.c (update_compositions): Fix type error.
27192
27193 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
27194
271952008-02-01 Kenichi Handa <handa@m17n.org>
27196
27197 * xterm.c (x_new_font): Optimize for the case that the font is
27198 already set for the frame.
27199
272002008-02-01 Kenichi Handa <handa@m17n.org>
27201
27202 * chartab.c (char_table_ascii): Check if the char table contents
27203 is sub-char-table or not.
27204 (char_table_set, char_table_set_range): Fix argument to
27205 char_table_ascii.
27206
27207 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
27208 (detect_coding_utf_8, detect_coding_utf_16)
27209 (detect_coding_emacs_mule, detect_coding_iso_2022)
27210 (detect_coding_sjis, detect_coding_big5)
27211 (detect_coding_ccl, detect_coding_charset): Change argument MASK
27212 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
27213 sequence is valid in this coding system. Change callers.
27214 (MAX_ANNOTATION_LENGTH): New macro.
27215 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
27216 (ADD_COMPOSITION_DATA): Change argument. Change callers.
27217 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
27218 (ADD_CHARSET_DATA): New macro.
27219 (emacs_mule_char): New argument ID. Change callers.
27220 (decode_coding_emacs_mule, decode_coding_iso_2022)
27221 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
27222 Produce charset annotation data in coding->charbuf.
27223 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
27224 to charset annotation data in coding->charbuf.
27225 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
27226 coding->common_flags if the coding system is iso-2022 based and
27227 uses designation.
27228 (produce_composition): Adjust for the new annotation data format.
27229 (produce_charset): New function.
27230 (produce_annotation): Handle charset annotation.
bba3e508
SM
27231 (handle_composition_annotation, handle_charset_annotation):
27232 New functions.
aac0c6e3
MR
27233 (consume_chars): Handle charset annotation. Utilize the above two
27234 functions.
27235 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
27236 buffer, get the deleted text as a string and set
27237 coding->src_object to that string.
27238 (detect_coding, detect_coding_system): Use the new struct
27239 coding_detection_info.
27240
27241 * coding.h (struct coding_detection_info): New structure.
27242 (struct coding_system): Adjust prototype of the member `detector'.
27243 (CODING_ANNOTATE_CHARSET_MASK): New macro.
27244
272452008-02-01 Kenichi Handa <handa@m17n.org>
27246
27247 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
27248
272492008-02-01 Dave Love <fx@gnu.org>
27250
27251 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
27252 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
27253 to new local and nullify apropos_accumulate before returning.
27254 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
27255
272562008-02-01 Kenichi Handa <handa@m17n.org>
27257
27258 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
27259 correctly.
e3eea1fc 27260
aac0c6e3
MR
272612008-02-01 Dave Love <fx@gnu.org>
27262
27263 * fns.c (Flanginfo): Call synchronize_system_time_locale.
27264
272652008-02-01 Kenichi Handa <handa@m17n.org>
27266
27267 The following changes are to make character composition happen
27268 automatically on displaying.
27269
27270 * Makefile.in (lisp, shortlisp): Add composite.elc.
27271
27272 * composite.h (Qauto_composed, Vauto_composition_function)
27273 (Qauto_composition_function): Extern them.
27274
27275 * composite.c (Vcomposition_function_table)
27276 (Qcomposition_function_table): Delete variables.
27277 (Qauto_composed, Vauto_composition_function)
27278 (Qauto_composition_function): New variables.
27279 (run_composition_function): Don't call
27280 compose-chars-after-function.
27281 (update_compositions): Clear `auto-composed' text property.
27282 (compose_chars_in_text): Delete this function.
27283 (syms_of_composite): Staticpro Qauto_composed and
27284 Qauto_composition_function. Declare Vauto_composition_function as
27285 a Lisp variable.
27286
27287 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
27288
27289 * xdisp.c (it_props): Add an entry for Qauto_composed.
27290 (handle_auto_composed_prop): New function.
27291
27292 * xselect.c (selection_data_to_lisp_data): Don't call
27293 compose_chars_in_text.
27294
272952008-02-01 Dave Love <fx@gnu.org>
27296
27297 * keyboard.c (read_char): Modify checking around use of
27298 Vkeyboard_translate_table.
27299
27300 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27301 and fix C types.
27302
273032008-02-01 Kenichi Handa <handa@m17n.org>
27304
27305 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
27306 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
27307 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
27308 the case that the last byte is '\r' correctly.
27309 (decode_coding): Flush out the unprocessed data correctly.
27310 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
27311
273122008-02-01 Dave Love <fx@gnu.org>
27313
27314 * xterm.c (XTread_socket): Fix changes for defined keysyms.
27315 Add XK_ISO... case.
27316 (xaw_scroll_callback): Revert last change.
27317
273182008-02-01 Kenichi Handa <handa@m17n.org>
27319
27320 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
27321
273222008-02-01 Kenichi Handa <handa@m17n.org>
27323
27324 * xfaces.c (Vface_resizing_fonts): New variable.
27325 (struct font_name): New member `resizing_ratio'.
27326 (font_resizing_ratio): New function.
27327 (split_font_name): Set font->resizing_ratio.
27328 (better_font_p): Pay attention to font->resizing_ratio.
27329 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
27330 RESX, and RESY fields.
27331 (try_alternative_families): Try scalable fonts if
27332 Vscalable_fonts_allowed is not Qt.
27333 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
27334
273352008-02-01 Dave Love <fx@gnu.org>
27336
27337 * xterm.c (xaw_scroll_callback): Cast correctly.
27338
273392008-02-01 Dave Love <fx@gnu.org>
27340
27341 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
27342 (lispy_kana_keys): Comment out.
27343 (make_lispy_event) [XK_kana_A]: Comment out.
27344
27345 * xterm.c (xaw_scroll_callback): Cast call_data.
27346 (XTread_socket): Deal with ASCII keysyms.
27347 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
27348
273492008-02-01 Dave Love <fx@gnu.org>
27350
27351 * xterm.c (Vx_keysym_table): New.
27352 (syms_of_xterm): Initialize it.
27353 (XTread_socket): Use it.
27354 From head: Eliminate incorrect optimization that tried to avoid
27355 decoding the output of X*LookupString.
27356 (x_get_font_repertory): Delete charset declaration.
27357
273582008-02-01 Kenichi Handa <handa@m17n.org>
27359
27360 * coding.c (detect_coding_charset): If only ASCII bytes are found,
27361 return 0.
bba3e508
SM
27362 (Fdefine_coding_system_internal):
27363 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
27364
273652008-02-01 Dave Love <fx@gnu.org>
27366
27367 * coding.c (Fcheck_coding_system): Doc fix.
27368
27369 * editfns.c (Finsert_byte): Return a proper value.
27370
273712008-02-01 Kenichi Handa <handa@m17n.org>
27372
bba3e508
SM
27373 * coding.c (decode_coding): Fix args to translate_chars.
27374 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
27375 (encode_coding): Fix args to translate_chars. Pay attention to
27376 Vstandard_translation_table_for_encode.
27377
27378 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
27379 SINGLE_BYTE_CHAR_P.
27380
27381 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
27382 not by SINGLE_BYTE_CHAR_P.
27383
27384 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
27385 SINGLE_BYTE_CHAR_P.
27386
27387 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
27388 SINGLE_BYTE_CHAR_P.
27389
27390 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
27391 by SINGLE_BYTE_CHAR_P.
27392
27393 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
27394 SINGLE_BYTE_CHAR_P.
27395
273962008-02-01 Dave Love <fx@gnu.org>
27397
27398 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
27399
274002008-02-01 Dave Love <fx@gnu.org>
27401
27402 * fns.c (Flanginfo): Fix typo.
27403
27404 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
27405
274062008-02-01 Kenichi Handa <handa@m17n.org>
27407
27408 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
27409 (detect_coding_emacs_mule, detect_coding_iso_2022)
27410 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
27411 incomplete byte sequence. Don't update *mask when correctly detected.
27412 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
27413 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
27414 (detect_coding, detect_coding_system): Adjust for the changes above.
27415
274162008-02-01 Kenichi Handa <handa@m17n.org>
27417
27418 * character.c (char_string): Rename from
27419 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
27420 (string_char): Rename from string_char.
27421
27422 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
27423 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
27424 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
27425 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
27426
274272008-02-01 Dave Love <fx@gnu.org>
27428
27429 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
27430
274312008-02-01 Kenichi Handa <handa@m17n.org>
27432
27433 * keymap.c (push_key_description): Pay attention to force_multibyte.
27434
27435 * regex.c (re_search_2): Fix for the case of unibyte buffer.
27436
274372008-02-01 Dave Love <fx@gnu.org>
27438
27439 * charset.c (define_charset_internal): Rename `supprementary'.
27440
27441 * Makefile.in (lisp, shortlisp): Remove latin-N.
27442
274432008-02-01 Dave Love <fx@gnu.org>
27444
27445 * xfns.c (x_window, x_window): Use use_xim.
27446
27447 * xterm.c (use_xim): Initialize.
27448 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
27449 (x_term_init): Maybe set use_xim.
27450
27451 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
27452
274532008-02-01 Kenichi Handa <handa@m17n.org>
27454
27455 * search.c (search_buffer): Fix case-fold-search of multibyte
27456 characters.
27457 (boyer_moore): Rename the last argument to char_high_bits.
27458
274592008-02-01 Kenichi Handa <handa@m17n.org>
27460
27461 * xdisp.c (display_string): Fix for the case of zero width glyph.
27462
27463 * xfns.c (x_set_font): Change the error message of the case that
27464 x_new_fontset returns Qt.
27465
27466 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
27467 (Finternal_set_lisp_face_attribute): Use signal_error for the
27468 error of invalid fontset.
27469
27470 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
27471 fontset, return Qt.
27472
274732008-02-01 Dave Love <fx@gnu.org>
27474
27475 * unexelf.c (unexec): Make .got handling not SGI-specific.
27476
27477 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
27478
27479 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
27480
27481 * keyboard.c (read_key_sequence): Fix type error.
27482
bba3e508
SM
27483 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
27484 Fix type error.
aac0c6e3
MR
27485
27486 * fontset.c (fontset_add): Return Lisp_Object.
27487
274882008-02-01 Dave Love <fx@gnu.org>
27489
27490 * charset.h (charset_ordered_list_tick): Declare extern.
27491
274922008-02-01 Kenichi Handa <handa@m17n.org>
27493
27494 The following changes (and some of 2008-02-01 changes of mine) are
27495 for handling syntax, category, and case conversion for unibyte
27496 characters by converting them to multibyte on the fly. With these
27497 changes, we don't have to setup syntax and case tables for unibyte
27498 characters in each language environment.
27499
27500 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
27501 multibyte if necessary.
27502
27503 * bytecode.c (Fbyte_code): Likewise.
27504
27505 * character.h (LEADING_CODE_LATIN_1_MIN)
27506 (LEADING_CODE_LATIN_1_MAX): New macros.
27507 (unibyte_to_multibyte_table): Extern it.
27508 (unibyte_char_to_multibyte): New macro.
27509 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
27510 (CHAR_LEADING_CODE): New macro.
27511 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
27512
27513 * character.c (unibyte_to_multibyte_table): New variable.
27514 (unibyte_char_to_multibyte): Move to character.h and define as macro.
27515 (multibyte_char_to_unibyte): If C is an eight-bit character,
27516 convert it to the corresponding byte value.
27517
27518 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
27519 not 1, signals an error. Update the elements of
27520 unibyte_to_multibyte_table.
27521 (init_charset_once): Initialize unibyte_to_multibyte_table.
27522 (syms_of_charset): Define the charset `iso-8859-1'.
27523
27524 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
27525 as is without converting it to unibyte. In a unibyte buffer,
27526 convert C to multibyte before checking the syntax.
27527
27528 * lisp.h (unibyte_char_to_multibyte): Delete extern.
27529
27530 * minibuf.c (Fminibuffer_complete_word): Use the macro
27531 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
27532
27533 * regex.h (struct re_pattern_buffer): New member target_multibyte.
27534
27535 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
27536 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
27537 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
27538 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
27539 non-emacs case.
27540 (PATFETCH): Convert an eight-bit char to multibyte.
27541 (HANDLE_UNIBYTE_RANGE): New macro.
27542 (regex_compile): Setup the compiled pattern for multibyte chars
27543 even if the given regex string is unibyte. Use PATFETCH_RAW
27544 instead of PATFETCH in many places. To handle `charset'
27545 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
27546 only for ASCII chars.
27547 (analyse_first) <exactn>: Simplify because the compiled pattern
27548 is multibyte.
27549 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
27550 <charset>: Use CHAR_LEADING_CODE to get leading codes.
27551 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
27552 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
27553 multibyte always 1.
27554 (re_search_2): In emacs, set the locale variable multibyte to 1,
27555 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
27556 to decide the multibyteness of STR1 and STR2.
27557 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
27558 before translating and checking fastmap.
27559 (TARGET_CHAR_AND_LENGTH): New macro.
27560 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
27561 to 1, otherwise to 0. New local variable target_multibyte.
27562 Check it to decide the multibyteness of STR1 and STR2.
27563 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
27564 <charset, charset_not>: If multibyte is nonzero, check fastmap
27565 only for ASCII chars. Call bcmp_translate with
27566 target_multibyte, not with multibyte.
27567 <begline>: Declare the local variable C as `unsigned'.
27568 (bcmp_translate): Change the last arg name to target_multibyte.
27569
27570 * search.c (compile_pattern_1): Don't adjust the multibyteness of
27571 the regexp pattern and the matching target. Set cp->buf.multibyte
27572 to the multibyteness of the regexp pattern. Set
27573 cp->but.target_multibyte to the multibyteness of the matching target.
27574 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
27575 FETCH_STRING_CHAR_ADVANCE.
27576 (Freplace_match): Convert unibyte chars to multibyte.
27577
27578 * syntax.c (char_quoted, back_comment, scan_words)
27579 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
27580 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
27581 unibyte chars to multibyte.
27582 (skip_chars): Delete the arg syntaxp, and move the code for
27583 handling syntaxes to skip_syntaxes. Change callers.
27584 Fix the case that the multibyteness of STRING and the current
27585 buffer doesn't match.
27586 (skip_syntaxes): New function.
27587 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
27588 SINGLE_BYTE_CHAR_P.
27589
275902008-02-01 Kenichi Handa <handa@m17n.org>
27591
27592 * xfaces.c (QCfontset): New variable.
27593 (LFACE_FONTSET): New macro.
27594 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
27595 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
27596 (Finternal_set_lisp_face_attribute)
27597 (Finternal_get_lisp_face_attribute): Handle QCfontset.
27598 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
27599 check also LFACE_FONTSET_INDEX.
27600 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
27601 attrs[LFACE_FONT_INDEX].
27602 (syms_of_xfaces): Intern and staticpro QCfontset.
27603
27604 * dispextern.h (enum lface_attribute_index): New member
27605 LFACE_FONTSET_INDEX.
27606
27607 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
27608
276092008-02-01 Kenichi Handa <handa@m17n.org>
27610
27611 * coding.c (coding_set_destination): Fix coding->destination for
27612 the case converting a region.
27613 (encode_coding_utf_8): Encode eight-bit chars as single byte.
27614 (encode_coding_object): Fix coding->dst_pos and
27615 coding->dst_pos_byte for the case converting a region.
27616
27617 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
27618
27619 * character.h (BYTE8_STRING): New macro.
27620
27621 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
27622
276232008-02-01 Kenichi Handa <handa@m17n.org>
27624
27625 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
27626 characters by octal form.
27627
27628 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
27629
27630 * buffer.h (_fetch_multibyte_char_len): Delete extern.
27631 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
27632 _fetch_multibyte_char_len.
27633 (FETCH_CHAR_AS_MULTIBYTE): New macro.
27634
27635 * casetab.c (set_canon, set_identity, shuffle): Simplify.
27636
27637 * casefiddle.c (casify_object): Simplify. Handle the case that
27638 the case conversion change the byte length.
27639 (casify_region): Likewise.
27640
27641 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27642
27643 * character.c (_fetch_multibyte_char_len): Delete this variable.
27644 (syms_of_character): Setup Vprintable_chars.
27645
27646 * editfns.c (Fchar_equal): Fix for the unibyte case.
27647 (Finsert_byte): New function.
27648 (syms_of_editfns): Defsubr it.
27649
27650 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27651 of direct code 0x3ffff.
27652
27653 * search.c (Freplace_match): Fix for the unibyte case.
27654
276552008-02-01 Kenichi Handa <handa@m17n.org>
27656
27657 * lread.c (safe_to_load_p): Fix the logic.
27658
27659 * syntax.c (scan_words): Don't treat characters belonging to
27660 different scripts as constituting a word.
27661
27662 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27663
27664 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27665
27666 * emacs.c (main): In the case of --unibyte, instead of aborting on
27667 finding non-empty buffer, make it unibyte.
27668
276692008-02-01 Kenichi Handa <handa@m17n.org>
27670
27671 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27672 to create a fontset.
27673
276742008-02-01 Dave Love <fx@gnu.org>
27675
27676 * character.c (Funibyte_char_to_multibyte): Doc fix.
27677
27678 * xfns.c [HAVE_STDLIB_H]: Fix last change.
27679
276802008-02-01 Kenichi Handa <handa@m17n.org>
27681
27682 * fontset.c (fontset_add): Make the type `int'.
27683 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27684
27685 * character.c (unibyte_char_to_multibyte)
27686 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27687 charset_unibyte, not charset_primary.
27688
27689 * charset.h (charset_unibyte): Extern it instead of charset_primary.
27690
27691 * charset.c (charset_unibyte): Rename from charset_primary.
27692 (Funibyte_charset): Rename from Fprimary_charset.
27693 (Fset_unibyte_charset): Rename from Fset_primary_charset.
27694 (syms_of_charset): Adjust for the above changes.
27695
27696 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27697 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27698 it->multibyte_p is zero.
27699
27700 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27701 Delete extern.
27702
277032008-02-01 Kenichi Handa <handa@m17n.org>
27704
27705 * coding.c (Fdefine_coding_system_internal): Fix category setting
27706 for a coding system of type iso-2022.
27707
277082008-02-01 Kenichi Handa <handa@m17n.org>
27709
27710 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27711
277122008-02-01 Kenichi Handa <handa@m17n.org>
27713
27714 * syntax.c (Vnext_word_boundary_function_table): New variable.
27715 (next-word-boundary-function-table): Declare it as a Lisp variable
27716 in syms_of_syntax.
27717 (scan_words): Call functions in Vnext_word_boundary_function_table
27718 if any.
27719
27720 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27721
27722 * fontset.c (fs_load_font): If fontp->charset is not negative,
27723 return fontp without setting its members.
27724
277252008-02-01 Dave Love <fx@gnu.org>
27726
27727 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27728
27729 * m/sparc.h (HAVE_ALLOCA): Delete.
27730
27731 * s/irix6-5.h: Don't include strings.h.
27732 (bcopy, bzero, bcmp): Don't undef.
27733
27734 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
27735
27736 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
27737 (TIOCSIGSEND): Don't test IRIX6.
27738 (bcopy, bzero, bcmp): Define conditionally.
27739
277402008-02-01 Kenichi Handa <handa@m17n.org>
27741
27742 * buffer.c (Qas, Qmake, Qto): New variables.
27743 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
27744 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
27745
27746 * callproc.c (Fcall_process): Don't call insert_1_both directly if
27747 we are inserting a process output into a multibyte buffer.
27748
27749 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
27750 multibyte_char_to_unibyte.
27751
27752 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
27753 by the primary charset, make it eight-bit char.
27754 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27755
27756 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27757 (charset_8_bit__control, charset_8_bit_graphic)
27758 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27759 (define_charset_internal): New function.
27760 (syms_of_charset): Call define_charset_internal for pre-defined
27761 charsets.
27762
27763 * charset.h (charset_8_bit): Extern it.
27764
27765 * coding.c (make_conversion_work_buffer): Adjust for the change
27766 of Fset_buffer_multibyte.
27767 (encode_coding_raw_text): Increment p0 in the loop.
27768
27769 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27770
bba3e508
SM
27771 * xdisp.c (setup_echo_area_for_printing, set_message_1):
27772 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
27773
27774 * fns.c (Fstring_to_multibyte): New function.
27775 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27776
277772008-02-01 Dave Love <fx@gnu.org>
27778
27779 * xfns.c (x_put_x_image): Declare args.
27780
27781 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
27782 (try_font_list): Declare an arg.
27783
27784 * xdisp.c (message2_nolog, set_message): Declare an arg.
27785
27786 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
27787
27788 * syntax.c (scan_sexps_forward): Declare an arg.
27789
27790 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
27791 Declare an arg.
27792
27793 * lisp.h (Fnew_fontset): Declare.
27794
27795 * keymap.c (push_key_description): Call CHARACTERP correctly.
27796
27797 * fontset.c (fontset_add): Declare args. Call make_number correctly.
27798 (face_for_char): Delete unused vars.
27799 (Fset_fontset_font): Doc fix. Delete unused vars.
27800
27801 * doc.c (Fsubstitute_command_keys): Delete unused vars.
27802
27803 * composite.c (update_compositions): Declare arg.
27804
27805 * cm.c (calccost, cmgoto): Declare args.
27806
27807 * charset.c: Remove `emacs' conditional. Doc fixes.
27808 (map_char_table_for_charset): Declare.
27809
27810 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
27811
27812 * ccl.c: Remove `emacs' conditional.
27813
278142008-02-01 Kenichi Handa <handa@m17n.org>
27815
27816 The following changes are to allow specifying multiple font
27817 patterns for a character range (specified by script or charset).
27818
27819 * Makefile.in (abbrev.o): Depend on syntax.h.
27820 (xfaces.o): Depend on charset.h.
27821
27822 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
27823 SINGLE_BYTE_CHAR_P.
27824
27825 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
27826
27827 * character.h (Vchar_script_table): Extern it.
27828
27829 * character.c (Vscript_alist): Delete.
27830 (Vchar_script_table, Qchar_script_table): New variable.
27831 (syms_of_character): Declare Vchar_script_table as a lisp variable
27832 and initialize it.
27833
27834 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
27835 have property char-table-extra-slots, make no extra slot.
27836
27837 * dispextern.h (struct face): Delete member `charset'.
27838 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
27839 SINGLE_BYTE_CHAR_P.
27840 (choose_face_font, lookup_non_ascii_face, font_name_registry):
27841 Add prototypes.
27842 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
27843 (generate_ascii_font_name): Rename from generate_ascii_font.
27844
27845 * fontset.h (get_font_repertory_func): New prototype.
27846 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
27847 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
27848
27849 * fontset.c (Qprepend, Qappend): New variables.
27850 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
27851 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
27852 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
27853 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
27854 (fontset_ref_and_range, fontset_add, reorder_font_vector)
27855 (load_font_get_repertory): New functions.
27856 (fontset_set): Delete.
27857 (fontset_face): New arg FACE. Return face ID, not face.
27858 Complete re-write to handle new fontset structure. Change caller.
27859 (free_face_fontset): Use ASET istead of AREF (X) = Y.
27860 (face_for_char): Don't call lookup_face.
27861 (make_fontset_for_ascii_face): New arg FACE.
27862 (fs_load_font): New arg CHARSET_ID. Don't check
27863 Vfont_encoding_alist here.
27864 (find_font_encoding): New function.
27865 (list_fontsets): Use STRINGP, not ! NILP.
27866 (accumulate_script_ranges): New function.
bba3e508
SM
27867 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
27868 Completely re-written to handle new fontset structure.
aac0c6e3 27869 (Ffontset_font): Return a copy of element.
bba3e508
SM
27870 (syms_of_fontset): Define symbols Qprepend and Qappend.
27871 Fix docstring of font-encoding-alist.
aac0c6e3
MR
27872
27873 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
27874 (Fset_fotset_font): Fix arguments to 5.
27875
27876 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
27877
27878 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
27879 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27880 (highlight_trailing_whitespace): Adjust for the change of
27881 lookup_named_face.
27882
27883 * xfaces.c: Include charset.h.
27884 (load_face_font): Delete argument C. Change caller.
27885 (generate_ascii_font_name): Rename from generate_ascii_font.
27886 (font_name_registry): New function.
27887 (cache_face): Store ascii faces before non-ascii faces in buckets.
27888 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
27889 Lookup only ascii faces.
27890 (lookup_non_ascii_face): New function.
27891 (lookup_named_face): Delete argument C. Change caller.
27892 (lookup_derived_face): Delete argument C. Change caller.
27893 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
27894 a string, just call font_list with it.
27895 (choose_face_font): Delete arguments FACE and C. New arg
27896 FONT_SPEC. Change caller.
27897 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
27898 Change caller.
27899 (realize_non_ascii_face): New function.
27900 (realize_x_face): Call load_face_font here.
27901 (realize_tty_face): Delete argument C. Change caller.
27902 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
27903 get a face ID.
27904 (dump_realized_face): Don't print charset of FACE.
27905
27906 * xfns.c (x_set_font): Always call x_new_fontset and
27907 store_frame_parameter.
27908 (Fx_create_frame): Call x_new_fontset, not x_new_font.
27909 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
27910
27911 * xterm.h (x_get_font_repertory): Extern it.
27912
27913 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27914 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27915 it->multibyte_p is zero.
27916 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27917 (x_new_fontset): If FONTSETNAME doesn't match any existing
27918 fontsets, create a new one.
27919 (x_get_font_repertory): New function.
27920
279212008-02-01 Kenichi Handa <handa@m17n.org>
27922
27923 * coding.c (Ffind_coding_systems_region_internal): Detect an
27924 ASCII only string correctly.
27925
27926 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
27927 version is 0.
27928
279292008-02-01 Kenichi Handa <handa@m17n.org>
27930
27931 * lread.c: Include "coding.h".
27932 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
27933 (load_each_byte, unread_char): New variables.
27934 (readchar_backlog): Delete.
27935 (readchar): Return a character unless load_each_byte is nonzero.
27936 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
27937 cons. If unread_char is not -1, simply return it.
27938 (unreadchar): Handle the case that readcharfun is
27939 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
27940 (read_multibyte): Delete.
27941 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
27942 (read_emacs_mule_char): New functions.
27943 (Fload): Even if the file doesn't have the extension ".elc", if
27944 safe_to_load_p returns a positive version number, assume that the
27945 file contains bytecompiled code. If the version is less than 22,
27946 load the file while decoding multibyte sequences by emacs-mule.
27947 (readevalloop): Don't use readchar_backlog.
27948 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
27949 (Fread_from_string): Pay attention to the case that STREAM is a cons.
27950 (read_escape): Delete the arg BYTEREP.
27951 (read1): Set load_each_byte to 1 temporarily while handling
27952 #@NUMBER. Don't call read_multibyte.
27953 (read_vector): Call Fread with a cons. If readcharfun is
27954 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
27955 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
27956 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
27957 and Qload_force_doc_strings.
27958
279592008-02-01 Kenichi Handa <handa@m17n.org>
27960
bba3e508
SM
27961 * xdisp.c (face_before_or_after_it_pos):
27962 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
27963
279642008-02-01 Kenichi Handa <handa@m17n.org>
27965
27966 * character.h (TRAILING_CODE_P): New macro.
27967 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
27968 (string_char_with_unification): Fix prototype.
27969 (Vscript_alist): Extern it.
27970
27971 * character.c (Vscript_alist): New variable.
27972 (string_char_with_unification, str_as_unibyte)
27973 (string_escape_byte8): Add `const' to local variables.
27974 (syms_of_character): Declare script-alist as a Lisp variable.
27975
27976 * charset.h (Vcharset_ordered_list): Extern it.
27977 (charset_ordered_list_tick): Extern it.
27978 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
27979 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
27980 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
27981 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
27982 (Funify_charset): Adjust for the change of Funify_charset.
27983
27984 * charset.c (charset_ordered_list_tick): New variable.
27985 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
27986 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 27987 deunify instead of unify a charset.
aac0c6e3
MR
27988 (string_xstring_p): Add `const' to local variables.
27989 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
27990 (encode_char): Adjust for the change of Funify_charset.
27991 Fix detecting of invalid code.
aac0c6e3
MR
27992 (Fset_charset_priority): Increment charset_ordered_list_tick.
27993 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
27994 and TO_CODE.
27995
27996 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
27997 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
27998 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
27999 (decode_coding_ccl, consume_chars)
28000 (Ffind_coding_systems_region_internal)
28001 (Fcheck_coding_systems_region): Add `const' to local variables.
28002
28003 * print.c (print_object): Use octal form for printing the
28004 contents of a bool vector.
28005
280062008-02-01 Dave Love <fx@gnu.org>
28007
28008 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
28009 <version == 20>: Refuse to load.
28010
280112008-02-01 Dave Love <fx@gnu.org>
28012
28013 * fns.c: Move coding.h.
28014 (Qcodeset, Qdays, Qmonths): New.
28015 (concat): Use CHARACTERP instead of INTEGERP.
28016 (Flocale_codeset): Delete.
28017 (Flanginfo): New function.
28018 (syms_of_fns): Change accordingly.
28019
28020 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
28021
280222008-02-01 Dave Love <fx@gnu.org>
28023
bba3e508
SM
28024 * casetab.c (init_casetab_once, init_casetab_once):
28025 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
28026
28027 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
28028
28029 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
28030
28031 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
28032 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
28033 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
28034
28035 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
28036
28037 * coding.c (ENCODE_DESIGNATION, decode_eol)
28038 (make_conversion_work_buffer, code_conversion_restore)
28039 (Fdefine_coding_system_internal): Convert Lisp types.
28040 (code_conversion_restore): Use EQ, not ==.
28041 (Fencode_coding_string): Fix code_convert_string call.
28042
28043 * coding.h (code_convert_region): Fix prototype.
28044
28045 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
28046
28047 * fontset.c (fontset_ref, fontset_set, fs_load_font)
28048 (Ffontset_info): Convert Lisp types.
28049
28050 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
28051
28052 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
28053
28054 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
28055
28056 * chartab.c: Include "...h", not <...h> in some cases.
28057
28058 * callproc.c (Fcall_process): Remove unused variables.
28059
280602008-02-01 Dave Love <fx@gnu.org>
28061
28062 * coding.c (Fset_coding_system_priority): Allow null arg list.
28063
280642008-02-01 Dave Love <fx@gnu.org>
28065
28066 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
28067 (Fself_insert_and_exit): Use CHARACTERP.
28068
28069 * callproc.c (Fcall_process): Remove unused vars.
28070
28071 * xterm.c (XTread_socket): Add extra dead keysyms.
28072
28073 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
28074
28075 * dispextern.h: Remove prototypes for redraw_frame,
28076 redraw_garbaged_frames.
28077
28078 * cmds.c (Fself_insert_command): Use CHARACTERP.
28079
28080 * chartab.c (make_sub_char_table): Remove unused var.
28081 (Fset_char_table_default, Fmap_char_table): Doc fix.
28082
28083 * keymap.c (access_keymap): Remove generic char code.
28084 (push_key_description): Use CHARACTERP.
28085
280862008-02-01 Dave Love <fx@gnu.org>
28087
28088 * charset.c: Doc fixes.
28089 (Funify_charset): Extra checking.
28090
280912008-02-01 Dave Love <fx@gnu.org>
28092
28093 * lread.c: Remove some unused variables.
28094 (safe_to_load_p): If safe, return the magic number version byte.
28095 (Fload): Maybe use load-with-code-conversion.
28096
280972008-02-01 Kenichi Handa <handa@m17n.org>
28098
28099 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
28100 of category_set for characters out of the range.
28101 Avoid unnecessary modification.
aac0c6e3
MR
28102
28103 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
28104 Vchar_unify_table. The default value of the table is now nil.
28105
28106 * character.c (syms_of_character): Setup Vchar_width_table for
28107 eight-bit-control and raw-byte chars.
28108
bba3e508
SM
28109 * charset.h (enum define_charset_arg_index):
28110 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
28111 charset_arg_superset.
28112 (enum charset_attr_index): Delete charset_parents and add
28113 charset_subset and charset_superset.
28114 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
28115 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
28116 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
28117 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
28118 (CHARSET_SUPERSET): New macros.
28119 (charset_work): Extern it.
28120 (ENCODE_CHAR): Use charset_work.
28121 (CHAR_CHARSET_P): Adjust for the change of encoder format.
28122 (map_charset_chars): Extern it.
28123
28124 * charset.c (load_charset_map): Set the default value of encoder
28125 and deunifier char-tables to nil.
bba3e508
SM
28126 (map_charset_chars): Change argument. Change callers.
28127 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
28128 (Fmap_charset_chars): New optional args from_code and to_code.
28129 (Fdefine_charset_internal): Adjust for the change of
28130 `define-charset' (:parents -> :subset or :superset).
28131 (charset_work): New variable.
28132 (encode_char, syms_of_charset): Adjust for the change of
28133 Fdefine_charset_internal.
28134 (Ffind_charset_string): Setup the vector `charsets' correctly.
28135
bba3e508
SM
28136 * chartab.c (sub_char_table_ref_and_range): New arg default.
28137 Fix the previous change.
aac0c6e3
MR
28138 (char_table_ref_and_range): Adjust for the above change.
28139 (map_sub_char_table_for_charset): New function.
28140 (map_char_table_for_charset): New function.
28141
28142 * keymap.c (describe_vector): Handle a char-table directly here.
28143 (describe_char_table): Delete.
28144
28145 * lisp.h (map_charset_chars): Delete.
28146
281472008-02-01 Dave Love <fx@gnu.org>
28148
28149 * fns.c (count_combining): Comment out (unused).
28150 (Flocale_codeset): New.
28151 (syms_of_fns): Defsubr it.
28152
28153 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
28154 (size_t): Remove.
28155
281562008-02-01 Dave Love <fx@gnu.org>
28157
28158 * Makefile.in (chartab.o): Depend on charset.h.
28159
281602008-02-01 Kenichi Handa <handa@m17n.org>
28161
28162 * character.c (syms_of_character): Set the default value of
28163 Vprintable_chars to Qnil.
28164
281652008-02-01 Dave Love <fx@gnu.org>
28166
28167 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
28168
281692008-02-01 Kenichi Handa <handa@m17n.org>
28170
28171 * charset.c (load_charset_map): Handle the case that from < to
28172 correctly.
28173
28174 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
28175 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
28176 Pay attention to raw-8-bit chars.
28177
281782008-02-01 Kenichi Handa <handa@m17n.org>
28179
28180 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
28181 It is not bytecompiled now.
28182
28183 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
28184 (charset_jisx0208): New variables.
28185 (Fdefine_charset_internal): Setup them if appropriate.
28186 (init_charset_once): Initialize them to -1.
28187
28188 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
28189 (charset_jisx0208): Extern them.
28190
28191 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
28192 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
28193 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
28194 (setup_iso_safe_charsets): Fix arguments to Fassq.
28195 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
28196 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
28197 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
28198 (encode_coding_iso_2022): Change the 1st arg to
28199 ENCODE_ISO_CHARACTER to a variable.
28200
282012008-02-01 Kenichi Handa <handa@m17n.org>
28202
28203 * charset.h (enum define_charset_arg_index): New enums
28204 charset_arg_min_code and charset_arg_max_code.
28205 (struct charset): New member char_index_offset.
28206
28207 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
28208 Take charset->char_index_offset into account.
28209 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
28210 args[charset_arg_max_code]. Setup charset.char_index_offset.
28211 (syms_of_charset): Fix args to Fdefine_charset_internal.
28212
282132008-02-01 Dave Love <fx@gnu.org>
28214
28215 * coding.c (decode_coding_utf_8): Reject overlong sequences.
28216
282172008-02-01 Dave Love <fx@gnu.org>
28218
28219 * coding.c: Doc fixes.
28220 (Fcoding_system_aliases): Fix return value.
28221 (Qmac): Remove (duplicated) definition.
28222
282232008-02-01 Dave Love <fx@gnu.org>
28224
362654a6
JB
28225 * charset.c (Fcharset_priority_list, Fset_charset_priority):
28226 New functions.
aac0c6e3
MR
28227
28228 * character.c (Fstring): Doc fix.
28229
28230 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
28231
362654a6 28232 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
28233 (font-encoding-alist): Doc fix.
28234
282352008-02-01 Dave Love <fx@gnu.org>
28236
28237 * term.c (costs_set): Declare static, non-initialized for pcc.
28238 (encode_terminal_code): Remove unused var.
28239
28240 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
28241 for K&R.
28242
28243 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
28244
28245 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
28246 (suffixes): Move out of make_subsidiaries for K&R.
28247
28248 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
28249
28250 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
28251
282522008-02-01 Dave Love <fx@gnu.org>
28253
28254 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
28255
28256 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
28257
282582008-02-01 Yong Lu <lyongu@asia-infonet.com>
28259
28260 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
28261
28262 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
28263
282642008-02-01 Kenichi Handa <handa@m17n.org>
28265
28266 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
28267 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
28268
282692008-02-01 Kenichi Handa <handa@m17n.org>
28270
28271 * coding.c (decode_coding_charset): Adjust for the change of
28272 Fdefine_coding_system_internal.
28273 (Fdefine_coding_system_internal): For a coding system of
28274 `charset' type, store a list of charset IDs in
28275 `charset_attr_charset_valids' element of coding attributes.
28276
282772008-02-01 Kenichi Handa <handa@m17n.org>
28278
28279 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
28280 (emacs_mule_char): New arg src. Delete arg `composition'.
28281 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
28282 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
28283 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
28284 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
28285 (DECODE_EMACS_MULE_21_COMPOSITION):
28286 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
28287 sequence.
28288 (decode_coding_emacs_mule): Handle composition correctly. Rewind
28289 `src' and `consumed_chars' correctly before calling emacs_mule_char.
28290 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
28291 and alt&rule composition.
28292 (decode_coding_iso_2022): Handle composition correctly.
28293 (init_coding_once): Setup emacs_mule_bytes for private charsets.
28294
28295 * charset.c (Fdefine_charset_internal): Fix bug for the case of
28296 re-defining a charset. If the charset has :emacs-mule-id, setup
28297 emacs_mule_bytes.
28298 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
28299
283002008-02-01 Kenichi Handa <handa@m17n.org>
28301
28302 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
28303 (encode_coding_big5, encode_coding_charset): If coding requires safe
28304 encoding, produce a character specified by
28305 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
28306
283072008-02-01 Dave Love <fx@gnu.org>
28308
28309 * xterm.c (XSetIMValues): Declare.
28310
28311 * process.c: Conditionally include sys/wait.h, pty.h.
28312
28313 * print.c (print_object): Fix print format for 64-bit systems.
28314
28315 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
28316
28317 * buffer.c (emacs_strerror): Declare.
28318
28319 * fontset.c (Fclear_face_cache): Declare.
28320 (accumulate_font_info): Comment-out (unused).
28321 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
28322 variables.
28323
28324 * character.h (string_escape_byte8): Declare.
28325
bba3e508
SM
28326 * charset.c (load_charset_map, load_charset_map_from_file):
28327 Remove unused vars.
aac0c6e3
MR
28328 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
28329 (Fmap_charset_chars): Doc fix.
28330
28331 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
28332 (Fset_coding_system_priority, Fset_coding_system_priority)
28333 (Fdefine_coding_system_internal): Doc fix.
28334
283352008-02-01 Dave Love <fx@gnu.org>
28336
28337 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
28338
283392008-02-01 Kenichi Handa <handa@m17n.org>
28340
28341 * character.c (string_escape_byte8): Make multibyte string with
28342 correct size.
28343
28344 * charset.c (Fmake_char): Delete unnecessary code.
28345
283462008-02-01 Kenichi Handa <handa@m17n.org>
28347
28348 * xfns.c (x_encode_text): Allocate coding.destination here, and
28349 call encode_coding_object with dst_object Qnil.
28350
28351 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
28352 multibyte form correctly.
28353
28354 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
28355 against Vfont_encoding_alist.
28356
28357 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
28358 handling of charset list.
28359 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
28360 (decode_coding_object): Move point to coding->dst_pos before
28361 calling post-read-conversion function.
28362 (encode_coding_object): Give correct arguments to
28363 pre-write-conversion. Ignore the return value of
28364 pre-write-conversion function. Pay attention to the case that
28365 pre-write-conversion changes the current buffer. If dst_object is
28366 Qt, even if coding->src_bytes is zero, allocate at least one byte
28367 to coding->destination.
28368
28369 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
28370
28371 * charset.c (Fmake_char): Make it more backward compatible.
28372 (Fmap_charset_chars): Fix docstring.
28373
283742008-02-01 Dave Love <fx@gnu.org>
28375
28376 * coding.c: Doc fixes.
28377 (Fdefine_coding_system_alias): Use names, not symbols, in
28378 coding-system-alist.
28379
283802008-02-01 Kenichi Handa <handa@m17n.org>
28381
28382 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
28383 of calling free_realized_face.
28384
283852008-02-01 Yong Lu <lyongu@asia-infonet.com>
28386
28387 * charset.c (read_hex): Don't treat SPC as a comment starter.
28388 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
28389 (Fdecode_char): Fix typo.
28390
283912008-02-01 Kenichi Handa <handa@m17n.org>
28392
28393 * charset.h (struct charset): New member `code_space_mask'.
28394
28395 * coding.c (coding_set_source): Delete the local variable beg_byte.
28396 (encode_coding_charset, Fdefine_coding_system_internal):
28397 Delete the local variable charset.
bba3e508
SM
28398 (Fdefine_coding_system_internal):
28399 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
28400
28401 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
28402 member to check if CODE is valid or not.
28403 (Fdefine_charset_internal): Initialize `code_space_mask' member.
28404 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
28405 is within the range of charset->min_code and carset->max_code.
28406
284072008-02-01 Dave Love <fx@gnu.org>
28408
28409 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
28410
28411 * dispextern.h (generate_ascii_font): Fix return type.
28412
28413 * xfaces.c (generate_ascii_font): Fix arg declaration.
28414
28415 * coding.c (coding_inherit_eol_type)
28416 (Fset_terminal_coding_system_internal)
28417 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
28418
284192008-02-01 Kenichi Handa <handa@m17n.org>
28420
bba3e508
SM
28421 * coding.c (decode_coding_charset, encode_coding_charset):
28422 Handle multiple charsets correctly.
aac0c6e3
MR
28423
284242008-02-01 Kenichi Handa <handa@m17n.org>
28425
28426 * search.c (boyer_moore): Fix handling of multibyte character
28427 translation.
28428
28429 * xdisp.c (display_mode_element): When the variable `elt' is
28430 changed, update `this' and `lisp_string'.
28431
284322008-02-01 Kenichi Handa <handa@m17n.org>
28433
28434 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
28435
28436 * callproc.c (Fcall_process): Be sure to give the current buffer
28437 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
28438
28439 * charset.c (struct charset_map_entries): New struct.
28440 (load_charset_map): Rename from parse_charset_map. New args
28441 entries and n_entries. Change caller.
28442 (load_charset_map_from_file): Rename from load_charset_map.
28443 Change caller. New arg control_flag. Call load_charset_map at
28444 the tail.
28445 (load_charset_map_from_vector): New function.
28446 (Fdefine_charset_internal): Setup charset.compact_codes_p.
28447 (encode_char): If the charset is compact, change a character index
28448 to a code point.
28449
28450 * coding.c (coding_alloc_by_making_gap): Check the case that the
28451 source and destination are the same correctly.
28452 (decode_coding_raw_text): Set coding->consumed_char and
28453 coding->consumed to 0.
28454 (produce_chars): If coding->chars_at_source is nonzero, update
28455 coding->consumed_char and coding->consumed before calling
28456 alloc_destination.
28457 (Fdefine_coding_system_alias): Register ALIAS in
28458 Vcoding_system_alist.
28459 (syms_of_coding): Define `no-conversion' coding system at the tail.
28460
28461 * fileio.c (Finsert_file_contents): Set coding_system instead of
28462 val. If the current buffer is multibyte, always call
28463 decode_coding_gap.
28464
28465 * xfaces.c (try_font_list): Give higher priority to fontset's
28466 family than face's family.
28467
284682008-02-01 Kenichi Handa <handa@m17n.org>
28469
28470 * callproc.c (Fcall_process): Be sure to give the current buffer
28471 to decode_coding_c_string.
28472
28473 * xfaces.c (try_font_list): Give a family specified in a fontset
28474 higher priority than a family specified in a face.
28475
284762008-02-01 Kenichi Handa <handa@m17n.org>
28477
28478 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
28479 Fix arguments to insert_from_buffer.
28480
28481 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
28482
284832008-02-01 Kenichi Handa <handa@m17n.org>
28484
28485 * coding.c (produce_chars): Set the variable `multibytep' correctly.
28486 (decode_coding_gap): Set coding->dst_multibyte correctly.
28487
284882008-02-01 Kenichi Handa <handa@m17n.org>
28489
28490 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
28491 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
28492 (encode_coding_utf_16): Substitute coding->default_char for
28493 non-Unicode characters.
28494 (decode_coding): Don't call record_insert here.
28495 (setup_coding_system): Initialize `surrogate' of
28496 coding->spec.utf_16 to 0.
28497 (EMIT_ONE_BYTE): Fix for multibyte case.
28498
28499 * insdel.c (insert_from_gap): Call record_insert.
28500
285012008-02-01 Kenichi Handa <handa@m17n.org>
28502
28503 * casefiddle.c (casify_region): Fix multibyte case.
28504
28505 * character.c (c_string_width): Add return type `int'.
28506 (char_string_with_unification): Delete arg ADVANCED.
28507
28508 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
28509 (CHAR_STRING): Adjust for the change of char_string_with_unification.
28510 (CHAR_STRING_ADVANCE): Make it do-while statement.
28511
28512 * chartab.c (sub_char_table_set_range): Optimize for the case
28513 DEPTH == 3. Add workaround code for a GCC optimization bug.
28514
28515 * charset.c (parse_charset_map): Remove an unused variable.
28516
28517 * coding.c: Delete unused variables.
28518
28519 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
28520 earlier. If inserted is zero and the coding system doesn't
28521 require flushing, don't call decode_coding_gap.
28522
28523 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
28524
285252008-02-01 Kenichi Handa <handa@m17n.org>
28526
28527 The following changes are for using Unicode as an internal
28528 character model, and use UTF-8 format for buffer/string
28529 representation.
28530
28531 * .gdbinit (xchartable): Adjust for the change of char table structure.
28532 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
28533
28534 * Makefile.in (obj): Add character.o and chartab.o.
28535 (lisp, shortlisp): Remove utf-8.elc.
28536 (*.o): For many files, change dependency on charset.h to
28537 character.h, and add dependency on character.h.
28538 (character.o, chartab.o): New targets.
28539
28540 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
28541 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
28542 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
28543 of "charset.h".
28544
28545 * dired.c, filelock.c: Include "character.h".
28546
28547 * alloc.c: Include "character.h" instead of "charset.h".
28548 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
28549 (syms_of_alloc): Remove defsubr for Smake_char_table.
28550
28551 * buffer.c: Include "character.h" instead of "charset.h", don't
28552 include "coding.h".
28553 (Fset_buffer_multibyte): Adjust for UTF-8.
28554
28555 * buffer.h: EXFUN Fbuffer_live_p.
28556
28557 * callproc.c: Include "character.h" instead of "charset.h".
28558 (Fcall_process): Big change for the new code-conversion APIs.
28559
28560 * casetab.c: Include "character.h" instead of "charset.h".
28561 (set_canon, set_identity, shuffle): Adjust for the new
28562 map_char_table spec.
28563 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
28564 accessing the char table structure.
28565
28566 * chartab.c: New file that implements char table.
28567
28568 * category.c: Include "character.h".
28569 (copy_category_entry): New function.
28570 (copy_category_table): Call map_char_table and copy_category_entry.
28571 (Fmake_category_table): Initialize all top-level slots.
28572 (char_category_set): New function.
28573 (modify_lower_category_set): Delete.
28574 (Fmodify_category_entry): Call char_table_ref_and_range.
28575
28576 * category.h (CATEGORY_SET): Just call char_category_set.
28577
28578 * ccl.c: Include "character.h".
28579 (Qccl, Qcclp): New variables.
28580 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
28581 it's less than 256.
28582 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
28583 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
28584 and DST type.
28585 (ccl_driver): Change types of argument, adjust code accordingly.
28586 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
28587 ccl_driver.
28588 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
28589
28590 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
28591 New members src_multibyte, dst_multibyte, consumed, and produced.
28592 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
28593 (CODING_SPEC_CCL_PROGRAM): New macro.
28594 (ccl_driver): Update prototype.
28595 (Qccl, Qcclp, Fccl_program_p): Extern them.
28596 (CHECK_CCL_PROGRAM): New macro.
28597
28598 * character.c, character.h, chartab.c: New files.
28599
28600 * charset.c: Mostly re-written. Move character and multibyte sequence
28601 handling codes to character.c.
28602
28603 * charset.h: Mostly re-written. Move character and multibyte sequence
28604 handling codes to character.h.
28605
28606 * coding.c, coding.h: Mostly re-written.
28607
28608 * composite.c: Include "character.h" instead of "charset.h".
28609 (CHAR_WIDTH): Move to character.h.
28610 (HASH_KEY, HASH_VALUE): Delete.
28611
28612 * composite.h (enum composition_method): Change order of enumeration
28613 symbols.
28614
28615 * data.c: Include "character.h" instead of "charset.h".
28616 (Faref): Call CHAR_TABLE_REF for a char table.
28617 (Faset): Call CHAR_TABLE_SET for a char table.
28618
28619 * dispextern.h (free_realized_face, check_face_attribytes)
28620 (generate_ascii_font): Extern them.
28621 (free_realized_multibyte_face): Delete extern.
28622
28623 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
28624 table structure.
28625
28626 * editfns.c: Include "character.h" instead of "charset.h".
28627 (Fchar_to_string): Always call CHAR_STRING.
28628
28629 * emacs.c (main): Call init_charset_once, init_charset,
28630 syms_of_chartab, and syms_of_character.
28631
28632 * fileio.c: Include "character.h" instead of "charset.h".
28633 (Finsert_file_contents): Big change for the new code-conversion API.
28634 (choose_write_coding_system, Fwrite_region): Likewise.
28635 (build_annotations_2): Delete.
28636 (e_write): Big change for the new code-conversion API.
28637
28638 * fns.c: Include "character.h" instead of "charset.h".
28639 (copy_sub_char_table): Move to chartab.c.
28640 (Fcopy_sequence): Call copy_char_table for a char table.
28641 (concat): Delete codes calling count_multibyte.
28642 (string_char_to_byte, string_byte_to_char): Adjust for the new
28643 multibyte form.
28644 (internal_equal): Adjust for the change of char table structure.
28645 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28646 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28647 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28648 (char_table_translate, optimize_sub_char_table)
28649 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28650 chartab.c.
28651 (char_table_ref_and_index): Delete.
28652 (HASH_KEY, HASH_VALUE): Move to lisp.h.
28653 (Fmd5): Call preferred_coding_system instead of accessing
28654 Vcoding_category_list. Adjust for the new code-conversion API.
28655 (syms_of_fns): Move defsubr for char table related functions to
28656 chartab.c.
28657
28658 * fontset.c: Mostly re-written.
28659
28660 * fontset.h (struct font_info): Change type of the member encoding_type.
28661 (enum FONT_SPEC_INDEX): New enum.
28662 (fontset_font_pattern, fs_load_font): Update prototype.
28663 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28664
28665 * indent.c: Include "character.h" instead of "charset.h".
28666 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28667
28668 * insdel.c: Include "character.h" instead of "charset.h".
28669 (copy_text): Don't refer to Vnonascii_translation_table.
28670 (insert_from_gap): New function.
28671
28672 * keyboard.c: Include "character.h" instead of "charset.h".
28673 (command_loop_1): Never call direct_output_forward_char before
28674 a non-ASCII character.
28675 (read_char): If Vkeyboard_translate_table is a char table, always
28676 translate a character.
28677
28678 * keymap.c: Include "character.h".
28679 (store_in_keymap): Handle the case that IDX is a cons.
28680 (Fdefine_key): Handle the case that KEY is a cons and the car part
28681 is also a cons (range).
28682 (push_key_description): Adjust for the new character code.
28683 (describe_vector): Call describe_char_table for a char table.
28684 (describe_char_table): New function.
28685
28686 * keymap.h (describe_char_table): Extern it.
28687
28688 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28689 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28690 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28691 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28692 Delete.
28693 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28694 structure.
28695 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28696 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28697 (CHARTAB_SIZE_BITS_3): New macros.
28698 (chartab_size): Extern it.
28699 (struct Lisp_Char_Table): Re-design.
28700 (struct Lisp_Sub_Char_Table): New structure.
28701 (HASH_KEY, HASH_VALUE): Move from fns.c.
28702 (CHARACTERBITS): Define as 22.
28703 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28704 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28705 (GC_SUB_CHAR_TABLE_P): New macro.
28706 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 28707 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
28708 (init_character_once, syms_of_character, init_charset)
28709 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28710
28711 * lread.c: Include "character.h".
28712 (read_multibyte): New arg NBYTES.
28713 (read_escape): Change the meaning of returned *BYTEREP.
28714 (to_multibyte): Delete.
28715 (read1): Adjust the handling of char table and string.
28716
28717 * print.c: Include "character.h" instead of "charset.h".
28718 (print_string): Convert 8-bit raw bytes to octal form by
28719 string_escape_byte8.
28720 (print_object): Adjust for the new multibyte form. Print 8-bit
28721 raw bytes always in octal form. Handle sub char table correctly.
28722
28723 * process.c: Include "character.h" instead of "charset.h".
28724 (read_process_output, send_process): Adjust for the new
28725 code-conversion API.
28726
28727 * puresize.h (BASE_PURESIZE): Increase.
28728
28729 * regex.c: Include "character.h" instead of "charset.h".
28730 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28731 (regex_compile): Accept a range whose starting and ending
28732 character have different leading bytes.
28733 (analyse_first): Adjust for the above change.
28734
28735 * search.c: Include "character.h" instead of "charset.h".
28736 (search_buffer, boyer_moore): Adjust for the new multibyte form.
28737 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
28738
28739 * syntax.c: Include "character.h" instead of "charset.h".
28740 (syntax_parent_lookup): Delete.
28741 (Fmodify_syntax_entry): Accept a cons as CHAR.
28742 (skip_chars): Adjust for the new multibyte form.
28743 (init_syntax_once): Call char_table_set_range instead of directly
28744 accessing the structure of a char table.
28745
28746 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
28747 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
28748 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
28749 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
28750
28751 * term.c: Include "buffer.h" and "character.h".
28752 (encode_terminal_code, write_glyphs): Adjust for the new
28753 code-conversion API.
28754 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28755
28756 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28757
28758 * xdisp.c: Include "character.h".
28759 (get_next_display_element): Adjust for the new multibyte form.
28760 (disp_char_vector): Adjust for the new char table structure.
28761 (decode_mode_spec_coding): Adjust for the new structure of
28762 coding system.
28763 (decode_mode_spec): Adjust for the new code-conversion API.
28764
28765 * xfaces.c: Include "character.h" instead of "charset.h".
28766 (load_face_font): Adjust for the change of choose_face_font and
28767 FS_LOAD_FONT.
28768 (generate_ascii_font): New function.
28769 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28770 (set_font_frame_param): Adjust for the change of choose_face_font.
28771 (free_realized_face): Make it public.
28772 (free_realized_faces_for_fontset): Rename from
28773 free_realized_multibyte_face. Free also faces realized for ASCII.
28774 (choose_face_font): Change arguments. Adjust for the change of
28775 fontset_font_pattern and FS_LOAD_FONT.
28776
28777 * xfns.c: Include "character.h".
28778 (x_encode_text): Adjust for the new code-conversion API.
28779
28780 * xselect.c: Don't include "charset.h".
28781 (selection_data_to_lisp_data): Adjust for the new code conversion API.
28782
28783 * xterm.c: Include "character.h".
28784 (x_encode_char): New argument CHARSET. Change caller.
28785 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
28786 Call ENCODE_CHAR instead of SPLIT_CHAR.
28787 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
28788 CHAR_WIDTH instead of CHARSET_WIDTH.
28789 (XTread_socket): Adjust for the new code-conversion API.
28790 (x_new_font): Adjust for the change of FS_LOAD_FONT.
28791 (x_load_font): Adjust for the change of struct font.
28792
287932008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
28794
28795 * xfaces.c (face_at_buffer_position): Remove unused vars.
28796
287972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28798
28799 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
28800 Fix overflow checking.
28801
288022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28803
28804 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
28805 Cancel previous change.
28806
288072008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28808
28809 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
28810 ccl->eight_bit_control. Fix check for buffer overflow.
28811 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
28812 (ccl_driver): Initialize extra_bytes to 0.
28813
288142008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28815
28816 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
28817 return it ORed with ctrl_modifier.
28818
288192008-01-29 Miles Bader <miles@gnu.org>
28820
28821 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
28822
288232008-01-28 Jason Rumney <jasonr@gnu.org>
28824
28825 * w32.c (stat): Don't double check for networked drive.
28826
288272008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
28828
28829 * window.c (run_window_configuration_change_hook): New function.
28830 Code extracted from set_window_buffer. Set the selected frame.
28831 (set_window_buffer): Use it.
28832 * window.h (run_window_configuration_change_hook): Declare.
28833 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
28834
28835 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
28836
288372008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
28838
28839 * Makefile.in: Remove references to unused macros.
28840
288412008-01-26 Eli Zaretskii <eliz@gnu.org>
28842
28843 * w32.c (g_b_init_get_sid_sub_authority)
28844 (g_b_init_get_sid_sub_authority_count): New static variables.
28845 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
28846 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
28847 (init_user_info): Use them to retrieve uid and gid.
28848 Use 500/513, the Windows defaults, as Administrator's uid/gid.
28849 (fstat): Use pw_uid and pw_gid from the_passwd structure for
28850 st_uid and st_gid of the file.
28851
288522008-01-26 Jason Rumney <jasonr@gnu.org>
28853
28854 * w32.c (logon_network_drive): New function.
28855 (stat): Use it.
28856
288572008-01-26 Chong Yidong <cyd@stupidchicken.com>
28858
28859 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
28860 invisible text covered with an ellipsis.
28861
288622008-01-25 Richard Stallman <rms@gnu.org>
28863
28864 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
28865 jump back to beginning. Move some other initializations after that.
28866 (Qwindow_text_change_functions, Vwindow_text_change_functions):
28867 New variables.
28868 (syms_of_xdisp): Init them.
28869
28870 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
28871
28872 * buffer.c (reset_buffer_local_variables):
28873 Implement `permanent-local-hook'.
28874 (Qpermanent_local_hook): New variable.
28875 (syms_of_buffer): Init and staticpro it.
28876
288772008-01-25 Michael Albinus <michael.albinus@gmx.de>
28878
28879 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
28880
288812008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
28882
28883 * fns.c (Fclrhash): Return TABLE.
28884
288852008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28886
28887 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
28888 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
28889 is set even without positional changes.
28890 (x_scroll_bar_clear): Set bar->redraw_needed_p.
28891
28892 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
28893
288942008-01-23 Jason Rumney <jasonr@gnu.org>
28895
28896 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
28897
28898 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
28899 the unicode range available in MULE by locale-coding-system.
28900 Improve dbcs lead byte detection. Set event timestamp and modifiers
28901 earlier.
28902
289032008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28904
28905 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
28906 [MAC_OSX] (init_mac_osx_environment): Initialize it.
28907 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
28908 when used on child processes.
28909
289102008-01-21 Michael Albinus <michael.albinus@gmx.de>
28911
28912 * dbusbind.c (Fdbus_method_return_internal): Rename from
28913 Fdbus_method_return.
28914 (Fdbus_unregister_object): Move to dbus.el.
28915 (Fdbus_call_method, Fdbus_method_return_internal)
28916 (Fdbus_send_signal): Improve debug messages.
28917
289182008-01-20 Martin Rudalics <rudalics@gmx.at>
28919
28920 * undo.c (undo_inhibit_record_point): New variable.
28921 (syms_of_undo): Initialize it.
28922 (record_point): Don't record point when undo_inhibit_record_point
28923 is set.
28924
289252008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
28926
28927 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
28928
28929 * xdisp.c (Qauto_hscroll_mode): New var.
28930 (syms_of_xdisp): Initialize it.
28931 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
28932 window's buffer.
28933 (hscroll_windows): Don't check automatic_hscrolling_p here.
28934
28935 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
28936 vscroll if we're setting window-buffer to the value it already has.
28937
289382008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
28939
28940 * m/intel386.h: Remove references to XENIX.
28941
289422008-01-17 Andreas Schwab <schwab@suse.de>
28943
28944 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
28945 instead of HAVE_X86_64_LIB64_DIR.
28946 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
28947
289482008-01-17 Glenn Morris <rgm@gnu.org>
28949
28950 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
28951 to HAVE_X86_64_LIB64_DIR.
28952
289532008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
28954
28955 * s/irix3-3.h:
28956 * s/irix4-0.h:
28957 * s/386-ix.h:
28958 * s/domain.h:
28959 * s/hpux9-x11r4.h:
28960 * s/hpux9shxr4.h: Remove files for systems no longer supported.
28961
28962 * sysdep.c: Remove code containing references to symbols defined
28963 by unsupported systems.
28964
289652008-01-16 Glenn Morris <rgm@gnu.org>
28966
28967 * coding.c (select-safe-coding-system-function): Doc fix.
28968
289692008-01-15 Glenn Morris <rgm@gnu.org>
28970
28971 * config.in: Revert 2008-01-13 change: this is a generated file.
28972
289732008-01-13 Tom Tromey <tromey@redhat.com>
28974
28975 * lisp.h: Fix typo.
28976
289772008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28978
28979 * m/sequent-ptx.h:
28980 * m/sequent.h:
28981 * s/ptx.h:
28982 * s/ptx4-2.h:
28983 * s/ptx4.h: Remove files for systems no longer supported.
28984
28985 * callproc.c (Fcall_process): Fix previous change.
28986
289872008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28988
28989 * unexsunos4.c: Remove file, system not supported anymore.
28990
28991 * m/mips.h:
28992 * m/intel386.h:
28993 * callproc.c:
28994 * config.in:
28995 * ecrt0.c:
28996 * emacs.c:
28997 * fileio.c:
28998 * frame.c:
28999 * getpagesize.h:
29000 * keyboard.c:
29001 * lread.c:
29002 * process.c:
29003 * puresize.h:
29004 * sysdep.c:
29005 * systty.h:
29006 * syswait.h:
29007 * unexec.c:
29008 * xdisp.c:
29009 * alloc.c: Remove code containing references to symbols defined by
29010 unsupported systems.
29011
290122008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
29013
29014 * coding.c (detect_coding_mask): Fix previous change.
29015
290162008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
29017
29018 * coding.c (detect_coding_iso2022): New arg
29019 latin_extra_code_state. Allow Latin extra codes only
29020 when *latin_extra_code_state is nonzero.
29021 (detect_coding_mask): If there is a NULL byte, detect the encoding
29022 as UTF-16 or binary. If Latin extra codes exist, detect the
29023 encoding as ISO-2022 only when there's no other proper encoding is
29024 found.
29025
290262008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29027
29028 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
29029 #ifdef MAC_OS.
29030
290312008-01-08 Richard Stallman <rms@gnu.org>
29032
29033 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
29034
290352008-01-06 Nick Roberts <nickrob@snap.net.nz>
29036
29037 * keyboard.c (parse_menu_item): Don't enclose key bindings on
29038 menu bar in parentheses.
29039
290402008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
29041
29042 * m/7300.h:
29043 * m/acorn.h:
29044 * m/alliant-2800.h:
29045 * m/alliant.h:
29046 * m/alliant1.h:
29047 * m/alliant4.h:
29048 * m/altos.h:
29049 * m/amdahl.h:
29050 * m/apollo.h:
29051 * m/att3b.h:
29052 * m/aviion-intel.h:
29053 * m/aviion.h:
29054 * m/celerity.h:
29055 * m/clipper.h:
29056 * m/cnvrgnt.h:
29057 * m/convex.h:
29058 * m/cydra5.h:
29059 * m/delta88k.h:
29060 * m/dpx2.h:
29061 * m/dual.h:
29062 * m/elxsi.h:
29063 * m/f301.h:
29064 * m/gould-np1.h:
29065 * m/gould.h:
29066 * m/i860.h:
29067 * m/ibmps2-aix.h:
29068 * m/ibmrt-aix.h:
29069 * m/ibmrt.h:
29070 * m/irist.h:
29071 * m/is386.h:
29072 * m/isi-ov.h:
29073 * m/mega68.h:
29074 * m/mg1.h:
29075 * m/news-r6.h:
29076 * m/news-risc.h:
29077 * m/news.h:
29078 * m/nh3000.h:
29079 * m/nh4000.h:
29080 * m/ns16000.h:
29081 * m/ns32000.h:
29082 * m/nu.h:
29083 * m/orion.h:
29084 * m/orion105.h:
29085 * m/paragon.h:
29086 * m/pfa50.h:
29087 * m/plexus.h:
29088 * m/pyramid.h:
29089 * m/pyrmips.h:
29090 * m/sh3el.h:
29091 * m/sps7.h:
29092 * m/sr2k.h:
29093 * m/stride.h:
29094 * m/sun1.h:
29095 * m/sun2.h:
29096 * m/sun3-68881.h:
29097 * m/sun3-fpa.h:
29098 * m/sun3-soft.h:
29099 * m/sun3.h:
29100 * m/sun386.h:
29101 * m/symmetry.h:
29102 * m/tad68k.h:
29103 * m/tahoe.h:
29104 * m/targon31.h:
29105 * m/tek4300.h:
29106 * m/tekxd88.h:
29107 * m/tower32.h:
29108 * m/tower32v3.h:
29109 * m/ustation.h:
29110 * m/wicat.h:
29111 * m/xps100.h:
29112 * s/cxux.h:
29113 * s/cxux7.h:
29114 * s/dgux.h:
29115 * s/dgux4.h:
29116 * s/dgux5-4-3.h:
29117 * s/dgux5-4r2.h:
29118 * s/esix.h:
29119 * s/esix5r4.h:
29120 * s/hiuxmpp.h:
29121 * s/hiuxwe2.h:
29122 * s/iris3-5.h:
29123 * s/iris3-6.h:
29124 * s/isc2-2.h:
29125 * s/isc3-0.h:
29126 * s/isc4-0.h:
29127 * s/isc4-1.h:
29128 * s/newsos5.h:
29129 * s/newsos6.h:
29130 * s/osf1.h:
29131 * s/osf5-0.h:
29132 * s/riscix1-1.h:
29133 * s/riscix12.h:
29134 * s/sco4.h:
29135 * s/sco5.h:
29136 * s/sunos4-0.h:
29137 * s/sunos4-1.h:
29138 * s/sunos413.h:
29139 * s/sunos4shr.h:
29140 * s/umax.h:
29141 * s/unipl5-2.h:
29142 * s/xenix.h:
29143 * cxux-crt0.s:
29144 * unexapollo.c:
29145 * unexconvex.c:
29146 * unexenix.c:
29147 * unexsni.c: Remove files for systems no longer supported.
29148
29149 * m/intel386.h: Remove references to unsupported systems.
29150
29151 * w32.c (get_emacs_configuration): Remove reference to i860.
29152
29153 * sysdep.c: Remove dead code.
29154
291552008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
29156
29157 * s/rtu.h:
29158 * m/masscomp.h: Remove files. Platform is obsolete.
29159
291602008-01-04 Michael Albinus <michael.albinus@gmx.de>
29161
29162 * dbusbind.c (Fdbus_method_return): New function.
29163 (xd_read_message): Add the serial number to the event.
29164 (Fdbus_register_method): Activate the function.
29165
291662008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
29167
29168 * keyboard.c (read_key_sequence): Fix typo.
29169
291702008-01-03 Michael Albinus <michael.albinus@gmx.de>
29171
29172 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
29173 (xd_signature, xd_append_arg): Handle element type detection for
29174 empty arrays.
29175 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
29176 SDATA () calls; this must be solved more general.
29177 (Fdbus_register_signal): Use SBYTES instead of strlen.
29178
291792008-01-03 Magnus Henoch <magnus@zemdatav>
29180
29181 * dbusbind.c (xd_append_arg): Use unsigned char instead of
29182 unsigned int for byte values (necessary for big-endian platform).
29183 (Fdbus_call_method): Handle the case of no returned arguments.
29184
291852007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
29186
29187 * dbusbind.c (xd_read_message): Use non-static input_event struct.
29188
291892007-12-31 Magnus Henoch <mange@freemail.hu>
29190
29191 * dbusbind.c (xd_signature): Signature of variant is just "v".
29192
291932007-12-30 Michael Albinus <michael.albinus@gmx.de>
29194
29195 * dbusbind.c: Fix several errors and compiler warnings.
29196 Reported by Tom Tromey <tromey@redhat.com>.
29197 (XD_ERROR, XD_DEBUG_MESSAGE)
29198 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
29199 (xd_append_arg): Part for basic D-Bus types rewritten.
29200 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
29201 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
29202 appropriate.
29203 (xd_read_message): Return Qnil. Don't signal an error; it is not
29204 useful during event reading.
29205 (Fdbus_register_signal): Signal an error if the check for
29206 FUNCTIONP fails.
29207 (Fdbus_register_method): New function. The implementation is not
29208 complete, the call of the function signals an error therefore.
29209 (Fdbus_unregister_object): New function, renamed from
29210 Fdbus_unregister_signal. The initial check signals an error, if
29211 the object is not well formed.
29212
292132007-12-30 Richard Stallman <rms@gnu.org>
29214
29215 * textprop.c (get_char_property_and_overlay):
29216 Signal error if POSITION is out of range in a buffer.
29217
292182007-12-29 Martin Rudalics <rudalics@gmx.at>
29219
29220 * w32fns.c (Fx_create_frame): Make copy of frame parameters
29221 because the original parameters are in pure storage now.
29222
292232007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29224
29225 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
29226
292272007-12-22 Eli Zaretskii <eliz@gnu.org>
29228
29229 * callint.c (syms_of_callint) <command-history>: Add reference to
29230 history-length in the doc string.
29231
292322007-12-17 Jason Rumney <jasonr@gnu.org>
29233
29234 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
29235 before passing as wParam.
29236
292372007-12-22 Michael Albinus <michael.albinus@gmx.de>
29238
29239 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
29240 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
29241 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
29242 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
29243 as number.
29244 (Fdbus_call_method): Fix docstring.
29245
292462007-12-21 Michael Albinus <michael.albinus@gmx.de>
29247
29248 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
29249 New macros.
29250 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
29251 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
29252 Simplify.
29253 (xd_signature): New function.
29254 (xd_append_arg): Compute also signatures. Major rewrite.
29255 (xd_retrieve_arg): Make debug messages friendly.
29256 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
29257 Check for signatures of arguments.
29258
292592007-12-19 Michael Albinus <michael.albinus@gmx.de>
29260
29261 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
29262 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
29263 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
29264 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
29265 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
29266 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
29267 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
29268 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
29269 (xd_retrieve_value): Remove. Functionality included in ...
29270 (xd_append_arg): New function.
29271 (Fdbus_call_method, Fdbus_send_signal): Apply it.
29272
292732007-12-16 Michael Albinus <michael.albinus@gmx.de>
29274
29275 * dbusbind.c (top): Include <stdio.h>.
29276 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
29277 dbus_message_new_method_call and dbus_message_new_signal.
29278 (Fdbus_register_signal): Rename unique_name to uname.
29279 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
29280 non-existing unique name. Fix typos in matching rule. Return an
29281 object which is useful in Fdbus_unregister_signal.
29282 (Fdbus_unregister_signal): Reimplementation, in order to remove
29283 only the corresponding entry.
29284 (Vdbus_registered_functions_table): Change the order of entries.
29285 Apply these changes in xd_read_message and Fdbus_register_signal.
29286
292872007-12-16 Andreas Schwab <schwab@suse.de>
29288
29289 * fileio.c (Finsert_file_contents): Fix overflow check to not
29290 depend on undefined integer overflow.
29291
292922007-12-14 Jason Rumney <jasonr@gnu.org>
29293
29294 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
29295 for characters above 127.
29296
292972007-12-13 Jason Rumney <jasonr@gnu.org>
29298
29299 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
29300 before dereferencing array.
29301 (lookup_vk_code): Remove zero comparison.
29302
293032007-12-14 Michael Albinus <michael.albinus@gmx.de>
29304
29305 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
29306 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
29307 Use `unsigned int' instead of `uint'.
29308 (xd_read_message, Fdbus_register_signal): Split expressions into
29309 multiple lines before operators "&&" and "||", according to the
29310 GNU Coding Standards.
29311
293122007-12-14 Eli Zaretskii <eliz@gnu.org>
29313
29314 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
29315
293162007-12-12 Juri Linkov <juri@jurta.org>
29317
29318 * buffer.c (Frename_buffer): In interactive spec replace
29319 `read-buffer' with `read-string' that uses `buffer-name-history'
29320 as history, and the current buffer's name as default.
29321
293222007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
29323
29324 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
29325 manipulating the backtrace manually.
29326 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
29327 (struct backtrace, backtrace_list): Remove.
29328 (command_loop_1): Remove dead var `no_direct'.
29329
29330 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
29331 preserve non-built-in buffer-local variables.
29332 (Fkill_all_local_variables): Don't re-create&re-set permanent
29333 buffer-local variables.
29334
293352007-12-09 Juri Linkov <juri@jurta.org>
29336
29337 * buffer.c (Frename_buffer): Change interactive spec from "s" to
29338 Lisp code that uses `read-buffer' with current buffer as default.
29339
293402007-12-08 Michael Albinus <michael.albinus@gmx.de>
29341
29342 * dbusbind.c (xd_read_message): Generate an event for every
29343 registered handler. There might be several handlers registered
29344 for the same signal.
29345 (Fdbus_register_signal): Don't overwrite a registration for the
29346 same signal. Add a new registration if handlers are different.
29347 (Vdbus_registered_functions_table): Rework doc string.
29348
293492007-12-07 Michael Albinus <michael.albinus@gmx.de>
29350
29351 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
29352 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
29353 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
29354 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
29355 Unify argument lists.
29356 (xd_read_message, Fdbus_register_signal): Reorder and extend event
29357 arguments and hash table keys. Use unique name for service.
29358 (Fdbus_unregister_signal): Remove checks.
29359 (Vdbus_registered_functions_table): Fix doc string.
29360
293612007-12-05 Magnus Henoch <mange@freemail.hu>
29362
29363 * process.c (make_process): Initialize pty_flag to 0.
29364
293652007-12-05 Jason Rumney <jasonr@gnu.org>
29366
29367 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
29368 specified XBMs.
29369
293702007-12-05 Richard Stallman <rms@gnu.org>
29371
29372 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
29373
293742007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29375
29376 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
29377 New variable.
29378 (mac_try_close_socket) [MAC_OSX]: New function.
29379 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
29380 Update cfsockets_for_select. Replace invalid CFRunLoop source.
29381
29382 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
29383 Use mac_try_close_socket.
29384
293852007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29386
29387 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
29388 reloc_base.
29389 (copy_dysymtab): Compute relocation base here.
29390 (rebase_reloc_address) [__ppc64__]: New function.
29391 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
29392 changed.
29393
293942007-12-05 Jason Rumney <jasonr@gnu.org>
29395
29396 * w32proc.c (sys_spawnve): Quote args with wildcards.
29397
293982007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29399
29400 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
29401 __objc_* sections.
29402 (unrelocate) [_LP64]: Set relocation base to address of data segment.
29403
294042007-12-05 Michael Albinus <michael.albinus@gmx.de>
29405
29406 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
29407 Move check for Vdbus_registered_functions_table to
29408 xd_read_queued_messages.
29409 (xd_read_queued_messages): Protect xd_read_message calls by
29410 internal_condition_case_1.
29411
294122007-12-04 Michael Albinus <michael.albinus@gmx.de>
29413
29414 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
29415 Qdbus_system_bus and Qdbus_session_bus, respectively.
29416 (Vdbus_intern_symbols): Remove.
29417 (Vdbus_registered_functions_table): New hash table.
29418 (XD_SYMBOL_INTERN_SYMBOL): Remove.
29419 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
29420 Rewrite in order to manage registered functions by hash table
29421 Vdbus_registered_functions_table.
29422
294232007-12-03 Jan Djärv <jan.h.d@swipnet.se>
29424
29425 * xterm.c: Update URL to Window Manager Specification in comment.
29426
294272007-12-02 Michael Albinus <michael.albinus@gmx.de>
29428
29429 * config.in (HAVE_DBUS): Add.
29430
29431 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
29432 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
29433 (obj): Add $(DBUS_OBJ).
29434 (LIBES): Add $(DBUS_LIBS).
29435 (dbusbind.o): New target.
29436
29437 * dbusbind.c: New file.
29438
29439 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
29440
29441 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
29442 (Qdbus_event): New Lisp symbol.
29443 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
29444 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 29445 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
29446
29447 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
29448
294492007-12-01 Richard Stallman <rms@gnu.org>
29450
29451 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
29452
294532007-11-30 Jason Rumney <jasonr@gnu.org>
29454
29455 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
29456 (w32con_reset_terminal_modes): Clear screen buffer.
29457 (w32_face_attributes): Don't use color indexes that are out of range.
29458 Only reverse the default colors.
29459
29460 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
29461 WINDOWSNT.
29462
29463 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
29464
294652007-11-29 Jason Rumney <jasonr@gnu.org>
29466
29467 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
29468 (w32_face_attributes): Use Vtty_defined_color_alist to determine
29469 if the terminal colors are initialized.
29470 (unspecified_fg, unspecified_bg): Remove unused declarations.
29471
294722007-11-29 Andreas Schwab <schwab@suse.de>
29473
29474 * keyboard.c (apply_modifiers): Fix typo.
29475
294762007-11-29 Richard Stallman <rms@gnu.org>
29477
29478 * keymap.c (Fcurrent_local_map): Doc fix.
29479
294802007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
29481
29482 * s/gnu-kfreebsd.h: New file.
29483
294842007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
29485
29486 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
29487 Don't cast redundantly.
29488
29489 * keyboard.c (KEY_TO_CHAR): New macro.
29490 (parse_modifiers, apply_modifiers): Accept integer arguments.
29491 (read_key_sequence): Use them to unify the "shift->unshift" mapping
29492 for chars and symbol keys.
29493 After doing such remapping, apply function-key-map again.
29494
294952007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
29496
29497 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
29498 compiled anymore.
29499
295002007-11-26 Andreas Schwab <schwab@suse.de>
29501
29502 * process.c (list_processes_1): Fix indentation level of the
29503 command column.
29504
295052007-11-23 Andreas Schwab <schwab@suse.de>
29506
29507 * editfns.c (Fformat): Handle %c specially since it requires the
29508 argument to be of type int.
29509
295102007-11-23 Markus Triska <markus.triska@gmx.at>
29511
29512 * emacs.c (main): Call init_editfns before init_process, since
29513 init_process sets Vprocess_connection_type depending on OS release.
29514
295152007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
29516
29517 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
29518 (find_symbol_value): Use do_symval_forwarding.
29519
29520 * data.c (set_internal): Set the value in the `cons-cell' (for
29521 Buffer_Local_values) not only for frame-local variables.
29522
295232007-11-22 Andreas Schwab <schwab@suse.de>
29524
29525 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
29526 values to sprintf.
29527 * keymap.c (Fsingle_key_description): Likewise.
29528 * print.c (print_object): Likewise.
29529
295302007-11-22 Jan Djärv <jan.h.d@swipnet.se>
29531
29532 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
29533 file for image is nil.
29534
295352007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
29536
29537 * term.c: Include stdarg.h.
29538 (fatal): Implement using varargs.
29539 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
29540
295412007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29542
29543 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
29544 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
29545 Update call to buffer_slot_type_mismatch.
29546 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
29547 (buffer_slot_type_mismatch): Update.
29548 * buffer.c (buffer_local_types): Remove.
29549 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
29550 (defvar_per_buffer): Set the type in the buffer_objfwd.
29551
295522007-11-21 Jason Rumney <jasonr@gnu.org>
29553
29554 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
29555 CreateFileMapping returns NULL on failure.
29556
295572007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29558
29559 * search.c (Fset_match_data): Remove the `evaporate' feature.
29560 (unwind_set_match_data): Don't use the `evaporate' feature.
29561
295622007-11-21 Jason Rumney <jasonr@gnu.org>
29563
29564 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
29565
29566 * w32console.c (w32con_write_glyphs): Remove unused variables.
29567
295682007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
29569
29570 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
29571
29572 * s/darwin.h (MULTI_KBOARD): Remove.
29573
29574 * macfns.c (x_create_tip_frame, Fx_create_frame)
29575 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
29576
295772007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
29578
29579 * buffer.c (Fbuffer_local_value): Remove redundant test.
29580 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
29581 than in `current-buffer' to match the comment.
29582 Do the swap using swap_in_global_binding.
29583
29584 * data.c (store_symval_forwarding, set_internal):
29585 * eval.c (specbind): Remove dead code.
29586
29587 * coding.c (detect_coding, Fupdate_coding_systems_internal):
29588 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
29589 Since we do not want to see internal Lisp_*fwd objects here.
29590
295912007-11-18 Jan Djärv <jan.h.d@swipnet.se>
29592
29593 * sysdep.c (init_system_name): Use getaddrinfo if available.
29594
29595 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
29596 (x_scroll_bar_note_movement): start, end, with, height in struct
29597 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
29598
295992007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
29600
29601 * puresize.h (BASE_PURESIZE): Increase to 1190000.
29602
296032007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
29604
29605 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
29606 This undoes Richard's change of 14-Oct-2002.
29607
29608 * alloc.c (allocate_other_vector):
29609 * lisp.h (allocate_other_vector): Remove.
29610
29611 * window.c (struct save_window_data): Move non-lisp data to the end
29612 and make it `int' rather than Lisp_Object.
29613 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
29614 Done wrap/unwrap integer values.
29615 (Fset_window_configuration, compare_window_configurations):
29616 Update use of fields to their new types.
29617
29618 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
29619 Turn integer fields into `int'. Merge x_window_low and x_window_high.
29620 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
29621 (SET_SCROLL_BAR_X_WINDOW): Remove.
29622 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
29623 Access the new x_window field directly.
29624 * xterm.c (x_scroll_bar_create): Use a pseudovector.
29625 Don't wrap/unwrap integers into Lisp_Objects.
29626 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
29627 (x_scroll_bar_report_motion):
29628 Don't wrap/unwrap integers into Lisp_Objects.
29629 (x_term_init): Use SDATA.
29630 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
29631 (x_scroll_bar_set_handle, x_scroll_bar_remove)
29632 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
29633 (x_scroll_bar_report_motion, x_scroll_bar_clear):
29634 * xfns.c (x_set_background_color):
29635 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29636 Access the new x_window field directly.
29637
29638 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29639 (allocate_pseudovector): Make non-static.
29640
29641 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29642 (allocate_pseudovector): Declare.
29643 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29644
296452007-11-15 Andreas Schwab <schwab@suse.de>
29646
29647 * editfns.c (Fformat): Correctly format EMACS_INT values.
29648 Also take precision into account when formatting an integer.
29649
29650 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29651
296522007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
29653
29654 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29655 (syms_of_keyboard): Defsubr it.
29656
29657 * data.c (swap_in_global_binding): Fix longstanding bug where
29658 store_symval_forwarding was not called with the right second argument,
29659 thus causing objfwd-ing from being dropped.
29660
296612007-11-14 Juanma Barranquero <lekktu@gmail.com>
29662
29663 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29664 (Fx_display_pixel_height, Fx_display_planes)
29665 (Fx_display_color_cells, Fx_server_max_request_size)
29666 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29667 (Fx_display_visual_class, Fx_display_save_under):
29668 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29669 (Fx_display_pixel_height, Fx_display_planes)
29670 (Fx_display_color_cells, Fx_server_max_request_size)
29671 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29672 (Fx_display_mm_height, Fx_display_mm_width)
29673 (Fx_display_backing_store, Fx_display_visual_class)
29674 (Fw32_select_font, Fx_display_save_under):
29675 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29676 (Fx_display_pixel_height, Fx_display_planes)
29677 (Fx_display_color_cells, Fx_server_max_request_size)
29678 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29679 (Fx_display_save_under): Fix typos in docstrings.
29680
296812007-11-14 Juanma Barranquero <lekktu@gmail.com>
29682
29683 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29684 corresponding to deleted entries; they are an implementation detail.
29685 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29686 Remove variables.
29687 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29688 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29689 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29690 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29691 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29692 (Fw32_define_rgb_color, Fw32_load_color_file)
29693 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29694 Fix typos in docstrings.
29695 (Fx_server_version): Reflow docstring.
29696 (Fw32_shell_execute): Doc fixes.
29697
296982007-11-13 Juanma Barranquero <lekktu@gmail.com>
29699
29700 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29701 if w32_parse_hot_key returned nil.
29702
297032007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
29704
29705 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29706
297072007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 29708
aac0c6e3
MR
29709 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29710
29711 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29712
29713 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29714 Remove W32_SCROLL_BAR_CLICK_EVENT.
29715
29716 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29717 Add MULTIMEDIA_KEY_EVENT.
29718
29719 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29720 (lispy_multimedia_keys) [WINDOWSNT]: New array.
29721 (make_lispy_event) [WINDOWSNT]: Use it to translate
29722 MULTIMEDIA_KEY_EVENT.
29723
29724 * w32term.h (WM_APPCOMMAND): Define if not already.
29725 (GET_APPCOMMAND_LPARAM): Likewise.
29726
29727 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29728 WM_APPCOMMAND.
29729
29730 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29731 (syms_of_w32fns): Export and initialize it.
29732 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29733
297342007-11-09 Chong Yidong <cyd@stupidchicken.com>
29735
29736 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
29737 twice.
29738
29739 * xdisp.c (handle_face_prop): Fix last change.
29740
297412007-11-09 Richard Stallman <rms@gnu.org>
29742
29743 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
29744 not just for after-strings and before-strings.
29745 Call face_for_overlay_string and pass the overlay to it.
29746 (handle_display_prop): Determine whether property came from an overlay.
29747 Pass OVERLAY arg to handle_single_display_spec.
29748 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
29749 (load_overlay_strings): Fill in it->string_overlays.
29750 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
29751
29752 * xfaces.c (face_for_overlay_string): Function renamed from
29753 face_at_buffer_position_no_overlays, and add arg OVERLAY.
29754
29755 * dispextern.h (struct it): New elt string_overlays.
29756 New elt from_overlay, also in stack.
29757 Rearrange a few elements.
29758 (face_for_overlay_string): Decl renamed from
29759 face_at_buffer_position_no_overlays, and add argument.
29760
297612007-11-09 Richard Stallman <rms@gnu.org>
29762
29763 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29764 to get the base face for an overlay string.
29765
29766 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29767
29768 * xfaces.c (face_at_buffer_position_no_overlays): New function.
29769
29770 * xdisp.c (handle_stop): Move some code out of loop.
29771
297722007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29773
29774 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29775 Fix conversion from Lisp object to ATSUFontID.
29776
297772007-11-09 Jason Rumney <jasonr@gnu.org>
29778
29779 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
29780
297812007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29782
29783 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
29784 Don't assume regions are aligned to page boundary.
29785 (print_load_command_name): Add LC_UUID if defined.
29786
297872007-11-09 Richard Stallman <rms@gnu.org>
29788
29789 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
29790
297912007-11-07 Jason Rumney <jasonr@gnu.org>
29792
29793 * s/windows95.h: Remove.
29794
297952007-11-06 Jan Djärv <jan.h.d@swipnet.se>
29796
29797 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
29798 abort with a message on unhandled store_type values.
29799
298002007-11-01 Jan Djärv <jan.h.d@swipnet.se>
29801
29802 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
29803 Remove HAVE_X11R5 and HAVE_X11R4.
29804
298052007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29806
29807 * Makefile.in: Remove references to sunfns.c and sunfns.o.
29808
298092007-11-01 Johan Bockgård <bojohan@gnu.org>
29810
29811 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
29812 Don't set s->stippled_p here, since it has already been set by
29813 x_set_glyph_string_gc from x_draw_glyph_string.
29814
298152007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29816
29817 * sunfns.c: Remove file.
29818
29819 * m/sun386.h:
29820 * m/sun2.h:
29821 * m/sparc.h: Remove Sun windows code.
29822
298232007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
29824
29825 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
29826 (init_keyboard): Set current_kboard's window-system to nil.
29827 (tty_read_avail_input): Typo.
29828 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
29829
298302007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
29831
29832 * s/usg5-4.h:
29833 * s/usg5-3.h:
29834 * s/ptx.h:
29835 * m/is386.h:
29836 * m/ibmps2-aix.h:
29837 * Makefile.in: Remove all mentions of X10.
29838
29839 * dispnew.c (syms_of_display): Don't mention version 10.
29840
298412007-10-28 Juanma Barranquero <lekktu@gmail.com>
29842
29843 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
29844 ($(BLD)/abbrev.$(O)): Remove.
29845
298462007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
29847
29848 Rewrite abbrev.c in Elisp.
29849 * image.c (Qcount): Don't declare as extern.
29850 (syms_of_image): Initialize and staticpro `Qcount'.
29851 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
29852 * emacs.c (main): Don't call syms_of_abbrev.
29853 * Makefile.in (obj): Remove abbrev.o.
29854 (abbrev.o): Remove.
29855 * abbrev.c: Remove.
29856
298572007-10-26 Martin Rudalics <rudalics@gmx.at>
29858
29859 * window.c (window_min_size_2): Don't count header-line.
29860
298612007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
29862
29863 * frame.h (struct frame): Move all bit fields after the first bit
29864 field to take advantage of the available space. Group all the
29865 chars together to reduce wasted space due to padding.
29866
298672007-10-26 Juanma Barranquero <lekktu@gmail.com>
29868
29869 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
29870
29871 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
29872 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
29873 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
29874 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
29875 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
29876 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
29877 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
29878 (last_marked, mark_object_loop_halt): Make static.
29879
29880 * frame.c (syms_of_frame) <delete-frame-functions>:
29881 Fix typo in docstring.
29882
298832007-10-25 Juanma Barranquero <lekktu@gmail.com>
29884
29885 * w32.c (init_environment): Fix tiny memory leak.
29886 (w32_get_resource): Remove unused variable `ok'.
29887
298882007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
29889
29890 Make `window-system' into a keyboard-local variable (rather than
29891 frame-local as done originally by multi-tty).
29892
29893 * keyboard.h (struct kboard): Add Vwindow_system.
29894 * keyboard.c (init_kboard): Set a default for Vwindow_system.
29895 (mark_kboards): Mark Vwindow_system.
29896
29897 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
29898 (init_display): Don't set the obsolete `window-system' frame-param.
29899
29900 * xterm.c (x_term_init):
29901 * w32term.c (w32_create_terminal):
29902 * term.c (init_tty): Set Vwindow_system.
29903 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
29904 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
29905
29906 * xfns.c (Fx_create_frame, x_create_tip_frame):
29907 * w32fns.c (Fx_create_frame, x_create_tip_frame):
29908 * macfns.c (Fx_create_frame):
29909 Don't set the obsolete `window-system' frame-param.
29910
29911 * frame.h (Qwindow_system): Remove.
29912 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
29913 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
29914
299152007-10-24 Richard Stallman <rms@gnu.org>
29916
29917 * frame.c (x_figure_window_size): For fullscreen case,
29918 set USPosition | PPosition without clobbering rest of window_prompting.
29919
29920 * keyboard.c (Fcurrent_idle_time): Doc fix.
29921
29922 * print.c (Fwith_output_to_temp_buffer): Doc fix.
29923
299242007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
29925
29926 * process.c (unwind_request_sigio): Only define if __ultrix__.
29927
29928 * callproc.c (child_setup): Remove spurious *.
29929
29930 * lisp.h (Fget_text_property): Declare.
29931 (have_menus_p): Declare it here rather than in sys-dep header files.
29932 * macterm.h (have_menus_p):
29933 * msdos.h (have_menus_p):
29934 * xterm.h (have_menus_p): Remove.
29935
29936 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
29937 (Fmake_variable_frame_local): Just check the variable's const-ness
29938 rather than checking nil or t.
29939
299402007-10-22 Jason Rumney <jasonr@gnu.org>
29941
29942 * w32fns.c: Include math.h.
29943 (w32_abort): Declaration moved to nt/config.nt.
29944
29945 * s/ms-w32.h (HAVE_STDLIB_H): Define.
29946 (abort): Redefinition moved to nt/config.nt.
29947
29948 * m/windowsnt.h: Remove.
29949
299502007-10-22 Juanma Barranquero <lekktu@gmail.com>
29951
29952 * emacs.c (Fdump_emacs): Fix typo in message.
29953 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
29954 <installation-directory>: Reflow docstring.
29955
299562007-10-22 Juri Linkov <juri@jurta.org>
29957
29958 * minibuf.c: Allow minibuffer default to be a list of default values.
29959 With empty input use the first element of this list as returned default.
29960 (string_to_object)
29961 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
29962 (read_minibuf): If defalt is cons, set histstring to its car.
29963 (Fread_string): If default_value is cons, set val to its car.
29964 (Fread_buffer): If def is cons, use its car.
29965 (Fcompleting_read): If defalt is cons, set val to its car.
29966
299672007-10-21 Michael Albinus <michael.albinus@gmx.de>
29968
29969 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
29970
299712007-10-20 Juanma Barranquero <lekktu@gmail.com>
29972
29973 * doc.c (Fdocumentation): Check for advice in all cases.
29974
299752007-10-19 Chong Yidong <cyd@stupidchicken.com>
29976
29977 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
29978
299792007-10-19 Richard Stallman <rms@gnu.org>
29980
29981 * doc.c (Fdocumentation): Check for and handle an advised function.
29982
299832007-10-19 Juanma Barranquero <lekktu@gmail.com>
29984
29985 * process.c (Fset_process_filter): Doc fix.
29986
299872007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
29988
29989 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
29990 which caused key-translation-map to applied repeatedly (thus breaking
29991 double-mode).
29992
299932007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29994
29995 * xselect.c (x_own_selection, x_handle_selection_clear)
29996 (x_clear_frame_selections):
29997 * w32menu.c (list_of_panes, list_of_items):
29998 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
29999 * textprop.c (validate_plist, interval_has_all_properties)
30000 (interval_has_some_properties, interval_has_some_properties_list)
30001 (add_properties, text_property_list):
30002 * process.c (Fget_buffer_process, list_processes_1, status_notify):
30003 * minibuf.c (Fassoc_string):
30004 * macselect.c (x_own_selection, x_clear_frame_selections)
30005 (Fx_disown_selection_internal):
30006 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
30007 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
30008
300092007-10-17 Chong Yidong <cyd@stupidchicken.com>
30010
30011 * process.c: Link to libs for calling res_init() if available.
30012 (Fmake_network_process): Call res_init() before getaddrinfo or
30013 gethostbyname, if possible.
30014
300152007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
30016
30017 * lread.c (read1): Set pvectype for char_tables.
30018
30019 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
30020 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
30021 Add type checks.
30022 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
30023
30024 * alloc.c (free_misc): Use XMISCTYPE.
30025 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
30026
300272007-10-17 Glenn Morris <rgm@gnu.org>
30028
30029 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
30030 (syms_of_minibuf): Add Qcompletion_ignore_case.
30031 * dired.c (Qcompletion_ignore_case): Change to external.
30032 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
30033 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
30034 (Fread_file_name): Use it rather than intern'ing.
30035
30036 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
30037 (Fread_coding_system): Ignore case of user input.
30038
300392007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30040
30041 * xdisp.c (handle_display_prop): Ignore display specs after
30042 replacing one when string text is being replaced.
30043 (handle_single_display_spec): Pretend as if characters with display
30044 property haven't been consumed only when buffer text is being replaced.
30045
300462007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
30047
30048 * xfns.c (Fx_create_frame, Fx_display_list):
30049 * window.c (window_fixed_size_p, enlarge_window)
30050 (shrink_window_lowest_first):
30051 * macterm.c (init_font_name_table):
30052 * macfns.c (Fx_create_frame, Fx_display_list):
30053 * lread.c (close_load_descs):
30054 * keyboard.c (read_char_x_menu_prompt):
30055 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
30056 * coding.c (code_convert_region_unwind): Test the type of an object
30057 rather than just !NILP before extracting data from it.
30058
30059 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
30060
30061 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
30062 (XMISCANY): New macro.
30063 (XMISCTYPE): Use it.
30064 (struct Lisp_Misc_Any): New type.
30065 (union Lisp_Misc): Use it.
30066 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
30067 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
30068 (find_symbol_value, set_internal, default_value, Fset_default)
30069 (Fmake_variable_buffer_local, Fmake_local_variable)
30070 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
30071 (Flocal_variable_if_set_p, Fvariable_binding_locus):
30072 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
30073 * alloc.c (allocate_buffer): Set the size and tag.
30074 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
30075 Use XMISCANY.
30076 (die): Follow the GNU convention for error messages.
30077 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
30078 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
30079 tag any more.
30080 (set_buffer_internal_1):
30081 * frame.c (store_frame_param):
30082 * eval.c (specbind):
30083 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
30084
30085 * doc.c (Fsnarf_documentation): Simplify.
30086
300872007-10-14 Juanma Barranquero <lekktu@gmail.com>
30088
30089 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
30090 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
30091
300922007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
30093
30094 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
30095
300962007-10-14 Juanma Barranquero <lekktu@gmail.com>
30097
30098 * eval.c (do_autoload): Don't save autoloads.
30099
30100 * data.c (Ffset): Save autoload of the function being set.
30101
301022007-10-07 John Paul Wallington <jpw@pobox.com>
30103
30104 * xfns.c (x_create_tip_frame): Set the `display-type' frame
30105 parameter before setting up faces.
30106
301072007-10-13 Eli Zaretskii <eliz@gnu.org>
30108
30109 * ccl.c (Fregister_code_conversion_map):
30110 * keyboard.c (append_tool_bar_item): Reformat last change.
30111
30112 * lisp.h (eabs): Rename from `abs'. All callers changed.
30113
301142007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
30115
30116 * buffer.c (add_overlay_mod_hooklist):
30117 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
30118 * fontset.c (make_fontset):
30119 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
30120 (append_tool_bar_item):
30121 * macmenu.c (grow_menu_items):
30122 * w32menu.c (grow_menu_items):
30123 * xmenu.c (grow_menu_items): Use larger_vector.
30124
301252007-10-13 Eli Zaretskii <eliz@gnu.org>
30126
30127 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
30128 selected frame'' on MSDOS).
30129
301302007-10-12 Martin Rudalics <rudalics@gmx.at>
30131
30132 * frame.c (Qexplicit_name): New variable.
30133 (x_report_frame_params): Report it in parameter alist.
30134 (syms_of_frame): Intern and staticpro it.
30135
301362007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
30137
30138 * macfns.c (x_create_tip_frame): Set terminal for frame.
30139
301402007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
30141
30142 * frame.c (Qenvironment): Remove.
30143 (syms_of_frame) <Qenvironment>: Don't initialize.
30144 (Fdelete_frame): Don't treat the `environment' param specially.
30145 * frame.h (Qenvironment): Don't declare.
30146 * callproc.c (set_initial_environment): Don't set unused frame param.
30147
30148 * frame.c (Fframe_with_environment): Remove.
30149 (syms_of_frame) <Sframe_with_environment>: Don't declare.
30150
30151 * lisp.h (Fframe_with_environment): Don't declare.
30152
301532007-10-10 Juanma Barranquero <lekktu@gmail.com>
30154
30155 * indent.c (indent_tabs_mode, last_known_column)
30156 (last_known_column_modified): Make static.
30157 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
30158
301592007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
30160
30161 * puresize.h (BASE_PURESIZE): Increase to 1170000.
30162
301632007-10-09 Jason Rumney <jasonr@gnu.org>
30164
30165 * w32term.c (x_set_window_size): Disable code that attempts to tell
30166 Lisp code about a size change before it actually happens.
30167
301682007-10-09 Richard Stallman <rms@gnu.org>
30169
30170 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
30171 return HANDLED_RETURN.
30172
301732007-10-08 Martin Rudalics <rudalics@gmx.at>
30174
30175 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
30176 when there's an unread command event.
30177
30178 * frame.c (focus_follows_mouse): Move here from frame.el to allow
30179 window autoselection act appropriately when leaving selected frame.
30180 (syms_of_frame): Initialize focus_follows_mouse.
30181 * frame.h (focus_follows_mouse): Extern it.
30182 * macterm.c (XTread_socket): When focus_follows_mouse is nil
30183 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
30184 * msdos.c (dos_rawgetc): Likewise.
30185 * w32term.c (w32_read_socket): Likewise.
30186 * xterm.c (handle_one_xevent): Likewise.
30187 * xdisp.c (syms_of_xdisp): In doc-string of
30188 mouse-autoselect-window mention focus-follows-mouse.
30189
301902007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30191
30192 * macterm.c (mac_load_query_font): Fix missing return value.
30193 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
30194 Add BLOCK_INPUT.
30195
301962007-10-08 Richard Stallman <rms@gnu.org>
30197
30198 * xdisp.c (get_window_cursor_type): Implement documented behavior
30199 for cursor-in-non-selected-windows = t.
30200
302012007-10-08 Jason Rumney <jasonr@gnu.org>
30202
30203 * w32.c (w32_get_resource): Always close registry keys.
30204
302052007-10-08 Jason Rumney <jasonr@gnu.org>
30206
30207 * makefile.w32-in (LIBS): Add COMCTL32.
30208
30209 * w32fns.c (globals_of_w32fns): Init common controls.
30210
302112007-10-08 Richard Stallman <rms@gnu.org>
30212
30213 * image.c (our_memory_buffer): Rename from omfib_buffer.
30214
302152007-10-08 Richard Stallman <rms@gnu.org>
30216
30217 * buffer.c (Foverlays_at): Doc fix.
30218
302192007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
30220
30221 * fns.c (Fplist_put): Preserve uneven tail data.
30222
302232007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
30224
30225 * termhooks.h (enum event_kind): Remove trailing comma.
30226
30227 * frame.h (enum): Remove trailing comma.
30228
302292007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
30230
30231 * w32proc.c (delete_child): Don't terminate threads of zombies.
30232
302332007-10-08 Martin Rudalics <rudalics@gmx.at>
30234
30235 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
30236
30237 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
30238 last-repeatable-command.
30239 (init_kboard): Initialize Vlast_repeatable_command.
30240 (command_loop_1): Set it to real_this_command unless that was
30241 bound to an input event.
30242 (mark_kboards): Mark it.
30243
302442007-10-08 Richard Stallman <rms@gnu.org>
30245
30246 * eval.c (condition-case): Doc fix.
30247
302482007-10-08 Masatake YAMATO <jet@gyve.org>
30249
30250 * xfaces.c (tty_supports_face_attributes_p): Fix code
30251 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
30252 was copied and not edited.
30253
302542007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
30255
30256 Add new `input-decode-map' keymap and use it for terminal
30257 escape sequences.
30258 * keyboard.h (struct kboard): Add Vinput_decode_map.
30259 Remove Vlocal_key_translation_map.
30260 * keyboard.c (read_key_sequence): Add support for input-decode-map.
30261 (init_kboard): Init input-decode-map.
30262 Replace local-key-translation-map back with key-translation-map.
30263 (syms_of_keyboard): Declare input-decode-map.
30264 Remove local-key-translation-map. Update docstrings.
30265 (mark_kboards): Mark Vinput_decode_map.
30266 Don't mark Vlocal_key_translation_map.
30267 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
30268 Replace local-key-translation-map back with key-translation-map.
30269 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
30270 Bind in input-decode-map rather than function-key-map.
30271
30272 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
30273 This was made redundant by the previous introduction of XSETPVECTYPE.
30274
302752007-10-09 Richard Stallman <rms@gnu.org>
30276
30277 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
30278
302792007-09-29 Richard Stallman <rms@gnu.org>
30280
30281 * eval.c (internal_condition_case_2, internal_condition_case_1)
30282 (internal_condition_case): Reenable abort if x_catching_errors ()
30283 to see if that really happens and why.
30284
302852007-10-06 Andreas Schwab <schwab@suse.de>
30286
30287 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
30288
302892007-10-04 Juanma Barranquero <lekktu@gmail.com>
30290
30291 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
30292
302932007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
30294
30295 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
30296
302972007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
30298
30299 * window.h (struct window):
30300 * window.c (struct save_window_data, struct saved_window):
30301 * termhooks.h (struct terminal):
30302 * process.h (struct Lisp_Process):
30303 * frame.h (struct frame):
30304 * buffer.h (struct buffer):
30305 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
30306 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
30307 The size field of (pseudo)vectors is now unsigned.
30308 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
30309
30310 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
30311 Turn `count' into an integer.
30312
30313 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
30314 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
30315 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
30316 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
30317 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
30318
30319 * alloc.c (allocate_pseudovector): New fun.
30320 (ALLOCATE_PSEUDOVECTOR): New macro.
30321 (allocate_window, allocate_terminal, allocate_frame)
30322 (allocate_process): Use it.
30323 (mark_vectorlike): New function.
30324 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
30325 (mark_terminals): Use it.
30326 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
30327 (Fmake_byte_code): Use XSETPVECTYPE.
30328
30329 * frame.c (Fframe_parameters): Minor simplification.
30330
30331 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
30332
30333 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
30334
30335 * buffer.c (Fget_buffer_create, init_buffer_once):
30336 * lread.c (defsubr):
30337 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
30338
30339 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
30340 defined differently in the m/*.h files.
30341 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
30342 (XSETPVECTYPE): New macro.
30343 (XSETPSEUDOVECTOR): Use it.
30344
30345 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
30346 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
30347
30348 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
30349 * lread.c (defvar_per_buffer):
30350 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
30351
30352 * window.c (candidate_window_p): Only consider as visible frames that
30353 are on the same terminal.
30354
30355 * m/ibms390x.h (MARKBIT): Remove unused macro.
30356
303572007-10-01 Juanma Barranquero <lekktu@gmail.com>
30358
30359 * lread.c (Fload): Fix typo in docstring.
30360
303612007-10-01 Michaël Cadilhac <michael@cadilhac.name>
30362
30363 * floatfns.c (Fexpt): Manually check for overflows, so that a power
30364 of a non-zero value can't yield zero.
30365
303662007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
30367
30368 * term.c (term_clear_mouse_face, term_mouse_highlight)
30369 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
30370
30371 * print.c (safe_debug_print): Use XHASH.
30372
30373 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
30374 Lisp elements such as tags.
30375 (XHASH): New macro.
30376 (EQ): Use it.
30377 (SREF, SSET, STRING_COPYIN): Use SDATA.
30378 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
30379
30380 * alloc.c (mark_terminal): Remove left-over declaration.
30381 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
30382 (allocate_vectorlike): Remove type argument. Adjust callers.
30383 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
30384 Only handle the one remaining MEM_TYPE_VECTORLIKE.
30385
30386 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
30387 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
30388 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
30389 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
30390 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
30391 Use them.
30392
30393 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
30394 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
30395 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
30396
303972007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
30398
30399 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
30400 loaded by default.
30401
304022007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
30403
30404 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
30405 on this tty.
30406 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
30407
30408 * term.c (mouse_face_window): Rename from Qmouse_face_window.
30409 Update all users.
30410 (handle_one_term_event): Use Gpm_DrawPointer.
30411 (Fgpm_mouse_start): Rename from Fterm_open_connection.
30412 Signal errors instead of returning nil. Always return nil.
30413 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
30414 Make it a noop if gpm-mouse was not activated.
30415 (syms_of_term): Update names.
30416
304172007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
30418
30419 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
30420 (init_sys_modes): Check that gpm_tty is the current tty.
30421
30422 * alloc.c (allocate_terminal): Set the vector size to only count the
30423 lisp fields. Initialize those to nil.
30424 (mark_object): Don't treat terminals specially.
30425 (mark_terminal): Remove.
30426 (mark_terminals): Use mark_object instead.
30427
30428 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
30429 the GC to the beginning.
30430
30431 * indent.h:
30432 * indent.c: Use EMACS_INT for ints coming from Elisp data.
30433
30434 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
30435
304362007-09-25 Jason Rumney <jasonr@gnu.org>
30437
30438 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
30439
30440 * w32console.c (create_w32cons_output): Remove.
30441
30442 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
30443
30444 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
30445 (reset_sys_modes): Use reset_terminal_modes_hook.
30446
304472007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
30448
30449 * eval.c (do_autoload): Don't output any message.
30450
304512007-09-24 Juri Linkov <juri@jurta.org>
30452
30453 * emacs.c (standard_args): Change priority of "--no-splash"
30454 from 40 to 3. Add "--no-desktop" with the same priority.
30455
304562007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
30457
30458 * alloc.c (gc_sweep): Check cons cell mark bits word by word
30459 and optimize the case where they are all 1.
30460
304612007-09-23 Johannes Weiner <hannes@saeurebad.de>
30462
30463 * lisp.h (abs): Define if not defined.
30464 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
30465 Don't define `abs', since it's defined in lisp.h.
30466
304672007-09-22 Eli Zaretskii <eliz@gnu.org>
30468
30469 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
30470 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
30471 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
30472 (init_tty): Use DEV_TTY instead of "/dev/tty".
30473 [WINDOWSNT]: No need to protect from NAME arg being null.
30474
304752007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
30476
30477 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
30478 up the tty state.
30479
304802007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30481
30482 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
30483 (gpm_tty): Change its type.
30484 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
30485 (gpm_tty): Change its type and initialize it.
30486 (Fterm_open_connection): Check the frame is indeed a tty.
30487 Use the new gpm_tty.
30488 (Fterm_close_connection): Use the new gpm_tty.
30489 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
30490 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
30491
304922007-09-21 Juanma Barranquero <lekktu@gmail.com>
30493
30494 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
30495 underline_color, to draw strike-through.
30496
304972007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30498
30499 * lisp.h (allocate_terminal): Declare.
30500
30501 * window.c (candidate_window_p): Consider frames that are being placed
30502 by the user as somewhere between visible and iconified.
30503 (window_loop): Prefer windows on the current frame.
30504 (Fselect_window): Move the use of select-frame to the beginning so we
30505 can just delegate all the work (it'll call us back anyway).
30506
30507 * frame.c (Qdisplay_environment_variable):
30508 * frame.h (Qdisplay_environment_variable): Delete.
30509
30510 * .gdbinit (xbacktrace): Print the arg's address rather than the value
30511 of the first arg, since that value may be a union.
30512
30513 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
30514 parameter rather than Qdisplay_environment_variable. If all else
30515 fails, look for DISPLAY in initial-environment.
30516
305172007-09-21 Glenn Morris <rgm@gnu.org>
30518
30519 * Makefile.in (emacstool): Remove target.
30520 (lisp, shortlisp): Remove termdev.elc.
30521
305222007-09-21 Markus Triska <markus.triska@gmx.at>
30523
30524 * xterm.c (x_delete_display): Compile session management conditionally.
30525
305262007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
30527
30528 * callproc.c (getenv_internal_1): New function.
30529 (getenv_internal): Use it.
30530 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
30531
30532 * terminal.c (get_terminal): Don't accept ints to represent terminals.
30533 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
30534 (Fset_terminal_parameter): Work with dead terminals as well.
30535 (Fmodify_terminal_parameters): Remove.
30536
30537 * terminal.c (get_terminal): Handle terminals.
30538 Make sure the terminal returned is live.
30539 (create_terminal): Use allocate_terminal.
30540 (mark_terminals): Move to alloc.c.
30541 (delete_terminal): Use terminal->name as liveness status.
30542 NULL out fields after freeing their contents.
30543 Don't deallocate the object.
30544 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
30545 rather than an int.
30546 (Fterminal_live_p): Accept non-integer arguments.
30547 (Fterminal_list): Return terminal objects rather than an ints.
30548
30549 * alloc.c (enum mem_type): New member for `terminal' objects.
30550 (allocate_terminal): New function.
30551 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
30552 Handle terminals.
30553 (mark_terminal): New fun.
30554 (mark_terminals): Move from terminal.c.
30555
30556 * term.c (get_tty_terminal): Don't treat output_initial specially.
30557 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
30558 (delete_tty): Use terminal->name as liveness status.
30559
30560 * termhooks.h (struct terminal): Make it into a pseudovector.
30561 Remove `deleted' replaced by checking `name's nullness.
30562
30563 * print.c (print_object): Handle terminals.
30564
30565 * lisp.h (enum pvec_type): New `terminal' pseudovector.
30566 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
30567
30568 * frame.c (make_terminal_frame):
30569 * keyboard.c (tty_read_avail_input):
30570 * w32term.c (x_delete_terminal):
30571 * xfns.c (Fx_create_frame, x_create_tip_frame):
30572 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
30573
305742007-09-20 Glenn Morris <rgm@gnu.org>
30575
30576 * process.c (Fmake_network_process): Doc fix.
30577
305782007-09-19 Jason Rumney <jasonr@gnu.org>
30579
30580 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
30581
305822007-09-19 Michaël Cadilhac <michael@cadilhac.name>
30583
30584 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
30585 Fix a C warning regarding variable constness.
30586
30587 * xterm.c (handle_one_xevent): Fix a C warning.
30588
305892007-09-18 Jason Rumney <jasonr@gnu.org>
30590
30591 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
30592
305932007-09-17 Jan Djärv <jan.h.d@swipnet.se>
30594
30595 * gtkutil.c (gdpy_def): New variable.
30596 (xg_initialize): Initialize gdpy_def.
30597 (xg_display_close): If no other display exists, set gdpy_def to a
30598 new connection.
30599
306002007-09-16 Jan Djärv <jan.h.d@swipnet.se>
30601
30602 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
30603 when we have no file name for the icon.
30604 (xg_tool_bar_expose_callback): Remove.
30605 (xg_create_tool_bar): Don't connect expose signal to
30606 xg_tool_bar_expose_callback.
30607 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
30608
306092007-09-16 Andreas Schwab <schwab@suse.de>
30610
30611 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
30612 values instead of zapping them.
30613
306142007-09-14 Glenn Morris <rgm@gnu.org>
30615
30616 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
30617 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
30618 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
30619 scope and rename to omfib_buffer for clarity.
30620 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
30621
306222007-09-14 Kenichi Handa <handa@m17n.org>
30623
30624 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
30625
306262007-09-13 Jason Rumney <jasonr@gnu.org>
30627
30628 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
30629
30630 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
30631
30632 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
30633 (mac_term_init): Call here instead, passing rif.
30634
306352007-09-13 Glenn Morris <rgm@gnu.org>
30636
30637 * s/hpux.h: No longer define `static' as nothing.
30638
306392007-09-13 Johan Bockgård <bojohan@gnu.org>
30640
30641 * callint.c (Fcall_interactively): Remove unused var `fun'.
30642
306432007-09-12 Romain Francoise <romain@orebokech.com>
30644
30645 * window.c (prefer_window_split_horizontally, display_buffer):
30646 Revert 2007-09-08 change.
30647
306482007-09-12 Glenn Morris <rgm@gnu.org>
30649
30650 * alloca.c: Remove file.
30651 * Makefile.in (alloca): Do not undef.
30652 (allocaobj, alloca.o): Remove.
30653 (otherobj): Remove allocaobj.
30654 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30655 * regex.c (C_ALLOCA): Remove all references and code that was only
30656 used when this was defined.
30657 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30658 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30659 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30660
30661 * Makefile.in (SOURCES, unlock, relock): Delete.
30662
30663 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30664 (menu_grab_callback): All uses changed.
30665
30666 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30667 (x_reply_selection_request): All uses changed.
30668
306692007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
30670
30671 * lread.c (load_warn_old_style_backquotes): Change message to look
30672 better when it appears in the middle of byte-compiler messages.
30673
306742007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
30675
30676 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30677
30678 * xterm.c (x_create_terminal): Add comment.
30679
30680 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30681
306822007-09-10 Richard Stallman <rms@gnu.org>
30683
30684 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30685
306862007-09-10 Michaël Cadilhac <michael@cadilhac.name>
30687
30688 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30689 (DEFUN): Document `intspec', use it instead of `prompt'.
30690
30691 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30692
30693 * data.c (Finteractive_form): If the interactive specification starts
30694 with a `(', use it as a Lisp form.
30695
30696 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30697 name and file modes.
30698
30699 * callint.c (Fcall_interactively): Comment fixes.
30700
307012007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
30702
30703 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30704 and compiled functions.
30705
307062007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
30707
30708 * window.c (prefer_window_split_horizontally): New variable.
30709 (display_buffer): Consider splitting window horizontally depending
30710 on prefer_window_split_horizontally.
30711
307122007-09-08 Eli Zaretskii <eliz@gnu.org>
30713
30714 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30715
307162007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30717
30718 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30719
30720 * frame.c (x_set_frame_parameters): Check number is positive before
30721 using XFASTINT.
30722
30723 * window.c (freeze_window_start): Don't presume selected_window holds
30724 a window object.
30725 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30726
307272007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
30728
30729 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30730
307312007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30732
30733 * window.c (Vsplit_window_preferred_function): New var.
30734 (Fdisplay_buffer): Use it.
30735 (syms_of_window): Export, and initialize it.
30736
307372007-09-06 Pixel <pixel@mandriva.com> (tiny change)
30738
30739 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
30740
307412007-09-06 Glenn Morris <rgm@gnu.org>
30742
30743 * gtkutil.c (menu_grab_callback) <cnt>:
30744 * xselect.c (x_reply_selection_request) <cnt>: Move static
30745 variable to file scope.
30746
307472007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
30748
30749 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
30750 consistent values of selected_frame and selected_window.
30751
307522007-09-04 Jason Rumney <jasonr@gnu.org>
30753
30754 * w32console.c (initialize_w32_display): Zero unused hooks.
30755
307562007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30757
30758 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30759 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30760
307612007-09-04 Jason Rumney <jasonr@gnu.org>
30762
30763 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30764 in w32console.c. Set up input. Remove XXX comments that have been
30765 confirmed as correct.
30766
30767 * s/ms-w32.h (MULTI_KBOARD): Define.
30768
30769 * w32console.c (one_and_only_w32cons): Remove.
30770 (initialize_w32_display): Take terminal argument.
30771
30772 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30773 initialize_w32_display.
30774 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30775
30776 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30777
30778 * keyboard.c (discard_mouse_events): Discard it.
30779 (make_lispy_event): Translate it to a lisp event.
30780 (lispy_wheel_names): Add wheel-left and right events.
30781 (syms_of_keyboard): Enlarge wheel_syms.
30782
30783 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
30784 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
30785
30786 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
30787
30788 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
30789 from WM_MOUSEHWHEEL.
30790 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
30791
30792 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
30793 terminal.
30794
30795 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
30796 keyboard for the terminal.
30797
307982007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30799
30800 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
30801 (Vresume_tty_hook): Rename from Vresume_tty_functions.
30802 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
30803 and resume-tty-function to resume-tty-hook.
30804 (Fsuspend_tty, Fresume_tty): Use new names.
30805
308062007-09-02 Jan Djärv <jan.h.d@swipnet.se>
30807
30808 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
30809 if it starts with "n:".
30810
308112007-08-31 Jan Djärv <jan.h.d@swipnet.se>
30812
30813 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
30814
308152007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
30816
30817 * frame.h:
30818 * frame.c (Qterm_environment_variable): Remove.
30819 (syms_of_frame): Don't init and staticpro it.
30820
30821 * callproc.c (getenv_internal): Remove special case for $TERM.
30822
30823 * callproc.c (Vinitial_environment): New variable.
30824 (set_initial_environment): Initialize it.
30825 (syms_of_callproc): Declare it.
30826 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
30827 TERM under which a process runs is never related to the TERM in which
30828 Emacs is running.
30829
308302007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30831
30832 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
30833 * s/darwin.h: ... do it here.
30834
308352007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
30836
30837 * lisp.h (set_initial_environment): Rename from set_global_environment.
30838
30839 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
30840 removed by mistake on the multi-tty branch.
30841
30842 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
30843 (Fmodify_frame_parameters): Return a value.
30844
30845 * image.c (png_load): Comment-out var only used in commented-out code.
30846
30847 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
30848 before passing it to mark_object.
30849
30850 * xfaces.c (internal_resolve_face_name): Return a value.
30851 (internal_resolve_face_name, resolve_face_name_error): Comment out.
30852
30853 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
30854 (x_icon): Comment-out var only used in commented-out code.
30855
308562007-08-29 Romain Francoise <romain@orebokech.com>
30857
30858 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
30859 QUIT hasn't been provided.
30860
308612007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30862
30863 * callproc.c (child_setup, getenv_internal): Use the
30864 display-environment-variable and term-environment-variable frame params.
30865 (set_initial_environment): Initialise Vprocess_environment.
30866
30867 * config.in: Disable multi-keyboard support on a mac.
30868
30869 * frame.c (Qterm_environment_variable)
30870 (Qdisplay_environment_variable): New variables.
30871 (syms_of_frame): Intern and staticpro them.
30872 (Fmake_terminal_frame): Disable output method test.
30873
30874 * frame.h: Declare them here.
30875
30876 * macfns.c (x_set_mouse_color): Get rif from the frame.
30877 (x_set_tool_bar_lines): Don't use updating_frame.
30878 (mac_window): Add 2 new parameters for consistency with other systems.
30879 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
30880 frame parameters following what is done in X11 and w32. Don't use
30881 FRAME_MAC_DISPLAY_INFO.
30882 (Fx_open_connection, start_hourglass): Remove window-system check.
30883 (x_create_tip_frame): Get the keyboard from the terminal.
30884
30885 * macmenu.c: Reorder includes.
30886 (Fx_popup_menu): Use terminal specific mouse_position_hook.
30887
30888 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
30889 terminal parameter.
30890 (x_clear_frame): Add a frame parameter.
30891 (note_mouse_movement): Get rif from the frame.
30892 (mac_term_init): Initialize the terminal.
30893 (mac_initialize): Make static and move terminal initialization ...
30894 (mac_create_terminal): ... to this new function.
30895
30896 * macterm.h (struct mac_display_info): Add terminal.
30897 (mac_initialize): Delete declaration.
30898
30899 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
30900
30901 * sysdep.c: Comment out text after #endif.
30902
30903 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
30904 is defined. Better initialize ttys in windows. Use terminal
30905 specific mouse_position_hook.
30906
30907 * termhooks.h (union display_info): Add mac_display_info.
30908
30909 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
30910 Set the default minibuffer frame, window_system and the rest of the
30911 frame parameters following what is done in X11.
30912
30913 * w32term.c (w32_initialize): Make static.
30914
30915 * xselect.c (x_handle_selection_clear): Only access
30916 terminal->kboard when MULTI_KBOARD is defined.
30917
30918 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
30919 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
30920
309212007-08-29 Jason Rumney <jasonr@gnu.org>
30922
30923 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
30924 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
30925
30926 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
30927 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
30928
30929 * keyboard.c (restore_kboard_configuration): Only define when
30930 MULTI_KBOARD defined.
30931
30932 * makefile.w32-in: Update dependancies from Makefile.in.
30933 (OBJ1): Add terminal.$(O)
30934
30935 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
30936 Don't define function body.
30937 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
30938
30939 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
30940
30941 * w32.c (request_sigio, unrequest_sigio): Remove.
30942
30943 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
30944 (w32con_clear_frame, w32con_clear_end_of_line)
30945 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
30946 (w32con_delete_glyphs, w32con_set_terminal_window)
30947 (scroll_line, w32_sys_ring_bell): Add frame arg.
30948 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
30949 Add terminal arg.
30950 (PICK_FRAME): Remove.
30951 (w32con_write_glyphs): Use frame specific terminal coding.
30952 (one_and_only_w32cons): New global variable.
30953 (initialize_w32_display): Use it for storing hooks.
30954 (create_w32cons_output): New function.
30955
30956 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
30957 arg a frame.
30958
30959 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
30960 Set window_system.
30961 (x_set_tool_bar_lines): Don't use updating_frame.
30962 (Fx_create_frame): Set terminal and ref count.
30963 (Fx_open_connection): Remove window-system check.
30964
30965 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
30966
30967 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
30968 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
30969 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
30970 Add frame arg.
30971 (x_delete_terminal, w32_create_terminal): New functions.
30972 (w32_term_init): Create a terminal.
30973 (w32_initialize): Move terminal specific initialization to
30974 w32_create_terminal.
30975
30976 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
30977 (w32_clear_rect, w32_clear_area): Use background from frame.
30978 (w32_display_info): Add terminal.
30979 (w32_sys_ring_bell, x_delete_display): Declare here.
30980
30981 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
30982
30983 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
30984
309852007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
30986
30987 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
30988 Fix get_named_tty calls for the controlling tty.
30989
309902007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
30991
194d44e7 30992 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
30993
309942007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
30995
30996 * term.c (tty_insert_glyphs): Add missing first parameter.
30997
309982007-08-29 Károly Lőrentey <karoly@lorentey.hu>
30999
31000 * buffer.c (Fbuffer_list, Fbury_buffer):
31001 Take frame->buried_buffer_list into account.
31002
31003 * cm.c (current_tty): New variable, for cmputc().
31004 (cmputc): Use it.
31005 (cmcheckmagic): Add tty parameter, look up terminal streams there.
31006 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
31007 (cmgoto): Add tty parameter. Pass it on to calccost().
31008 Use emacs_tputs() instead of tputs().
31009
31010 * cm.h (emacs_tputs): New macro to set current_tty, and then call
31011 tputs().
31012 (current_tty): New variable, for cmputc().
31013 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
31014
31015 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
31016 (internal_condition_case, internal_condition_case_1)
31017 (internal_condition_case_2): Don't abort when x_catching_errors.
31018
31019 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
31020 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
31021 prevent crashes caused by bogus longjmps in read_char.
31022
31023 * keymap.h (Fset_keymap_parent): Add EXFUN.
31024
31025 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
31026 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
31027 Remove redundant definition.
31028
31029 * macfns.c (x_set_mouse_color, x_make_gc):
31030 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31031
31032 * w32term.c (x_free_frame_resources):
31033 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31034 (w32_initialize): Use the accessor macros for terminal characteristics.
31035
31036 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
31037 Use the accessor macros for terminal characteristics.
31038 * msdos.c (internal_terminal_init): Use the accessor macros for
31039 terminal characteristics.
31040 (ScreenVisualBell, internal_terminal_init):
31041 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31042
31043 * termopts.h (no_redraw_on_reenter): Declare.
31044
31045 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
31046 (mark_terminals, mark_ttys): Declare.
31047 (Fgarbage_collect): Call them.
31048 (mark_object): Mark buried_buffer_list.
31049
31050 * prefix-args.c: Include stdlib.h for exit.
31051
31052 * syssignal.h: Add comment.
31053
31054 * indent.c: Include stdio.h.
31055
31056 * window.h (Vinitial_window_system): Declare.
31057 (Vwindow_system): Delete declaration.
31058
31059 * fontset.c (Finternal_char_font): Use FRAME_RIF.
31060
31061 * image.c (lookup_image): Don't initialize `c' until the xasserts
31062 have been run.
31063
31064 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
31065 FRAME_FOREGROUND_PIXEL.
31066
31067 * print.c (print_preprocess): Don't lose print_depth levels while
31068 iterating.
31069
31070 * widget.c (update_from_various_frame_slots):
31071 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31072
31073 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
31074 frames.
31075 (window_internal_height): Remove bogus make_number call.
31076 (init_window_once): Call make_terminal_frame with two zero parameters.
31077
31078 * fileio.c (Fread_file_name): Update comment.
31079
31080 * callint.c (Fcall_interactively):
31081 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
31082 Make sure it is correctly unwound.
31083
31084 * xsmfns.c (x_session_close): New function.
31085
31086 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
31087 Delete declarations.
31088
31089 * xterm.h: Remove declaration for x_fully_uncatch_errors.
31090 (x_output): Remove background_pixel and foreground_pixel fields.
31091 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
31092 (x_delete_device, x_session_close): Declare.
31093
31094 * lread.c: Include setjmp.h. Update declaration of `read_char'.
31095 (read_filtered_event): Call `read_char' with a local
31096 `wrong_kboard_jmpbuf'.
31097
31098 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
31099 Don't call single_kboard_state. Use FRAME_RIF.
31100
31101 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
31102 systems.
31103
31104 * lisp.h (set_process_environment): Rename to `set_global_environment'.
31105 (Fframe_with_environment, Fset_input_meta_mode)
31106 (Fset_quit_char): EXFUN.
31107 (x_create_device, tty_output, terminal, tty_display_info): Declare.
31108 (init_sys_modes, reset_sys_modes): Update prototypes.
31109 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
31110
31111 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
31112 Vlocal_key_translation_map, and Vkeyboard_translate_table.
31113 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
31114 Delete declarations.
31115 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
31116 (temporarily_switch_to_single_kboard, tty_read_avail_input):
31117 New declarations.
31118
31119 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
31120 already does that during init_display(). Call syms_of_keymap
31121 before syms_of_keyboard. Call `syms_of_terminal'.
31122 Call set_initial_environment, not set_process_environment.
31123 (shut_down_emacs): Call reset_all_sys_modes() instead of
31124 reset_sys_modes().
31125
31126 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
31127 (internal_resolve_face_name, resolve_face_name_error): New functions.
31128 (resolve_face_name): Protect against loops and errors thrown by Fget.
31129 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
31130 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
31131
31132 * scroll.c: Replace CURTTY() with local variables throughout the
31133 file (where applicable).
31134 (calculate_scrolling, calculate_direct_scrolling)
31135 (scrolling_1, scroll_cost): Use the accessor macros for terminal
31136 characteristics.
31137
31138 * keymap.c (Vfunction_key_map): Remove.
31139 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
31140 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
31141 (Vkey_translation_map): Remove.
31142 (syms_of_keymap): Remove DEFVAR for key-translation-map.
31143 (Fdescribe_buffer_bindings)
31144 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
31145 Update for terminal-local key-translation-map.
31146
31147 * Makefile.in (callproc.o): Update dependencies.
31148 (lisp, shortlisp): Add termdev.elc.
31149 (obj): Add terminal.o.
31150 (terminal.o): Add dependencies.
31151 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
31152 (data.o, fns.o): Add termhooks.h dependency.
31153 (SOME_MACHINE_LISP): Add dnd.elc.
31154 (minibuf.o): Fix typo.
31155 Update dependencies.
31156
31157 * data.c (do_symval_forwarding, store_symval_forwarding)
31158 (find_symbol_value): Use the selected frame's keyboard, not
31159 current_kboard.
31160
31161 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
31162 Vwindow_system.
31163
31164 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
31165 Fmenu_bar_open.
31166 (syms_of_xmenu): Update defsubr.
31167 (mouse_position_for_popup, Fx_popup_menu)
31168 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
31169 (set_frame_menubar, free_frame_menubar)
b97439ce 31170 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
31171 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
31172 an X frame.
31173
31174 * xselect.c (x_own_selection): Abort if not an X frame.
31175 (some_frame_on_display): Check if it is an X frame.
31176 (x_handle_selection_clear): Deal with MULTI_KBOARD.
31177
31178 * coding.c: Include frame.h and termhooks.h.
31179 (terminal_coding, keyboard_coding): Delete.
31180 (Fset_terminal_coding_system_internal)
31181 (Fset_keyboard_coding_system_internal)
31182 (Fkeyboard_coding_system)
31183 (Fterminal_coding_system): Add a terminal parameter.
31184 Get terminal_coding from the terminal.
31185 (init_coding_once): Don't call setup_coding_system here.
31186
31187 * dispextern.h (set_scroll_region, turn_off_insert)
31188 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
31189 (tty_clear_end_of_line, tty_setup_colors)
31190 (delete_tty, updating_frame)
31191 (produce_special_glyphs, produce_glyphs, write_glyphs)
31192 (insert_glyphs): Remove.
31193 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
31194 (tty_turn_off_highlight, get_tty_size): Add declaration.
31195 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
31196
31197 * frame.h (enum output_method): Add output_initial.
31198 (struct x_output): Delete.
31199 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
31200 Access foreground_pixel and background_pixel directly from the frame.
31201 (tty_display): Delete.
31202 (struct frame): Add buried_buffer_list, foreground_pixel,
31203 background_pixel and terminal. Delete kboard.
31204 (union output_data): Add tty.
31205 (FRAME_KBOARD): Get the kboard from the terminal.
31206 (FRAME_INITIAL_P): New macro.
31207 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
31208 (Qterm_environment_variable, Qdisplay_environment_variable)
31209 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
31210 New declarations.
31211
31212 * termchar.h (tty_output, tty_display_info): New structures.
31213 (tty_list): Declare.
31214 (FRAME_TTY, CURTTY): New macros.
31215 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
31216 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
31217 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
31218 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
31219
31220 * callproc.c: Include frame.h and termhooks.h, for terminal
31221 parameters.
31222 (add_env): New function.
31223 (child_setup): Use it.
31224 (child_setup, getenv_internal): Handle the new Vprocess_environment.
31225 (getenv_internal): Fix get_terminal_param call.
31226 (Fgetenv_internal, egetenv): Update doc.
31227 (syms_of_callproc): Initialize Vprocess_environment to nil.
31228 Register and initialize them. Remove obsolete defvars. Update doc
31229 strings.
31230 (child_setup): Handle Vlocal_environment_variables.
31231 (getenv_internal): Add terminal parameter.
31232 Handle Vlocal_environment_variables.
31233 (Fgetenv_internal): Add terminal parameter.
31234 (child_setup, getenv_internal, Fgetenv_internal): Store the local
31235 environment in a frame (not terminal) parameter. Update doc strings.
31236 (set_initial_environment): Rename from set_global_environment.
31237 Store Emacs environment in initial frame parameter.
31238
31239 * xdisp.c (redisplay_internal): Update references to
31240 `previous_terminal_frame'.
31241 (display_mode_line, Fformat_mode_line): Replace calls to
31242 `push_frame_kboard' with `push_kboard'.
31243 (get_glyph_string_clip_rects): Add extra parentheses and
31244 braces to prevent compiler warnings.
31245 (calc_pixel_width_or_height): Add xassert to check that the
31246 frame is alive. Don't call `lookup_image' on a termcap frame.
31247 (message2_nolog, message3_nolog, redisplay_internal)
31248 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
31249 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
31250 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
31251 (Fx_display_pixel_width, Fx_display_pixel_height)
31252 (Fx_display_planes, Fx_display_color_cells)
31253 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
31254 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
31255 (Fx_display_backing_store, Fx_display_visual_class)
31256 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
31257 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
31258
31259 * xfns.c (x_set_foreground_color x_set_background_color)
31260 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
31261 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31262 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
31263 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
31264 terminal that is being deleted.
31265 (Fx_create_frame): Use `store_frame_param' to set `window-system'
31266 frame parameter, and make sure it overrides any user-supplied setting.
31267 (Fx_close_connection, Fx_synchronize): Unify argument names with
31268 the rest of the DEFUNs.
31269
31270 * dispnew.c (Fsend_string_to_terminal): Update call to
31271 `get_tty_terminal'.
31272 (Fredraw_frame, Fsend_string_to_terminal)
31273 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
31274 FRAME_TERMCAP_P and FRAME_TTY.
31275 (window_change_signal): Don't believe width/height values that are
31276 impossibly small.
31277 (Vinitial_window_system): Rename from Vwindow_system.
31278 (termscript, Wcm, rif): Delete.
31279
31280 * termhooks.h (struct terminal): New struct containing the
31281 previously global text display hooks and new members NAME,
31282 DELETED and PARAM_ALIST.
31283 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
31284 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
31285 (FRAME_RIF): New macros.
31286 (get_terminal_param, get_device): New declarations.
31287 (termscript): Delete declaration.
31288
31289 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
31290 (XTflash, x_free_frame_resources, x_scroll_bar_create)
31291 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
31292 FRAME_FOREGROUND_PIXEL.
31293 (x_fully_uncatch_errors): Disable definition.
31294 (x_scroll_bar_expose): Fix reference to foreground pixel.
31295 (XTread_socket): Disable loop on all X displays.
31296 (x_delete_terminal): Don't set terminal->deleted and let
31297 delete_terminal delete the frames on the terminal.
31298 (x_delete_display): Doc update to reflect changes in
31299 delete_terminal.
31300 (x_display_info) <terminal>: Move member earlier in the struct.
31301 (deleting_tty): Remove old variable.
31302 (Fsuspend_tty): Call clear_tty_hooks.
31303 (Fresume_tty, init_tty): Call set_tty_hooks.
31304 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
31305 errors on X frames.
31306 (x_catch_errors_unwind): Abort if x_error_message is NULL.
31307 (handle_one_xevent): Initialize `f' to NULL.
31308 (x_delete_terminal, x_create_terminal): New functions.
31309 (XTset_terminal_modes, XTreset_terminal_modes)
31310 (XTread_socket, x_connection_closed, x_term_init)
31311 (x_term_init, x_delete_display): Add terminal parameter.
31312 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
31313 X connections.
31314
31315 * frame.c: Include termchar.h.
31316 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
31317 (Qwindow_system, Qenvironment, Qterm_environment_variable)
31318 (Qdisplay_environment_variable): New vars.
31319 (Fframep): Deal with output_initial.
31320 (Fframe-live-p): Doc fix.
31321 (Fwindow-system): New function.
31322 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
31323 (make_terminal_frame): Don't create frames on a terminal that is
31324 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31325 (store_frame_param): Check for found_for_frame before calling XFRAME.
31326 (Fmake_terminal_frame): Handle NULL tty names correctly.
31327 (syms_of_frame): Enhance doc string of `default-frame-alist'.
31328 (Fdelete_frame): Remove unused variable `count'. Don't allow other
31329 frames to refer to a deleted frame in their 'environment parameter.
31330 (Fframe_with_environment): New function.
31331 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
31332 (get_future_frame_param): New function.
31333 (Fmake_terminal_frame): Use it.
31334 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
31335
31336 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
31337 * sysdep.c (reset_sys_modes): Update for renames.
31338
31339 * keyboard.c (tty_read_avail_input): New function.
31340 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
31341 (syms_of_keyboard): Defsubr them.
31342 (Fset_input_meta_mode, Fset_quit_char): New functions.
31343 (Fset_input_mode): Split to above functions.
31344 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
31345 parameter. Use it in call to `read_char'.
31346 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
31347 Set wrong_kboard_jmpbuf correctly in recursive calls.
31348 Use current_kboard to access Vkeyboard_translate_table.
31349 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
31350 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
31351 Update longjmp invocations. Remember the original current_kboard,
31352 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
31353 changes it. Comment out unnecessary calls to
31354 `record_single_kboard_state' and `any_kboard_state'.
31355 Update recursive calls.
31356 (wrong_kboard_jmpbuf): Remove global variable.
31357 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
31358 Handle deleted interrupted_kboards correctly; that is a legal
31359 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
31360 and read_char calls. Abort if interrupted_kboard died in read_char.
31361 (any_kboard_state, single_kboard_state)
31362 (push_frame_kboard): Remove function.
31363 (pop_kboard): Switch out of single_kboard mode if the kboard has
31364 been deleted. Remove unused variable. Help debugging by not
31365 changing current_kboard unnecessarily. Set current_kboard to the
31366 kboard of the selected frame when the stored kboard object has
31367 been deleted before pop_kboard.
31368 (temporarily_switch_to_single_kboard): Change first parameter to a
31369 frame pointer. Throw an error when caller wants to change kboards
31370 while in single_kboard mode. Don't push_kboard if we weren't in
31371 single kboard state. Don't pop_kboard if we popped into any
31372 kboard state.
31373 (restore_kboard_configuration): Abort if pop_kboard changed the
31374 kboard in single_kboard mode. Call pop_kboard only after setting
31375 up single_kboard mode.
31376 (Frecursive_edit): Switch to single_kboard mode only in nested
31377 command loops.
31378 (cmd_error, command_loop, command_loop_1, timer_check):
31379 Comment out unnecessary call to `any_kboard_state' and
31380 `record_single_kboard_state'.
31381 (delete_kboard): Exit single_kboard mode if we have just deleted
31382 that kboard. Use FRAME_KBOARD.
31383 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
31384 `fatal_error_signal'.
31385 (record_single_kboard_state): Don't push_kboard if we weren't in
31386 single kboard state. Don't pop_kboard if we popped into any
31387 kboard state.
31388 (push_frame_kboard): Rename to push_kboard.
31389 (kbd_buffer_get_event): Use FRAME_TERMINAL.
31390 (read_avail_input): Read input from all terminals.
31391 (mark_kboards): Also mark Vkeyboard_translate_table.
31392 (kbd_buffer_store_event_hold): Simplify condition.
31393 (read_key_sequence): Reinitialize fkey and keytran at each replay.
31394 (Vkeyboard_translate_table): Move to struct kboard.
31395 (init_kboard): Initialize Vkeyboard_translate_table.
31396 (syms_of_keyboard): Use DEFVAR_KBOARD to define
31397 Vkeyboard_translate_table. Update doc strings. Update docs of
31398 local-function-key-map and function-key-map.
31399
31400 * terminal.c: New file.
31401
31402 * term.c: Include errno.h.
31403 (Vring_bell_function, device_list, initial_device)
31404 (next_device_id, ring_bell, update_begin, update_end)
31405 (set_terminal_window, cursor_to, raw_cursor_to)
31406 (clear_to_end, clear_frame, clear_end_of_line)
31407 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
31408 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
31409 (syms_of_term): Move their initialization to terminal.c.
31410 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
31411 (Ftty_display_color_cells)
31412 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
31413 (clear_tty_hooks, set_tty_hooks)
31414 (init_tty, maybe_fatal): New functions.
31415 (Ftty_type): Return nil if terminal is not on a tty instead of
31416 throwing an error. Doc update.
31417 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
31418 Doc update. Initialize new subrs and variables.
31419 (delete_tty): Use terminal->deleted.
31420 (tty_set_terminal_modes): Rename from set_terminal_modes.
31421 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
31422 (set_scroll_region): Rename to `tty_set_scroll_region'.
31423 (turn_on_insert): Rename to `tty_turn_on_insert'.
31424 (turn_off_insert): Rename to `tty_turn_off_insert'.
31425 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
31426 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
31427 (toggle_highligh): Rename to `tty_toggle_highlight'.
31428 (background_highlight): Rename to `tty_background_highlight'.
31429 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
31430 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
31431 (tty_set_scroll_region, tty_background_highlight)
31432 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
31433 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
31434 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
31435 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
31436 Add static modifier.
31437 (tty_reset_terminal_modes, tty_set_terminal_window)
31438 (tty_set_scroll_region, tty_background_highlight)
31439 (tty_highlight_if_desired, tty_cursor_to)
31440 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
31441 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
31442 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
31443 renames.
31444
314452007-08-28 Jan Djärv <jan.h.d@swipnet.se>
31446
31447 * keyboard.c: Qrtl is new.
31448 (parse_tool_bar_item): Handle :rtl keyword.
31449 (syms_of_keyboard): Intern :rtl keyword.
31450
31451 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
31452
31453 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
31454 so no Lisp code is executed.
31455 (file_for_image, find_rtl_image): New functions.
31456 (xg_get_image_for_pixmap): Use file_for_image.
31457 (update_frame_tool_bar): If direction is RTL, use RTL image if
31458 defined. Use Gtk stock images if defined.
31459
314602007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31461
31462 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
31463 for nonexistent or zero-width glyph in composition glyph.
31464
314652007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
31466
31467 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
31468
31469 * xdisp.c (Finvisible_p): New function.
31470 (syms_of_xdisp): defsubr it.
31471
314722007-08-24 Juanma Barranquero <lekktu@gmail.com>
31473
31474 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
31475 Doc fixes.
31476
314772007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31478
31479 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
31480
314812007-08-24 Martin Rudalics <rudalics@gmx.at>
31482
31483 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
31484 whether decoding has modified buffer contents.
31485
314862007-08-24 Jason Rumney <jasonr@gnu.org>
31487
31488 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
31489 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
31490 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
31491 (init_svg_functions) [HAVE_NTGUI]: New function.
31492 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
31493 (svg_load_image): Use them.
31494 (svg_load_image) [HAVE_NTGUI]: Implement background.
31495
314962007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31497
31498 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
31499 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
31500 (LIBX): Remove @RSVG_LIBS@.
31501 (LIBES): Add $(RSVG_LIBS).
31502
31503 * image.c (svg_load_image): Blend with specified background if exists.
31504 Use IMAGE_BACKGROUND. Add Mac OS Support.
31505
31506 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
31507 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
31508 Remove macros.
31509 [MAC_OSX] (socket_callback): Do nothing.
31510 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
31511 ReceiveNextEvent.
31512 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
31513 socket_callback.
31514 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
31515
315162007-08-22 Glenn Morris <rgm@gnu.org>
31517
31518 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
31519
315202007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
31521
31522 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
31523
31524 * image.c: Add support for SVG images. Some additional comments
31525 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
31526 (svg_image_p): New function to test for SVG image.
31527 (svg_load): New function to load SVG image.
31528 (svg_load_image): New function, helper for svg_load.
31529 (Qsvg): New Lisp_object.
31530 (svg_keyword_index): New enum.
31531 (svg_format): New static `image_keyword' struct.
31532 (svg_type): New static `image_type' struct.
31533 (librsvg/rsvg.h): Include it.
31534
315352007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
31536
31537 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
31538
315392007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
31540
31541 * lread.c (Qold_style_backquotes): New var.
31542 (syms_of_lread): Init and staticpro it.
31543 (load_warn_old_style_backquotes): New fun.
31544 (Fload): Use them to warn about old style backquotes.
31545 (end_of_file_error, Fload): Remove unused vars.
31546
31547 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
31548
31549 * lread.c (Vold_style_backquotes): New var.
31550 (syms_of_lread): Init and export it to Elisp.
31551 (read1): Set it when we find an old-style (back)quote.
31552
315532007-08-22 Jason Rumney <jasonr@gnu.org>
31554
31555 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
31556
315572007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
31558
31559 * puresize.h (BASE_PURESIZE): Increase to 1140000.
31560
315612007-08-19 Richard Stallman <rms@gnu.org>
31562
31563 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
31564
315652007-08-19 Andreas Schwab <schwab@suse.de>
31566
31567 * alloc.c (pure): Round PURESIZE up.
31568
315692007-08-17 Jan Djärv <jan.h.d@swipnet.se>
31570
31571 * xterm.c (handle_one_xevent): Remove check that mouse click is in
31572 active frame.
31573
315742007-08-16 Richard Stallman <rms@gnu.org>
31575
31576 * eval.c (Fcommandp): Add parens to clarify.
31577
31578 * minibuf.c (Fall_completions): Use enum for type of table.
31579
31580 * emacs.c (USAGE2): Improve text.
31581
315822007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
31583
31584 * term.c (tty_default_color_capabilities): Declare static
31585 variables in file scope, to avoid HPUX compiler problem.
31586
315872007-08-13 Jan Djärv <jan.h.d@swipnet.se>
31588
31589 * gtkutil.c (update_frame_tool_bar): Use -1 as index
31590 to gtk_toolbar_insert.
31591
315922007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
31593
31594 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
31595
31596 * insdel.c (reset_var_on_error): New fun.
31597 (signal_before_change, signal_after_change):
31598 Use it to reset (after|before)-change-functions to nil in case of error.
31599 Bind inhibit-modification-hooks to t.
31600 Don't bind (after|before)-change-functions to nil while they run.
31601
316022007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31603
31604 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
31605 filling pixmap with stippled background.
31606
316072007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31608
31609 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
31610 Don't use invisible frame as parent window for repositioning.
31611
316122007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
31613
31614 * print.c (new_backquote_output): Rename from old_backquote_output.
31615 (print): Inverse its logic (according to its name) so as to match the
31616 behavior of new_backquote_flag in lread.c.
31617
316182007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31619
31620 * gmalloc.c (posix_memalign): New function.
31621
31622 * macterm.c (frame_highlight, frame_unhighlight): Don't call
31623 ActivateControl/DeactivateControl here.
31624 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
31625 frame-notice-user-settings is non-nil.
31626 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
31627 for kEventParamFMFontStyle.
31628 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
31629 mac_pass_command_to_system and mac_pass_control_to_system here.
31630 (XTread_socket): Call ActivateControl/DeactivateControl here.
31631 (XTread_socket) [TARGET_API_MAC_CARBON]:
31632 Check mac_pass_command_to_system and mac_pass_control_to_system here.
31633 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31634 for window repositioning.
31635
316362007-08-08 Glenn Morris <rgm@gnu.org>
31637
31638 * Replace `iff' in doc-strings and comments.
31639
316402007-08-07 Chong Yidong <cyd@stupidchicken.com>
31641
31642 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31643
316442007-08-07 Martin Rudalics <rudalics@gmx.at>
31645
31646 * fileio.c (Finsert_file_contents): Run format-decode and
31647 after_insert_file_functions on entire buffer when REPLACE is
31648 non-nil and inhibit modification_hooks and point_motion_hooks.
31649 For consistency, run after_insert_file_functions iff something
31650 got inserted. Move signal_after_change and update_compositions
31651 after code running after_insert_file_functions. Make sure that
31652 undo_list doesn't record intermediate steps of the decoding process.
31653
316542007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31655
31656 * emacs.c (main)
31657 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31658 Call malloc_enable_thread on interactive startup.
31659
31660 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31661 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31662 [USE_PTHREAD]: Conditionalize with it.
31663 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31664 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31665 New functions.
31666
316672007-08-06 Chong Yidong <cyd@stupidchicken.com>
31668
31669 * xdisp.c (redisplay_window): When restoring original buffer
31670 position, make sure it is still valid.
31671
31672 * image.c (png_load): Ignore png-supplied background color.
31673
316742007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31675
31676 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31677 Use kCFAbsoluteTimeIntervalSince1970.
31678
31679 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31680 New variable.
31681 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31682 event loop should be quit.
31683 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31684 Quit dialog event loop if quit_dialog_event_loop is set.
31685
31686 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31687 (Selection): New typedef. Use instead of ScrapRef.
31688 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31689 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31690 (mac_clear_selection): Rename from clear_scrap.
31691 (get_flavor_type_from_symbol): New argument SEL and subsume function of
31692 scrap_has_target_type. All uses changed.
31693 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31694 (mac_selection_has_target_p): New functions.
31695 (mac_put_selection_value): Rename from put_scrap_string.
31696 (mac_get_selection_value): Rename from get_scrap_string.
31697 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31698 (put_scrap_private_timestamp, scrap_has_target_type)
31699 (get_scrap_private_timestamp): Remove functions.
31700 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31701 (x_own_selection, x_get_local_selection):
31702 Use mac_valid_selection_value_p.
31703 (x_own_selection): Don't use put_scrap_private_timestamp.
31704 Record OWNERSHIP-INFO into Vselection_alist instead.
31705 (x_get_local_selection): Don't check type if request is local.
31706 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31707 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31708
317092007-08-04 Jan Djärv <jan.h.d@swipnet.se>
31710
31711 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31712 add comment explaining why.
31713
317142007-08-03 Richard Stallman <rms@gnu.org>
31715
31716 * fileio.c (Fvisited_file_modtime): Use make_time.
31717
317182007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
31719
31720 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31721 build.
31722
317232007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
31724
31725 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31726
317272007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
31728
31729 * puresize.h (BASE_PURESIZE): Increase to 1130000.
31730
317312007-07-30 Richard Stallman <rms@gnu.org>
31732
31733 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31734
317352007-07-29 Jan Djärv <jan.h.d@swipnet.se>
31736
31737 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
31738
317392007-07-28 Nick Roberts <nickrob@snap.net.nz>
31740
31741 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
31742 remote default-directory.
31743
31744 * buffer.c (mode-line-format): Update doc string.
31745
317462007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31747
31748 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
31749 scroll bar gap.
31750 (x_scroll_bar_create): Set bar->fringe_extended_p.
31751 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
31752 on frame edge. Check fringe background extension. Don't clear
31753 extended fringe background area.
31754
31755 * w32term.h (struct scroll_bar): New member fringe_extended_p.
31756 (w32_fill_area): Enclose multiple statements with do ... while (0).
31757
31758 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31759 Extend fringe background to scroll bar gap.
31760 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31761 Set bar->fringe_extended_p.
31762 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31763 Put leftmost/rightmost scroll bars on frame edge. Check fringe
31764 background extension. Don't clear extended fringe background area.
31765
31766 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31767 New member fringe_extended_p.
31768
317692007-07-25 Glenn Morris <rgm@gnu.org>
31770
31771 * Relicense all FSF files to GPLv3 or later.
31772
31773 * COPYING: Switch to GPLv3.
31774
317752007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
31776
31777 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
31778
31779 * data.c (Finteractive_form): Check for the presence of an
31780 `interactive-form' symbol property more thoroughly.
31781
31782 * data.c (Finteractive_form): Use an `interactive-form' property if
31783 present, analogous to the function-documentation property.
31784
317852007-07-24 Jason Rumney <jasonr@gnu.org>
31786
31787 * w32fns.c (x_real_positions): Get real position from OS instead of
31788 calculating it.
31789
317902007-07-23 Jason Rumney <jasonr@gnu.org>
31791
31792 * filelock.c (current_lock_owner): Allow for @ sign in username.
31793
317942007-07-22 Nick Roberts <nickrob@snap.net.nz>
31795
31796 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
31797 remote default-directory.
31798
31799 * buffer.c (mode-line-format): Describe above case in doc string.
31800
318012007-07-20 Eli Zaretskii <eliz@gnu.org>
31802
31803 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
31804 Define if not defined.
31805
318062007-07-18 Jason Rumney <jasonr@gnu.org>
31807
31808 * w32proc.c (w32_executable_type): Handle 64 bit executables.
31809
318102007-07-18 Richard Stallman <rms@gnu.org>
31811
31812 * data.c (Fsetq_default): Doc fix.
31813
31814 * eval.c (Fsetq): Doc fix.
31815
318162007-07-18 Juanma Barranquero <lekktu@gmail.com>
31817
31818 * coding.c (Ffind_operation_coding_system):
31819 * eval.c (For, Fand): Doc fixes.
31820 Reported by Johan Bockgård.
31821
318222007-07-18 Jan Djärv <jan.h.d@swipnet.se>
31823
31824 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
31825
31826 * xterm.h: Declare x_ewmh_activate_frame.
31827
31828 * xterm.c (x_ewmh_activate_frame): New function.
31829 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
31830
318312007-07-17 Martin Rudalics <rudalics@gmx.at>
31832
31833 * window.c (Fdisplay_buffer): If largest or LRU window is the
31834 only window, split it even if it is not eligible for splitting.
31835 This restores the original behavior broken by the 2007-07-15
31836 change.
31837
318382007-07-17 Glenn Morris <rgm@gnu.org>
31839
31840 * abbrev.c (abbrev_check_chars): New function.
31841 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
31842 Call abbrev_check_chars to check abbrev characters are word
31843 constituents. Doc fix.
31844
318452007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
31846
31847 * process.c (Fstart_process, Fmake_network_process)
31848 (read_process_output): Fix up last changes.
31849
318502007-07-16 Eli Zaretskii <eliz@gnu.org>
31851
31852 * makefile.w32-in (clean): Don't delete *~.
31853
318542007-07-16 Andreas Schwab <schwab@suse.de>
31855
31856 * window.c (Fdisplay_buffer): Use NILP.
31857 (Fset_window_scroll_bars): Likewise.
31858
318592007-07-15 Martin Rudalics <rudalics@gmx.at>
31860
31861 * window.c (window_min_size_2): New function.
31862 (window_min_size_1, size_window, Fdisplay_buffer)
31863 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
31864 windows without mode- or header-lines when window-min-height is
31865 too small.
31866 (size_window): Reset nodelete_p after testing it, following an
31867 earlier note by Kim F. Storm.
31868 (display_buffer): Do not set split_height_threshold to twice the
31869 value of window_min_height to avoid changing the value of a
31870 customizable variable. Rather explicitly check whether the
31871 height of the window that shall be splitted is at least as large
31872 as split_height_threshold.
31873 (Fwindow_full_width_p): New defun.
31874 (syms_of_window): Defsubr it.
31875
31876 * window.h: Add EXFUN for Fwindow_full_width_p.
31877
318782007-07-14 Jason Rumney <jasonr@gnu.org>
31879
31880 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
31881
318822007-07-14 Richard Stallman <rms@gnu.org>
31883
31884 * eval.c (maybe_call_debugger): New function.
31885 (find_handler_clause): Use maybe_call_debugger.
31886 Call it when the handler says `debug'.
31887 Eliminate DEBUGGER_VALUE_PTR.
31888 (Fsignal): Eliminate debugger_value.
31889 (Qdebug): New variable.
31890 (syms_of_eval): Initialize it.
31891
318922007-07-14 Juanma Barranquero <lekktu@gmail.com>
31893
31894 * eval.c (Fprogn):
31895 * keyboard.c (Ftrack_mouse):
31896 * print.c (Fwith_output_to_temp_buffer):
31897 * window.c (Fsave_window_excursion): Doc fix.
31898
318992007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
31900
31901 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
31902
319032007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
31904
31905 * process.h (struct Lisp_Process): Turn slots infd, outfd,
31906 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
31907 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
31908 read_output_delay, and read_output_skip from Lisp_Objects to ints.
31909 Remove unused encoding_carryover.
31910 * process.c: Adjust all functions accordingly.
31911
319122007-07-12 Richard Stallman <rms@gnu.org>
31913
31914 * term.c: Include unistd.h only if HAVE_UNISTD_H.
31915
319162007-07-11 Jason Rumney <jasonr@gnu.org>
31917
31918 * makefile.w32-in (LIBS): Include OLE32.
31919
31920 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
31921 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
31922
319232007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
31924
31925 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
31926 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
31927 from a Lisp_Object into a bare pointer.
31928 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
31929 Adjust the code correspondingly.
31930
31931 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
31932
31933 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
31934 (term_show_mouse_face): Remove unused var `j'.
31935 (handle_one_term_event): Remove unused vars `i' and `j'.
31936 Don't cast return value of ttyname since it's not necessary.
31937
319382007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
31939
31940 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
31941 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
31942
31943 * fns.c (map_char_table): Use an array of int for `indices' rather than
31944 an array of Lisp_Objects (which are only ever integers anyway).
31945 (Fmap_char_table): Update caller.
31946 * lisp.h: Update prototype.
31947 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
31948 * fontset.c (Ffontset_info):
31949 * casetab.c (set_case_table): Update callers.
31950
31951 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
31952
31953 * keymap.c (struct accessible_keymaps_data)
31954 (struct where_is_internal_data): New structures.
31955 (accessible_keymaps_1, where_is_internal_1): Use them to change
31956 interface to adhere to the one used by map_keymap.
31957 (Faccessible_keymaps, where_is_internal): Use map_keymap.
31958 (accessible_keymaps_char_table, where_is_internal_2): Remove.
31959
31960 * keymap.h (map_keymap_function_t): More informative prototype.
31961
319622007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
31963
31964 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
31965 (looking_at_1): Don't change search_regs and last_thing_searched
31966 if `inhibit-changing-match-data' is non-nil.
31967 (string_match_1, search_buffer, set_search_regs): Likewise.
31968 (syms_of_search): Add Lisp level definition for
31969 `inhibit-changing-match-data' and set it to nil.
31970 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
31971 start and end of the match, instead of using values in search_regs.
31972
319732007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
31974
31975 * minibuf.c (Fcompleting_read): New value `confirm-only'
31976 for `require-match'.
31977
319782007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
31979
31980 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
31981 part of the 2007-06-27 change to syms_of_fileio.
31982
319832007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31984
31985 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
31986 Check WINDOWP before using XWINDOW. Consolidate return statements.
31987
319882007-06-27 Richard Stallman <rms@gnu.org>
31989
31990 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
31991
319922007-06-27 Juanma Barranquero <lekktu@gmail.com>
31993
31994 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
31995
319962007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31997
31998 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
31999 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
32000 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
32001 (_free_internal, memalign): Use them.
32002 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
32003 Initialize to PTHREAD_MUTEX_INITIALIZER.
32004 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
32005 (morecore_nolock): Rename from morecore. All uses changed.
32006 Use only nolock versions of internal allocation functions.
32007 (_malloc_internal_nolock, _realloc_internal_nolock)
32008 (_free_internal_nolock): New functions created from
32009 _malloc_internal, _realloc_internal, and _free_internal.
32010 (_malloc_internal, _realloc_internal, _free_internal): Use them.
32011 Copy hook value to automatic variable before its use.
32012 (memalign): Copy hook value to automatic variable before its use.
32013
320142007-06-26 Kenichi Handa <handa@m17n.org>
32015
32016 * coding.c (Ffind_operation_coding_system): Docstring improved.
32017 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
32018
320192007-06-25 David Kastrup <dak@gnu.org>
32020
32021 * keymap.c (Fcurrent_active_maps): Add `position' argument.
32022 (Fwhere_is_internal): Adjust call to `current-active-maps' to
32023 cater for additional parameter.
32024
32025 * keymap.h: Adjust number of parameters to `current-active-maps'.
32026
32027 * doc.c (Fsubstitute_command_keys): Adjust call of
32028 `current-active-maps'.
32029
320302007-06-25 David Kastrup <dak@gnu.org>
32031
32032 * callint.c (Fcall_interactively): Make the parsing of interactive
32033 specs somewhat more readable.
32034
320352007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32036
32037 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
32038 to scroll bar gap also when bitmap fills fringe. Draw only foreground
32039 if extended background has already been filled.
32040
320412007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32042
32043 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
32044 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
32045
32046 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
32047 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
32048 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
32049 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
32050 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
32051 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
32052 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
32053 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
32054 Run timers during dialog popup.
32055 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
32056
320572007-06-21 Jason Rumney <jasonr@gnu.org>
32058
32059 * image.c (convert_mono_to_color_image): Swap fore and background.
32060
320612007-06-20 Jason Rumney <jasonr@gnu.org>
32062
32063 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
32064 (w32_free_bdf_font): Unmap memory not handle.
32065
320662007-06-20 Sam Steingold <sds@gnu.org>
32067
32068 * gmalloc.c (__morecore): Fix the declaration to comply with the
32069 definition.
32070
320712007-06-20 Juanma Barranquero <lekktu@gmail.com>
32072
32073 * w32term.c (w32_delete_display): Remove leftover declaration.
32074 (w32_define_cursor, w32_initialize): Make static.
32075
32076 * w32.c (_wsa_errlist): Fix typo in error message.
32077 (init_environment): Ignore any environment variable from the
32078 registry having a null value.
32079
320802007-06-20 Glenn Morris <rgm@gnu.org>
32081
32082 * Makefile.in (LIBGIF): Default to -lgif.
32083
320842007-06-17 Jason Rumney <jasonr@gnu.org>
32085
32086 * w32menu.c (add_menu_item): Don't use multibyte string functions on
32087 unicode strings.
32088
320892007-06-16 Juanma Barranquero <lekktu@gmail.com>
32090
32091 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
32092 Fix typo in docstring.
32093
320942007-06-16 Eli Zaretskii <eliz@gnu.org>
32095
32096 * w32menu.c (add_menu_item): Escape `&' characters in menu items
32097 and their keybindings.
32098
320992007-06-15 Chong Yidong <cyd@stupidchicken.com>
32100
32101 * composite.c (update_compositions): Fix last fix.
32102
321032007-06-14 Jason Rumney <jasonr@gnu.org>
32104
32105 * w32.c (get_process_times_fn): New function pointer.
32106 (globals_of_w32): Intialize it if present in kernel32.dll.
32107 (w32_get_internal_run_time): New function.
32108
32109 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
32110
321112007-06-14 Kenichi Handa <handa@etlken.m17n.org>
32112
32113 * composite.c (update_compositions): Check the validness of
32114 compositions.
32115
321162007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32117
32118 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
32119 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
32120
32121 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
32122 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
32123
32124 * macgui.h (USE_MAC_TOOLBAR): New define.
32125
32126 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32127 Return immediately unless popup is activated.
32128
32129 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
32130 background to scroll bar gap.
32131 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
32132 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
32133 scroll bars on frame edge. Check fringe background extension.
32134 Don't clear extended fringe background area.
32135 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
32136 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
32137 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
32138 [USE_MAC_TOOLBAR]: New macros.
32139 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
32140 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
32141 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
32142 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
32143 [USE_MAC_TOOLBAR]: New functions.
32144 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
32145 manually if previous repositioning has failed.
32146 (mac_handle_keyboard_event): Use precomputed event kind.
32147 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
32148 as tool bar item click. Handle mouse movement over tool bar items.
32149
32150 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
32151 toolbar_win_gravity.
32152 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
32153 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
32154 Add externs.
32155
32156 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
32157 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
32158
321592007-06-14 Chong Yidong <cyd@stupidchicken.com>
32160
32161 * image.c (search_image_cache): Remove unused variable.
32162
321632007-06-13 Chong Yidong <cyd@stupidchicken.com>
32164
32165 * xfns.c, xmenu.c: Link to xaw3d if available.
32166
321672007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32168
32169 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
32170 frame_foreground and frame_background.
32171
32172 * image.c (lookup_image): Save frame foreground and background colors.
32173 (search_image_cache): Check if saved and current frame colors match.
32174
321752007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
32176
32177 * regex.c (regex_compile): Remove the `regnum' counter.
32178 Use bufp->re_nsub instead. Add support for \(?N:RE\).
32179
321802007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
32181
32182 * term.c: Include intervals.h to declare Fget_text_property.
32183
321842007-06-10 Jason Rumney <jasonr@gnu.org>
32185
32186 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
32187
321882007-06-08 Juanma Barranquero <lekktu@gmail.com>
32189
32190 * callint.c (Fcall_interactively):
32191 * editfns.c (Fdelete_and_extract_region):
32192 * fileio.c (Fread_file_name):
32193 * fns.c (Fmapconcat):
32194 * keyboard.c (cmd_error_internal):
32195 * keymap.c (Fkey_description):
32196 * lread.c (openp):
32197 * minibuf.c (read_minibuf):
32198 * search.c (wordify):
32199 * sunfns.c (sel_read):
32200 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
32201 * xfns.c (x_default_scroll_bar_color_parameter):
32202 * xmenu.c (menu_help_callback):
32203 * xselect.c (Fx_get_atom_name):
32204 * xterm.c (x_term_init): Use empty_unibyte_string.
32205
322062007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
32207
32208 * alloc.c (init_strings): Initialize canonical empty strings.
32209 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
32210 canonical empty string when the requested size is 0.
32211
32212 * emacs.c (empty_unibyte_string): Rename from empty_string.
32213 (empty_multibyte_string): New canonical empty string.
32214 (syms_of_emacs): Don't initialize empty_string.
32215
32216 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
32217 string, if appropriate.
32218 (empty_unibyte_string, empty_multibyte_string): New externs.
32219 (empty_string): Remove extern.
32220
32221 * lread.c (syms_of_lread): Use empty_unibyte_string.
32222
322232007-06-07 Jason Rumney <jasonr@gnu.org>
32224
32225 * s/ms-w32.h: Don't define HAVE_TZNAME.
32226
32227 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
32228
322292007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32230
32231 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
32232
32233 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
32234 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
32235
32236 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32237 Don't call next handler.
32238 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
32239 Remove argument. Install handler to application.
32240 (set_frame_menubar): Don't change deep_p.
32241 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
32242 FRAME_OUTER_TO_INNER_DIFF_Y.
32243 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
32244 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
32245 [HAVE_DIALOGS]: New macros.
32246 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
32247 Use them.
32248 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
32249
32250 * macselect.c [MAC_OSX] (install_service_handler): Rename from
32251 init_service_handler. All callers changed. Return OSStatus value.
32252
32253 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
32254 All callers changed so as not to call SetPortWindowPort.
32255 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
32256 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
32257 mac_draw_string_common.
32258 (mac_draw_image_string_qd): Likewise.
32259 (mac_draw_string_common): Use them. Add INLINE.
32260 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
32261 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
32262 GetGlobalMouse.
32263 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
32264 and FRAME_OUTER_TO_INNER_DIFF_Y.
32265 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
32266 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
32267 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
32268 repositioning window to mac_handle_window_event.
32269 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
32270 saving window location to mac_handle_window_event
32271 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
32272 (install_menu_target_item_handler): Remove argument in extern.
32273 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
32274 Also accept command events.
32275 (do_keystroke): New function created from XTread_socket.
32276 (init_command_handler): Remove functions.
32277 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
32278 and save window location by kEventWindowShowing and kEventWindowHiding
32279 handlers here. Don't call next handler for window state change and
32280 focus events.
32281 (mac_handle_application_event, mac_handle_keyboard_event)
32282 [TARGET_API_MAC_CARBON]: New functions.
32283 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
32284 kEventWindowShowing and kEventWindowHiding events. Move installation
32285 of mouse, font, text input and menu target item handlers to
32286 install_application_handler.
32287 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
32288 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32289 New function.
32290 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32291 Register it.
32292 (XTread_socket) [TARGET_API_MAC_CARBON]:
32293 Consolidate SendEventToEventTarget calls.
32294 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
32295 Move application activation handler to mac_handle_application_event.
32296 Move keyboard handler to mac_handle_keyboard_event.
32297 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
32298 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
32299 init_command_handler. Call install_application_handler.
32300
32301 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
32302 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
32303
323042007-06-07 Glenn Morris <rgm@gnu.org>
32305
32306 * emacs.c (main): Use `emacs-copyright' in --version output.
32307
323082007-06-06 Chong Yidong <cyd@stupidchicken.com>
32309
32310 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
32311
323122007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32313
32314 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
32315
32316 * macgui.h: Replace WindowPtr with WindowRef.
32317
32318 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32319 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32320 Replace ControlHandle with ControlRef.
32321 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
32322
32323 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32324 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32325 Replace ControlHandle with ControlRef.
32326 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
32327 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
32328
32329 * macterm.h (struct scroll_bar): Rename member control_handle_low
32330 and control_handle_high to control_ref_low and control_ref_high.
32331 All uses changed.
32332 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
32333 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
32334 respectively. All uses changed.
32335 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
32336 (install_window_handler, remove_window_handler): Replace WindowPtr
32337 with WindowRef in externs.
32338
323392007-06-05 Juanma Barranquero <lekktu@gmail.com>
32340
32341 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
32342
323432007-06-03 Nick Roberts <nickrob@snap.net.nz>
32344
32345 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
32346
32347 * frame.c (Fmouse_position, Fmouse_pixel_position):
32348 Condition on HAVE_GPM too.
32349
32350 * term.c (term_mouse_highlight): Remove unused variables.
32351 (Fterm_open_connection): Set gpm_zerobased to 1.
32352 (term_mouse_movement, term_mouse_click, handle_one_term_event):
32353 Use zero based co-ordinates.
32354 (handle_one_term_event): Report a drag as mouse movement too.
32355
32356 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
32357
323582007-06-03 Chong Yidong <cyd@stupidchicken.com>
32359
32360 * image.c (search_image_cache): New function. Require background
32361 color match if background color is unspecified in the image spec.
32362 (uncache_image, lookup_image): Use it.
32363
323642007-06-01 Juanma Barranquero <lekktu@gmail.com>
32365
32366 * window.c (Fshrink_window): Reflow docstring.
32367
323682007-06-02 Chong Yidong <cyd@stupidchicken.com>
32369
32370 * Version 22.1 released.
32371
323722007-06-01 Richard Stallman <rms@gnu.org>
32373
32374 * xfns.c (x_encode_text): Add GCPRO.
32375
323762007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32377
32378 * xfns.c (x_set_name_internal): Save encoded name before
32379 x_encode_text in case string data is relocated.
32380
323812007-05-31 Richard Stallman <rms@gnu.org>
32382
32383 * buffer.c (syms_of_buffer): Doc fix.
32384
323852007-05-30 Nick Roberts <nickrob@snap.net.nz>
32386
32387 * sysdep.c (init_sys_modes): Add rather than replace with
32388 O_NONBLOCK.
32389
32390 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
32391 term_mouse_moveto.
32392
32393 * termhooks.h (term_mouse_moveto): New extern.
32394
32395 * term.c (mouse_face_window): Rename...
32396 (Qmouse_face_window): ...to this.
32397 (term_show_mouse_face, term_clear_mouse_face)
32398 (term_mouse_highlight): Use Qmouse_face_window.
32399 (term_mouse_moveto): New function.
32400 (term_mouse_position): Make it work.
32401 (syms_of_term): Uncomment assignment to mouse_position_hook.
32402 Staticpro Qmouse_face_window.
32403
324042007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32405
32406 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
32407 around current_column call.
32408
324092007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
32410
32411 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
32412 * xdisp.c (next_element_from_buffer):
32413 * window.c (delete_window):
32414 * term.c (term_mouse_highlight):
32415 * msdos.c (getdefdir):
32416 * macterm.c (mac_create_bitmap_from_bitmap_data)
32417 (init_font_name_table):
32418 * fns.c (Fsxhash):
32419 * data.c (Fmake_local_variable):
32420 * ccl.c (ccl_driver): Likewise.
32421
324222007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32423
32424 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
32425 Call mac_wakeup_from_rne on window size change.
32426
324272007-05-25 Chong Yidong <cyd@stupidchicken.com>
32428
32429 * image.c (uncache_image): Fix typo.
32430
324312007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
32432
32433 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
32434
324352007-05-22 Richard Stallman <rms@gnu.org>
32436
32437 * xterm.c (x_connection_closed): Remove NO_RETURN.
32438
324392007-05-22 Martin Rudalics <rudalics@gmx.at>
32440
32441 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
32442
324432007-05-21 Chong Yidong <cyd@stupidchicken.com>
32444
32445 * image.c (uncache_image): New function.
32446 (Fimage_refresh): New function.
32447
324482007-05-20 Jan Djärv <jan.h.d@swipnet.se>
32449
32450 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
32451
324522007-05-20 Nick Roberts <nickrob@snap.net.nz>
32453
32454 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
32455 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
32456
324572007-05-20 Nick Roberts <nickrob@snap.net.nz>
32458
32459 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
32460 conditional on [HAVE_GPM_H].
32461
324622007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
32463
32464 * syntax.c (skip_chars): Update syntax-table only after we checked that
32465 the new location is valid.
32466
324672007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32468
32469 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
32470 mac_get_window_bounds.
32471
324722007-05-20 Nick Roberts <nickrob@snap.net.nz>
32473
32474 * Makefile.in (LIBGPM): Allow it to be set from configure.
32475 If set then link Emacs with it.
32476
32477 * config.in: Regenerate.
32478
32479 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
32480 New externs.
32481
32482 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
32483 Include gpm.h.
32484 (handle_one_term_event, term_gpm): New externs.
32485
32486 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
32487 and allow it to be interrupted by SIGIO.
32488
32489 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
32490 (wait_reading_process_output): Wait on gpm_fd too.
32491 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
32492 (add_gpm_wait_descriptor_called_flag): New variable.
32493 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
32494
32495 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
32496 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
32497 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
32498 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
32499 (make_lispy_event): Add case GPM_CLICK_EVENT.
32500 (read_avail_input): Handle mouse input.
32501
32502 * term.c (write_glyphs_with_face): New function.
32503 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
32504 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
32505 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
32506 (mouse_face_face_id, term_gpm, pos_x, pos_y)
32507 (last_mouse_x, last_mouse_y): New variables.
32508 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
32509 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
32510 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
32511 (Fterm_close_connection): New functions.
32512 (term_init): Initialise mouse_face_window.
32513
325142007-05-19 Chong Yidong <cyd@stupidchicken.com>
32515
32516 * xdisp.c (redisplay_window): If first window line is a
32517 continuation line, recompute the new window start instead of
32518 recentering.
32519
325202007-05-18 Glenn Morris <rgm@gnu.org>
32521
32522 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
32523 Suggested by Alfred M. Szmidt <ams@gnu.org>.
32524
325252007-05-17 Glenn Morris <rgm@gnu.org>
32526
32527 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
32528
325292007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32530
32531 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
32532 dead key repeat and up events.
32533
325342007-05-14 Chong Yidong <cyd@stupidchicken.com>
32535
32536 * image.c (pbm_load): Check image size for monochrome pbm.
32537
325382007-05-13 Chong Yidong <cyd@stupidchicken.com>
32539
32540 * xterm.c (XTread_socket): Revert last change.
32541
325422007-05-12 Chong Yidong <cyd@stupidchicken.com>
32543
32544 * image.c (pbm_load): Correctly check image size for greyscale pbm.
32545
32546 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
32547
325482007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32549
32550 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
32551 mixup (YAILOM).
32552
325532007-05-07 Andreas Schwab <schwab@suse.de>
32554
32555 * keymap.c (Flookup_key): Fix typo in last change.
32556
325572007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32558
32559 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
32560 mapping for unibyte strings.
32561
325622007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32563
32564 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
32565 (Fx_popup_dialog) [MAC_OSX]: Likewise.
32566
325672007-04-29 Richard Stallman <rms@gnu.org>
32568
32569 * insdel.c (replace_range): For undo, record insertion first.
32570
325712007-04-29 Andreas Schwab <schwab@suse.de>
32572
32573 * lisp.h (VECSIZE): Use OFFSETOF.
32574
325752007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32576
32577 * xdisp.c (try_window_reusing_current_matrix): Fix number of
32578 disabled lines.
32579
325802007-04-28 Richard Stallman <rms@gnu.org>
32581
32582 * lread.c (read_escape): In a string, \s is always space.
32583
325842007-04-27 Jan Djärv <jan.h.d@swipnet.se>
32585
32586 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
32587
32588 * gtkutil.c (xg_update_menubar, create_menus): Create empty
32589 submenu for menu bar items.
32590
32591See ChangeLog.10 for earlier changes.
32592
32593;; Local Variables:
32594;; coding: utf-8
aac0c6e3
MR
32595;; End:
32596
73b0cd50 32597 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
32598
32599 This file is part of GNU Emacs.
32600
32601 GNU Emacs is free software: you can redistribute it and/or modify
32602 it under the terms of the GNU General Public License as published by
32603 the Free Software Foundation, either version 3 of the License, or
32604 (at your option) any later version.
32605
32606 GNU Emacs is distributed in the hope that it will be useful,
32607 but WITHOUT ANY WARRANTY; without even the implied warranty of
32608 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32609 GNU General Public License for more details.
32610
32611 You should have received a copy of the GNU General Public License
32612 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.