Merge from mainline.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
0bc32927
PE
12011-03-29 Paul Eggert <eggert@cs.ucla.edu>
2
792c7b2b
PE
3 * xdisp.c (try_window_reusing_current_matrix, x_produce_glyphs):
4 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5 Omit unused local vars.
c499e557 6 * window.c (shrink_windows): Omit unused local var.
b01a1c29 7 * menu.c (digest_single_submenu): Omit unused local var.
0bc32927
PE
8 * dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]:
9 Omit unused local var.
10
ba0165e1
PE
11 * keyboard.c (parse_modifiers_uncached, parse_modifiers):
12 Don't assume string length fits in int.
32ad8845 13 (keyremap_step, read_key_sequence): Use size_t for sizes.
48011560 14 (read_key_sequence): Don't check last_real_key_start redundantly.
ba0165e1 15
3c59b4c9
PE
16 * callproc.c (Fcall_process, Fcall_process_region): Use SAFE_ALLOCA
17 instead of alloca (Bug#8344).
18
a3eed478 19 * eval.c (Fbacktrace): Don't assume nargs fits in int.
5d5d959d 20 (Fbacktrace_frame): Don't assume nframes fits in int.
a3eed478 21
eb4d412d
PE
22 * syntax.c (scan_sexps_forward): Avoid pointer wraparound.
23
1658b401
PE
24 * xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow
25 concerns.
26
27 * term.c (produce_glyphless_glyph): Remove unnecessary test.
28
29 * cm.c (calccost): Turn while-do into do-while, for clarity.
44f730c8 30
9a2c6e05
PE
31 * keyboard.c (syms_of_keyboard): Use the same style as later
32 in this function when indexing through an array. This also
33 works around GCC bug 48267.
34
03d0a109
PE
35 * image.c (tiff_load): Fix off-by-one image count (Bug#8336).
36
44f730c8
PE
37 * xselect.c (x_check_property_data): Return correct size (Bug#8335).
38
fe75f926
PE
39 * chartab.c (sub_char_table_ref_and_range): Redo for slight
40 efficiency gain, and to bypass a gcc -Wstrict-overflow warning.
41
ffa8c828
PE
42 * keyboard.c, keyboard.h (num_input_events): Now size_t.
43 This avoids undefined behavior on integer overflow, and is a bit
44 more convenient anyway since it is compared to a size_t variable.
45
c5101a77
PE
46 Variadic C functions now count arguments with size_t, not int.
47 This avoids an unnecessary limitation on 64-bit machines, which
48 caused (substring ...) to crash on large vectors (Bug#8344).
49 * lisp.h (struct Lisp_Subr.function.aMANY): Now takes size_t, not int.
50 (DEFUN_ARGS_MANY, internal_condition_case_n, safe_call): Likewise.
51 All variadic functions changed accordingly.
52 (struct gcpro.nvars): Now size_t, not int. All uses changed.
53 * data.c (arith_driver, float_arith_driver): Likewise.
54 * editfns.c (general_insert_function): Likewise.
55 * eval.c (struct backtrace.nargs, interactive_p)
56 (internal_condition_case_n, run_hook_with_args, apply_lambda)
57 (funcall_lambda, mark_backtrace): Likewise.
58 * fns.c (concat): Likewise.
59 * frame.c (x_set_frame_parameters): Likewise.
60 * fns.c (get_key_arg): Now accepts and returns size_t, and returns
61 0 if not found, not -1. All callers changed.
62
dd3f25f7
PE
63 * alloc.c (garbage_collect): Don't assume stack size fits in int.
64 (stack_copy_size): Now size_t, not int.
65 (stack_copy, stack_copy_size): Define only if MAX_SAVE_STACK > 0.
66
461c2ab9
JB
672011-03-28 Juanma Barranquero <lekktu@gmail.com>
68
69 * coding.c (encode_designation_at_bol): Remove parameter `charbuf_end',
70 unused since 2002-03-01T01:17:24Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
71 All callers changed.
72
73 * lisp.h (multibyte_char_to_unibyte):
74 * character.c (multibyte_char_to_unibyte): Remove parameter `rev_tbl',
75 unused since 2002-03-01T01:16:34Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
76 * character.h (CHAR_TO_BYTE8):
77 * cmds.c (internal_self_insert):
78 * editfns.c (general_insert_function):
79 * keymap.c (push_key_description):
80 * search.c (Freplace_match):
81 * xdisp.c (message_dolog, set_message_1): All callers changed.
82
f6d62986
SM
832011-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
84
85 * keyboard.c (safe_run_hook_funcall): New function.
86 (safe_run_hooks_1, safe_run_hooks_error, safe_run_hooks): On error,
87 don't set the hook to nil, but remove the offending function instead.
88 (Qcommand_hook_internal): Remove, unused.
89 (syms_of_keyboard): Don't initialize Qcommand_hook_internal nor define
90 Vcommand_hook_internal.
91
92 * eval.c (enum run_hooks_condition): Remove.
93 (funcall_nil, funcall_not): New functions.
94 (run_hook_with_args): Call each function through a `funcall' argument.
95 Remove `cond' argument, now redundant.
96 (Frun_hooks, Frun_hook_with_args, Frun_hook_with_args_until_success)
97 (Frun_hook_with_args_until_failure): Adjust accordingly.
98 (run_hook_wrapped_funcall, Frun_hook_wrapped): New functions.
99
1db5b1ad
JB
1002011-03-28 Juanma Barranquero <lekktu@gmail.com>
101
102 * dispextern.h (string_buffer_position): Remove declaration.
103
104 * print.c (strout): Remove parameter `multibyte', unused since
105 1999-08-21T19:30:21Z!gerd@gnu.org. All callers changed.
106
107 * search.c (boyer_moore): Remove parameters `len', `pos' and `lim',
108 never used since function introduction in 1998-02-08T21:33:56Z!rms@gnu.org.
109 All callers changed.
110
111 * w32.c (_wsa_errlist): Use braces for struct initializers.
112
113 * xdisp.c (string_buffer_position_lim): Remove parameter `w',
114 never used since function introduction in 2001-03-09T18:41:50Z!gerd@gnu.org.
115 All callers changed.
116 (string_buffer_position): Likewise. Also, make static (it's never
117 used outside xdisp.c).
118 (cursor_row_p): Remove parameter `w', unused since
119 2000-10-17T16:08:57Z!gerd@gnu.org. All callers changed.
120 (decode_mode_spec): Remove parameter `precision', introduced during
121 Gerd Moellmann's rewrite at 1999-07-21T21:43:52Z!gerd@gnu.org, but never used.
122 All callers changed.
123
5ffb62aa
JD
1242011-03-27 Jan Djärv <jan.h.d@swipnet.se>
125
126 * nsterm.m (syms_of_nsterm): Use doc: for ns-auto-hide-menu-bar.
127
461c2ab9 1282011-03-27 Anders Lindgren <andlind@gmail.com>
f0a1382a
JD
129
130 * nsterm.m (ns_menu_bar_is_hidden): New variable.
131 (ns_constrain_all_frames, ns_menu_bar_should_be_hidden)
132 (ns_update_auto_hide_menu_bar): New functions.
133 (ns_update_begin): Call ns_update_auto_hide_menu_bar.
134 (applicationDidBecomeActive): Call ns_update_auto_hide_menu_bar and
135 ns_constrain_all_frames.
136 (constrainFrameRect): Return at once if ns_menu_bar_should_be_hidden.
137 (syms_of_nsterm): DEFVAR ns-auto-hide-menu-bar, init to Qnil.
138
5c380ffb
JD
1392011-03-27 Jan Djärv <jan.h.d@swipnet.se>
140
141 * nsmenu.m (runDialogAt): Remove argument to timer_check.
142
9af30bdf
GM
1432011-03-27 Glenn Morris <rgm@gnu.org>
144
145 * syssignal.h: Replace RETSIGTYPE with void.
146 * atimer.c, data.c, dispnew.c, emacs.c, floatfns.c, keyboard.c:
147 * keyboard.h, lisp.h, process.c, sysdep.c, xterm.c:
148 Replace SIGTYPE with void everywhere.
149 * s/usg5-4-common.h (SIGTYPE): Remove definition.
150 * s/template.h (SIGTYPE): Remove commented out definition.
151
66537049
EZ
1522011-03-26 Eli Zaretskii <eliz@gnu.org>
153
154 * xdisp.c (redisplay_window): Don't check buffer's clip_changed
155 flag as a prerequisite for invoking try_scrolling. (Bug#6671)
156
f868cd8a
JB
1572011-03-26 Juanma Barranquero <lekktu@gmail.com>
158
59eb0929
JB
159 * w32.c (read_unc_volume): Use parameter `henum', instead of
160 global variable `wget_enum_handle'.
161
162 * keymap.c (describe_vector): Remove parameters `indices' and
163 `char_table_depth', unused since 2002-03-01T01:43:26Z!handa@m17n.org.
164 (describe_map, Fdescribe_vector): Adjust calls to `describe_vector'.
165
f868cd8a
JB
166 * keyboard.h (timer_check, show_help_echo): Remove unused parameters.
167
168 * keyboard.c (timer_check): Remove parameter `do_it_now',
169 unused since 1996-04-12T06:01:29Z!rms@gnu.org.
170 (show_help_echo): Remove parameter `ok_to_overwrite_keystroke_echo',
171 unused since 2008-04-19T19:30:53Z!monnier@iro.umontreal.ca.
172
173 * keyboard.c (read_char):
174 * w32menu.c (w32_menu_display_help):
175 * xmenu.c (show_help_event, menu_help_callback):
176 Adjust calls to `show_help_echo'.
177
178 * gtkutil.c (xg_maybe_add_timer):
179 * keyboard.c (readable_events):
180 * process.c (wait_reading_process_output):
181 * xmenu.c (x_menu_wait_for_event): Adjust calls to `timer_check'.
182
183 * insdel.c (adjust_markers_gap_motion):
184 Remove; no-op since 1998-01-02T21:29:48Z!rms@gnu.org.
185 (gap_left, gap_right): Don't call it.
186
2ecf6fdb
CY
1872011-03-25 Chong Yidong <cyd@stupidchicken.com>
188
189 * xdisp.c (handle_fontified_prop): Discard changes to clip_changed
190 incurred during fontification.
191
6b1f9ba4
JB
1922011-03-25 Juanma Barranquero <lekktu@gmail.com>
193
194 * buffer.c (defvar_per_buffer): Remove unused parameter `doc'.
195 (DEFVAR_PER_BUFFER): Don't pass it.
196
197 * dispnew.c (row_equal_p, add_row_entry): Remove unused parameter `w'.
198 (scrolling_window): Don't pass it.
199
0f4a96b5
JB
2002011-03-25 Juanma Barranquero <lekktu@gmail.com>
201
202 * dispextern.h (glyph_matric): Use #if GLYPH_DEBUG, not #ifdef.
203
204 * fileio.c (check_executable) [DOS_NT]: Remove unused variables `len'
205 and `suffix'.
206 (Fset_file_selinux_context) [HAVE_LIBSELINUX]: Move here declaration
207 of variables specific to SELinux and computation of `encoded_absname'.
208
209 * image.c (XPutPixel): Remove unused variable `height'.
210
211 * keyboard.c (make_lispy_event): Remove unused variable `hpos'.
212
213 * unexw32.c (get_section_info): Remove unused variable `section'.
214
215 * w32.c (stat): Remove unused variables `drive_root' and `devtype'.
216 (system_process_attributes): Remove unused variable `sess'.
217 (sys_read): Remove unused variable `err'.
218
219 * w32fns.c (top): Wrap variables with #if GLYPH_DEBUG, not #ifdef.
220 (w32_wnd_proc): Remove unused variable `isdead'.
221 (unwind_create_frame): Use #if GLYPH_DEBUG, not #ifdef.
222 (Fx_server_max_request_size): Remove unused variable `dpyinfo'.
223 (x_create_tip_frame): Remove unused variable `tem'.
224
225 * w32inevt.c (w32_console_read_socket):
226 Remove unused variable `no_events'.
227
228 * w32term.c (x_draw_composite_glyph_string_foreground):
229 Remove unused variable `width'.
230
1149507c
JB
2312011-03-24 Juanma Barranquero <lekktu@gmail.com>
232
233 * w32term.c (x_set_glyph_string_clipping):
234 Don't pass uninitialized region to CombineRgn.
235
9c88f339
JB
2362011-03-23 Juanma Barranquero <lekktu@gmail.com>
237
238 * w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'.
239 (w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer.
240 (Fx_close_connection): Remove unused variable `i'.
241
242 * w32font.c (w32font_draw): Return number of glyphs.
243 (w32font_open_internal): Remove unused variable `i'.
244 (w32font_driver): Add missing initializer.
245
246 * w32menu.c (utf8to16): Remove unused variable `utf16'.
247 (fill_in_menu): Remove unused variable `items_added'.
248
249 * w32term.c (last_mouse_press_frame): Remove static global variable.
250 (w32_clip_to_row): Remove unused variable `f'.
251 (x_delete_terminal): Remove unused variable `i'.
252
253 * w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'.
254 (NOTHING): Remove unused static global variable.
255 (uniscribe_check_otf): Remove unused variable `table'.
256 (uniscribe_font_driver): Add missing initializers.
257
dee091a3
JD
2582011-03-23 Julien Danjou <julien@danjou.info>
259
260 * term.c (Fsuspend_tty, Fresume_tty):
261 * minibuf.c (read_minibuf, run_exit_minibuf_hook):
262 * window.c (temp_output_buffer_show):
263 * insdel.c (signal_before_change):
264 * frame.c (Fhandle_switch_frame):
265 * fileio.c (Fdo_auto_save):
266 * emacs.c (Fkill_emacs):
267 * editfns.c (save_excursion_restore):
268 * cmds.c (internal_self_insert):
269 * callint.c (Fcall_interactively):
270 * buffer.c (Fkill_all_local_variables):
271 * keyboard.c (Fcommand_execute, Fsuspend_emacs, safe_run_hooks_1):
272 Use Frun_hooks.
0f4a96b5 273 (command_loop_1): Use Frun_hooks. Call safe_run_hooks
dee091a3
JD
274 unconditionnaly since it does the check itself.
275
2c520ab5 2762011-03-23 Paul Eggert <eggert@cs.ucla.edu>
f0641eff 277
c9c49752
PE
278 Fix more problems found by GCC 4.5.2's static checks.
279
8abc3f12
PE
280 * coding.c (encode_coding_raw_text): Avoid unnecessary test
281 the first time through the loop, since we know p0 < p1 then.
282 This also avoids a gcc -Wstrict-overflow warning.
283
a2d26660
PE
284 * lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Avoid 'int' overflow
285 leading to a memory leak, possible in functions like
286 load_charset_map_from_file that can allocate an unbounded number
b12ef411 287 of objects (Bug#8318).
a2d26660 288
916c72e9
PE
289 * xmenu.c (set_frame_menubar): Use EMACS_UINT, not int, for indexes
290 that could (at least in theory) be that large.
291
19ab8a18
PE
292 * xdisp.c (message_log_check_duplicate): Return unsigned long, not int.
293 This is less likely to overflow, and avoids undefined behavior if
294 overflow does occur. All callers changed. Use strtoul to scan
295 for the unsigned long integer.
b7cbbd6f
PE
296 (pint2hrstr): Simplify and tune code slightly.
297 This also avoids a (bogus) GCC warning with gcc -Wstrict-overflow.
19ab8a18 298
f0641eff
PE
299 * scroll.c (do_scrolling): Work around GCC bug 48228.
300 See <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48228>.
301
7f650bb9
PE
302 * frame.c (Fmodify_frame_parameters): Simplify loop counter.
303 This also avoids a warning with gcc -Wstrict-overflow.
39f5e519
PE
304 (validate_x_resource_name): Simplify count usage.
305 This also avoids a warning with gcc -Wstrict-overflow.
7f650bb9 306
37dd57d1
PE
307 * fileio.c (Fcopy_file): Report error if fchown or fchmod
308 fail (Bug#8306).
81e56e61 309
699979fc 310 * emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303).
dc1ca6a8 311
401bf9b4
PE
312 * process.c (Fmake_network_process): Use socklen_t, not int,
313 where POSIX says socklen_t is required in portable programs.
314 This fixes a porting bug on hosts like 64-bit HP-UX, where
591b2973 315 socklen_t is wider than int (Bug#8277).
401bf9b4
PE
316 (Fmake_network_process, server_accept_connection):
317 (wait_reading_process_output, read_process_output):
318 Likewise.
319
b93aacde
PE
320 * process.c: Rename or move locals to avoid shadowing.
321 (list_processes_1, Fmake_network_process):
322 (read_process_output_error_handler, exec_sentinel_error_handler):
323 Rename or move locals.
4dc343ee 324 (Fmake_network_process): Define label "retry_connect" only if needed.
0da49335 325 (Fnetwork_interface_info): Fix pointer signedness.
f990b4e5 326 (process_send_signal): Add cast to avoid pointer signedness problem.
7b808126 327 (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros.
c939f91b 328 (create_process): Use 'volatile' to avoid vfork clobbering (Bug#8298).
b93aacde 329
af8a867c
PE
330 Make tparam.h and terminfo.c consistent.
331 * cm.c (tputs, tgoto, BC, UP): Remove extern decls. Include
332 tparam.h instead, since it declares them.
333 * cm.h (PC): Remove extern decl; tparam.h now does this.
334 * deps.mk (cm.o, terminfo.o): Depend on tparam.h.
335 * terminfo.c: Include tparam.h, to check interfaces.
336 (tparm): Make 1st arg a const pointer in decl. Put it at top level.
337 (tparam): Adjust signature to match interface in tparam.h;
338 this removes some undefined behavior. Check that outstring and len
339 are zero, which they always are with Emacs.
340 * tparam.h (PC, BC, UP): New extern decls.
341
0248044d 342 * xftfont.c (xftfont_shape): Now static, and defined only if needed.
001a7ab4 343 (xftfont_open): Rename locals to avoid shadowing.
0248044d 344
8ff096c1 345 * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness.
a00924bb
PE
346 (ftfont_otf_capability, ftfont_shape): Omit decls if not needed.
347 (OTF_TAG_SYM): Omit macro if not needed.
e932860f 348 (ftfont_list): Remove unused local.
49eaafba
PE
349 (get_adstyle_property, ftfont_pattern_entity):
350 (ftfont_lookup_cache, ftfont_open, ftfont_anchor_point):
351 Rename locals to avoid shadowing.
8ff096c1 352
e2be39f6
PE
353 * xfont.c (xfont_list_family): Mark var as initialized.
354
c9735e30
PE
355 * xml.c (make_dom): Now static.
356
8f5201ae
PE
357 * composite.c (composition_compute_stop_pos): Rename local to
358 avoid shadowing.
b246f932
PE
359 (composition_reseat_it): Remove unused locals.
360 (find_automatic_composition, composition_adjust_point): Likewise.
80e079b2 361 (composition_update_it): Mark var as initialized.
11b61122
PE
362 (find_automatic_composition): Mark vars as initialized,
363 with a FIXME (Bug#8290).
8f5201ae 364
760fbc2c
PE
365 character.h: Rename locals to avoid shadowing.
366 * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE):
367 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE):
368 (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, BUF_INC_POS):
369 (BUF_DEC_POS): Be more systematic about renaming local temporaries
370 to avoid shadowing.
371
ff08eb85
PE
372 * textprop.c (property_change_between_p): Remove; unused.
373
fc7bf025
PE
374 * intervals.c (interval_start_pos): Now static.
375
235d7abc
PE
376 * intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
377
3e7d6594
PE
378 * atimer.c (start_atimer, append_atimer_lists, set_alarm): Rename
379 locals to avoid shadowing.
380
50060332
PE
381 * sound.c (wav_play, au_play, Fplay_sound_internal):
382 Fix pointer signedness.
d01f234b 383 (alsa_choose_format): Remove unused local var.
c83b8872
PE
384 (wav_play): Initialize a variable to 0, to prevent undefined
385 behavior (Bug#8278).
50060332 386
c4fc4e30
PE
387 * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
388
918436ed
PE
389 * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes.
390
c939f91b
PE
391 * callproc.c (Fcall_process): Use 'volatile' to avoid vfork
392 clobbering (Bug#8298).
b9c7f648
PE
393 * sysdep.c (sys_subshell): Likewise.
394 Previously, the sys_subshell 'volatile' was incorrectly IF_LINTted out.
7e9123a2 395
6bd8c144
PE
396 * lisp.h (child_setup): Now NO_RETURN unless DOS_NT.
397 This should get cleaned up, so that child_setup has the
398 same signature on all platforms.
399
7710357c 400 * callproc.c (call_process_cleanup): Now static.
cb1d0ef7 401 (relocate_fd): Rename locals to avoid shadowing.
7710357c 402
c59da222
CY
4032011-03-22 Chong Yidong <cyd@stupidchicken.com>
404
405 * xterm.c (x_clear_frame): Remove XClearWindow call. This appears
406 not to be necessary, and produces flickering.
407
66b87493
GM
4082011-03-20 Glenn Morris <rgm@gnu.org>
409
410 * config.in: Remove file.
411
45b6f6d5
JB
4122011-03-20 Juanma Barranquero <lekktu@gmail.com>
413
414 * minibuf.c (Vcompleting_read_function): Don't declare, global variables
415 are now in src/globals.h.
416 (syms_of_minibuf): Remove spurious & from previous change.
417
3ec03f7e
LL
4182011-03-20 Leo <sdl.web@gmail.com>
419
420 * minibuf.c (completing-read-function): New variable.
421 (completing-read-default): Rename from completing-read.
422 (completing-read): Call completing-read-function.
423
b14e3e21
CY
4242011-03-19 Juanma Barranquero <lekktu@gmail.com>
425
426 * xfaces.c (Fx_load_color_file):
427 Read color file from absolute filename (bug#8250).
428
f2b726e6
JB
4292011-03-19 Juanma Barranquero <lekktu@gmail.com>
430
431 * makefile.w32-in: Update dependencies.
432
09f6ff02
EZ
4332011-03-17 Eli Zaretskii <eliz@gnu.org>
434
435 * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
436
29a6015a
PE
4372011-03-17 Paul Eggert <eggert@cs.ucla.edu>
438
a3a6c54e
PE
439 Fix more problems found by GCC 4.5.2's static checks.
440
b766f867
PE
441 * process.c (make_serial_process_unwind, send_process_trap):
442 (sigchld_handler): Now static.
443
be02381c
PE
444 * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
445 That way, the code declares only the vars that it needs.
446 * s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
447 * s/cygwin.h (PTY_ITERATION): Likewise.
448 * s/darwin.h (PTY_ITERATION): Likewise.
449 * s/gnu-linux.h (PTY_ITERATION): Likewise.
450
57048744
PE
451 * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
452 * process.c (allocate_pty): Don't declare stb unless it's needed.
453
7914961c 454 * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
615f2d59
PE
455 (CONSTANTLIM): Remove; unused.
456 (METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
457 Define only if needed.
7914961c 458
b3967b18
PE
459 * unexelf.c (unexec): Name an expression,
460 to avoid gcc -Wbad-function-cast warning.
9ae71512
PE
461 Use a different way to cause a compilation error if anyone uses
462 n rather than nn, a way that does not involve shadowing.
73366a00 463 (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused.
b3967b18 464
29a6015a
PE
465 * deps.mk (unexalpha.o): Remove; unused.
466
43cfc33e 467 New file unexec.h, the (simple) interface for unexec (Bug#8267).
7feda0d2 468 * unexec.h: New file.
ce701a33
PE
469 * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
470 (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
471 Depend on unexec.h.
472 * emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
473 * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
474 * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
381259ef 475 Change as necessary to match prototype in unexec.h.
ce701a33 476
01f44d5a
PE
477 * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
478 shadowing.
4f63c6bb 479 (back_comment, skip_chars): Mark vars as initialized.
01f44d5a 480
a6670b0b
PE
481 * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
482 Rename locals to avoid shadowing.
483
cef2010d 484 * lread.c (read1): Rewrite so as not to use empty "else".
0902fe45 485 (Fload, readevalloop, read1): Rename locals to avoid shadowing.
cef2010d 486
d4d7173a
PE
487 * print.c (Fredirect_debugging_output): Fix pointer signedess.
488
f08b802a
PE
489 * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
490 warning when compiling print.c.
491
3ddb0639
PE
492 * font.c (font_unparse_fcname): Abort in an "impossible" situation
493 instead of using an uninitialized var.
5ad03b97 494 (font_sort_entities): Mark var as initialized.
3ddb0639 495
170a2692
PE
496 * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
497
e663c700
PE
498 * font.c (font_unparse_xlfd): Don't mix pointers to variables with
499 pointers to constants.
89bc529a 500 (font_parse_fcname): Remove unused vars.
7b81e2d0 501 (font_delete_unmatched): Now static.
ea838e10 502 (font_get_spec): Remove; unused.
13a547c6
PE
503 (font_style_to_value, font_prop_validate_style, font_unparse_fcname):
504 (font_update_drivers, Ffont_get_glyphs, font_add_log):
505 Rename or move locals to avoid shadowing.
e663c700 506
2a80c887 507 * fns.c (require_nesting_list, require_unwind): Now static.
612f56df 508 (Ffillarray): Rename locals to avoid shadowing.
2a80c887 509
1384fa33 510 * floatfns.c (domain_error2): Define only if needed.
a885e2ed 511 (Ffrexp, Fldexp): Rename locals to avoid shadowing.
1384fa33 512
8b2c52e9
PE
513 * alloc.c (mark_backtrace): Move decl from here ...
514 * lisp.h: ... to here, so that it can be checked.
515
475545b5 516 * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
d28a2170 517 (Fdefvar): Rewrite so as not to use empty "else".
cfcbfb1a
PE
518 (lisp_indirect_variable): Name an expression,
519 to avoid gcc -Wbad-function-cast warning.
1faed8ae 520 (Fdefvar): Rename locals to avoid shadowing.
475545b5 521
b1349114 522 * callint.c (quotify_arg, quotify_args): Now static.
a3e8cbda 523 (Fcall_interactively): Rename locals to avoid shadowing.
b0e80955 524 Use const pointer when appropriate.
b1349114 525
a2928364
PE
526 * lisp.h (get_system_name, get_operating_system_release):
527 Move decls here, to check interfaces.
528 * process.c (get_operating_system_release): Move decl to lisp.h.
529 * xrdb.c (get_system_name): Likewise.
63c5d10b
PE
530 * editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
531 (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
532 some of which prompt warnings from gcc -Wbad-function-cast.
545b49b4
PE
533 (Fformat_time_string, Fencode_time, Finsert_char):
534 (Ftranslate_region_internal, Fformat):
535 Rename or remove local vars to avoid shadowing.
9710023e 536 (Ftranslate_region_internal): Mark var as initialized.
63c5d10b 537
a415e694
PE
538 * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
539 avoid shadowing.
540
8ef4622d
PE
541 * lisp.h (eassert): Check that the argument compiles, even if
542 ENABLE_CHECKING is not defined.
543
946f9a5b
PE
544 * data.c (Findirect_variable): Name an expression, to avoid
545 gcc -Wbad-function-cast warning.
112396d6 546 (default_value, arithcompare, arith_driver, arith_error): Now static.
b9b84fa9 547 (store_symval_forwarding): Rename local to avoid shadowing.
cdef261f
PE
548 (Fmake_variable_buffer_local, Fmake_local_variable): Mark
549 variables as initialized.
52746918 550 (do_blv_forwarding, do_symval_forwarding): Remove; unused.
946f9a5b 551
e5aab7e7 552 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
ae35e756
PE
553 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
554 Rename locals to avoid shadowing.
dff45157
PE
555 (mark_stack): Move local variables into the #ifdef region where
556 they're used.
7bc26fdb
PE
557 (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
558 ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
559 needed otherwise.
560 (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
561 (GC_STRING_CHARS): Remove; not used.
d40d4be1 562 (Fmemory_limit): Cast sbrk's returned value to char *.
ae35e756 563
e5aab7e7
PE
564 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
565 avoids undefined behavior in theory.
566
4da60324
PE
567 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
568
88043301
PE
569 Use functions, not macros, for up- and down-casing (Bug#8254).
570 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
571 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
572 to use the following functions instead of these macros.
573 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
574 EMACS_INT, since callers assume the returned value fits in int.
575 (upcase1): Likewise, for UPCASE_TABLE.
576 (uppercasep, lowercasep, upcase): New static inline functions.
0da09c43 577 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
db69b0cd 578 the race-condition problem in the old DOWNCASE.
88043301 579
19ed5445
PE
580 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
581 Rename locals to avoid shadowing.
582 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
abbd1bcf
PE
583 (regex_compile, re_search_2, re_match_2_internal):
584 Remove unused local vars.
952db0d7
PE
585 (FREE_VAR): Rewrite so as not to use empty "else",
586 which gcc can warn about.
da053e48 587 (regex_compile, re_match_2_internal): Mark locals as initialized.
b313f9d8
PE
588 (RETALLOC_IF): Define only if needed.
589 (WORDCHAR_P): Likewise. This one is never needed, but is used
590 only in a comment talking about a compiler bug, so put inside
591 the #if 0 of that comment.
592 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
593 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
594 Remove; unused.
19ed5445 595
1f3561e4 596 * search.c (boyer_moore): Rename locals to avoid shadowing.
76ef09b7
PE
597 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
598 (PREV_CHAR_BOUNDARY): Likewise.
1f3561e4 599
ded6f8f7
PE
600 * search.c (simple_search): Remove unused var.
601
dbd37a95
PE
602 * dired.c (compile_pattern): Move decl from here ...
603 * lisp.h: ... to here, so that it can be checked.
604 (struct re_registers): New forward decl.
605
7e47afad
PE
606 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
607
85f24f61
PE
608 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
609 All uses changed.
610 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
611 Rename locals to avoid shadowing.
5671df8f 612 (Fvertical_motion): Mark locals as initialized.
85f24f61 613
181aa2be 614 * casefiddle.c (casify_object, casify_region): Now static.
e45a141a 615 (casify_region): Mark local as initialized.
181aa2be 616
930d429c
PE
617 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
618
7082eac6
PE
619 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
620 New macros, so that the caller can use some names other than
621 gcpro1, gcpro2, etc.
622 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
623 of the new macros.
624 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
625 argument, for consistency with GCPRO2_VAR, etc: it is now the
626 prefix of the variable, not the variable itself. All uses
627 changed.
38b2c076
PE
628 * dired.c (directory_files_internal, file_name_completion):
629 Rename locals to avoid shadowing.
630
15206ed9
PE
631 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
632 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
633 dired.c's scmp function, had undefined behavior.
634 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
635 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
636 * buffer.h: ... to here, because these macros use current_buffer,
637 and the new implementation with inline functions needs to have
638 current_buffer in scope now, rather than later when the macros
639 are used.
640 (downcase, upcase1): New static inline functions.
641 (DOWNCASE, UPCASE1): Reimplement using these functions.
642 This avoids undefined behavior in expressions like
643 DOWNCASE (x) == DOWNCASE (y), which previously suffered
644 from race conditions in accessing the global variables
645 case_temp1 and case_temp2.
646 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
647 * lisp.h (case_temp1, case_temp2): Remove their decls.
648 * character.h (ASCII_CHAR_P): Move from here ...
649 * lisp.h: ... to here, so that the inline functions mentioned
650 above can use them.
651
4a6bea26
PE
652 * dired.c (directory_files_internal_unwind): Now static.
653
f14b7e14
PE
654 * fileio.c (file_name_as_directory, directory_file_name):
655 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
656 Now static.
2893f146
PE
657 (file_name_as_directory): Use const pointers when appropriate.
658 (Fexpand_file_name): Likewise. In particular, newdir might
659 point at constant storage, so make it a const pointer.
fd4ead52 660 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
b14aac08
PE
661 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
662 signedness issues.
f839df0c
PE
663 (Fset_file_times, Finsert_file_contents, auto_save_error):
664 Rename locals to avoid shadowing.
f14b7e14 665
5716756e 666 * minibuf.c (choose_minibuf_frame_1): Now static.
62137a95
PE
667 (Ftry_completion, Fall_completions): Rename or remove locals
668 to avoid shadowing.
5716756e 669
b4c3046a
PE
670 * marker.c (bytepos_to_charpos): Remove; unused.
671
b45db522
PE
672 * lisp.h (verify_bytepos, count_markers): New decls,
673 so that gcc does not warn that these functions aren't declared.
674
85876d07
PE
675 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
676 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
f0cb4a60 677 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
40ef059e 678 (copy_text): Remove unused local var.
85876d07 679
03d78a21 680 * filelock.c (within_one_second): Now static.
b3dd38ab 681 (lock_file_1): Rename local to avoid shadowing.
03d78a21 682
5df8f01b
PE
683 * buffer.c (fix_overlays_before): Mark locals as initialized.
684 (fix_start_end_in_overlays): Likewise. This function should be
685 simplified by using pointers-to-pointers, but that's a different
686 matter.
b1d876f1 687 (switch_to_buffer_1): Now static.
8f54f30a
PE
688 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
689 (report_overlay_modification): Rename locals to avoid shadowing.
c3bd59b5 690
a70072c9 691 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
fbd02d7b 692 Fix pointer signedness issue.
edced198
PE
693 (sys_subshell): Mark local as volatile if checking for lint,
694 to suppress a gcc -Wclobbered warning that does not seem to be right.
15dfd3d9 695 (MAXPATHLEN): Define only if needed.
a70072c9 696
a0977c44
PE
697 * process.c (serial_open, serial_configure): Move decls from here ...
698 * systty.h: ... to here, so that they can be checked.
699
a884fdcc
PE
700 * fns.c (get_random, seed_random): Move extern decls from here ...
701 * lisp.h: ... to here, so that they can be checked.
702
604efe86 703 * sysdep.c (reset_io): Now static.
b8950c94 704 (wait_for_termination_signal): Remove; unused.
604efe86 705
38fc62d9
PE
706 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
707 (copy_keymap_item, append_key, push_text_char_description):
708 Now static.
1004a21a 709 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
dbbb8427 710 (DENSE_TABLE_SIZE): Remove; unused.
c1141155
PE
711 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
712 (describe_map_tree):
713 Rename locals to avoid shadowing.
38fc62d9 714
2f2650da
PE
715 * keyboard.c: Declare functions static if they are not used elsewhere.
716 (echo_char, echo_dash, cmd_error, top_level_2):
717 (poll_for_input, handle_async_input): Now static.
69a058fa
PE
718 (read_char, kbd_buffer_get_event, make_lispy_position):
719 (make_lispy_event, make_lispy_movement, apply_modifiers):
720 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
721 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
722 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
c8a06054 723 (read_key_sequence, read_char): Mark locals as initialized.
3ac94672 724 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
2f2650da 725
a053e86c 726 * keyboard.h (make_ctrl_char): New decl.
da2f2dd9
PE
727 (mark_kboards): Move decl here ...
728 * alloc.c (mark_kboards): ... from here.
a053e86c 729
4752793e
PE
730 * lisp.h (force_auto_save_soon): New decl.
731
74f10ca7 732 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
244fc23d
PE
733 (DEFINE_DUMMY_FUNCTION): New macro.
734 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
735 Use it.
c03cd23f
PE
736 (main): Add casts to avoid warnings
737 if GCC considers string literals to be constants.
74f10ca7 738
022e70d4
PE
739 * lisp.h (fatal_error_signal): Add decl, since it's exported.
740
59d6fe83
PE
741 * dbusbind.c: Pointer signedness fixes.
742 (xd_signature, xd_append_arg, xd_initialize):
743 (Fdbus_call_method, Fdbus_call_method_asynchronously):
744 (Fdbus_method_return_internal, Fdbus_method_error_internal):
745 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
746 (Fdbus_register_signal): Use SSDATA when the context wants char *.
747
78320123
PE
748 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
749 if GCC considers string literals to be constants.
49cebcca 750 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
78320123 751
35ac2a97
SM
7522011-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
753
fb103ca9
SM
754 * print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
755 (print_preprocess, print_object): New macro to fix last change.
756
35ac2a97
SM
757 * print.c (print_preprocess): Don't forget font objects.
758
62973b41
JB
7592011-03-16 Juanma Barranquero <lekktu@gmail.com>
760
761 * emacs.c (USAGE3): Doc fixes.
762
0e48bb22
AS
7632011-03-15 Andreas Schwab <schwab@linux-m68k.org>
764
765 * coding.c (detect_coding_iso_2022): Reorganize code to clarify
766 structure.
767
7684e57b
JB
7682011-03-14 Juanma Barranquero <lekktu@gmail.com>
769
770 * lisp.h (VWindow_system, Qfile_name_history):
771 * keyboard.h (lispy_function_keys) [WINDOWSNT]:
772 * w32term.h (w32_system_caret_hwnd, w32_system_caret_height)
773 (w32_system_caret_x, w32_system_caret_y): Declare extern.
774
775 * w32select.c: Don't #include "keyboard.h".
c96bbc66 776 (run_protected): Add extern declaration for waiting_for_input.
7684e57b
JB
777
778 * w32.c (Qlocal, noninteractive1, inhibit_window_system):
779 * w32console.c (detect_input_pending, read_input_pending)
780 (encode_terminal_code):
781 * w32fns.c (quit_char, lispy_function_keys, Qtooltip)
782 (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x)
783 (w32_system_caret_y, Qfile_name_history):
784 * w32font.c (w32font_driver, QCantialias, QCotf, QClang):
785 * w32inevt.c (reinvoke_input_signal, lispy_function_keys):
786 * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map)
787 (Qoverriding_terminal_local_map, Qmenu_bar_update_hook):
788 * w32proc.c (Qlocal, report_file_error):
789 * w32term.c (Vwindow_system, updating_frame):
790 * w32uniscribe.c (initialized, uniscribe_font_driver):
791 Remove unneeded extern declarations.
792
2aa46d6c
CY
7932011-03-14 Chong Yidong <cyd@stupidchicken.com>
794
c96bbc66 795 * buffer.c (Fmake_indirect_buffer): Fix incorrect assertions.
2aa46d6c 796
cffc6f3b
CY
7972011-03-13 Chong Yidong <cyd@stupidchicken.com>
798
799 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
800 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
801 These macros can no longer be used for assignment.
802
803 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
804 struct members directly, instead of using BUF_BEGV etc.
805 (record_buffer_markers, fetch_buffer_markers): New functions for
806 recording and fetching special buffer markers.
807 (set_buffer_internal_1, set_buffer_temp): Use them.
808
809 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
810
811 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
812
813 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
814 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
815
816 * xdisp.c (hscroll_window_tree):
817 (reconsider_clip_changes): Use PT instead of BUF_PT.
818
d251f04b
EZ
8192011-03-13 Eli Zaretskii <eliz@gnu.org>
820
821 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
822 $(EMACS_ROOT)/lib/intprops.h.
823
f0c77cd1
PE
8242011-03-13 Paul Eggert <eggert@cs.ucla.edu>
825
3eca4629
PE
826 Fix more problems found by GCC 4.5.2's static checks.
827
7c86ee98
PE
828 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
829 to unsigned char * to avoid compiler diagnostic.
b0afc268
PE
830 (xg_free_frame_widgets): Make it clear that a local variable is
831 needed only if USE_GTK_TOOLTIP.
01e0b5ad
PE
832 (gdk_window_get_screen): Make it clear that this macro is needed
833 only if USE_GTK_TOOLTIP.
1e5524e7
PE
834 (int_gtk_range_get_value): New function, which avoids a diagnostic
835 from gcc -Wbad-function-cast.
836 (xg_set_toolkit_scroll_bar_thumb): Use it.
837 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
838 diagnostic from gcc -Wbad-function-cast.
65dc836c
PE
839 (get_utf8_string, xg_get_file_with_chooser):
840 Rename locals to avoid shadowing.
841 (create_dialog): Move locals to avoid shadowing.
7c86ee98 842
41729b81
PE
843 * xgselect.c (xg_select): Remove unused var.
844
f0c77cd1
PE
845 * image.c (four_corners_best): Mark locals as initialized.
846 (gif_load): Initialize transparent_p to zero (Bug#8238).
847 Mark another local as initialized.
ec6cf4c6 848 (my_png_error, my_error_exit): Mark with NO_RETURN.
f0c77cd1 849
ce0ad53d 850 * image.c (clear_image_cache): Now static.
d5d5a617 851 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
e22cffbc 852 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
77a765fd
PE
853 (x_edge_detection): Remove unnecessary cast that
854 gcc -Wbad-function-cast diagnoses.
2037898d 855 (gif_load): Fix pointer signedness.
6ae141d6
PE
856 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
857 (jpeg_load, gif_load): Rename locals to avoid shadowing.
ce0ad53d 858
3eca4629
PE
8592011-03-11 Paul Eggert <eggert@cs.ucla.edu>
860
d32df629
PE
861 Improve quality of tests for time stamp overflow.
862 For example, without this patch (encode-time 0 0 0 1 1
863 1152921504606846976) returns the obviously-bogus value (-948597
864 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
865 reports time overflow. See
866 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
b8d9bd41
PE
867 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
868 * editfns.c: Include limits.h and intprops.h.
869 (TIME_T_MIN, TIME_T_MAX): New macros.
870 (time_overflow): Move earlier, to before first use.
871 (hi_time, lo_time): New functions, for an accurate test for
872 out-of-range times.
873 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
874 (Fget_internal_run_time): Don't assume time_t fits in int.
875 (make_time): Use list2 instead of Fcons twice.
876 (Fdecode_time): More accurate test for out-of-range times.
877 (check_tm_member): New function.
878 (Fencode_time): Use it, to test for out-of-range times.
d32df629
PE
879 (lisp_time_argument): Don't rely on undefined left-shift and
880 right-shift behavior when checking for time stamp overflow.
8be6f318 881
fe31d94c
PE
882 * editfns.c (time_overflow): New function, refactoring common code.
883 (Fformat_time_string, Fdecode_time, Fencode_time):
884 (Fcurrent_time_string): Use it.
885
8be6f318
PE
886 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
887 * dired.c (make_time): Move to ...
888 * editfns.c (make_time): ... here.
889 * systime.h: Note the move.
890
09d9db2c 8912011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c47cbdfd 892
126bc0dc
YM
893 * fringe.c (update_window_fringes): Remove unused variables.
894
c47cbdfd
YM
895 * unexmacosx.c (copy_data_segment): Also copy __got section.
896 (Bug#8223)
897
7ac80be9
EZ
8982011-03-12 Eli Zaretskii <eliz@gnu.org>
899
c96bbc66 900 * termcap.c [MSDOS]: Include "msdos.h".
058e5dad
EZ
901 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
902 Constify `char *' arguments and their references according to
903 prototypes in tparam.h.
904
ecb0f94d 905 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
058e5dad 906
7ac80be9
EZ
907 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
908 Adapt all references accordingly.
909
910 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
911
ef1fd07e
TT
9122011-03-11 Tom Tromey <tromey@redhat.com>
913
914 * buffer.c (syms_of_buffer): Remove obsolete comment.
915
7ef4b50c
EZ
9162011-03-11 Eli Zaretskii <eliz@gnu.org>
917
918 * termhooks.h (encode_terminal_code): Declare prototype.
919
920 * msdos.c (encode_terminal_code): Don't declare prototype.
921
922 * term.c (encode_terminal_code): Now external again, used by
923 w32console.c and msdos.c.
924
925 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend
926 on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
927
4b1ec863 9282011-03-11 Paul Eggert <eggert@cs.ucla.edu>
f78faa98 929
1714f52b 930 Fix some minor problems found by GCC 4.5.2's static checks.
83316bf4 931
4b1ec863
PE
932 * fringe.c (update_window_fringes): Mark locals as initialized
933 (Bug#8227).
934 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
bf60f616 935
524c7aa6
PE
936 * alloc.c (mark_fringe_data): Move decl from here ...
937 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
938 to check its interface.
939 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
940
a5c0af81 941 * fontset.c (free_realized_fontset): Now static.
7519b8cd 942 (Fset_fontset_font): Rename local to avoid shadowing.
cc6e5db1 943 (fontset_font): Mark local as initialized.
a9a06e0b 944 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
a5c0af81 945
b4716021
PE
946 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
947
811e9bac 948 * xselect.c (x_disown_buffer_selections): Remove; not used.
7b83e2f1 949 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
aa0daa9f
PE
950 (x_own_selection, Fx_disown_selection_internal): Rename locals
951 to avoid shadowing.
952 (x_handle_dnd_message): Remove local to avoid shadowing.
811e9bac 953
7e3ab302
PE
954 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
955 so that the caller can use some name other than gcpro1.
956 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
58d2d479
PE
957 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
958 (Fx_backspace_delete_keys_p):
959 Use them to avoid shadowing, and rename vars to avoid shadowing.
960 (x_decode_color, x_set_name, x_window): Now static.
6b437900 961 (Fx_create_frame): Add braces to silence GCC warning.
c0951e53 962 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
06b0c8a0
PE
963 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
964 Remove unused locals.
7e3ab302
PE
965 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
966 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
967 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
968 macros.
f78faa98 969
e2b13473
PE
970 * xterm.h (x_mouse_leave): New decl.
971
77f23912
PE
972 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
973 Remove unused functions.
cdf4ba58
PE
974 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
975 (x_calc_absolute_position): Now static.
7411c686 976 (XTread_socket): Don't define label "out" unless it's used.
2b07bcff 977 Don't declare local "event" unless it's used.
ed7bf3a5
PE
978 (x_iconify_frame, x_free_frame_resources): Don't declare locals
979 unless they are used.
38d0b34a
PE
980 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
981 (x_fatal_error_signal): Remove; not used.
a6067996
PE
982 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
983 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
984 (x_error_catcher, x_connection_closed, x_error_handler):
985 (x_error_quitter, xembed_send_message, x_iconify_frame):
986 (my_log_handler): Rename locals to avoid shadowing.
28f1c698 987 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
2a8fade0 988 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
77f23912 989
071048a3
PE
990 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
991 or move locals to avoid shadowing.
6b463e58 992 (tty_defined_color, merge_face_heights): Now static.
5967d051 993 (free_realized_faces_for_fontset): Remove; not used.
1e9966ea
PE
994 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
995 does not deduce is never used uninitialized.
73719eba
PE
996 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
997 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
071048a3 998
426994c3 999 * terminal.c (store_terminal_param): Now static.
5489860b 1000
032f1620 1001 * xmenu.c (menu_highlight_callback): Now static.
9d66f88e 1002 (set_frame_menubar): Remove unused local.
d4323972 1003 (xmenu_show): Rename parameter to avoid shadowing.
6d1f7fee
PE
1004 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
1005 since they might point to immutable storage.
281585b0
PE
1006 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
1007 since it's unused otherwise.
032f1620 1008
367c19e5 1009 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
53df7c11 1010 Add a FIXME, since the code still doesn't look right. (Bug#8215)
9f36b9fd
PE
1011 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
1012 avoids a gcc -Wuninitialized diagnostic.
0e086e8f 1013 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
44a3a108
PE
1014 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
1015 does not deduce are never used uninitialized.
70739cbe 1016
07b48fa9
PE
1017 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
1018
8868a238 1019 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
4554d213
PE
1020 * window.c (window_loop, size_window):
1021 (run_window_configuration_change_hook, enlarge_window): Likewise.
8868a238 1022
7e5cf297 1023 * window.c (display_buffer): Now static.
d6550a9f
PE
1024 (size_window): Mark variables that gcc -Wuninitialized
1025 does not deduce are never used uninitialized.
a586633d
PE
1026 * window.h (check_all_windows): New decl, to forestall
1027 gcc -Wmissing-prototypes diagnostic.
5b555da1 1028 * dispextern.h (bidi_dump_cached_states): Likewise.
7e5cf297 1029
f6095868
PE
1030 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
1031 shadowing.
1032 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
726929c4
PE
1033 Include <limits.h>.
1034 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
1035 and to avoid gcc -Wuninitialized warning.
89ef49df
PE
1036 (load_charset_map): Mark variables that gcc -Wuninitialized
1037 does not deduce are never used uninitialized.
53df7c11 1038 (load_charset): Abort instead of using uninitialized var (Bug#8229).
f6095868 1039
f38b440c
PE
1040 * coding.c (coding_set_source, coding_set_destination):
1041 Use "else { /* comment */ }" rather than "else /* comment */;"
1042 for clarity, and to avoid gcc -Wempty-body warning.
2735d060
PE
1043 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
1044 a block, when the outer 'i' will do.
1045 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
1046 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
1047 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
1048 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
1049 (Fdecode_sjis_char, Fdefine_coding_system_internal):
1050 Rename locals to avoid shadowing.
1051 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
e2f1bab9
PE
1052 * coding.c (emacs_mule_char, encode_invocation_designation):
1053 Now static, since they're not used elsewhere.
413bb2db 1054 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
c4a63b12 1055 (decode_coding_object, encode_coding_object, detect_coding_system):
ee05f961
PE
1056 (decode_coding_emacs_mule): Mark variables that gcc
1057 -Wuninitialized does not deduce are never used uninitialized.
160b01f6
PE
1058 (detect_coding_iso_2022): Initialize a local variable that might
1059 be used uninitialized. Leave a FIXME because it's not clear that
53df7c11 1060 this initialization is needed. (Bug#8211)
5f58e762
PE
1061 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
1062 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
1063 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
1064 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
1065 Remove unused macros.
f38b440c 1066
232b38b9 1067 * category.c (hash_get_category_set): Remove unused local var.
9f3b5e69 1068 (copy_category_table): Now static, since it's not used elsewhere.
d0891610 1069 * character.c (string_count_byte8): Likewise.
232b38b9 1070
fb90da1b
PE
1071 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
1072 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
1073
fb93dbc2
PE
1074 * chartab.c (copy_sub_char_table): Now static, since it's not used
1075 elsewhere.
5c156ace
PE
1076 (sub_char_table_ref_and_range, char_table_ref_and_range):
1077 Rename locals to avoid shadowing.
bbcd0949 1078 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
fb93dbc2 1079
7d3b3862 1080 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
630d6892 1081 (BIDI_BOB): Remove unused macro.
7d3b3862 1082
6be7d3da
PE
1083 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
1084 deduce are never used uninitialized.
c2ed9c8b 1085 * term.c (encode_terminal_code): Likewise.
6be7d3da 1086
75f8807f 1087 * term.c (encode_terminal_code): Now static. Remove unused local.
72abad34 1088
50938595
PE
1089 * tparam.h: New file.
1090 * term.c, tparam.h: Include it.
1091 * deps.mk (term.o, tparam.o): Depend on tparam.h.
1092 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
1093 Move these decls to tparam.h, and make them agree with what
1094 is actually in tparam.c. The previous trick of using incompatible
1095 decls in different modules does not conform to the C standard.
1096 All callers of tparam changed to use tparam's actual API.
1097 * tparam.c (tparam1, tparam, tgoto):
1098 Use const pointers where appropriate.
1099
fbceeba2
PE
1100 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
1101 * cm.h (struct cm): Likewise.
1102 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
1103 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
1104 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
1105 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
1106 (turn_on_face, init_tty): Likewise.
1107 * termchar.h (struct tty_display_info): Likewise.
fbceeba2 1108
7f3f1250
PE
1109 * term.c (term_mouse_position): Rename local to avoid shadowing.
1110
e6ca6543
PE
1111 * alloc.c (mark_ttys): Move decl from here ...
1112 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
1113
c40f8d15
AS
11142011-03-11 Andreas Schwab <schwab@linux-m68k.org>
1115
1116 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
1117
cfe0661d
JB
11182011-03-09 Juanma Barranquero <lekktu@gmail.com>
1119
1120 * search.c (compile_pattern_1): Remove argument regp, unused since
1121 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
1122 (compile_pattern): Don't pass it.
1123
0afb4571
J
11242011-03-08 Jan Djärv <jan.h.d@swipnet.se>
1125
1126 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
1127 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
1128 for ! HAVE_GTK3.
1129 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
1130
1131 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
1132
1133 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
1134 gdk_window_get_screen, gdk_window_get_geometry,
1135 gdk_x11_window_lookup_for_display and GDK_KEY_g.
1136 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
1137 (xg_get_pixbuf_from_pixmap): New function.
1138 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
1139 to Pixmap, take frame as parameter, remove GdkColormap parameter.
1140 Call xg_get_pixbuf_from_pixmap instead of
1141 gdk_pixbuf_get_from_drawable.
1142 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
1143 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
1144 (xg_check_special_colors): Use GtkStyleContext and its functions
1145 for HAVE_GTK3.
1146 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
1147 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
1148 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
1149 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call
1150 gtk_widget_get_preferred_size.
1151 (xg_frame_resized): gdk_window_get_geometry only takes 5
1152 parameters.
1153 (xg_win_to_widget, xg_event_is_for_menubar): Call
1154 gdk_x11_window_lookup_for_display.
1155 (xg_set_widget_bg): New function.
1156 (delete_cb): New function.
1157 (xg_create_frame_widgets): connect delete-event to delete_cb.
1158 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
1159 (xg_set_background_color): Call xg_set_widget_bg.
1160 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
1161 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
1162 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
1163 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
1164 if ! HAVE_GTK3.
1165 (update_frame_tool_bar): Call gtk_widget_hide.
1166 (xg_initialize): Use GDK_KEY_g.
1167
1168 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
1169 if ! HAVE_GTK3
1170 (x_session_initialize): Call gdk_x11_set_sm_client_id.
1171
1172 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
1173 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
1174 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
1175
1c2cc4ef
JB
11762011-03-08 Juanma Barranquero <lekktu@gmail.com>
1177
1178 * w32xfns.c (select_palette): Check success of RealizePalette against
1179 GDI_ERROR, not zero.
1180
7faeca66
BK
11812011-03-07 Ben Key <bkey76@gmail.com>
1182
1183 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
1184 (file_dialog_callback): Fix locating the window handle of the File Name
1185 text field. After disabling it, set focus on the list control.
1186 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
1187 Name text field to "Current Directory" if it does not already have
cfe0661d 1188 another value. (Bug#8181)
7faeca66 1189
cf715c3c
AR
11902011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1191
1192 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
1193 parameter for hbar cursors. Based on a patch by Ben Key
1194 <bkey76@gmail.com>.
1195
ef272f1f
CY
11962011-03-06 Chong Yidong <cyd@stupidchicken.com>
1197
1198 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
1199 change.
1200
5489860b
PE
12012011-03-06 Paul Eggert <eggert@cs.ucla.edu>
1202
5f349a89
PE
1203 current_column: Now returns EMACS_INT, fixing some iftc
1204 that was introduced in the 2002-06-02 change "temporarily"; see
1205 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
7831777b
PE
1206 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
1207 * cmds.c (internal_self_insert): Likewise.
1208 * indent.c (Fcurrent_column): Likewise.
1209 * keymap.c (describe_command): Likewise.
1210 * minibuf.c (read_minibuf): Likewise.
1211 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
1212 to int.
1213 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
1214 Likewise.
1215 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
1216 not int or double, if they might contain a column number.
1217 * indent.c (current_column, Findent_to, indented_beyond_p):
1218 (compute_motion, vmotion): Likewise.
1219 * keymap.c (describe_command): Likewise.
1220 * xdisp.c (pint2str): Likewise.
1221 * indent.c (last_known_column): Now EMACS_INT, not int.
1222 * minibuf.c (minibuf_prompt_width): Likewise.
1223 * indent.c (current_column, current_column_1, position_indentation):
1224 Return EMACS_INT, not double.
1225 * lisp.h (current_column): Likewise.
1226 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
1227 All callers changed.
1228 * lisp.h (indented_beyond_p): Likewise.
1229
e9588e2e
PE
1230 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
1231 from xdisp.c, and make static, since these are used only here.
1232 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
1233 Remove decls.
1234
1e12733b 1235 * cmds.c (internal_self_insert): Reindent to match Emacs style.
179b8720 1236 * xdisp.c (redisplay_window): Likewise.
1e12733b 1237
5489860b
PE
1238 * xdisp.c: Rename or move local decls to avoid shadowing.
1239 (init_iterator, handle_fontified_prop, handle_single_display_spec):
1240 (message_dolog, message_with_string, redisplay_internal):
1241 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
1242 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
1243 (display_line, display_string, rows_from_pos_range):
1244 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
1245 Rename or move local decls.
7b781e9f 1246 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
841081e1
PE
1247 (produce_glyphless_glyph): Make a pointer "const"
1248 since it might point to immutable storage.
cfe0661d 1249 (update_window_cursor): Now static, since it's not used elsewhere.
acbfe54c 1250 (SKIP_GLYPHS): Removed unused macro.
5489860b 1251
aa248733
MS
12522011-03-06 Michael Shields <shields@msrl.com> (tiny change)
1253
1254 * window.c (Fnext_window): Doc fix. (Bug#5567)
1255
04cb6840
CY
12562011-03-05 Chong Yidong <cyd@stupidchicken.com>
1257
1258 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
1259
22c28cb8 12602011-03-02 Ken Brown <kbrown@cornell.edu>
5aef9e9a
KB
1261
1262 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1263
6c0dea8a
PE
12642011-03-02 Paul Eggert <eggert@cs.ucla.edu>
1265
1266 Work around some portability problems with symlinks.
1267
1268 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
1269 generate a special message for it. Suggested by Eli Zaretskii in
1270 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
1271 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
1272 Simplify the code by assuming that the readlink and symlink calls
1273 exist, even if they always fail on this host.
1274 (Ffile_readable_p): Likewise, for fifos.
1275 * config.in: Regenerate.
1276
52eb77a6
CY
12772011-02-27 Chong Yidong <cyd@stupidchicken.com>
1278
1279 * frame.c (store_frame_param): Don't store value directly in
1280 buffer_list and buried_buffer_list; copy the list and remove dead
1281 buffers (Bug#7898).
1282
0f7bb05d
EZ
12832011-02-27 Eli Zaretskii <eliz@gnu.org>
1284
40be44e2
EZ
1285 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
1286
01c35094 1287 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
40be44e2 1288
0f7bb05d
EZ
1289 * w32.c (symlink, readlink): New stub functions.
1290
27786b2f
PE
12912011-02-27 Paul Eggert <eggert@cs.ucla.edu>
1292
c783d15b
PE
1293 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
1294 This avoids a gcc warning in some configurations.
1295
76c1cebc
PE
1296 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
1297
0ff162fc
PE
1298 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
1299 (set_menu_bar_lines, x_get_resource_string): New decls.
1300 * msdos.c (set_menu_bar_lines): Omit decl.
1301
fdb0b28b
PE
1302 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
1303 It's always given int values and used as an int. This suppresses
1304 a gcc "comparison of unsigned expression >= 0" warning in some
1305 configurations.
1306
27786b2f
PE
1307 * dispnew.c: Rename locals to avoid shadowing.
1308 (update_text_area, scrolling_window, update_frame_1): Rename locals.
1309
09ad5a91
PE
13102011-02-26 Paul Eggert <eggert@cs.ucla.edu>
1311
1312 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
1313 (copy_glyph_row_contents): Remove; not used.
1314 (frame_row_to_window, check_current_matrix_flags):
1315 (window_change_signal): Now static, since they're not used elsewhere.
1316 (check_current_matrix_flags): Surround with "#if 0", since its
1317 only use is in a comment. Maybe both the comment and the "#if 0"
1318 stuff should be removed?
1319
d2d37ddc
PE
1320 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
1321 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
1322 contexts that actually need it.
1323
003fa8b6
EZ
13242011-02-26 Eli Zaretskii <eliz@gnu.org>
1325
1326 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
1327 (lstat): Define for DJGPP < 2.04.
1328
b1894766
PE
13292011-02-25 Paul Eggert <eggert@cs.ucla.edu>
1330
1331 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
1332 as per recent filemodestring API change. Reported by Jonas Öster in
1333 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
1334
e18c0aa3 13352011-02-23 Ben Key <bkey76@gmail.com>
2c6584e8
BK
1336
1337 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
1338 directly, for bar cursors.
1339
13402011-02-23 Chong Yidong <cyd@stupidchicken.com>
1341
1342 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
1343 into the frame's cursor_width.
1344
617a0e83
SM
13452011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
1346
1347 * print.c (print_object): Never print old-style backquotes.
1348 Obey escapeflag for hash tables as well.
1349
cce7d530 13502011-02-23 Kenichi Handa <handa@m17n.org>
e3b300a4
KH
1351
1352 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
cce7d530 1353 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
e3b300a4 1354
8d40723d
PE
13552011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1356
1357 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
1358
aa0f73d1
WJ
13592011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
1360
1361 * lread.c (openp): Correct Boolean typo in last commit.
1362
bdaa0745
AR
13632011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1364
1365 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
aa0f73d1 1366 key to Emacs, treat as unmodified (go to input manager processing).
bdaa0745 1367
f68c809d
PE
13682011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1369
1370 Assume S_ISLNK etc. work, since gnulib supports this.
1371 * config.in: Regenerate.
1372 * dired.c (lstat): Remove.
1373 (file_name_completion): Assume S_ISDIR works.
1374 (file_name_completion_stat): Assume S_ISLNK works.
1375 Do not bother calling stat unless lstat says it's a symlink.
1376 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
1377 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
1378 (check_writable, Ffile_writable_p, Fset_file_times):
1379 Assume S_ISDIR works.
1380 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
1381 fifos exist.
2f8f196d 1382 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
f68c809d
PE
1383 * filelock.c (S_ISLNK): Remove.
1384 * lread.c (openp): Assume S_ISDIR works.
1385 * xrdb.c (S_ISDIR): Remove.
1386
25c51af3
EZ
13872011-02-21 Eli Zaretskii <eliz@gnu.org>
1388
1389 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
2f8f196d 1390 lib/makefile.w32-in.
25c51af3
EZ
1391 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
1392 (GLOBAL_SOURCES): Remove filemode.c.
1393 (OBJ1): Remove $(BLD)/filemode.$(O).
1394
5c185672
PE
13952011-02-21 Paul Eggert <eggert@cs.ucla.edu>
1396
1397 Import filemode module from gnulib.
1398 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
1399 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
1400 (filemode.o): Remove; this is now in ../lib.
1401 * dired.c: Include <filemode.h>.
1402 (filemodestring): Remove now-redundant decl.
1403 * config.in: Regenerate.
1404
32159fc3
CS
14052011-02-20 Eli Zaretskii <eliz@gnu.org>
1406
1407 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
1408 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
1409
2f8f196d 14102011-02-20 Christoph Scholtes <cschol2112@gmail.com>
32159fc3
CS
1411
1412 * makefile.w32-in: Remove md5.$(O).
1413 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
1414 lib/makefile.w32-in.
1415
61353ac8 14162011-02-20 Paul Eggert <eggert@cs.ucla.edu>
ff05203e 1417
61353ac8
PE
1418 Import crypto/md5 and stdint modules from gnulib.
1419 * Makefile.in (base_obj): Remove md5.o, since this file
1420 is in lib now.
1421 * config.in: Regenerate.
1422 * md5.h, md5.h: Move to ../lib.
1423 * deps.mk (md5.o): Remove.
1424 (fns.o): Depend on ../lib/md5.h, not md5.h.
1425
9d9d12cd
EZ
14262011-02-19 Eli Zaretskii <eliz@gnu.org>
1427
f601db19
EZ
1428 * termcap.c (tputs): Don't declare baud_rate.
1429
9d9d12cd
EZ
1430 * s/msdos.h (strtold): Define to _strtold.
1431
aa56f361
SM
14322011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1433
cbe81f1d
SM
1434 * process.c (Fstart_process, Fmake_serial_process)
1435 (Fmake_network_process, server_accept_connection):
1436 Use empty_unibyte_string.
1437
1438 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
1439
aa56f361
SM
1440 * lread.c (Qdir_ok): New constant.
1441 (syms_of_lread): Initialize it.
1442 (openp): Don't ignore directories if the predicate returns dir-ok.
1443
d6de49a1
EZ
14442011-02-18 Eli Zaretskii <eliz@gnu.org>
1445
42af913d
EZ
1446 * xdisp.c (display_line): Fix the change made for bug#7939.
1447
d6de49a1
EZ
1448 * terminal.c (create_terminal): Use default-keyboard-coding-system
1449 and default-terminal-coding-system to initialize coding systems of
1450 the new terminal. (Bug#7840)
1451
b286858c
SM
14522011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1453
1454 * lisp.h (BYTE_MARK_STACK): New macro.
1455 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
1456
1457 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
1458 (struct byte_stack): Only define `top' and `bottom' if used.
1459 (mark_byte_stack): Only define if used.
1460 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
1461 is not set.
1462 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
1463
1464 * term.c (OUTPUT_IF): Use OUTPUT.
1465
1466 * alloc.c (Fgarbage_collect): When using stack scanning, don't
1467 redundantly scan byte-code stacks, catchlist, and handlerlist.
1468
124c9ff0
JD
14692011-02-17 Jan Djärv <jan.h.d@swipnet.se>
1470
1471 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
1472 (Fns_read_file_name): Replace B_ with BVAR.
1473
1474 * nsterm.m (ns_term_init): Use KVAR.
1475
05c65251
EZ
14762011-02-16 Eli Zaretskii <eliz@gnu.org>
1477
026d69ec
EZ
1478 * msdos.c (internal_terminal_init): Use KVAR.
1479
05c65251
EZ
1480 * w32fns.c (Fx_create_frame): Use KVAR.
1481
1482 * w32term.c (w32_create_terminal): Use KVAR.
1483
1484 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
eef5ce6e 1485 (getloadavg): Declare prototype which was removed from lisp.h.
05c65251
EZ
1486
1487 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
1488
b286858c
SM
1489 * fileio.c (Finsert_file_contents, Fwrite_region):
1490 Remove references to buffer_file_type.
05c65251
EZ
1491 (syms_of_fileio): Don't intern and staticpro
1492 find-buffer-file-type.
1493
1494 * callproc.c (syms_of_callproc): Remove references to
1495 buffer_file_type.
1496
1497 * buffer.c (reset_buffer_local_variables): Don't set
1498 buffer_file_type.
1499 (init_buffer_once): Likewise.
1500 (syms_of_buffer): Don't define buffer-file-type.
1501
1502 * buffer.h (struct buffer): Remove buffer_file_type.
1503
1344aad4
TT
15042011-02-16 Tom Tromey <tromey@parfait>
1505
15f58304
EZ
1506 * callint.c (Fcall_interactively): Update for change to field names.
1507 * doc.c (Fsubstitute_command_keys): Update for change to field names.
1508 * cmds.c (Fself_insert_command): Update for change to field names.
1344aad4 1509 * keymap.c (Fcurrent_active_maps, Fkey_binding)
15f58304 1510 (Fdescribe_buffer_bindings): Update for change to field names.
1344aad4
TT
1511 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
1512 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
15f58304 1513 Update for change to field names.
1344aad4
TT
1514 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
1515 (echo_length, echo_truncate, cmd_error, command_loop_1)
1516 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
1517 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
1518 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
1519 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
15f58304
EZ
1520 Update for change to field names.
1521 * xfns.c (Fx_create_frame): Update for change to field names.
1522 * xterm.c (x_connection_closed, x_term_init): Update for change to
1523 field names.
1344aad4 1524 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
15f58304 1525 Update for change to field names.
1344aad4 1526 * window.c (window_scroll_pixel_based, window_scroll_line_based):
15f58304 1527 Update for change to field names.
1344aad4 1528 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
15f58304 1529 (delete_frame): Update for change to field names.
1344aad4
TT
1530 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
1531 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
1532 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
1533
eb4916d7
TT
15342011-02-16 Tom Tromey <tromey@redhat.com>
1535
1536 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
1537
4b4deea2
TT
15382011-02-16 Tom Tromey <tromey@parfait>
1539
1540 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
1541 * xfaces.c (compute_char_face): Replace B_ with BVAR.
1542 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1543 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1544 (with_echo_area_buffer, setup_echo_area_for_printing)
1545 (set_message_1, update_menu_bar, update_tool_bar)
1546 (text_outside_line_unchanged_p, redisplay_internal)
1547 (try_scrolling, try_cursor_movement, redisplay_window)
1548 (try_window_reusing_current_matrix, row_containing_pos)
1549 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1550 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1551 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1552 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
1553 BVAR.
1554 * window.c (window_display_table, unshow_buffer, window_loop)
1555 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1556 (select_window, Fforce_window_update, temp_output_buffer_show)
1557 (Fset_window_configuration, save_window_save): Replace B_ with
1558 BVAR.
1559 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
1560 Replace B_ with BVAR.
1561 * undo.c (record_point, record_insert, record_delete)
1562 (record_marker_adjustment, record_first_change)
1563 (record_property_change, Fundo_boundary, truncate_undo_list)
1564 (Fprimitive_undo): Replace B_ with BVAR.
1565 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
1566 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
1567 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1568 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1569 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
1570 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1571 (string_match_1, fast_looking_at, newline_cache_on_off)
1572 (search_command, search_buffer, simple_search, boyer_moore)
1573 (Freplace_match): Replace B_ with BVAR.
1574 * process.c (get_process, list_processes_1, Fstart_process)
1575 (Fmake_serial_process, Fmake_network_process)
1576 (read_process_output, send_process, exec_sentinel)
1577 (status_notify, setup_process_coding_systems): Replace B_ with
1578 BVAR.
1579 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
1580 (strout, print_string, temp_output_buffer_setup, print_object):
1581 Replace B_ with BVAR.
1582 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
b286858c
SM
1583 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
1584 Replace B_ with BVAR.
4b4deea2
TT
1585 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1586 (set_marker_both, set_marker_restricted_both, unchain_marker):
1587 Replace B_ with BVAR.
1588 * lread.c (readchar, unreadchar, openp, readevalloop)
1589 (Feval_buffer, Feval_region): Replace B_ with BVAR.
1590 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
1591 * keymap.c (Flocal_key_binding, Fuse_local_map)
1592 (Fcurrent_local_map, push_key_description)
1593 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
1594 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1595 (read_key_sequence): Replace B_ with BVAR.
1596 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
1597 * intervals.c (set_point_both, get_local_map): Replace B_ with
1598 BVAR.
1599 * insdel.c (check_markers, insert_char, insert_1_both)
1600 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1601 (adjust_after_replace, replace_range, del_range_2)
1602 (modify_region, prepare_to_modify_buffer)
1603 (Fcombine_after_change_execute): Replace B_ with BVAR.
1604 * indent.c (buffer_display_table, recompute_width_table)
1605 (width_run_cache_on_off, current_column, scan_for_column)
1606 (Findent_to, position_indentation, compute_motion, vmotion):
1607 Replace B_ with BVAR.
1608 * fringe.c (get_logical_cursor_bitmap)
1609 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1610 with BVAR.
1611 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1612 * font.c (font_at): Replace B_ with BVAR.
1613 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1614 Replace B_ with BVAR.
1615 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1616 (unlock_buffer): Replace B_ with BVAR.
1617 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1618 (Ffile_regular_p, Ffile_selinux_context)
1619 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1620 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1621 (Finsert_file_contents, choose_write_coding_system)
1622 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1623 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1624 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1625 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1626 (save_excursion_restore, Fprevious_char, Fchar_before)
1627 (general_insert_function, Finsert_char, Finsert_byte)
1628 (make_buffer_string_both, Finsert_buffer_substring)
1629 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1630 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1631 (Ftranslate_region_internal, save_restriction_restore)
1632 (Fchar_equal): Replace B_ with BVAR.
1633 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1634 * dispextern.h (WINDOW_WANTS_MODELINE_P)
1635 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1636 * dired.c (directory_files_internal): Replace B_ with BVAR.
1637 * data.c (swap_in_symval_forwarding, set_internal)
1638 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1639 Replace B_ with BVAR.
1640 * composite.c (fill_gstring_header)
1641 (composition_compute_stop_pos, composition_adjust_point)
1642 (Ffind_composition_internal): Replace B_ with BVAR.
1643 * coding.c (decode_coding, encode_coding)
1644 (make_conversion_work_buffer, decode_coding_gap)
1645 (decode_coding_object, encode_coding_object)
1646 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1647 (Funencodable_char_position, Fcheck_coding_systems_region):
1648 Replace B_ with BVAR.
1649 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1650 with BVAR.
1651 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1652 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1653 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1654 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1655 * category.h (Vstandard_category_table): Replace B_ with BVAR.
1656 * category.c (check_category_table, Fcategory_table)
1657 (Fset_category_table, char_category_set): Replace B_ with BVAR.
1658 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1659 BVAR.
1660 * casefiddle.c (casify_object, casify_region): Replace B_ with
1661 BVAR.
1662 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1663 with BVAR.
1664 * callint.c (check_mark, Fcall_interactively): Replace B_ with
1665 BVAR.
1666 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1667 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1668 with BVAR.
1669 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1670 (get_truename_buffer, Fget_buffer_create)
1671 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1672 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1673 (Fbuffer_local_value, buffer_lisp_local_variables)
1674 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1675 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1676 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1677 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1678 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1679 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1680 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1681 (record_overlay_string, overlay_strings, init_buffer_once)
1682 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1683
8678d9e4 16842011-02-16 Eli Zaretskii <eliz@gnu.org>
a73d395b
EZ
1685
1686 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1687 window is changed inside calls to do_pending_window_change.
1688 (Bug#8020)
1689
1f5d53eb
PE
16902011-02-16 Paul Eggert <eggert@cs.ucla.edu>
1691
1692 Remove no-longer needed getloadavg symbols.
1693 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1694 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1695 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1696 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1697 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1698 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1699 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1700 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1701 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1702 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
1703 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
1704 (LDAV_SYMBOL): Remove.
1705 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
1706 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1707
1708 Import getloadavg module from gnulib.
1709 * deps.mk (getloadavg.o): Remove; gnulib now does this.
1710 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
1711 now does this.
1712 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
1713 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
1714 * config.in: Regenerate.
1715
8017fd6b
EZ
17162011-02-15 Eli Zaretskii <eliz@gnu.org>
1717
1718 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1719
75b43359
MWD
17202011-02-14 Michael Welsh Duggan <md5i@md5i.com>
1721
1722 * print.c (float_to_string): Ensure that a decimal point is
1723 printed if using dtoastr (Bug#8033).
1724
fc3ca113
EZ
17252011-02-14 Eli Zaretskii <eliz@gnu.org>
1726
1f5d53eb 1727 * msdos.c (IT_frame_up_to_date):
ef72f149
EZ
1728 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1729
fc3ca113
EZ
1730 * dired.c (directory_files_internal):
1731 * fileio.c (Finsert_file_contents):
1732 * insdel.c (prepare_to_modify_buffer):
1733 * xdisp.c (pos_visible_p):
1734 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1735 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1736 Use B_ for the MS-Windows build.
1737
3928f2b6
JD
17382011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1739
1740 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1741 resource that specifies helvetica for menus and dialogs.
1742
1743 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
1744 (apply_systemfont_to_menu): Set resources *menubar*font and
1745 *popup*font. Remove defflt.
b286858c
SM
1746 (set_frame_menubar, create_and_show_popup_menu):
1747 Call apply_systemfont_to_menu before lw_create_widget.
3928f2b6 1748
4bb81cc2
TT
17492011-02-14 Tom Tromey <tromey@redhat.com>
1750
fc3ca113
EZ
1751 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
1752
4bb81cc2
TT
1753 * keyboard.h: Remove obsolete comment.
1754
5d8ea120
TT
17552011-02-14 Tom Tromey <tromey@parfait>
1756
1757 * composite.c (fill_gstring_header)
1758 (composition_compute_stop_pos, composition_adjust_point)
1759 (Ffind_composition_internal): Use B_.
1760 * intervals.c (set_point_both, get_local_map): Use B_.
1761 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
1762 * process.c (get_process, list_processes_1, Fstart_process)
1763 (Fmake_serial_process, Fmake_network_process)
1764 (read_process_output, send_process, exec_sentinel)
1765 (status_notify, setup_process_coding_systems): Use B_.
1766 * bytecode.c (Fbyte_code): Use B_.
1767 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1768 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1769 (skip_syntaxes, scan_lists): Use B_.
1770 * lread.c (readchar, unreadchar, openp, readevalloop)
1771 (Feval_buffer, Feval_region): Use B_.
1772 * print.c (printchar, strout, print_string, PRINTDECLARE)
1773 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
1774 (print_object): Use B_.
1775 * font.c (font_at): Use B_.
b286858c
SM
1776 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1777 Use B_.
5d8ea120
TT
1778 * callint.c (check_mark, Fcall_interactively): Use B_.
1779 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1780 (save_excursion_restore, Fprevious_char, Fchar_before)
1781 (general_insert_function, Finsert_char, Finsert_byte)
1782 (make_buffer_string_both, Finsert_buffer_substring)
1783 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1784 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1785 (Ftranslate_region_internal, save_restriction_restore)
1786 (Fchar_equal): Use B_.
1787 * data.c (swap_in_symval_forwarding, set_internal)
1788 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1789 Use B_.
1790 * undo.c (record_point, record_insert, record_delete)
1791 (record_marker_adjustment, record_first_change)
1792 (record_property_change, Fundo_boundary, truncate_undo_list)
1793 (Fprimitive_undo): Use B_.
1794 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1795 (string_match_1, fast_looking_at, newline_cache_on_off)
1796 (search_command, search_buffer, simple_search, boyer_moore)
1797 (Freplace_match): Use B_.
1798 * indent.c (buffer_display_table, recompute_width_table)
1799 (width_run_cache_on_off, current_column, scan_for_column)
b286858c
SM
1800 (Findent_to, position_indentation, compute_motion, vmotion):
1801 Use B_.
5d8ea120
TT
1802 * casefiddle.c (casify_object, casify_region): Use B_.
1803 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
1804 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
1805 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1806 (Ffile_regular_p, Ffile_selinux_context)
1807 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1808 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1809 (Finsert_file_contents, choose_write_coding_system)
1810 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1811 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1812 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
1813 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
1814 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
b286858c
SM
1815 (set_marker_both, set_marker_restricted_both, unchain_marker):
1816 Use B_.
5d8ea120
TT
1817 * insdel.c (check_markers, insert_char, insert_1_both)
1818 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1819 (adjust_after_replace, replace_range, del_range_2)
1820 (modify_region, prepare_to_modify_buffer)
1821 (Fcombine_after_change_execute): Use B_.
1822 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1823 (unlock_buffer): Use B_.
1824 * keymap.c (Flocal_key_binding, Fuse_local_map)
1825 (Fcurrent_local_map, push_key_description)
1826 (Fdescribe_buffer_bindings): Use B_.
1827 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1828 (read_key_sequence): Use B_.
1829 * fringe.c (get_logical_cursor_bitmap)
1830 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
1831 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
1832 * xfaces.c (compute_char_face): Use B_.
1833 * character.c (chars_in_text, Fget_byte): Use B_.
1834 * category.c (check_category_table, Fcategory_table)
1835 (Fset_category_table, char_category_set): Use B_.
1836 * coding.c (decode_coding, encode_coding)
1837 (make_conversion_work_buffer, decode_coding_gap)
1838 (decode_coding_object, encode_coding_object)
1839 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
b286858c
SM
1840 (Funencodable_char_position, Fcheck_coding_systems_region):
1841 Use B_.
5d8ea120
TT
1842 * charset.c (Ffind_charset_region): Use B_.
1843 * window.c (window_display_table, unshow_buffer, window_loop)
1844 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1845 (select_window, Fforce_window_update, temp_output_buffer_show)
1846 (Fset_window_configuration, save_window_save): Use B_.
1847 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1848 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1849 (with_echo_area_buffer, setup_echo_area_for_printing)
1850 (set_message_1, update_menu_bar, update_tool_bar)
1851 (text_outside_line_unchanged_p, redisplay_internal)
1852 (try_scrolling, try_cursor_movement, redisplay_window)
1853 (try_window_reusing_current_matrix, row_containing_pos)
1854 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1855 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1856 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1857 (get_window_cursor_type, note_mouse_highlight): Use B_.
1858 * frame.c (make_frame_visible_1): Use B_.
1859 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
1860 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
1861 (WINDOW_WANTS_MODELINE_P): Use B_.
1862 * syntax.h (Vstandard_syntax_table): Update.
1863 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
1864 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
1865 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
1866 * character.h (FETCH_CHAR_ADVANCE): Update.
1867 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
1868 * category.h (Vstandard_category_table): Update.
1869 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
1870 names.
1871 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
1872 * buffer.c (swapfield_): New macro.
1873 (Fbuffer_swap_text): Use swapfield_ where appropriate.
1874 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
1875 (Fget_buffer_create, clone_per_buffer_values)
1876 (Fmake_indirect_buffer, reset_buffer)
1877 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1878 (Fbuffer_local_value, buffer_lisp_local_variables)
1879 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1880 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1881 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1882 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1883 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1884 (Fbuffer_swap_text, Fset_buffer_multibyte)
1885 (swap_out_buffer_local_variables, record_overlay_string)
1886 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
1887 Use B_.
1888 * buffer.h (struct buffer): Rename all Lisp_Object fields.
1889 (BUFFER_INTERNAL_FIELD, B_): New macro.
1890 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
1891
42f60557
JD
18922011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1893
1894 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
1895 is null.
1896
2f9a22e2
J
18972011-02-13 Jan Djärv <jan.h.d@swipnet.se>
1898
1899 * callproc.c (Fcall_process):
1900 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
1901 comment.
1902
84eb0351 19032011-02-12 Martin Rudalics <rudalics@gmx.at>
bae1fa42
MR
1904
1905 * window.c (select_window): Check inhibit_point_swap argument when
1906 deciding whether to return immediately.
1907
84eb0351 19082011-02-12 Jan Djärv <jan.h.d@swipnet.se>
9aabf64c
JD
1909
1910 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
1911 zero (Bug#7348).
1912
84eb0351
CY
19132011-02-12 Chong Yidong <cyd@stupidchicken.com>
1914
1915 * config.in (TERMINFO): New definition.
1916
1917 * s/netbsd.h: Use it to choose between terminfo and termcap
1918 (Bug#7642).
1919
33d605d0
PE
19202011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1921
1922 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
1923 The difference doesn't matter here, in practice, and sizeof is
1924 more portable to non-GCC compilers. Also, this makes the code
1925 match the already-existing comment.
1926
c0ad4ea5
AS
19272011-02-12 Andreas Schwab <schwab@linux-m68k.org>
1928
1929 * process.c (create_process): Reset SIGPIPE handler in the child.
1930 * callproc.c (Fcall_process): Likewise. (Bug#5238)
1931
50fd938f
EZ
19322011-02-12 Eli Zaretskii <eliz@gnu.org>
1933
1934 * xdisp.c <this_line_min_pos>: New variable.
1935 (move_it_in_display_line_to): Record in this_line_min_pos the
1936 smallest position iterated across.
1937 (display_line): Use this_line_min_pos to record the smallest
1938 position in the line even if it is not displayed due to
1939 hscrolling. (Bug#7939)
1940
af59aa6e
PE
19412011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1942
cec81b22
PE
1943 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
1944 * md5.h (ATTRIBUTE_ALIGNED): New macro.
1945 (struct md5_ctx): Use it.
1946
af59aa6e
PE
1947 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
1948 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
1949 defined.
1950 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
1951 FC_HINT_STYLE is supported.
1952
02c3706c
JD
19532011-02-11 Jan Djärv <jan.h.d@swipnet.se>
1954
1955 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
1956 Make sure we don't do x_catch_errors twice.
1957
5ac75e8f
GM
19582011-02-10 Glenn Morris <rgm@gnu.org>
1959
1960 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
1961
d37f40ed
EZ
19622011-02-09 Eli Zaretskii <eliz@gnu.org>
1963
5ac75e8f
GM
1964 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
1965 New macros.
d37f40ed
EZ
1966 (globals.h, gl-stamp): New targets.
1967 (clean): Clean gl-stamp and globals.h.
1968
33cd3ee4
AS
19692011-02-09 Andreas Schwab <schwab@linux-m68k.org>
1970
1971 * Makefile.in (gl-stamp): Create globals.h here.
1972 (globals.h): Don't do it here.
1973 (mostlyclean): Clean globals.h and gl-stamp.
1974
f9f2e7f5
PE
19752011-02-09 Paul Eggert <eggert@cs.ucla.edu>
1976
1977 * Makefile.in ($(otherobj)): Depend on globals.h.
1978 Otherwise 'make -j10' failed on my host, because the build lacked
1979 necessary dependencies, e.g., vm-limit.o depends on globals.h.
1980
00b3c7ac
TT
19812011-02-08 Tom Tromey <tromey@redhat.com>
1982
1983 * Makefile.in (NS_OBJC_OBJ): New variable.
1984 (base_obj): Rename from 'obj'.
1985 (obj): New variable.
1986 (globals.h, gl-stamp, $(obj)): New targets.
1987 (GLOBAL_SOURCES): New variable.
1988 * globals.h: Remove.
1989 * nsselect.m (Vselection_alist): Define. Reverts part of
1990 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
1991 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
1992 variable.
1993 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
1994
8f3b2e12
KH
19952011-02-08 Kenichi Handa <handa@m17n.org>
1996
1997 * font.c (Ffont_get): Do not cache :otf value.
1998
4f043d0f
PE
19992011-02-07 Paul Eggert <eggert@cs.ucla.edu>
2000
2001 conform to C89 pointer rules
2002
2003 * dired.c (scmp, file_name_completion):
2004 Change types between char * and unsigned char *, to satisfy C89
2005 rules about pointer type compatibility.
47ce90e4 2006 * casefiddle.c (casify_object, casify_region): Likewise.
a7e979a4 2007 * search.c (Freplace_match, Fregexp_quote): Likewise.
90256841
PE
2008 * alloc.c (make_string, make_specified_string, make_pure_string):
2009 Likewise.
57ace6d0 2010 * data.c (Fstring_to_number): Likewise.
09125ef8
PE
2011 * print.c (float_to_string, PRINTFINISH, printchar, strout):
2012 (print_object): Likewise.
e7f8264d
PE
2013 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
2014 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
2015 (Fformat): Likewise.
a2db9982 2016 * callint.c (Fcall_interactively): Likewise.
f1e59824
PE
2017 * fns.c (string_make_multibyte, string_to_multibyte):
2018 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
2019 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
2020 Likewise.
4a25e32a 2021 * lread.c (read1, hash_string): Likewise.
400a67ff
PE
2022 * process.c (read_process_output, send_process, Fprocess_send_region):
2023 Likewise.
0ca76b1e 2024 * callproc.c (Fcall_process): Likewise.
7469ef5d
PE
2025 * doprnt.c (doprnt): Likewise.
2026 * indent.c (compute_motion): Likewise.
efe0234f 2027 * xfont.c (xfont_decode_coding_xlfd): Likewise.
3ce2f8ac 2028 * ralloc.c (resize_bloc): Likewise.
b19beacc 2029 * image.c (tiff_load): Likewise.
c45e5276 2030 * xml.c (make_dom, parse_region): Likewise.
7469ef5d
PE
2031 * character.c (strwidth): Make its argument const char *, not const
2032 unsigned char *, since more callers prefer it that way. All callers
2033 changed.
4f043d0f 2034
9eee99eb
PE
20352011-02-06 Paul Eggert <eggert@cs.ucla.edu>
2036
4c83cffc
PE
2037 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
2038 Emacs assumes two's complement elsewhere, but the assumption is
2039 easy to remove here, and this suppresses a warning with Sun C 5.8.
2040
82470039
PE
2041 conform to C89 pointer rules
2042
2043 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
2044 (same_x_server, x_term_init):
9eee99eb
PE
2045 Change types between char * and unsigned char *, to satisfy C89
2046 rules about pointer type compatibility.
82470039
PE
2047 * doc.c (get_doc_string, Fsnarf_documentation):
2048 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
2049 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
2050 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 2051 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
2052 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
2053 Likewise.
01c9aa3a 2054 * keymap.c (Ftext_char_description): Likewise.
637de37e 2055 * minibuf.c (Fread_buffer): Likewise.
5976c3fe
PE
2056 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
2057 (DRIVE_LETTER) [defined DOS_NT]:
2058 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
2059 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
2060 (search_embedded_absfilename, Fsubstitute_in_file_name):
2061 (barf_or_query_if_file_exists, Fmake_directory_internal):
2062 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
2063 (Finsert_file_contents, Fwrite_region):
2064 Likewise.
b68864e5
PE
2065 * insdel.c (insert, insert_and_inherit, insert_before_markers):
2066 (insert_before_markers_and_inherit, insert_1, insert_1_both):
2067 Likewise. This changes these functions' signatures, which is
2068 more convenient since most callers use char *. All remaining
2069 callers changed.
2070 * editfns.c (general_insert_function): Change signature to
2071 match changes to insert functions' signatures.
b286858c
SM
2072 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
2073 Use explicit cast when converting between void * and function pointer
01c9aa3a 2074 types, as C89 requires this.
9eee99eb 2075
32299e33
PE
20762011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2077
2078 don't ignore chdir failure
2079 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
2080 failure and exit.
2081 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
2082 remaining unchecked chdir calls in this function; some DOS/NT
2083 expert needs to fix them.
2084 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
2085 in this function; some NextStep expert needs to fix them.
2086
233ba4d9 20872011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
2088
2089 * xfaces.c (Finternal_set_lisp_face_attribute):
2090 Try to clarify some error messages. (Bug#2659)
2091
233ba4d9 20922011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
2093
2094 * editfns.c (save_restriction_restore): Don't forget to invalidate the
2095 current_column cache (bug#7946).
2096
233ba4d9 20972011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
2098
2099 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
2100
2101 * xftfont.c (xftfont_open): Likewise.
2102
233ba4d9 21032011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
2104
2105 * window.c (Fselect_window): Add missing return value.
2106
d67985d3
PE
21072011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2108
25a48bd0
PE
2109 xstrcasecmp: conform to C89 pointer rules
2110 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
2111 to const char *, since they're usually low-level C strings, and
2112 this stays compatible with C89 pointer rules. All callers changed.
2113
2f8f196d 2114 * charset.c: Conform to C89 pointer rules.
dfb6afda
PE
2115 (define_charset_internal): Switch between char * and unsigned char *.
2116
2f8f196d 2117 * xmenu.c: Conform to C89 const rules.
cc618f4e
PE
2118 (xmenu_show, xdialog_show): Declare local var as char *, not
2119 const char *, to stay compatible with C89 const rules.
2120
2f8f196d 2121 * xdisp.c: Conform to C89 pointer rules.
9bcaafce
PE
2122 (store_mode_line_noprop, display_string, reseat_to_string):
2123 (c_string_pos, number_of_chars, message_dolog):
2124 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
2125 (display_mode_element, display_string):
2126 Switch between char * and unsigned char * to stay compatible wth
2127 C89 pointer rules.
2128
2f8f196d 2129 * regex.c: Conform to C89 pointer rules.
5b0534c8
PE
2130 (re_wctype): Add cast, as C89 does not allow assigning between
2131 char * and unsigned char *.
2132 (regex_compile): Likewise.
2133
d67985d3
PE
2134 sync from gnulib to remove HAVE_STDBOOL_H
2135 * config.in: Regenerate.
2136
a5d733f5
EZ
21372011-02-04 Eli Zaretskii <eliz@gnu.org>
2138
f90e08f5
EZ
2139 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
2140 Replace all uses of lisp.h with $(LISP_H), and all uses of
2141 process.h with $(PROCESS_H).
2142 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
2143 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
2144
be50df37
EZ
2145 * deps.mk: Update for recent changes: gnutls support, gnulib
2146 imports, addition of globals.h.
2147
f90e08f5
EZ
2148 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
2149 ../lib/ignore-value.h.
a5d733f5 2150
67342916
PE
21512011-02-03 Paul Eggert <eggert@cs.ucla.edu>
2152
2153 allow C code to suppress warnings about ignored return values
2154
2155 We need to go through the code and for each such warning, either
2156 fix the code to pay attention to the returned value, or tell GCC
2157 that we really do want to ignore the returned value. Here is one
2158 example of how to do the latter.
2159 * sysdep.c: Include <ignore-value.h>.
2160 (sys_subshell): Suppress an undesirable warning about not checking
2161 the returned value of 'write', as there's nothing useful one can
2162 do with that returned value.
2163
36941b32
JD
21642011-02-03 Jan Djärv <jan.h.d@swipnet.se>
2165
2166 * xterm.c (x_connection_closed): Remove all calls that calls
2167 XSync (Bug#7949).
2168
3082f617
EZ
21692011-02-01 Eli Zaretskii <eliz@gnu.org>
2170
2171 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
2172 TIFFClientOpen.
2173
4df0af9b
JD
21742011-02-01 Jan Djärv <jan.h.d@swipnet.se>
2175
2176 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
2177 (x_session_check_input): Change args and return type so it can be used
2178 as argument to add_read_fd. Make static. Remove call to select.
2179 Call kbd_buffer_store_event for emacs_event.
2180 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
2181 (ice_conn_watch_CB): Call add_read_fd.
2182
2183 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
2184 x_session_check_input.
2185 (x_session_initialized): Remove definition.
2186 (x_initialize): Remove setting of x_session_initialized.
2187
2188 * xterm.h (x_session_check_input): Remove declaration.
2189
a4180391
PE
21902011-02-01 Paul Eggert <eggert@cs.ucla.edu>
2191
2192 format-time-string now supports subsecond time stamp resolution
b286858c 2193 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
a4180391
PE
2194 for consistency with its new argument and with gnulib nstrftime.
2195 All callers changed. New argument NS.
2196 (Fformat_time_string): Check that the time argument's microseconds
2197 component, if any, is in range; this avoids integer overflow and
2198 also nstrftime needs this. Document %N.
2199
14beddf4 22002011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
2201
2202 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
2203 of int. All uses adjusted.
2204 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
2205 (svg_load_image): Remove casts.
2206
14beddf4 22072011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
2208
2209 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
2210 function definitions for compiling with libpng-1.5.
2211 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
2212 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
2213 (Bug#7908).
2214
70b0d280
EZ
22152011-01-31 Eli Zaretskii <eliz@gnu.org>
2216
8b3c625b
EZ
2217 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
2218
70b0d280
EZ
2219 * makefile.w32-in (OBJ2): Remove strftime.$(O).
2220 ($(BLD)/strftime.$(O)): Remove prerequisites.
2221
16fab143
PE
22222011-01-31 Paul Eggert <eggert@cs.ucla.edu>
2223
2224 src/emacs.c now gets version number from configure.in
2225 * emacs.c (emacs_version): Set to VERSION so that it
2226 is determined automatically from ../configure.in.
2227
546961a9
JM
22282011-01-31 Jim Meyering <meyering@redhat.com>
2229
2230 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
2231 Use xmalloc rather than malloc.
2232
42a5b22f
PE
22332011-01-30 Paul Eggert <eggert@cs.ucla.edu>
2234
16c3e636
PE
2235 strftime: import from gnulib
2236 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
2237 * deps.mk (strftime.o): Remove.
2238 * editfns.c: Include <strftime.h>, supplied by gnulib.
2239 (emacs_strftimeu): Remove decl.
2240 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
2241 emacs_strftimeu.
2242 * config.in: Regenerate.
2243 * strftime.c: Remove; we now use strftime from gnulib.
2244
42a5b22f
PE
2245 Use SSDATA when the context wants char *.
2246 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
2247 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
2248 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
2249 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
2250 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
2251 Use SSDATA (not SDATA) when the context of the expression wants
2252 char * (not unsigned char *).
2253
2787bba3
JD
22542011-01-30 Jan Djärv <jan.h.d@swipnet.se>
2255
2256 * .gdbinit: Read global lisp variables as globals.f_V*.
2257
4ec88040
AS
22582011-01-30 Andreas Schwab <schwab@linux-m68k.org>
2259
2260 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
2261 All uses changed.
2262 (PROP_SAVE): Likewise.
2263
b6bcd048
CY
22642011-01-29 Chong Yidong <cyd@stupidchicken.com>
2265
2266 * keyboard.c (make_lispy_position): Fix typo in last change
2267 (Bug#7935).
2268
f915f0f7
EZ
22692011-01-29 Eli Zaretskii <eliz@gnu.org>
2270
2271 * s/ms-w32.h (HAVE_MKTIME): Remove.
2272
2273 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
2274 (GNULIB): New variable.
2275 (LIBS): Add $(GNULIB).
2276 $(TEMACS): Depend on $(GNULIB).
2277 <top-level>: Fix font-lock disrupted by a lone `"'.
2278
497a1925
JD
22792011-01-29 Jan Djärv <jan.h.d@swipnet.se>
2280
2281 * nsselect.m (ns_string_from_pasteboard): Get length of string
2282 and use make_string instead of build_string (Bug#7934).
2283 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
2284 instead of stringWithUTF8String (Bug#7934).
2285
2f8f196d 22862011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
481ae085 2287
2f8f196d
JB
2288 * nsfont.m (nsfont_open): Ensure that fonts with inexact
2289 descenders would not become one pixel too tall (Bug#7887).
481ae085 2290
6b918613
CY
22912011-01-28 Chong Yidong <cyd@stupidchicken.com>
2292
2293 * keyboard.c (make_lispy_position): For clicks on right fringe or
2294 margin, compute text position using the X coordinate relative to
2295 the left of the text area (Bug#7839).
2296
9e269017
KH
22972011-01-28 Kenichi Handa <handa@m17n.org>
2298
2299 * ftfont.c (ftfont_spec_pattern): Check each extra property
2300 value.
2301
17dd1fc8
SM
23022011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
2303
2304 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
2305
372fb76b
CY
23062011-01-27 Chong Yidong <cyd@stupidchicken.com>
2307
2308 * font.c (font_parse_fcname): Undefine a temporary macro.
2309
e7f7fbaa
SM
23102011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
2311
2312 Let the debugger continue to the normal handler (bug#7825).
2313 * eval.c (maybe_call_debugger): Declare before new use.
2314 (find_handler_clause): Don't call debugger any more.
2315 Ignore Vstack_trace_on_error.
2316 Use XCAR/XCDR.
2317 (syms_of_eval): Remove Vstack_trace_on_error.
2318 (Fsignal): Only modify handlerlist when we know we need to do it.
2319 Call the debugger when necessary.
2320 * globals.h (Vstack_trace_on_error): Remove.
2321
6608a7d8
CY
23222011-01-26 Chong Yidong <cyd@stupidchicken.com>
2323
2324 * font.c (font_parse_fcname): Rewrite GTK font name parser.
2325
06d8ace5 23262011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
2327
2328 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
2329 the buffer's point-max (bug#7876).
2330
06d8ace5 23312011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
2332
2333 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 2334 Remove unused case (Bug#6811).
19634648 2335
8ab70320
JD
23362011-01-23 Jan Djärv <jan.h.d@swipnet.se>
2337
2338 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
2339 setFrameTopLeftPoint is constrained.
2340
51b59d79
PE
23412011-01-23 Paul Eggert <eggert@cs.ucla.edu>
2342
9055082e
PE
2343 Check return values of some library calls.
2344 * emacs.c (main): Check dup result.
2345 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
2346 (frame_name_fnn_p): Check strtol result.
2347
5c7d01a5 2348 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
2349 when calling XpmCreatePixmapFromData.
2350
51b59d79
PE
2351 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
2352 * lisp.h (SSDATA): New macro.
2353 All uses of (char *) SDATA (x) replaced with SSDATA (x),
2354 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
2355 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
2356 * xsmfns.c (SSDATA): Likewise.
2357
e6b84b30
MR
23582011-01-22 Martin Rudalics <rudalics@gmx.at>
2359
2360 * window.c (select_window): New function.
2361 (Fselect_window): Call it.
2362 (inhibit_point_swap): Variable deleted.
2363 (Fset_window_configuration): Call select_window directly.
2364
3fb69558
JD
23652011-01-22 Jan Djärv <jan.h.d@swipnet.se>
2366
2367 * nsterm.m (constrainFrameRect): Only constrain the first time called.
2368
449ab399
JD
23692011-01-21 Jan Djärv <jan.h.d@swipnet.se>
2370
e2f79c8d
JD
2371 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
2372 screen, not the window screen.
2373 (x_set_window_size): Remove constraints.
2374 Calculate origin.y only if zooming is 0 and without referring to a
2375 screen.
2376 (windowWillResize): Don't modify frameSize.
2377 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
2378 (initFrameFromEmacs): Initialize ns_userRect.
2379 (windowShouldZoom): Set zooming to one. Remove all other code.
2380 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
2381 Zero it after restore.
2382 (constrainFrameRect): New method for EmacsWindow.
2383 (mouseDragged): Always post NSWindowDidResizeNotification after call to
2384 windowWillResize.
2385
2386 * nsterm.h (ns_output): Add dont_constrain and zooming.
2387 (EmacsView): Add ns_userRect.
2388
449ab399
JD
2389 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
2390 if ns_alternate_modifier is none.
2391
e885315d
JD
23922011-01-20 Jan Djärv <jan.h.d@swipnet.se>
2393
2394 * unexmacosx.c: Add comment about include order.
2395
bb1c6663
GM
23962011-01-20 Glenn Morris <rgm@gnu.org>
2397
c11136ec
GM
2398 * minibuf.c (syms_of_minibuf) <read-expression-history>:
2399 Give it a doc string.
2400 * globals.h: Add Vread_expression_history.
2401
bb1c6663
GM
2402 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
2403 Give it a doc string.
2404 * globals.h: Add Vkbd_macro_termination_hook.
2405
9aea757b
CY
24062011-01-20 Chong Yidong <cyd@stupidchicken.com>
2407
2408 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
2409
e1ef0dac
PE
24102011-01-19 Paul Eggert <eggert@cs.ucla.edu>
2411
2412 Fix X11 compilation failure.
2413 * globals.h (struct emacs_globals): Document f_Vselection_alist.
2414 * xselect.c (Vselection_alist): Remove declaration, moving its
2415 documentation to globals.h. This fixes a compilation failure
2416 induced by the earlier change to globals.h today.
2417
fb9d0f5a
JD
24182011-01-19 Jan Djärv <jan.h.d@swipnet.se>
2419
8beb828a
JD
2420 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
2421
fb9d0f5a
JD
2422 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
2423 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
2424 (ns_input_spi_name, ns_input_spi_arg)
2425 (ns_alternate_modifier, ns_right_alternate_modifier)
2426 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
2427 (ns_right_control_modifier, ns_function_modifier)
2428 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
2429 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
2430 (x_underline_at_descent_line): Remove declaration.
2431 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
2432
01c35094 2433 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
fb9d0f5a
JD
2434 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
2435 (syms_of_nsselect): Remove & from DEFVAR_LISP.
2436
2437 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
2438 Remove declaration.
2439
2440 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
2441 globals.h.
2442 (syms_of_nsfont): Remove & from DEFVAR_LISP.
2443
2444 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
2445 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
2446 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
2447
2448 * globals.h (struct emacs_globals): Add f_ns_input_file,
2449 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
2450 f_ns_input_color, f_ns_input_text, f_ns_working_text,
2451 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
2452 f_ns_right_alternate_modifier, f_ns_command_modifier,
2453 f_ns_right_command_modifier, f_ns_control_modifier,
2454 f_ns_right_control_modifier, f_ns_function_modifier,
2455 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
2456 f_Vns_version_string, f_Vns_sent_selection_hooks,
2457 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
2458 and corresponding defines.
2459
4e55715e
SS
24602011-01-19 Sam Steingold <sds@gnu.org>
2461
2462 * w32.c (check_windows_init_file): Remove declarations of
2463 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 2464 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 2465
ef79d2fa
TT
24662011-01-19 Tom Tromey <tromey@redhat.com>
2467
2468 * window.c: Fix error introduced by previous patch.
2469
29208e82
TT
24702011-01-18 Tom Tromey <tromey@parfait>
2471
2472 * globals.h: New file.
2473 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
2474 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
2475 (Vwindow_system_version): Remove declaration.
2476 * w32term.h (Vw32_enable_palette)
2477 (Vx_pixel_size_width_font_regexp): Remove declaration.
2478 * w32menu.c (Voverriding_local_map)
2479 (Voverriding_local_map_menu_flag): Remove declaration.
2480 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
2481 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
2482 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
2483 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
2484 (Vw32_phantom_key_code, Vw32_recognize_altgr)
2485 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2486 (w32_use_full_screen_buffer): Remove declaration.
2487 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
2488 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
2489 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
2490 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
2491 (no_redraw_on_reenter, visible_bell): Remove declaration.
2492 * sysdep.c (Vsystem_name): Remove declaration.
2493 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
2494 * menu.h (Vmenu_updating_frame): Remove declaration.
2495 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
2496 Remove declaration.
2497 * lisp.h (Vafter_init_time, Vafter_load_alist)
2498 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
2499 (Vcompletion_regexp_list, Vcurrent_load_list)
2500 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
2501 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
2502 (Vexec_directory, Vexec_path, Vexec_suffixes)
2503 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
2504 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
2505 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
2506 (Vinstallation_directory, Vinvocation_directory)
2507 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
2508 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
2509 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
2510 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
2511 (Vscalable_fonts_allowed, Vselect_active_regions)
2512 (Vshell_file_name, Vstandard_input, Vstandard_output)
2513 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
2514 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
2515 (Vuser_login_name, Vwindow_scroll_functions)
2516 (Vwindow_system_version, Vx_no_window_manager)
2517 (Vx_resource_class, Vx_resource_name, baud_rate)
2518 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
2519 (history_delete_duplicates, inhibit_x_resources)
2520 (last_nonmenu_event, load_in_progress, max_specpdl_size)
2521 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
b286858c
SM
2522 (use_dialog_box, use_file_dialog): Remove declaration.
2523 Include globals.h.
29208e82 2524 * keymap.h (Voverriding_local_map)
b286858c
SM
2525 (Voverriding_local_map_menu_flag, meta_prefix_char):
2526 Remove declaration.
29208e82
TT
2527 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
2528 (Vinput_method_function, Vkey_translation_map)
2529 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
2530 (do_mouse_tracking, extra_keyboard_modifiers)
2531 (num_nonmacro_input_events): Remove declaration.
2532 * intervals.h (Vchar_property_alias_alist)
2533 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
2534 (Vtext_property_default_nonsticky): Remove declaration.
2535 * gtkutil.h (x_gtk_file_dialog_help_text)
2536 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2537 (x_gtk_whole_detached_tool_bar): Remove declaration.
2538 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
2539 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
2540 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
2541 (focus_follows_mouse): Remove declaration.
2542 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
2543 (Vignore_relative_composition, Votf_script_alist)
b286858c
SM
2544 (Vuse_default_ascent, Vvertical_centering_font_regexp):
2545 Remove declaration.
29208e82
TT
2546 * font.h (Vfont_log): Remove declaration.
2547 * dosfns.h (Vdos_display_scancodes, Vdos_version)
2548 (Vdos_windows_version, dos_codepage, dos_country_code)
2549 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
b286858c
SM
2550 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
2551 Remove declaration.
2552 * disptab.h (Vglyph_table, Vstandard_display_table):
2553 Remove declaration.
29208e82
TT
2554 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
2555 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
2556 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
2557 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
2558 (inverse_video, mode_line_in_non_selected_windows)
2559 (tool_bar_button_relief, tool_bar_max_label_size)
2560 (underline_minimum_offset)
2561 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2562 Remove declaration.
2563 * composite.h (Vauto_composition_function)
2564 (Vcomposition_function_table): Remove declaration.
2565 * commands.h (Vexecuting_kbd_macro)
2566 (Vminibuffer_local_completion_map)
2567 (Vminibuffer_local_filename_completion_map)
2568 (Vminibuffer_local_filename_must_match_map)
2569 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2570 (Vminibuffer_local_ns_map, Vthis_command)
2571 (Vunread_command_events, cursor_in_echo_area)
2572 (last_command_event, last_nonmenu_event, unread_command_char):
2573 Remove declaration.
2574 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
2575 (Vdefault_file_name_coding_system)
2576 (Vdefault_process_coding_system, Vfile_name_coding_system)
2577 (Vlast_coding_system_used, Vlocale_coding_system)
2578 (Vselect_safe_coding_system_function)
2579 (Vtranslation_table_for_input, coding_system_require_warning)
2580 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
b286858c
SM
2581 (eol_mnemonic_unix, inherit_process_coding_system):
2582 Remove declaration.
2583 * charset.h (Vcharset_list, Vcurrent_iso639_language):
2584 Remove declaration.
29208e82
TT
2585 * character.h (Vauto_fill_chars, Vchar_direction_table)
2586 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
2587 (Vscript_representative_chars, Vtranslation_table_vector)
2588 (Vunicode_category_table): Remove declaration.
2589 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
2590 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
2591 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
2592 (inhibit_modification_hooks): Remove declaration.
2593 * xterm.c (syms_of_xterm): Update.
2594 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
2595 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
2596 (x_mouse_click_focus_ignore_position)
2597 (x_underline_at_descent_line)
2598 (x_use_underline_position_properties): Remove.
2599 * xsmfns.c (syms_of_xsmfns): Update.
2600 (Vx_session_id, Vx_session_previous_id): Remove.
2601 * xsettings.c (syms_of_xsettings): Update.
2602 (Vxft_settings, use_system_font): Remove.
2603 * xselect.c (syms_of_xselect): Update.
2604 (Vselection_converter_alist, Vx_lost_selection_functions)
2605 (Vx_sent_selection_functions, x_selection_timeout): Remove.
2606 * xfns.c (syms_of_xfns): Update.
2607 (Vgtk_version_string, Vmotif_version_string)
2608 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2609 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2610 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2611 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2612 (Vx_sensitive_text_pointer_shape)
2613 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2614 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2615 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2616 Remove.
2617 * xfaces.c (syms_of_xfaces): Update.
2618 (Vface_default_stipple, Vface_font_rescale_alist)
2619 (Vface_ignored_fonts, Vface_new_frame_defaults)
2620 (Vface_remapping_alist, Vfont_list_limit)
2621 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2622 * xdisp.c (syms_of_xdisp): Update.
2623 (Vauto_resize_tool_bars, Vblink_cursor_alist)
2624 (Vdisplay_pixels_per_inch, Vfontification_functions)
2625 (Vframe_title_format, Vglobal_mode_string)
2626 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2627 (Vicon_title_format, Vinhibit_redisplay)
2628 (Vline_number_display_limit, Vline_prefix)
2629 (Vmax_mini_window_height, Vmenu_bar_update_hook)
2630 (Vmenu_updating_frame, Vmessage_log_max)
2631 (Vmouse_autoselect_window, Vnobreak_char_display)
2632 (Voverlay_arrow_position, Voverlay_arrow_string)
2633 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2634 (Vresize_mini_windows, Vshow_trailing_whitespace)
2635 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2636 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2637 (Vwindow_scroll_functions, Vwindow_size_change_functions)
2638 (Vwindow_text_change_functions, Vwrap_prefix)
2639 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2640 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2641 (highlight_nonselected_windows, hscroll_margin)
2642 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2643 (inhibit_menubar_update, inhibit_try_cursor_movement)
2644 (inhibit_try_window_id, inhibit_try_window_reusing)
2645 (line_number_display_limit_width)
2646 (make_cursor_line_fully_visible_p, message_truncate_lines)
2647 (mode_line_inverse_video, multiple_frames, overline_margin)
2648 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2649 (tool_bar_max_label_size, underline_minimum_offset)
2650 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2651 Remove.
2652 * window.c (syms_of_window): Update.
2653 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2654 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2655 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2656 (Vwindow_point_insertion_type, auto_window_vscroll_p)
2657 (mode_line_in_non_selected_windows, next_screen_context_lines)
2658 (window_min_height, window_min_width): Remove.
2659 (scroll_margin): Remove declaration.
2660 * w32term.c (syms_of_w32term): Update.
2661 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2662 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2663 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2664 (w32_use_visible_system_caret, x_underline_at_descent_line)
2665 (x_use_underline_position_properties): Remove.
2666 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2667 Remove declaration.
2668 * w32select.c (syms_of_w32select): Update.
2669 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2670 * w32proc.c (syms_of_ntproc): Update.
2671 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2672 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2673 (Vw32_start_process_inherit_error_mode)
2674 (Vw32_start_process_share_console)
2675 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2676 (Vsystem_name): Remove declaration.
2677 * w32font.c (syms_of_w32font): Update.
2678 (Vw32_charset_info_alist): Remove.
2679 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2680 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2681 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2682 (Vw32_enable_palette, Vw32_lwindow_modifier)
2683 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2684 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2685 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2686 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2687 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2688 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2689 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2690 (Vx_sensitive_text_pointer_shape)
2691 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2692 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2693 (w32_mouse_move_interval)
2694 (w32_pass_extra_mouse_buttons_to_system)
2695 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2696 (w32_strict_fontnames, w32_strict_painting): Remove.
2697 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2698 (Vw32_recognize_altgr, Vwindow_system_version)
b286858c
SM
2699 (w32_num_mouse_buttons, w32_use_visible_system_caret):
2700 Remove declaration.
29208e82
TT
2701 * w32console.c (syms_of_ntterm): Update.
2702 (w32_use_full_screen_buffer): Remove.
2703 (Vtty_defined_color_alist): Remove declaration.
2704 * w16select.c (syms_of_win16select): Update.
2705 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2706 * undo.c (syms_of_undo): Update.
2707 (Vundo_outer_limit, Vundo_outer_limit_function)
2708 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
2709 Remove.
2710 * textprop.c (syms_of_textprop): Update.
2711 (Vchar_property_alias_alist, Vdefault_text_properties)
2712 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
2713 Remove.
2714 * terminal.c (syms_of_terminal): Update.
2715 (Vdelete_terminal_functions, Vring_bell_function): Remove.
2716 * term.c (syms_of_term): Update.
2717 (Vresume_tty_functions, Vsuspend_tty_functions)
2718 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2719 Remove.
2720 * syntax.c (syms_of_syntax): Update.
2721 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2722 (open_paren_in_column_0_is_defun_start)
2723 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2724 (words_include_escapes): Remove.
2725 * search.c (syms_of_search): Update.
2726 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2727 * process.c (syms_of_process): Update.
2728 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2729 (delete_exited_processes): Remove.
2730 * print.c (syms_of_print): Update.
2731 (Vfloat_output_format, Vprint_charset_text_property)
2732 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2733 (Vprint_length, Vprint_level, Vprint_number_table)
2734 (Vstandard_output, print_escape_multibyte)
2735 (print_escape_newlines, print_escape_nonascii, print_quoted):
2736 Remove.
2737 * msdos.c (syms_of_msdos): Update.
2738 (Vdos_unsupported_char_glyph): Remove.
2739 (unibyte_display_via_language_environment): Remove declaration.
2740 * minibuf.c (syms_of_minibuf): Update.
2741 (Vcompletion_regexp_list, Vhistory_add_new_input)
2742 (Vhistory_length, Vminibuffer_completing_file_name)
2743 (Vminibuffer_completion_confirm)
2744 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
2745 (Vminibuffer_exit_hook, Vminibuffer_help_form)
2746 (Vminibuffer_history_position, Vminibuffer_history_variable)
2747 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
2748 (Vread_buffer_function, Vread_expression_map)
2749 (completion_ignore_case, enable_recursive_minibuffers)
2750 (history_delete_duplicates, minibuffer_allow_text_properties)
2751 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
2752 Remove.
2753 * marker.c (syms_of_marker): Update.
2754 (byte_debug_flag): Remove.
2755 * macros.c (syms_of_macros): Update.
2756 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
2757 * lread.c (syms_of_lread): Update.
2758 (Vafter_load_alist, Vbyte_boolean_vars)
2759 (Vbytecomp_version_regexp, Vcurrent_load_list)
2760 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
2761 (Vload_history, Vload_path, Vload_read_function)
2762 (Vload_source_file_function, Vload_suffixes, Vobarray)
2763 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
2764 (Vread_symbol_positions_list, Vread_with_symbol_positions)
2765 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
2766 (force_load_messages, load_convert_to_unibyte)
2767 (load_dangerous_libraries, load_force_doc_strings)
2768 (load_in_progress): Remove.
2769 * keymap.c (syms_of_keymap): Update.
2770 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
2771 (Vminibuffer_local_completion_map)
2772 (Vminibuffer_local_filename_completion_map)
2773 (Vminibuffer_local_filename_must_match_map)
2774 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2775 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
2776 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
2777 Remove.
2778 * keyboard.c (syms_of_keyboard): Update.
2779 (Vauto_save_timeout, Vcommand_error_function)
2780 (Vcommand_hook_internal, Vdeactivate_mark)
2781 (Vdeferred_action_function, Vdeferred_action_list)
2782 (Vdisable_point_adjustment, Vdouble_click_time)
2783 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
2784 (Vfunction_key_map, Vglobal_disable_point_adjustment)
2785 (Vhelp_char, Vhelp_event_list, Vhelp_form)
2786 (Vinput_method_function, Vinput_method_previous_message)
2787 (Vkey_translation_map, Vlast_event_frame)
2788 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
2789 (Vminibuffer_message_timeout, Voverriding_local_map)
2790 (Voverriding_local_map_menu_flag, Vpost_command_hook)
2791 (Vpre_command_hook, Vprefix_help_command)
2792 (Vsaved_region_selection, Vselect_active_regions)
2793 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
2794 (Vthis_command, Vthis_command_keys_shift_translated)
2795 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
2796 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
2797 (Vtty_erase_char, Vunread_command_events)
2798 (Vunread_input_method_events, Vunread_post_input_method_events)
2799 (auto_save_interval, cannot_suspend, do_mouse_tracking)
2800 (double_click_fuzz, extra_keyboard_modifiers)
2801 (inhibit_local_menu_bar_menus, last_command_event)
2802 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
2803 (menu_prompting, meta_prefix_char, num_input_keys)
2804 (num_nonmacro_input_events, polling_period, unread_command_char):
2805 Remove.
2806 * insdel.c (syms_of_insdel): Update.
2807 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
2808 * indent.c (syms_of_indent): Update.
2809 (indent_tabs_mode): Remove.
2810 * image.c (syms_of_image): Update.
2811 (Vimage_cache_eviction_delay, Vimage_types)
2812 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
2813 (cross_disabled_images): Remove.
2814 * fringe.c (syms_of_fringe): Update.
2815 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
2816 * frame.c (syms_of_frame): Update.
2817 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
2818 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
2819 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
2820 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
2821 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
2822 Remove.
2823 * fontset.c (syms_of_fontset): Update.
2824 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
2825 (Vfontset_alias_alist, Vignore_relative_composition)
2826 (Votf_script_alist, Vuse_default_ascent)
2827 (Vvertical_centering_font_regexp): Remove.
2828 * font.c (syms_of_font): Update.
2829 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
2830 (Vfont_weight_table, Vfont_width_table): Remove.
2831 * fns.c (syms_of_fns): Update.
2832 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
2833 * filelock.c (syms_of_filelock): Update.
2834 (Vtemporary_file_directory): Remove.
2835 * fileio.c (syms_of_fileio): Update.
2836 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
2837 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
2838 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
2839 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
2840 (Vinhibit_file_name_operation, Vset_auto_coding_function)
2841 (Vwrite_region_annotate_functions)
2842 (Vwrite_region_annotations_so_far)
2843 (Vwrite_region_post_annotation_function)
2844 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
2845 (Vw32_get_true_file_attributes): Remove declaration.
2846 * eval.c (syms_of_eval): Update.
2847 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
2848 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
2849 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
2850 (debug_on_next_call, debug_on_quit, debugger_may_continue)
2851 (max_lisp_eval_depth, max_specpdl_size): Remove.
2852 * emacs.c (syms_of_emacs): Update.
2853 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
2854 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
2855 (Vinstallation_directory, Vinvocation_directory)
2856 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
2857 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
2858 (Vsystem_configuration, Vsystem_configuration_options)
2859 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
2860 (inhibit_x_resources, noninteractive1): Remove.
2861 * editfns.c (syms_of_editfns): Update.
2862 (Vbuffer_access_fontified_property)
2863 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
2864 (Voperating_system_release, Vsystem_name, Vuser_full_name)
2865 (Vuser_login_name, Vuser_real_login_name): Remove.
2866 * dosfns.c (syms_of_dosfns): Update.
2867 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
2868 (dos_codepage, dos_country_code, dos_decimal_point)
2869 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
2870 (dos_super_key, dos_timezone_offset): Remove.
2871 * doc.c (syms_of_doc): Update.
2872 (Vbuild_files, Vdoc_file_name): Remove.
2873 * dispnew.c (syms_of_display): Update.
2874 (Vglyph_table, Vinitial_window_system)
2875 (Vredisplay_preemption_period, Vstandard_display_table)
2876 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
2877 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
2878 * dired.c (syms_of_dired): Update.
2879 (Vcompletion_ignored_extensions): Remove.
2880 (Vw32_get_true_file_attributes): Remove declaration.
2881 * dbusbind.c (syms_of_dbusbind): Update.
2882 (Vdbus_debug, Vdbus_registered_buses)
2883 (Vdbus_registered_objects_table): Remove.
2884 * data.c (syms_of_data): Update.
2885 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
2886 * composite.c (syms_of_composite): Update.
2887 (Vauto_composition_function, Vauto_composition_mode)
2888 (Vcompose_chars_after_function, Vcomposition_function_table):
2889 Remove.
2890 * coding.c (syms_of_coding): Update.
2891 (Vcharset_revision_table, Vcoding_category_list)
2892 (Vcoding_system_alist, Vcoding_system_for_read)
2893 (Vcoding_system_for_write, Vcoding_system_list)
2894 (Vdefault_process_coding_system, Venable_character_translation)
2895 (Vfile_coding_system_alist, Vlast_code_conversion_error)
2896 (Vlast_coding_system_used, Vlatin_extra_code_table)
2897 (Vlocale_coding_system, Vnetwork_coding_system_alist)
2898 (Vprocess_coding_system_alist)
2899 (Vselect_safe_coding_system_function)
2900 (Vstandard_translation_table_for_decode)
2901 (Vstandard_translation_table_for_encode)
2902 (Vtranslation_table_for_input, coding_system_require_warning)
2903 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2904 (eol_mnemonic_unix, inherit_process_coding_system)
2905 (inhibit_eol_conversion, inhibit_iso_escape_detection)
2906 (inhibit_null_byte_detection): Remove.
2907 * cmds.c (syms_of_cmds): Update.
2908 (Vpost_self_insert_hook): Remove.
2909 * charset.c (syms_of_charset): Update.
2910 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
2911 (inhibit_load_charset_map): Remove.
2912 * character.c (syms_of_character): Update.
2913 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
2914 (Vchar_width_table, Vprintable_chars)
2915 (Vscript_representative_chars, Vtranslation_table_vector)
2916 (Vunicode_category_table): Remove.
2917 * ccl.c (syms_of_ccl): Update.
2918 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
2919 (Vtranslation_hash_table_vector): Remove.
2920 * category.c (syms_of_category): Update.
2921 (Vword_combining_categories, Vword_separating_categories): Remove.
2922 * callproc.c (syms_of_callproc): Update.
2923 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
2924 (Vexec_directory, Vexec_path, Vexec_suffixes)
2925 (Vinitial_environment, Vprocess_environment)
2926 (Vshared_game_score_directory, Vshell_file_name): Remove.
2927 * callint.c (syms_of_callint): Update.
2928 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
2929 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
2930 * bytecode.c (syms_of_bytecode): Update.
2931 (Vbyte_code_meter, byte_metering_on): Remove.
2932 * buffer.c (syms_of_buffer): Update.
2933 (Vafter_change_functions, Vbefore_change_functions)
2934 (Vchange_major_mode_hook, Vfirst_change_hook)
2935 (Vinhibit_read_only, Vkill_buffer_query_functions)
2936 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
2937 * alloc.c (syms_of_alloc): Update.
2938 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
2939 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
2940 (cons_cells_consed, floats_consed, garbage_collection_messages)
2941 (gc_cons_threshold, gcs_done, intervals_consed)
2942 (misc_objects_consed, pure_bytes_used, string_chars_consed)
2943 (strings_consed, symbols_consed, vector_cells_consed): Remove.
2944
2945 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2946 (DEFVAR_INT): Assume global is in `globals'.
2947 * alloc.c (globals): Define.
2948
448c0820
TT
29492011-01-18 Tom Tromey <tromey@redhat.com>
2950
2951 * image.c (Vimagemagick_render_type): Remove redundant
2952 definition.
2953
8442d95d
TT
29542011-01-18 Tom Tromey <tromey@redhat.com>
2955
2956 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
2957 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
2958 (redisplay_window): Update.
2959 (syms_of_xdisp): Update.
2960
cab0ba98
TT
29612011-01-18 Tom Tromey <tromey@redhat.com>
2962
2963 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
2964 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
2965 Declare.
2966 * gtkutil.c (xg_uses_old_file_dialog):
2967 (xg_get_file_with_chooser):
2968 (xg_tool_bar_detach_callback): Don't redeclare globals.
2969
422745d0
TT
29702011-01-18 Tom Tromey <tromey@redhat.com>
2971
2972 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
2973 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
2974
7cae64b4
PE
29752011-01-18 Paul Eggert <eggert@cs.ucla.edu>
2976
2977 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
2978 defined __GNUC__. ../configure now checks for this GCC feature,
2979 which is now also supported by IBM and Oracle compilers.
2980 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
2981 since Solaris malloc returns mult-of-8.
2982
a9faac5c 29832011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
2984
2985 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
2986
a3e44e79 29872011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 2988
6e8e6bf2
PE
2989 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
2990 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
2991 * data.c (Fnumber_to_string): Use it.
2992 * print.c (float_to_string, print_object): Likewise.
2993
4004364e
PE
2994 Include <unistd.h> unilaterally.
2995 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
2996 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
2997 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
2998 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
2999 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
3000 * xterm.c:
3001 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
3002 unistd.h is always present now, possibly supplied by gnulib.
3003
e84aba69
PE
3004 * mktime.c: Remove; moving to ../lib.
3005
1e11dbe3
PE
3006 Use gnulib's mktime module.
3007 * deps.mk (mktime.o): Remove rule.
3008
fa2c4f56
PE
3009 Use gnulib's ftoastr module.
3010 * print.c: Include ftoastr.h.
3011 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
3012 Remove; no longer needed.
3013 (float_to_string): Use dtoastr rather than rolling our own code,
3014 which had an off-by-one bug on non-IEEE hosts.
3015
9a514d4a
PE
3016 Automate syncing from gnulib.
3017 * Makefile.in (lib): New macro.
3018 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
3019 ($(lib)/libgnu.a): New rule.
3020 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
3021
717c30e0
PE
3022 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
3023 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
3024 so change the type of 'ign' to unsigned int from int.
3025
8865d794
PE
3026 * regex.c (analyse_first): Remove unreachable 'continue' statement.
3027
4ef36a7b
PE
3028 * xterm.h (struct x_display_info): Remove stray semicolon.
3029 The extra semicolon didn't conform to the C standard.
3030 Problem reported by Sun cc.
3031
6df4097e
PE
3032 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
3033 These changes make compilation easier to follow with Sun cc.
3034 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
3035 EMACS_INT values without provoking overflow diagnostics.
3036 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
3037 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
3038 diagnostic with signed left shift.
9fba3563 3039
410ed5c3
PE
3040 * fileio.c (make_temp_name): Remove unreachable code.
3041
97be3ce3
PE
3042 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
3043 Previously it was marked by preceding it with "return;", but
3044 Sun cc complains about this.
3045
9fba3563
PE
3046 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
3047 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
3048 which fixed Bug#2370. Caught by Sun cc.
3049
6dc1d2d3
MR
30502011-01-15 Martin Rudalics <rudalics@gmx.at>
3051
3052 * window.c (inhibit_point_swap): New variable.
3053 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
3054 point this time.
3055 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
3056 of setting selected_window to nil (Bug#7728).
3057
f853f599
TH
30582011-01-11 Tassilo Horn <tassilo@member.fsf.org>
3059
8dabbfd6
SM
3060 * image.c (imagemagick_load_image, Finit_image_library):
3061 Free intermediate image after creating a MagickWand from it.
3062 Terminate MagickWand environment after image loading.
f853f599 3063
2bc92a93
MA
30642011-01-10 Michael Albinus <michael.albinus@gmx.de>
3065
3066 * dbusbind.c (Fdbus_register_service): Raise an error in case of
3067 unexpected return values.
3068 (Fdbus_register_method): Remove connection initialization.
3069
30702011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
3071
3072 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
3073 used by Fdbus_register_service.
3074 (QCdbus_request_name_replace_existing): Likewise.
3075 (QCdbus_request_name_do_not_queue): Likewise.
3076 (QCdbus_request_name_reply_primary_owner): Likewise.
3077 (QCdbus_request_name_reply_in_queue): Likewise.
3078 (QCdbus_request_name_reply_exists): Likewise.
3079 (QCdbus_request_name_reply_already_owner): Likewise.
3080 (Fdbus_register_service): New function.
3081 (Fdbus_register_method): Use Fdbus_register_service to do the name
3082 registration.
3083 (syms_of_dbusbind): Add symbols dbus-register-service,
3084 :allow-replacement, :replace-existing, :do-not-queue,
3085 :primary-owner, :existing, :in-queue and :already-owner.
3086
21a76236
CY
30872011-01-09 Chong Yidong <cyd@stupidchicken.com>
3088
3089 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
3090 when removing extra buttons.
3091
3d91e302
CY
30922011-01-08 Chong Yidong <cyd@stupidchicken.com>
3093
3094 * fns.c (Fyes_or_no_p): Doc fix.
3095
0d23ffb5
AS
30962011-01-08 Andreas Schwab <schwab@linux-m68k.org>
3097
3098 * fns.c (Fyes_or_no_p): Add usage.
3099
9dc3366b
GM
31002011-01-08 Glenn Morris <rgm@gnu.org>
3101
d0981f82
GM
3102 * makefile.w32-in ($(EMACS)):
3103 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
3104
9dc3366b
GM
3105 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
3106 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
3107
466cbae9
AS
31082011-01-07 Andreas Schwab <schwab@linux-m68k.org>
3109
3110 * image.c (imagemagick_load_image): Fix some resource leaks and
3111 error handling.
3112
8c51d2a2
CY
31132011-01-07 Chong Yidong <cyd@stupidchicken.com>
3114
3115 * fns.c (Fyes_or_no_p): Accept format string args.
3116
66b7b0fe
GM
31172011-01-07 Glenn Morris <rgm@gnu.org>
3118
3119 * emacs.c (no_site_lisp): New int.
3120 (USAGE1): Add --no-site-lisp, mention -Q uses it.
3121 (main): Set no_site_lisp.
3122 (standard_args): Add --no-site-lisp.
3123 * lisp.h (no_site_lisp): New int.
3124 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
3125 directories to Vload_path.
3126
2018939f
AS
31272011-01-05 Andreas Schwab <schwab@linux-m68k.org>
3128
3129 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
3130
6ed843e5
MA
31312011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
3132
8dabbfd6 3133 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
3134 dont_register_service. Updated docstring accordingly.
3135
3f9b7090
GM
31362011-01-04 Glenn Morris <rgm@gnu.org>
3137
3138 * emacs.c (emacs_copyright): Update short copyright year to 2011.
3139
d82bce4a
EZ
31402011-01-03 Eli Zaretskii <eliz@gnu.org>
3141
3142 * image.c (png_jmpbuf): Remove definition.
3143 (my_png_error, png_load): Don't use png_jmpbuf.
3144
7c420169
CY
31452011-01-02 Eli Zaretskii <eliz@gnu.org>
3146
3147 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
3148
31492011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
3150
3151 * image.c <Qlibpng_version>: New variable.
3152 (syms_of_image): Intern and staticpro it. Set its value to the
3153 version of PNG library we were compiled with.
3154 (my_png_error, png_load): Avoid GCC warnings about direct access
3155 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
3156 (png_jmpbuf): New macro.
3157 (my_png_error, png_load): Use it instead of #ifdef'ing according
3158 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 3159
7c420169 31602011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
3161
3162 * .gdbinit (xgetptr): Fix the union+lsb case.
3163 (xbacktrace): Fix the union case.
3164
7c420169 31652011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
3166
3167 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
3168 different from selected-window's.
3169
7c420169 31702011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 3171
71fe378d
EZ
3172 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
3173 equivalent of a menu item when the key sequence is given by the
3174 `:keys' attribute. (Bug#7662)
3175
2e4ab211
EZ
3176 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
3177 the basic faces are supported.
3178
7c420169 31792011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
3180
3181 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
3182
7c420169 31832011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
3184
3185 * xdisp.c (Fformat_mode_line): Fix last change.
3186
7c420169 31872011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
3188
3189 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
3190 faces (Bug#7587).
3191
7c420169 31922011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
3193
3194 * fileio.c (Fexpand_file_name): One more doc fix.
3195
3afff00e
CY
31962011-01-01 Chong Yidong <cyd@stupidchicken.com>
3197
3198 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
3199 image or label in the container.
3200 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
3201 (xg_show_toolbar_item): Function deleted.
3202 (xg_tool_item_stale_p): New function.
3203 (update_frame_tool_bar): Calculate tool-bar style once per call.
3204 Instead of hiding text labels, omit them. Don't use
3205 xg_show_toolbar_item; create new GtkToolItems from scratch if
3206 necessary, instead of trying to re-use them. This avoids an
3207 annoying animation when changing tool-bars.
3208
aeb7e951
JD
32092010-12-31 Jan Djärv <jan.h.d@swipnet.se>
3210
3211 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
3212 title and buffer filename only for RepresentedFilename.
3213 Handle bad UTF-8 in buffer name (Bug#7517).
3214
5bbb4727
JD
32152010-12-30 Jan Djärv <jan.h.d@swipnet.se>
3216
3217 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
3218
3219 * nsfns.m (ns_set_name_iconic): Remove.
3220 (ns_set_name_internal): New function (Bug#7517).
3221 (Vicon_title_format): Extern declare.
3222 (ns_set_name): Call ns_set_name_internal.
3223 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
3224 (x_implicitly_set_name): Ditto.
3225 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
3226 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
3227
f1aab3ff
ŠN
32282010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
3229
3230 * window.c (syms_of_window): Add missing defsubr for
3231 window-use-time.
3232
365525b3
AS
32332010-12-28 Andreas Schwab <schwab@linux-m68k.org>
3234
3235 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
3236 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
3237
59fc5cf9
AS
32382010-12-27 Andreas Schwab <schwab@linux-m68k.org>
3239
2f7c71a1
AS
3240 * buffer.c: Remove unused declarations.
3241 * buffer.h: Likewise.
3242 * charset.h: Likewise.
3243 * composite.h: Likewise.
3244 * dispextern.h: Likewise.
3245 * dispnew.c: Likewise.
3246 * font.h: Likewise.
3247 * fontset.c: Likewise.
3248 * fontset.h: Likewise.
3249 * intervals.h: Likewise.
3250 * keymap.h: Likewise.
3251 * lisp.h: Likewise.
3252 * syntax.c: Likewise.
3253 * syntax.h: Likewise.
3254 * termhooks.h: Likewise.
3255 * window.h: Likewise.
3256 * xsettings.h: Likewise.
3257 * xterm.c: Likewise.
3258 * xterm.h: Likewise.
3259
3260 * chartab.c (sub_char_table_ref): Make static.
3261 * dispnew.c (line_hash_code, required_matrix_height)
3262 (required_matrix_width): Likewise.
3263 * eval.c (interactive_p, apply_lambda): Likewise.
3264 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
3265 Likewise.
3266 * font.c (QCadstyle, QCregistry, font_make_spec)
3267 (font_parse_fcname, font_encode_char, font_at): Likewise.
3268 * frame.c (x_frame_get_arg): Likewise.
3269 * keymap.c (get_keyelt): Likewise.
3270 * lread.c (read_filtered_event): Likewise.
3271 * print.c (write_string_1): Likewise.
3272 * window.c (delete_window, window_height, window_width)
3273 (foreach_window): Likewise.
3274 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
3275 * xterm.c (x_scroll_bar_clear, xembed_set_info)
3276 (xembed_send_message): Likewise.
3277
3278 * eval.c (run_hook_list_with_args): Delete.
3279 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
3280 * terminal.c (get_terminal_param): Likewise.
3281 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
3282
c4b607ed
AS
3283 * scroll.c: Fix comment.
3284
59fc5cf9
AS
3285 * dispnew.c (add_window_display_history)
3286 (add_frame_display_history, glyph_row_slice_p)
3287 (find_glyph_row_slice, flush_stdout)
3288 (check_matrix_pointer_lossage, matrix_row)
3289 (check_matrix_invariants, check_window_matrix_pointers)
3290 (check_matrix_pointers, window_to_frame_vpos)
3291 (window_to_frame_hpos): Prototize.
3292 * textprop.c (erase_properties): Likewise.
3293
a65b85b5
SM
32942010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
3295
17870c01
SM
3296 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
3297 (print_preprocess): Fix handling of uninterned symbols in last change.
3298
a65b85b5
SM
3299 * print.c (print, print_preprocess, print_object): Use a hash table
3300 rather than a linear table for Vprint_number_table.
3301
f13183cf
CY
33022010-12-20 Chong Yidong <cyd@stupidchicken.com>
3303
3304 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
3305
94975270
CY
33062010-12-20 Chong Yidong <cyd@stupidchicken.com>
3307
3308 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
3309 (parse_tool_bar_item): Use it to obtain image separators for
3310 displays not using native tool-bar separators.
3311
3312 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
3313 specially, since this is now done in parse_tool_bar_item.
3314
ef1b0ba7
SM
33152010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
3316
3317 Minor clean up to silence some gcc warnings.
3318 * window.c (Fset_window_buffer):
3319 * xterm.c (x_set_frame_alpha): Restructure code to silence
3320 compiler warning.
3321 (handle_one_xevent): Remove unused var `p'.
3322 (do_ewmh_fullscreen): Remove unused var `lval'.
3323 (xembed_set_info): Remove unused var `atom'.
3324 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
3325 compiler warning.
3326 * fontset.c (fontset_id_valid_p, dump_fontset):
3327 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
3328 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
3329 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
3330 label only when it's used.
3331 * image.c (x_create_bitmap_from_xpm_data):
3332 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
3333 its callers.
3334 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
3335 `consumed_chars'.
3336 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
3337 (decode_coding_emacs_mule): Remove unused label `retry'.
3338 (detect_eol): Add parens to silence compiler warning.
3339 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
3340 it's used to silence the compiler.
3341 (make_number): Modernize k&r declaration.
3342 (mark_char_table): Add parens to silence compiler warning.
3343
4039c786
CY
33442010-12-17 Chong Yidong <cyd@stupidchicken.com>
3345
3346 * keyboard.c (parse_tool_bar_item): Allow menu separators in
3347 tool-bar maps.
3348 (menu_separator_name_p): New function, from gtkutil.c.
3349 (separator_names): Move from gtkutil.c.
3350
3351 * keyboard.h (menu_separator_name_p): Add prototype.
3352
3353 * gtkutil.c (XG_BIN_CHILD): New macro.
3354 (xg_get_menu_item_label, xg_update_menubar)
3355 (xg_update_menu_item, xg_tool_bar_menu_proxy)
3356 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
3357 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
3358 (create_menus, xg_update_submenu, update_frame_tool_bar):
3359 Use menu_separator_name_p.
4039c786
CY
3360
3361 * nsmenu.m (name_is_separator): Function deleted.
3362 (addItemWithWidgetValue): Use menu_separator_name_p.
3363
3364 * w32menu.c (name_is_separator): Function deleted.
3365 (add_menu_item): Use menu_separator_name_p.
3366
aa936e8e
JD
33672010-12-16 Jan Djärv <jan.h.d@swipnet.se>
3368
3369 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
3370 same as the background, use the face forground as cursor.
3371
f49d1f52 33722010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
3373
3374 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
3375
f49d1f52 33762010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 3377
f0559026
EZ
3378 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
3379 (face_before_or_after_it_pos, next_element_from_string)
3380 (next_element_from_c_string, produce_stretch_glyph): Remove unused
3381 calculations of maximum string length before calling
3382 string_char_and_length and STRING_CHAR_AND_LENGTH.
3383 (string_char_and_length): Update commentary: MAXLEN is no longer
3384 needed.
3385
f49d1f52 33862010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
3387
3388 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
3389 as (Qsave_session arg).
3390
3391 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
3392 (smc_die_CB): Make an event with arg Qt.
3393 (Fhandle_save_session): If event has Qt as argument,
3394 call Fkill_emacs (Bug#7552).
3395
f49d1f52
SM
33962010-12-13 Chong Yidong <cyd@stupidchicken.com>
3397
3398 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
3399
34002010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
3401
3402 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
3403
f49d1f52 34042010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
3405
3406 * dispextern.h (struct it): New member overlay_strings_charpos.
3407
3408 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
3409 charpos where we computed n_overlay_strings.
3410 (next_overlay_string): Load overlay strings at recorded position,
3411 which may not be the same as the iterator's charpos (Bug#7016).
3412
f49d1f52 34132010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
3414
3415 * xdisp.c (try_scrolling): Avoid infloop if the first line is
3416 obscured due to a vscroll (Bug#7537).
3417
f49d1f52 34182010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
3419
3420 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3421
3422 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
3423 Use FRAME_TOOLBAR_HEIGHT.
3424 (x_set_offset): Handle XNegative and YNegative in
3425 f->size_hint_flags (Bug#7510).
3426
39321b94
EZ
34272010-12-11 Eli Zaretskii <eliz@gnu.org>
3428
3429 * w32fns.c (Fx_show_tip): Call try_window with last argument
3430 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
3431 solved. Round up the tip height to an integral multiple of the
3432 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
3433 (Bug#7398)
3434
ec1b9b17
GM
34352010-12-08 Glenn Morris <rgm@gnu.org>
3436
3437 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
3438
3c2317e8
LMI
34392010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
3440
3441 * xml.c (parse_region): Ignore blank HTML nodes.
3442 (make_dom): Return CDATA sections (like <style>foo</style>) as
3443 text nodes.
3444
bba3e508
SM
34452010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
3446
3447 * lread.c (read1): Allow newstyle unquote outside of backquote.
3448 Disallow old-style backquotes inside new-style backquotes.
3449 Don't count unquotes to figure out when we're "syntactically inside
3450 but semantically outside of a backquote" any more.
3451 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
3452 to all contexts.
3453
d23d8608
CY
34542010-12-05 Chong Yidong <cyd@stupidchicken.com>
3455
3456 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
3457
d6a003a8
AS
34582010-12-04 Andreas Schwab <schwab@linux-m68k.org>
3459
3460 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
3461 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
3462 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
3463
201ef780
AS
34642010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3465
3466 * lisp.h (union Lisp_Object): Explicitly declare signedness of
3467 bit-field.
3468 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
3469 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
3470 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3471 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3472 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
3473 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
3474 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
3475 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
3476 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
3477 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
3478 * m/hp800.h: Remove file.
3479 * m/mips.h: Remove file.
3480
146490c3
JD
34812010-12-03 Jan Djärv <jan.h.d@swipnet.se>
3482
3483 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
3484 with cursor color and draw a rectangle around the image (Bug#7412).
3485
babc8f0d
AS
34862010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3487
3488 * frame.c (x_set_font): Remove unused variable.
3489
9583e9a0
JD
34902010-12-02 Jan Djärv <jan.h.d@swipnet.se>
3491
dd723bbd
JD
3492 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
3493
9583e9a0
JD
3494 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
3495 drawing text under filled box cursor (Bug#7479).
3496
07976ae3 34972010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
3498
3499 * charset.c (emacs_mule_charset): Make it an array of charset ID;
3500 i.e. integer.
bba3e508 3501 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
3502 (init_charset_once): Likewise.
3503
bba3e508
SM
3504 * charset.h (emacs_mule_charset): Adjust the prototype.
3505 Delete duplicated extern.
b84ae584
KH
3506
3507 * coding.c (emacs_mule_char): Adjust for the change of
3508 emacs_mule_charset.
3509
3510 * lread.c (read_emacs_mule_char): Adjust for the change of
3511 emacs_mule_charset.
3512
07976ae3 35132010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
3514
3515 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3516 of w32api >= 3.15. (Bug#6989) (Bug#7452)
3517
07976ae3 35182010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
3519
3520 * alloc.c (mark_terminals): Ensure that the image cache is marked
3521 even if the terminal object was marked earlier (Bug#6301).
3522
35f1de62
CY
35232010-11-21 Chong Yidong <cyd@stupidchicken.com>
3524
3525 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
3526
07976ae3 35272010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
3528
3529 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
3530 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 3531 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 3532
8547874a
EZ
35332010-11-26 Eli Zaretskii <eliz@gnu.org>
3534
228482b2
EZ
3535 * xdisp.c (set_message_1): Force paragraph direction in echo area
3536 be left-to-right.
3537
8547874a
EZ
3538 * keyboard.c (make_lispy_position): Put a meaningful value in yret
3539 when the click is on the header or mode line.
3540
1e2dddbe
EZ
35412010-11-25 Eli Zaretskii <eliz@gnu.org>
3542
3543 * xdisp.c (set_cursor_from_row): Don't forget to consider the
3544 `cursor' property of the first character in overlay strings.
12365240 3545 (Bug#7474) (Bug#7481)
1e2dddbe 3546
50795d1f
JD
35472010-11-24 Jan Djärv <jan.h.d@swipnet.se>
3548
3549 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
3550 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
3551 (keyDown): Parse left and right keys separately (Bug#7458).
3552 Compare Left key masks exactly (Bug#7458).
50795d1f 3553
f8ab8c1f
EZ
35542010-11-23 Eli Zaretskii <eliz@gnu.org>
3555
3556 * intervals.c (temp_set_point_both): Define before calling, to
3557 avoid GCC warnings.
3558
2e8a4797
DN
35592010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
3560
b29116ef
DN
3561 * nsmenu.m: Use #include <config.h> instead of "config.h".
3562
b932f8b1 3563 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 3564 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
3565 Move declarations ...
3566 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 3567 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
3568 ... here.
3569
42c8bc9b
DN
3570 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
3571 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
3572 (gdb_pvec_type):
3573 * print.c (print_output_debug_flag):
3574 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
3575 (safe_debug_print): New declaration.
3576
2e8a4797
DN
3577 * xterm.c:
3578 * systty.h:
3579 * sound.c: Include <sys/ioctl.h> unconditionally.
3580
b609f591
YM
35812010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3582
3583 * alloc.c (mark_maybe_object): Return early if given a Lisp
3584 integer (Bug#6301).
3585
731e263a
KB
35862010-11-21 Ken Brown <kbrown@cornell.edu>
3587
3588 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
3589
b7d1e144
JD
35902010-11-21 Jan Djärv <jan.h.d@swipnet.se>
3591
3592 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
3593 Define (Bug#7458).
3594 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
3595 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
3596 NSRightControlKeyMask also (Bug#7458).
3597 (keyDown): Ditto (Bug#7458).
3598 (syms_of_nsterm): Defvar ns-right-command-modifier and
3599 ns-right-control-modifier (Bug#7458).
3600
b7982059
DN
36012010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3602
bee3419f
DN
3603 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3604 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3605
b7982059
DN
3606 * intervals.h (temp_set_point, temp_set_point_both):
3607 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3608
01664ed1
KB
36092010-11-20 Ken Brown <kbrown@cornell.edu>
3610
3611 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3612
7c2d713b
EZ
36132010-11-20 Eli Zaretskii <eliz@gnu.org>
3614
3615 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3616 \xNNNNNN for hex-code display of glyphless characters.
3617
d2bd5189
JD
36182010-11-20 Jan Djärv <jan.h.d@swipnet.se>
3619
3620 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3621 Set important to ! vert_only.
3622 (xg_show_toolbar_item): Don't show label horizontally if
3623 tool item isn't important.
3624 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3625 xg_make_tool_item, or update important on existing tool item.
3626
3627 * keyboard.c (QCvert_only): New variable.
3628 (parse_tool_bar_item): Check for QCvert_only.
3629 (syms_of_keyboard): Initialize QCvert_only.
3630
3631 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3632
d9a95e67
EZ
36332010-11-20 Eli Zaretskii <eliz@gnu.org>
3634
3635 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3636 same in-line.
3637
b6557553
AS
36382010-11-20 Andreas Schwab <schwab@linux-m68k.org>
3639
3640 * xfaces.c (lookup_face): Make static.
3641 * dispnew.c (copy_row_except_pointers): Likewise.
3642 * syntax.c (dec_bytepos): Likewise.
3643 (inc_bytepos): Remove.
3644 * dispextern.h (lookup_face): Remove declaration.
3645
f48fe1f0
EZ
36462010-11-19 Eli Zaretskii <eliz@gnu.org>
3647
3648 * xdisp.c (set_cursor_from_row): Display cursor after all the
3649 glyphs that come from an overlay. Don't overstep the last glyph
3650 when skipping glyphs from an overlay. (Bug#6687)
3651
654ef137
DN
36522010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
3653
84dfc8a7
DN
3654 * alloc.c (refill_memory_reserve): Move declaration ...
3655 * lisp.h (refill_memory_reserve): ... here.
3656
94fa3833
DN
3657 * strftime.c (_strftime_copytm): Add declaration.
3658
dde990a0
DN
3659 * callproc.c (syms_of_callproc): Use intern_c_string.
3660
50c77428
DN
3661 Move declarations from .c files to .h files.
3662 * process.c (timers_run):
3663 * minibuf.c (quit_char):
3664 * lread.c (read_emacs_mule_char):
3665 * keyboard.c (minibuf_level, message_enable_multibyte)
3666 (pending_malloc_warning):
3667 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3668 (Qonly): Remove declarations.
3669 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3670 (Vselect_active_regions):
2f8f196d 3671 * keyboard.h (timers_run): Add declarations.
50c77428 3672
654ef137
DN
3673 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3674 (tm_diff): Convert definitions to standard C.
3675 (extra_args_spec_iso): Remove, unused.
3676
4a47c275 36772010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
3678
3679 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3680
3681 * config.in (HAVE_G_TYPE_INIT): New symbol.
3682
4a47c275 36832010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
3684
3685 * lread.c (Fload): Mention `load-in-progress' and
3686 `load-file-name'. (Bug#7346)
3687
86520d8c
EZ
3688 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3689 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3690 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3691 subprocesses. Use buffer_free only ifdef subprocesses.
3692
3693 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3694 the subprocesses version, not in the non-subprocesses one.
3695
794a4b6d
EZ
3696 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3697
146d267b
EZ
36982010-11-17 Eli Zaretskii <eliz@gnu.org>
3699
3700 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
3701 lines on text-mode terminals. (bug#7417)
3702
fad0d565
SM
37032010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3704
3705 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
3706 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
3707
6b4bb703
KH
37082010-11-17 Kenichi Handa <handa@m17n.org>
3709
3710 * coding.c (Fset_terminal_coding_system_internal): Fix previous
3711 change (set charset-ID list instead of charset-symbol list).
3712
9173a8fb
CY
37132010-11-16 Chong Yidong <cyd@stupidchicken.com>
3714
3715 * keyboard.c (make_lispy_position): For text area clicks, record Y
3716 pixel position relative to the text area, excluding header line.
3717 Also change X and Y to Lisp_Objects, not pointers; don't return
3718 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
3719 buffer_posn_from_coords counting from the start of the text area.
3720 (Fposn_at_x_y, make_lispy_event): Callers changed.
3721
3722 * window.c (coordinates_in_window): Change X and Y to ints rather
3723 than pointers; don't return coordinates via pointers.
3724 (struct check_window_data): Change X and Y from pointers to ints.
3725 (window_from_coordinates): Remove args WX and WY; don't return
3726 coordinates via pointers.
3727 (Fcoordinates_in_window_p, window_from_coordinates):
3728 (check_window_containing, Fwindow_at): Callers changed.
3729 (window_relative_x_coord): New function.
3730
3731 * window.h (window_from_coordinates, window_relative_x_coord):
3732 Update prototypes.
3733
3734 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3735 the start of the text area.
3736
3737 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3738 call. Use window_relative_x_coord.
3739 (note_mouse_highlight): Change window_from_coordinates call.
3740
3741 * w32term.c (w32_read_socket):
3742 * msdos.c (dos_rawgetc):
3743 * xterm.c (handle_one_xevent): Likewise.
3744
d2762c86
DN
37452010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
3746
3747 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
3748 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
3749 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
3750 Convert definitions to standard C.
3751 * regex.c: Do not include <stdlib.h>, config.h does it.
3752 Include unistd.h.
3753 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
3754 (regerror, regfree): Convert definitions to standard C.
3755 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
3756 (__mktime_internal): Convert definitions to standard C.
3757
c2f0866a
DN
37582010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3759
42a7e7f1
DN
3760 * w32proc.c:
3761 * w32inevt.c:
3762 * w32heap.c:
3763 * w32.c: Remove config.h include guards.
3764
67802943
DN
3765 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
3766 No code changes.
3767
f0e1af46
DN
3768 * process.c: Include <sys/ioctl.h> unconditionally,
3769 keyboard.c already does it.
3770
c2f0866a
DN
3771 * keyboard.c (pending_malloc_warning): Add const to match
3772 definition in alloc.c.
3773 (Fset_input_interrupt_mode): Simplify #ifdefs.
3774
92d3ab7e
DN
37752010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3776
12e610e8
DN
3777 Clean up systty.h macros.
3778 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
3779 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
3780 definition in all uses.
3781 (EMACS_TTY_TABS_OK): Remove, it has a single user.
3782 * sysdep.c (discard_tty_input, child_setup_tty)
3783 (init_sys_modes, tabs_safe_p, reset_sys_modes):
3784 * emacs.c (shut_down_emacs):
3785 * callproc.c (child_setup):
3786 * term.c (dissociate_if_controlling_tty): Inline removed macros.
3787
92d3ab7e
DN
3788 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
3789
a3e6bad4
CY
37902010-11-14 Chong Yidong <cyd@stupidchicken.com>
3791
3792 * w32fns.c (Fx_create_frame):
3793 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
3794 resource here; it's now done at startup.
3795
5a232ffb
J
37962010-11-14 Jan Djärv <jan.h.d@swipnet.se>
3797
3798 * xterm.c (set_wm_state): Add Qnil to final cons.
3799
3800 * xselect.c (x_send_client_event): Remove unused variables cons and
3801 size.
3802
24021b38
YM
38032010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3804
2f8f196d 3805 * keyboard.c (modify_event_symbol): Add const to array elements of
24021b38
YM
3806 arg NAME_TABLE.
3807 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
3808 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
3809 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
3810 Add const to array elements.
3811 (scroll_bar_parts): Make static. Fix position of const.
3812
3813 * w32fns.c (lispy_function_keys): Add const to extern.
3814
3815 * w32inevt.c (lispy_function_keys): Likewise.
3816
afa42fe3
CY
38172010-11-14 Chong Yidong <cyd@stupidchicken.com>
3818
3819 * xfns.c (Fx_create_frame): Don't check for the cursorColor
3820 resource here; it's now done at startup.
3821
53260a94
DN
38222010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
3823
c865c575 3824 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 3825
c865c575 3826 Fix compilation on Solaris.
ff2e8052
DN
3827 * sysdep.c: Do not #include <term.h>.
3828 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
3829
53260a94
DN
3830 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
3831
933e29ff
J
38322010-11-13 Jan Djärv <jan.h.d@swipnet.se>
3833
3834 * xterm.c (set_wm_state): Don't put Atom in cons, call
3835 make_fixnum_or_float on them first.
3836 (x_term_init): Initialize Xatom_net_supporting_wm_check and
3837 Xatom_net_supported correctly.
3838
3839 * xselect.c (x_send_client_event): Move CHECK_STRING ...
3840 (Fx_send_client_event): to here.
3841
a048073e
MR
38422010-11-13 Martin Rudalics <rudalics@gmx.at>
3843
3844 * window.c (Fwindow_use_time): New function.
3845
0eb025fb
EZ
38462010-11-13 Eli Zaretskii <eliz@gnu.org>
3847
3848 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
3849 zero-width characters.
3850
3851 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
3852
3853 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
3854 box before drawing the glyphs inside it.
3855
3856 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
3857
bba3e508
SM
3858 * dispextern.h (enum glyphless_display_method):
3859 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
3860 All users changed.
0eb025fb 3861
bba3e508
SM
3862 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3863 Fix comments.
0eb025fb
EZ
3864 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
3865 whitespace in "[]", to simulate a box. Don't use uninitialized
3866 variable `width'.
3867
c869cc37
JD
38682010-11-11 Julien Danjou <julien@danjou.info>
3869
2d9074ba
JD
3870 * xsettings.c (init_xsettings): Use already fetch atoms.
3871
3872 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
3873 from dpyinfo.
3874
3875 * xselect.c (Fx_send_client_event): Split and create
3876 x_send_client_event.
3877
3878 * lisp.h: Do not EXFUN Fx_send_client_event.
3879
3880 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
3881 from dpyinfo.
3882 (wm_supports): Use atoms from dpyinfo.
3883 (do_ewmh_fullscreen): Use atoms from dpyinfo.
3884 (x_ewmh_activate_frame): Use atoms from dpyinfo.
3885 (xembed_set_info): Use atoms from dpyinfo.
3886 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
3887 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
3888 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
3889 Get all atoms in one round-trip.
3890 (set_wm_state): Use x_send_client_event rather than
3891 Fx_send_client_event, using Atom directly.
3892 (x_ewmh_activate_frame): Ditto.
3893 (x_set_sticky): Pass atoms to set_wm_state.
3894 (do_ewmh_fullscreen): Ditto.
3895
2d9074ba
JD
3896 * xterm.h (x_display_info): Add Xatom_net_supported,
3897 Xatom_net_supporting_wm_check, Xatom_net_active_window,
3898 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
3899
c869cc37
JD
3900 * xfns.c (Fx_show_tip): Fix typo in docstring.
3901
1a4236ea
SM
39022010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
3903
3904 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
3905 it's not negative.
3906
3106121c
YM
39072010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3908
3909 * font.c (font_filter_properties): Add const to array elements of
3910 properties args.
3911
3912 * font.h (font_filter_properties): Likewise.
3913
3914 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
3915 elements.
3916
3917 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
3918
da1fec2b
MA
39192010-11-10 Michael Albinus <michael.albinus@gmx.de>
3920
3921 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
3922 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
3923 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
3924 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
3925 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
3926
bd6bc222
GM
39272010-11-10 Glenn Morris <rgm@gnu.org>
3928
3929 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
3930
c0098065
EZ
39312010-11-09 Eli Zaretskii <eliz@gnu.org>
3932
bd6bc222 3933 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 3934
d607b96b 39352010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
3936
3937 * image.c (free_image): Don't garbage the frame here, since this
3938 function can be called while redisplaying (Bug#7210).
3939 (uncache_image): Garbage the frame here (Bug#6426).
3940
d607b96b 39412010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 3942
d607b96b
SM
3943 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
3944 parent is the root window. Check this after traversing window tree.
184765cc 3945
d607b96b 3946 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 3947
d607b96b 3948 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 3949
d607b96b
SM
3950 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
3951 before traversing window tree (Bug#5721).
c2e124a9 3952
27f92be7
J
39532010-11-07 Jan Djärv <jan.h.d@swipnet.se>
3954
66b16767
J
3955 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
3956
25f38310
SM
3957 * xdisp.c (note_mode_line_or_margin_highlight):
3958 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 3959
a971c0a7
EZ
39602010-11-06 Eli Zaretskii <eliz@gnu.org>
3961
3962 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
3963 adjust width of tool-tip frame to the width of text, excluding the
3964 stretch glyph at the beginning of R2L glyph rows.
3965
3966 * w32fns.c (Fx_show_tip): Likewise.
3967
80417b95
JD
39682010-11-06 Jan Djärv <jan.h.d@swipnet.se>
3969
3970 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 3971 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 3972
28118eb6
EZ
39732010-11-05 Eli Zaretskii <eliz@gnu.org>
3974
c1fc2d3a 3975 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
3976
3977 * term.c: Remove static mouse_face_* variables. All users
3978 changed.
3979 (term_show_mouse_face, term_clear_mouse_face)
3980 (fast_find_position, term_mouse_highlight): Functions deleted.
3981 (tty_draw_row_with_mouse_face): New function.
3982 (term_mouse_movement): Call note_mouse_highlight instead of
3983 term_mouse_highlight.
3984
bbf534ce
EZ
3985 * nsterm.m (ns_update_window_begin, ns_update_window_end)
3986 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
3987 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
3988 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
3989 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
3990 Replace Display_Info with Mouse_HLInfo everywhere where
3991 mouse_face_* members were accessed for mouse highlight purposes.
3992
3993 * xterm.c (x_update_window_begin, x_update_window_end)
3994 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
3995 (handle_one_xevent, x_free_frame_resources, x_term_init):
3996 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
3997 members were accessed for mouse highlight purposes.
3998
3999 * w32term.c (x_update_window_begin, x_update_window_end)
4000 (x_update_end, w32_read_socket, x_free_frame_resources)
4001 (w32_initialize_display_info): Replace Display_Info with
4002 Mouse_HLInfo everywhere where mouse_face_* members were accessed
4003 for mouse highlight purposes.
4004
4005 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
4006 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
4007 unless the frame is on a window-system.
c1fc2d3a 4008 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
4009 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
4010 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
4011 (note_mode_line_or_margin_highlight, note_mouse_highlight)
4012 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
4013 Replace Display_Info with Mouse_HLInfo everywhere where
4014 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 4015 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
4016 HAVE_WINDOW_SYSTEM conditional.
4017 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
4018 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
4019 (try_window_id) [HAVE_GPM || MSDOS]:
4020 Call x_clear_window_mouse_face.
d009ae66 4021 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
4022 systems. Call tty_draw_row_with_mouse_face for TTY systems.
4023 (show_mouse_face): Call draw_row_with_mouse_face, instead of
4024 calling draw_glyphs directly.
d009ae66
EZ
4025 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
4026 (cursor_in_mouse_face_p, rows_from_pos_range)
4027 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
4028 (note_mode_line_or_margin_highlight, note_mouse_highlight)
4029 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
4030 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
4031 fragments.
4032 (note_mouse_highlight): Call popup_activated for MSDOS as well.
4033 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
4034 integer.
4035 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
4036 (x_consider_frame_title, tool_bar_lines_needed):
4037 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
4038 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
4039 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
4040 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
4041 part.
d009ae66
EZ
4042
4043 * dispnew.c (mirror_make_current): Set Y coordinate of the
4044 mode-line and header-line rows.
c1fc2d3a
EZ
4045 (init_display): Setup initial frame's output_data for text
4046 terminal frames.
d009ae66 4047
c1fc2d3a
EZ
4048 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
4049 its own definition on msdos.c.
d009ae66
EZ
4050
4051 * msdos.c (show_mouse_face, clear_mouse_face)
4052 (fast_find_position, IT_note_mode_line_highlight)
4053 (IT_note_mouse_highlight): Functions deleted.
4054 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
4055 instead of IT_note_mouse_highlight.
4056 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
4057 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
4058 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
4059 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
4060 where mouse_face_* members were accessed for mouse highlight
4061 purposes.
4062
4063 * msdos.h (initialize_msdos_display): Add prototype.
4064
4065 * frame.h (MOUSE_HL_INFO): New macro.
4066
4067 * lisp.h (Mouse_HLInfo): New data type.
4068
4069 * xterm.h (struct x_display_info):
4070 * w32term.h (struct w32_display_info):
4071 * nsterm.h (struct ns_display_info):
4072 * termchar.h (struct tty_display_info): Use it instead of
4073 mouse_face_* members.
4074
4075 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
4076 1st argument.
4077 (frame_to_window_pixel_xy, note_mouse_highlight)
4078 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
4079 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
4080 HAVE_WINDOW_SYSTEM conditional.
4081 (draw_row_with_mouse_face): Declare prototype.
4082 (tty_draw_row_with_mouse_face): Declare prototype.
4083
6e8d7c47
EZ
40842010-11-05 Eli Zaretskii <eliz@gnu.org>
4085
bba3e508
SM
4086 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
4087 Remove unused variables.
6e8d7c47 4088
f31ba3f0
AR
40892010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4090
4091 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
4092 logic pointed out by Eli Zaretskii.
4093
448e17d6
LMI
40942010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
4095
0c3a9a9f
GM
4096 * coding.c (coding-category-list): Refer to set-coding-system-priority
4097 instead of the obsolete set-coding-priority in the doc string.
448e17d6 4098
3fdebbf9 40992010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0 4100
2f8f196d 4101 * nsfont.m (nsfont_draw): Correct previous patch to return
f31ba3f0
AR
4102 correct value.
4103 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
4104 don't change the method signature, change the return.
4105
41062010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
4107
4108 * nsfont.m (nsfont_draw)
4109 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 4110 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 4111
17c0c952
JD
41122010-11-03 Julien Danjou <julien@danjou.info>
4113
4114 * image.c (gif_load): Add support for transparency and specified
4115 :background.
4116
b18fad6d
KH
41172010-11-01 Kenichi Handa <handa@m17n.org>
4118
4119 * dispextern.h (lookup_glyphless_char_display): Extern it.
4120
4121 * termhooks.h (struct terminal): New member charset_list.
4122
4123 * coding.c (Fset_terminal_coding_system_internal): Set the
4124 `charset_list' member of struct terminal.
4125
a8039db1 4126 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
4127 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4128
4129 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
4130 (lookup_glyphless_char_display): Set it->what at the end.
4131 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4132 (last_glyphless_glyph_merged_face_id): Make them non-static.
4133
a8039db1
JB
4134 * w32term.c (x_draw_glyphless_glyph_string_foreground):
4135 Fix the arg with_background for font->driver->draw.
65b6b59a 4136
a8039db1 41372010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 4138
a8039db1
JB
4139 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
4140 Surround chp by parentheses.
0269bd90 4141
a8039db1 41422010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
4143
4144 Implement various display methods for glyphless characters.
4145
4146 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
4147 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
4148 (Qzero_width): New variables.
4149 (THIN_SPACE_WIDTH): New macro.
01c35094 4150 (lookup_glyphless_char_display): New function.
b2cca856
KH
4151 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
4152 (last_glyphless_glyph_merged_face_id): New variables.
4153 (get_next_display_element): Check glyphless characters.
4154 (redisplay_internal): Initialize last_glyphless_glyph_frame and
4155 last_glyphless_glyph_face_id.
4156 (fill_glyphless_glyph_string): New function.
4157 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
4158 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
4159 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
4160 (x_produce_glyphs): If a suitable font is not found, produce a
4161 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
4162 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
4163 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
4164 Qzero_width.
4165 (Vglyphless_char_display): Declare it as a Lisp variable.
4166
4167 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
4168 (struct glyph): Change the size of the member "type" to 3.
4169 Add glyphless to the union slice and u.
b2cca856
KH
4170 (enum display_element_type): Add IT_GLYPHLESS.
4171 (enum glyphless_display_method): New enum.
4172 (struct it): New member glyphless_method.
4173 (Vglyphless_char_display): Extern it.
4174
4175 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
4176 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4177
a8039db1 4178 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
4179 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
4180
4181 * nsterm.m (ns_draw_glyph_string): Handle the case
4182 GLYPHLESS_GLYPH (the detail is not yet implemented).
4183
c8c59954
GM
41842010-10-31 Glenn Morris <rgm@gnu.org>
4185
80696982
GM
4186 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
4187
c8c59954
GM
4188 * frame.c (syms_of_frame) <tool-bar-mode>:
4189 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
4190
46eadc7a
CY
41912010-10-31 Chong Yidong <cyd@stupidchicken.com>
4192
4193 * xterm.c (x_connection_closed): Print informative error message
4194 when aborting on GTK. This requires using shut_down_emacs
4195 directly instead of Fkill_emacs.
4196
ffe75e6b
EZ
41972010-10-29 Eli Zaretskii <eliz@gnu.org>
4198
4199 * emacs.c (main): Call syms_of_filelock unconditionally.
4200
4201 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
4202 clause, but keep part of it conditioned on CLASH_DETECTION.
4203
9d794026
GM
42042010-10-29 Glenn Morris <rgm@gnu.org>
4205
4f4f2973
GM
4206 * nsfns.m (Fx-display-save-under, Fx-open-connection)
4207 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
4208 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
4209 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
4210 Sync docs between X, W32, NS.
4211
9d794026
GM
4212 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
4213 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
4214
d46f6bbb
JB
42152010-10-26 Juanma Barranquero <lekktu@gmail.com>
4216
4217 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
4218 otherwise, bootstrapping on Windows fails to compile macroexp.el.
4219
2e35f1a2
EZ
42202010-10-26 Eli Zaretskii <eliz@gnu.org>
4221
4222 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 4223 zero or negative. (Bug#7281)
2e35f1a2 4224
8daaeda6
J
42252010-10-26 Jan Djärv <jan.h.d@swipnet.se>
4226
4227 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
4228
6a5c2175
GM
42292010-10-25 Glenn Morris <rgm@gnu.org>
4230
4231 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
4232
7c051dd8
GM
42332010-10-24 Glenn Morris <rgm@gnu.org>
4234
4235 * w32fns.c (Fx_synchronize, Fx_change_window_property)
4236 (Fx_window_property, Fx_file_dialog):
4237 * xfns.c (Fx_synchronize, Fx_change_window_property)
4238 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
4239
23c261f5
CY
42402010-10-24 Chong Yidong <cyd@stupidchicken.com>
4241
4242 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
4243
d414c713 42442010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
4245
4246 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
4247
4248 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
4249 Deprecate use as a boolean flag.
4250
947f5e01
JM
42512010-10-24 Jim Meyering <jim@meyering.net>
4252
4253 * emacs.c (argmatch): Don't treat "--" as "--chdir".
4254
65807d73
GM
42552010-10-24 Glenn Morris <rgm@gnu.org>
4256
f5f25615
GM
4257 * w16select.c (syms_of_win16select) <selection-coding-system>:
4258 <next-selection-coding-system>:
4259 * w32select.c (syms_of_w32select) <selection-coding-system>:
4260 <next-selection-coding-system>:
3646b86d
GM
4261 Sync docs with select.el.
4262
46710489
GM
4263 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
4264 Lisp version.
4265
ea883883
GM
4266 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
4267 Sync doc with the xterm.c version.
4268
65807d73
GM
4269 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
4270 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
4271
f3d87560
GM
42722010-10-23 Glenn Morris <rgm@gnu.org>
4273
66c6abf0 4274 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 4275 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 4276 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 4277 <hourglass-delay>: Sync docs with Lisp.
f3d87560 4278
7b7e2c18
EZ
42792010-10-23 Eli Zaretskii <eliz@gnu.org>
4280
d1d6801e 4281 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
4282
4283 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
4284 (mouse_face_from_string_pos): New function, replaces
4285 fast_find_string_pos.
4286 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
4287 (note_mode_line_or_margin_highlight): Support bidi-reordered
4288 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
4289 (note_mouse_highlight): When bidi reordering is turned on in a
4290 buffer, call next-single-property-change and
ef1b0ba7
SM
4291 previous-single-property-change with last argument nil.
4292 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 4293 glyph that stands for no text beyond the line end.
1f382a02
EZ
4294 (row_containing_pos): Don't return too early when CHARPOS is in a
4295 bidi-reordered continued line. Return immediately when the first
4296 hit is found in a line that is not continued, or when an exact
4297 match for CHARPOS is found.
d1d6801e
EZ
4298 (rows_from_pos_range): New function.
4299 (mouse_face_from_buffer_pos): Use it instead of calling
4300 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
4301 function to support mouse highlight in bidi-reordered lines and
4302 not to assume that START_CHARPOS is always in mouse_face_beg_row.
4303 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
4304 that the former is always above the latter or identical to it.
1554d88e 4305 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
4306 (coords_in_mouse_face_p): New function, bidi-aware.
4307 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
4308 Call it instead of comparing with mouse-face members of dpyinfo.
4309 (note_mode_line_or_margin_highlight): Fix confusingly swapped
4310 usage of hpos and vpos.
544bbc31 4311
dee186b6
J
43122010-10-22 Jan Djärv <jan.h.d@swipnet.se>
4313
4314 * xrdb.c: Include keyboard.h for MOTIF.
4315
4316 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
4317 MOTIF (Bug#7263).
4318
4319 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
4320 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
4321 Make ANSI prototypes.
dee186b6 4322
5fb59edb
GM
43232010-10-22 Glenn Morris <rgm@gnu.org>
4324
4325 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
4326 Remove ccl and duplicate mouse.
4327
8b78d5e3
CY
43282010-10-21 Chong Yidong <cyd@stupidchicken.com>
4329
4330 * insdel.c (prepare_to_modify_buffer): Don't set
4331 saved-region-selection if modification hooks are disabled.
4332
b8a47412
CY
43332010-10-19 Chong Yidong <cyd@stupidchicken.com>
4334
4335 * cmds.c (Fdelete_char): Doc fix.
4336
ca3fa302 43372010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
4338
4339 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
4340
ca3fa302 43412010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
4342
4343 Fix incorrect font metrics when the same font is opened with
4344 different pixelsizes.
4345
4346 * xftfont.c: Include composite.h.
4347 (xftfont_shape): New function.
4348 (syms_of_xftfont): Set xftfont_driver.shape.
4349
c978536f
JD
43502010-10-18 Julien Danjou <julien@danjou.info>
4351
4352 * frame.c (Fframe_pointer_visible_p):
4353 Add `frame-pointer-visible-p' to get the pointer visibility.
4354
4b2d9ec2
LMI
43552010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
4356
4357 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
4358 non-"EAGAIN"-like error to signal to Emacs that the socket should
4359 be closed.
4360
9cf66cf2
EZ
43612010-10-15 Eli Zaretskii <eliz@gnu.org>
4362
c3911ead
EZ
4363 * unexcoff.c (make_hdr): Fix prototype according to changes in
4364 2010-10-03T13:59:56Z!dann@ics.uci.edu.
4365
9cf66cf2
EZ
4366 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
4367
be98da05
TH
43682010-10-15 Tassilo Horn <tassilo@member.fsf.org>
4369
4370 * Makefile.in (really-oldXMenu): Fix typo in variable name that
4371 made building the X menu fail.
cc98b256 4372 (really-oldXMenu): Fix my previous fix.
be98da05 4373
220d91b8 43742010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
4375
4376 Fix handling of font properties on Windows (bug#6303).
4377 * font.c (font_filter_properties): New function, refactored from
4378 ftfont_filter_properties.
4379 * font.h (font_filter_properties): Declare.
4380 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
4381 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
4382 (w32font_filter_properties): New function.
4383 (w32font_driver): Add w32font_filter_properties.
4384
220d91b8 43852010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 4386
c0943d3d 4387 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
4388 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
4389
24f981c9
JB
43902010-10-14 Juanma Barranquero <lekktu@gmail.com>
4391
4392 * w32fns.c (w32_wnd_proc, file_dialog_callback):
4393 * w32font.c (w32_generic_family):
4394 * w32inevt.c (key_event):
4395 * w32menu.c (fill_in_menu):
4396 * w32proc.c (reader_thread, w32_executable_type, compare_env)
4397 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
4398 * w32term.c (w32_read_socket): Make static.
4399
850690cc
JB
44002010-10-13 Juanma Barranquero <lekktu@gmail.com>
4401
4402 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
4403 prototypes; all callers changed.
4404
5e371708
JB
44052010-10-13 Juanma Barranquero <lekktu@gmail.com>
4406
4407 * makefile.w32-in (TLIB2): Rename from TLIBW32.
4408 (OBJ2): New macro.
4409 (WIN32OBJ, FONTOBJ): Remove.
4410 (OBJ1): Redistribute object files with OBJ2.
4411 (LIBS, $(TEMACS)): Use TLIB2.
4412 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
4413 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
4414
2e288d54
JB
44152010-10-13 Juanma Barranquero <lekktu@gmail.com>
4416
4417 * emacs.c (Vdynamic_library_alist)
4418 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
4419 Doc fix.
4420
4421 * lisp.h (Vdynamic_library_alist): Declare extern.
4422
4423 * image.c (Vimage_library_alist)
4424 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
4425 (lookup_image_type): Use Vdynamic_library_alist.
4426 (Finit_image_library): Doc fix.
4427
aba1381b
DN
44282010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
4429
4430 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
4431 (lispdir): Remove trailing /, update all uses.
4432
4c14013d 44332010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
4434
4435 * nsterm.m (Qleft): Declare.
01c35094 4436 (ns_right_alternate_modifier): New variable.
a2e35ef5
JD
4437 (NSRightAlternateKeyMask): New define.
4438 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
4439 ns_right_alternate_modifier isn't Qleft.
4440 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
4441 as emacs modifier for NSRightAlternateKeyMask.
4442 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
4443
355cdaf3
LMI
44442010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
4445
4446 * gnutls.c (emacs_gnutls_write): If we're trying to write before
4447 gnutls is ready, return EAGAIN as the errno.
4448
4c620157
DN
44492010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
4450
edfd76ce
DN
4451 * vm-limit.c:
4452 * unexhp9k800.c:
4453 * unexelf.c:
4454 * unexaix.c:
4455 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
4456
a4daeecf
DN
4457 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
4458 (PROFILING_LDFLAGS): Remove, not needed anymore.
4459
01c35094 4460 * Makefile.in: Use $(...) everywhere instead of ${...}.
4cf3ad30
DN
4461 (CRT_DIR): Move near potential user.
4462 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 4463
4c620157
DN
4464 * sysdep.c (LPASS8): Remove, unused.
4465 (emacs_ospeed): Change from being a global to a local in the only
4466 user: init_baud_rate.
4467
b845653d
LMI
44682010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4469
4470 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 4471 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 4472 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 4473 gnutls_read. This allows us to actually read lots of data from
b845653d 4474 the GnuTLS stream.
2e6c74c5
LMI
4475 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
4476 According to the documentation, this is correct, and it seems to
4477 make things work.
b845653d 4478
3625b3e2
CY
44792010-10-09 Chong Yidong <cyd@stupidchicken.com>
4480
4481 * xterm.c (x_draw_relief_rect): Clear corner pixels.
4482
8b1c619f
MA
44832010-10-08 Michael Albinus <michael.albinus@gmx.de>
4484
4485 * keyboard.c: Revert last change; it was not intended to be
4486 synchronized with the trunk.
4487
93d50df8
KH
44882010-10-08 Kenichi Handa <handa@m17n.org>
4489
2b7c9342 4490 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 4491
4628bef1 44922010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
4493
4494 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
4495 (Fdbus_init_bus): ... here. (Bug#7113)
4496
4628bef1 44972010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
4498
4499 * buffer.c (before-change-functions, after-change-functions):
4500 Three-year overdue doc fix following 2007-08-13 change.
4501
4628bef1 45022010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
4503
4504 * coding.c (coding_inherit_eol_type): If parent doesn't specify
4505 eol-format, inherit from the system's default.
4506 (complement_process_encoding_system): Make a new coding system
4507 inherit the original eol-format.
4508
4628bef1 45092010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
4510
4511 * coding.c (complement_process_encoding_system): New function.
4512
4513 * coding.h (complement_process_encoding_system): Extern it.
4514
4515 * callproc.c (Fcall_process): Complement the coding system for
4516 encoding arguments.
4517 (Fcall_process_region): Complement the coding system for encoding
4518 the input to the process.
4519
4520 * process.c (Fstart_process): Complement the coding system for
4521 encoding arguments.
4522 (send_process): Complement the coding system for encoding what
4523 sent to the process.
4524
4628bef1 45252010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
4526
4527 * xfont.c (xfont_open): Fix setting of font->average_width from
4528 :avgwidth property (Bug#7123).
4529
4628bef1 45302010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
4531
4532 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
4533 is more portable.
4534
4535 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
84eb0351 4536 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
4537 has not defined SIGIO.
4538
389454fb
CY
45392010-10-08 Chong Yidong <cyd@stupidchicken.com>
4540
4541 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
4542 draw the outermost line using the black relief, for legibility.
4543 Omit drawing the four corner pixels.
4544
51b403bd
CY
45452010-10-04 Chong Yidong <cyd@stupidchicken.com>
4546
4547 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
4548 (read_key_sequence): Inline echo_prompt.
4549 (echo_dash): Add a dash only if key is continued (Bug#7137).
4550
3e6ae1a4
DN
45512010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
4552
4553 Remove O_RDONLY, O_WRONLY definitions, not needed.
4554 * unexcoff.c:
4555 * lread.c:
4556 * fileio.c:
4557 * doc.c:
4558 * callproc.c:
4559 * alloc.c:
4560 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
4561
c1ae068b
LMI
45622010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
4563
4564 * gnutls.h (GNUTLS_LOG2): Convenience macro.
4565
4566 * gnutls.c: Add property list symbol holders.
4567 (emacs_gnutls_handshake): Clarify how sockets are passed to
4568 GnuTLS.
4569 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
4570 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
4571 and keyfiles to be a list of file names. Default to "NORMAL" for
4572 the priority string. Improve logging.
4573
e2afe435
GM
45742010-10-03 Glenn Morris <rgm@gnu.org>
4575
4576 * fileio.c (Vdirectory_sep_char): Remove.
4577
dd5ecd6b
DN
45782010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
4579
b5437a05
DN
4580 * termhooks.h: Remove #ifdef CONSP.
4581
4777478a
DN
4582 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4583
a3d5088d
DN
4584 Include <fcntl.h> unconditionally.
4585 * termcap.c:
4586 * sysdep.c:
4587 * lread.c:
4588 * keyboard.c:
4589 * filelock.c:
4590 * fileio.c:
4591 * doc.c:
4592 * callproc.c:
4593 * alloc.c: Remove include guards for <fcntl.h>, process.c already
4594 does it.
4595
82719735
DN
4596 * process.c: Do not include <sys/wait.h>, syswait.h does it.
4597
9de940b5
DN
4598 * sysdep.c (flush_pending_output): Remove code, does not do
4599 anything on any platform.
4600
57507bf8 4601 Remove unused code.
bba3e508
SM
4602 * sysdep.c (select_alarm, sys_select, read_input_waiting):
4603 Remove select emulation, all systems support select.
57507bf8
DN
4604 (set_exclusive_use): Remove, the only user is in an #if 0 block.
4605 * process.c (create_process): Remove #if 0 code.
4606
dd5ecd6b
DN
4607 Remove unused arguments for unexec.
4608 The third one is never used, and the last two are always passed as zero.
4609 * emacs.c (unexec): Add declaration.
4610 (Fdump_emacs): Only pass the first two arguments to unexec.
4611 Simplify #ifdef.
4612 * unexw32.c (unexec):
4613 * unexsol.c (unexec):
4614 * unexhp9k800.c (unexec):
4615 * unexcw.c (unexec): Remove the last 3 arguments, unused.
4616 * unexelf.c (unexec): Remove the last 3 arguments, unused.
4617 (find_section): Use const.
4618 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4619 (unexec_error): Declare it NO_RETURN.
4620 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4621 it as an argument, remove data_start and entry_address arguments, unused.
4622 (unexec): Remove bss_start, data_start and
4623 entry_address arguments.
4624 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4625 it as an argument, remove data_start and entry_address arguments, unused.
4626 (unexec): Remove bss_start, data_start and
4627 entry_address arguments.
4628
74f1829d
JB
46292010-10-03 Juanma Barranquero <lekktu@gmail.com>
4630
7f467e14
JB
4631 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4632
74f1829d
JB
4633 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4634 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4635 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4636 Fix typos in docstrings.
4637 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4638 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4639
6926550f
CY
46402010-10-03 Chong Yidong <cyd@stupidchicken.com>
4641
4642 * keyboard.c (command_loop_1): Make sure the mark is really alive
4643 before using it (Bug#7044).
4644
54b65f7b
JB
46452010-10-02 Juanma Barranquero <lekktu@gmail.com>
4646
4647 * makefile.w32-in (tags): Rename target to full-tags.
4648
383ebd15
EZ
46492010-10-02 Eli Zaretskii <eliz@gnu.org>
4650
4651 * emacs.c (main): Remove !WINDOWSNT conditional.
4652 (Fkill_emacs): Don't mention exemption on MS-Windows.
4653
9c524fcb
GM
46542010-10-02 Glenn Morris <rgm@gnu.org>
4655
3226d6ca
GM
4656 * character.c (Fchar_bytes): Remove obsolete function.
4657 (syms_of_character): Remove Schar_bytes.
4658
9c524fcb
GM
4659 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4660 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4661 in batch-mode.
4662 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
4663 (kill-emacs-hook): Doc fix.
4664
1b217849
LMI
46652010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
4666
4667 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 4668 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
4669 renamed to reflect that these are the libxml functions.
4670
54cc6a83
EZ
46712010-10-01 Eli Zaretskii <eliz@gnu.org>
4672
0ebf79de
EZ
4673 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4674 screen dimensions in tty->Wcm.
4675
54cc6a83
EZ
4676 * xdisp.c (set_cursor_from_row): When the row is truncated and
4677 point is outside the range of displayed characters, position the
4678 cursor inside the scroll margin. (Bug#6349)
4679
321401d1
DN
46802010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
4681
4cacd822
DN
4682 Do not include stdlib.h and string.h, config.h does it.
4683 * xfont.c:
4684 * w32term.c:
4685 * w32reg.c:
4686 * w32inevt.c:
4687 * w32heap.c:
4688 * w32console.c:
4689 * w16select.c:
4690 * unexsol.c:
4691 * term.c:
4692 * sound.c:
4693 * scroll.c (m):
4694 * gtkutil.c:
4695 * font.c:
4696 * filelock.c:
4697 * fileio.c:
4698 * dosfns.c:
4699 * dbusbind.c:
4700 * bidi.c:
4701 * callproc.c:
4702 * process.c:
4703 * msdos.c:
4704 * charset.c: Do not include stdlib.h and string.h, config.h does it.
4705
bba3e508
SM
4706 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
4707 defines it.
0781e7ab 4708
9bf58201
DN
4709 * process.c: Move #include <pty.h> earlier.
4710 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
4711 (pty_name): Move definition later.
4712
088dcc3e
DN
4713 * nsselect.m (syms_of_nsselect):
4714 * nsmenu.m (syms_of_nsmenu):
4715 * nsfns.m (syms_of_nsfns):
4716 * msdos.c (syms_of_msdos):
4cacd822 4717
088dcc3e
DN
4718 * image.c (syms_of_image):
4719 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4720
321401d1
DN
4721 * point.h: Remove, unused.
4722
73077a9a
EZ
47232010-10-01 Eli Zaretskii <eliz@gnu.org>
4724
4725 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4726 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4727 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4728
55e572ef
DN
47292010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4730
4731 * xml.c (parse_string): Use const.
4732
d4b6d95d
LMI
47332010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
4734
ef1b0ba7
SM
4735 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4736 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
4737 the level to 8 to produce more useful backtraces for bug reports.
4738
e4b6db12
DN
47392010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4740
4741 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4742
1becef93
JB
47432010-09-30 Juanma Barranquero <lekktu@gmail.com>
4744
4745 * w32console.c (vga_stdcolor_name): Remove unused function;
4746 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
4747
df7fcaff
LMI
47482010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
4749
bac5cef8
LMI
4750 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
4751 (Fgnutls_boot): Start the handshake.
4752 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
4753 (Fgnutls_boot): Remove some debugging messages.
4754 Change indentation throughout to use the Emacs style.
4755 (emacs_gnutls_handshake): Cast the fds to something that's
4756 possibly the expected length.
4757 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 4758
df7fcaff
LMI
4759 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
4760
4761 * process.c (make_process): Set the gnutls_p field to zero by
4762 default.
4763 (read_process_output): Always call the gnutls_read function if the
4764 stream is a gnutls stream.
4765 (send_process): Ditto for writes.
4766
4767 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
4768 or write anything until the state is GNUTLS_STAGE_READY.
4769 (Fgnutls_boot): Mark the stream as being a gnutls stream.
4770
d585695f
EZ
47712010-09-29 Eli Zaretskii <eliz@gnu.org>
4772
af7ef32d
EZ
4773 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
4774 NEUTRAL_DIR.
4775 (handle_invisible_prop, iterate_out_of_display_property)
4776 (next_element_from_buffer): If bidi_it.first_elt is set, call
4777 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
4778 (Bug#7128)
4779
d585695f
EZ
4780 * print.c (print_object): Fix format string and argument types for
4781 printing a Lisp_Misc_Marker.
4782
4783 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
4784 (load_overlay_strings, get_overlay_strings_1)
4785 (get_overlay_strings, forward_to_next_line_start)
4786 (back_to_previous_visible_line_start, reseat, reseat_to_string)
4787 (get_next_display_element, next_element_from_string)
4788 (next_element_from_c_string, next_element_from_buffer)
4789 (move_it_vertically_backward, move_it_by_lines, add_to_log)
4790 (message_dolog, message_log_check_duplicate, message2_nolog)
4791 (message3, message3_nolog, vmessage, set_message, set_message_1)
4792 (hscroll_window_tree, text_outside_line_unchanged_p)
4793 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
4794 (find_last_unchanged_at_beg_row)
4795 (find_first_unchanged_at_end_row, row_containing_pos)
4796 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
4797 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
4798 Use EMACS_INT for buffer and string positions.
d585695f
EZ
4799
4800 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
4801 (row_containing_pos): Adjust prototype.
4802
4803 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
4804 (message2_nolog, set_message): Adjust prototypes.
4805
a6f3211f
SM
48062010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4807
4808 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
4809 (Fgnutls_boot): Use SDATA.
4810 (Fgnutls_handshake): Remove unused var `max_log_level'.
4811
e0720500
MA
48122010-09-27 Michael Albinus <michael.albinus@gmx.de>
4813
11a5af7c 4814 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
4815 (Bug#7113)
4816
d8a4b27a
J
48172010-09-27 Jan Djärv <jan.h.d@swipnet.se>
4818
42d3022b
J
4819 * xgselect.c (xg_select): Clear file descriptors not set from
4820 rfds and wfds.
4821
d8a4b27a
J
4822 * process.c (wait_reading_process_output): Add missing FD_CLR
4823 for write_mask (must mirror connect_wait_mask).
4824
8ed70bf3
LMI
48252010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
4826
4827 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
4828 prefix.
4829 (Fgnutls_boot): Use changed process members. Use log level with a
4830 function parameter to set it. Bring back Emacs-level debugging
4831 messages at log level 1 and 2.
4832
4833 * process.c (make_process): Initialize gnutls_log_level.
4834
4835 * process.h: Add gnutls_log_level and rename x509_cred and
4836 anon_cred to have the gnutls_ prefix for consistency.
4837
4838 * gnutls.h (GNUTLS_LOG): Add convenience macro.
4839
bedf4aab
JB
48402010-09-27 Juanma Barranquero <lekktu@gmail.com>
4841
4842 * w32.c (g_b_init_get_sid_identifier_authority)
4843 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
4844 Remove, not used.
4845 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
4846 (init_winsock): Remove useless assignment.
4847 (open_process_token, get_token_information, lookup_account_sid)
4848 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
4849 (get_security_descriptor_owner, get_security_descriptor_group)
4850 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
4851 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
4852 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
4853 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
4854 (unc_volume_file_attributes, convert_from_time_t)
4855 (create_toolhelp32_snapshot, process32_first, process32_next)
4856 (open_thread_token, impersonate_self, revert_to_self)
4857 (get_process_memory_info, get_process_working_set_size)
4858 (global_memory_status, global_memory_status_ex, socket_to_fd)
4859 (shutdown_handler): Make static.
4860
08609ffd
MA
48612010-09-27 Michael Albinus <michael.albinus@gmx.de>
4862
4863 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
4864 (xd_pending_messages): Functions removed.
4865 (xd_read_queued_messages): Add parameters fd, *data, for_read in
4866 order to be compatible with add_read_fd. Determine bus from data,
4867 and call xd_read_message just for this bus.
4868 (xd_add_watch): Use xd_read_queued_messages as callback function.
4869 Add data.
4870
4871 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
4872
d2e9d0bb
LMI
48732010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
4874
ef1b0ba7 4875 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 4876 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 4877
4be9765d
KH
48782010-09-27 Kenichi Handa <handa@m17n.org>
4879
4880 These changes are to remove restriction on the number of glyphs in
4881 one composition.
4882
4883 * dispextern.h (struct glyph): Change the member "slice" to union.
4884 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 4885 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
4886
4887 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
4888 instead of glyph->slice.
4889 (marginal_area_string): Likewise.
4890
4891 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
4892 glyph->u.cmp.
4893 (append_composite_glyph): Likewise.
4894
4895 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
4896 glyph->u.cmp.
4897 (fill_gstring_glyph_string, x_get_glyph_overhangs)
4898 (append_composite_glyph): Likewise.
4899 (fill_image_glyph_string): Use glyph->slice.img instead of
4900 glyph->slice.
4901 (append_glyph, produce_image_glyph, append_stretch_glyph)
4902 (note_mouse_highlight): Likewise.
4903
3fad2ad2
J
49042010-09-26 Jan Djärv <jan.h.d@swipnet.se>
4905
bf05eed6
J
4906 * process.c (add_keyboard_wait_descriptor)
4907 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
4908 (wait_reading_process_output): Don't pass write_mask to select
4909 if SELECT_CANT_DO_WRITE_MASK is defined.
4910 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 4911
3fad2ad2
J
4912 * process.h (add_read_fd, delete_read_fd, add_write_fd)
4913 (delete_write_fd): Declare.
4914
4915 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
4916 (write_mask): New variable.
ef1b0ba7 4917 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 4918 (fd_callback_info): New variable.
70e31436
JB
4919 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
4920 New functions.
3fad2ad2
J
4921 (Fmake_network_process): FD_SET write_mask.
4922 (deactivate_process): FD_CLR write_mask.
4923 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
4924 check_connect removed. check_write is new. Remove references to gpm.
4925 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
4926 NON_BLOCKING_CONNECT) instead of Connecting.
4927 Loop over file descriptors and call callbacks in fd_callback_info
4928 if file descriptor is ready for I/O.
4929 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
4930 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
4931 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
4932 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
4933 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
4934 (init_process): Initialize write_mask and fd_callback_info.
4935
4936 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
4937
4938 * dbusbind.c: Include process.h.
4939 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
4940 (xd_read_message_1): New functions.
70e31436
JB
4941 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
4942 Handle watch for both read and write.
3fad2ad2
J
4943 (Fdbus_init_bus): Also register xd_toggle_watch.
4944 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4945 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
4946 to dbus_connection_flush.
70e31436 4947 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
4948 Call xd_read_message_1 until status is COMPLETE.
4949
dce4c2ac
DN
49502010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
4951
4952 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
4953 (init_tty): Reorder code to reduce the number of #ifdefs.
4954 No code changes.
dce4c2ac 4955
8af55556
TZ
49562010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
4957
4958 * process.h: Set up GnuTLS support.
4959
4960 * process.c (make_process, Fstart_process)
4961 (read_process_output, send_process): Set up GnuTLS support for
4962 process input/output file descriptors.
4963
4964 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
4965
4966 * gnutls.c: The source code for GnuTLS support in Emacs.
4967
4968 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
4969
4970 * config.in: Set up GnuTLS support.
4971
4972 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
4973 (obj, LIBES): Set up GnuTLS support.
4974
83e245c4
JB
49752010-09-26 Juanma Barranquero <lekktu@gmail.com>
4976
4977 * w32.c (get_emacs_configuration_options): Fix previous change.
4978
d24ec09a
CY
49792010-09-25 Chong Yidong <cyd@stupidchicken.com>
4980
4981 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
4982 alive before using it (Bug#6977).
4983
b7bdc47c
LMI
49842010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
4985
a952d5f3
LMI
4986 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
4987
4988 * dispextern.h: EMACS_INT/int fixup.
4989
4990 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
4991 fixup.
4992
b7bdc47c
LMI
4993 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
4994
41118bd3
EZ
49952010-09-25 Eli Zaretskii <eliz@gnu.org>
4996
2452438f
EZ
4997 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
4998 (Fselect_window, window_scroll_pixel_based)
4999 (window_scroll_line_based, Frecenter, Fset_window_configuration):
5000 Use EMACS_INT for buffer positions.
5001
5002 * textprop.c (validate_interval_range, interval_of)
5003 (property_change_between_p, Fadd_text_properties)
5004 (set_text_properties_1, Fremove_text_properties)
5005 (Fremove_list_of_text_properties, Ftext_property_any)
5006 (Ftext_property_not_all, copy_text_properties)
5007 (text_property_list, extend_property_ranges)
5008 (verify_interval_modification): Use EMACS_INT for buffer
5009 positions.
5010
f877c546
EZ
5011 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
5012 for buffer positions.
5013
5014 * process.c (read_process_output, send_process)
5015 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
5016 and string positions and size.
5017
da43f021
EZ
5018 * print.c (print_object, print_string, strout): Use EMACS_INT for
5019 string indices.
5020
5021 * minibuf.c (string_to_object): Use EMACS_INT for string position
5022 and size.
5023
5024 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
5025
5026 * lread.c <read_from_string_index, read_from_string_index_byte>
5027 <read_from_string_limit, readchar_count>: Define EMACS_INT.
5028 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
5029 buffer positions and string length.
5030
41118bd3
EZ
5031 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
5032 EMACS_INT.
5033 (echo_truncate, adjust_point_for_property, read_char)
5034 (gen_help_event, make_lispy_event, modify_event_symbol)
5035 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
5036 for buffer positions and string length.
5037
5038 * keyboard.h (gen_help_event): Adjust prototype.
5039
5040 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
5041
5042 * commands.h <last_point_position>: Declare EMACS_INT.
5043
5044 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
5045 (truncate_echo_area): Accept EMACS_INT argument.
5046
5047 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
5048
5049 * lisp.h (truncate_echo_area): Adjust prototype.
5050
5051 * composite.c (composition_adjust_point): Return EMACS_INT.
5052
5053 * composite.h (composition_adjust_point): Adjust prototype.
5054
ba3033ee
JB
50552010-09-25 Juanma Barranquero <lekktu@gmail.com>
5056
5057 * process.c (Fmake_network_process): When arg :host is 'local,
5058 use address 127.0.0.1, not name "localhost". (Bug#6781)
5059
4f3a2f8d
EZ
50602010-09-24 Eli Zaretskii <eliz@gnu.org>
5061
5816888b
EZ
5062 * indent.c (Fcurrent_indentation, indented_beyond_p)
5063 (compute_motion): Use EMACS_INT for buffer position variables.
5064
5065 * lisp.h (indented_beyond_p): Adjust prototype.
5066
5067 * buffer.c (overlay_strings): Return EMACS_INT.
5068
5069 * buffer.h (overlay_strings): Adjust prototype.
5070
5071 * region-cache.c (pp_cache): Adjust format to arguments.
5072
5073 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
5074 (call_debugger): Use EMACS_INT for specpdl_size related variables.
5075 (verror): Use EMACS_INT for size of allocated buffer.
5076
ace1712c
EZ
5077 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
5078 positions.
5079
5080 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
5081 (set_cursor_from_row, find_first_unchanged_at_end_row):
5082 Use EMACS_INT for buffer positions.
ace1712c 5083
f5276b75 5084 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
5085
5086 * dispnew.c (increment_matrix_positions)
5087 (increment_row_positions, copy_glyph_row_contents)
5088 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
5089 positions.
5090
5091 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
5092 (increment_matrix_positions, increment_row_positions):
5093 Adjust prototypes.
ace1712c
EZ
5094
5095 * data.c (Faref, Faset): Use EMACS_INT for string length and
5096 positions.
5097
5098 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
5099 characters to insert.
5100
5101 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
5102 position and size.
5103
4f3a2f8d
EZ
5104 * syntax.c (scan_words, update_syntax_table)
5105 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
5106 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
5107 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
5108
5109 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
5110
5111 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
5112 positions.
5113
db063399
LMI
51142010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
5115
f0812d35
LMI
5116 * scroll.c (calculate_scrolling, line_ins_del)
5117 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
5118 conversion.
5119
f5c7fc27
LMI
5120 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
5121 (region_cache_backward, region_cache_forward)
5122 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
5123 conversion.
5124
db063399
LMI
5125 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5126
5127 * eval.c (verror): Fix EMACS_INT/int conversion.
5128
07914cd0 5129 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
5130 (print_preprocess, print_check_string_charset_prop)
5131 (print_object): Fix EMACS_INT/int conversion.
5132
5133 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
5134
e6d4aefa
EZ
51352010-09-24 Eli Zaretskii <eliz@gnu.org>
5136
69481da7
EZ
5137 * callproc.c (Fcall_process): Use EMACS_INT for count of
5138 characters read from the subprocess.
5139
61bfec98
EZ
5140 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
5141 positions.
5142 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
5143 positions.
5144
145582a0
EZ
5145 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
5146 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
5147 length.
5148 (advance_to_char_boundary, Fset_buffer_multibyte)
5149 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
5150 (overlay_touches_p, record_overlay_string, overlay_strings)
5151 (recenter_overlay_lists, fix_start_end_in_overlays)
5152 (modify_overlay, Fmove_overlay, report_overlay_modification)
5153 (evaporate_overlays): Use EMACS_INT for buffer positions.
5154
bba3e508
SM
5155 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
5156 Adjust prototypes.
145582a0 5157
446470a9
EZ
5158 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
5159 positions.
5160
e6d4aefa
EZ
5161 * fns.c (Fcompare_strings, Fstring_lessp, concat)
5162 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
5163 (Fsubstring_no_properties, substring_both, Ffillarray)
5164 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
5165 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
5166 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
5167 (Fmd5): Use EMACS_INT for buffer and string positions and length
5168 variables and arguments.
5169
5170 * lisp.h (substring_both): Adjust prototype.
5171
eb652396
JB
51722010-09-24 Juanma Barranquero <lekktu@gmail.com>
5173
5174 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
5175 * w32fns.c (clipboard_sequence_fn): Don't declare.
5176 (globals_of_w32fns): Don't initialize it.
5177
266a86bd 51782010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
5179
5180 * syntax.c (back_comment): Detect the case where a 1-char comment
5181 starter is also the 2nd char of a 2-char comment ender.
5182
266a86bd 51832010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
5184
5185 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
5186
40283062
LMI
51872010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5188
db063399
LMI
5189 * eval.c (verror): EMACS_INT/int cleanup.
5190
faf8b5bc
LMI
5191 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
5192 unwind_protect more than 2GB worth of functions.
5193
5194 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
5195
40283062
LMI
5196 * lisp.h: Have oblookup take EMACS_INT to allow interning big
5197 string and avoid compiler warnings.
5198 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
5199 all users.
5200
5201 * lread.c (oblookup): EMACS_INT/int cleanup.
5202
5203 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
5204
fe3537c3
EZ
52052010-09-23 Eli Zaretskii <eliz@gnu.org>
5206
5207 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
5208
5209 * lisp.h (clip_to_bounds): Adjust prototype.
5210
5211 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
5212
0350982f
LMI
52132010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5214
84c9ce05
LMI
5215 * lisp.h: doprnt.c EMACS_INT/int cleanup.
5216
5217 * doprnt.c (doprnt): EMACS_INT/int cleanup.
5218
5219 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
5220 cleanup.
5221
0350982f
LMI
5222 * lisp.h: Change the definition of all marker.c functions that
5223 take and return buffer stuff to be EMACS_INT instead of int.
5224
5225 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
5226 (buf_charpos_to_bytepos, bytepos_to_charpos)
5227 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
5228 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
5229 for all buffer positions.
5230
c50bd0d2
CY
52312010-09-23 Chong Yidong <cyd@stupidchicken.com>
5232
5233 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5234 (split_interval_right, find_interval, next_interval)
5235 (delete_node, delete_interval, interval_deletion_adjustment)
5236 (adjust_intervals_for_deletion, merge_interval_right)
5237 (merge_interval_left, graft_intervals_into_buffer)
5238 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
5239
5240 * intervals.h (traverse_intervals): Update prototype.
5241
14162469
EZ
52422010-09-23 Eli Zaretskii <eliz@gnu.org>
5243
c098fdb8
EZ
5244 * indent.c (compute_motion): Use EMACS_INT for arguments to
5245 region_cache_forward.
5246
bba3e508
SM
5247 * region-cache.c (struct boundary, struct region_cache):
5248 Use EMACS_INT for positions.
c098fdb8
EZ
5249 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
5250 (delete_cache_boundaries, set_cache_region)
5251 (invalidate_region_cache, know_region_cache)
bba3e508
SM
5252 (region_cache_forward, region_cache_backward, pp_cache):
5253 Use EMACS_INT for buffer positions.
c098fdb8
EZ
5254
5255 * region-cache.h (know_region_cache, invalidate_region_cache)
5256 (region_cache_forward, region_cache_backward): Adjust prototypes.
5257
5258 * search.c (string_match_1, fast_c_string_match_ignore_case)
5259 (looking_at_1, scan_buffer, scan_newline)
5260 (find_next_newline_no_quit, find_before_next_newline)
5261 (search_command, trivial_regexp_p, search_buffer, simple_search)
5262 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
5263 and string positions and length.
5264
caefdbe7
EZ
5265 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
5266 (find_before_next_newline): Adjust prototypes.
c098fdb8 5267
29cdc13e
EZ
5268 * editfns.c (transpose_markers, update_buffer_properties)
5269 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
5270 (get_pos_property, Fconstrain_to_field)
5271 (Fline_beginning_position, Fline_end_position, Fprevious_char)
5272 (Fchar_after, Fchar_before, Finsert_char)
5273 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
5274 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
5275 Use EMACS_INT for buffer and string position variables.
c098fdb8 5276 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
5277
5278 * lisp.h (clip_to_bounds): Adjust prototype.
5279
e79123aa
EZ
5280 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5281 (balance_an_interval, split_interval_right, split_interval_left)
5282 (find_interval, next_interval, update_interval)
5283 (adjust_intervals_for_insertion, delete_node, delete_interval)
5284 (interval_deletion_adjustment, adjust_intervals_for_deletion)
5285 (offset_intervals, merge_interval_right, merge_interval_left)
5286 (graft_intervals_into_buffer, adjust_for_invis_intang)
5287 (move_if_not_intangible, get_local_map, copy_intervals)
5288 (copy_intervals_to_string, compare_string_intervals)
5289 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 5290 and for interval tree size.
e79123aa
EZ
5291
5292 * intervals.h (traverse_intervals, split_interval_right)
5293 (split_interval_left, find_interval, offset_intervals)
5294 (graft_intervals_into_buffer, copy_intervals)
5295 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
5296 (update_interval): Adjust prototypes.
5297
579c18d0
EZ
5298 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
5299 Use EMACS_INT for buffer position variables and arguments.
5300
5301 * composite.c (get_composition_id, find_composition)
5302 (run_composition_function, compose_text)
5303 (composition_gstring_width, autocmp_chars)
5304 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
5305 for buffer positions and string length variables and arguments.
5306
5307 * composite.h (get_composition_id, find_composition, compose_text)
5308 (composition_gstring_width): Adjust prototypes.
5309
5310 * editfns.c (Fformat): Use EMACS_INT for string size variables.
5311
bba3e508
SM
5312 * xdisp.c (store_mode_line_noprop, display_mode_element):
5313 Use EMACS_INT for string positions.
579c18d0
EZ
5314
5315 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
5316 position arguments.
5317
5318 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
5319
5320 * character.c (parse_str_as_multibyte, str_as_multibyte)
5321 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 5322 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
5323 (strwidth, lisp_string_width, multibyte_chars_in_text):
5324 Use EMACS_INT for string length variables and arguments.
14162469
EZ
5325
5326 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 5327 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
5328 (c_string_width, strwidth, lisp_string_width):
5329 Adjust prototypes.
14162469 5330
579c18d0
EZ
5331 * font.c (font_intern_prop): Use EMACS_INT for string length
5332 variables.
5333
5334 * font.c (font_intern_prop): Use EMACS_INT for string length
5335 variables.
5336
14162469
EZ
5337 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
5338 variables.
5339
5340 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
5341 (Fmake_string): Protect against too large strings.
5342 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
5343 (live_misc_p): Use ptrdiff_t instead of int for pointer
5344 differences.
5345 (string_bytes, check_sblock, check_string_free_list)
5346 (allocate_string_data, compact_small_strings, Fmake_string)
5347 (Fmake_bool_vector, make_string, make_unibyte_string)
5348 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
5349 (make_specified_string_string, Fmake_list, Fmake_vector):
5350 Use EMACS_INT for string length variables and arguments.
14162469
EZ
5351 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
5352 (Fpurecopy): Use EMACS_INT for string size.
5353 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
5354 for vector size.
5355
5356 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
5357 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
5358 (make_pure_string, string_bytes, check_point_in_composition):
5359 Adjust prototypes.
14162469 5360
c8a66ab8
EZ
53612010-09-22 Eli Zaretskii <eliz@gnu.org>
5362
5363 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
5364 (check_translation): Use EMACS_INT for buffer positions and
5365 length.
5366
5367 * undo.c (record_marker_adjustment, record_delete)
5368 (record_change, record_point, record_insert)
5369 (record_property_change, Fprimitive_undo): Use EMACS_INT for
5370 buffer positions.
5371
5372 * lisp.h (record_marker_adjustment, record_delete)
5373 (record_change, record_point, record_insert)
5374 (record_property_change, Fprimitive_undo): Adjust prototypes.
5375
38c54d9d
JB
53762010-09-22 Juanma Barranquero <lekktu@gmail.com>
5377 Eli Zaretskii <eliz@gnu.org>
5378
5379 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
5380
413d18e7
EZ
53812010-09-22 Eli Zaretskii <eliz@gnu.org>
5382
5383 * minibuf.c (Fminibuffer_contents)
5384 (Fminibuffer_contents_no_properties)
5385 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
5386 positions.
5387
5388 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
5389 mark.
5390
5391 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
5392 (allocate_string_data): Accept EMACS_INT for string length.
5393
5394 * editfns.c (Ffield_string, Ffield_string_no_properties)
5395 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
5396 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
5397 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
5398 (Ffield_end): Use EMACS_INT for buffer positions.
5399
5400 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
5401 point with mark.
5402
5403 * lisp.h (allocate_string_data, make_uninit_string)
5404 (make_uninit_multibyte_string, make_buffer_string)
5405 (make_buffer_string_both): Adjust prototypes.
5406
4b9832a6
CY
54072010-09-22 Chong Yidong <cyd@stupidchicken.com>
5408
5409 * xml.c: Switch to GNU indentation.
5410 (make_dom): Change parse tree format to match xml.el.
5411 (Fxml_parse_html_string_internal): Rename from html-parse-string.
5412 (Fxml_parse_string_internal): Rename from xml-parse-string.
5413
86282aab
KH
54142010-09-22 Kenichi Handa <handa@m17n.org>
5415
5416 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
5417 only if we are not at a composition.
5418 (set_iterator_to_next): Give it->end_charpos to
5419 composition_compute_stop_pos.
5420 (set_iterator_to_next, next_element_from_buffer): Likewise.
5421
5422 * dispnew.c (buffer_posn_from_coords): Fix position when the
5423 current display element is a grapheme cluster in bidi-reordered
5424 region.
5425
840b985a
AR
54262010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
5427
5428 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
5429 the regions may overlap.
5430
5bc88f4b
JB
54312010-09-21 Juanma Barranquero <lekktu@gmail.com>
5432
5433 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
5434
92bc9a36
DN
54352010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5436
d19e096e
DN
5437 * emacs.c: Do not include sys/ioctl.h, not needed.
5438
92bc9a36
DN
5439 * doprnt.c: Do not include stdlib.h, config.h does it.
5440 Move #include before macro definition.
5441
15f844ac
DN
54422010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
5443
48e24408
DN
5444 * Makefile.in (temacs): Link using $(CC) not $(LD).
5445 (LD_FIRSTFLAG): Define using autoconf.
5446 (LD): Remove.
5447
65539506
DN
5448 Remove HAVE_TERMIOS definitions.
5449 * s/usg5-4-common.h (HAVE_TERMIOS):
5450 * s/template.h (HAVE_TERMIOS):
5451 * s/gnu-linux.h (HAVE_TERMIOS):
5452 * s/darwin.h (HAVE_TERMIOS):
5453 * s/cygwin.h (HAVE_TERMIOS):
5454 * s/bsd-common.h (HAVE_TERMIOS):
5455 * s/aix4-2.h (HAVE_TERMIOS):
5456 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
5457 defined on all non-MS platforms.
5458 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
5459
15f844ac
DN
5460 * xterm.c (xt_action_hook): Use const.
5461
7d701334
JB
54622010-09-20 Juanma Barranquero <lekktu@gmail.com>
5463
5464 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
5465 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5466 (gethostname) [!HAVE_SOCKETS]: Remove.
5467 (SOCK_REPLACE_HANDLE): Remove macro.
5468 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
5469 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
5470 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5471 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
5472
f3ec267a
EZ
54732010-09-18 Eli Zaretskii <eliz@gnu.org>
5474
5475 * deps.mk (xml.o): Add dependencies.
5476
93acd23d
JB
5477 * xdisp.c (Fcurrent_bidi_paragraph_direction):
5478 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
5479
5480 * bidi.c (bidi_paragraph_init): Accept an additional argument
5481 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
5482 search back until a paragraph with a strong directional character
5483 is found, and use that to determine paragraph's base direction.
5484
5485 * dispextern.h (bidi_paragraph_init): Update prototype.
5486
69e847be
EZ
54872010-09-17 Eli Zaretskii <eliz@gnu.org>
5488
5489 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
5490 of w32api >= 3.15. (Bug#6989)
5491
283357a7
LMI
54922010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
5493
5494 * process.c (wait_reading_process_output): Don't message about
5495 accept-process-output unless the time limit really is zero.
5496
4ddb20d6
SM
54972010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5498
5499 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
5500 int/Lisp_Object mixup).
5501
e24ad6dd
J
55022010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5503
5504 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
5505 not HELP.
5506
fb0cf781
J
55072010-09-17 Stephen Berman <stephen.berman@gmx.net>
5508
5509 * frame.c (Ftool_bar_pixel_width): New function to expose tool
5510 bar's pixel width to Lisp (Bug#7048).
5511
4ddb20d6
SM
55122010-09-14 Juanma Barranquero <lekktu@gmail.com>
5513
5514 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 5515
318a04c6
J
55162010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5517
5518 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
5519 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
5520
78a21772
KH
55212010-09-17 Kenichi Handa <handa@m17n.org>
5522
5523 * ftfont.c (ftfont_check_otf): Fix previous change.
5524
fa3f6039
KH
55252010-09-14 Kenichi Handa <handa@m17n.org>
5526
5527 * ftfont.c (ftfont_check_otf): Fix the case of checking just
5528 existence of GSUB or GPOS.
5529
2b5491fa
JB
55302010-09-14 Juanma Barranquero <lekktu@gmail.com>
5531
5532 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5533
c97c655f
LMI
55342010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
5535
ef1b0ba7 5536 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
5537 what it does.
5538 (parse_string): Return nil when the document can't be parsed.
5539
6664fc59 55402010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
5541
5542 * xterm.c (get_current_vm_state): New function.
5543 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
5544 want_fullscreen so set_wm_state calls are few (Bug#7013).
5545 (x_handle_net_wm_state): Move code to get_current_vm_state and
5546 call that function.
5547
6664fc59 55482010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
5549
5550 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
5551
6664fc59 55522010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
5553
5554 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
5555 we may use designation or locking-shift.
5556
6664fc59 55572010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
5558
5559 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
5560 sequence when the source is multibyte.
5561
1da70e99
AS
55622010-09-14 Andreas Schwab <schwab@linux-m68k.org>
5563
6664fc59
JB
5564 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
5565 Don't make first argument optional. Doc fix.
1da70e99 5566
26632d8d
LMI
55672010-09-14 Leo <sdl.web@gmail.com> (tiny change)
5568
5569 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
5570 parameters for the doc string.
5571
21fa8e37
LMI
55722010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
5573
5574 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
5575
5616cc54
SM
55762010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5577
5578 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
5579 (syms_of_fns): Don't defsubr Sy_or_n_p.
5580 * lisp.h: Don't declare Fy_or_n_p.
5581 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
5582
381408e2
LMI
55832010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
5584
5585 * xml.c (Fxml_parse_buffer): New function to parse XML files.
5586
55872010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
5588
5589 * xml.c: New file.
5590 (Fhtml_parse_buffer): New function to interface to the libxml2
5591 html parsing function.
5592
733946e7
JB
55932010-09-05 Juanma Barranquero <lekktu@gmail.com>
5594
5595 * biditype.h: Regenerate.
5596
7574650a
AS
55972010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5598
5599 * nsimage.m (ns_load_image): Check argument types.
5600
5601 * image.c: Remove all uses of gcpro.
5602 (xpm_load): Check all lisp types.
5603 (pbm_load): Likewise.
5604 (png_load): Likewise.
5605 (jpeg_load): Likewise.
5606 (tiff_load): Likewise.
5607 (gif_load): Likewise.
5608 (imagemagick_load_image): Likewise.
5609 (imagemagick_load): Likewise.
5610 (svg_load): Likewise.
5611 (gs_load): Likewise.
5612
6e6b8e25
EZ
56132010-09-04 Eli Zaretskii <eliz@gnu.org>
5614
bba3e508
SM
5615 * w32uniscribe.c (uniscribe_shape): Update commentary.
5616 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
5617 hold them in the logical order.
5618 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5619 return glyph codes in the logical order.
5620
dbfe4532
AS
56212010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5622
5623 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 5624 (imagemagick_load_image): Fix type mismatch.
5e5992c2 5625 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 5626
6d7cc563
JD
56272010-09-02 Jan Djärv <jan.h.d@swipnet.se>
5628
5629 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5630
5631 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5632
5633 * xselect.c: Remove declaration of cut-buffer objects and functions.
5634 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5635 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5636 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5637 (Fx_rotate_cut_buffers_internal): Remove.
5638 (syms_of_xselect): Remove defsubr of above.
5639 Remove intern of QCUT_BUFFERn.
5640
8f4e9110
SM
56412010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5642
5643 * cmds.c (Vblink_paren_function): Remove.
5644 (internal_self_insert): Make it insert N chars at a time.
5645 Don't call blink-paren-function.
5646 (Fself_insert_command): Adjust accordingly.
5647 (syms_of_cmds): Don't declare blink-paren-function.
5648
d419e1d9
KH
56492010-08-31 Kenichi Handa <handa@m17n.org>
5650
5651 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5652 characters.
5653
5654 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
5655 (produce_glyphs): Don't set it->char_to_display here.
5656 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
5657 (produce_special_glyphs): Set temp_it.char_to_display before
5658 calling produce_glyphs.
5659
5660 * xdisp.c (get_next_display_element): Set it->char_to_display
5661 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5662 characters.
5663 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5664 calling PRODUCE_GLYPHS.
5665 (append_space_for_newline): Save and store it->char_to_display.
5666 Set it->char_to_display before calling PRODUCE_GLYPHS.
5667 (extend_face_to_end_of_line): Set it->char_to_display before
5668 calling PRODUCE_GLYPHS.
5669 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5670 character to its byte value.
5671 (get_char_glyph_code): New function.
5672 (produce_stretch_glyph): Set it2.char_to_display too before
5673 calling x_produce_glyphs.
5674 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
5675 non-ASCII characters. Don't set it->char_to_display here.
5676 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 5677 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 5678
b819f760
SM
56792010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5680
5681 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5682
07fa68a7
CY
56832010-08-31 Chong Yidong <cyd@stupidchicken.com>
5684
5685 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5686
cd196f12
SM
56872010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
5688
5689 * marker.c (Fcopy_marker): Make the first arg optional.
5690
49a752bb
KH
56912010-08-30 Kenichi Handa <handa@m17n.org>
5692
5693 * composite.c (composition_update_it): Fix computing of
5694 cmp_it->width.
5695
769ae9e1
KH
56962010-08-29 Kenichi Handa <handa@m17n.org>
5697
9e69cb05 5698 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 5699 corresponding bytes.
9e69cb05 5700
4520b858
J
57012010-08-29 Jan Djärv <jan.h.d@swipnet.se>
5702
5703 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
5704
fe50eb41
KH
57052010-08-26 Kenichi Handa <handa@m17n.org>
5706
5707 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
5708 on calling composition_compute_stop_pos.
5709
f6aa6ec6
KH
57102010-08-25 Kenichi Handa <handa@m17n.org>
5711
9dfdbc0a
KH
5712 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
5713 :otf.
5714
f6aa6ec6
KH
5715 * composite.c (composition_compute_stop_pos): Don't break
5716 composition at PT.
5717 (composition_reseat_it): Likewise. Fix calculation of character
5718 position starting a composition.
5719 (Fcomposition_get_gstring): Don't limit the number of components
5720 for automatic composition.
5721
ff94e32c
KH
57222010-08-25 Kenichi Handa <handa@m17n.org>
5723
5724 * composite.c (composition_compute_stop_pos): In forward search,
5725 pay attention to the possibility that some character after ENDPOS
5726 will be composed with charactrs before ENDPOS.
5727
1c409d0b
CY
57282010-08-24 Chong Yidong <cyd@stupidchicken.com>
5729
5730 * keyboard.c (command_loop_1): Don't clobber primary selection
5731 during handle-switch-frame (Bug#6872).
5732
0c372655
MA
57332010-08-23 Michael Albinus <michael.albinus@gmx.de>
5734
5735 * dbusbind.c: Accept UNIX domain sockets as bus address.
5736 (Fdbus_close_bus): New function.
5737 (Vdbus_registered_buses): New variable.
5738 (xd_initialize): Implement string as bus address.
5739 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5740 (Fdbus_get_unique_name, Fdbus_call_method)
5741 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5742 (Fdbus_method_error_internal, Fdbus_send_signal)
5743 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
5744 check. This is done in xd_initialize_bus. Adapt doc string, if
5745 necessary.
5746 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
5747 Vdbus_registered_buses.
5748 (Vdbus_registered_objects_table): Create hash.
5749
7133b7ee
JL
57502010-08-22 Juri Linkov <juri@jurta.org>
5751
5752 * keyboard.c (Fexecute_extended_command): Move reading a command name
5753 with `completing-read' to a new Elisp function `read-extended-command'.
5754 Call it to read a command to `function' (bug#5364, bug#5214).
5755
198a7a97
CY
57562010-08-22 Chong Yidong <cyd@stupidchicken.com>
5757
5758 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
5759
b0126eac 57602010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
5761
5762 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
5763 instead of SAFE_ALLOCA.
5764
b0126eac 57652010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
5766
5767 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
5768 (Bug#6214).
5769
b0126eac 57702010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
5771
5772 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
5773
b0126eac
CY
57742010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5775
5776 * doc.c (Fsnarf_documentation): Initialize skip_file before
5777 build-files test.
5778
692f3ddc 57792010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 5780
692f3ddc
JB
5781 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
5782 New definitions.
b0126eac
CY
5783 (HAVE_TERMIO): Remove.
5784
5f2f0bc1
EZ
57852010-08-22 Eli Zaretskii <eliz@gnu.org>
5786
b613941b
EZ
5787 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
5788
a583bbef
EZ
5789 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
5790 for w32.
5791
5792 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
5793 it's done in nt/config.nt.
5794
5795 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
5796
5f2f0bc1
EZ
5797 * unexcoff.c (report_error, make_hdr, write_segment)
5798 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
5799 Convert argument lists and prototypes to ANSI C.
5800 (make_hdr, write_segment): Remove unused variables.
5801 (unexec): Remove commented-out line. Initialize `new' to shut up
5802 compiler warnings.
5803
a7ebc409
DN
58042010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
5805
5806 Simplify termio code.
5807 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
5808 HAVE_TERMIO code is obsolete.
5809 Replace HAVE_TERMIOS conditionals with !DOS_NT.
5810 * systty.h: Do not define HAVE_TCATTR.
5811 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
5812 Do not define EMACS_HAVE_TTY_PGRP. Only define
5813 EMACS_GET_TTY_PGRP for !DOS_NT.
5814 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
5815 sys/ioctl.h and termios.h, systty.h does it.
5816 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
5817 (init_baud_rate): Remove HAVE_TERMIO code.
5818 (child_setup_tty): Remove HAVE_TERMIO code.
5819 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
5820 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
5821 (new_ltchars, new_tchars): Remove, unused.
5822 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
5823 code. Remove special casing for __mips__, it was a no-op.
5824 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
5825 (init_sys_modes): Remove HPUX special case.
5826 * process.c: Include stdlib.h unconditionally. Do not include
5827 fcntl.h, systty.h does it. Remove conditional code for
5828 HAVE_SERIAL, it is always true.
5829 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
5830 always true when SIGNALS_VIA_CHARACTERS is true.
5831 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
5832 !WINDOWSNT means HAVE_TERMIOS.
5833 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
5834 conditional, which is true for all HAVE_TERMIOS systems.
5835 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
5836 instead of HAVE_TERMIOS.
5837 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
5838 EMACS_HAVE_TTY_PGRP.
5839 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
5840 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
5841 anyway.
5842
914f049b 58432010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
5844
5845 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
5846 mirroring pixel positions.
5847
d931da8c
DN
58482010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
5849
b5c76d0c
DN
5850 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
5851 write only.
5852 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
5853 malloc_sbrk_used, nothing uses them.
5854
74815588
DN
5855 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
5856 defined, unconditionally defined in lisp.h.
5857
f5817d1c
DN
5858 * term.c: Do not include <termios.h>, systty.h does it.
5859
d931da8c
DN
5860 * s/unixware.h (HAVE_TCATTR):
5861 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
5862 systty.h defines it when HAVE_TERMIOS is defined.
5863
ff2de6d2 58642010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 5865
b43c883c 5866 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 5867 terminals: add one-character offset for R2L lines.
b43c883c 5868
491a1546
EZ
5869 * emacs.c <emacs_version>: Add a comment regarding
5870 msdos/mainmake.v2's dependency on the syntax of this declaration.
5871
2396cbba
EZ
58722010-08-20 Eli Zaretskii <eliz@gnu.org>
5873
5874 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
5875 position for R2L lines by mirroring the pixel position wrt the
5876 text are box. Improve commentary.
5877
7df6150a
AS
58782010-08-20 Andreas Schwab <schwab@linux-m68k.org>
5879
5880 * image.c (imagemagick_clear_image): Remove debugging output.
5881
a2e5caf7
SM
58822010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5883
5884 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
5885 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
5886 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
5887 self-insert-face.
5888 (syms_of_cmds): Initialize the new vars.
5889
20d60baf
JR
58902010-08-19 Jason Rumney <jasonr@gnu.org>
5891
cc477da7
JR
5892 * w32menu.c (set_frame_menubar): Remove call to undefined function.
5893
20d60baf
JR
5894 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
5895
2c0ac867
J
58962010-08-19 Jan Djärv <jan.h.d@swipnet.se>
5897
5898 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
5899
93352106
EZ
59002010-08-18 Eli Zaretskii <eliz@gnu.org>
5901
5902 * xterm.c (x_draw_bar_cursor):
5903 * w32term.c (x_draw_bar_cursor): If the character under cursor is
5904 R2L, draw the bar cursor on its right rather than on its left.
5905
c785836d
SM
59062010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
5907
0193499f
SM
5908 * eval.c (Fdefmacro): Only obey one declaration.
5909
c785836d
SM
5910 * casefiddle.c (casify_region): Setup gl_state.
5911
9cb728a5
J
59122010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5913
5914 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
5915
e1e18511
J
59162010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5917
1d77b63e 5918 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 5919
64cb6c78
J
59202010-08-18 David De La Harpe Golden <david@harpegolden.net>
5921
5922 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
5923 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
5924 QPRIMARY => NXPrimaryPboard.
5925 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
5926 NXPrimaryPboard => QPRIMARY.
5927 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
5928 NXSecondaryPboard = SecondarySelection.
5929 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
5930
0c9b8993
GM
59312010-08-18 Joakim Verona <joakim@verona.se>
5932
5933 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
5934 defined:
5935 (imagemagick_image_p): New function to test for ImageMagic image.
5936 (imagemagick_load): New function to load ImageMagick image.
5937 (imagemagick_load_image): New function, helper for imagemagick_load.
5938 (imagemagick-types): New function.
5939 (Qimagemagick): New Lisp_object.
5940 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 5941
c3554f68
SM
59422010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
5943
5944 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
5945 is a string.
5946
1ff2e434
J
59472010-08-17 Jan Djärv <jan.h.d@swipnet.se>
5948
5949 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
5950 x_set_tool_bar_position handler.
5951
0cc56427
EZ
59522010-08-17 Eli Zaretskii <eliz@gnu.org>
5953
5954 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
5955 x_set_tool_bar_position handler, needed to support changes from
5956 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
5957
e45a249b
JD
59582010-08-16 Jan Djärv <jan.h.d@swipnet.se>
5959
2f8f196d 5960 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
921242c6 5961 declaration (Bug#6863).
573d150b 5962 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 5963
e45a249b
JD
5964 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
5965
5966 * keyboard.h (QPRIMARY): Declare (Bug#6864).
5967
7c23dd44
CY
59682010-08-16 Chong Yidong <cyd@stupidchicken.com>
5969
5970 * keyboard.c (command_loop_1): Avoid setting selection twice,
5971 since it's done in deactivate-mark as well.
5972 (Vselect_active_regions): Change default to t. Replace `lazy'
5973 with non-default value `only', meaning only set PRIMARY for
5974 temporarily active regions.
5975
5976 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
5977 select-active-regions.
5978
0005830c
J
59792010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5980
5981 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
5982 isn't a string.
5983
603dfc72
AS
59842010-08-15 Andreas Schwab <schwab@linux-m68k.org>
5985
5986 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
5987
c25ce9d0
J
59882010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5989
c3554f68
SM
5990 * keyboard.c (parse_tool_bar_item): malloc buf.
5991 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
5992 new_lbl (Bug#6855).
c25ce9d0 5993
5872c762
EZ
59942010-08-14 Eli Zaretskii <eliz@gnu.org>
5995
b236615c
EZ
5996 * xterm.c (x_draw_stretch_glyph_string):
5997 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
5998 the cursor on the right edge of the stretch glyph.
5999
c3554f68
SM
6000 * xdisp.c (window_box_right_offset, window_box_right):
6001 Fix commentary.
b236615c 6002
5872c762
EZ
6003 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
6004 direction when point is inside a run of whitespace characters.
6005
6006 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
6007
e66f9a1b
JR
60082010-08-14 Jason Rumney <jasonr@gnu.org>
6009
6010 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
6011
79d6f59e
CY
60122010-08-14 Chong Yidong <cyd@stupidchicken.com>
6013
6014 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
6015
1c9b4129
JR
60162010-08-13 Jason Rumney <jasonr@gnu.org>
6017
6018 * w32menu.c (simple_dialog_show): Use unicode message box if available.
6019 (MessageBoxW_Proc): New function typedef.
6020 (unicode-message-box): New function pointer.
2f8f196d 6021 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1c9b4129 6022
2b4e6277
J
60232010-08-13 Jan Djärv <jan.h.d@swipnet.se>
6024
6025 * frame.h (Qtool_bar_position): Declare.
6026
6027 * xfns.c (Fx_create_frame): Call x_default_parameter for
6028 Qtool_bar_position.
6029
94c97d85
EZ
60302010-08-13 Eli Zaretskii <eliz@gnu.org>
6031
8ee81892
EZ
6032 * unexcoff.c: Remove the parts used when "emacs" is not defined.
6033 (report_error, report_error_1): Ditto.
6034 (write_segment): Remove "#if 0" unused code.
6035 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
6036 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
6037 (start_of_text): Remove unused function (was used only if NO_REMAP
6038 was NOT defined).
6039
891ef8f7
EZ
6040 * msdos.c (IT_set_face): Fix format string to match argument
6041 types.
6042 (IT_write_glyphs, IT_note_mode_line_highlight)
6043 (IT_set_frame_parameters): Remove unused variables.
6044 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
6045 (IT_set_terminal_modes): Disambiguate expression in if clause.
6046 (Fmsdos_remember_default_colors): Return Qnil.
6047 (IT_set_frame_parameters): Add parens to disambiguate boolean
6048 expression for logging the cursor type to termscript.
6049 (keyboard_layout_list, keypad_translate_map)
6050 (grey_key_translate_map): Add braces in inner initializers.
6051 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
6052 (dos_rawgetc): Remove unused label.
6053 (XMenuActivate): Add braces to remove ambiguous `else'.
6054 (dos_ttraw): Always return a value.
6055 (spawnve): Declare.
6056 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
6057
6058 * dosfns.h (x_set_title): Declare.
6059
6060 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
6061 Remove unused variables.
6062
6063 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
6064 variables.
6065 (init_dosfns): Declare get_lim_data.
6066 (system_process_attributes): Declare Fget_internal_run_time.
6067
38e41e0e
EZ
6068 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
6069 list to be consistent with menu.h.
6070
94c97d85
EZ
6071 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
6072 warnings due to mixing of "char *" and "const char *".
6073
c5683ceb
SM
60742010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6075
6076 Introduce a new comment style "c" flag.
6077 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
6078 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
6079 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
6080 (syntax_prefix_flag_p): New function.
6081 (Fstring_to_syntax): Understand new "c" flag.
6082 (Finternal_describe_syntax_value): Recognize new flag; use the
6083 SYNTAX_FLAGS_* macros.
6084 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
6085 comment style to accomodate the new styles.
6086 (back_comment, forw_comment, Fforward_comment, scan_lists)
6087 (scan_sexps_forward): Update code to obey the new comment style flag.
6088
6089 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
6090
6091 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
6092
7aee76f4
J
60932010-08-11 Jan Djärv <jan.h.d@swipnet.se>
6094
3a46642b
J
6095 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
6096 first.
94dff98f 6097 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
6098
6099 * gtkutil.h (xg_check_special_colors): Declare.
6100
6101 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
6102 (xg_create_frame_widgets): Connect theme name changes to
6103 style_changed_cb.
6104
42ca4633
J
6105 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
6106 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
6107 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 6108 string literal. file is const char*.
42ca4633
J
6109
6110 * xsmfns.c (NOSPLASH_OPT): Change to char[].
6111 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
6112 props. Free them at the end.
6113
6114 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
6115
c5683ceb
SM
6116 * xrdb.c (get_system_app): Make path const and use char *p for
6117 non-const char.
42ca4633
J
6118
6119 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 6120 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
6121 char *.
6122 (button_names): Is const char *.
6123 (xdialog_show): error_name and pane_string is const.
6124
6125 * process.h (synch_process_death): Is const char*.
6126
6127 * w32menu.c (w32_menu_show):
6128 * nsmenu.m (ns_menu_show): error parameter is const char **.
6129
6130 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
6131 is const char **.
6132
6133 * menu.c (Fx_popup_menu): error_name is const.
6134
6135 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
6136 with unsigned char and XtPointer with void *.
6137
6138 * gtkutil.h: Replace widget_value with struct _widget_value.
6139 (enum button_type, struct _widget_value): Remove and use the one from
6140 keyboard.h.
6141
6142 * gtkutil.c (get_utf8_string): Always return an allocated string.
6143 Parameter is const.
6144 (create_dialog, xg_create_one_menuitem, create_menus)
6145 (xg_item_label_same_p, xg_update_menu_item): Free result from
6146 get_utf8_string.
6147 (xg_separator_p, xg_item_label_same_p): label is const.
6148
6149 * font.h (font_open_by_name): Make name const.
6150
6151 * font.c (font_open_by_name): Make name const.
6152
6153 * floatfns.c (matherr): Use a const char* variable for x->name.
6154
6155 * emacs.c (main): Pass char[] to putenv instead of literal.
6156
6157 * callproc.c (synch_process_death): Make const.
6158 (Fcall_process): Make signame const.
6159
9c5bd55a
J
6160 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
6161 (addDisplayItemWithImage): Use const char*.
6162
6163 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
6164 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
6165
6166 * nsfont.m (ns_descriptor_to_entity): Use const char*.
6167
6168 * keyboard.h (_widget_value): name, value and key are const char*.
6169
7aee76f4
J
6170 * unexmacosx.c (unexec_error): Use const char *.
6171
09d93395
DN
61722010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6173
6174 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 6175 (font_parse_name, font_open_by_name):
09d93395 6176 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 6177 (font_parse_name, font_open_by_name): Remove const.
09d93395 6178
671d409f
AS
61792010-08-09 Andreas Schwab <schwab@linux-m68k.org>
6180
6181 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
6182 definition.
6183
6184 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
6185 * m/amdx86-64.h: Likewise.
6186 * m/arm.h: Likewise.
6187 * m/hp800.h: Likewise.
6188 * m/ia64.h: Likewise.
6189 * m/ibmrs6000.h: Likewise.
6190 * m/ibms390.h: Likewise.
6191 * m/intel386.h: Likewise.
6192 * m/iris4d.h: Likewise.
6193 * m/m68k.h: Likewise.
6194 * m/macppc.h: Likewise.
6195 * m/mips.h: Likewise.
6196 * m/sh3.h: Likewise.
6197 * m/sparc.h: Likewise.
6198 * m/template.h: Likewise.
6199 * m/vax.h: Likewise.
6200 * m/xtensa.h: Likewise.
6201 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
6202 WORDS_BIG_ENDIAN.
6203 * lisp.h: Likewise.
6204 * md5.c: Likewise.
6205 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
6206
8ea90aa3
DN
62072010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6208
6209 Use const char* instead of char*.
6210 Reduce the number of warnings with -Wwrite-strings.
6211 * xrdb.c (get_environ_db, get_system_name):
6212 * unexelf.c (find_section):
6213 * term.c (string_cost, string_cost_one_line, per_line_cost)
6214 (get_named_tty, init_tty):
6215 * sysdep.c (sys_subshell):
6216 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
6217 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
6218 * search.c (Freplace_match):
6219 * process.c (Fmake_network_process, send_process, init_process):
6220 * lread.c (Fload, init_lread):
6221 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
6222 * keyboard.c (parse_tool_bar_item, struct event_head):
6223 * gtkutil.h (xg_get_font_name):
6224 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
6225 (make_widget_for_menu_item, make_menu_item, create_menus)
6226 (xg_make_tool_item):
6227 * font.c (parse_matrix, font_parse_name):
6228 * floatfns.c (rounding_driver, float_error_fn_name):
6229 * filelock.c (get_boot_time_1, lock_file_1):
6230 * fileio.c (barf_or_query_if_file_exists, check_writable):
6231 * editfns.c (get_system_name, get_operating_system_release)
6232 (Fencode_time, Fset_time_zone_rule):
6233 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
6234 * buffer.c (defvar_per_buffer): Use const.
6235
7815fe19 62362010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 6237
692f3ddc 6238 * charset.c: Include <stdlib.h>.
7a84eee5
KH
6239 (struct charset_sort_data): New struct.
6240 (charset_compare): New function.
692f3ddc 6241 (Fsort_charsets): New function.
7a84eee5
KH
6242 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
6243
6244 * coding.c (decode_coding_iso_2022): Fix checking of dimension
6245 number in CTEXT extended segment.
6246
7815fe19 62472010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
6248
6249 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
6250 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
6251
7815fe19 62522010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
6253
6254 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
6255 (Fhash_table_size): Fix typos in docstrings.
6256 (Fmake_hash_table): Doc fix.
6257
7815fe19 62582010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
6259
6260 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
6261 Doc fix (bug#5625).
6262
7815fe19 62632010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
6264
6265 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
6266 the MSDOS definition.
6267
1b6d8cf0
DN
62682010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
6269
675e2c69
DN
6270 Use const char* instead of char*.
6271 * xterm.c (x_create_toolkit_scroll_bar):
6272 * xfont.c (xfont_list_pattern):
6273 * xfns.c (x_default_scroll_bar_color_parameter)
6274 (xic_create_fontsetname, x_default_font_parameter)
6275 (x_screen_planes):
6276 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
6277 (store_mode_line_string, decode_mode_spec, display_string):
6278 * menu.c (digest_single_submenu):
6279 * keymap.h (initial_define_key, initial_define_lispy_key):
6280 * keymap.c (initial_define_key, initial_define_lispy_key):
6281 * image.c (image_error, image_keyword):
6282 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
6283 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
6284 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
6285 (ftfont_list, ftfont_match):
6286 * frame.c (frame_parm_table):
6287 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6288 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6289 (font_add_log, font_deferred_log):
6290 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6291 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6292 (font_add_log, font_deferred_log):
6293 * emacs.c (argmatch):
6294 * dispextern.h (struct it):
6295 * coding.c (ENCODE_DESIGNATION):
6296 * charset.c (define_charset_internal): Use const.
6297
25717ca1
DN
6298 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
6299
c5683ceb
SM
6300 * xrdb.c: Remove include guard.
6301 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
6302 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
6303 realloc->xrealloc instead of using #defines.
6304
efb41e21
EZ
63052010-08-08 Eli Zaretskii <eliz@gnu.org>
6306
cd21226d 6307 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
6308 * editfns.c (Fline_beginning_position, Fline_end_position):
6309 State in the doc strings that start and end of line are in the
6310 logical order.
cd21226d 6311
efb41e21
EZ
6312 * xdisp.c (display_line): Move the handling of overlay arrow after
6313 the call to find_row_edges. (Bug#6699)
6314
746812d9
CY
63152010-08-07 Chong Yidong <cyd@stupidchicken.com>
6316
6317 * keyboard.c (command_loop_1):
6318 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
6319
9852377f
CY
63202010-08-07 Chong Yidong <cyd@stupidchicken.com>
6321
6322 * insdel.c (prepare_to_modify_buffer): Save active region text to
6323 Vsaved_region_selection.
6324
6325 * xselect.c (QPRIMARY): Move to keyboard.c.
6326
6327 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
6328 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
6329 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 6330
0e9c8657
JB
63312010-08-07 Juanma Barranquero <lekktu@gmail.com>
6332
6333 * alloc.c (lisp_malloc):
6334 * buffer.c (set_buffer_internal, set_buffer_internal_1):
6335 * charset.h (emacs_mule_charset):
6336 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
6337 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
6338 (bitch_at_user):
6339 * lisp.h (Fcheck_coding_system, Fget_text_property)
6340 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
6341 Remove duplicate declarations.
6342
648801d1
DN
63432010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6344
32bc6709
DN
6345 * process.c: Simplify include logic.
6346
3ef1d108
DN
6347 * keyboard.h (quit_char): Add declaration.
6348 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
6349 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
6350 Add declarations.
3ef1d108
DN
6351 * sysdep.c:
6352 * w32.c: Remove the above declarations.
6353
97ec208f
DN
6354 Remove extern declarations in .c files, .h files have them.
6355 * xterm.c:
6356 * xdisp.c:
97ec208f
DN
6357 * msdos.c:
6358 * image.c:
6359 * gtkutil.c:
6360 * fileio.c:
6361 * eval.c: Remove declarations.
6362
94eed851
DN
6363 * frame.c (frame_params): Make const.
6364
36e053eb
DN
6365 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
6366
0e843971
DN
6367 * emacs.c (emacs_copyright, emacs_version): Make static.
6368 (Vinitial_window_system, Vauto_save_list_file_name)
6369 (Vinhibit_redisplay): Remove declarations.
6370 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
6371 for AIX.
6372
648801d1
DN
6373 Use const for some arrays and functions.
6374 * xterm.h (xg_set_icon_from_xpm_data):
6375 * xfns.c (xg_set_icon_from_xpm_data):
6376 * term.c (fkeys):
6377 * keyboard.c (lispy_accent_keys, lispy_function_keys)
6378 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
6379 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
6380 (frame.c frame_parms):
6381 * emacs-icon.h (gnu_xpm_bits):
6382 * callint.c (callint_argfuns): Use const.
6383
8646d999
J
63842010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6385
6386 * sysdep.c: Move include term.h last of includes (Bug#6812).
6387
cb4545ad
EZ
63882010-08-06 Eli Zaretskii <eliz@gnu.org>
6389
6390 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
6391
6392 * msdos.c (IT_display_cursor): Log cursor position on termscript.
6393
6394 * .gdbinit (pgx): Display the avoid_cursor_p flag.
6395
da7e2be6
JB
63962010-08-06 Juanma Barranquero <lekktu@gmail.com>
6397
6398 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
6399
3d608a86
J
64002010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6401
7908fb60
J
6402 * xterm.h (x_get_focus_frame): Declare.
6403
6404 * keyboard.h (poll_for_input_1): Unconditionally declare.
6405
4094bf36
J
6406 * nsterm.h (x_set_menu_bar_lines): Declare.
6407
6408 * window.c: Don't include menu.h, it depends on lots of other .h-files.
6409
3d608a86
J
6410 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
6411
6412 * window.c: Include menu.h.
6413
6414 * unexmacosx.c (print_region_list, print_regions)
6415 (build_region_list, find_emacs_zone_regions)
6416 (unexec_regions_merge, read_load_commands, dump_it)
6417 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
6418
6419 * term.c: Check HAVE_SYS_IOCTL_H.
6420
686b968e 6421 * sysdep.c: Check HAVE_TERM_H.
3d608a86 6422
686b968e 6423 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
6424
6425 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
6426 (ns_ring_bell, ns_defined_color, hide_hourglass)
6427 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
6428 Convert to ANSI C prototypes.
6429 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
6430 before code.
6431
6432 * nsterm.h : Include sysselect.h.
6433 (x_sync, x_get_focus_frame, x_set_mouse_position)
6434 (x_set_mouse_pixel_position, x_make_frame_visible)
6435 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
6436 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
6437 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
6438 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 6439 Declare.
3d608a86
J
6440
6441 * nsmenu.m (popup_activated, name_is_separator)
6442 (syms_of_nsmenu): Convert to ANSI C prototypes.
6443 (runMenuAt): Prototypes and move declarations before code.
6444
6445 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
6446
6447 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
6448 prototypes.
6449
6450 * nsfns.m (have_menus_p, ns_display_info_for_name)
6451 (x_set_cursor_type, ns_appkit_version_str)
6452 (ns_appkit_version_int, ns_do_applescript)
6453 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
6454 (syms_of_nsfns): Convert to ANSI C prototypes.
6455
6456 * menu.h (x_set_menu_bar_line): Declare.
6457 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
6458
6459 * lisp.h (fmod_float): Declare.
6460
6461 * image.c (xpm_scan, xpm_make_color_table_v)
6462 (xpm_put_color_table_v, xpm_get_color_table_v)
6463 (xpm_make_color_table_h, xpm_put_color_table_h)
6464 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
6465 (xpm_load): Convert to ANSI C prototypes.
6466
6467 * emacs.c: Include nsterm.h if HAVE_NS.
6468
6469 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
6470
fce70521
DN
64712010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6472
6473 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
6474 subprocesses, only MSDOS does not define HAVE_SOCKETS.
6475 (socket_options): Use const char* for name.
6476
a11889ab
JB
64772010-08-06 Juanma Barranquero <lekktu@gmail.com>
6478
6479 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
6480
6481 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
6482 Don't declare xmalloc_widget_value and digest_single_submenu.
6483
6484 * w32font.c (Qlatin): Remove declaration.
6485
6486 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
6487
c95b508f 6488 * dired.c (compile_pattern): Restore declaration.
a11889ab 6489
6254cdda
DN
64902010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
6491
04bab72c
DN
6492 Remove extern declarations in .c files, .h files have them.
6493 * data.c:
6494 * dired.c:
6495 * editfns.c:
6496 * filelock.c:
6497 * fns.c:
6498 * font.c:
6499 * fontset.c:
6500 * frame.c:
6501 * fringe.c:
6502 * ftfont.c:
6503 * gtkutil.c:
6504 * indent.c:
6505 * keyboard.c:
6506 * keymap.c:
6507 * lread.c:
6508 * menu.c:
6509 * print.c:
6510 * search.c:
6511 * sound.c:
6512 * window.c:
6513 * xdisp.c:
6514 * xfaces.c:
6515 * xfns.c:
6516 * xfont.c:
6517 * xftfont.c:
6518 * xmenu.c:
6519 * xterm.c: Remove declarations.
6520
dff94ed5
DN
6521 Cleanup syssignal.h.
6522 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
6523 (main_thread): Move down to remove #ifdef.
6524 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
6525 Remove conditional definition following unconditional ones.
6526
99f3388e
DN
6527 * lisp.h: Remove HAVE_SHM code, unused.
6528 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
6529 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
6530 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
6531 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
6532 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
6533 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
6534 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
6535 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
6536 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
6537 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
6538 (Qwindow_scroll_functions, Vafter_load_alist)
6539 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
6540 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
6541 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
6542 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
6543 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
6544 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
6545 (initial_argv, last_nonmenu_event, load_in_progress)
6546 (noninteractive_need_newline, scroll_margin): Add declarations.
6547
bba3e508
SM
6548 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6549 Remove declarations, menu.h has them.
99f3388e
DN
6550 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
6551 (Vinput_method_function, Qinput_method_function)
6552 (Qevent_symbol_element_mask, last_event_timestamp):
6553 * dispextern.h (Voverflow_newline_into_fringe):
6554 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
6555 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
6556 (syms_of_w32font, syms_of_nsfont):
6557 * fontset.h (find_font_encoding, Qlatin):
6558 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
6559 (Vtool_bar_mode, set_frame_menubar):
6560 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
6561 * xterm.h (Qx_gtk_map_stock):
6562 * keymap.h (meta_prefix_char): Add declarations.
6563
9f5dd6f2
DN
6564 * term.c: Remove dead code.
6565
6254cdda
DN
6566 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
6567 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
6568 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
6569 which is what was there before BSD_PGRPS was removed.
6570
29cf3e20
EZ
65712010-08-05 Eli Zaretskii <eliz@gnu.org>
6572
6573 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
6574
6575 * unexcoff.c: Renamed from unexec.c.
6576
aaa0a19a
SM
65772010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
6578
6579 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
6580
8d1d9587
JB
65812010-08-03 Johan Bockgård <bojohan@gnu.org>
6582
6583 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 6584 (Bug#6744)
8d1d9587 6585
9a747ba6
JD
65862010-08-02 Jan Djärv <jan.h.d@swipnet.se>
6587
4d464ae4
JD
6588 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
6589 to TRUE if depth of screen is < 16.
6590
ac01763e
JD
6591 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
6592 USE_GTK_TOOLTIP.
e0d62a9b
JB
6593 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
6594 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 6595 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
6596 USE_GTK_TOOLTIP.
6597 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
6598
6599 * xterm.h (USE_GTK_TOOLTIP): New define.
6600 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6601
9a747ba6
JD
6602 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6603 to Control-D (Bug#6771).
6604
7b0815ba
JB
66052010-08-02 Juanma Barranquero <lekktu@gmail.com>
6606
6607 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6608 Wording by Drew Adams <drew.adams@oracle.com>.
6609
aa1859f5
J
66102010-08-01 Jan Djärv <jan.h.d@swipnet.se>
6611
6612 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6613 ttip_lbl.
6614
6615 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6616 calling gtk_widget_queue_draw.
6617 (x_free_frame_resources): Call xg_free_frame_widgets.
6618
6619 * xfns.c (x_gtk_use_system_tooltips): New variable.
6620 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6621 new gtkutil tooltip functions to show the tooltip.
6622 (Fx_hide_tip): Call xg_hide_tooltip.
6623 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6624
6625 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6626 (xg_show_tooltip, xg_hide_tooltip): Declare.
6627
6628 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
6629 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6630 New functions.
aa1859f5
J
6631 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
6632 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
6633 Remove code that is commented out.
6634
76417ef4
SM
66352010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
6636
6637 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6638
16041401
CY
66392010-07-31 Chong Yidong <cyd@stupidchicken.com>
6640
6641 * xselect.c (x_own_selection): Use list4.
6642
2c09a58f
DN
66432010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6644
6645 * buffer.c (Qwindow): Do not define, already defined in data.c.
6646 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
6647
59df9fdd 66482010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 6649
59df9fdd
JB
6650 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6651 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6652 * config.in: Undef HAVE_DIRENT_H.
1c97e857 6653 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 6654 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 6655
1b231651
DN
66562010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6657
6658 Rename s/usg5-4.h -> s/usg5-4-common.h.
6659 * s/usg5-4.h: Rename file to ...
6660 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6661 * s/unixware.h:
6662 * s/sol2-6.h:
6663 * s/irix6-5.h: Update includes accordingly.
6664
bfeabdc3
JD
66652010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6666
2ebf1083
J
6667 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6668
bfeabdc3 6669 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
6670 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6671 Remove toolbar_height.
6672 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
6673 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6674 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6675 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6676
6677 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6678
6679 * xfns.c (x_set_tool_bar_position): New function.
6680 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6681 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 6682 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
6683
6684 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6685 and FRAME_TOOLBAR_LEFT_WIDTH.
6686
6687 * gtkutil.h (xg_change_toolbar_position): Declare.
6688
6689 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6690 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6691 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6692 (xg_create_frame_widgets): Create a hobox for placing widgets
6693 vertically. Use gtk_box_pack_start.
ef1b0ba7 6694 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
6695 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6696 (xg_update_frame_menubar, free_frame_menubar): Change to
6697 xg_height_or_width_changed.
6698 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6699 size correctly. Remove hardcoded 4, instead use handlebox size -
6700 toolbar size.
6701 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 6702 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
6703 (xg_pack_tool_bar): POS is a new parameter.
6704 Set orientation of tool bar based on pos.
6705 Only make handlebox_widget if NULL.
6706 Check if tool bar goes to vbox or hbox depending on pos.
6707 (xg_update_tool_bar_sizes): New function.
686b968e 6708 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
6709 height, call xg_update_tool_bar_sizes instead.
6710 (free_frame_tool_bar): Remove from hbox or vbox depending on
6711 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
6712 (xg_change_toolbar_position): New function.
6713
6714 * frame.h (struct frame): Add tool_bar_position.
6715 (Qbottom): Declare.
6716
6717 * frame.c (Qtool_bar_position): New variable.
6718 (make_frame): Set tool_bar_position to Qtop.
6719 (frame_parms): Add tool-bar-position.
6720 (x_report_frame_params): Store tool_bar_position.
6721 (x_set_fringe_width): Reset wm size hint after fringe changes.
6722
26469a38
DN
67232010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6724
6725 Make lisp_time_argument declaration work on all systems.
6726 * lisp.h (lisp_time_argument): Move declaration ...
6727 * systime.h (lisp_time_argument): ... here
6728 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
6729
8848b728
JD
67302010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6731
6732 * vm-limit.c (POINTER): Add typedef for it.
6733 (start_of_data): Change return type from POINTER to char *.
6734
6735 * frame.h (Qtty_color_mode): Move declaration out of ifdef
6736 HAVE_WINDOW_SYSTEM.
6737
76fd1ee9
DN
67382010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6739
0441987e
DN
6740 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6741 Remove reference to __osf__, unused.
6742
56a000c7
DN
6743 * mem-limits.h: Remove duplicated includes.
6744 (NULL): Remove definition, unused.
6745 (POINTER): Remove definition.
6746 (start_of_data): Use char* in prototype, as the function
6747 definition does.
6748
e6cba650
DN
6749 Remove extern declarations from .c files, and them to .h files.
6750 * keyboard.h (Qhelp_echo, waiting_for_input)
6751 (input_available_clear_time, ignore_mouse_drag_p)
6752 (Vdouble_click_time, real_this_command, Vthis_original_command):
6753 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
6754 (Voverriding_local_map_menu_flag):
6755 * lisp.h (Qinteractive_form, use_file_dialog)
6756 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
6757 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
6758 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6759 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
6760 (Qfunction, debug_on_next_call, Qfield)
6761 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
6762 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
6763 (Qfile_directory_p, Qinsert_file_contents)
6764 (Qcompletion_ignore_case, Qcompletion_ignore_case)
6765 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
6766 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
6767 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
6768 (Qminibuffer_prompt)
6769 (Vtemporary_file_directory,char_ins_del_vector, Qface):
6770 * xterm.h (gray_bitmap_width, gray_bitmap_height)
6771 (gray_bitmap_bits, xic_create_fontsetname):
6772 * coding.h (Vtranslation_table_for_input): Add extern declarations.
6773
6774 * xsmfns.c (Vuser_login_name):
6775 * xrdb.c (Vdouble_click_time):
6776 * xfaces.c (xic_create_fontsetname):
6777 * w32select.c (waiting_for_input):
6778 * print.c (minibuffer_auto_raise):
6779 * msdos.c (Qhelp_echo):
6780 * macros.c (real_this_command):
6781 * keymap.c (Voverriding_local_map):
6782 * xterm.c (poll_for_input_1, gray_bitmap_width)
6783 (gray_bitmap_height, gray_bitmap_bits;
6784 * xmenu.c ( Voverriding_local_map)
6785 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
6786 (use_file_dialog, Xt_app_con):
6787 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
6788 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
6789 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
6790 (Qtool_bar_lines, ignore_mouse_drag_p):
6791 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
6792 (Qrear_nonsticky, nconc2):
6793 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
6794 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
6795 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
6796 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
6797 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
6798 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
6799 (gc_in_progress):
6800 * doc.c (Voverriding_local_map, Qremap):
6801 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
6802 (Vcompletion_regexp_list):
6803 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
6804 (Qcompletion_ignore_case):
6805 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
6806 (Vhistory_length, Vthis_original_command, real_this_command)
6807 (Qface, Qminibuffer_prompt, history_delete_duplicates):
6808 * image.c (Qrisky_local_variable):
6809 * fontset.c (QCname):
6810 * fns.c (minibuffer_auto_raise, QCname):
6811 * dispnew.c (char_ins_del_cost):
6812 * composite.c (font_fill_lglyph_metrics):
6813 * cmds.c (Qface, Vtranslation_table_for_input):
6814 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
6815 * ccl.c (charset_unicode):
6816 * callproc.c (Vtemporary_file_directory):
6817 * buffer.c (emacs_strerror): Remove extern declarations.
6818
6819 * data.c (Qwindow): Make non-static, used from other files too.
6820 * frame.c (validate_x_resource_name): Remove shadow definition for i.
6821
76fd1ee9
DN
6822 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
6823 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
6824 * s/usg5-4.h (COFF):
6825 * s/template.h:
6826 * s/msdos.h (COFF, NO_REMAP):
6827 * s/ms-w32.h (NO_REMAP):
6828 * s/hpux10-20.h (NO_REMAP):
6829 * m/sparc.h (SEGMENT_MASK):
6830 * m/m68k.h (NO_REMAP):
6831 * m/intel386.h (SEGMENT_MASK):
6832 * m/arm.h (NO_REMAP):
6833 * m/alpha.h (COFF):
6834 * m/template.h: Remove references to unused defines.
6835
8a52f00a
JD
68362010-07-28 Jan Djärv <jan.h.d@swipnet.se>
6837
6838 * xsettings.c (Ftool_bar_get_system_style): Also check for
6839 Qtext_image_horiz.
6840
6841 * xdisp.c (Qtext_image_horiz): Define.
6842 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 6843 to documentation of tool-bar-style.
8a52f00a
JD
6844
6845 * lisp.h (Qtext_image_horiz): Declare.
6846
6847 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
6848 style text_image_horiz.
6849
89dc303e
DN
68502010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6851
60799703
DN
6852 * emacs.c (Fkill_emacs): Remove return statement.
6853
37254dc1
DN
6854 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
6855 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
6856 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
6857 Remove local extern declarations.
37254dc1 6858
71c7345a
DN
6859 * xmenu.c: Do not included lwlib.h, not needed.
6860
6ba577cb
DN
6861 * m/iris4d.h (XUINT, XSET): Remove, not needed.
6862
fdb183d6
DN
6863 * process.c: Move definitions earlier to minimize #ifdefs.
6864
6865 * xterm.h (x_get_customization_string, x_load_resources)
6866 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
6867 (x_check_errors, x_property_data_to_lisp, defined_color)
6868 (xic_set_xfontset, x_defined_color): Use const.
6869
6870 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
6871 (x_text_icon, x_check_errors, x_connection_closed): Use const.
6872
6873 * xselect.c (selection_data_to_lisp_data)
6874 (x_property_data_to_lisp):
6875 * xrdb.c (x_get_string_resource, file_p)
6876 (x_get_customization_string, magic_file_p, search_magic_path)
6877 (get_system_app, get_user_app, x_load_resources, x_get_resource)
6878 (x_get_string_resource): Use const.
6879
6880 * xfns.c: Include xlwmenu.h when USE_LUCID.
6881 (x_defined_color, xic_set_xfontset): Use const.
6882 (Fx_hide_tip): Remove local extern declaration.
6883
6884 * xfaces.c (Qmouse_face): Remove declaration.
6885 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 6886 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
6887
6888 * xdisp.c (do_mouse_tracking): Remove declaration.
6889 (add_to_log): Use const.
6890
6891 * minibuf.c (Qmouse_face): Remove declaration.
6892
6893 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
6894
6895 * keyboard.h (do_mouse_tracking): Add declaration.
6896
6897 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
6898 (QCdata, QCtype, Qcenter): Remove declarations.
6899
6900 * frame.c (x_get_resource_string, x_get_string_resource)
6901 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6902 (x_default_parameter): Use const.
6903
6904 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
6905 (QCheight, QCsize, QCname): Remove declarations.
6906
6907 * emacs.c (main): Remove local extern declaration.
6908
6909 * editfns.c (region_limit, syms_of_editfns): Remove local extern
6910 declarations.
6911
6912 * dispnew.c: Remove duplicate #include <unistd.h>.
6913 (update_window, update_frame_1, init_display): Remove local extern
6914 declarations.
6915
6916 * dispextern.h (add_to_log): Remove declaration.
6917 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6918 (x_frame_get_and_record_arg, x_default_parameter): Add const.
6919
6920 * dired.c (scmp): Add const.
6921 (directory_files_internal): Remove local extern declaration.
6922
6923 * data.c (Finteractive_form): Use const.
6924
6925 * composite.c (syms_of_composite): Remove local extern declarations.
6926
6927 * charset.c (add_to_log): Remove declaration.
6928
6929 * character.c (strwidth, parse_str_to_multibyte): Add const.
6930
6931 * character.h (strwidth, parse_str_to_multibyte): Likewise.
6932
6933 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
6934
89dc303e 6935 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
6936 (Lisp_Subr): Make doc and intspec constant.
6937 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
6938 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
6939 (QCheight, QCsize, QCname, QCwidth, QCforeground)
6940 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
6941 (display_arg): Add declarations.
89dc303e 6942
0ed082fe 69432010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
6944
6945 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
6946
0ed082fe
JB
6947 * window.c (Fwindow_height): Doc fix (bug#6518).
6948
69492010-07-27 Juanma Barranquero <lekktu@gmail.com>
6950
6951 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
6952
ccaf0336
DN
69532010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
6954
977105dc
DN
6955 * keyboard.c (Ftop_level, Fexit_recursive_edit)
6956 (Fabort_recursive_edit): Remove return statements in NO_RETURN
6957 functions.
6958
f5ada890
DN
6959 * frame.h (Qtty_color_mode): Add declaration.
6960
ccaf0336
DN
6961 * lisp.h (Ftop_level, Fexit_recursive_edit)
6962 (Fabort_recursive_edit): Mark as NO_RETURN.
6963
dfe3c90f
KH
69642010-07-26 Kenichi Handa <handa@m17n.org>
6965
6966 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 6967 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 6968
7d383292
JB
69692010-07-26 Juanma Barranquero <lekktu@gmail.com>
6970
6971 * lread.c (unreadpure, mapatoms_1): Make static.
6972
da31e629
JB
69732010-07-25 Juanma Barranquero <lekktu@gmail.com>
6974
6975 * terminfo.c (tparam): Fix prototype of tparm.
6976
7bfa6d77
AS
69772010-07-25 Andreas Schwab <schwab@linux-m68k.org>
6978
dcc19aac
AS
6979 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
6980 find start of text segment.
6981 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
6982 is defined.
6983
7bfa6d77
AS
6984 * callproc.c (set_initial_environment): Avoid unbalanced braces.
6985
63f9a672
KB
69862010-07-25 Ken Brown <kbrown@cornell.edu>
6987
6988 * vm-limit.c (check_memory_limits): Fix previous change;
6989 accidentally reverted an earlier change.
6990
24933075
KB
69912010-07-25 Ken Brown <kbrown@cornell.edu>
6992
6993 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
6994 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
6995
361358ea
JB
69962010-07-25 Juanma Barranquero <lekktu@gmail.com>
6997
6998 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
6999 * dired.c (opendir, readdir): Fix prototypes.
7000 * editfns.c (w32_get_internal_run_time): Fix prototypes.
7001 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
7002 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
7003 (telldir): Remove declaration.
7004 * ralloc.c (real_morecore, __morecore): Fix prototypes.
7005 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
7006 * syssignal.h (strsignal): Fix prototype.
7007 * term.c (tparam): Fix prototype.
7008 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
7009 (term_get_fkeys): Set inside "#ifndef DOS_NT".
7010 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
7011 and __morecore.
7012 * w32gui.h (XParseGeometry): Fix prototype.
7013 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
7014 * w32term.c (my_set_focus): Declare inside #if 0.
7015 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
7016 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
7017 (drain_message_queue, get_next_msg, post_msg, parse_button)
7018 (ClipboardSequence_Proc): Fix prototypes.
7019 (wait_for_sync): Remove declaration.
7020
630b9592
JB
70212010-07-24 Juanma Barranquero <lekktu@gmail.com>
7022
7023 * w32fns.c (w32_to_x_color): Remove, unused.
7024
6a0d6611
AS
70252010-07-24 Andreas Schwab <schwab@linux-m68k.org>
7026
7027 * lisp.h: Remove leftover P_.
7028
4e8608ff
DN
70292010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7030
7031 * ecrt0.c, unexalpha.c: Remove files, unused.
7032
c8197983
AS
70332010-07-24 Andreas Schwab <schwab@linux-m68k.org>
7034
7035 * cmds.c (internal_self_insert): Make static.
7036 * lisp.h (internal_self_insert): Remove declaration.
7037
97b372d7
JB
70382010-07-23 Juanma Barranquero <lekktu@gmail.com>
7039
33ac0414
JB
7040 * alloc.c (free_float):
7041 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
7042 * frame.c (delete_frame_handler):
7043 * ralloc.c (reorder_bloc):
7044 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
7045 Remove unused static functions.
7046
94da8397
JB
7047 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
7048 it is called only from NS code.
7049
2e6c8532
JB
7050 * w32term.c (my_set_focus): #ifdef away; it is called only from
7051 "#ifdef 0" code.
7052
97b372d7
JB
7053 * w32fns.c (x_edge_detection):
7054 * xfaces.c (may_use_scalable_font_p):
7055 Remove obsolete static declarations.
7056
7c3320d8
JB
70572010-07-20 Juanma Barranquero <lekktu@gmail.com>
7058
7059 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
7060 (emacs_blocked_realloc, uninterrupt_malloc):
7061 * fringe.c (w32_reset_fringes):
7062 * image.c (convert_mono_to_color_image, lookup_rgb_color)
7063 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
7064 * sound.c (be2hs, do_play_sound):
7065 * vm-limit.c (get_lim_data, ret_lim_data):
7066 * w32term.c (x_free_frame_resources):
7067 * xfaces.c (x_create_gc, x_free_gc):
7068 Convert definitions to standard C.
7069
d5273788
SM
70702010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
7071
7072 * eval.c (Feval, Ffuncall): Use the new names.
7073
7074 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
7075 (DEFUN): Add braces around the union initialisation and use ## to
7076 specify the right union alternative and avoid a cast.
7077
8d16a259
JB
70782010-07-18 Juanma Barranquero <lekktu@gmail.com>
7079
7080 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
7081
3b8eff32
CY
70822010-07-17 Chong Yidong <cyd@stupidchicken.com>
7083
7084 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
7085
499322ce
J
70862010-07-17 Jan Djärv <jan.h.d@swipnet.se>
7087
7088 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
7089 is related to the menu bar (Bug#6499).
a628ad9d 7090 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 7091
f6003da5 70922010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
7093
7094 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
7095
7096 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
7097
7098 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
7099 i.e. don't put back ButtonRelease (Bug#6608).
7100
7101 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
7102 instead of Window. Call xg_event_is_for_menubar when
7103 USE_GTK (Bug#6499).
7104
7105 * gtkutil.h (xg_event_is_for_menubar): Declare.
7106
7107 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
7108
f6003da5 71092010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
7110
7111 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
7112 when it's the same as the old foreground. (Bug#6609)
7113
23243f29
J
71142010-07-16 Jan Djärv <jan.h.d@swipnet.se>
7115
7116 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
7117 widget is non-null (Bug#6645).
7118
2b23d2a6
AS
71192010-07-15 Andreas Schwab <schwab@linux-m68k.org>
7120
01b564ff
AS
7121 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
7122 Convert old-style definition.
7123
2b23d2a6
AS
7124 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
7125 timestamp argument.
7126
c4affd2c
EZ
71272010-07-15 Eli Zaretskii <eliz@gnu.org>
7128
7129 * fringe.c (update_window_fringes): Restore mistakenly reverted
7130 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
7131
cf28cebc
J
71322010-07-14 Jan Djärv <jan.h.d@swipnet.se>
7133
7134 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
7135 (SET_SAVED_KEY_EVENT): Remove (not used).
7136 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
7137 remove size parameter.
7138 (handle_one_xevent): Check popup_activated () for menu for Xt also.
7139 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
7140 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
7141 ButtonRelease.
6b2c4bd9
J
7142 (x_set_window_size_1): scroll_bar_actual_width is always
7143 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
7144
7145 * xdisp.c (pending_menu_activation): Remove extern declaration.
7146 (prepare_menu_bars): Remove setting of pending_menu_activation.
7147
7148 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
7149 (x_activate_menubar): Set popup_activated_flag for Xt also.
7150 Remove setting of pending_menu_activation.
cf28cebc
J
7151 (set_frame_menubar): Remove check of pending_menu_activation.
7152 Declare menubar_size before code. Correct spelling in comment.
7153
f6c1c771
KH
71542010-07-14 Kenichi Handa <handa@m17n.org>
7155
7156 * font.c (font_open_entity): Cancel previous change.
7157 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
7158
20477505
EZ
71592010-07-13 Eli Zaretskii <eliz@gnu.org>
7160
77defa9a
EZ
7161 Remove subprocesses #ifdefs.
7162 * process.c <inhibit_sentinels>: Move to the common part.
7163 (Fwaiting_for_user_input_p): Move to the common part; return nil
7164 if async subprocesses aren't supported.
7165 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
7166 MS-DOS. Remove "#ifdef subprocesses".
7167 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
7168 (gettimeofday): Remove "#ifdef subprocesses".
7169 (wait_without_blocking): Remove function.
7170 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
7171 Remove "#ifdef subprocesses".
7172 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
7173 compiled on MS-DOS.
7174 * callproc.c (Fcall_process) [!MSDOS]: Don't call
7175 wait_for_termination on MS-DOS.
7176 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
7177 initialization of inhibit_sentinels.
7178 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
7179 subprocesses" conditional.
7180 * callproc.c (Fcall_process) [!subprocesses]: Don't call
7181 wait_for_termination, since `buffer' cannot be an integer when
7182 async subprocesses are not supported
7183 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
7184 for ifdefing away the call to Fprocess_status.
7185
20477505
EZ
7186 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
7187 away the entire body of the function.
7188
b3ffc17c
DN
71892010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7190
01faa934
DN
7191 Remove subprocesses #ifdefs from term.c.
7192 * process.c (add_keyboard_wait_descriptor)
7193 (delete_keyboard_wait_descriptor): Move to common section, do
7194 nothing when subprocesses is not defined.
a628ad9d
JB
7195 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
7196 Remove subprocesses #ifdefs.
01faa934 7197
b3ffc17c
DN
7198 Convert maybe_fatal to standard C.
7199 * lisp.h (verror): Declare.
7200 * eval.c (verror): New function containing the code from ...
7201 (error): ... this. Call verror.
7202 * term.c (vfatal): New function containing the code from ...
7203 (fatal): ... this. Call vfatal.
7204 (maybe_fatal): Convert to standard C, use variable number of
7205 arguments. Declare as non-return.
7206 (init_tty): Fix maybe_fatal call.
7207
0521f580
DN
72082010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7209
7210 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
7211 (_scroll_bar_note_movement): Convert definitions to standard C.
7212 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
7213 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
7214
ebd15611
DN
72152010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7216
7217 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
7218 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
7219 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
7220 (xaw_jump_callback, xaw_scroll_callback)
7221 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
7222 (x_wm_set_size_hint, x_activate_timeout_atimer):
7223 Convert definitions to standard C.
ebd15611
DN
7224 * xmenu.c (menubar_id_to_frame, popup_get_selection)
7225 (popup_activate_callback, popup_deactivate_callback)
7226 (menu_highlight_callback, menubar_selection_callback)
7227 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
7228 (free_frame_menubar, popup_selection_callback, as)
7229 (create_and_show_popup_menu, dialog_selection_callback)
7230 (create_and_show_dialog):
7231 * xfns.c (hack_wm_protocols, x_window):
7232 * xfaces.c (x_update_menu_appearance):
7233 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
7234 (char_to_pixel_size, round_size_to_char, get_wm_shell)
7235 (set_frame_size, update_wm_hints, setup_frame_gcs)
7236 (update_various_frame_slots, update_from_various_frame_slots)
7237 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
7238 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
7239 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
7240
de06a2dd
AS
72412010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7242
a628ad9d 7243 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 7244
fc549af9
EZ
72452010-07-12 Eli Zaretskii <eliz@gnu.org>
7246
7247 * process.c (setup_process_coding_systems): Move to the part
7248 shared by non-subprocesses systems, and make its body empty when
7249 subprocesses is not defined.
7250 (close_process_descs): Move to the part shared by non-subprocesses
7251 systems.
1408902e
EZ
7252 (wait_reading_process_output) [!subprocesses]: Convert arg list to
7253 ANSI C.
fc549af9 7254
d5a3eaaf
AS
72552010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7256
7257 * editfns.c (transpose_markers): Convert old-style definition.
7258 * emacs.c (abort, shut_down_emacs, fixup_locale)
7259 (synchronize_system_time_locale)
7260 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
7261 * floatfns.c (extract_float, matherr, init_floatfns)
7262 (syms_of_floatfns): Likewise.
7263 * fns.c (make_hash_table): Likewise.
7264 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
7265 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
7266 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
7267 (ftfont_variation_glyphs): Likewise.
7268 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
7269 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
7270 * lread.c (read_filtered_event): Likewise.
7271 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
7272 * process.c (wait_reading_process_output): Likewise.
7273 * scroll.c (do_line_insertion_deletion_costs): Likewise.
7274 * search.c (search_buffer, boyer_moore): Likewise.
7275 * syntax.c (scan_sexps_forward): Likewise.
7276 * xdisp.c (try_scrolling): Likewise.
7277 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
7278 (face_at_string_position): Likewise.
7279 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
7280 * xselect.c (x_get_window_property, receive_incremental_selection)
7281 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
7282 Likewise.
7283 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
7284
6f704c76
DN
72852010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7286
ded80a25
DN
7287 * callproc.c (child_setup): Remove subprocesses conditional.
7288 Remove code dealing with SET_EMACS_PRIORITY, unused.
7289
49d937f4 7290 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
7291 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
7292
7293 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
7294 (__do_global_dtors, __main): Use void in definition.
7295 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
7296 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
7297 the only users from ...
7298 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
7299 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
7300 (HAVE_VOLATILE): Remove, unused.
7301
6f704c76
DN
7302 Convert more function definitions to standard C.
7303 * xdisp.c (window_box_edges, handle_single_display_spec)
7304 (display_string): Convert definition to standard C.
7305 * scroll.c (do_direct_scrolling, scrolling_1):
7306 * dispnew.c (allocate_matrices_for_frame_redisplay)
7307 (mirrored_line_dance):
7308 * coding.c (code_convert_string):
7309 * charset.c (map_charset_chars):
7310 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
7311 (Fregister_ccl_program, Fregister_code_conversion_map):
7312 * keyboard.c (kbd_buffer_nr_stored): Likewise.
7313 (head_table): Make static and const.
7314
e6cfa7c3
AS
73152010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7316
7317 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
7318 (PROFILING_LDFLAGS): Set from substitution.
7319 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
7320 CFLAGS last.
7321
892dd565
KH
73222010-07-12 Kenichi Handa <handa@m17n.org>
7323
6f2cdcd1
KH
7324 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
7325 (shortlisp): Likewise.
7326
892dd565
KH
7327 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
7328
7329 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
7330 of FONT_ENTITY_INDEX.
7331 (Ffont_get): If KEY is :otf and the font-object doesn't have the
7332 property, get the property value dynamically.
7333 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 7334 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 7335 return value changed.
bba3e508 7336 (syms_of_font): Adjust for the above change.
892dd565 7337
ae96d47a
AS
73382010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7339
c8fc18ee
AS
7340 * blockinput.h: Remove obsolete comment.
7341
89887d67
AS
7342 * lisp.h: Include <stddef.h>.
7343 (OFFSETOF): Don't define.
7344 (VECSIZE): Use offsetof instead of OFFSETOF.
7345 (PSEUDOVECSIZE): Likewise.
7346 * process.c (conv_sockaddr_to_lisp): Likewise.
7347 * alloc.c: Don't include <stddef.h>.
7348 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
7349
ae96d47a
AS
7350 * process.c: Remove obsolete comment.
7351
635c0aa1
CY
73522010-07-11 Chong Yidong <cyd@stupidchicken.com>
7353
7354 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
7355
a64df650
AS
73562010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7357
8966b757
AS
7358 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
7359 index, rindex.
7360 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
7361 * editfns.c (Fuser_full_name, Fformat): Likewise.
7362 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
7363 * fileio.c (Ffile_symlink_p): Likewise.
7364 * filelock.c (current_lock_owner): Likewise.
7365 * font.c (font_parse_name, font_parse_family_registry): Likewise.
7366 * fontset.c (fontset_pattern_regexp): Likewise.
7367 * lread.c (read1): Likewise.
7368 * sysdep.c (init_system_name): Likewise.
7369 * xfns.c (select_visual): Likewise.
7370 * s/hpux10-20.h (index, rindex): Don't define.
7371 * s/ms-w32.h (index): Likewise.
7372 * s/usg5-4.h: Likewise.
7373
cf237e27
AS
7374 * callproc.c (relocate_fd): Use F_DUPFD if defined.
7375
a8fe7202
AS
7376 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
7377 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
7378 (egetenv): Likewise.
7379 * doprnt.c (doprnt): Likewise.
7380 * editfns.c (set_time_zone_rule, format2): Likewise.
7381 * emacs.c (decode_env_path): Likewise.
7382 * eval.c (signal_error, error): Likewise.
7383 * insdel.c (replace_range_2): Likewise.
7384 * keyboard.c (cmd_error_internal): Likewise.
7385 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
7386 * print.c (write_string, write_string_1, print_error_message):
7387 Likewise.
7388 * vm-limit.c (warn_function, memory_warnings): Likewise.
7389 * xdisp.c (message1, message1_nolog, message_with_string)
7390 (vmessage, message, message_nolog): Likewise.
7391 * emacs.c: Remove duplicate declaration.
7392 * keyboard.h: Likewise.
7393 * lisp.h: Update prototypes.
7394
bb8e180f
AS
7395 * eval.c: Fix indentation problem.
7396
01c35094 7397 * keyboard.c: Include "process.h".
83380e65 7398
a64df650
AS
7399 * eval.c: Remove obsolete noinline declaration.
7400 * fns.c: Likewise.
7401
6a8033e1
KR
74022010-07-11 Ken Raeburn <raeburn@raeburn.org>
7403
7404 * doprnt.c (doprnt): Take a va_list argument instead of count and
7405 pointer.
7406 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 7407 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
7408 changed to take a va_list argument.
7409 (message): New variadic wrapper.
7410 (message_nolog): Now a variadic function, calling vmessage.
7411 * lisp.h: Include stdarg.h for va_list.
7412 (doprnt, error, message, message_nolog): Decls updated.
7413
462aa963
EZ
74142010-07-11 Eli Zaretskii <eliz@gnu.org>
7415
7416 * process.c (syms_of_process) <delete-exited-processes>: Define
7417 even if !subprocesses.
7418 (delete_exited_processes): Ditto.
7419
7420 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
7421 (delete_exited_processes): Don't define.
7422
48104462
CY
74232010-07-10 Chong Yidong <cyd@stupidchicken.com>
7424
7425 * frame.c (make_frame): Initialize menu_bar_lines and
7426 tool_bar_lines members.
bba3e508
SM
7427 (make_initial_frame, make_terminal_frame):
7428 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
7429
7430 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
7431
f388c88a
EZ
74322010-07-10 Eli Zaretskii <eliz@gnu.org>
7433
7434 * process.c: Reshuffle #include's. Condition some of the global
7435 and static variables on `subprocesses'.
7436 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7437 Leave only one implementation.
7438 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
7439 (kill_buffer_processes, Flist_system_processes)
7440 (Fprocess_attributes, init_process, syms_of_process): Unify the
7441 implementations for with subprocesses and without them.
7442
723f5a07
J
74432010-07-09 Jan Djärv <jan.h.d@swipnet.se>
7444
7445 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
7446 correct size for Motif.
7447 (free_frame_menubar): Call x_set_window_size to update frame size.
7448
7449 * xfns.c (x_window): Set borderWidth to 0 for pane and
7450 EmacsFrame. Frame size calculation is wrong otherwise.
7451
2536a4b7
MA
74522010-07-09 Michael Albinus <michael.albinus@gmx.de>
7453
7454 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
7455 allows to suppress errors when polling in Emacs' main loop.
7456 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
7457 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
7458 (Fdbus_method_error_internal, Fdbus_send_signal)
7459 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
7460 (Fdbus_register_method): Use it. (Bug#6579)
7461
5842a27b
DN
74622010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7463
7464 * alloc.c: Convert DEFUNs to standard C.
7465 * buffer.c:
7466 * bytecode.c:
7467 * callint.c:
7468 * callproc.c:
7469 * casefiddle.c:
7470 * casetab.c:
7471 * category.c:
7472 * character.c:
7473 * charset.c:
7474 * chartab.c:
7475 * cmds.c:
7476 * coding.c:
7477 * composite.c:
7478 * data.c:
7479 * dbusbind.c:
7480 * dired.c:
7481 * dispnew.c:
7482 * doc.c:
7483 * dosfns.c:
7484 * editfns.c:
7485 * emacs.c:
7486 * eval.c:
7487 * fileio.c:
7488 * filelock.c:
7489 * floatfns.c:
7490 * fns.c:
7491 * font.c:
7492 * fontset.c:
7493 * frame.c:
7494 * fringe.c:
7495 * image.c:
7496 * indent.c:
7497 * insdel.c:
7498 * keyboard.c:
7499 * keymap.c:
7500 * lread.c:
7501 * macros.c:
7502 * marker.c:
7503 * menu.c:
7504 * minibuf.c:
7505 * msdos.c:
7506 * nsfns.m:
7507 * nsmenu.m:
7508 * nsselect.m:
7509 * print.c:
7510 * process.c:
7511 * search.c:
7512 * sound.c:
7513 * syntax.c:
7514 * term.c:
7515 * terminal.c:
7516 * textprop.c:
7517 * undo.c:
7518 * w16select.c:
7519 * w32console.c:
7520 * w32fns.c:
7521 * w32font.c:
7522 * w32menu.c:
7523 * w32proc.c:
7524 * w32select.c:
7525 * window.c:
7526 * xdisp.c:
7527 * xfaces.c:
7528 * xfns.c:
7529 * xmenu.c:
7530 * xselect.c:
7531 * xsettings.c:
7532 * xsmfns.c: Likewise.
7533
d568829b
EZ
75342010-07-08 Eli Zaretskii <eliz@gnu.org>
7535
7536 * process.c (kbd_is_on_hold, hold_keyboard_input)
7537 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
7538
52214050
J
75392010-07-08 Jan Djärv <jan.h.d@swipnet.se>
7540
7541 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
7542 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
7543 unless USE_LUCID.
7544
313d9eb2
DN
75452010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7546
a628ad9d
JB
7547 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
7548 declaration.
d8825aa3 7549
295d0d8f
DN
7550 Clean up include guards.
7551 * tparam.c: Remove include guards for config.h, string.h and code
7552 that assumes #ifndef emacs.
7553 * termcap.c:
7554 * unexalpha.c:
7555 * sysdep.c:
7556 * filemode.c:
7557 * filelock.c:
7558 * bidi.c: Likewise.
7559
49d9e6b0
DN
7560 Remove prefix-args.c
7561 * prefix-args.c: Remove file.
7562 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
7563 * Makefile.in (temacs${EXEEXT}): Remove references to
7564 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
7565 (mostlyclean): Remove reference to prefix-args.
7566 (prefix-args): Remove.
7567
313d9eb2
DN
7568 Simplify cstart_of_data, start_of_code and related code.
7569 * mem-limits.h: Remove !emacs and _LIBC conditional code.
7570 (start_of_data): Merge into start_of_data function.
7571 * sysdep.c (start_of_text): Remove. Move simplified versions of
7572 it in the only users: unexaix.c and unexec.c.
7573 (read_input_waiting): Remove local declaration of quit_char.
7574 (start, etext): Remove declarations.
7575 (start_of_data): Merge with the version in mem-limits.h and move
7576 to vm-limits.c.
7577 * vm-limit.c (start_of_data): Merged and simplified version of the
7578 code formerly in mem-limits.h and sysdep.c.
7579 * unexec.c (start): New declaration, moved from sysdep.c.
7580 (start_of_text): Simplified version of the code formerly in sysdep.c.
7581 * unexaix.c (start_of_text): Simplified version of the code
7582 formerly in sysdep.c.
7583 * m/alpha.h (HAVE_TEXT_START): Remove.
7584 (TEXT_START): Move ...
7585 * unexalpha.c (TEXT_START): ... here.
7586 * s/hpux10-20.h (TEXT_START): Remove.
7587 * s/darwin.h (TEXT_START):
7588 * m/mips.h (TEXT_START):
7589 * m/macppc.h (HAVE_TEXT_START):
7590 * m/m68k.h (TEXT_START):
7591 * m/iris4d.h (TEXT_START):
7592 * m/intel386.h (TEXT_START):
7593 * m/ibmrs6000.h (TEXT_START):
7594 * m/ia64.h (HAVE_TEXT_START):
7595 * s/msdos.h (TEXT_START): Likewise.
7596
72af86bd
AS
75972010-07-07 Andreas Schwab <schwab@linux-m68k.org>
7598
7599 * alloc.c (overrun_check_malloc, overrun_check_realloc)
7600 (overrun_check_free, xstrdup, allocate_string)
7601 (allocate_string_data, compact_small_strings, Fmake_string)
7602 (make_unibyte_string, make_multibyte_string)
7603 (make_string_from_bytes, make_specified_string, make_float)
7604 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7605 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7606 memcpy, memmove, memset, memcmp.
7607 * atimer.c (start_atimer, set_alarm): Likewise.
7608 * buffer.c (clone_per_buffer_values, report_overlay_modification)
7609 (mmap_realloc, init_buffer_once): Likewise.
7610 * callint.c (Fcall_interactively): Likewise.
7611 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7612 (getenv_internal_1): Likewise.
7613 * casefiddle.c (casify_object): Likewise.
7614 * ccl.c (ccl_driver): Likewise.
7615 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7616 * charset.c (load_charset_map_from_file)
7617 (load_charset_map_from_file, load_charset_map_from_vector)
7618 (Fdefine_charset_internal): Likewise.
7619 * cm.c (Wcm_clear): Likewise.
7620 * coding.c (decode_eol, decode_coding_object)
7621 (Fset_coding_system_priority, make_subsidiaries): Likewise.
7622 * data.c (Faset): Likewise.
7623 * dired.c (directory_files_internal, file_name_completion_stat):
7624 Likewise.
7625 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7626 (clear_glyph_row, copy_row_except_pointers)
7627 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7628 (save_current_matrix, restore_current_matrix)
7629 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7630 (mirror_line_dance, scrolling_window): Likewise.
7631 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7632 Likewise.
7633 * doprnt.c (doprnt): Likewise.
7634 * editfns.c (Fuser_full_name, make_buffer_string_both)
7635 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7636 * emacs.c (sort_args): Likewise.
7637 * eval.c (Fapply, Ffuncall): Likewise.
7638 * fileio.c (Ffile_name_directory, make_temp_name)
7639 (Fexpand_file_name, search_embedded_absfilename)
7640 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7641 (auto_save_error): Likewise.
7642 * fns.c (Fstring_equal, Fcopy_sequence, concat)
7643 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7644 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7645 (Fmake_hash_table): Likewise.
7646 * fringe.c (Fdefine_fringe_bitmap): Likewise.
7647 * ftfont.c (ftfont_text_extents): Likewise.
7648 * getloadavg.c (getloadavg): Likewise.
7649 * image.c (define_image_type, make_image, make_image_cache)
7650 (x_create_x_image_and_pixmap, xbm_image_p)
7651 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7652 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7653 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7654 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7655 (tiff_image_p, tiff_read_from_memory, gif_image_p)
7656 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7657 Likewise.
7658 * indent.c (scan_for_column, compute_motion): Likewise.
7659 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7660 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7661 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7662 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7663 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7664 (store_user_signal_events, menu_bar_items, tool_bar_items)
7665 (process_tool_bar_item, append_tool_bar_item)
7666 (read_char_minibuf_menu_prompt, read_key_sequence)
7667 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7668 Likewise.
7669 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7670 Likewise.
7671 * lisp.h (STRING_COPYIN): Likewise.
7672 * lread.c (Fload, read1, oblookup): Likewise.
7673 * msdos.c (Frecent_doskeys): Likewise.
7674 * nsfns.m (Fx_create_frame): Likewise.
7675 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7676 Likewise.
7677 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7678 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7679 Likewise.
7680 * nsmenu.m (ns_update_menubar): Likewise.
7681 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7682 * print.c (print_unwind, printchar, strout, print_string)
7683 (print_error_message): Likewise.
7684 * process.c (conv_lisp_to_sockaddr, set_socket_option)
7685 (Fmake_network_process, Fnetwork_interface_list)
7686 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7687 (init_process): Likewise.
7688 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7689 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7690 Likewise.
7691 * scroll.c (do_scrolling, do_direct_scrolling)
7692 (scrolling_max_lines_saved): Likewise.
7693 * search.c (search_buffer, wordify, Freplace_match): Likewise.
7694 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7695 * syntax.c (skip_chars, skip_syntaxes): Likewise.
7696 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7697 (emacs_set_tty): Likewise.
7698 * term.c (encode_terminal_code, calculate_costs)
7699 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
7700 Likewise.
7701 * termcap.c (tgetst1, gobble_line): Likewise.
7702 * termhooks.h (EVENT_INIT): Likewise.
7703 * tparam.c (tparam1): Likewise.
7704 * unexalpha.c (unexec): Likewise.
7705 * unexec.c (write_segment): Likewise.
7706 * unexmacosx.c (unexec_write_zero): Likewise.
7707 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
7708 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
7709 * w32font.c (w32font_list_family, w32font_text_extents)
7710 (w32font_list_internal, w32font_match_internal)
7711 (w32font_open_internal, compute_metrics, Fx_select_font):
7712 Likewise.
7713 * w32menu.c (set_frame_menubar, add_menu_item)
7714 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
7715 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
7716 * w32uniscribe.c (uniscribe_list_family): Likewise.
7717 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
7718 * window.c (make_window, replace_window, set_window_buffer)
7719 (Fsplit_window): Likewise.
7720 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7721 (add_to_log, message3, x_consider_frame_title)
7722 (append_space_for_newline, extend_face_to_end_of_line)
7723 (decode_mode_spec_coding, init_glyph_string): Likewise.
7724 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7725 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7726 (face_attr_equal_p, make_realized_face, make_face_cache)
7727 (free_realized_faces, lookup_named_face, smaller_face)
7728 (face_with_height, lookup_derived_face)
7729 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7730 (Finternal_set_font_selection_order, realize_default_face)
7731 (compute_char_face, face_at_buffer_position)
7732 (face_for_overlay_string, face_at_string_position, merge_faces):
7733 Likewise.
7734 * xfns.c (xic_create_fontsetname, Fx_create_frame)
7735 (Fx_window_property, x_create_tip_frame)
7736 (Fx_backspace_delete_keys_p): Likewise.
7737 * xfont.c (xfont_list, xfont_match, xfont_list_family)
7738 (xfont_text_extents): Likewise.
7739 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7740 * xrdb.c (magic_file_p, x_get_resource): Likewise.
7741 * xselect.c (x_queue_event, x_get_window_property)
7742 (receive_incremental_selection): Likewise.
7743 * xsmfns.c (x_session_check_input): Likewise.
7744 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7745 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7746 Likewise.
7747 * character.h (BCOPY_SHORT): Removed.
7748 * config.in: Regenerate.
7749 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
7750 * emacs.c (main) [PROFILING]: Don't declare
7751 dump_opcode_frequencies.
7752 * lisp.h (safe_bcopy): Remove declaration.
7753 (memset) [!HAVE_MEMSET]: Declare.
7754 (memcpy) [!HAVE_MEMCPY]: Likewise.
7755 (memmove) [!HAVE_MEMMOVE]: Likewise.
7756 (memcmp) [!HAVE_MEMCMP]: Likewise.
7757 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
7758 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
7759 Don't define.
7760 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
7761 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
7762 (BCOPY_DOWNWARD_SAFE): Don't define.
7763 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
7764 (memcpy) [!HAVE_MEMCPY]: Define.
7765 (memmove) [!HAVE_MEMMOVE]: Define.
7766 (memcmp) [!HAVE_MEMCMP]: Define.
7767
cb768704
J
77682010-07-07 Jan Djärv <jan.h.d@swipnet.se>
7769
7770 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
7771 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7772 New functions.
cb768704
J
7773 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
7774 select on empty input mask.
7775 (init_process): Initialize kbd_is_on_hold to 0.
7776
7777 * process.h (hold_keyboard_input, unhold_keyboard_input)
7778 (kbd_on_hold_p): Declare.
7779
7780 * keyboard.c (input_available_signal): Declare.
7781 (kbd_buffer_nr_stored): New function.
7782 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
7783 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
7784 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
7785 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
7786 (tty_read_avail_input): If input is on hold, return.
7787 Don't read more that free slots in kbd_buffer (Bug#6571).
7788
3a8ce822
EZ
77892010-07-07 Eli Zaretskii <eliz@gnu.org>
7790
7791 * msdos.h:
7792 * msdos.c:
7793 * dosfns.c:
7794 * w16select.c: Convert function definitions to ANSI C.
7795
a628ad9d
JB
7796 * msdos.h (ctrl_break_func, install_ctrl_break_check):
7797 Remove unused prototypes.
3a8ce822 7798
cf84bb53
JB
77992010-07-07 Juanma Barranquero <lekktu@gmail.com>
7800
7801 * coding.c, sysdep.c: Convert some more functions to standard C.
7802
1a4990fb
JB
78032010-07-07 Juanma Barranquero <lekktu@gmail.com>
7804
7805 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
7806 (encode_coding_object): Use SPECPDL_INDEX.
7807 (syms_of_coding): Use DOS_NT.
7808
c0f2f16b
DN
78092010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
7810
48fb6855
DN
7811 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
7812
c0f2f16b
DN
7813 Make the function member of Lisp_Subr use standard C prototypes.
7814 * lisp.h (struct Lisp_Subr): Use a union for the function member.
7815 (DECL_ALIGN): Add a cast for the function.
7816 * eval.c (Feval, Ffuncall): Use the proper type for each type
7817 function call.
7818
67aecef9
CY
78192010-07-06 Chong Yidong <cyd@stupidchicken.com>
7820
7821 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
7822 fringe face id, so face-remapping-alist works (Bug#6091).
7823
b56ceb92
JB
78242010-07-06 Juanma Barranquero <lekktu@gmail.com>
7825
7826 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
7827 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
7828 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
7829
7af07b96
AS
78302010-07-06 Andreas Schwab <schwab@linux-m68k.org>
7831
7832 * xterm.c (x_get_keysym_name): Change type of parameter to int.
7833 * lisp.h: Declare x_get_keysym_name.
7834 * keyboard.c (modify_event_symbol): Don't declare
7835 x_get_keysym_name here.
7836
69e24e34
DN
78372010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
7838
7839 * ecrt0.c: Revert conversion to standard C.
7840
d3da34e0 78412010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
7842
7843 * vm-limit.c (memory_warnings):
7844 * keyboard.c (modify_event_symbol):
7845 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
7846 (round2, emacs_rint):
7847 * process.c (send_process, old_sigpipe): Convert function
7848 definitions and declarations to standard C.
7849
78502010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
7851
7852 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
7853 * xdisp.c: Convert function definitions to standard C.
7854
7855 * cm.c (cmputc): Arg C is now int, not char.
7856 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
7857
00be444c
J
78582010-07-05 James Cloos <cloos@jhcloos.com>
7859
7860 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
7861
7862 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
7863 _NET_WM_ICON_NAME atoms.
7864
7865 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
7866 and _NET_WM_ICON_NAME properties, too, matching what is
7867 done in the Gtk+ case.
7868
e4c8d29a
J
78692010-07-05 Jan Djärv <jan.h.d@swipnet.se>
7870
ff919460
J
7871 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
7872
e4c8d29a
J
7873 * xsmfns.c (SSDATA): New macro.
7874 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
7875 passed to strlen/strcpy/strcat.
bba3e508
SM
7876 (create_client_leader_window): Surround with #ifndef USE_GTK.
7877 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
7878
7879 * xsettings.c (something_changedCB, parse_settings)
7880 (apply_xft_settings): Reformat prototype.
7881 (something_changedCB, init_gconf): Remove unused variable i.
7882 (read_settings): Remove unused variable long_len.
7883
7884 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
7885 (xg_get_image_for_pixmap, create_dialog)
7886 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
7887 (menuitem_highlight_callback, make_menu_item)
7888 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
7889 (xg_create_scroll_bar, xg_update_scrollbar_pos)
7890 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
7891 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
7892 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
7893 (xg_tool_bar_item_expose_callback): Reformat prototype.
7894 (xg_update_menubar): GList *group => GSList *group.
7895 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
7896 before use.
7897 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
7898 to GTK_IMAGE (wimage).
7899
dd4c5104
DN
79002010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7901
898b4c5c
DN
7902 * atimer.c: Use "" instead of <> for local includes for
7903 consistency with the rest of the code.
7904
dd4c5104
DN
7905 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
7906 * xrdb.c (get_system_name):
7907 * window.c (shrink_windows):
7908 * syntax.c (forw_comment):
7909 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
7910 (ins_del_costs):
7911 * mem-limits.h (start_of_data):
7912 * lread.c (readevalloop):
7913 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
7914 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
7915 * frame.c (x_get_focus_frame):
7916 * floatfns.c (fmod_float):
7917 * fileio.c (choose_write_coding_system):
7918 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
7919 (malloc_initialize_hook, sort_args, synchronize_locale):
7920 * doprnt.c (doprnt):
7921 * dired.c (compile_pattern):
7922 * data.c (fmod_float):
7923 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
7924 (map_char_table_for_charset):
7925 * charset.c (define_charset_internal):
7926 * alloc.c (Fgarbage_collect): Convert declarations or definitions
7927 to standard C.
7928
9a39b306 79292010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 7930 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
7931
7932 * lread.c (read1): Fix up last change to not mess up `c'.
7933
e6cb2cbb
JB
79342010-07-04 Juanma Barranquero <lekktu@gmail.com>
7935
7936 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
7937
438105ed
JB
79382010-07-04 Juanma Barranquero <lekktu@gmail.com>
7939
7940 Fix prototypes.
7941
e5447b22 7942 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 7943 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
7944 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
7945 arg, as required by internal_condition_case_1.
dcc7404b 7946 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
7947 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
7948 (analyse_first): Fix "const const".
e5447b22 7949 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 7950 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 7951 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 7952
971de7fb
DN
79532010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
7954
7955 * alloc.c: Convert function definitions to standard C.
7956 * atimer.c:
7957 * bidi.c:
7958 * bytecode.c:
7959 * callint.c:
7960 * callproc.c:
7961 * casefiddle.c:
7962 * casetab.c:
7963 * category.c:
7964 * ccl.c:
7965 * character.c:
7966 * charset.c:
7967 * chartab.c:
7968 * cmds.c:
7969 * coding.c:
7970 * composite.c:
7971 * data.c:
7972 * dbusbind.c:
7973 * dired.c:
7974 * dispnew.c:
7975 * doc.c:
7976 * doprnt.c:
7977 * ecrt0.c:
7978 * editfns.c:
7979 * fileio.c:
7980 * filelock.c:
7981 * filemode.c:
7982 * fns.c:
7983 * font.c:
7984 * fontset.c:
7985 * frame.c:
7986 * fringe.c:
7987 * ftfont.c:
7988 * ftxfont.c:
7989 * gtkutil.c:
7990 * indent.c:
7991 * insdel.c:
7992 * intervals.c:
7993 * keymap.c:
7994 * lread.c:
7995 * macros.c:
7996 * marker.c:
7997 * md5.c:
7998 * menu.c:
7999 * minibuf.c:
8000 * prefix-args.c:
8001 * print.c:
8002 * ralloc.c:
8003 * regex.c:
8004 * region-cache.c:
8005 * scroll.c:
8006 * search.c:
8007 * sound.c:
8008 * strftime.c:
8009 * syntax.c:
8010 * sysdep.c:
8011 * termcap.c:
8012 * terminal.c:
8013 * terminfo.c:
8014 * textprop.c:
8015 * tparam.c:
8016 * undo.c:
8017 * unexelf.c:
8018 * window.c:
8019 * xfaces.c:
8020 * xfns.c:
8021 * xfont.c:
8022 * xftfont.c:
8023 * xgselect.c:
8024 * xmenu.c:
8025 * xrdb.c:
8026 * xselect.c:
8027 * xsettings.c:
8028 * xsmfns.c:
8029 * xterm.c: Likewise.
8030
ae492bec
EZ
80312010-07-03 Eli Zaretskii <eliz@gnu.org>
8032
76ea4cc9
EZ
8033 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
8034 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
8035 `reverse' is specified in the frame parameters.
8036 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
8037 internal-set-lisp-face-attribute. Initialize screen colors from
8038 initial_screen_colors[] when f->default_face_done_p is zero,
8039 instead of depending on being called with default-frame-alist as
8040 the alist argument.
8041
8042 * xfaces.c (update_face_from_frame_parameter): Move out of
8043 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
8044 with HAVE_WINDOW_SYSTEM.
8045
1e6255ae
EZ
8046 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
8047 to menu-bar-mode, if not set in the frame parameters or in
8048 default-frame-alist.
8049
ae492bec
EZ
8050 * w32console.c (sys_tputs): Adjust argument list to prototype in
8051 term.c.
8052
3a35a84c
JB
80532010-07-03 Juanma Barranquero <lekktu@gmail.com>
8054
8055 * lisp.h (memory_warnings): Fix prototype.
8056
8057 * cm.h (evalcost): Fix prototype.
8058
8059 * cm.c (evalcost): Fix arg type.
8060
c532d349
DN
80612010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
8062
8063 * term.c (term_clear_mouse_face, Fidentity):
8064 * syssignal.h (signal_handler_t):
8065 * lisp.h (memory_warnings):
8066 * coding.h (preferred_coding_system):
8067 * cm.h (evalcost):
8068 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
8069
c0b36d46
EZ
80702010-07-02 Eli Zaretskii <eliz@gnu.org>
8071
8072 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
8073 from prototypes.
8074
8075 * msdos.h (load_pixmap): Don't define away.
8076
383e0970
J
80772010-07-02 Jan Djärv <jan.h.d@swipnet.se>
8078
f57e2426
J
8079 * lisp.h:
8080 * atimer.h: Remove define for P_.
8081
8082 * alloc.c: Remove __P and P_ from .c and .m files.
8083 * atimer.c:
8084 * buffer.c:
8085 * callint.c:
8086 * category.c:
8087 * charset.c:
8088 * chartab.c:
8089 * cm.c:
8090 * coding.c:
8091 * composite.c:
8092 * data.c:
8093 * dired.c:
8094 * dispnew.c:
8095 * doc.c:
8096 * editfns.c:
8097 * emacs.c:
8098 * eval.c:
8099 * fileio.c:
8100 * filelock.c:
8101 * fns.c:
8102 * font.c:
8103 * fontset.c:
8104 * frame.c:
8105 * ftfont.c:
8106 * ftxfont.c:
8107 * gmalloc.c:
8108 * gtkutil.c:
8109 * image.c:
8110 * indent.c:
8111 * intervals.c:
8112 * keyboard.c:
8113 * keymap.c:
8114 * lread.c:
8115 * marker.c:
8116 * menu.c:
8117 * minibuf.c:
8118 * print.c:
8119 * process.c:
8120 * scroll.c:
8121 * search.c:
8122 * sound.c:
8123 * strftime.c:
8124 * syntax.c:
8125 * sysdep.c:
8126 * term.c:
8127 * terminal.c:
8128 * textprop.c:
8129 * unexalpha.c:
8130 * w32console.c:
8131 * w32fns.c:
8132 * w32font.c:
8133 * w32menu.c:
8134 * w32term.c:
8135 * w32uniscribe.c:
8136 * window.c:
8137 * xdisp.c:
8138 * xfaces.c:
8139 * xfns.c:
8140 * xfont.c:
8141 * xftfont.c:
8142 * xmenu.c:
8143 * xselect.c:
8144 * xterm.c: Likewise.
8145
383e0970 8146 Remove P_ and __P macros.
f57e2426
J
8147 * atimer.h: Remove P_ and __P macros.
8148 * buffer.h:
383e0970
J
8149 * category.h:
8150 * ccl.h:
8151 * character.h:
8152 * charset.h:
8153 * cm.h:
8154 * coding.h:
8155 * composite.h:
8156 * dispextern.h:
8157 * disptab.h:
9e892c8d 8158 * dosfns.h:
383e0970
J
8159 * font.h:
8160 * fontset.h:
8161 * frame.h:
8162 * gtkutil.h:
8163 * indent.h:
8164 * intervals.h:
8165 * keyboard.h:
8166 * keymap.h:
8167 * lisp.h:
8168 * macros.h:
8169 * md5.h:
8170 * menu.h:
8171 * msdos.h:
8172 * nsterm.h:
8173 * puresize.h:
8174 * region-cache.h:
8175 * syntax.h:
8176 * syssignal.h:
8177 * systime.h:
8178 * termhooks.h:
9e892c8d 8179 * w32font.h:
383e0970
J
8180 * w32term.h:
8181 * widget.h:
8182 * window.h:
8183 * xgselect.h:
8184 * xsettings.h:
8185 * xterm.h: Likewise.
8186
98601119
DN
81872010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
8188
d9170db5
DN
8189 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
8190
98601119
DN
8191 Cleanup old code.
8192 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
8193 * syssignal.h: Remove code for Lynx, not supported anymore.
8194 * vm-limit.c: Remove unused code the depends on emacs not being
8195 defined and NO_LIM_DATA being defined.
8196 * mem-limits.h: Remove dead code.
8197
1f984e12
J
81982010-07-01 Jan Djärv <jan.h.d@swipnet.se>
8199
c49d071a
J
8200 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
8201
9d5405ec
J
8202 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
8203 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
8204
7a18115b
J
8205 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
8206 parameters, they are already absolute.
8207
a628ad9d
JB
8208 * nsterm.m (x_set_window_size, initFrameFromEmacs):
8209 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 8210
a628ad9d 8211 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 8212
a628ad9d
JB
8213 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
8214 Update FRAME_TOOLBAR_HEIGHT.
581a8100 8215
a628ad9d
JB
8216 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
8217 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 8218
c1ef4455
CY
82192010-06-30 Chong Yidong <cyd@stupidchicken.com>
8220
bba3e508
SM
8221 * frame.c (get_future_frame_param, Fmake_terminal_frame):
8222 Don't check default-frame-alist.
c1ef4455 8223
ce8f5a9a
AS
82242010-06-30 Andreas Schwab <schwab@linux-m68k.org>
8225
8226 * process.c (create_process): Avoid using invalid file descriptors.
8227
8228 * callproc.c (child_setup): Avoid closing a file descriptor twice.
8229
bf935339
J
82302010-06-30 Jan Djärv <jan.h.d@swipnet.se>
8231
8232 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
8233 Improve documentation. Return font regardless of use_system_font.
8234 (syms_of_xsettings): Improve documentation for font-use-system-font.
8235
7c33a057
CY
82362010-07-10 Chong Yidong <cyd@stupidchicken.com>
8237
2ec1b5ee
CY
8238 * xfaces.c (realize_face): Garbage the frame if a face is removed
8239 (Bug#6593).
8240
82412010-07-05 Andreas Schwab <schwab@linux-m68k.org>
8242
8243 * keyboard.c: Remove duplicate <setjmp.h>.
8244 (read_key_sequence): Remove volatile qualifiers.
8245
82462010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8247
8248 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
8249 (struct glyph_row): New members left_fringe_offset and
8250 right_fringe_offset.
8251
8252 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
8253 specially.
8254 * w32term.c (w32_draw_fringe_bitmap): Likewise.
8255 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
8256
8257 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 8258 Take account of bitmap offset.
2ec1b5ee
CY
8259 (draw_window_fringes): Take account of window vscroll.
8260 (update_window_fringes): Likewise. Extend top-aligned top indicator
8261 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
8262 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
8263 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
8264
82652010-07-04 Juanma Barranquero <lekktu@gmail.com>
8266
8267 * w32fns.c (Qtooltip): Declare.
8268 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
8269
82702010-07-03 Jan Djärv <jan.h.d@swipnet.se>
8271
8272 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
8273 grab on just Press (Bug#6499).
8274
82752010-07-02 Chong Yidong <cyd@stupidchicken.com>
8276
8277 * frame.c (Qtooltip): New var.
8278 (delete_frame): Use it. Fix faulty if statement. Don't update
8279 mode line for tooltip frames. Suggested by Martin Rudalics.
8280
8281 * xfns.c (x_create_tip_frame):
8282 * w32fns.c (x_create_tip_frame): Use it.
8283
82842010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
8285
8286 * xftfont.c (xftfont_open): Check font width one by one also when
8287 spacing is dual.
8288
8289 * ftfont.c (ftfont_open): Ditto.
8290
6259c2ec
GM
82912010-06-30 Glenn Morris <rgm@gnu.org>
8292
a46007e9
GM
8293 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
8294
6259c2ec
GM
8295 * Makefile.in (CANNOT_DUMP): Update for configure name change.
8296
8297 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
8298 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
8299 * s/darwin.h (SYSTEM_MALLOC):
8300 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
8301
5d1d3d04
J
83022010-06-29 Jan Djärv <jan.h.d@swipnet.se>
8303
8304 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
8305 (ns_get_screen): Don't assign integer to f.
8306 (Fx_display_color_cells): Declarations before statements.
8307
e547b051
J
83082010-06-28 Jan Djärv <jan.h.d@swipnet.se>
8309
5fc8e5bc
J
8310 * xfns.c (x_default_font_parameter): Remove got_from_system
8311 (Bug#6526).
8312
e547b051 8313 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
8314 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
8315 New defines based on what configure finds.
e547b051
J
8316
8317 * xterm.c (XTflash): Use gtk_widget_get_window.
8318 (xg_scroll_callback): Use gtk_adjustment_get_upper and
8319 gtk_adjustment_get_page_size.
8320 (handle_one_xevent): Use gtk_widget_get_mapped.
8321 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
8322 messages.
8323
8324 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
8325
8326 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
8327 HAVE_GTK_FILE_SELECTION_NEW.
8328
bba3e508
SM
8329 * gtkutil.c (xg_display_open, xg_display_close):
8330 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
8331 (xg_display_open): Return type is void.
8332 (gtk_widget_set_has_window)
8333 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
8334 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
8335 (gtk_adjustment_set_page_increment)
8336 (gtk_adjustment_get_step_increment): #define these if not found
8337 by configure.
8338 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
8339 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
8340 Use gtk_widget_get_window.
e547b051
J
8341 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
8342 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
8343 (create_dialog): Use gtk_dialog_get_action_area and
8344 gtk_dialog_get_content_area.
8345 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
8346 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
8347 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
8348 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
8349 Use g_object_ref and g_object_unref.
8350 (xg_update_menu_item, xg_tool_bar_menu_proxy):
8351 Use gtk_widget_get_sensitive.
e547b051
J
8352 (xg_update_submenu): Use remove_submenu.
8353 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
8354 properties instead to get old x and y position.
8355 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
8356 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 8357 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
8358 (xg_get_tool_bar_widgets): New function.
8359 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
8360 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
8361 (toolbar_set_orientation): New #define based on if configure
8362 finds gtk_orientable_set_orientation.
8363 (xg_create_tool_bar): Call toolbar_set_orientation.
8364 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
8365 instead of gtk_box_pack_start_defaults.
8366
b9229673
CY
83672010-06-28 Chong Yidong <cyd@stupidchicken.com>
8368
8369 * cmds.c (Fdelete_backward_char): Move into Lisp.
8370
bbc803b0
DN
83712010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8372
8373 * s/freebsd.h (BSD4_2): Remove redundant definition.
8374 bsd-common.h defines it already.
8375
6431f2e6
CY
83762010-06-27 Chong Yidong <cyd@stupidchicken.com>
8377
8378 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
8379 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
8380 tool-bar-mode, which are now set using these X resources at
8381 startup, to determine the defaults (Bug#2249).
8382
8383 * w32fns.c (Fx_create_frame):
8384 * nsfns.m (Fx_create_frame): Likewise.
8385
8386 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
8387
8c079ebb
JB
83882010-06-24 Juanma Barranquero <lekktu@gmail.com>
8389
8390 * gtkutil.c (xg_update_scrollbar_pos):
8391 Avoid C99 mid-block variable declaration.
8392
e9b7ab96
JD
83932010-06-22 Jan Djärv <jan.h.d@swipnet.se>
8394
bc869eca
JD
8395 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
8396
2b7e356a 8397 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
8398
8399 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
8400 if height is less than scroll bar min size.
8401 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
8402
e9b7ab96
JD
8403 * xfns.c (x_default_font_parameter): Try to open font from system
8404 before using it (bug#6478). Rename got_from_gconf to got_from_system.
8405
a628ad9d 84062010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
8407
8408 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
8409
70c4cfbb
EZ
84102010-06-20 Eli Zaretskii <eliz@gnu.org>
8411
8412 * xdisp.c (try_scrolling): When scroll-conservatively is set to
8413 most-positive-fixnum, be extra accurate when scrolling window
8414 start, to avoid missing the cursor line.
8415
ad5a12b5
EZ
84162010-06-19 Eli Zaretskii <eliz@gnu.org>
8417
8418 * xdisp.c (try_scrolling): Compute the limit for searching point
8419 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
8420 of 10 screen lines.
8421 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
8422 and
8423 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
8424 for details.
8425
2a64315a 84262010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
8427
8428 * editfns.c (Fbyte_to_string): Pacify compiler.
8429
288cf4e9
SM
84302010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8431
8432 * lread.c (read1): Phase out old-style backquotes a bit more.
8433
6e6e5760
EZ
84342010-06-12 Eli Zaretskii <eliz@gnu.org>
8435
cbc4fd20
EZ
8436 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
8437 bidimirror.h.
8438
8439 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
8440
317fbf33
EZ
8441 * bidi.c (bidi_initialize): Remove explicit initialization of
8442 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 8443 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 8444 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
8445
8446 * biditype.h: New file.
8447
cbc4fd20
EZ
8448 * bidimirror.h: New file.
8449
6e6e5760
EZ
8450 * window.c (syms_of_window): Doc fix (bug#6409).
8451
4176cba2
RF
84522010-06-12 Romain Francoise <romain@orebokech.com>
8453
8454 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
8455 ediff-hook.
8456
cb4bfcb5
GM
84572010-06-10 Glenn Morris <rgm@gnu.org>
8458
64c60c2f
GM
8459 * editfns.c (Fbyte_to_string): Pacify compiler.
8460
cb4bfcb5
GM
8461 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
8462
2ec1b5ee
CY
84632010-06-26 Andreas Schwab <schwab@linux-m68k.org>
8464
8465 * alloc.c (Fmake_byte_code): Don't access undefined argument
8466 (Bug#6517).
8467
84682010-06-25 Chong Yidong <cyd@stupidchicken.com>
8469
8470 * xdisp.c (next_element_from_image): Ensure that after-strings are
8471 read the next time we hit handle_stop (Bug#1336).
8472
84732010-06-23 Andreas Schwab <schwab@linux-m68k.org>
8474
8475 * lread.c (read1): Signal error if #s is not followed by paren.
8476
84772010-06-19 Chong Yidong <cyd@stupidchicken.com>
8478
8479 * image.c (free_image): Mark frame as garbaged (Bug#6426).
8480
8481 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
8482
84832010-06-15 Glenn Morris <rgm@gnu.org>
8484
8485 * editfns.c (Fbyte_to_string): Pacify compiler.
8486
e454a4a3
SM
84872010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
8488
8489 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
8490 Check `object's type before accessing its guts.
8491
c1b1acc2
DN
84922010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
8493
8494 * s/usg5-4.h: Fix previous change.
8495 Suggested by Lawrence Mitchell <wence@gmx.li>
8496
657d4c0b
AS
84972010-06-08 Andreas Schwab <schwab@linux-m68k.org>
8498
8499 * minibuf.c (Fall_completions): Add more checks.
8500
9b27fd9f
JB
85012010-06-08 Juanma Barranquero <lekktu@gmail.com>
8502
8503 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
8504
a99ebb40
DN
85052010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
8506
d7c5d87d
DN
8507 * lread.c (X_OK): Remove, unused.
8508
0263a941
DN
8509 * dispnew.c: Remove obsolete comment.
8510
a99ebb40
DN
8511 Remove INCLUDED_FCNTL.
8512 * xterm.c (INCLUDED_FCNTL):
8513 * callproc.c (INCLUDED_FCNTL):
8514 * alloc.c (INCLUDED_FCNTL):
8515 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
8516 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
8517
13b5221f
MR
85182010-06-07 Martin Rudalics <rudalics@gmx.at>
8519
8520 * window.c (Fselect_window): Move `record_buffer' up to the
8521 beginning of this function, so the buffer gets recorded
8522 even if the selected window does not change.
8523 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
8524
5220357f
JB
85252010-06-07 Juanma Barranquero <lekktu@gmail.com>
8526
8527 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
8528 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
8529
3085237c
DN
85302010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
8531
8532 Remove BSTRING related code, all platforms define it.
8533 * s/usg5-4.h (BSTRING): Remove definition.
8534 * s/template.h (BSTRING):
8535 * s/msdos.h (BSTRING):
8536 * s/ms-w32.h (BSTRING):
8537 * s/hpux10-20.h (BSTRING):
8538 * s/gnu-linux.h (BSTRING):
8539 * s/darwin.h (BSTRING):
8540 * s/cygwin.h (BSTRING):
8541 * s/bsd-common.h (BSTRING):
8542 * s/aix4-2.h (BSTRING): Likewise.
8543 * sysdep.c: Remove code depending on BSTRING not being defined.
8544
409f2919
JB
85452010-06-05 Juanma Barranquero <lekktu@gmail.com>
8546
8547 Remove obsolete macro BASE_LEADING_CODE_P.
8548 * character.h (BASE_LEADING_CODE_P): Remove.
8549 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
8550 * buffer.c (Fset_buffer_multibyte):
8551 * indent.c (scan_for_column, compute_motion):
8552 * insdel.c (count_combining_before, count_combining_after):
8553 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
8554
087fc47a
JB
85552010-06-04 Juanma Barranquero <lekktu@gmail.com>
8556
8557 Turn `directory-sep-char' into a noop.
8558
8559 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
8560 (DIRECTORY_SEP): Define unconditionally.
8561
8562 * s/ms-w32.h (DIRECTORY_SEP): Remove.
8563
8564 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
8565 call dostounix_filename directly.
8566
8567 * fileio.c (CORRECT_DIR_SEPS): Remove.
8568 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
8569 (Fsubstitute_in_file_name): Use dostounix_filename instead.
8570 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
8571 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
8572
8573 * w32proc.c (CORRECT_DIR_SEPS): Remove.
8574 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
8575
0eb7675e
AS
85762010-06-03 Andreas Schwab <schwab@linux-m68k.org>
8577
a628ad9d
JB
8578 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
8579 (Bug#6346)
0eb7675e 8580
78edd3b7
JB
85812010-06-03 Juanma Barranquero <lekktu@gmail.com>
8582
8583 * ccl.c (Fccl_program_p): Fix typo in docstring.
8584
eb697db5
DN
85852010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
8586
8587 Move UNEXEC definition to autoconf.
8588 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
8589 * s/sol2-10.h (UNEXEC):
8590 * s/irix6-5.h (UNEXEC):
8591 * s/hpux10-20.h (UNEXEC):
8592 * s/gnu-linux.h (UNEXEC):
8593 * s/darwin.h (UNEXEC):
8594 * s/cygwin.h (UNEXEC):
8595 * s/bsd-common.h (UNEXEC):
8596 * s/aix4-2.h (UNEXEC):
8597 * m/alpha.h (UNEXEC): Likewise.
8598 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8599
aa3830c4
JB
86002010-06-03 Juanma Barranquero <lekktu@gmail.com>
8601
8602 Remove obsolete pre-unicode2 macros.
8603 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8604 * composite.c (composition_reseat_it):
8605 * data.c (Faset):
8606 * fns.c (Ffillarray):
8607 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8608 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8609
d234d13e
JL
86102010-06-03 Juri Linkov <juri@jurta.org>
8611
8612 * buffer.c (Fother_buffer): Add CHECK_FRAME.
8613 (Fswitch_to_buffer): Remove unused variable `err'.
8614
0d4bcf4d
GM
86152010-06-03 Glenn Morris <rgm@gnu.org>
8616
e23dc1e2
GM
8617 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8618
05b09564
GM
8619 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8620 now that AH_BOTTOM does it.
8621
824e2978
GM
8622 * m/hp800.h (HAVE_ALLOCA):
8623 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8624
0d4bcf4d
GM
8625 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8626 Remove NOT_C_CODE tests, it is always true now.
8627
c55d2abf
DN
86282010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
8629
08a494a3
DN
8630 Fix config.h includes.
8631 * xsettings.c:
8632 * xgselect.c:
8633 * nsterm.m:
8634 * nsselect.m:
8635 * nsimage.m:
8636 * nsfont.m:
8637 * nsfns.m:
8638 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8639 other files do.
8640
75934b1d
DN
8641 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8642
9f32a766
DN
8643 * s/sol2-6.h: Remove obsolete comments.
8644
c55d2abf
DN
8645 Remove unnecessary alloca.h includes.
8646 * keymap.c: Do not include alloca.h, config.h does that.
8647 * sysdep.c: Likewise. Do not define fwrite, not used.
8648
06ac62b4
SM
86492010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8650
8651 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8652 the HAVE_TERMIO where it belongs (bug#6149).
8653
1ab8293c
SM
86542010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8655
8656 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8657 of bug#6305).
8658
6dcfd253
EZ
86592010-05-30 Eli Zaretskii <eliz@gnu.org>
8660
8661 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8662 state is always cached (bug#6306).
8663
6d26bbb2
EZ
86642010-05-29 Eli Zaretskii <eliz@gnu.org>
8665
06fa4a23
EZ
8666 Fix cursor motion in bidi-reordered continued lines.
8667 * xdisp.c (try_cursor_movement): Backup to non-continuation line
8668 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
8669 over continuation lines in bidi-reordered buffers.
8670 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
8671 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8672
f5783df3
MA
86732010-05-28 Michael Albinus <michael.albinus@gmx.de>
8674
8675 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8676
7d56b2dd
KH
86772010-05-28 Kenichi Handa <handa@m17n.org>
8678
8679 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8680 Don't sheck SPEC if it is nil.
8681 (font_list_entities): Call font_delete_unmatched if
b925d231 8682 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 8683
e58d4ff7
GM
86842010-05-28 Glenn Morris <rgm@gnu.org>
8685
8686 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8687
f1a5d776
CY
86882010-05-27 Chong Yidong <cyd@stupidchicken.com>
8689
8690 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8691 whether to trash.
8692 (internal_delete_file, Frename_file): Callers changed.
8693 (delete_by_moving_to_trash): Doc fix.
8694 (Fdelete_directory_internal): Don't move to trash.
8695
8696 * callproc.c (delete_temp_file):
8697 * buffer.c (Fkill_buffer): Callers changed.
8698
8699 * lisp.h: Update prototype.
8700
f44a59e6
CY
87012010-05-27 Chong Yidong <cyd@stupidchicken.com>
8702
8703 * xdisp.c (redisplay_window): After redisplay, check if point is
8704 still valid before setting it (Bug#6177).
8705
81ac4f35
GM
87062010-05-27 Glenn Morris <rgm@gnu.org>
8707
8708 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
8709 Convert comments to Makefile format.
8710
8711 * Makefile.in (bootstrap-clean): No more Makefile.c.
8712
ccd89fb3
GM
87132010-05-26 Glenn Morris <rgm@gnu.org>
8714
90278cb6
GM
8715 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
8716 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
8717
ccd89fb3
GM
8718 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8719 Remove.
8720 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8721
b7050583
KH
87222010-05-26 Kenichi Handa <handa@m17n.org>
8723
8724 * composite.c (composition_compute_stop_pos): Fix condition for
8725 backward scanning.
8726
e5458003
GM
87272010-05-25 Glenn Morris <rgm@gnu.org>
8728
c345fe90
GM
8729 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8730 Move before TEMACS_LDFLAGS.
8731 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8732 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8733
2e0689ab
GM
8734 * Makefile.in (NOT_C_CODE): No longer define.
8735 (config.h): No longer include.
8736
8009a5e8
GM
8737 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8738 variables it may reference.
8739
e5458003
GM
8740 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8741 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8742
10f72a37
KH
87432010-05-25 Kenichi Handa <handa@m17n.org>
8744
8745 * dispextern.h (struct composition_it): New members rule_idx and
8746 charpos.
8747
8748 * xdisp.c (set_iterator_to_next): While scanning backward, assume
8749 that the character positions of IT point the last character of the
8750 current grapheme cluster.
8751 (next_element_from_composition): Don't change character positions
8752 of IT.
8753 (append_composite_glyph): Set glyph->charpos to
8754 it->cmp_it.charpos.
8755
8756 * composite.c (autocmp_chars): Change the first argument to RULE,
8757 and try composition with RULE only.
8758 (composition_compute_stop_pos): Record the index number of the
8759 composition rule in CMP_IT->rule_idx.
8760 (composition_reseat_it): Call autocmp_chars repeatedly until the
8761 correct rule of the composition is found.
8762 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
8763 is at the last character of the current grapheme cluster when
8764 CMP_IT->reversed_p is nonzero.
8765
171eda53 87662010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 8767
171eda53
SM
8768 * editfns.c (Fbyte_to_string): New function.
8769
66a9f7f4
SM
87702010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8771
8772 * process.c (Fmake_network_process): Set :host to nil if it's not used.
8773 Suggested by Masatake YAMATO <yamato@redhat.com>.
8774
d8c315d1
EZ
87752010-05-23 Eli Zaretskii <eliz@gnu.org>
8776
171eda53 8777 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 8778
f5b416d2 87792010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
8780
8781 * s/netbsd.h: If terminfo is found, use it in preference to
8782 termcap. (Bug#6190) [Backport from trunk]
8783
0416466c
EZ
87842010-05-19 Eli Zaretskii <eliz@gnu.org>
8785
11117830 8786 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
8787
8788 * dispextern.h (struct glyph_row): New members minpos and maxpos.
8789 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
8790 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
8791 and maxpos members instead of start.pos and end.pos, respectively.
8792
8793 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
8794 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
8795 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
8796 (try_window_reusing_current_matrix, try_window_id):
8797 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
8798 (init_from_display_pos, init_iterator): Use EMACS_INT for
8799 character and byte positions.
66a9f7f4 8800 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
8801 arguments for minimum and maximum buffer positions seen by
8802 display_line for this row. Don't use iterator to find the
8803 position following the maximum one; instead, increment the
11117830
EZ
8804 position found by display_line directly. Fix logic; eol_pos
8805 should be tested before the rest. Handle the case of characters
8806 delivered from display vector (bug#6036). Fix tests related to
8807 it->method. Handle the truncated_on_right_p rows.
8808 (RECORD_MAX_MIN_POS): New macro.
8809 (display_line): Use it to record the minimum and maximum buffer
8810 positions for glyphs in the row being assembled. Record the
8811 position of the newline that terminates the line. If word wrap is
8812 in effect, restore minimum and maximum positions seen up to the
8813 wrap point, when iterator returns to it.
8814 (try_window_reusing_current_matrix): Give up if in bidi-reordered
8815 row and cursor not already at point. Restore original pre-bidi
8816 code for unidirectional buffers.
d36fe237
EZ
8817
8818 * dispnew.c (increment_row_positions, check_matrix_invariants):
8819 Increment and check row->start.pos and row->end.pos, in addition
8820 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
8821
11117830
EZ
8822 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
8823 Display truncated_on_left_p and truncated_on_right_p flags.
8824 Formatting fixes.
8825 (pmtxrows): Display the ordinal number of each row. Don't display
8826 rows beyond the last one.
8827
8828 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
8829 it is not copied by bidi_copy_it.
8830
6e83d800
EZ
88312010-05-22 Eli Zaretskii <eliz@gnu.org>
8832
8833 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
8834 (Bug#6237)
8835
110683ad
CY
88362010-05-22 Chong Yidong <cyd@stupidchicken.com>
8837
8838 * image.c (Fimage_flush): Rename from image-refresh.
8839
98fe5161
CY
88402010-05-21 Chong Yidong <cyd@stupidchicken.com>
8841
8842 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
8843 just one window.
8844
8845 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
8846 (clear_image_cache): If the number of cached images is unusually
8847 large, decrease the cache eviction delay (Bug#6230).
8848
e8752c66
GM
88492010-05-21 Glenn Morris <rgm@gnu.org>
8850
66dbf213
GM
8851 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
8852 Move these rules to ns.mk.
8853 * ns.mk: New file.
8854
04384b2d
GM
8855 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
8856
e8752c66
GM
8857 * Makefile.in (CANNOT_DUMP): New, set by configure.
8858 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
8859
2e2bbddb
JL
88602010-05-20 Juri Linkov <juri@jurta.org>
8861
8862 * fileio.c (Fdelete_file): Change interative spec to use
8863 `read-file-name' like in `find-file-read-args' where the default
8864 value is `default-directory' instead of `buffer-file-name'.
8865 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
8866
31c4aaf6
KR
88672010-05-20 Kevin Ryde <user42@zip.com.au>
8868
8869 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
8870 (Voverriding_terminal_local_map, Vsystem_key_alist)
8871 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
8872
9d5cf9b6
GM
88732010-05-20 Glenn Morris <rgm@gnu.org>
8874
8875 * Makefile.in (DEPDIR): New constant.
8876 (DEPFLAGS): Set with configure, not cpp.
8877 (MKDEPDIR): New, set by configure.
8878 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
8879 (clean): Use $DEPDIR.
8880 (deps_frag): Include from configure.
8881 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
8882 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
8883
bba3e508
SM
8884 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
8885 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 8886
7f34aec3
GM
88872010-05-19 Glenn Morris <rgm@gnu.org>
8888
d494e8f2
GM
8889 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
8890
c1d0dcfd
GM
8891 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
8892 (GNULIB_VAR): Remove.
8893 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
8894
8895 * m/ibms390x.h (LINKER):
8896 * m/macppc.h (LINKER) [GNU_LINUX]:
8897 * s/aix4-2.h (ORDINARY_LINK):
8898 * s/cygwin.h (LINKER):
8899 * s/darwin.h (ORDINARY_LINK):
8900 * s/gnu.h (ORDINARY_LINK):
8901 * s/netbsd.h (LINKER):
8902 * s/usg5-4.h (ORDINARY_LINK):
8903 Move to configure.
8904
7f34aec3
GM
8905 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
8906
754790b6
CY
89072010-05-18 Chong Yidong <cyd@stupidchicken.com>
8908
8909 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
8910 prevent stack overflow if number of arguments is too large
8911 (Bug#6214).
8912
161e44d1
JB
89132010-05-18 Juanma Barranquero <lekktu@gmail.com>
8914
8915 * charset.c (load_charset_map_from_file): Don't call close after fclose.
8916
be4ff9da
GM
89172010-05-18 Glenn Morris <rgm@gnu.org>
8918
9539dc5d
GM
8919 * s/gnu-linux.h: Combine two conditionals.
8920
8921 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
8922 $(POST_ALLOC_OBJ).
8923
40dc6bf4
GM
8924 * Makefile.in (RALLOC_OBJ): New, set by configure.
8925 (rallocobj): Replace with the previous variable.
8926 (otherobj): Use $RALLOC_OBJ.
8927
8928 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
8929 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
8930
be4ff9da
GM
8931 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
8932 (gmallocobj, vmlimitobj): Replace with previous two variables.
8933 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
8934
16455a85
GM
89352010-05-17 Glenn Morris <rgm@gnu.org>
8936
8937 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
8938 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
8939
5fdb7468
GM
89402010-05-16 Glenn Morris <rgm@gnu.org>
8941
7ca1f3f9
GM
8942 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
8943
7541dad5
GM
8944 * Makefile.in (clean): Get rid of HAVE_NS conditional.
8945
da53fab9
GM
8946 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
8947 trailing "/".
8948
b02a6645
GM
8949 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
8950 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
8951
8877ca0f
GM
8952 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
8953 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
8954 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
8955 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
8956 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
8957
5fdb7468
GM
8958 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
8959 Remove ${STARTFLAGS}, nothing ever sets it.
8960
95adb4b1
DN
89612010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
8962
8963 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
8964
676b6304
GM
89652010-05-16 Glenn Morris <rgm@gnu.org>
8966
9beab9ce
GM
8967 * Makefile.in (LIBX_BASE): Always define.
8968
8a95f0e7
GM
8969 * Makefile.in (LIBX_OTHER): Move out of cpp section.
8970
676b6304
GM
8971 * Makefile.in (LIBXT): Always define.
8972
6e546d18
GM
89732010-05-15 Glenn Morris <rgm@gnu.org>
8974
4235ca47 8975 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 8976
6e546d18
GM
8977 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
8978 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
8979
8c5ff6dd
KR
89802010-05-15 Ken Raeburn <raeburn@raeburn.org>
8981
560bb7ae 8982 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
8983 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
8984
8b4eb796
KR
8985 * emacs.c (main): Initialize initial-environment and
8986 process-environment before generating from env, not after.
8987
8c5ff6dd
KR
8988 Handle --version reasonably in CANNOT_DUMP configuration.
8989 * emacs.c (emacs_version, emacs_copyright): New string variables.
8990 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
8991 (syms_of_emacs): Defvar them, and initialize them from the C
8992 string variables.
8993 (main): If initialization hasn't been done, print initial version
8994 info from the C strings, instead of starting an interactive session.
8995
dbd3f723
EZ
89962010-05-15 Eli Zaretskii <eliz@gnu.org>
8997
d20e1419
EZ
8998 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
8999 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
9000 (bidi_paragraph_init): Remove redundant assertion that we are at
9001 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
9002
9003 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
9004 (syms_of_xdisp): Defsubr it.
9005
d36fe237
EZ
9006 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
9007
dbd3f723
EZ
9008 * Makefile.in: Fix MSDOS-related comments.
9009
02be533b
GM
90102010-05-15 Glenn Morris <rgm@gnu.org>
9011
1a82cca9
GM
9012 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
9013 (really-lwlib, really-oldXMenu): Always define.
9014 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
9015
3df7b338
GM
9016 * Makefile.in: Simplify cpp conditional.
9017
2b5f541b
GM
9018 * Makefile.in (${ns_appdir}): Simplify using umask.
9019
02be533b
GM
9020 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
9021
4e2db1fe
SM
90222010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
9023
9024 * eval.c (specbind): Remove left-over duplicate test.
9025 Disallow let-binding frame-local vars. Add comment.
9026
4b292a22
EZ
90272010-05-14 Eli Zaretskii <eliz@gnu.org>
9028
2fe72643 9029 Make the cache of bidi iterator states dynamically allocated.
1edbd309 9030 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
9031 (bidi_init_it): Call it.
9032 (bidi_cache_iterator_state): Enlarge the cache if needed.
9033
4e2db1fe 9034 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
9035 bidi_get_next_char_visually. All callers changed.
9036
82ebc97b
KH
90372010-05-14 Kenichi Handa <handa@m17n.org>
9038
9039 * dispextern.h (struct composition_it): New member reversed_p.
9040
9041 * composite.c (composition_compute_stop_pos): Search backward if
9042 ENDPOS < CHARPOS.
9043 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
9044 Set CMP_IT->reversed_p.
b4b6e17e 9045 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 9046
4e2db1fe
SM
9047 * xdisp.c (set_iterator_to_next):
9048 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
9049 scanning backward. Call composition_compute_stop_pos if scan
9050 direction is changed.
9051 (next_element_from_buffer): Call composition_compute_stop_pos with
9052 negative ENDPOS if we are scanning backward.
9053 (next_element_from_composition): Pay attention to
9054 IT->cmp_it.reversed_p.
9055
0e5d7800
KH
90562010-05-14 Kenichi Handa <handa@m17n.org>
9057
560bb7ae 9058 * font.c (font_range): Return the range for the font found at first.
0e5d7800 9059
cb027b32
GM
90602010-05-14 Glenn Morris <rgm@gnu.org>
9061
177b0288
GM
9062 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
9063
fbc00890
GM
9064 * Makefile.in (mktime, X11, register): Move undefs to configure.
9065
f14d1dfd
GM
9066 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
9067 (MSDOS_X_OBJ): New variable.
9068 (MSDOS_SUPPORT_REAL): New constant.
9069 (MSDOS_SUPPORT): Set as a variable, not with cpp.
9070 (obj): Use MSDOS_X_OBJ.
9071 (lisp): Use MSDOS_SUPPORT as a variable.
9072
11842bd8
GM
9073 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
9074 (GPM_MOUSE_SUPPORT): Now it's a constant.
9075 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
9076 not cpp.
9077
489d31a4 9078 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 9079 (ns_appresdir): Remove, unused.
e20f1f07 9080
489d31a4
GM
9081 * Makefile.in (SHELL): Move outside cpp section.
9082
cb027b32
GM
9083 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
9084
5a903aa9
GM
90852010-05-13 Glenn Morris <rgm@gnu.org>
9086
3369c79f
GM
9087 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
9088 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
9089
d5e982a6
GM
9090 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
9091 HAVE_WINDOW_SYSTEM must be too.
9092
6192e163
GM
9093 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
9094 (lisp): Remove WINNT_SUPPORT.
9095
472c5d6b
GM
9096 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
9097 Let configure set these variables (to empty) in this case as well.
9098
0116466b
GM
9099 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
9100 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
9101
5a903aa9
GM
9102 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
9103 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
9104 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
9105 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
9106 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 9107 the values output by configure.
5a903aa9
GM
9108 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
9109
1a0d7c06
GM
91102010-05-12 Glenn Morris <rgm@gnu.org>
9111
b5457f14
GM
9112 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
9113 (LINKER_WAS_SPECIFIED): Remove.
9114
1a0d7c06
GM
9115 * Makefile.in (LIB_GCC): Set using configure, not cpp.
9116 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
9117 * m/arm.h (LIB_GCC) [GNU_LINUX]:
9118 * s/cygwin.h (LIB_GCC):
9119 * s/freebsd.h (LIB_GCC):
9120 * s/gnu-linux.h (LIB_GCC):
9121 * s/msdos.h (LIB_GCC):
9122 * s/netbsd.h (LIB_GCC):
9123 Move to configure.
9124
d1ddd1d0 91252010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
9126
9127 * ftfont.c: Fix incorrect parentheses of #if condition for
9128 definining M17N_FLT_USE_NEW_FEATURE.
9129
acddf8ae
GM
91302010-05-11 Glenn Morris <rgm@gnu.org>
9131
9132 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
9133 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
9134
ae5e04fa
EZ
91352010-05-10 Eli Zaretskii <eliz@gnu.org>
9136
9137 * xdisp.c (init_iterator): Don't turn on bidi reordering in
9138 unibyte buffers. See
9139 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
9140
7490175b
GM
91412010-05-10 Glenn Morris <rgm@gnu.org>
9142
97efb629
GM
9143 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
9144 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
9145 (LIBES): Use LIBS_SYSTEM as a variable.
9146 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
9147 * s/aix4-2.h (LIBS_SYSTEM):
9148 * s/freebsd.h (LIBS_SYSTEM):
9149 * s/hpux10-20.h (LIBS_SYSTEM):
9150 * s/sol2-6.h (LIBS_SYSTEM):
9151 * s/unixware.h (LIBS_SYSTEM):
9152 Move to configure.
9153
7490175b
GM
9154 * s/aix4-2.h (MAIL_USE_LOCKF):
9155 * s/bsd-common.h (MAIL_USE_FLOCK):
9156 * s/darwin.h (MAIL_USE_FLOCK):
9157 * s/gnu-linux.h (MAIL_USE_FLOCK):
9158 * s/irix6-5.h (MAIL_USE_FLOCK):
9159 * s/template.h (MAIL_USE_FLOCK):
9160 Move to configure.
9161
0235128c 91622010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
9163
9164 * Version 23.2 released.
9165
0235128c 91662010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
9167
9168 * composite.c (autocmp_chars): Save point as marker before calling
9169 auto-composition-function (Bug#5984).
9170
9171 * lisp.h (restore_point_unwind): Add prototype.
9172
9173 * fileio.c (restore_point_unwind): Remove static attribute.
9174
0235128c 91752010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
9176
9177 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
9178 new feature of libotf and m17n-flt.
0235128c
SM
9179 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
9180 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
9181 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
9182 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
9183 that OUT is NULL. Use OTF_drive_gsub_with_log and
9184 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
9185 OTF_drive_gpos.
9186 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
9187 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
9188 Setup mflt_enable_new_feature and mflt_try_otf.
9189
4721152c
J
91902010-05-08 Jan Djärv <jan.h.d@swipnet.se>
9191
9192 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
9193
9194 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
9195 box and toolbar (Bug #6139).
9196 (xg_create_tool_bar): Remove comment (Bug #6139).
9197 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
9198 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
9199
ee0a16cf
JB
92002010-05-08 Juanma Barranquero <lekktu@gmail.com>
9201
9202 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
9203 Update dependencies.
9204
96d79611
EZ
92052010-05-08 Eli Zaretskii <eliz@gnu.org>
9206
9207 * fringe.c (update_window_fringes): Set up truncation bitmaps for
9208 R2L lines.
9209
40c17879
GM
92102010-05-08 Glenn Morris <rgm@gnu.org>
9211
7b42b29f
GM
9212 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
9213
40c17879
GM
9214 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
9215 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
9216 (termcapobj): Replace with TERMCAP_OBJ.
9217 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
9218 (LIBES): Use LIBS_TERMCAP as a variable.
9219
9220 * s/freebsd.h (osreldate.h): No longer include, since this file
9221 does not use __FreeBSD_version any more.
9222
9223 * s/aix4-2.h (TERMINFO):
9224 * s/cygwin.h (TERMINFO):
9225 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9226 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
9227 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9228 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9229 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
9230 * s/irix6-5.h (TERMINFO):
9231 * s/netbsd.h (LIBS_TERMCAP):
9232 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
9233 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
9234 * s/usg5-4.h (TERMINFO):
9235 Move to configure.
9236
94b612ad
SM
92372010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
9238
9239 * eval.c (unbind_to): Don't unbind a local binding into the global
9240 binding when the local binding disappeared. Inversely, don't unbind
9241 a global binding into a newly created local binding.
9242 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
9243 can specify the frame to use, when applicable. Adjust callers.
9244
15e12598 92452010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 9246 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
9247
9248 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
9249
f724825e
EZ
92502010-05-07 Eli Zaretskii <eliz@gnu.org>
9251
5cba3209
EZ
9252 * w32fns.c: Include w32.h.
9253 (Fw32_shell_execute): Decode the error message before passing it
9254 to `error'. (Bug#6126)
9255
d16bdfc3
EZ
9256 * msdos.c (dos_set_window_size):
9257 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
9258 instead of `XSYMBOL (foo)->value'.
9259
59d93e87
EZ
92602010-05-07 Eli Zaretskii <eliz@gnu.org>
9261
9fdec8bc
EZ
9262 Fix the MS-DOS build, broken by autoconfiscation.
9263
9264 * Makefile.in: Don't use Make-style comments past the "start of
9265 cpp stuff" line.
9266 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
9267
9268 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
9269 edited directly by msdos/sed1v2.inp).
f724825e 9270
2f86b22b
GM
92712010-05-07 Glenn Morris <rgm@gnu.org>
9272
9273 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
9274 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
9275 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
9276 move out of cpp section.
9277 * s/freebsd.h (LD_SWITCH_SYSTEM):
9278 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
9279 * s/netbsd.h (LD_SWITCH_SYSTEM):
9280 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
9281
49ebbd65
DN
92822010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9283
9284 Define LIB_STANDARD and START_FILES using autoconf.
9285 * s/usg5-4.h (LIB_STANDARD):
9286 * s/netbsd.h (START_FILES):
9287 * s/irix6-5.h (LIB_STANDARD):
9288 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
9289 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9290 * s/freebsd.h (START_FILES):
9291 * s/darwin.h (START_FILES):
9292 * s/cygwin.h (START_FILES):
9293 * s/aix4-2.h (LIB_STANDARD):
9294 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
9295 * Makefile.in (STARTFILES): Rename to START_FILES, define using
9296 autoconf, not cpp.
9297
d43c06d6
DN
92982010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
9299
28823648
DN
9300 Remove NEED_BSDTTY and NEED_UNISTD_H.
9301 * s/hpux10-20.h (NEED_BSDTTY): Remove.
9302 * s/aix4-2.h (NEED_UNISTD_H): Remove.
9303 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
9304 <sys/ptyio.h> and <unistd.h>.
9305
aca00430
DN
9306 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
9307
d43c06d6
DN
9308 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
9309 * s/gnu.h (START_FILES): Remove empty definition.
9310
3e56b11d
JD
93112010-05-06 Jan Djärv <jan.h.d@swipnet.se>
9312
9313 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
9314
e3cf0cde
GM
93152010-05-06 Glenn Morris <rgm@gnu.org>
9316
9317 * Makefile.in (CPP, LN_S): Remove unused variables.
9318
774b9a60
SM
93192010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9320
9321 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
9322
4ab92842
LM
93232010-05-05 Lawrence Mitchell <wence@gmx.li>
9324
9325 * m/sparc.h: Fix typo in earlier change.
9326
178f2507
SM
93272010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9328
9329 Misc tweaks.
9330 * eval.c (Fdefvaralias): Remove unintended nested if.
9331 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
9332
80f00217 93332010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
9334
9335 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
9336
ef03a4e6
DN
93372010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9338
58eb6cf0
DN
9339 Remove BSD_PGRPS.
9340 * s/bsd-common.h (BSD_PGRPS): Remove undef.
9341 * s/gnu-linux.h (BSD_PGRPS): Remove.
9342 * term.c (dissociate_if_controlling_tty):
9343 * sysdep.c (narrow_foreground_group, widen_foreground_group)
9344 (init_sys_modes, reset_sys_modes):
9345 * emacs.c (main):
9346 * callproc.c (Fcall_process, child_setup): Remove code depending
9347 on BSD_PGRPS.
9348
ef03a4e6
DN
9349 Remove POSIX_SIGNALS.
9350 * s/usg5-4.h (POSIX_SIGNALS):
9351 * s/netbsd.h (POSIX_SIGNALS):
9352 * s/msdos.h (POSIX_SIGNALS):
9353 * s/ms-w32.h (POSIX_SIGNALS):
9354 * s/hpux11.h (POSIX_SIGNALS):
9355 * s/gnu.h (POSIX_SIGNALS):
9356 * s/gnu-linux.h (POSIX_SIGNALS):
9357 * s/freebsd.h (POSIX_SIGNALS):
9358 * s/darwin.h (POSIX_SIGNALS):
9359 * s/cygwin.h (POSIX_SIGNALS):
9360 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
9361 * s/unixware.h:
9362 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
9363 * process.c (create_process):
9364 * syssignal.h:
9365 * sysdep.c (wait_for_termination, init_signals):
9366 * process.c (create_process):
9367 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
9368 remove all code that assumes the contrary.
9369
49628785
GM
93702010-05-04 Glenn Morris <rgm@gnu.org>
9371
27a2cdfc
GM
9372 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
9373 variable.
9374 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9375 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
9376 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9377 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
9378 LD_SWITCH_SYSTEM_tmp.
9379 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
9380 New variables, set by configure.
9381
eb21eab5
GM
9382 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9383 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
9384 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9385 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
9386 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
9387
49628785
GM
9388 * s/aix4-2.h (C_SWITCH_SYSTEM):
9389 * m/alpha.h (C_SWITCH_MACHINE):
9390 Move to configure.in.
9391 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
9392 New variables, set by configure.
9393 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
9394 $c_switch_machine and $c_switch_system.
9395
7dff330b
DN
93962010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9397
9398 * s/hpux10-20.h (LIB_STANDARD): New definition.
9399 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
9400 on it, not used anymore.
9401
53967e09
CY
94022010-05-03 Chong Yidong <cyd@stupidchicken.com>
9403
9404 * eval.c (internal_condition_case_n): Rename from
9405 internal_condition_case_2.
9406 (internal_condition_case_2): New function.
9407
9408 * xdisp.c (safe_call): Use internal_condition_case_n.
9409
9410 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
9411 (internal_delete_file, Frename_file): Callers changed.
9412
9413 * buffer.c (Fkill_buffer):
9414 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
9415
9416 * lisp.h: Update prototypes.
9417
3dee6fdb
GM
94182010-05-03 Glenn Morris <rgm@gnu.org>
9419
9420 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
9421 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
9422 (LIBXT): Set with configure, not cpp.
9423 (LIBX): Remove.
9424 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
9425
a101e0fb
DN
94262010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9427
9428 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
9429 The FreeBSD is not needed, the default works, Solaris version is
9430 not needed, and the remaining case is not supported by configure.
9431
f63d0028
JD
94322010-05-02 Jan Djärv <jan.h.d@swipnet.se>
9433
9434 * xsmfns.c (CHDIR_OPT): New define.
9435 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
9436 restarting emacs.
9437
9438 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
9439 shut_down_emacs.
9440
9441 * emacs.c (USAGE1): Mention --chdir.
9442 (main): Handle --chdir.
9443 (standard_args): Add --chdir.
9444 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
9445 #5552).
9446
e4814a9f
DN
94472010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
9448
cd03c74a
DN
9449 Remove LD_SWITCH_MACHINE.
9450 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
9451 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
9452
c3a398a1
DN
9453 Clean up IRIX code.
9454 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
9455 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
9456
87e7285c
DN
9457 Clean up AIX code.
9458 * m/ibmrs6000.inp: Remove file, unused.
9459 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
9460 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
9461 definition ...
9462 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
9463
80f00217
JB
9464 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
9465 unused.
e4814a9f 9466
59ca28de
EZ
94672010-05-01 Eli Zaretskii <eliz@gnu.org>
9468
197daef4
EZ
9469 Emulate POSIX_SIGNALS on MS-Windows.
9470
9471 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
9472 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
9473
9474 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
9475 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
9476 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
9477
80f00217
JB
9478 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
9479 New stubs.
197daef4 9480
af7c7572
EZ
9481 Miscellaneous fixes of bidi display.
9482
59ca28de
EZ
9483 * xdisp.c (find_row_end): New function, refactored from display_line.
9484 (display_line): Use it.
017ea819
EZ
9485 (extend_face_to_end_of_line): In almost-filled rows, extend only
9486 if the row is R2L and not continued.
166e930d 9487 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 9488 Preserve overlay and string info in row->end.
166e930d
EZ
9489 (insert_left_trunc_glyphs): Support addition of left truncation
9490 glyphs to R2L rows.
b47e0dcf 9491 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
9492 glyph between adjacent windows. Fix a crash when a display string
9493 is continued to the next line. Don't return zero if cursor was
9494 found by `cursor' property of a display string.
b47e0dcf
EZ
9495 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
9496 test for that explicitly.
59ca28de 9497
7acac9f4
GM
94982010-05-01 Glenn Morris <rgm@gnu.org>
9499
9500 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
9501 for clarity.
9502 (OTHER_OBJ): Remove.
9503 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
9504 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
9505
45841e65
KK
95062010-05-01 Karel Klíč <kklic@redhat.com>
9507
9508 * fileio.c (Ffile_selinux_context): Context functions may return null.
9509
afc61943
DN
95102010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
9511
80f00217 9512 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 9513
5a1bb006
GM
95142010-04-30 Glenn Morris <rgm@gnu.org>
9515
9516 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
9517 (OTHER_OBJ): Define as a separate variable, for clarity.
9518
210af043
J
95192010-04-30 Jan Djärv <jan.h.d@swipnet.se>
9520
2f8f196d 9521 * xsettings.c: Include limits.h and update file comment.
210af043 9522
0a7df391
GM
95232010-04-30 Glenn Morris <rgm@gnu.org>
9524
d5096f16
GM
9525 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
9526 Set with configure, not cpp.
9527 (LIBW): Remove, replace with $TOOLKIT_LIBW.
9528
7eb1ac33
GM
9529 * Makefile.in (mallocobj): Remove.
9530 (otherobj): Simplify using @OTHER_OBJ@.
9531
517d086b
GM
9532 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
9533 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
9534 Don't bother making nsgui.h dependency platform-specific.
9535
0a7df391
GM
9536 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
9537
d6d23852
SM
95382010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
9539
d2630aef
SM
9540 * process.c (read_process_output, exec_sentinel): Don't burp if the
9541 sentinel/filter kills the current buffer (bug#6060).
9542
f9dddf52 9543 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
9544 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
9545 Remove unused var `args'.
9546 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
9547 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
9548 * doc.c (store_function_docstring): Use XSETCAR.
9549
f1e3642a
GM
95502010-04-28 Glenn Morris <rgm@gnu.org>
9551
faf535f8
GM
9552 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
9553 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
9554
c40f9449
GM
9555 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
9556
658f86ca
GM
9557 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
9558 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
9559
bc0b5f61
GM
9560 * Makefile.in (FONT_OBJ): New, set by configure.
9561 (FONT_DRIVERS): Use $FONT_OBJ.
9562
294c50a0
GM
9563 * Makefile.in (LIBXMU): Set with configure, not cpp.
9564 * s/aix4-2.h (LIBXMU):
9565 * s/hpux10-20.h (LIBXMU):
9566 Remove definition, now set in configure.
9567
e6ec4e99
GM
9568 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
9569
f1e3642a
GM
9570 * m/amdx86-64.h [i386]: Move this test to configure.in.
9571
c6ea2936
GM
95722010-04-27 Glenn Morris <rgm@gnu.org>
9573
8fdac2c3
GM
9574 * Makefile.in (LIBXTR6): Set with configure, not cpp.
9575 * s/unixware.h (NEED_LIBW): Remove definition.
9576
986fb647
GM
9577 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
9578 (TOOLKIT_LIBW): New, set by configure.
9579 (@X_TOOLKIT_TYPE@): No longer define it.
9580
c6ea2936
GM
9581 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
9582 (MOTIF_LIBW): Set with configure, not cpp.
9583 * s/aix4-2.h (LIB_MOTIF):
9584 * s/gnu-linux.h (LIB_MOTIF):
9585 * s/unixware.h (LIB_MOTIF): Move to configure.in.
9586
aaa36002
DN
95872010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
9588
9589 Reduce CPP usage.
9590 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
9591 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
9592 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
9593 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 9594 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 9595
b678dd8b
GM
95962010-04-27 Glenn Morris <rgm@gnu.org>
9597
76cda504
GM
9598 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9599 since the defaults (set by the system file) are fine in most cases.
9600 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9601 * m/ibms390x.h (START_FILES, LIB_STANDARD):
9602 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9603 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9604 Remove definitions, since they are set correctly in s/gnu-linux.h.
9605 * s/freebsd.h (START_FILES, LIB_STANDARD):
9606 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9607 * s/hpux10-20.h (START_FILES):
9608 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9609 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9610
b678dd8b
GM
9611 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9612 (MOTIF_LIBW): Use $LIBXP.
9613 (otherobj): Use $WIDGET_OBJ.
9614
9452ded1
DN
96152010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
9616
7e10844c
DN
9617 * Makefile.in (LIBS_MACHINE): Remove, unused.
9618
9452ded1
DN
9619 Use autoconf instead of cpp for LIB_MATH.
9620 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9621 * s/cygwin.h (LIB_MATH): Likewise.
9622 * Makefile.in (LIB_MATH): Do not define with cpp.
9623 (LIBES): Use autoconf for LIB_MATH.
9624
fcebfc6a
KH
96252010-04-26 Kenichi Handa <handa@m17n.org>
9626
9627 * composite.c (Ffind_composition_internal): Fix the return value
9628 for an automatic composition.
9629
39e2ad1b
DN
96302010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
9631
9632 Remove all NO_ARG_ARRAY uses.
9633 * fns.c (concat2, concat3, nconc2):
9634 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9635 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9636 * m/xtensa.h (NO_ARG_ARRAY):
9637 * m/template.h (NO_ARG_ARRAY):
9638 * m/sparc.h (NO_ARG_ARRAY):
9639 * m/sh3.h (NO_ARG_ARRAY):
9640 * m/mips.h (NO_ARG_ARRAY):
9641 * m/macppc.h (NO_ARG_ARRAY):
9642 * m/iris4d.h (NO_ARG_ARRAY):
9643 * m/intel386.h (NO_ARG_ARRAY):
9644 * m/ibms390x.h (NO_ARG_ARRAY):
9645 * m/ibms390.h (NO_ARG_ARRAY):
9646 * m/ibmrs6000.h (NO_ARG_ARRAY):
9647 * m/ia64.h (NO_ARG_ARRAY):
9648 * m/hp800.h (NO_ARG_ARRAY):
9649 * m/arm.h (NO_ARG_ARRAY):
9650 * m/amdx86-64.h (NO_ARG_ARRAY):
9651 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9652
adf4f59c
EZ
96532010-04-25 Eli Zaretskii <eliz@gnu.org>
9654
6bdf5d65
EZ
9655 * xdisp.c (display_line): Don't assume 2nd call to
9656 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
9657 (iterate_out_of_display_property): New function, body from pop_it.
9658 (pop_it): Use it.
adf4f59c 9659
dfbbda83
GM
96602010-04-24 Glenn Morris <rgm@gnu.org>
9661
9662 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9663 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9664 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9665 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
9666
2d4018aa
EZ
96672010-04-24 Eli Zaretskii <eliz@gnu.org>
9668
a49884a6
EZ
9669 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9670 use `get_next_display_element' and `set_iterator_to_next' to
9671 advance to the next character, when looking for the character that
9672 begins the next row.
9673
76db6fcc 9674 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
9675 definition of "struct Lisp_Symbol".
9676
70eab5c1
GM
96772010-04-24 Glenn Morris <rgm@gnu.org>
9678
9679 * Makefile.in (CRT_DIR): New variable, set by configure.
9680 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9681 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
9682
1ad4cc3d
DN
96832010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9684
e769f484
DN
9685 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9686
4196ff33
DN
9687 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9688
879b0ee4
DN
9689 Remove redundant flags.
9690 * s/freebsd.h (C_SWITCH_SYSTEM):
9691 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9692 * s/netbsd.h (C_SWITCH_SYSTEM):
9693 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9694 of these.
9695
03cbbcb8
DN
9696 Simplify m/intel386.h.
9697 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9698 user: ecrt0.c.
9699 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
9700 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
9701 the only user: s/unixware.h.
9702 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
9703 from m/intel386.h.
bba3e508
SM
9704 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
9705 Definitions moved here from m/intel386.h.
03cbbcb8 9706
1ad4cc3d
DN
9707 * m/mips.h: Remove #if 0 code.
9708
8785b888
EZ
97092010-04-23 Eli Zaretskii <eliz@gnu.org>
9710
728588cc
EZ
9711 Fix display of composed characters from L2R scripts in bidi buffers.
9712 * xdisp.c (set_iterator_to_next, next_element_from_composition):
9713 After advancing IT past the composition, resync the bidi iterator
9714 with IT's position. (Bug#5977)
9715
a63f80b4
DN
97162010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9717
9718 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9719 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9720
ff5dec5c
SM
97212010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9722
9723 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9724
8785b888
EZ
97252010-04-23 Eli Zaretskii <eliz@gnu.org>
9726
58ccf243 9727 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
9728 * xdisp.c (pop_it): When the stack is popped after displaying
9729 from a string, bidi-iterate to exit from the text portion covered
9730 by the `display' property or overlay. (Bug#5988, bug#5920)
9731
feeb1604
DN
97322010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9733
8e324eb6
DN
9734 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9735 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9736
809fcaba
DN
9737 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9738 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9739
ed710380
DN
9740 Simplify STARTFILES definition.
9741 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9742 relying on Makefile.in to define it.
9743 * s/cygwin.h (START_FILES): Likewise.
9744 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
9745
feeb1604
DN
9746 Clean up Solaris code.
9747 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
9748 (LIB_MOTIF): Remove, configure takes care of this.
9749 (NOT_USING_MOTIF): Remove, unused.
9750 * xrdb.c: Remove #if 0-ed #include.
9751 (SYSV): Remove conditional for old SysV.
9752 * sysdep.c (closedir): Remove conditional code for Solaris,
9753 Solaris has closedir.
9754
a0d0b563
JD
97552010-04-22 Jan Djärv <jan.h.d@swipnet.se>
9756
9757 * xsettings.c (read_and_apply_settings): Check if current_font is
9758 NULL before strcmp (Bug#6001).
9759
56bae7c7
DN
97602010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
9761
9762 Clean up HP-UX files.
9763 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
9764 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
9765 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
9766 * s/hpux10-20.h: ... to the only user, here.
9767
372b7a95
EZ
97682010-04-21 Eli Zaretskii <eliz@gnu.org>
9769
9770 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
9771 use buffer-local values of paragraph-start and paragraph-separate.
9772 <paragraph_start_re, paragraph_separate_re>: Rename from
9773 fallback_paragraph_start_re and fallback_paragraph_separate_re.
9774 (Bug#5992)
9775
f904c0f9
JD
97762010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9777
9778 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
9779 current_tool_bar_style are new.
9780 (store_config_changed_event): Rename from store_font_changed_event.
9781 (XSETTINGS_TOOL_BAR_STYLE): New define.
9782 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
9783 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
9784 HAVE_XFT.
9785 (something_changedCB): store_font_changed_event is now
c4cc8b9a 9786 store_config_changed_event.
bba3e508
SM
9787 (parse_settings): Rename from parse_xft_settings.
9788 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 9789 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
9790 (apply_xft_settings): Take current settings as parameter. Do not
9791 call read_(xft)_settings.
9792 (read_and_apply_settings): New function.
bba3e508
SM
9793 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
9794 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 9795 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
9796 Call read_and_apply_settings unconditionally.
9797 (xsettings_initialize): Call init_xsettings.
9798 (Ftool_bar_get_system_style): New function.
9799 (syms_of_xsettings): Define Qmonospace_font_name and
9800 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 9801 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 9802 dynamic-setting.
01c35094 9803 Move misplaced HAVE_GCONF.
f904c0f9
JD
9804
9805 * xsettings.h (Ftool_bar_get_system_style): Declare.
9806
9807 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
9808 Qtext, Qboth, Qboth_horiz are new.
9809 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
9810 Vtool_bar_style, tool_bar_max_label_size.
9811
9812 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
9813
9814 * keyboard.c: QClabel is new.
9815 (parse_tool_bar_item): Take out QClabel from tool bar items.
9816 Try to construct a label if ther is no QClabel.
9817 (syms_of_keyboard): Intern :label as QClabel.
9818
9819 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
9820 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
9821 New.
9822
9823 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
9824 dynamic-setting.el.
9825
9826 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
9827 (xg_make_tool_item, xg_show_toolbar_item): New function.
9828 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
9829 Call xg_make_tool_item to make a tool bar item.
9830 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
9831
9832 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
9833 into account for toolbars.
9834
c632dfda
JD
98352010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9836
9837 * data.c (make_blv): Declarations before code (Bug#5993).
9838
10efe302
GM
98392010-04-21 Glenn Morris <rgm@gnu.org>
9840
9841 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
9842 Define using autoconf, not cpp.
9843 (LIBXSM): New variable, set by autoconf.
9844 (LIBXT): Use $LIBXSM.
9845
4285ac5a
DN
98462010-04-21 Dan Nicolaescu <local_user@dannlt>
9847
3ec759e7
DN
9848 Remove NOMULTIPLEJOBS, unused.
9849 * s/template.h (NOMULTIPLEJOBS):
9850 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
9851
4285ac5a
DN
9852 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
9853 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
9854 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
9855 detects -znocombreloc and passes it to the linker
9856 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
9857
2807228d
GM
98582010-04-21 Glenn Morris <rgm@gnu.org>
9859
9860 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
9861
574c05e2
KK
98622010-04-21 Karel Klíč <kklic@redhat.com>
9863
9864 * Makefile.in (LIBSELINUX_LIBS): New.
9865 (LIBES): Add $LIBSELINUX_LIBS.
9866 * eval.c, lisp.h (call7): New function.
9867 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
9868 (Ffile_selinux_context, Fset_file_selinux_context):
9869 New functions.
9870 (Fcopy_file): New parameter preserve-selinux-context.
9871 (Frename_file): Preserve selinux context when renaming by copy-file.
9872
91eac4bb 98732010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 9874 Eli Zaretskii <eliz@gnu.org>
91eac4bb 9875
50426a04
JB
9876 Don't depend on cm.c or termcap.c on Windows, use stubs.
9877 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
9878 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
9879 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
9880 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
9881 (sys_tputs, sys_tgetstr): New stubs.
9882 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
9883 (tputs, tgetstr): New; define to sys_*.
91eac4bb 9884
938efb77
JB
98852010-04-20 Juanma Barranquero <lekktu@gmail.com>
9886
9887 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
9888
b4bf28b7
SM
98892010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9890
8b1e1112
SM
9891 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
9892 Just signal a warning rather than an error when inside a let.
9893 (Fmake_variable_frame_local): Add the same test.
9894
933ac235
SM
9895 * font.c (syms_of_font): Make the style table vars read-only.
9896
b4bf28b7
SM
9897 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
9898 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
9899
9900 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
9901
93d68d0c
EZ
99022010-04-20 Eli Zaretskii <eliz@gnu.org>
9903
9904 Fix R2L paragraph display on TTY.
9905
9906 * xdisp.c (unproduce_glyphs): New function.
9907 (display_line): Use it when produced glyphs are discarded from R2L
9908 glyph rows.
9909 (append_composite_glyph): In R2L rows, prepend the glyph rather
9910 than appending it.
9911
9912 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
9913 rather than append it. Set up the resolved_level and bidi_type
9914 attributes of the appended glyph.
283ccc18
EZ
9915 (produce_special_glyphs): Mirror the backslash continuation
9916 character in R2L lines.
93d68d0c 9917
283ccc18 9918 Implement display of R2L paragraphs in GUI sessions.
26cdf528 9919
283ccc18
EZ
9920 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
9921 append_stretch_glyph.
bba3e508
SM
9922 (set_cursor_from_row) <cursor_x>: Remove unused variable.
9923 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
9924 (append_stretch_glyph): In reversed row, prepend the glyph rather
9925 than append it. Set resolved_level and bidi_type of the glyph.
9926 (extend_face_to_end_of_line): If the row is reversed, prepend a
9927 stretch glyph whose width is such that the rightmost glyph will be
9928 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
9929 TTY frames in testing whether a line needs face extension.
9930 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
9931 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
9932 region face.
bba3e508
SM
9933 (set_cursor_from_row, display_line):
9934 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 9935 row->continuation_lines_width.
283ccc18
EZ
9936 (next_element_from_buffer): Don't call bidi_paragraph_init if we
9937 are at ZV. Fixes a crash when reseated to ZV by
9938 try_window_reusing_current_matrix.
45903529
EZ
9939 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
9940 which happens with R2L glyph rows. Fixes a crash when inserting a
9941 character at end of an R2L line.
283ccc18
EZ
9942 (set_cursor_from_row): Don't be fooled by truncated rows: don't
9943 treat them as having zero-width characters. Improve comments.
9944 Don't reverse pos_before and pos_after for reversed glyph rows.
9945 Set cursor.x to negative value when the cursor might be on the
9946 left fringe.
9947 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
9948 left fringe, not the right one.
f951a506
EZ
9949 (notice_overwritten_cursor, draw_phys_cursor_glyph)
9950 (erase_phys_cursor): For reversed cursor_row, support cursor on
9951 the left fringe.
9952
283ccc18
EZ
9953 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
9954 of continuation indicators on the fringes.
9955 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
9956 left fringe.
9957
f951a506
EZ
9958 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
9959 draw cursor on the left fringe.
9960
9961 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
9962 cursor on the left fringe.
9963
f951a506
EZ
9964 * dispnew.c (update_text_area): Handle reversed desired rows when
9965 the cursor is on the left fringe.
9966 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
9967 below, not by 0, for when the cursor is on the left fringe.
9968
3bb49aaf
JD
99692010-04-20 Jan Djärv <jan.h.d@swipnet.se>
9970
9971 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
9972 widget is a scrollbar.
9973
c0be27fd
KH
99742010-04-20 Kenichi Handa <handa@m17n.org>
9975
9976 * charset.c (char_charset): Consider Vcharset_non_preferred_head
9977 only when the arg CHARSET_LIST is nil.
9978
ce5b453a
SM
99792010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9980
9981 Make variable forwarding explicit rather the using special values.
9982 Basically, this makes the structure of buffer-local values and object
9983 forwarding explicit in the type of Lisp_Symbols rather than use
9984 special Lisp_Objects for that. This tends to lead to slightly more
9985 verbose code, but is more C-like, simpler, and makes it easier to make
9986 sure we handled all cases, among other things by letting the compiler
9987 help us check it.
9988 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
9989 Removing forwarding objects.
9990 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
9991 (struct Lisp_Symbol): Make the various forms of variable-forwarding
9992 explicit rather than hiding them inside Lisp_Object "values".
9993 (XFWDTYPE): New macro.
9994 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
9995 (XBUFFER_LOCAL_VALUE): Remove.
9996 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
9997 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
9998 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
9999 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
10000 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
10001 Remove the Lisp_Misc_* header.
10002 (struct Lisp_Buffer_Local_Value): Redefine.
10003 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
10004 (struct Lisp_Misc_Any): Add filler to get the right size.
10005 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
10006 Lisp_Intfwd.
10007 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
10008 (DEFVAR_KBOARD): Allocate a forwarding object.
10009 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
10010 (let_shadows_global_binding_p): New function.
10011 (union Lisp_Val_Fwd): New type.
10012 (make_blv): New function.
10013 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
10014 (store_symval_forwarding, swap_in_global_binding, Fboundp)
10015 (swap_in_symval_forwarding, find_symbol_value, Fset)
10016 (let_shadows_buffer_binding_p, set_internal, default_value)
10017 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
10018 (Fkill_local_variable, Fmake_variable_frame_local)
10019 (Flocal_variable_p, Flocal_variable_if_set_p)
10020 (Fvariable_binding_locus):
10021 * xdisp.c (select_frame_for_redisplay):
10022 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
10023 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
10024 * frame.c (store_frame_param):
10025 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
10026 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
10027 value structure.
10028 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
10029 (clone_per_buffer_values): Only adjust markers into the current buffer.
10030 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
10031 (Fbuffer_local_value, set_buffer_internal_1)
10032 (swap_out_buffer_local_variables):
10033 Adapt to the new symbol value structure.
10034 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
10035 (defvar_per_buffer): Take a new arg for the fwd object.
10036 (buffer_lisp_local_variables): Return a proper alist (different fix
10037 for bug#4138).
10038 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
10039 (Fgarbage_collect): Don't handle buffer_defaults specially.
10040 (mark_object): Handle new symbol value structure rather than the old
10041 special Lisp_Misc_* objects.
10042 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
10043 * term.c (set_tty_color_mode):
10044 * bidi.c (bidi_initialize): Don't access the ->value field directly.
10045 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
10046 a buffer_local_flags.
10047 * print.c (print_object): Get rid of impossible forwarding objects.
10048
fd3998ff
EZ
100492010-04-19 Eli Zaretskii <eliz@gnu.org>
10050
10051 * bidi.c (bidi_get_type, bidi_get_category)
10052 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
10053 (bidi_type_of_next_char, bidi_level_of_next_char):
10054 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 10055
e42cd1a7
JB
100562010-04-19 Juanma Barranquero <lekktu@gmail.com>
10057
10058 * dired.c (Ffile_attributes): Fix typo in docstring.
10059
6e104790 100602010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
10061
10062 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
10063 NSInteger (Bug#5811).
10064
6e104790 100652010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
10066
10067 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
10068 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
10069
6e104790 100702010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
10071
10072 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
10073
6e104790
SM
100742010-04-19 Chong Yidong <cyd@stupidchicken.com>
10075
10076 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
10077 terminal frames (Bug#5837).
10078
37dcfea0
EZ
100792010-04-19 Eli Zaretskii <eliz@gnu.org>
10080
d1da276f
EZ
10081 * .gdbinit (xsubchartable): New command.
10082
37dcfea0
EZ
100832010-04-19 Eli Zaretskii <eliz@gnu.org>
10084
10085 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 10086 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
10087 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
10088 and
10089 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
10090
e9515805
SM
100912010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10092
10093 * alloc.c (Fpurecopy): Hash-cons if requested.
10094 (syms_of_alloc): Update purify-flag docstring.
10095
22aa44a8
JD
100962010-04-18 Jan Djärv <jan.h.d@swipnet.se>
10097
10098 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
10099 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
10100
ebb5722e
EZ
101012010-04-17 Eli Zaretskii <eliz@gnu.org>
10102
10103 Fix a crash when an NSM character is inserted at BEGV.
10104
10105 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
10106 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
10107 NEUTRAL_B or UNKNOWN_BT.
10108
0f4442ef
EZ
101092010-04-16 Eli Zaretskii <eliz@gnu.org>
10110
10111 * xdisp.c (set_cursor_from_row): Don't consider possibility of
10112 other rows with cursor unless they are different from this row and
10113 this row is part of a continued line. (Bug#5943)
10114
7d4e45f8
DN
101152010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
10116
10117 * s/freebsd.h: Restore osreldate.h include.
10118 Suggested by Naohiro Aota.
10119
5ba5ec85
J
101202010-04-16 Jan Djärv <jan.h.d@swipnet.se>
10121
10122 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
10123
20af301d
CY
101242010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
10125
10126 * s/cygwin.h: Avoid linking against static libgcc.
10127
a4b000fb
JL
101282010-04-15 Juri Linkov <juri@jurta.org>
10129
10130 * window.c: Add Qscroll_command.
10131 Remove Vscroll_preserve_screen_position_commands.
10132 (window_scroll_pixel_based, window_scroll_line_based): Check the
10133 `scroll-command' property on the last command instead of searching
10134 the last command in Vscroll_preserve_screen_position_commands.
10135 (syms_of_window): Initialize and staticpro `Qscroll_command'.
10136 Put Qscroll_command property on Qscroll_up and Qscroll_down.
10137 (scroll-preserve-screen-position): Doc fix.
10138 (Vscroll_preserve_screen_position_commands): Remove variable.
10139
bc319ba4
DN
101402010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
10141
6bb24457
DN
10142 * xdisp.c (message): Do not use NO_ARG_ARRAY.
10143
19d4c244
DN
101442010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
10145
10146 Reduce cpp use in Makefile.in.
10147 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
10148 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
10149 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
10150 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
10151 (CRT0_COMPILE): Remove, inline it in the only user.
10152
32129746
JL
101532010-04-14 Juri Linkov <juri@jurta.org>
10154
10155 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
10156 `scroll-up-command' and `M-v' from `scroll-down' to
10157 `scroll-down-command'.
10158
9013a7f8
JL
101592010-04-14 Juri Linkov <juri@jurta.org>
10160
10161 * window.c (Vscroll_preserve_screen_position_commands): New variable
10162 with the default value as the list of Qscroll_down and Qscroll_up.
10163 (window_scroll_pixel_based, window_scroll_line_based): Search the
10164 last command in the list Vscroll_preserve_screen_position_commands
10165 instead of comparing with Qscroll_up and Qscroll_down.
10166
4bef8d26
JD
101672010-04-13 Jan Djärv <jan.h.d@swipnet.se>
10168
92848133
JD
10169 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
10170 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
10171 does that.
10172
4bef8d26
JD
10173 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
10174 to zero.
10175
58b963f7
SM
101762010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10177
84164a0d
SM
10178 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
10179
2b0a91e7
SM
10180 Try to solve the problem of spurious EOF chars in long lines of text
10181 sent to interactive subprocesses.
10182 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
10183 (system_process_attributes): Remove unused var `ttotal'.
10184 * process.c (send_process): Don't bother breaking long line with EOF
10185 chars when talking to ttys any more.
10186 (wait_reading_process_output): Output a warning when called in such
10187 a way that it could block without being interruptible.
10188
58b963f7
SM
10189 Try to detect file modification within the same second.
10190 * buffer.h (struct buffer): New field modtime_size.
10191 * buffer.c (reset_buffer): Initialize it.
10192 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
10193 (Fverify_visited_file_modtime): Check it.
10194 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
10195 (Fset_visited_file_modtime): Set (or clear) it.
10196
01f5787b
SM
101972010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10198
10199 * process.c (status_notify): Remove unused var `ro'.
10200
83725342
JD
102012010-04-12 Jan Djärv <jan.h.d@swipnet.se>
10202
10203 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
10204 more than one visual (Bug#5938).
10205
b9465836
DN
102062010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10207
50426a04
JB
10208 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
10209 Undefine.
b9465836 10210
8d9c8ece
DN
102112010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
10212
b1f52161
DN
10213 Remove C_SWITCH_SYSTEM_TEMACS.
10214 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
10215 (malloc, realloc, free): Use emacs, not temacs for conditional
10216 definition.
10217
10218 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
10219 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
10220
8d9c8ece
DN
10221 Use autoconf, not cpp for some variables.
10222 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
10223 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
10224 (ALL_CFLAGS): Use them as make variables.
10225 (really-lwlib, really-oldXMenu): Do not pass them.
10226
1ecb2d3f
JD
102272010-04-11 Jan Djärv <jan.h.d@swipnet.se>
10228
10229 * xmenu.c (apply_systemfont_to_dialog): New.
10230 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
10231
3a4fa2f2
SM
102322010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10233
97e53006
SM
10234 * process.c (exec_sentinel): Preserve current-buffer.
10235
3a4fa2f2
SM
10236 * process.c (read_process_output): Move the save-current-buffer to
10237 apply to both the filter and the non-filter branches.
10238
88df7221
DN
102392010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
10240
10241 * s/msdos.h (UNEXEC): New definition.
10242
5634ff85
YM
102432010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10244
6eff5c3d
YM
10245 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
10246 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
10247
10248 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
10249 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
10250 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
10251 TRY_WINDOW_CHECK_MARGINS.
10252
10253 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
10254 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
10255 width only when it is for padding.
5634ff85 10256
b13aef54
J
102572010-04-09 Jan Djärv <jan.h.d@swipnet.se>
10258
10259 * xfns.c (Fx_show_tip): Call try_window in a loop until
10260 fonts_changed_p is zero (Bug#2423).
10261
21d28484
EZ
102622010-04-08 Eli Zaretskii <eliz@gnu.org>
10263
10264 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
10265 the end of TEXT_AREA. (Bug#5856)
10266
0269ef77
JD
102672010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10268
10269 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
10270 HAVE_GCONF.
10271
5930fe97
EZ
102722010-04-08 Eli Zaretskii <eliz@gnu.org>
10273
10274 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
10275 prev.orig_type, for resolving type of NSM. (Bug#5858)
10276
99852628
JD
102772010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10278
10279 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
10280 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
10281 in current_font.
10282 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
10283 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
10284 New functions.
10285 (syms_of_xsettings): Initialize current_font.
10286 defsubr Sfont_get_system_normal_font.
99852628 10287
686b968e
JB
10288 * xsettings.h (Ffont_get_system_normal_font)
10289 (xsettings_get_system_normal_font): Declare.
99852628
JD
10290
10291 * xfns.c (extern xlwmenu_default_font): Remove.
10292 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
10293 to xlwmenu.c.
10294
10295 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
10296 menu items in UTF-8.
10297
2f8f196d 10298 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
99852628 10299 (apply_systemfont_to_menu): New function.
bba3e508
SM
10300 (set_frame_menubar, create_and_show_popup_menu):
10301 Call apply_systemfont_to_menu.
99852628 10302
7fc874c4
J
103032010-04-07 Jan Djärv <jan.h.d@swipnet.se>
10304
10305 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
10306 FRAME_LINE_TO_PIXEL_Y.
10307
10308 * xterm.c (x_set_window_size_1): Don't add border_width/height to
10309 pixelwidth/height.
10310
863bf481
DN
103112010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
10312
5e5a3b92
DN
10313 Simplify code for HP machines.
10314 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
10315 for GNU_LINUX, not needed.
10316 (UNEXEC, NEED_BSDTTY): Move definitions...
10317 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
10318
863bf481
DN
10319 * m/iris4d.h (UNEXEC): Move definition ...
10320 * s/irix6-5.h (UNEXEC): ... here.
10321
3e6bec3b
JD
103222010-04-04 Jan Djärv <jan.h.d@swipnet.se>
10323
10324 * xfns.c (set_machine_and_pid_properties): New function.
10325 (Fx_create_frame): Call set_machine_and_pid_properties.
10326
2912322b
SM
103272010-04-03 Eli Zaretskii <eliz@gnu.org>
10328
bba3e508
SM
10329 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
10330 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
10331 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
10332
2912322b
SM
10333 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
10334 in this function. (Bug#5703)
10335
103362010-04-03 Chong Yidong <cyd@stupidchicken.com>
10337
10338 * nsterm.h: Fix last change.
10339
c435b432
DN
103402010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
10341
a568f507
DN
10342 * m/intel386.h (NO_REMAP): Move definition ...
10343 * s/msdos.h (NO_REMAP): ... here.
10344
4cd9f6c2
DN
10345 * m/vax.h (CRT0_DUMMIES): Remove, unused.
10346
c435b432
DN
10347 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
10348 used on those platforms.
10349
42a2c622
DN
103502010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
10351
10352 Remove extern errno declarations.
10353 * xterm.c:
10354 * xrdb.c:
10355 * w32term.c:
10356 * unexec.c:
10357 * unexaix.c:
10358 * sysdep.c:
10359 * process.c:
10360 * lread.c:
10361 * keyboard.c:
10362 * floatfns.c:
10363 * filelock.c:
10364 * fileio.c:
10365 * emacs.c (main):
10366 * ecrt0.c:
10367 * dispnew.c:
10368 * callproc.c:
10369 * buffer.c: Remove errno extern declarations.
10370 * s/netbsd.h (NEED_ERRNO): Remove.
10371
8224f93d
DN
103722010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
10373
10374 Remove all uses of LIBX11_SYSTEM.
10375 * Makefile.in (LIBX11_SYSTEM): Remove.
10376 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
10377 instead.
10378
814062c7
EZ
103792010-04-01 Eli Zaretskii <eliz@gnu.org>
10380
ed68db4d
EZ
10381 Remove support for DJGPP v1.x (bug#5813).
10382
10383 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
10384 * s/msdos.h:
10385 * unexec.c (make_hdr, copy_text_and_data):
10386 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 10387 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
10388 (IT_set_terminal_modes, __write, _rename, gethostname)
10389 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
10390 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
10391 the value of __DJGPP__.
ed68db4d
EZ
10392 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
10393 compatibility code.
8224f93d
DN
10394 * lread.c:
10395 * gmalloc.c (memalign):
10396 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
10397 * emacs.c (main):
10398 * dosfns.c (init_dosfns):
ed68db4d
EZ
10399 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
10400
52f4d8d5
EZ
104012010-04-01 Eli Zaretskii <eliz@gnu.org>
10402
814062c7
EZ
10403 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
10404 string with `cursor' property comes from an `after-string'
10405 overlay. (Bug#5816)
10406
0dc2e11d
GM
104072010-04-01 Glenn Morris <rgm@gnu.org>
10408
10409 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
10410 Define as Makefile variables.
10411 (LIBX): Use above variables rather than directly using autoconf.
10412
1d29df59
DN
104132010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
10414
10415 Clean up BSD_SYSTEM use.
10416 * xterm.c:
10417 * process.c:
10418 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
10419 for including <sys/ioctl.h>.
10420 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
10421 code is only used for MSDOS.
10422
1546c559
JL
104232010-03-31 Juri Linkov <juri@jurta.org>
10424
10425 * image.c: Add `Qextension_data'.
10426 (syms_of_image): Initialize and staticpro `Qextension_data'.
10427 (Fimage_metadata): Rename from `Fimage_extension_data'.
10428 (gif_load): Put GIF extension data to the property
10429 `Qextension_data'.
10430
6521c534
CY
104312010-03-31 Chong Yidong <cyd@stupidchicken.com>
10432
10433 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
10434 * nsterm.h: Fix prototype.
10435
52c30783
EZ
104362010-03-31 Eli Zaretskii <eliz@gnu.org>
10437
10438 * xdisp.c (highlight_trailing_whitespace): Support highlight of
10439 trailing whitespace in right-to-left rows.
10440
855a0da7
SM
104412010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10442
10443 Get rid of the direct_output optimizations.
10444 * keyboard.c (nonundocount): Remove extern declaration.
10445 (command_loop_1): Remove brittle optimisation for cheap and
10446 common operations.
10447 * xdisp.c (redisplay_internal): Don't bother checking
10448 redisplay_performed_directly_p any more.
10449 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
10450 any more.
10451 * dispnew.c (redisplay_performed_directly_p)
10452 (direct_output_for_insert, direct_output_forward_char):
10453 * dispextern.h (redisplay_performed_directly_p)
10454 (direct_output_for_insert, direct_output_forward_char): Remove.
10455 * cmds.c (nonundocount): Make it static.
10456
85738751 104572010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
10458
10459 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
10460
85738751 104612010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
10462
10463 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
10464 invisible (Bug#5766).
10465
85738751 104662010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 10467
855a0da7
SM
10468 * xdisp.c (x_consider_frame_title, update_window_cursor):
10469 Remove HAVE_NS conditionals.
194d44e7 10470 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
10471
10472 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
10473 filename for the title.
10474 (ns_set_doc_edited): Do nothing if the selected window is a
10475 minibuffer window.
10476
10477 * nsterm.h: Add prototypes for ns_set_name_as_filename and
10478 ns_set_doc_edited.
10479
10480 * nsterm.m: Remove unneeded prototype.
10481
85738751 104822010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
10483
10484 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
10485 in the DOC file. (Bug#5336)
10486
85738751 104872010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
10488
10489 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
10490
75d1428c
SM
104912010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10492
10493 * window.c (keys_of_window): Remove redundant/overridden bindings.
10494
82043cfb
EZ
104952010-03-30 Eli Zaretskii <eliz@gnu.org>
10496
10497 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
10498 Restore original behavior when the iterator is not bidi_p.
10499
b5dd0ae7
DN
105002010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10501
10502 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
10503
bd924a5d
EZ
105042010-03-30 Eli Zaretskii <eliz@gnu.org>
10505
10506 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
10507 are outside the range of cached character positions.
10508
3580374b
JB
105092010-03-30 Juanma Barranquero <lekktu@gmail.com>
10510
10511 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
10512
a7b02820
EZ
105132010-03-30 Eli Zaretskii <eliz@gnu.org>
10514
10515 Initial support for bidirectional editing.
10516
10517 * Makefile.in (obj): Include bidi.o.
10518 (bidi.o): New target.
10519
10520 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
10521 ($(BLD)/bidi.$(O)): New target.
10522
10523 * bidi.c: New file.
10524
10525 * buffer.h (struct buffer): New members bidi_display_reordering
10526 and bidi_paragraph_direction.
10527
10528 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
10529 and bidi_paragraph_direction.
10530 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
10531 and bidi-paragraph-direction.
10532 (Fbuffer_swap_text): Swap the values of
10533 bidi_display_reordering and bidi_paragraph_direction.
10534
10535 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
10536 (bidi_type_t, bidi_dir_t): New types.
10537 (bidi_saved_info, bidi_stack, bidi_it): New structures.
10538 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
10539 prev_stop, base_level_stop, and eol_pos.
10540 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
10541 (IT_STACK_SIZE): Enlarge to 5.
10542 (struct glyph_row): New member reversed_p.
10543 <string_buffer_position>: Update prototype.
10544 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
10545 glyph_row if bidi_it.paragraph_dir == R2L.
10546 (struct glyph): New members resolved_level and bidi_type.
10547
10548 * dispnew.c (direct_output_forward_char): Give up if we need bidi
10549 processing or buffer's direction is right-to-left.
10550 (prepare_desired_row): Preserve the reversed_p flag.
10551 (row_equal_p): Compare the reversed_p attributes as well.
10552
bba3e508
SM
10553 * xdisp.c (init_iterator): Initialize it->bidi_p.
10554 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
10555 buffer's value of bidi_paragraph_direction.
10556 (reseat_1): Initialize bidi_it.first_elt.
10557 (set_iterator_to_next, next_element_from_buffer): Use the value of
10558 paragraph_embedding to determine the paragraph direction.
10559 (set_iterator_to_next): Under bidi reordering, call
10560 bidi_get_next_char_visually. Call bidi_paragraph_init if the
10561 new_paragraph flag is set in the bidi iterator.
10562 (next_element_from_buffer): If bidi_it.first_elt is set,
10563 initialize paragraph direction and find the first character to
10564 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
10565 prime the bidi iterator starting at the line's beginning.
10566 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
10567 non-linearity of the bidi iteration. Likewise for when we back up
10568 beyond the previous stop_charpos. When moving across stop_charpos,
10569 record it in prev_stop.
10570 (display_line): Set row->end and it->start for the next row to the
10571 next character in logical order. Always extend reversed_p rows to
10572 the end of line, even if they end at ZV. Copy the reversed_p flag
10573 to the next glyph row. Keep calling set_cursor_from_row for
10574 bidi-reordered rows even if we already have a possible candidate
10575 for cursor position. Set row_end after all the row's glyphs have
10576 been produced, by looping over the glyphs. Record the position
10577 after EOL in it->eol_pos, and use it to set end_pos of the last
10578 row produced for a continued line.
10579 <Qright_to_left, Qleft_to_right>: New variables.
10580 (syms_of_xdisp): Initialize and staticpro them.
10581 (string_buffer_position_lim): New function.
10582 (string_buffer_position): Most of code moved to
10583 string_buffer_position_lim. Last argument and return value are
10584 now EMACS_INT; all callers changed.
10585 (set_cursor_from_row): Rewritten to support bidirectional text and
10586 reversed glyph rows.
bba3e508
SM
10587 (text_outside_line_unchanged_p, try_window_id):
10588 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
10589 paragraph direction can be affected by the change.
10590 (append_glyph, append_composite_glyph)
10591 (produce_image_glyph, append_stretch_glyph): Set the
10592 resolved_level and bidi_type members of each glyph.
10593 (append_glyph): If the glyph row is reversed, prepend the glyph
10594 rather than appending it.
10595 (handle_stop_backwards): New function.
10596 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2f8f196d 10597 (reseat): Call handle_stop_backwards to recompute prev_stop and
a7b02820
EZ
10598 base_level_stop for the new position.
10599 (handle_invisible_prop): Under bidi iteration, skip invisible text
10600 using bidi_get_next_char_visually. If we are `reseat'ed, init the
10601 paragraph direction. Update IT->prev_stop after skipping
10602 invisible text.
10603 (move_it_in_display_line_to): New variables prev_method
10604 and prev_pos. Compare for strict equality in
10605 BUFFER_POS_REACHED_P.
10606 (try_cursor_movement): Examine all the candidate rows that occlude
10607 point, to return the best match. If rows are bidi-reordered
10608 and point moved backwards, back up to the row that is not a
10609 continuation line, and start looking for a suitable row from
10610 there.
10611
10612 * term.c (append_glyph): Reverse glyphs by pre-pending them,
10613 rather than appending, if the glyph_row's reversed_p flag is set.
10614 Set the resolved_level and bidi_type members of each glyph.
10615
10616 * .gdbinit (pbiditype): New command.
10617 (pgx): Use it to display bidi level and type of the glyph.
10618 (pitx): Display some bidi information about the iterator.
10619 (prowlims, pmtxrows): New commands.
10620
32a8894e
DN
106212010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10622
10623 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10624 * s/usg5-4.h (LIBS_DEBUG):
10625 * s/irix6-5.h (C_DEBUG_SWITCH):
10626 * s/gnu-linux.h (LIBS_DEBUG):
10627 * s/darwin.h (LIBS_DEBUG):
10628 * s/bsd-common.h (LIBS_DEBUG):
10629 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10630 * m/iris4d.h (LIBS_DEBUG):
10631 * m/hp800.h (LIBS_DEBUG): Remove definitions.
10632
10633 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10634 (LIBS_DEBUG): Remove definition.
10635
649dbf36
CY
106362010-03-27 Chong Yidong <cyd@stupidchicken.com>
10637
10638 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10639 Windows.
10640
cad4261f
YM
106412010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10642
10643 * process.c (Fmake_network_process): Don't call turn_on_atimers around
10644 `connect' (Bug#5723).
10645
cd591dbc
HE
106462010-03-25 Helmut Eller <eller.helmut@gmail.com>
10647
10648 * process.c (Fmake_network_process): Call `select' for interrupted
10649 `connect' rather than creating new socket (Bug#5173).
10650
e867cb5d 106512010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
10652
10653 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10654
10655 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10656
10657 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10658
e867cb5d 106592010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
10660
10661 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10662 XLoadQueryFont.
10663
e867cb5d 106642010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
10665
10666 * coding.c (decode_coding_ccl): Fix previous change for the
10667 multibyte case.
fb608df3
KH
10668 (encode_coding_ccl): Don't setup ccl program here. Fix for the
10669 case that the output buffer is fullfilled.
10670 (encode_coding): Setup ccl program here.
fbdc1721 10671
5845f0ed
DN
106722010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
10673
814fb708
DN
10674 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10675
5845f0ed
DN
10676 Simplify LIBS_MACHINE definitions.
10677 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10678 * m/iris4d.h (LIBS_MACHINE): Likewise.
10679 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10680 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 10681 * s/netbsd.h: Remove commented out code.
5845f0ed 10682
b7064064
DN
106832010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
10684
df7734b2
DN
10685 Remove dead code dealing with POSIX_SIGNALS.
10686 * atimer.c (set_alarm): Remove dead code, all USG systems define
10687 POSIX_SIGNALS.
10688 * data.c (arith_error): Likewise.
10689 * keyboard.c (input_available_signal, handle_user_signal)
10690 (interrupt_signal): Likewise.
10691 * process.c (sigchld_handler): Likewise.
10692 (create_process): Remove if 0 code. Remove HPUX conditional when
10693 !defined (POSIX_SIGNALS), it cannot be true.
10694 * syssignal.h: Remove USG5_4 and USG conditionals when
10695 !POSIX_SIGNALS, they cannot be true.
10696
b7064064
DN
10697 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10698 NO_SOCK_SIGIO, not used anymore.
10699
55da5ee3
DN
107002010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
10701
0be96e3a
DN
10702 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
10703 support vax on BSDs.
10704
55da5ee3
DN
10705 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
10706 * s/aix4-2.h (ORDINARY_LINK): ... here.
10707
c0282183
AS
107082010-03-21 Andreas Schwab <schwab@linux-m68k.org>
10709
82c3d67a
AS
10710 * Makefile.in (abs_builddir): Define.
10711 (bootstrap_exe): Use it.
10712 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 10713
3613edce
SM
107142010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10715
10716 * Makefile.in (bootstrap_exe): Use an absolute name.
10717
7f110ddc
DN
107182010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10719
22e87574
DN
10720 Remove support for old GNU/Linux using libc version 5.
10721 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10722 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10723
05a670e6
DN
10724 Consolidate redundant definitions in s/bsd-common.h.
10725 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10726 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10727 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10728 doing it in all files that include this one.
10729 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10730 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10731 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10732 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10733 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10734 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10735 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10736 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10737 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10738
2968f561
DN
10739 Consolidate redundant definitions.
10740 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10741 it's undefined in all files that include this one.
10742 (POSIX_SIGNALS): Define here instead of doing it in all files that
10743 include this one.
10744 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10745 (POSIX_SIGNALS): Do not define.
10746 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10747 (POSIX_SIGNALS): Do not define.
10748 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10749 (POSIX_SIGNALS): Do not define.
10750
15d25dc0 10751 Remove support for old UNIX System V systems.
fe7be221
GM
10752 * s/unixware.h: Add the contents of s/usg5-4-2.h.
10753 * s/usg5-4-2.h: Remove.
15d25dc0 10754
07e339e4
DN
10755 Remove support for Solaris on PPC and for old versions.
10756 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
10757 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
10758 that cancel each other.
10759 * s/sol2-3.h:
10760 * s/sol2-4.h:
10761 * s/sol2-5.h: Remove.
10762 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
10763 (NO_REMAP): Remove, unused.
10764 (UNEXEC): Move definition ...
10765 * s/aix4-2.h (UNEXEC): ... here.
10766
7f110ddc
DN
10767 * s/openbsd.h: Remove support for non-ELF and for systems that do
10768 not support shared libraries.
10769 * s/netbsd.h:
10770 * s/freebsd.h: Likewise.
10771
605f35cd
DN
107722010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10773
10774 Remove non-working support for lynxos 3.0.
10775 * s/lynxos.h: Remove file.
10776
10777 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
10778 COFF_BSD_SYMBOLS, nothing defines it anymore.
10779
aed71cf4
DN
107802010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10781
10782 Remove obsolete uses of HAVE_SHM.
10783 * emacs.c (standard_args):
10784 (Fdump_emacs):
10785 (syms_of_emacs): Remove code depending on HAVE_SHM.
10786
10787 * alloc.c: Remove HAVE_SHM dependent definition.
10788
10789 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
10790
aded53ff
GM
107912010-03-18 Glenn Morris <rgm@gnu.org>
10792
17284745
GM
10793 * emacs.c (USAGE4): Hard-code bug address.
10794 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
10795 (bug_reporting_address): Remove.
10796 (main): Don't call bug_reporting_address.
10797
aded53ff
GM
10798 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
10799 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
10800
303500aa
CY
108012010-03-15 Chong Yidong <cyd@stupidchicken.com>
10802
10803 * xfns.c (Fx_create_frame):
10804 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
10805 on left.
10806
cef3058f
CY
108072010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
10808
10809 * editfns.c (Fformat): Account for string precision when computing
10810 field width (Bug#5710).
10811
a647d59d
CY
108122010-03-12 Chong Yidong <cyd@stupidchicken.com>
10813
4fa42018
CY
10814 * xfns.c (Fx_create_frame): Set default to Qright.
10815
a647d59d
CY
10816 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
10817 all window systems.
10818
6da23aaa
EZ
108192010-03-12 Eli Zaretskii <eliz@gnu.org>
10820
a96f6398 10821 These changes remove termcap.c from the build on Posix platforms.
83d02def 10822 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
10823 (MSDOS_OBJ): ...to here.
10824 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
10825 now identical to when LIBS_TERMCAP is defined.
10826
10827 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
10828
10829 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
10830
a96f6398 10831 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 10832
288f9fc0
CY
108332010-03-10 Chong Yidong <cyd@stupidchicken.com>
10834
10835 * Branch for 23.2.
10836
d48cd3f4
SM
108372010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10838
10839 Cleanup setup of gl_state in various parts of the code.
10840 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
10841 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
10842 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
10843 (skip_chars):
10844 * regex.c (regex_compile): Use it.
10845 (re_compile_pattern): Don't set gl_state.current_syntax_table since
10846 it's now set in regex_compile when/if we need it.
10847
618db430
SM
108482010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
10849
c0335e02
SM
10850 Make it possible to C-g in a tight bytecode loop again (bug#5680).
10851 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
10852 (QUIT): Use it to consolidate code and remove redundancy.
10853 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
10854
254c06a8
SM
10855 * regex.c (regex_compile): Setup gl_state as well.
10856
618db430
SM
10857 * syntax.c (skip_chars): Setup gl_state (bug#3823).
10858 (in_classes): Use CONSP before XCAR/XCDR.
10859
233f0c9f
CY
108602010-03-03 Chong Yidong <cyd@stupidchicken.com>
10861
10862 * keymap.c (Fwhere_is_internal): Use Fequal to compare
10863 definitions, so that keyboard macros are correctly handled
10864 (Bug#5481).
10865
75f80e63
EZ
108662010-03-02 Eli Zaretskii <eliz@gnu.org>
10867
10868 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
10869 text that could be relocated inside the call to emacs_mule_char.
10870 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
10871 (CODING_DECODE_CHAR): Add a comment describing its purpose.
10872
dcfb9bc4
KH
108732010-03-02 Kenichi Handa <handa@m17n.org>
10874
fc9a17bc
KH
10875 * character.c (parse_str_as_multibyte): Fix handling of the
10876 multibyte form of raw-bytes.
10877 (str_as_multibyte): Likewise.
10878
dcfb9bc4
KH
10879 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
10880 form of raw-bytes.
10881
412c01b6
CY
108822010-02-28 Chong Yidong <cyd@stupidchicken.com>
10883
10884 * charset.c (load_charset_map_from_file)
10885 (load_charset_map_from_vector): Zero out allocated
10886 charset_map_entries before using them.
10887
df7e1ea0
AS
108882010-02-27 Andreas Schwab <schwab@linux-m68k.org>
10889
10890 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
10891
fe69a722
CY
108922010-02-27 Chong Yidong <cyd@stupidchicken.com>
10893
4ed28cf4
CY
10894 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
10895 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 10896
7379cfce
KH
108972010-02-26 Kenichi Handa <handa@m17n.org>
10898
f88cc4d6
KH
10899 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
10900
7379cfce
KH
10901 * xdisp.c (reseat_to_string): Fix previous change.
10902
cf2fdcfb
CY
109032010-02-26 David Reitter <david.reitter@gmail.com>
10904
10905 * nsfont.m (nsfont_draw): ns_antialias_text should be a
10906 Lisp_Object (Bug#4736).
10907
cc6c7c75
KH
109082010-02-25 Kenichi Handa <handa@m17n.org>
10909
10910 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
10911
32e737d7
JD
109122010-02-24 Jan Djärv <jan.h.d@swipnet.se>
10913
10914 * xterm.c (XTflash): Move declarations before statements.
10915
10916 * gtkutil.c (xg_get_gdk_display): Remove (unused).
10917 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
10918 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
10919 (xg_create_tool_bar): Remove unused variables.
10920 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 10921 (xg_create_frame_widgets): Remove variable grav.
32e737d7 10922
676cae9f
CY
109232010-02-21 Chong Yidong <cyd@stupidchicken.com>
10924
10925 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
10926
886cc2b8
SM
109272010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10928
10929 * term.c (fatal): Add a final \n if needed (bug#5596).
10930
ddb2d8e2
CY
109312010-02-18 Chong Yidong <cyd@stupidchicken.com>
10932
10933 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
10934
2a4f8d3d
GM
109352010-02-18 Glenn Morris <rgm@gnu.org>
10936
10937 * callint.c (Finteractive): Doc fix.
10938
ebaf11b6
KH
109392010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
10940
886cc2b8
SM
10941 * coding.c (record_conversion_result):
10942 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
10943 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
10944 memory allocation error.
10945
d0396581
KH
109462010-02-17 Kenichi Handa <handa@m17n.org>
10947
886cc2b8
SM
10948 * coding.c (decode_coding_ccl): Don't setup ccl program here.
10949 Fix for the case that the output buffer is fullfilled.
d0396581
KH
10950 (decode_coding): Setup ccl program here. Keep looping when the
10951 decoder stopped because the output buffer is
10952 fullfilled (bug#5534).
10953
10954 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
10955
98599f74
JD
109562010-02-13 Jan Djärv <jan.h.d@swipnet.se>
10957
471e4f04 10958 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 10959 bug #5571.
886cc2b8 10960 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 10961 overdrawn.
98599f74 10962
182659ae
JD
109632010-02-10 Jan Djärv <jan.h.d@swipnet.se>
10964
10965 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
10966 doing_interact here.
10967 (ice_connection_closed): New function.
10968 (x_session_check_input, smc_die_CB, ice_io_error_handler)
10969 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
10970 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
10971 returns I/O error.
10972 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
10973 bug #5512.
10974
9be32c4e 109752010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
10976
10977 * nsfont.m (nsfont_open): The system's value for the font descent
10978 is negative, so round it down to avoid clipping.
10979
a2f3eb19
CY
109802010-02-06 Chong Yidong <cyd@stupidchicken.com>
10981
10982 * charset.c (load_charset_map_from_file)
10983 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 10984 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 10985
3088147c
CY
109862010-02-05 Chong Yidong <cyd@stupidchicken.com>
10987
10988 * charset.c (load_charset_map_from_file): Allocate large
10989 charset_map_entries structure on the heap rather than the stack.
10990 (Bug#5526).
10991
b57d9029
KH
109922010-01-31 Kenichi Handa <handa@m17n.org>
10993
10994 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 10995 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 10996
c67d885b
CY
109972010-01-31 Chong Yidong <cyd@stupidchicken.com>
10998
10999 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
11000 <deactivated@gmail.com> (Bug#3605).
11001
8fab2362
CY
110022010-01-31 David De La Harpe Golden <david@harpegolden.net>
11003
11004 * fileio.c (Frename_file): Correctly rename symlinks to
11005 directories (Bug#5496).
11006
cb2a62f2
CY
110072010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
11008
11009 * nsterm.m (ns_ring_bell): Handle visible bell like X.
11010
944c7a26
AS
110112010-01-30 Andreas Schwab <schwab@linux-m68k.org>
11012
11013 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
11014
c024ac08
CY
110152010-01-29 Chong Yidong <cyd@stupidchicken.com>
11016
11017 * frame.c (DEFAULT_ROWS): Change default to 35.
11018
11019 * xfns.c (x_default_font_parameter): Change default XFT font to
11020 monospace-10 (Bug#3643).
11021
af93af83
EZ
110222010-01-29 Eli Zaretskii <eliz@gnu.org>
11023
11024 * w32inevt.c (key_event): Remove unnecessary comparison of
11025 event->uChar.AsciiChar with 128.
11026
ca0eb708
CY
110272010-01-28 Chong Yidong <cyd@stupidchicken.com>
11028
b242dbfc
CY
11029 * fileio.c (Frename_file): Fix last change (Bug#5487).
11030
ca0eb708
CY
11031 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
11032
11033 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
11034
45d45af5
JD
110352010-01-28 Jan Djärv <jan.h.d@swipnet.se>
11036
11037 * xfns.c (Fx_create_frame): Remove window size matching code from
11038 2010-01-15.
a73f9c9d 11039 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 11040
7e233730
JR
110412010-01-27 Jason Rumney <jasonr@gnu.org>
11042
11043 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 11044 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 11045
86e893e3
KH
110462010-01-27 Kenichi Handa <handa@m17n.org>
11047
11048 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 11049 pattern string (Bug#4209).
86e893e3 11050
8719abec
CY
110512010-01-27 David De La Harpe Golden <david@harpegolden.net>
11052
11053 * fileio.c (Frename_file): Call copy-directory and
11054 delete-directory for directories, in order to handle cross-device
11055 renaming (Bug#3353).
11056
844794c8
JD
110572010-01-25 Jan Djärv <jan.h.d@swipnet.se>
11058
aa3e13b5 11059 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 11060 sizes 24 and 10. Bug #3643.
844794c8 11061
bd4b5750
SM
110622010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
11063
8dc1adf6 11064 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
11065 * keymap.c (shadow_lookup): Add `remap' arg.
11066 (describe_map, describe_vector): Update calls to shadow_lookup.
11067 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
11068 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
11069 perform remapping during shadow_lookup check of remapped_sequences.
11070
285d07e2
CY
110712010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
11072
11073 * image.c (png_load): Use png_sig_cmp instead of the obsolete
11074 png_check_sig, which has been removed in libpng 1.4.
11075
c6d09b8d
CY
110762010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
11077
11078 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
11079 lacks this header file).
11080
3d782998
YM
110812010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11082
11083 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
11084 as in Emacs 22.
11085
2aff7c53
YM
110862010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11087
11088 * lisp.h (make_pure_string): String pointer arg now points to const.
11089
11090 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
11091 args now point to const.
11092
74327f7a
EZ
110932010-01-22 Eli Zaretskii <eliz@gnu.org>
11094
11095 * lread.c (Fload): Don't treat files without .elc extension as
11096 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
11097 them. (bug#5303)
11098
4d1e6632
KH
110992010-01-20 Kenichi Handa <handa@m17n.org>
11100
11101 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
11102 treat the source as actual byte sequence.
11103
1fdede8f
AM
111042010-01-19 Alan Mackenzie <acm@muc.de>
11105
11106 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 11107 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
11108 `signal_after_change_p' to `coherent_change_p', and make the
11109 invocation of `modify_region' conditional on it.
11110
67477f30
JD
111112010-01-19 Jan Djärv <jan.h.d@swipnet.se>
11112
11113 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
11114 for debug purpose.
11115 (syms_of_xsettings): Declare xft-settings.
11116
244b023e
CY
111172010-01-18 Chong Yidong <cyd@stupidchicken.com>
11118
11119 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
11120
617364fe
CY
111212010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
11122
11123 * xterm.c (event_handler_gdk): Block input (Bug#5037).
11124
4fe22cdf
CY
111252010-01-16 Chong Yidong <cyd@stupidchicken.com>
11126
11127 * emacs.c (standard_args): Adjust arg priorities to reflect how
11128 they are processed in startup.el.
11129
e118d2be
AS
111302010-01-16 Andreas Schwab <schwab@linux-m68k.org>
11131
11132 * Makefile.in (lisp, shortlisp): Update.
11133
523ae620
SM
111342010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
11135
11136 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
11137 code, link the new kboard into all_kboard before running Lisp code,
11138 and protect the new terminal with GCPRO (Bug#5365).
11139 (x_term_init): Remove unused var `atom'.
11140 (x_delete_display, x_delete_terminal): Remove unused var `i'.
11141
f0d13888
JD
111422010-01-15 Jan Djärv <jan.h.d@swipnet.se>
11143
11144 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
11145 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
11146 to find out usable size of the desktop. Don't make frames larger than
ac146f82 11147 this. Bug #3643.
f0d13888 11148
cc320f07
KH
111492010-01-15 Kenichi Handa <handa@m17n.org>
11150
11151 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
11152
7ffdf101
CY
111532010-01-15 Chong Yidong <cyd@stupidchicken.com>
11154
11155 * nsterm.m (Qnone): Define.
11156
11157 * nsfns.m (Qnone): Move definition to nsterm.m.
11158
d12bd917
KH
111592010-01-14 Kenichi Handa <handa@m17n.org>
11160
11161 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
11162 systems.
11163
d9a7c140
KH
111642010-01-14 Kenichi Handa <handa@m17n.org>
11165
11166 Make auto-composition work on all buffers even if they are
11167 fundamental mode.
11168
11169 * composite.c (Vauto_composition_mode): New variable.
11170 (composition_compute_stop_pos): Check Vauto_composition_mode
11171 instead of Vauto_composition_function.
11172 (composition_adjust_point, Ffind_composition_internal): Likewise.
11173 (syms_of_composite): Declare Lisp variable
11174 "auto-composition-mode" here.
11175
63286bb2
CY
111762010-01-13 Chong Yidong <cyd@stupidchicken.com>
11177
11178 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
11179 during call to vendor-specific-keysyms (Bug#5365).
11180
c2623ee7
YM
111812010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11182
11183 * keyboard.c (input_available_signal) [SYNC_INPUT]:
11184 Call SIGNAL_THREAD_CHECK (Bug#5333).
11185
11186 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
11187 Call SIGNAL_THREAD_CHECK.
11188
0b5397c2
SM
111892010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
11190
11191 Try to fix bug#5314. This is probably not the final word, tho.
11192 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
11193 recent-auto-save-p as a side-effect.
11194 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
11195 * buffer.c (Fkill_buffer, reset_buffer):
11196 * editfns.c (Fsubst_char_in_region):
11197 * fileio.c (Finsert_file_contents, Fdo_auto_save)
11198 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
11199
dc954cb2
KH
112002010-01-13 Kenichi Handa <handa@m17n.org>
11201
11202 Display buffer name, etc. in mode line by composing correctly.
11203
11204 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
11205 STRING is not nil.
0b5397c2 11206 (display_mode_element): Adjust for the change of
dc954cb2
KH
11207 decode_mode_spec and display_line.
11208 (decode_mode_spec): Change arg MULTIBYTE to STRING.
11209 (display_string): Handle the case that STRING is non-null and
11210 LISP_STRING is not nil.
11211
0b5397c2
SM
11212 * xterm.c (x_draw_composite_glyph_string_foreground):
11213 Pay attention to s->face->overstrike.
dc954cb2
KH
11214
11215 * composite.c (composition_reseat_it): Don't check PT if STRING is
11216 non nil.
11217
4a00eaca
YM
112182010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11219
11220 * keyboard.c (read_char): Don't apply previous change when current
11221 buffer is unchanged by command execution.
11222
60abb287
JD
112232010-01-12 Jan Djärv <jan.h.d@swipnet.se>
11224
11225 * keyboard.c (read_char): Return after executing from special map.
11226
893db5bc
GM
112272010-01-12 Glenn Morris <rgm@gnu.org>
11228
11229 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
11230 bug-gnu-emacs rather than emacs-pretest-bug.
11231
4d03ece0
CY
112322010-01-11 Chong Yidong <cyd@stupidchicken.com>
11233
11234 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
11235 initializing the Lisp variables that depend on them.
11236
1df47e38
YM
112372010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11238
11239 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
11240 Clear areas that will not be updated after change of menu bar lines.
11241 Clear the menu bar window's current matrix when the window gets empty.
11242
2f1c6384
CY
112432010-01-09 Chong Yidong <cyd@stupidchicken.com>
11244
e398c61c
CY
11245 * intervals.h, textprop.c (extend_property_ranges): Return value
11246 and args changed. Discard properties that begin at or after the
11247 new end (Bug#5306).
11248
11249 * editfns.c (Fformat): Caller changed.
11250
e5a29a10
CY
11251 * nsterm.m (ns_set_default_prefs): Delete function.
11252 (syms_of_nsterm): Initialize ns_command_modifier,
11253 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
11254 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
11255
2f1c6384
CY
11256 * xdisp.c (pos_visible_p): Check for invisible text at the correct
11257 position (Bug#4040).
11258
d427a9fa
EZ
112592010-01-09 Eli Zaretskii <eliz@gnu.org>
11260
11261 * editfns.c (Ffloat_time): Doc fix.
11262
21b9df2f
JD
112632010-01-09 Jan Djärv <jan.h.d@swipnet.se>
11264
11265 * xfns.c (Fx_create_frame): Don't create frame larger than display
11266 by default bug#3643.
11267
4b00d3b1
YM
112682010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11269
11270 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
11271 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
11272 windows above internal border.
11273
11274 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
11275 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
11276 windows above internal border.
11277
11278 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
11279 tool bar windows specially.
11280
11281 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
11282
11283 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
11284 specially.
11285 (XTflash): Take account of menu bar height.
11286
11287 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
11288 specially.
11289
5075d853
JD
112902010-01-08 Jan Djärv <jan.h.d@swipnet.se>
11291
ac146f82 11292 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
11293 also be true before we can return early (bug #5339).
11294
474217c8
CY
112952010-01-06 David Reitter <david.reitter@gmail.com>
11296
11297 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
11298 (Fns_display_usable_bounds): Rewrite, computing bounds properly
11299 (Bug#3233).
11300
c0e6d47d
JD
113012010-01-06 Jan Djärv <jan.h.d@swipnet.se>
11302
d0cf45b7
JD
11303 * font.c (font_open_entity): Enable chache and call cached_font_ok
11304 for the driver if defined.
11305 (QCuser_spec): New symbol.
11306 (font_spec_from_name): Save name as user-spec.
11307 (font_load_for_lface): Keep user-spec instead of name.
11308 (font_open_by_name): Save name as user-spec.
11309 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 11310 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
11311
11312 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
11313 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
11314 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
11315
11316 * font.h (struct font_driver): Add cached_font_ok.
11317
c0e6d47d
JD
11318 * xterm.c (x_clear_frame): Queue draw for scroll bars.
11319
7c583cd8
JD
113202010-01-05 Jan Djärv <jan.h.d@swipnet.se>
11321
11322 * xterm.c (x_new_font): Move code for setting rows/cols before
11323 resizing ...
ac146f82 11324 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
11325
11326 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
11327 (xg_frame_resized, xg_frame_set_char_size):
11328 Call xg_clear_under_internal_border.
7c583cd8 11329 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 11330
03f77f0a
CY
113312010-01-05 Chong Yidong <cyd@stupidchicken.com>
11332
11333 * keyboard.c (read_key_sequence): Catch keyboard switch after
11334 making a new tty frame (Bug#5095).
11335
2a1ef5be
KH
113362010-01-05 Kenichi Handa <handa@m17n.org>
11337
11338 * fontset.c (fontset_find_font): Fix getting the frame pointer.
11339
e3eb1dae
SM
113402010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
11341
11342 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
11343 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
11344 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
11345
777013f2
MA
113462010-01-03 Michael Albinus <michael.albinus@gmx.de>
11347
11348 * dbusbind.c (xd_add_watch): Improve debug message.
11349 (xd_remove_watch): Improve debug message. If DATA is the session
11350 bus, unset D-Bus session environment.
11351 (Fdbus_init_bus): Pass the bus as argument to
11352 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 11353
8932b1c2
CY
113542010-01-01 Chong Yidong <cyd@stupidchicken.com>
11355
87231e2c
CY
11356 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
11357
4801c5fa
CY
11358 * lread.c (syms_of_lread): Make it clearer that these are the
11359 names of loaded files (Bug#5068).
11360
8932b1c2
CY
11361 * eval.c (run_hook_with_args): Handle the case where the global
11362 value has the obsolete single-function form (Bug#5026).
11363
11e3c684
CY
113642009-12-27 Chong Yidong <cyd@stupidchicken.com>
11365
11366 * minibuf.c (Fall_completions): Minor optimization.
11367
5b28ce35
EZ
113682009-12-26 Eli Zaretskii <eliz@gnu.org>
11369
5ce6e4f4
JB
11370 * .gdbinit (pgx): Fix display of composite glyphs.
11371 Display cmp.from and cmp.to as well.
11372 (pitx): Fix last change.
5b28ce35 11373
bcffff46
KH
113742009-12-25 Kenichi Handa <handa@m17n.org>
11375
11376 * composite.h (composition_adjust_point): Update prototype.
11377
11378 * composite.c (composition_reseat_it): Don't make a composition
11379 spanning over point.
11380 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
11381 composable characters.
11382 (composition_adjust_point): New arg NEW_PT. Callers changed.
11383
11384 * keyboard.c (command_loop_1): Force redisplay if the last point
11385 was within a composition.
11386 (adjust_point_for_property): Don't adjust point for automatic
11387 composition when called after buffer modification.
11388
3f670e9a
EZ
113892009-12-19 Eli Zaretskii <eliz@gnu.org>
11390
5ce6e4f4
JB
11391 * .gdbinit (pitx): Don't use enum names, use their values.
11392 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
11393 (pgx): Don't use enum names, use their values.
11394 (pitmethod): New helper command.
11395 (pitx): Use it to display iteration method.
11396 (pgrowit): New command.
11397
ad903955
EZ
11398 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
11399
3f670e9a
EZ
11400 Update dependencies in Makefile.in.
11401
11402 * Makefile.in (alloc.o): Depend on termhooks.h.
11403 (atimer.o): Depend on blockinput.h.
11404 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
11405 and frame.h.
11406 (callint.o): Depend on systime.h, coding.h, and composite.h.
11407 (callproc.o): Depend on buffer.h.
11408 (casefiddle.o): Don't depend on charset.h.
11409 (casetab.o): Depend on character.h.
11410 (ccl.o): Depend on composite.h.
11411 (chartab.o): Depend on ccl.h.
11412 (cm.o): Depend on dispextern.h.
11413 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
11414 (coding.o): Don't depend on $(INTERVALS_H).
11415 (composite.o): Don't depend on dispextern.h explicitly (it's in
11416 $(INTERVALS_H)). Depend on ccl.h.
11417 (data.o): Depend on systime.h, coding.h, composite.h,
11418 dispextern.h, font.h, and ccl.h.
11419 (dired.o): Depend on composite.h.
11420 (dispnew.o): Depend on coding.h. Don't depend explicitly on
11421 composite.h (it's in $(INTERVALS_H)).
11422 (doc.o): Depend on systime.h, coding.h, and composite.h.
11423 (editfns.o): Don't depend explicitly on dispextern.h.
11424 (emacs.o): Depend on frame.h and coding.h.
11425 (eval.o): Depend on coding.h, composite.h, and xterm.h.
11426 (fileio.o): Depend on frame.h and commands.h. Don't depend
11427 explicitly on dispextern.h.
11428 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
11429 composite.h.
11430 (fns.o): Don't depend on termhooks.h.
11431 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
11432 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
11433 coding.h, $(INTERVALS_H), window.h, xterm.h.
11434 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
11435 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
11436 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
11437 fontset.h, ccl.h, and ftfont.h.
11438 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11439 (gtkutil.o): Depend on dispextern.h and composite.h.
11440 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
11441 termhooks.h, and ccl.h.
11442 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
11443 (intervals.o): Depend on systime.h and coding.h.
11444 (keyboard.o): Depend on composite.h and coding.h.
11445 (keymap.o): Depend on coding.h and frame.h.
11446 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
11447 (macros.o): Depend on systime.h, coding.h, and composite.h.
11448 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
11449 and atimer.h.
11450 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
11451 dispextern.h explicitly.
0b5397c2
SM
11452 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
11453 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
11454 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
11455 (regex.o): Don't depend on charset.h.
11456 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
11457 (search.o): Don't depend explicitly on composite.h.
11458 (sound.o): Depend on atimer.h and systime.h.
11459 (syntax.o): Don't depend explicitly on composite.h.
11460 (sysdep.o): Depend on coding.h and composite.h.
11461 (term.o): Depend on xterm.h and buffer.h.
11462 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
11463 (textprop.o): Don't depend on dispextern.h explicitly.
11464 (undo.o): Depend on dispextern.h.
11465 (window.o): Depend on coding.h and termhooks.h. Don't depend on
11466 dispextern.h and composite.h explicitly.
11467 (xdisp.o): Depend on ccl.h.
11468 (xfaces.o): Depend on coding.h and ccl.h.
11469 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
11470 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11471 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
11472 ftfont.h.
11473 (xgselect.o): New dependency.
11474 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
11475 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
11476 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
11477 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
11478 (xsmfns.o): Depend on frame.h and dispextern.h.
11479 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
11480 sysselect.h.
11481
7a6f7fea
AS
114822009-12-19 Andreas Schwab <schwab@linux-m68k.org>
11483
11484 * font.c (Fclear_font_cache): Pass correct cache argument to
11485 font_clear_cache.
11486
f4c21026
AS
114872009-12-16 Andreas Schwab <schwab@linux-m68k.org>
11488
11489 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
11490 twice.
11491
f7ab0997
CY
114922009-12-15 Chong Yidong <cyd@stupidchicken.com>
11493
11494 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
11495 calling file-remote-p. Reported by Jim Meyering.
11496
fa8e045a
MA
114972009-12-15 Michael Albinus <michael.albinus@gmx.de>
11498
11499 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 11500 avoid compiler warnings. (Bug #5217)
fa8e045a 11501
a63dba42
KH
115022009-12-14 Kenichi Handa <handa@m17n.org>
11503
11504 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
11505 in 8-bit encoding.
11506
5ce6e4f4 115072009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
11508
11509 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
11510 tooltip windows.
11511
223e5fc6
JD
115122009-12-13 Jan Djärv <jan.h.d@swipnet.se>
11513
36acb2a7
JD
11514 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
11515 Xatom_net_window_type.
11516
11517 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
11518 Xatom_net_window_type.
11519
b8f00677
JD
11520 * xterm.c (my_log_handler): New function.
11521 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 11522 so we can filter out buggy messages. (Bug #5120).
b8f00677 11523
e5f0bc9a
JD
11524 * xterm.c (xg_scroll_callback): Parameter list changed,
11525 use parameter GtkScrollType to determine scroll/line/page.
11526 Only allow dragging if a button < 4 is grabbed (bug #5177).
11527 (xg_end_scroll_callback): New function.
11528 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
11529 xg_create_scroll_bar.
11530
11531 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
11532 (scroll_end_callback): Remove.
11533 (xg_create_scroll_bar): Add parameter end_callback, bind it to
11534 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 11535 bug #5177.
e5f0bc9a
JD
11536 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
11537 bug #5177.
11538
11539 * gtkutil.h (XG_LAST_SB_DATA): Remove.
11540 (xg_create_scroll_bar): Add GCallback end_callback.
11541
223e5fc6
JD
11542 * xftfont.c (QClcdfilter): New variable.
11543 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
11544 (syms_of_xftfont): Initialize QClcdfilter.
11545
3c055b77
JD
115462009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11547
11548 * xsettings.c (struct xsettings): Add member seen.
11549 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 11550 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
11551 (apply_xft_settings): Only update Xft settings with what member seen
11552 indicates as new.
11553
05fe33ff
EZ
115542009-12-12 Eli Zaretskii <eliz@gnu.org>
11555
c4cc8b9a 11556 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
11557 (struct glyph): Use EMACS_INT for charpos.
11558 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
11559 region_beg_charpos, region_end_charpos,
11560 redisplay_end_trigger_charpos, and also for
11561 iterator_stack_entry.end_charpos and
11562 iterator_stack_entry.stop_charpos.
11563
e8d7886a
JD
115642009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11565
5ce6e4f4 11566 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
11567 (xg_create_scroll_bar): Call scroll_end_callback on button release
11568 event (bug #5177).
11569 (xg_event_is_for_scrollbar): != replaced with ==.
11570
d0db2ec8
KH
115712009-12-12 Kenichi Handa <handa@m17n.org>
11572
11573 * ftfont.c (struct ftfont_info): New member matrix.
11574 (ftfont_open): Setup xftfont_info->matrix.
11575 (MFLTFontFT): New member matrix.
11576 (FLOOR, CEIL, ROUND): New macros.
11577 (ftfont_get_metrics): Handle matrix transformation.
11578 (ftfont_shape_by_flt): New arg matrix. Callers changed.
11579
11580 * xftfont.c (struct xftfont_info): New member matrix.
11581 (xftfont_open): Setup xftfont_info->matrix.
11582
115832009-12-10 Kenichi Handa <handa@m17n.org>
11584
11585 * xdisp.c (append_space_for_newline): Consider face-remapping.
11586
2cc7b62f
AS
115872009-12-09 Andreas Schwab <schwab@linux-m68k.org>
11588
b87dd913
AS
11589 * xsettings.c: Include "keyboard.h".
11590
eba5eb94
AS
11591 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
11592
2cc7b62f
AS
11593 Fix implicit function declarations.
11594 * cmds.c: Include "frame.h".
11595 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
11596 * frame.h: Move declaration of delete_frame outside of
11597 HAVE_WINDOW_SYSTEM.
11598
a4ef73c8
CY
115992009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
11600
11601 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11602
11603 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11604 GTK builds.
11605
944a300c
AS
116062009-12-07 Andreas Schwab <schwab@linux-m68k.org>
11607
11608 * unexelf.c (unexec): Don't search for .data twice.
11609
022eef62
CY
116102009-12-05 Chong Yidong <cyd@stupidchicken.com>
11611
426ac949
CY
11612 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
11613 if push failed.
11614 (handle_line_prefix): Set avoid_cursor_p here. Check return value
11615 of push_display_prop (Bug#5000).
11616
022eef62
CY
11617 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11618 value of font_list_entities (Bug#5085).
11619
be95bee9
JB
116202009-12-04 Juanma Barranquero <lekktu@gmail.com>
11621
11622 Fix `string-to-number' to deal consistently with integers and floats.
11623 * lread.c (isfloat_string): New argument ignore_trailing to accept all
11624 trailing characters, not just whitespace.
11625 (read1): Pass new arg 0 to keep old behavior.
11626 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11627 trailing chars, as it is already done for integers. Doc fixes.
11628 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11629
24c2d7ce
EZ
116302009-12-04 Eli Zaretskii <eliz@gnu.org>
11631
0b5397c2
SM
11632 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11633 Delete unused enumeration value.
24c2d7ce 11634
7e694795
EZ
116352009-12-03 Eli Zaretskii <eliz@gnu.org>
11636
11637 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11638
84b31826
SM
116392009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
11640
11641 * process.c (Fmake_network_process): Fix up the tests for
11642 "connectionless socket", so they DTRT for seqpacket sockets as well.
11643
f00c449b
SM
116442009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
11645
11646 * process.c (Qseqpacket): New symbol.
11647 (HAVE_SEQPACKET): New macro.
11648 (Fmake_network_process): Accept new :type `seqpacket'.
11649 (init_process): Add `seqpacket' feature when applicable.
11650 (syms_of_process): Initialize Qseqpacket.
11651
8096a0ff
YM
116522009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11653
11654 * font.c (font_load_for_lface, font_open_by_name): Don't store name
11655 if entity is Qnil.
11656
3e0de07f
SM
116572009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
11658
11659 * print.c (print_preprocess): Preprocess the key_and_value table of
11660 hashtables, even tho they're "hidden" (bug#5082).
11661
abeafb2a
JD
116622009-11-29 Jan Djärv <jan.h.d@swipnet.se>
11663
11664 * frame.c (frame_make_pointer_invisible)
11665 (frame_make_pointer_visible): Declare f before statements.
11666
4bf47195
EZ
116672009-11-28 Eli Zaretskii <eliz@gnu.org>
11668
11669 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11670 omitted dependencies on lisp.h.
11671
c525b3f2
JD
116722009-11-27 Jan Djärv <jan.h.d@swipnet.se>
11673
ece2d4ed
JD
11674 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11675 is NULL.
11676
11677 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11678
11679 * frame.c (frame_make_pointer_invisible)
3e0de07f 11680 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
11681 frame.
11682
c525b3f2
JD
11683 * search.c (simple_search): Remove warning by making *p const.
11684
2f00e299
DN
116852009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
11686
11687 * xdisp.c (power_letter): Remove duplicate const.
11688
084b049b
JD
116892009-11-25 Jan Djärv <jan.h.d@swipnet.se>
11690
a1fadc6f
JD
11691 * term.c (delete_tty): Remove check for last terminal (bug#4970).
11692
5ce6e4f4 11693 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
11694 defaults (bug #5025).
11695
28259cac
SM
116962009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
11697
11698 * insdel.c (adjust_markers_for_delete): Move it in the
11699 right direction! (bug#4803)
11700
e8e14166
YM
117012009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11702
11703 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
11704
11705 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
11706
86677b58
GM
117072009-11-24 Glenn Morris <rgm@gnu.org>
11708
11709 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
11710
581e51e8
JD
117112009-11-23 Jan Djärv <jan.h.d@swipnet.se>
11712
cfc86c7a
JD
11713 * Makefile.in: Must create deps for ecrt0.o in its rule.
11714
581e51e8
JD
11715 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
11716 because that is what Gtk+ font dialog understands.
11717
11718 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11719 of Fcopy_sequence.
11720 (font_open_by_name): Put name given into QCname for font-object returned.
11721
11722 * frame.c (x_set_font): Save original font name as frame parameter
11723 font-parameter.
11724
11725 * xsettings.c (set_default_xft_settings): New function.
11726 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11727 is found.
11728
8b264ecb
AS
117292009-11-22 Andreas Schwab <schwab@linux-m68k.org>
11730
11731 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11732 searching backwards through multibyte buffer.
11733
872870b2
JD
117342009-11-21 Jan Djärv <jan.h.d@swipnet.se>
11735
11736 * xterm.c: #include xgselect.h.
11737 (x_initialize): Call xgselect_initialize.
11738
11739 * xsettings.c (something_changedCB): C++ comments => C comments.
11740 (init_gconf): Do not deal with any GLib file descriptors, xg_select
11741 does that now.
11742
11743 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11744 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
11745 (scroll_bar_button_cb): Remove.
5ce6e4f4 11746 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
11747 event.
11748 (xg_create_scroll_bar): Don't bind button-press-event and
11749 button-release-event.
11750
11751 * process.c: Include xgselect.h if defined (USE_GTK) ||
11752 defined (HAVE_GCONF).
11753 (wait_reading_process_output): Call xg_select for the same condition.
11754
11755 * xgselect.c (xg_select): New function to better integrate with
11756 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
11757
11758 * xgselect.h: New file, declare xg_select, xgselect_initialize.
11759
11760 * Makefile.in (XOBJ): Add xgselect.o.
11761
62a6e103
AS
117622009-11-21 Andreas Schwab <schwab@linux-m68k.org>
11763
0b5397c2
SM
11764 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
11765 Remove ignored second argument. All callers changed.
62a6e103
AS
11766 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
11767 (RE_STRING_CHAR_AND_LENGTH): Likewise.
11768 * xdisp.c (string_char_and_length): Likewise.
11769
b0ca0f33
DN
117702009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
11771
11772 * xterm.c (x_new_font):
11773 * print.c (print_object):
11774 * cmds.c (Fself_insert_command): Move declarations before statements.
11775
dd5a6279
CY
117762009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
11777
11778 * s/cygwin.h: Remove unneeded linker flags.
11779
4a8e097d
JD
117802009-11-20 Jan Djärv <jan.h.d@swipnet.se>
11781
0d1d0d26
JD
11782 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
11783
11784 * xsettings.h: Declare xsettings_get_system_font.
11785
11786 * xsettings.c (xsettings_get_system_font): New function.
11787 (init_gconf): No use initiating gconf unless we have Xft also.
11788 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
11789 HAVE_GCONF.
11790
4a8e097d
JD
11791 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
11792 add a blank entry so it doesn't collapse into nothing.
11793
8ab1650e
SM
117942009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11795
11796 * lread.c (Funintern): Comment out last change.
11797
82c602f0
RS
117982009-11-19 Richard Stallman <rms@gnu.org>
11799
11800 * lread.c (Funintern): Error if symbol is t or nil.
11801
87e32266
SM
118022009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11803
11804 * insdel.c (make_gap_larger): Don't make as many assumptions about the
11805 representation of Lisp integers.
11806 Reported by MJ Chan <mjchan.inbox@gmail.com>.
11807
1b9ac145
AS
118082009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11809
11810 * lisp.h: Remove declaration of Ffont_get_system_font.
11811 * xfns.c: Move include of "xsettings.h".
11812 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
11813
dfb3c4c6
JD
118142009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11815
87e32266
SM
11816 * xsettings.c (something_changedCB, Ffont_get_system_font):
11817 Check use_system_font.
dfb3c4c6
JD
11818 (syms_of_xsettings): DEFVAR font-use-system-font.
11819
9370c1d8
AS
118202009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11821
25fe851a
AS
11822 * xfns.c (x_default_font_parameter): Remove dead assignment.
11823
9370c1d8
AS
11824 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
11825
637fa988
JD
118262009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11827
87e32266 11828 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 11829 not have FC_LCD_*. #define them if not there.
a6eb20d8 11830
87e32266 11831 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 11832
637fa988
JD
11833 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
11834
11835 * xterm.c (handle_one_xevent): Call xft_settings_event for
11836 ClientMessage, PropertyNotify and DestroyNotify.
11837 (x_term_init): If we have XFT, get DPI from Xft.dpi.
11838 Call xsettings_initialize.
11839
11840 * xftfont.c (xftfont_fix_match): New function.
11841 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
11842 Call xftfont_fix_match after XftFontMatch.
11843
11844 * xfont.c (xfont_driver): Initialize all members.
11845
87e32266
SM
11846 * xfns.c (x_default_font_parameter):
11847 Try font from Ffont_get_system_font.
637fa988
JD
11848 Do not get font from x_default_parameter if we got one from
11849 Ffont_get_system_font.
87e32266 11850 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
11851
11852 * w32font.c (w32font_driver): Initialize all members.
11853
11854 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
11855
11856 * lisp.h: Declare syms_of_xsettings.
11857
87e32266
SM
11858 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
11859 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
11860
11861 * ftfont.c (ftfont_filter_properties): New function.
11862
11863 * frame.c (x_set_font): Remove unused variable lval.
11864
87e32266 11865 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
11866
11867 * font.c (font_put_extra): Don't return if val is nil, it means
11868 boolean option is off.
11869 (font_parse_fcname): Collect all extra properties in extra_props
11870 and call filter_properties for all drivers with extra_props and
11871 font as parameter.
87e32266
SM
11872 (font_open_entity): Do not use cache, it does not pick up new
11873 fontconfig settings like hinting.
637fa988
JD
11874 (font_load_for_lface): If spec had a name in it, store it in entity.
11875
a73f9c9d 11876 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
11877
11878 * config.in: HAVE_GCONF is new.
11879
11880 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
11881 xsettings.o is new.
11882
5a942932
KH
118832009-11-17 Kenichi Handa <handa@m17n.org>
11884
11885 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
11886 back to the default font in case that no suitable font is found.
11887
b7c7a4d1
SM
118882009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
11889
11890 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
11891 Suggested by Chad Brown <yandros@mit.edu>.
11892 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
11893
072f1e39
JD
118942009-11-16 Jan Djärv <jan.h.d@swipnet.se>
11895
11896 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
11897
5d1e70a2
AS
118982009-11-14 Andreas Schwab <schwab@linux-m68k.org>
11899
87e32266 11900 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 11901
a53cfbe5
JD
119022009-11-14 Jan Djärv <jan.h.d@swipnet.se>
11903
473a99b7
JD
11904 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
11905 has a parent.
11906
a53cfbe5 11907 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 11908 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
11909
11910 * config.in: Generated (AUTO_DEPEND).
11911
f04bb9b2
MA
119122009-11-13 Michael Albinus <michael.albinus@gmx.de>
11913
b7c7a4d1 11914 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
11915 Vdbus_registered_functions_table, because it contains also
11916 properties. Fix docstring.
b7c7a4d1 11917 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 11918
8f11f7ec
SM
119192009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
11920
11921 * alloc.c (mark_object): Don't reprocess marked strings.
11922 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
11923 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
11924
8a605fe8
KH
119252009-11-13 Kenichi Handa <handa@m17n.org>
11926
8f11f7ec 11927 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
11928 semantics of Vword_combining_categories.
11929 (Vword_combining_categories): Describe the slight change of the
11930 semantics.
11931
241c4680
EZ
119322009-11-13 Eli Zaretskii <eliz@gnu.org>
11933
11934 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
11935
11936 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
11937
5d58e44c
SM
119382009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
11939
11940 * xdisp.c (syms_of_xdisp): Fix typo in last change.
11941
5e13f9d3
JB
119422009-11-12 Juanma Barranquero <lekktu@gmail.com>
11943
11944 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
11945
cf54c754
DR
119462009-11-11 David Reitter <david.reitter@gmail.com>
11947
11948 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
11949 variables to fix 2009-11-09 change.
11950
a4ada374
DN
119512009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
11952
91433552
DN
11953 * process.c (ifflag_def): Make flag_sym constant.
11954 (Fnetwork_interface_info): Use a constant pointer.
11955 (ifflag_table):
11956 * xfns.c (cursor_bits):
11957 * xdisp.c (power_letter):
11958 * termcap.c (speeds, esctab):
11959 * sysdep.c (baud_convert):
11960 * keyboard.c (lispy_accent_codes, modifier_names):
11961 * image.c (xbm_format, xpm_format, pbm_format, png_format)
11962 (jpeg_format, tiff_format, gif_format, svg_format)
11963 (interlace_start, interlace_increment, gs_format):
11964 * gtkutil.c (separator_names):
11965 * fringe.c (swap_nibble):
11966 * fns.c (base64_value_to_char, base64_char_to_value):
11967 * fileio.c (make_temp_name_tbl):
11968 * coding.c (suffixes): Make constant.
11969
f4265f6c
DN
11970 * frame.c (make_initial_frame):
11971 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
11972 build_string.
11973 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
11974
04420943
DN
11975 * s/freebsd.h:
11976 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
11977
0a5d24ae
DN
11978 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
11979 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
11980
a4ada374
DN
11981 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
11982 * xterm.c (syms_of_xterm):
11983 * xfaces.c (syms_of_xfaces):
11984 * xdisp.c (syms_of_xdisp):
11985 * lread.c (syms_of_lread):
11986 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
11987 build_string.
91433552 11988
a4ada374
DN
11989 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
11990
af98fc7f
SM
119912009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11992
8ab1650e 11993 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 11994
e90292a9
JD
119952009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11996
11997 * keyboard.h: Declare timer_check.
11998
11999 * keyboard.c (timer_check_2): New function that does what the old
12000 timer_check did.
12001 (timer_check): Call timer_check_2 until -1 or a non-zero time is
12002 returned, i.e. don't return -1 with timers pending.
12003
12004 * process.c: Remove extern declaration of timer_check.
12005
12006 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
12007 even if timer_check returned -1.
12008
af98fc7f
SM
12009 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
12010 xg_dialog_data.
e90292a9
JD
12011 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
12012 the event loop.
12013 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
12014 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
12015 Destroy the dialog after xg_dialog_run.
12016
045b83c0
SM
120172009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12018
12019 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
12020
1fb99a3a
JD
120212009-11-10 Jan Djärv <jan.h.d@swipnet.se>
12022
12023 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
12024
04e452cb
JB
120252009-11-09 Juanma Barranquero <lekktu@gmail.com>
12026
12027 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
12028
ef7417fd
SM
120292009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
12030
12031 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
12032 w32menu.c, and nsmenu.m.
12033 Simplify the obsolete case where position is nil.
12034 (cleanup_popup_menu): New function, moved from nsmenu.m.
12035 (struct skp): Remove slot `notreal'.
12036 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
12037 adjust callers.
12038 (single_menu_item): Adjust call to parse_menu_item.
12039 (syms_of_menu): Defsubr x-popup-menu.
12040 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
12041 (keymap_panes): Don't export any more.
12042 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
12043 (xmenu_show): Declare.
12044 * keyboard.c (parse_menu_item): Remove arg `notreal'.
12045 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
12046 * keyboard.h (parse_menu_item): Update declaration.
12047 * xmenu.c (Fx_popup_menu): Remove.
12048 (syms_of_xmenu): Don't defsubr x-popup-menu.
12049 * w32menu.c (Fx_popup_menu): Remove.
12050 (syms_of_w32menu): Don't defsubr x-popup-menu.
12051 * nsmenu.m (cleanup_popup_menu): Remove.
12052 (ns_menu_show): Rename from ns_popup_menu and remove all the code
12053 moved to menu.c's Fx_popup_menu.
12054 (Fx_popup_menu): Remove.
12055 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
12056 menu_items (it's done in menu.c already).
12057
424d6179
SM
120582009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
12059
12060 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
12061 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
12062
c0df13a6 120632009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
12064
12065 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 12066 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
12067 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
12068 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
12069
2de9f71c
SM
120702009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
12071
12072 Let integers use up 2 tags to give them one extra bit and thus double
12073 their range.
12074 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
12075 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
12076 New macros.
12077 (enum Lisp_Type): Use them. Give explicit values.
12078 (Lisp_Type_Limit): Remove.
12079 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
12080 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
12081 Pay attention to USE_2_TAGS_FOR_INTS.
12082 (INTEGERP): Use LISP_INT_TAG_P.
12083 * fns.c (internal_equal): Simplify the default case.
12084 (sxhash): Use case_Lisp_Int.
12085 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
12086 any more.
12087 (Ftype_of): Use case_Lisp_Int.
12088 (store_symval_forwarding): Take into account the fact that Ints can
12089 now have more than one tag.
12090 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 12091 (buffer_slot_type_mismatch):
2de9f71c
SM
12092 * xfaces.c (face_attr_equal_p):
12093 * print.c (print_object):
12094 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
12095 Use case_Lisp_Int.
12096
323637a2
EZ
120972009-11-06 Eli Zaretskii <eliz@gnu.org>
12098
7ac65b38
EZ
12099 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
12100
323637a2
EZ
12101 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
12102 warning.
12103
e511451f
JD
121042009-11-06 Jan Djärv <jan.h.d@swipnet.se>
12105
12106 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
12107
12108 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
12109
12110 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
12111 ButtonPressRelease and MotionNotify (bug#4870).
12112
5e2327cf
DN
121132009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
12114
5adc433e
DN
12115 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
12116
d67b4f80
DN
12117 * xterm.c (syms_of_xterm):
12118 * xselect.c (syms_of_xselect):
12119 * xmenu.c (syms_of_xmenu):
12120 * xfns.c (syms_of_xfns):
12121 * xfaces.c (syms_of_xfaces):
12122 * xdisp.c (syms_of_xdisp):
12123 * window.c (syms_of_window):
12124 * w32fns.c (syms_of_w32fns):
12125 * undo.c (syms_of_undo):
12126 * textprop.c (syms_of_textprop):
12127 * terminal.c (syms_of_terminal):
12128 * syntax.c (syms_of_syntax):
12129 * sound.c (syms_of_sound):
12130 * search.c (syms_of_search):
12131 * print.c (syms_of_print):
12132 * minibuf.c (syms_of_minibuf):
12133 * macros.c (syms_of_macros):
12134 * keymap.c (syms_of_keymap, initial_define_key)
12135 (initial_define_lispy_key):
12136 * keyboard.c (syms_of_keyboard):
12137 * insdel.c (syms_of_insdel):
12138 * image.c (syms_of_image):
12139 * fringe.c (syms_of_fringe):
12140 * frame.c (syms_of_frame):
12141 * fontset.c (syms_of_fontset):
12142 * fns.c (syms_of_fns):
12143 * fns.c (syms_of_fns):
12144 * fileio.c (syms_of_fileio):
12145 * fileio.c (syms_of_fileio):
12146 * eval.c (syms_of_eval):
12147 * doc.c (syms_of_doc):
12148 * dispnew.c (syms_of_display):
12149 * dired.c (syms_of_dired):
12150 * dbusbind.c (syms_of_dbusbind):
12151 * data.c (syms_of_data):
12152 * composite.c (syms_of_composite):
12153 * coding.c (syms_of_coding):
12154 * cmds.c (syms_of_cmds):
12155 * charset.c (define_charset_internal, syms_of_character):
12156 * ccl.c (syms_of_ccl):
12157 * category.c (syms_of_category, init_category_once):
12158 * casetab.c (syms_of_casetab):
12159 * casefiddle.c (syms_of_casefiddle):
12160 * callint.c (syms_of_callint):
12161 * bytecode.c (syms_of_bytecode):
12162 * buffer.c (keys_of_buffer, syms_of_buffer):
12163 * alloc.c (syms_of_alloc):
12164 * process.c (syms_of_process, init_process):
12165 * lread.c (syms_of_lread, init_obarray):
12166 * font.c (build_style_table):
12167 * emacs.c (syms_of_emacs, main): Replace calls to intern with
12168 intern_c_string, calls to make_pure_string with
12169 make_pure_c_string. Use pure_cons instead of Fcons.
12170
5e2327cf
DN
12171 * process.c (socket_options): Make it const.
12172 (set_socket_option, init_process): Use a const pointer.
12173
12174 * lread.c (intern_c_string): New function.
12175 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12176 (defvar_int): Uset it. Make the name const char*.
12177
12178 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
12179 (defvar_int): Update prototypes.
12180 (DEFUN, EXFUN): Support for prototypes is now required.
12181 (intern_c_string): New prototype.
12182 (struct Lisp_Subr): Make symbol_name constant.
12183
12184 * font.c (struct table_entry): Remove unused member. Make NAMES
12185 constant.
12186 (weight_table, slant_table, width_table): Make constant.
12187
12188 * emacs.c (struct standard_args): Make name and longname constant.
12189
12190 * character.h (DEFSYM): Use intern_c_string.
12191
a56eaaef
DN
121922009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
12193
12194 * alloc.c (make_pure_c_string): New function.
12195
12196 * eval.c (Fautoload): Purecopy all arguments.
12197
f6a07420
KH
121982009-11-05 Kenichi Handa <handa@m17n.org>
12199
12200 * fileio.c (Finsert_file_contents): Be sure set coding-system of
12201 the buffer in case of replace.
12202
5d28d4b1
DN
122032009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
12204
12205 * puresize.h (BASE_PURESIZE): Increase to 1620000.
12206
b349d111
SM
122072009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
12208
d528b1ce
SM
12209 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
12210 when applicable (bug#4851).
12211
b349d111
SM
12212 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
12213 (P_): Support for prototypes is now required.
12214
c38eb027
CY
122152009-10-31 Chong Yidong <cyd@stupidchicken.com>
12216
12217 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
12218 (Bug#4827).
12219
0405f8d9
EZ
122202009-10-30 Eli Zaretskii <eliz@gnu.org>
12221
d528b1ce 12222 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 12223
ca0a881a
DN
122242009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
12225
12226 * puresize.h (BASE_PURESIZE): Increase to 1470000.
12227
d528b1ce
SM
12228 * lread.c (Fload): Purecopy the file name when building
12229 Vpreloaded_file_list.
ca0a881a 12230
47e0e0e4
JR
122312009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
12232
12233 * w32fns.c (syms_of_w32fns): Change default value of
12234 w32-scroll-lock-modifier to nil. (Bug#2827)
12235
057bce6f
JB
122362009-10-26 Juanma Barranquero <lekktu@gmail.com>
12237
782a943e 12238 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 12239
242bc74c
AS
122402009-10-26 Andreas Schwab <schwab@redhat.com>
12241
12242 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
12243
522d013a
JB
122442009-10-26 Juanma Barranquero <lekktu@gmail.com>
12245
12246 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
12247 For delta < 0, skip check that only makes sense when the mini-window
12248 is going to be enlarged. (Bug#4534)
12249
18060980
CY
122502009-10-25 Chong Yidong <cyd@stupidchicken.com>
12251
12252 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
12253 string in menu maps (Bug#4471).
12254
fec8f0fe
CY
122552009-10-24 Chong Yidong <cyd@stupidchicken.com>
12256
12257 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
12258 FRAME_NS_VIEW on terminal frames (Bug#4765).
12259
10d66ec0
AS
122602009-10-24 Andreas Schwab <schwab@linux-m68k.org>
12261
1cae01f7
AS
12262 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
12263 DBUS_TYPE_UINTnn separately to get proper sign extension.
12264
58a12889
AS
12265 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
12266 can properly handle unsigned types.
d528b1ce 12267 (make_uid, make_gid): Remove.
58a12889 12268
987c9327
AS
12269 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
12270 types again.
12271
522d013a 12272 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
12273 (system_process_attributes): Likewise.
12274
905a9ed3
DN
122752009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
12276
12277 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
12278
12279 * eval.c (Fautoload): Purecopy the filename. Simplify.
12280
12281 * category.c (Fdefine_category): Purecopy docstring.
12282
a599b3e8
AS
122832009-10-23 Andreas Schwab <schwab@linux-m68k.org>
12284
7b792fc9
AS
12285 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
12286
a599b3e8
AS
12287 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
12288
b35ac83e
CY
122892009-10-23 Chong Yidong <cyd@stupidchicken.com>
12290
12291 * window.c (Fwindow_edges, Fwindow_pixel_edges)
12292 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
12293 (Bug#4775).
12294
e8903e00
SM
122952009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
12296
12297 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
12298 (init_fileio_once):
12299 * lisp.h (init_fileio_once): Remove.
12300 * emacs.c (main): Don't call init_fileio_once.
12301
8f43cbf3
DN
123022009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
12303
12304 * puresize.h (BASE_PURESIZE): Increase to 1430000.
12305
26898943
AS
123062009-10-21 Andreas Schwab <schwab@linux-m68k.org>
12307
12308 * doprnt.c (doprnt): Fix overflow check.
12309
5c646d5a
JD
123102009-10-21 Jan Djärv <jan.h.d@swipnet.se>
12311
3132a7ea
JD
12312 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
12313
5c646d5a
JD
12314 * xterm.h (x_wait_for_event): Declare it.
12315
12316 * xterm.c (pending_event_wait): New variable.
12317 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
12318 see pending_event_wait.eventtype.
12319 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
12320 (x_new_font): Call change_frame_size with new rows/columns before we
12321 try to resize the frame.
5c646d5a 12322 (x_wait_for_event): New function.
d528b1ce
SM
12323 (x_set_window_size_1): Don't change gravity unless change_gravity
12324 is set.
5c646d5a
JD
12325 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
12326 don't change frame size, instead wait for the ConfigureNotify.
12327 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
12328 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
12329 (x_initialize): Initialize pending_event_wait.
12330
12331 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
12332 size.
12333
12334 * widget.c (EmacsFrameSetValues): Add comment.
12335 (EmacsFrameSetCharSize): Just call x_set_window_size.
12336
12337 * gtkutil.c (xg_frame_set_char_size): Flush events and call
12338 x_wait_for_event.
d528b1ce 12339 (flush_and_sync): Remove again.
5c646d5a
JD
12340 (xg_get_font_name): Suggest monospace if no previous font is known.
12341
e9c1637d
SM
123422009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
12343
12344 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 12345 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 12346
5a72cccb
YM
123472009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12348
12349 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
12350 processing pending events when event is filtered for input method.
ab04798f 12351 (Bug#3681)
5a72cccb 12352
2629aa37
JB
123532009-10-20 Juanma Barranquero <lekktu@gmail.com>
12354
12355 * fns.c: Add #endif accidentally removed in previous change.
12356
c3417a74
DN
123572009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12358
12359 * fns.c: Remove code for unsupported system: MAC_OS.
12360 * image.c: Likewise. Include setjmp.h.
12361
9685cef2
JD
123622009-10-19 Jan Djärv <jan.h.d@swipnet.se>
12363
12364 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
12365 pixel -1 (bug #4742).
12366
d7306fe6
DN
123672009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12368
019d2c4c
DN
12369 * process.c (create_pty): Remove conditionals for no longer
12370 supported systems: UNIPLUS and RTU.
12371
ee6bacd4
DN
12372 * xterm.c:
12373 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
12374
d7306fe6
DN
12375 * alloc.c: Do not define struct catchtag.
12376 * eval.c: Move struct catchtag definition ...
12377 * lisp.h: ... here.
12378
12379 * image.c: Move png.h #include earlier to avoid warnings.
12380
12381 * xterm.c:
12382 * xsmfns.c:
12383 * xselect.c:
12384 * xrdb.c:
12385 * xmenu.c:
12386 * xftfont.c:
12387 * xfont.c:
12388 * xfns.c:
12389 * xfaces.c:
12390 * xdisp.c:
12391 * window.c:
12392 * widget.c:
12393 * w32xfns.c:
12394 * w32uniscribe.c:
12395 * w32term.c:
12396 * w32select.c:
12397 * w32reg.c:
12398 * w32proc.c:
12399 * w32menu.c:
12400 * w32inevt.c:
12401 * w32heap.c:
12402 * w32font.c:
12403 * w32fns.c:
12404 * w32console.c:
12405 * w32.c:
12406 * w16select.c:
12407 * vm-limit.c:
12408 * unexsol.c:
12409 * unexec.c:
12410 * unexcw.c:
12411 * unexaix.c:
12412 * undo.c:
12413 * tparam.c:
12414 * textprop.c:
12415 * terminfo.c:
12416 * terminal.c:
12417 * termcap.c:
12418 * term.c:
12419 * syntax.c:
12420 * sound.c:
12421 * sheap.c:
12422 * search.c:
12423 * scroll.c:
12424 * region-cache.c:
12425 * regex.c:
12426 * ralloc.c:
12427 * process.c:
12428 * print.c:
b024548b
DN
12429 * nsterm.m:
12430 * nsselect.m:
12431 * nsmenu.m:
12432 * nsimage.m:
12433 * nsfont.m:
12434 * nsfns.m:
d7306fe6
DN
12435 * msdos.c:
12436 * minibuf.c:
12437 * menu.c:
12438 * marker.c:
12439 * macros.c:
12440 * keymap.c:
12441 * keyboard.c:
12442 * intervals.c:
12443 * insdel.c:
12444 * indent.c:
12445 * gtkutil.c:
12446 * ftxfont.c:
12447 * ftfont.c:
12448 * fringe.c:
12449 * frame.c:
12450 * fontset.c:
12451 * font.c:
12452 * fns.c:
12453 * floatfns.c:
12454 * filelock.c:
12455 * fileio.c:
12456 * emacs.c:
12457 * editfns.c:
12458 * dosfns.c:
12459 * doprnt.c:
12460 * doc.c:
12461 * dispnew.c:
12462 * dired.c:
12463 * dbusbind.c:
12464 * data.c:
12465 * composite.c:
12466 * coding.c:
12467 * cmds.c:
12468 * cm.c:
12469 * chartab.c:
12470 * charset.c:
12471 * character.c:
12472 * ccl.c:
12473 * category.c:
12474 * casetab.c:
12475 * casefiddle.c:
12476 * callproc.c:
12477 * callint.c:
12478 * bytecode.c:
12479 * buffer.c:
12480 * atimer.c: Include setjmp.h. (Bug#4643)
12481
fd5f21e6
SM
124822009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12483
4c0354d7
SM
12484 Remove leftover table unibyte_to_multibyte_table.
12485 * character.c (unibyte_to_multibyte_table): Remove.
12486 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
12487 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
12488 * character.h (UNIBYTE_TO_CHAR): New macro.
12489 (MAKE_CHAR_MULTIBYTE): Use it.
12490 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
12491 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
12492 (message_dolog, set_message_1):
12493 * search.c (Freplace_match):
12494 * editfns.c (Fcompare_buffer_substrings):
12495 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
12496 (concat):
12497 * insdel.c (copy_text, count_size_as_multibyte):
12498 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
12499 * term.c (produce_glyphs):
12500 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
12501 * regex.c (RE_CHAR_TO_MULTIBYTE):
12502 * cmds.c (internal_self_insert):
12503 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
12504
fd5f21e6
SM
12505 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
12506
4418646e
DN
125072009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
12508
12509 * puresize.h (BASE_PURESIZE): Increase to 1310000.
12510
35f5c1d2
JB
125112009-10-16 Juanma Barranquero <lekktu@gmail.com>
12512
12513 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
12514
a0cd8f6b
AR
125152009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12516
12517 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
12518 still needed under Tiger.
12519
12520 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
12521
12522 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
12523 __Apple__.
12524
12525 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
12526
01a8d3fa
KH
125272009-10-15 Kenichi Handa <handa@m17n.org>
12528
12529 * print.c (print_object): Escape a symbol like "2E10" too.
12530
bf6c75c9 125312009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
12532
12533 Cleanups and changes for 64-bit compile under Snow Leopard.
12534 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
12535
12536 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
12537
c5959062 12538 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
12539 (ns_findfonts, nsfont_list_family): Use long format in printf, and
12540 cast argument.
12541 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 12542 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
12543
12544 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
12545
12546 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
12547 where appropriate.
12548
12549 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
12550 where appropriate.
6e4780c5
JB
12551 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
12552 Use stringWithUTF8String.
bf6c75c9
AR
12553 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
12554
6e4780c5
JB
12555 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
12556 Add formal protocol mention to inheritance.
bf6c75c9
AR
12557 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
12558
6e4780c5
JB
12559 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
12560 Fix printf format.
bf6c75c9
AR
12561 (ns_query_color): Use CGFloat where appropriate.
12562 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 12563 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
12564 argument.
12565
3d87f118
AR
12566 * config.in (NS_HAVE_NSINTEGER): Drop.
12567
a95c8102
AR
12568 * dbusbind.c (dbus-method-return-internal)
12569 (dbus-method-error-internal): Use long format in printf, and cast
12570 argument.
12571
12572 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
12573 in printf, and cast argument.
12574
6873acca 12575 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
12576 cast argument.
12577
9ec6f100
GM
125782009-10-11 Glenn Morris <rgm@gnu.org>
12579
12580 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
12581
5be883cd
JD
125822009-10-08 Jan Djärv <jan.h.d@swipnet.se>
12583
12584 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
12585 menu bar with a small width so it doesn't enlarge the frame.
12586
d7a39b51
JB
125872009-10-08 Juanma Barranquero <lekktu@gmail.com>
12588
12589 * fontset.c (Fset_fontset_font): Fix typos in error messages.
12590
0c2b6f8e
GM
125912009-10-06 Glenn Morris <rgm@gnu.org>
12592
12593 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
12594 SOME_MACHINE_LISP (this enters indirectly via DOC).
12595
e02131a2
EZ
125962009-10-05 Eli Zaretskii <eliz@gnu.org>
12597
12598 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
12599
b4744254
EZ
126002009-10-04 Eli Zaretskii <eliz@gnu.org>
12601
12602 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12603 Doc fix.
12604
dbf64827
JB
126052009-10-03 Martin Rudalics <rudalics@gmx.at>
12606
12607 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
12608
e9a0aef8
MA
126092009-10-02 Michael Albinus <michael.albinus@gmx.de>
12610
d528b1ce 12611 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
12612 used anymore outside fileio.c.
12613
12614 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12615
64eb2b56
JB
126162009-10-01 Juanma Barranquero <lekktu@gmail.com>
12617
12618 * lisp.h (Qdelete_directory_internal):
12619 Declare, instead of Qdelete_directory.
12620
12621 * w32fns.c (Fsystem_move_file_to_trash): Use it.
12622
9d28c33e
SM
126232009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
12624
12625 * eval.c (Fcalled_interactively_p): Add `kind' argument.
12626
9d8f3bd9
MA
126272009-10-01 Michael Albinus <michael.albinus@gmx.de>
12628
9d28c33e 12629 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
12630 Fdelete_directory. It is not a command anymore. It has no file
12631 name handler.
12632
9694740b
SM
126332009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12634
12635 * xdisp.c (get_next_display_element): Use an enum in last change.
12636
748e162f
KH
126372009-09-28 Kenichi Handa <handa@m17n.org>
12638
9694740b 12639 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
12640 unibyte_display_via_language_environment in handling
12641 Vnobreak_char_display.
12642
17efd58d
AR
126432009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12644
12645 * nsterm.h (ns_app_name): New extern variable.
12646
12647 * nsterm.m (ns_app_name): New variable.
12648 (ns_term_init): Set and use it.
12649 (ns_term_shutdown): Use it.
12650
12651 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
12652 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12653
12654 * nsfns.m (ns_set_name_iconic, ns_set_name)
12655 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12656 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12657
9694740b
SM
12658 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12659 Remove double-casting in client_data comparison.
31c2d412 12660
3208cb35
YM
126612009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12662
12663 * keyboard.c (make_lispy_event): Remember last wheel direction.
12664 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12665
b7d552d6
GM
126662009-09-26 Glenn Morris <rgm@gnu.org>
12667
12668 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12669 internal.elc. Add term/pc-win.elc.
12670 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12671 term/x-win.elc.
12672 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12673 term/w32-win.elc.
12674 (NS_SUPPORT): New.
12675 (lisp): Add NS_SUPPORT.
12676 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12677
4ff670a8
DR
126782009-09-25 David Reitter <david.reitter@gmail.com>
12679
12680 * nsmenu.m (EmacsMenu-clear): Recognize application menu
12681 on Mac OS X 10.6+ (bug#4513).
12682
feabfb6c
JB
126832009-09-24 Juanma Barranquero <lekktu@gmail.com>
12684
12685 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
12686 some parts of Emacs code (like font selection) don't grok them.
12687 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 12688
de59072a
AS
126892009-09-24 Andreas Schwab <schwab@redhat.com>
12690
12691 * coding.c (decode_coding_iso_2022): Fix operator precedence.
12692
a489517b
JB
126932009-09-24 Juanma Barranquero <lekktu@gmail.com>
12694
12695 * dired.c (Fdirectory_files): Fix typo in docstring.
12696
0592970c
AR
126972009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12698
12699 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
12700 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
12701 (EmacsScroller-setPosition:portion:whole:): Remove -display call
12702 under GNUstep.
12703 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
12704
12705 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
12706 glyph advancement.
12707
48e8a88b
AR
127082009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12709
12710 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 12711 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
12712
12713 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
12714 deleted (bug #4492).
12715
e14f0a78
AR
12716 * nsfont.m (Vns_reg_to_script): New lisp variable.
12717 (syms_of_nsfont): Declare it.
12718 (ns_registry_to_script): New function.
12719 (ns_get_req_script): Call it.
12720 (ns_findfonts): Don't give up on non-unicode registry.
12721
12722 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12723
5b650faa
SM
127242009-09-20 Tom Tromey <tromey@redhat.com>
12725
12726 * eval.c (find_handler_clause): Make stack-trace-on-error work in
12727 batch mode (bug#4228).
12728
a489517b 127292009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
12730
12731 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 12732 carefully. (Bug #4339)
0bae4e09 12733
fcfe06f3
CY
127342009-09-18 Chong Yidong <cyd@stupidchicken.com>
12735
d798ba87 12736 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 12737
31642728
AR
127382009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12739
12740 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
12741 (main) [HAVE_NS]: Don't process --no-init-file option.
12742 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
12743
12744 * nsterm.h (ns_no_defaults): Remove.
12745
12746 * nsterm.m (ns_no_defaults): Remove.
12747 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
12748 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
12749 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
12750 don't update the NSWindow itself.
bba3e508
SM
12751 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
12752 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
12753
12754 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
12755 ns_use_qd_smoothing.
12756
12757 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
12758 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 12759 (x-close-connection): Drop PSFlush() under OS X.
a489517b 12760 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 12761
8686ac71
JB
127622009-09-17 Juanma Barranquero <lekktu@gmail.com>
12763
12764 * emacs.c (inhibit_x_resources): New variable.
12765 (main) [HAVE_NS]: Don't process --quick command line option.
12766 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
12767
12768 * lisp.h (inhibit_x_resources): Declare it extern.
12769
12770 * w32reg.c (x_get_string_resource):
12771 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
12772
e227ba05
EZ
127732009-09-17 Eli Zaretskii <eliz@gnu.org>
12774
362654a6
JB
12775 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
12776 Add lisp/term/internal.elc.
e227ba05 12777
742d40e8
SM
127782009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12779
12780 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
12781 (bug#4461).
12782
005bd5a2
DN
127832009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
12784
12785 * puresize.h (BASE_PURESIZE): Increase to 1290000.
12786
12787 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
12788 (OBJECTS_MACHINE): Remove, unused.
12789
f9af9719
SM
127902009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
12791
12792 * frame.c (x_get_resource_string): Remove unused.
12793
0307c7d2
JD
127942009-09-15 Jan Djärv <jan.h.d@swipnet.se>
12795
12796 * xterm.c (x_new_font): Call change_frame_size before calling
12797 x_set_window_size, in case frame size won't change.
12798
12799 * frame.c (x_set_font): Remove dead code.
12800
428b13d6
SM
128012009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
12802
12803 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
12804
5766c380
SM
128052009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12806
12807 * lread.c (Fload): Don't output a message after loading an obsolete
12808 package any more (done in Lisp now).
12809
2fd0161b
CY
128102009-09-12 Chong Yidong <cyd@stupidchicken.com>
12811
12812 * fns.c (syms_of_fns): Doc fix (Bug#4227).
12813
bc5e75b6
SM
128142009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12815
12816 * keymap.c (Fwhere_is_internal): Use nconc2.
12817
c31c985e
AM
128182009-09-11 Alan Mackenzie <acm@muc.de>
12819
12820 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
12821 batch mode.
12822
78012bd2
AS
128232009-09-11 Andreas Schwab <schwab@linux-m68k.org>
12824
12825 * xdisp.c (display_mode_element): Detect cycles.
12826
9d889332
SM
128272009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12828
12829 * keymap.c (where_is_internal): Don't erroneously return nil right after
12830 filling the cache.
12831 (where_is_internal_1): Fix up typo.
12832
7ab5d780
GM
128332009-09-11 Glenn Morris <rgm@gnu.org>
12834
12835 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
12836 share a common doc-string.
12837
5238a749
SM
128382009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12839
66d77eda
SM
12840 * keymap.c (get_keymap): Return the actual keymap symbol rather than
12841 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
12842
5238a749
SM
12843 * keymap.c (QCadvertised_binding): New constant.
12844 (syms_of_keymap): Initialize it.
12845 (Fwhere_is_internal): Try and use bindings from :advertised-binding
12846 if applicable.
12847
19f48442
SM
128482009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12849
50d4ba39
SM
12850 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
12851 (parse_menu_item): Streamline since bindings are recomputed all the
12852 time anyway. Don't bother checking Vdefine_key_rebound_commands any
12853 more and don't support lmenu's menu-alias any more either.
12854
a88a5372
SM
12855 * keymap.c (where_is_internal_data): Make noindirect a boolean.
12856 (where_is_internal): Strip it down to only traverse the keymaps.
12857 Move the cache handling from Fwhere_is_internal to here.
12858 (Fwhere_is_internal): Move the handling of remapping and the choice of
12859 the best binding from where_is_internal to here.
12860 Unify the cached/noncached paths, so remapping is also handled
12861 correctly when the cache is used, and so the cache can be used to
12862 speed up remap-handling when applicable.
12863 Give preference to non-remapped bindings.
12864 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
12865 non-remapped bindings.
12866 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
12867 command remapping.
12868
19f48442
SM
12869 * xdisp.c (display_mode_element): Move list length limit from 50 to
12870 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
12871
599498c3 128722009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
12873
12874 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
12875
f9b7b5ac
SM
128762009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
12877
a53af587
JB
12878 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
12879 (Bug#4334)
12880
f9b7b5ac
SM
12881 * keymap.c (where_is_internal): Filter out shadowed remappings.
12882 Assume that where_is_internal returns unshadowed bindings to simplify
12883 the code and get rid of the gotos. Use ASIZE.
12884
04f4b72d
JD
128852009-09-04 Jan Djärv <jan.h.d@swipnet.se>
12886
4da146f2
JD
12887 * xterm.c (x_focus_changed): If we get a focusout and pointer
12888 is invisible, make it visible.
12889
04f4b72d
JD
12890 * xterm.h: Remove condition for declaration of
12891 x_*_window_to_frame.
12892
7cef7ce3
SM
128932009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
12894
12895 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
12896 initial terminal as well.
12897
a54fa5b7
JD
128982009-09-02 Jan Djärv <jan.h.d@swipnet.se>
12899
12900 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 12901 x_menubar_window_to_frame.
a54fa5b7 12902
50426a04 12903 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
12904 (XTmouse_position): Do not return valid positions
12905 for clicks in the menubar and the toolbar for Gtk+.
12906
12907 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
12908 if the widget for the event has the same top level as a frame,
12909 return the frame.
12910 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
12911 internal windows, bug #4122.
12912 (x_non_menubar_window_to_frame): Remove.
12913
5a021dd0
GM
129142009-09-02 Glenn Morris <rgm@gnu.org>
12915
12916 * buffer.c (default-major-mode): Move most of the doc from here...
12917 (major-mode): ... to here.
12918
548fe2f3
NR
129192009-08-30 Nick Roberts <nickrob@snap.net.nz>
12920
12921 * process.c (wait_reading_process_output): Keep the descriptor
12922 when pty is used by a non-child process, e.g., in I/O buffer of
12923 GDB this allows inferior to be restarted.
12924
e0840eef
EZ
129252009-08-29 Eli Zaretskii <eliz@gnu.org>
12926
12927 * xdisp.c (redisplay_internal): Remove redundant test and collapse
12928 both branches into one.
12929
82e98df4
SM
129302009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12931
12932 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
12933 (main): Use enable-multibyte-characters rather than
12934 default-enable-multibyte-characters. Output a warning message when
12935 running a unibyte session.
12936
890617cb
YM
129372009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12938
12939 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
12940 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
12941 (copy_data_segment): Also copy __program_vars section.
12942 (copy_dyld_info) [LC_DYLD_INFO]: New function.
12943 (dump_it) [LC_DYLD_INFO]: Use it.
12944
12945 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
12946
e7adeadc
EZ
129472009-08-28 Eli Zaretskii <eliz@gnu.org>
12948
12949 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
12950 $(SRC)/buildobj.h.
ef1b0ba7 12951 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
12952 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
12953 $(SRC)/buildobj.h.
12954 (clean): Add buildobj.h.
12955
3ed8bbdc
TZ
129562009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
12957
12958 * print.c (print_object): Set escapeflag to 1 when printing
12959 hashtable keys and values.
12960
155a6764
SM
129612009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
12962
12963 * lread.c (read_integer): Use doubles (and potentially return a float
12964 number) as we do in string-to-number.
12965 (read1): Use strtol to read integers, signal errors on strtol's
12966 overflow and use floats if strtol's output is too large for
12967 Elisp integers.
12968
877610de
EZ
129692009-08-27 Eli Zaretskii <eliz@gnu.org>
12970
12971 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
12972 (make-buildobj-SH): Fix last change.
12973 (SRC): Move to before where it's first used.
12974
ef73e7be
KH
129752009-08-27 Kenichi Handa <handa@m17n.org>
12976
550c8289
KH
12977 * process.c (send_process): Use encode_coding_object instead of
12978 encode_coding_string to perform eol-conversion even if the string
12979 is unibyte.
12980
60afa08d
KH
12981 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
12982 character.
12983
ef73e7be 12984 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 12985 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 12986
7b3a82d7
DN
129872009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
12988
5654bf63
DN
12989 * callproc.c (Fcall_process): Remove always true #if.
12990
7b3a82d7
DN
12991 * lisp.h: Replace #if 0 code for checking with text pointing to
12992 the --enable-checking configure flag.
12993
12994 * emacs.c (main): Mention the --enable-profiling configure flag
12995 instead of using CFLAGS.
12996
878bde49
KR
129972009-08-26 Ken Raeburn <raeburn@raeburn.org>
12998
12999 * Makefile.in (buildobj.h): New target.
13000 (doc.o): Depend on it.
13001 (temacs${EXEEXT}): Don't generate buildobj.lst.
13002 (mostlyclean): Delete buildobj.h, not buildobj.lst.
13003 * makefile.w32-in ($(SRC)/buildobj.h): New target.
13004 ($(BLD)/doc.$(O)): Depend on it.
13005 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
13006 provided by Eli Zaretskii.)
13007 ($(TEMACS)): Don't generate buildobj.lst.
13008 * doc.c: Include buildobj.h.
13009 (buildobj): New static variable.
13010 (Fsnarf_documentation): Use it, instead of opening and reading
13011 buildobj.lst.
13012
1574224c
MA
130132009-08-25 Michael Albinus <michael.albinus@gmx.de>
13014
13015 * dbusbind.c (Fdbus_call_method)
13016 (Fdbus_call_method_asynchronously): Use English numeric format for
13017 timeout values in doc string.
13018
d9da2f45
KH
130192009-08-25 Kenichi Handa <handa@m17n.org>
13020
ef73e7be
KH
13021 * alloc.c (mark_char_table): New function.
13022 (mark_object): Use mark_char_table for a char-table.
13023
d9da2f45
KH
13024 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
13025 (CHAR_TABLE_REF): Use it.
13026
c8edcc01
KR
130272009-08-23 Ken Raeburn <raeburn@raeburn.org>
13028
13029 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
13030 before invoking the newly build emacs to check for load-path
13031 shadowing.
13032
7763401b
GM
130332009-08-22 Glenn Morris <rgm@gnu.org>
13034
13035 * Makefile.in (bootstrap_exe): New variable.
13036 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
13037 Use ${bootstrap_exe}.
13038
729eadda
EZ
130392009-08-22 Eli Zaretskii <eliz@gnu.org>
13040
13041 * coding.h (encode_coding_string): Don't encode unibyte strings.
13042 (Bug#4047)
13043
eb4c6ace
MA
130442009-08-22 Michael Albinus <michael.albinus@gmx.de>
13045
13046 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
13047
13048 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
13049 intended as hotfix only.
13050 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
13051
36e34d1b
AR
130522009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13053
13054 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
13055 change, and clean up loose ends in the code left by it.
13056 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
13057 yet another X11 format (rgb:r/g/b) for compatibility.
13058 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
13059 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
13060
f983eb8a
SM
130612009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
13062
13063 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
13064
3f56d3c6
MA
130652009-08-20 Michael Albinus <michael.albinus@gmx.de>
13066
13067 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
13068 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
13069 (xd_initialize, xd_pending_messages): Check, whether
13070 $DBUS_SESSION_BUS_ADDRESS is set.
13071
fb641d68
YM
130722009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13073
13074 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
13075
13076 * nsterm.m (ns_get_color): Remove incompatible color formats again.
13077
cf59a374
GM
130782009-08-20 Glenn Morris <rgm@gnu.org>
13079
13080 * emacs.c (system-type): Doc fix.
13081
1373f3be
SM
130822009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
13083
13084 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
13085 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
13086
058ed861
MA
130872009-08-18 Michael Albinus <michael.albinus@gmx.de>
13088
1373f3be
SM
13089 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
13090 New functions.
058ed861
MA
13091 (xd_initialize): Revert change from 2009-08-16.
13092
563a866e 130932009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
13094
13095 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 13096 font-group vector, return nil.
5fc05db0 13097
e42bdf01
CY
130982009-08-17 Chong Yidong <cyd@stupidchicken.com>
13099
13100 * process.c (status_notify): Don't perform redisplay.
13101 (Fdelete_process, list_processes_1, process_send_signal):
13102 Expliticly perform redisplay.
13103 (wait_reading_process_output): Always check process status, but
13104 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
13105
4230ab74
KR
131062009-08-17 Ken Raeburn <raeburn@raeburn.org>
13107
1373f3be 13108 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
13109 (XFLOAT_INIT): New macro for storing a float value.
13110 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
13111 * fns.c (sxhash): Copy out the value of a float in order to
13112 examine its bytes.
13113 * dbusbind.c (xd_append_arg): Likewise.
13114
4230ab74
KR
13115 * emacs.c (main): Don't call syms_of_data twice.
13116
a0645cdd
MA
131172009-08-16 Michael Albinus <michael.albinus@gmx.de>
13118
13119 * dbusbind.c (xd_initialize): Add connection file descriptor to
13120 input_wait_mask, in order to let select() detect, whether a new
13121 message has been arrived.
ca4f31ea 13122 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 13123
485db0ba
MA
131242009-08-15 Michael Albinus <michael.albinus@gmx.de>
13125
1373f3be
SM
13126 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
13127 New functions.
485db0ba
MA
13128
13129 * lisp.h (xd_pending_messages): Declare.
13130
13131 * keyboard.c (readable_events): Call xd_pending_messages.
13132
b5b98ff4
CY
131332009-08-15 Chong Yidong <cyd@stupidchicken.com>
13134
1373f3be 13135 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 13136
f8354c6e
CY
13137 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
13138
b5b98ff4
CY
13139 * buffer.c (set_buffer_internal_1)
13140 (swap_out_buffer_local_variables): Check for unbound local
13141 variables (Bug#4138).
13142
8b9fc636
EZ
131432009-08-14 Eli Zaretskii <eliz@gnu.org>
13144
13145 * process.c (create_pty): Fix last change.
13146
ce959360
CY
131472009-08-13 Chong Yidong <cyd@stupidchicken.com>
13148
13149 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
13150 (xbm_load_image): Caller changed.
64b807c9 13151 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 13152
c7baf7e9
NR
131532009-08-13 Nick Roberts <nickrob@snap.net.nz>
13154
13155 * process.c (create_pty): New function.
13156 (Fstart_process): Use it to allow Emacs to just associate a pty
13157 with the buffer. See associated change in gdb-mi.el.
13158 (list_processes_1): Deal with no program name.
13159 (start_process_unwind): Use pid == -2 to mean no process.
13160
1ac9108a
SM
131612009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
13162
13163 * cmds.c (nonundocount): New global variable.
13164 (keys_of_cmds): Initialize it.
13165 (Fself_insert_command): Use it to combine upto 20 sequential chars
13166 into a single undo entry, just like the Qself_insert_command code in
13167 keyboard.c does.
13168 Call frame_make_pointer_invisible, also like the Qself_insert_command
13169 code in keyboard.c does.
13170 * keyboard.c (command_loop_1): Use the new global nonundocount rather
13171 than its own local replacement for it.
13172
e267324c
KR
131732009-08-10 Ken Raeburn <raeburn@raeburn.org>
13174
1ac9108a 13175 * fns.c (concat): Don't re-set string length to its current value.
77437343 13176
1ac9108a
SM
13177 * coding.h (decode_coding_string, encode_coding_string):
13178 Use SBYTES macro.
f0bed503 13179
1ac9108a 13180 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
13181 (doprnt): Merge with doprnt1, discarding lispstrings code.
13182 * lisp.h (doprnt_lisp): Don't declare.
13183
416e006d
JL
131842009-08-07 Juri Linkov <juri@jurta.org>
13185
13186 * puresize.h (BASE_PURESIZE): Increase to 1270000.
13187
6f7d5780
DN
131882009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13189
13190 * print.c (syms_of_print): Undo previous change.
13191
f19a0f5b
TZ
131922009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
13193
13194 * lread.c (read1, syms_of_lread): Read hashtables back from the
13195 readable format.
13196
13197 * print.c (print_preprocess, print_object): Print hashtables fully
13198 and readably.
13199 (syms_of_print): Provide 'hashtable-print-readable.
13200
b9173dc2
AR
132012009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13202
13203 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
13204 no family set.
13205 (nsfont_open): Handle case when entity has no family.
13206
1586503c
AR
132072009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13208
13209 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
13210 element, not a list, for match case.
13211
087048cd
KH
132122009-07-28 Kenichi Handa <handa@m17n.org>
13213
13214 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
13215 rigidly.
13216
13217 * xfont.c (xfont_list_pattern): Don't ignore the return value of
13218 font_parse_xlfd. Check font properties more rigidly.
13219
780c2506
DN
132202009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13221
31fd7c5c
JB
13222 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
13223 bsd-common.h.
780c2506 13224
a8c0cc18
KH
132252009-07-27 Kenichi Handa <handa@m17n.org>
13226
13227 * xfaces.c (face_with_height): Call font_clear_prop.
13228
4fbe2306
CY
132292009-07-26 Chong Yidong <cyd@stupidchicken.com>
13230
111d9af3
CY
13231 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
13232
13233 * xterm.c (x_term_init): Use Qx.
13234
4fbe2306
CY
13235 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
13236
1ac9108a 13237 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
13238 (ns_get_color): Revert 2009-07-16 change.
13239
beb0b7f9
EZ
132402009-07-25 Eli Zaretskii <eliz@gnu.org>
13241
13242 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 13243 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 13244
2baf5e76
KR
132452009-07-25 Ken Raeburn <raeburn@raeburn.org>
13246
1ac9108a
SM
13247 * coding.h (decode_coding_string, encode_coding_string):
13248 Use SCHARS macro.
8890e5f5 13249
2baf5e76 13250 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 13251 (load_depth): Delete.
2baf5e76
KR
13252 (Qload_in_progress): New variable.
13253 (load_unwind): Don't reference load_depth or load_in_progress.
13254 (Fload): Likewise; specbind Qload_in_progress instead.
13255 (init_lread): Don't initialize load_depth.
13256 (syms_of_lread): Initialize and protect Qload_in_progress.
13257
1395c6f5
AR
132582009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13259
13260 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
13261
4e2f36cf
AR
132622009-07-23 Yavor Doganov <yavor@gnu.org>
13263
13264 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
13265
5dd9a6f7
AR
132662009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13267
13268 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
13269 Bugs 3792, 3720, 2402.
13270 (ns_lookup_indexed_color): Check for bad index.
13271 (ns_index_color): Init unused slot to 0.
13272 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
13273 Bug 3714, possibly 3082.
5dd9a6f7 13274
c902b920
JR
132752009-07-22 Jason Rumney <jasonr@gnu.org>
13276
1ac9108a
SM
13277 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
13278 Position IME window at cursor (Bug#2570).
c902b920
JR
13279 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
13280 (globals_of_w32fns): Dynamically load functions required above.
13281
13282 * w32term.c (w32_draw_window_cursor): Send message to reposition
13283 any IME window.
13284
090101cf
CY
132852009-07-21 Chong Yidong <cyd@stupidchicken.com>
13286
13287 * fileio.c: Revert 2009-07-16 changes.
13288 (Vauto_save_include_big_deletions): New variable.
13289 (Fdo_auto_save): Disable auto-save only if
13290 auto-save-include-big-deletions is nil.
13291
e6583e3d
CY
132922009-07-21 Chong Yidong <cyd@stupidchicken.com>
13293
13294 * xdisp.c (move_it_to): For continued lines ending in a tab, take
13295 the overflowed pixels into account (Bug#3879).
13296
ece435a5
KR
132972009-07-21 Ken Raeburn <raeburn@raeburn.org>
13298
13299 * lread.c (load_depth): New variable.
13300 (Fload, load_unwind, init_lread): Set it to the load recursion
13301 depth; set load_in_progress as a simple boolean based on the
13302 current load_depth. (Bug#3892)
13303
40b2d973
AR
133042009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13305
13306 * nsfont.m (ns_has_attribute): Remove.
13307 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
13308
10be7e0d
JL
133092009-07-18 Juri Linkov <juri@jurta.org>
13310
13311 * process.c (Fset_process_query_on_exit_flag): Mention killing
13312 a buffer in docstring.
13313
fa055055
KH
133142009-07-17 Kenichi Handa <handa@m17n.org>
13315
13316 * casetab.c (shuffle): Fix the logic of setting up the cycle.
13317
042f7b69
YM
133182009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13319
13320 * nsfns.m (Fns_set_alpha): Remove function.
13321 (syms_of_nsfns): Don't defsubr it.
13322
13323 * nsterm.m (ns_get_color): Remove incompatible color formats.
13324 (ns_color_to_lisp): Generate #rrggbb color format string.
13325
4be941e3
RS
133262009-07-16 Richard Stallman <rms@gnu.org>
13327
13328 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
13329 (Fset_buffer_auto_saved): Handle save_length = -2.
13330
4e6b227d
CY
133312009-07-16 Chong Yidong <cyd@stupidchicken.com>
13332
13333 * xterm.c (Qx_gtk_map_stock): New var.
13334
13335 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
13336 of calling intern each time.
13337
a1856973
YM
133382009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13339
13340 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
13341 does tiling.
13342
13343 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
13344
497e54d8
KH
133452009-07-14 Kenichi Handa <handa@m17n.org>
13346
72d36834
KH
13347 * font.c (font_vconcat_entity_vectors): New function.
13348 (struct font_sort_data): New member font_driver_preference.
13349 (font_compare): Check font_driver_preference.
13350 (font_sort_entities): The format of the first argument changed.
13351 (font_delete_unmatched): Likewise.
13352 (font_list_entities): The return type changed.
13353 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
13354 (font_find_for_lface): Adjuste for the above changes.
13355 Don't suppress the checking of C even if the repertory supports it.
13356 (Flist_fonts): Adjust for the above changes.
72d36834 13357
1ac9108a
SM
13358 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
13359 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
13360 Reject a font who has adstyle property that is different from a
13361 langname derived from registry property.
1ac9108a 13362 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 13363
b6046155
EZ
133642009-07-13 Eli Zaretskii <eliz@gnu.org>
13365
13366 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
13367 local copy of dirfilename.
13368
fb6b6049
KH
133692009-07-13 Kenichi Handa <handa@m17n.org>
13370
e2402a5e
KH
13371 * chartab.c (sub_char_table_ref_and_range): Fix the range check
13372 against max_char.
13373
fb6b6049
KH
13374 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
13375 calling XSYMBOL (sym).
13376
65156807
EZ
133772009-07-11 Eli Zaretskii <eliz@gnu.org>
13378
1ac9108a
SM
13379 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
13380 New function.
13381 (directory_files_internal) [WINDOWSNT]:
13382 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
13383 the filesystem of the directory is fast or slow.
13384
13385 * w32.c (logon_network_drive): Don't assume PATH is an absolute
13386 file name.
13387 (is_slow_fs): New function.
13388 (stat): Use it to determine whether to issue more system calls to
13389 get accurate file attributes, when w32-get-true-file-attributes is
13390 `local'.
13391
e0ab5fcf
JD
133922009-07-10 Jan Djärv <jan.h.d@swipnet.se>
13393
13394 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 13395 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
13396 parameter font-parameter as default to the font dialog.
13397
784ceded
KH
133982009-07-10 Kenichi Handa <handa@m17n.org>
13399
13400 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
13401
fb8edc0b
EZ
134022009-07-09 Eli Zaretskii <eliz@gnu.org>
13403
1ac9108a 13404 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 13405
fb8edc0b
EZ
13406 * w32.c (stat): Treat UNC file names as residing on remote
13407 drives. (Bug#3542)
13408
635c75b1
KH
134092009-07-09 Kenichi Handa <handa@m17n.org>
13410
13411 * fontset.c (fontset_find_font): Fix previous change.
13412
c1d5ce94
MA
134132009-07-08 Michael Albinus <michael.albinus@gmx.de>
13414
13415 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
13416 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
13417 error flag.
13418
edb61b39
KH
134192009-07-08 Kenichi Handa <handa@m17n.org>
13420
374bf7e4
KH
13421 * fontset.c (fontset_find_font): Fix the logic of handling
13422 charset_matched.
13423 (font_for_char): Delete unused var.
13424 (generate_ascii_font_name): Delete it.
13425
edb61b39
KH
13426 * coding.h (JIS_TO_SJIS2): Fix the code range check.
13427
13428 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
13429 (encode_coding_sjis): Fix the code range check.
13430
0f3f018c
CY
134312009-07-07 Chong Yidong <cyd@stupidchicken.com>
13432
13433 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
13434 (Fexpand_file_name): Copy string data properly (Bug#3772).
13435
fcaf6f3a
JD
134362009-07-07 Jan Djärv <jan.h.d@swipnet.se>
13437
13438 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
13439 first MapNotify.
13440
6809ca75
KH
134412009-07-07 Kenichi Handa <handa@m17n.org>
13442
13443 * character.h (unibyte_has_multibyte_table): Delete extern.
13444 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
13445
13446 * charset.c (Fset_charset_priority): Update charset_unibyte.
13447 (syms_of_charset): Initialize charset_unibyte.
13448
13449 * character.c (unibyte_has_multibyte_table): Delete it.
13450 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
13451 charset_unibyte.
13452 (multibyte_char_to_unibyte_safe): Likewise.
13453 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
13454
1ac9108a 13455 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
13456 (x_produce_glyphs): Likewise.
13457
13458 * .gdbinit (xcharset): Fix the treating $arg0.
13459
ad9e2d54
EZ
134602009-07-04 Eli Zaretskii <eliz@gnu.org>
13461
13462 Emulation of `getloadavg' on MS-Windows.
50426a04 13463 * w32.c: Include float.h.
ad9e2d54
EZ
13464 (g_b_init_get_native_system_info, g_b_init_get_system_times)
13465 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
13466 (get_native_system_info, get_system_times): New functions.
13467 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
13468 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
13469 (globals_of_w32): Initialize g_b_init_get_native_system_info,
13470 g_b_init_get_system_times, and num_of_processors.
13471
0a3472c7
JR
134722009-07-03 Jason Rumney <jasonr@gnu.org>
13473
13474 * w32term.c (w32_initialize): Use standard types.
13475
80904120
EZ
134762009-07-03 Eli Zaretskii <eliz@gnu.org>
13477
13478 * dired.c (Ffile_attributes): Decode user and group names by the
13479 locale's encoding. (Bug#3443)
13480
6978862d
DN
134812009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
13482
f8d23104
DN
13483 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
13484 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
13485
13486 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
13487
13488 * term.c (init_tty): Remove spurious #ifdef.
13489
6978862d
DN
13490 * m/mips.h: Mention this file is also used for netbsd.
13491 * m/pmax.h: Remove file.
13492
e044e4fc
JD
134932009-07-03 Jan Djärv <jan.h.d@swipnet.se>
13494
13495 * xterm.h (struct x_display_info): Add invisible_cursor.
13496 (struct x_output): Add current_cursor.
13497
13498 * xterm.c (XTtoggle_invisible_pointer): New function.
13499 (x_define_frame_cursor): Don't define cursor if invisible or the
13500 same as before. Set current_cursor.
13501 (x_create_terminal): Set toggle_invisible_pointer_hook.
13502
13503 * xfns.c (make_invisible_cursor): New function.
13504 (x_set_mouse_color): Call make_invisible_cursor.
13505 Set current_cursor.
13506 (x_window): Set current_cursor.
13507
13508 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
13509
13510 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
13511 inserting a character.
13512 (read_avail_input): Call frame_make_pointer_visible.
13513
13514 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
13515 (frame_make_pointer_invisible, frame_make_pointer_visible):
13516 New functions.
e044e4fc
JD
13517 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
13518
13519 * frame.h: Declare frame_make_pointer_invisible and
13520 frame_make_pointer_visible.
13521 (struct frame): Add pointer_invisible.
13522
574c8efa
JD
135232009-07-02 Jan Djärv <jan.h.d@swipnet.se>
13524
7b507248
JD
13525 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
13526 frame isn't visible.
13527 (xg_frame_resized): If width/height is -1, get size of window
13528 from X server.
13529
13530 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
13531 for MapNotify.
13532
835bdaa7 13533 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 13534 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 13535 (flush_and_sync): Reintroduce.
574c8efa 13536
3f1c6666 135372009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 13538
31fd7c5c 13539 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
13540
13541 * xterm.c (x_handle_net_wm_state): Also look for sticky.
13542 (x_term_init): Initialize Xatom_net_wm_state_sticky.
13543
13544 * frame.h: Declare Qsticky.
13545
cad9ef74
JD
13546 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
13547
13548 * nsfns.m (ns_frame_parm_handlers): Ditto.
13549
13550 * frame.c: Declare Qsticky.
13551 (frame_parms): Add sticky.
13552
13553 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
13554
13555 * xterm.h: Declare x_set_sticky.
13556
13557 * xterm.c (x_set_sticky): New function.
13558
69b16610
JD
13559 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
13560 (xg_tool_bar_menu_proxy): Attach enter/leave events to
13561 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
13562
13563 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
13564
13565 * frame.c: Qmaximized is new.
13566 (x_set_frame_parameters): Do not handle fullscreen specially.
13567 Only set width and height if explicitly set.
13568 (x_set_fullscreen): Handle Qmaximized.
13569 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
13570 (syms_of_frame): Initialize Qmaximized.
13571
1ac9108a
SM
13572 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
13573 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
13574
13575 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
13576 for Expose event. Add call to x_check_fullscreen for MapNotify event.
13577 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
13578 set gravity to NorthWestGravity when USE_GTK.
13579 (set_wm_state): New function.
31fd7c5c 13580 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
13581 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
13582 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 13583 or the case when no window manager is running. That means remove calls
3f1c6666
JD
13584 to x_real_positions and x_fullscreen_adjust.
13585
13586 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
13587 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
13588 flush_and_sync.
13589 (xg_height_changed): New function.
13590 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
13591 and gtk_window_set_policy. Set frame gravity after parsing the
13592 geometry string.
3f1c6666
JD
13593 (xg_update_frame_menubar, free_frame_menubar)
13594 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13595 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
13596 Remove calls to xg_frame_set_char_size.
13597
fd503d99
KH
135982009-07-01 Kenichi Handa <handa@m17n.org>
13599
13600 * keyboard.c (decode_keyboard_code): New function.
13601 (tty_read_avail_input): Decode the input bytes if necessary.
13602
1ac9108a
SM
13603 * coding.c (setup_coding_system):
13604 Initialize coding->carryover_bytes to 0.
fd503d99
KH
13605 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13606 use Qno_conversion.
13607
24ed93fb
YM
136082009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13609
13610 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13611
99061dfc
CY
136122009-06-30 Chong Yidong <cyd@stupidchicken.com>
13613
1ac9108a 13614 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 13615
ff90fbde
JR
136162009-06-30 Jason Rumney <jasonr@gnu.org>
13617
13618 * w32term.c (w32_initialize): Use GetModuleHandle for library that
13619 is already loaded.
13620 Set user model ID if supported (bug#1849).
13621
5f445726
JM
136222009-06-29 Jim Meyering <meyering@redhat.com>
13623
13624 Remove useless if-before-xfree test.
13625 * nsfont.m (nsfont_close): Remove useless test.
13626 * term.c (delete_tty): Likewise.
13627 * w32.c (system_process_attributes): Likewise.
13628 * w32font.c (w32font_close): Likewise.
13629 * xfaces.c (x_free_gc): Likewise.
13630 * xselect.c (buffer): Likewise.
13631
b9607587
AS
136322009-06-28 Andreas Schwab <schwab@linux-m68k.org>
13633
13634 * process.c (send_process): Keep decoded string in a local
13635 variable and protect it from GC. (Bug#3521)
13636
89ba96f4
EZ
136372009-06-28 Eli Zaretskii <eliz@gnu.org>
13638
13639 * term.c (create_tty_output) [MSDOS]: #ifdef away.
13640 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13641
098a1589
CY
136422009-06-28 Chong Yidong <cyd@stupidchicken.com>
13643
485422be
CY
13644 * xdisp.c (start_display, handle_face_prop)
13645 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
13646 (redisplay_window, try_window_id, produce_image_glyph):
13647 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 13648
098a1589
CY
13649 * xterm.c (x_update_window_begin, x_new_focus_frame)
13650 (x_scroll_bar_handle_click, handle_one_xevent)
13651 (handle_one_xevent, XTread_socket, x_focus_on_frame)
13652 (x_make_frame_visible, x_make_frame_invisible)
13653 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13654 code chunks that are now obsolete.
13655
78c38319
MA
136562009-06-28 Michael Albinus <michael.albinus@gmx.de>
13657
13658 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13659 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
13660 for hours, when optimzation is enabled.
13661 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13662 (xd_read_message): Make them static.
13663
4189ed40
CY
136642009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
13665
13666 * term.c (turn_on_face): Allow simultaneously bold and dim
13667 terminal faces (Bug#3530).
13668
cd9b5e16
CY
136692009-06-27 Chong Yidong <cyd@stupidchicken.com>
13670
4e23bedb
CY
13671 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13672
cd9b5e16
CY
13673 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13674 truncation glyphs (Bug#3686).
13675
07cc3c35
GM
136762009-06-27 Glenn Morris <rgm@gnu.org>
13677
13678 * m/pmax.h: Restore file, with only netbsd portions.
13679
31fd7c5c 136802009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 13681
cd9b5e16 13682 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 13683
42d4a64f
KH
136842009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
13685
13686 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13687 the arg FORCE_SYMBOL.
13688
930fe55b 136892009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
13690
13691 * fontset.c (fontset_find_font): When a usable rfont_def is found
13692 in a fallback font-group, make it the first element of the group.
13693
57ebc3fd
CY
136942009-06-24 Chong Yidong <cyd@stupidchicken.com>
13695
13696 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13697
f084f942
KH
136982009-06-24 Kenichi Handa <handa@m17n.org>
13699
13700 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
13701 set for C.
13702 (fontset_font): Record the availability of a font for C both in
13703 the realized fontsets of the current one and the default one.
13704
2f686c87
DN
137052009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
13706
13707 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
13708 conditional, it is always defined on AIX.
13709
666e158e
MB
137102009-06-23 Miles Bader <miles@gnu.org>
13711
13712 * window.c (Vrecenter_redisplay): New variable.
13713 (syms_of_window): Initialize it.
13714 (Qtty): New extern declaration.
13715 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
13716
c6da7cd2
JM
137172009-06-23 Jim Meyering <meyering@redhat.com>
13718
1ac9108a
SM
13719 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13720 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 13721 pointer dereferences are guaranteed to be valid.
c6da7cd2 13722
678dca3d
KH
137232009-06-23 Kenichi Handa <handa@m17n.org>
13724
74d75424
KH
13725 * emacs.c (main): Call init_font ().
13726
13727 * font.h (Vfont_log): Extern it.
13728 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13729
13730 * font.c (font_sort_entities, font_list_entities)
13731 (font_matching_entity, font_open_entity)
13732 (font_close_object): Change font_add_log to FONT_ADD_LOG.
13733 (Vfont_log): Delete static.
13734 (font_log_env_checked): Delete this variable.
13735 (font_add_log): Don't check font_log_env_checked.
13736 (font_deferred_log): Check Vfont_log.
13737 (init_font): New function.
13738
678dca3d
KH
13739 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13740
13741 * w32font.c: Change font_add_log to FONT_ADD_LOG.
13742
13743 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
13744
13745 * xfont.c: Change font_add_log to FONT_ADD_LOG.
13746
13747 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
13748 (face_for_char): Don't call font_deferred_log here.
13749 (font_for_char): Likewise.
13750
8a668709
CY
137512009-06-22 Chong Yidong <cyd@stupidchicken.com>
13752
9a01ee33
CY
13753 * w32term.c (x_draw_glyph_string): Use the glyph string's width
13754 rather than its background_width for drawing the overline and
13755 underline (Bug#489).
13756
13757 * xterm.c (x_draw_glyph_string): Use the glyph string's width
13758 rather than its background_width for drawing the overline and
13759 underline (Bug#489).
ec7c9926
CY
13760 (xg_default_icon_file): New variable.
13761 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
13762 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 13763
8a668709
CY
13764 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
13765 (load_overlay_strings): Remove externs.
13766 (fast_find_position): Function deleted.
13767 (mouse_face_from_buffer_pos): New function, based on
13768 fast_find_position. Correctly handle before-strings,
13769 display-strings, and after-strings (Bug#1220).
13770 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
13771
4d4c02d8
CY
137722009-06-21 Chong Yidong <cyd@stupidchicken.com>
13773
1ac9108a 13774 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
13775 (move_it_in_display_line_to, move_it_in_display_line_to)
13776 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
13777
70243478
CY
137782009-06-21 Chong Yidong <cyd@stupidchicken.com>
13779
13780 * Branch for 23.1.
13781
13087e59
JR
137822009-06-21 Jason Rumney <jasonr@gnu.org>
13783
13784 * w32term.c (keyboard_codepage): New static variable.
13785 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
13786 (w32_read_socket) [WM_CHAR]: Use it to decode character
13787 input (bug#3237).
13788 (w32_initialize): Initialize it.
13789 (codepage_for_locale): New function.
13790
4735b74e
KR
137912009-06-20 Ken Raeburn <raeburn@raeburn.org>
13792
13793 * process.c (status_message): Pass Faset index argument as a lisp
13794 object, so as to work with USE_LISP_UNION_TYPE.
13795
0e727afa
YM
137962009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13797
13798 * coding.c (Ffind_coding_systems_region_internal):
13799 Cache checked characters.
13800
cf299835
KH
138012009-06-18 Kenichi Handa <handa@m17n.org>
13802
1ac9108a 13803 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 13804
90f20d94
AS
138052009-06-18 Andreas Schwab <aschwab@redhat.com>
13806
13807 * xdisp.c (redisplay_internal): Check that the frame is still
13808 live after redisplay of its windows.
13809 (redisplay_windows): Check that the window is still live.
13810
7f1faf1c
KH
138112009-06-17 Andreas Schwab <schwab@linux-m68k.org>
13812
13813 * coding.c (detect_coding_utf_16): Fix previous change.
13814
cc13543e
KH
138152009-06-16 Kenichi Handa <handa@m17n.org>
13816
13817 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
13818 UTF-16 by checking the dispersion of Eth and Oth bytes.
13819
977b85f4
AS
138202009-06-15 Andreas Schwab <schwab@linux-m68k.org>
13821
13822 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
13823
66bd43d1
KH
138242009-06-15 Kenichi Handa <handa@m17n.org>
13825
13826 * process.c (status_message): Fix previous change. Be sure to
13827 decode a localized string.
13828
cb5ca9c5
YM
138292009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13830
13831 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
13832 add comment explaining why.
13833
ec7709ba 138342009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 13835
ec7709ba 13836 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 13837
4b7f335c
AR
138382009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
13839
13840 * nsfont.m (ns_attribute_value): Remove.
13841 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
13842 (ns_has_attribute): Shrink the normal range.
13843 (ns_findfonts): Don't worry about requested spec in determining
13844 need for synthItal.
e41820ee 13845 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 13846
73b26103
SZ
138472009-06-14 Seiji Zenitani <zenitani@mac.com>
13848
13849 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
13850
5753e4da
KH
138512009-06-11 Kenichi Handa <handa@m17n.org>
13852
13853 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13854 overhang for the static composition case.
13855
3561b671
KH
138562009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13857
5753e4da
KH
13858 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13859 overhang for the automatic composition case.
13860
3561b671
KH
13861 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
13862 composition case.
13863
852bbd41
CY
138642009-06-10 Chong Yidong <cyd@stupidchicken.com>
13865
13866 * xdisp.c (get_next_display_element): When handling wrap-prefix
13867 and line-prefix, treat \n as a control character (bug#3502).
13868
9903d1e6
KH
138692009-06-10 Kenichi Handa <handa@m17n.org>
13870
13871 * font.c (font_parse_family_registry): Fix for one-char foundry.
13872 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
13873
0bcbaaaa
CY
138742009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
13875
13876 * process.c (status_message): Fix handling of multibyte signal
13877 string (Bug#3499).
13878
40aa3f13
JM
138792009-06-09 Jim Meyering <meyering@redhat.com>
13880
1f80c7e2
CY
13881 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
13882 color name is missing.
40aa3f13 13883
72d51285
KH
138842009-06-09 Kenichi Handa <handa@m17n.org>
13885
13886 * charset.c (Fmap_charset_chars): In docstring, state clearly that
13887 FROM-CODE and TO-CODE are codepoints of CHARSET.
13888
c1d04d84
AR
138892009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13890
13891 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
13892
138932009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13894
13895 Changes to support :script/:lang/:otf in NS font driver.
13896 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
13897 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
13898 indicate not part of font driver interface, and change callers.
13899 (ns_get_family): Remove pointless null check.
13900 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
13901 ns_spec_to_descriptor, ns_descriptor_to_entity.
13902 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
13903 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
13904 (ns_spec_to_descriptor, ns_descriptor_to_entity)
13905 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
13906 (ns_get_req_script, ns_accumulate_script_ranges)
13907 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
13908 New functions.
13909 (nsfont_list, nsfont_match): Use ns_findfonts.
13910 (nsfont_open): Use font descriptor instead of traits.
13911 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
13912 (dump_glyphstring): Rename to ns_dump_glyphstring.
13913
c7eb9816
AR
13914 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
13915
c1d04d84
AR
13916 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
13917
13918 * fontset.c (fontset_from_font): Remove NS-specific code.
13919
ec7709ba 139202009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
13921
13922 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
13923 nonactive windows.
13924
31fd7c5c 139252009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 13926
1ac9108a 13927 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 13928
68852c13 139292009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
13930
13931 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
13932
6756cd1d
CY
139332009-06-07 Chong Yidong <cyd@stupidchicken.com>
13934
13935 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
13936 account for the overflowing of newlines into the last glyph on the
13937 display line (Bug#3482).
13938
28bf482a
DR
139392009-06-05 David Reitter <david.reitter@gmail.com>
13940
ec7709ba
JB
13941 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
13942 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
13943 Fns_selection_exists_p, Fns_selection_owner_p.
13944
fdb55376
JR
139452009-06-03 Jason Rumney <jasonr@gnu.org>
13946
13947 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
13948 available. (Bug#3379)
13949
05129fbe
KH
139502009-05-29 Kenichi Handa <handa@m17n.org>
13951
1ac9108a
SM
13952 * coding.c (get_translation_table):
13953 Check Venable_character_translation.
05129fbe 13954
ec7709ba 139552009-05-26 David Reitter <david.reitter@gmail.com>
15891144 13956
ec7709ba
JB
13957 * nsterm.m (ns_raise_frame): Only raise frame if visible.
13958 (x_make_frame_visible): Move frame to front rather than calling
15891144 13959 ns_raise_frame().
ec7709ba 13960 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 13961 isn't key window.
ec7709ba 13962 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
13963 drawRect may be called by NSView even if the frame is hidden.
13964
ec7709ba
JB
13965 * nsfns.m (Fx_create_frame): Follow other ports in
13966 determining visibility; default to t. Ensure async_visible is set.
15891144 13967
21f73755
EZ
139682009-05-23 Eli Zaretskii <eliz@gnu.org>
13969
13970 * dired.c (Ffile_attributes): Doc fix.
13971
34001e41
CY
139722009-05-22 Chong Yidong <cyd@stupidchicken.com>
13973
13974 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
13975
46306a17
SM
139762009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
13977
13978 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
13979 and xfont_scratch_props.
13980 (syms_of_xfont): Do it here instead.
13981 (xfont_find_ccl_program): Delete, unused.
13982 (xfont_open): Delete unused var `i'.
13983
ef6e0694
KH
139842009-05-21 Kenichi Handa <handa@m17n.org>
13985
13986 * fontset.c (Qlatin): Don't make it static.
13987
46306a17
SM
13988 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
13989 New functions.
ef6e0694
KH
13990 (xfont_scripts_cache, xfont_scratch_props): New variables.
13991 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
13992 (xfont_list_pattern): Argument changed. Callers changed.
13993 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
13994 (xfont_list): Don't reject a font spec with :script property.
13995 (xfont_has_char): Fix setting of encoding.
13996 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
13997 xfont_scratch_props.
13998
139992009-05-19 Kenichi Handa <handa@m17n.org>
14000
46306a17 14001 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
14002 Callers changed.
14003
140042009-05-18 Kenichi Handa <handa@m17n.org>
14005
14006 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
14007
ac71ced7
SM
140082009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14009
14010 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
14011 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
14012
1c6d1051
YM
140132009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14014
14015 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
14016 (x_delete_terminal): Dissociate resource database from display and
14017 then call XrmDestroyDatabase before closing display.
14018
9b9b779c
AR
140192009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
14020
14021 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
14022 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
14023 whether selected frame is viable before raising it (based on patch
14024 by David Reitter), and improve commentary.
14025 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 14026
cccd42d5
KH
140272009-05-15 Kenichi Handa <handa@m17n.org>
14028
14029 * font.c (Ffont_spec): Check arguments.
14030
337fbd17
CY
140312009-05-14 Chong Yidong <cyd@stupidchicken.com>
14032
14033 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
14034 weight when testing attributes (Bug#3282).
14035
47a6002f
JD
140362009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14037
14038 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
14039 what we expect to get in the next ConfigureNotify event.
14040
9cb363db
YM
14041 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
14042 before Xft one (Bug#1696).
14043
b9126609
CY
140442009-05-07 David Reitter <david.reitter@gmail.com>
14045
14046 * nsfns.m (Fx_display_planes): Compute bitplanes using
14047 NSBitsPerPixelFromDepth (Bug#3207).
14048
27a69fd9
CY
140492009-05-10 Chong Yidong <cyd@stupidchicken.com>
14050
14051 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
14052
00f37552
TTN
140532009-05-10 Ulrich Mueller <ulm@gentoo.org>
14054
14055 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
14056
2d82a920
DR
140572009-05-07 David Reitter <david.reitter@gmail.com>
14058
ec7709ba
JB
14059 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
14060 Respect mouse face background.
2d82a920 14061
46b0d52d
DR
140622009-05-07 David Reitter <david.reitter@gmail.com>
14063
ec7709ba
JB
14064 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
14065 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
14066 in ns_update_begin and ns_update_end.
14067
ce1b23bb
SM
140682009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14069
5996e1b7
SM
14070 * nsfns.m (ns_get_screen): Rewrite.
14071 Don't presume selected-frame is of type `ns'.
14072
ba98e3a0
SM
14073 * font.c (font_update_drivers): Sanity fallback to avoid disabling
14074 all drivers.
14075
ce1b23bb
SM
14076 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
14077
bcda200f
YM
140782009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14079
14080 * keyboard.h (add_user_signal): Fix typo in extern.
14081
14082 * lisp.h (add_user_signal): Remove extern.
14083
14084 * unexelf.c (unexec): Consider a section to precede the .bss section
14085 if its addresses overlap that of .bss.
14086 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
14087 instead of dumping process.
14088
864660a2
SM
140892009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
14090
14091 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
14092
50da4e56
SM
140932009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
14094
14095 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
14096
51520a1a
DN
140972009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
14098
14099 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
14100 any statements.
14101
409ea3a1
AS
141022009-05-02 Andreas Schwab <schwab@linux-m68k.org>
14103
59c4c60f
AS
14104 * process.c (read_process_output): Make sure the current buffer is
14105 always restored.
14106
409ea3a1
AS
14107 * coding.c (record_conversion_result): Don't modify
14108 Vlast_code_conversion_error for successful result.
14109 (alloc_destination): Don't clobber conversion result. (Bug#1650)
14110
56f00ed2
KH
141112009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14112
14113 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 14114 (load_charset_map): Remove unnecessary code.
56f00ed2 14115
4491c9d2
DR
141162009-04-30 David Reitter <david.reitter@gmail.com>
14117
35f5b128 14118 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
14119 through f24.
14120
6970f632
CY
141212009-04-30 Chong Yidong <cyd@stupidchicken.com>
14122
14123 * xfaces.c (face_at_buffer_position): New arg base_face_id.
14124
14125 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
14126 face_at_buffer_position.
14127 (face_before_or_after_it_pos, get_next_display_element)
14128 (note_mouse_highlight): Update face_at_buffer_position call.
14129
14130 * term.c (term_mouse_highlight):
14131 * msdos.c (IT_note_mouse_highlight):
14132 * fontset.c (Finternal_char_font):
35f5b128 14133 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
14134
14135 * dispextern.h (face_at_buffer_position): Update prototype.
14136
0c616f63
KH
141372009-04-30 Kenichi Handa <handa@m17n.org>
14138
35f5b128 14139 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 14140
ad3aaf33
AS
141412009-04-29 Andreas Schwab <schwab@linux-m68k.org>
14142
14143 * callproc.c (Fcall_process): Fix GC protection. Make sure
14144 current buffer is always restored.
14145
c3c963a0
YM
141462009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14147
14148 * atimer.c (init_atimer): Also clear stopped_atimers.
14149
14150 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
14151
7e3386cb
YM
14152 * process.c (create_process): Clean up merger residues of
14153 2008-07-17 change.
14154
91f68422
CY
141552009-04-29 Ulrich Mueller <ulm@gentoo.org>
14156
14157 * lread.c (Vread_circle): New variable.
14158 (read1): Disable recursive read if Vread_circle is nil.
14159
24b34550
KH
141602009-04-29 Kenichi Handa <handa@m17n.org>
14161
14162 * fontset.h (set_default_ascii_font): Delete extern.
14163
14164 * fontset.c (set_default_ascii_font): Delete this unused function.
14165
14166 * frame.c (x_set_font): When ARG is a font-object, check if the
14167 font-object matches with the ASCII font-spec of the frame's
9c358bda 14168 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 14169
77bf07e1
AS
141702009-04-28 Andreas Schwab <schwab@linux-m68k.org>
14171
14172 * fns.c (Flocale_info): Protect vector from GC during decoding.
14173
14174 * process.c (Fstart_process): Protect argv strings from GC during
14175 encoding.
14176
2c55aacf
AS
141772009-04-27 Andreas Schwab <schwab@linux-m68k.org>
14178
14179 * sysdep.c: Include <ctype.h>.
14180
b892d3c9
DR
141812009-04-27 David Reitter <david.reitter@gmail.com>
14182
35f5b128 14183 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
14184 Remove commented-out code.
14185
9d0644c4
JB
141862009-04-26 Johan Bockgård <bojohan@gnu.org>
14187
14188 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14189
b7053016
JR
141902009-04-25 Jason Rumney <jasonr@gnu.org>
14191
14192 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
14193
4e8231f3
YM
141942009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14195
14196 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
14197 Swap bytes in short integer if fringe bitmap width > 8.
14198
493dcf2c
KH
141992009-04-23 Kenichi Handa <handa@m17n.org>
14200
14201 * xfaces.c (Fx_list_fonts): If a font size is specified in
14202 PATTERN, set it in returned scalable fonts.
14203
401e9e57
CY
142042009-04-22 Chong Yidong <cyd@stupidchicken.com>
14205
708e05dc
CY
14206 * keyboard.c (Fset_input_meta_mode): Doc fix.
14207
14208 * dispnew.c (Fsend_string_to_terminal): Doc fix.
14209
1ac9108a 14210 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
14211
14212 * coding.c (Fterminal_coding_system): Doc fix.
14213
14214 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
14215 (Fx_display_pixel_height, Fx_display_planes)
14216 (Fx_display_color_cells, Fx_server_max_request_size)
14217 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14218 (Fx_display_mm_height, Fx_display_mm_width)
14219 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
14220 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
14221 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
14222 (check_x_display_info): Handle terminal objects instead of
14223 terminal ids.
14224
401e9e57
CY
14225 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
14226 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
14227 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
14228 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 14229
df80c7f0
KH
142302009-04-21 Kenichi Handa <handa@m17n.org>
14231
5a8f12af 14232 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 14233 (font_score): Check AVGWIDTH too.
908567ef 14234
df80c7f0
KH
14235 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
14236 worst case.
1ac9108a
SM
14237 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
14238 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 14239
705af33f
JR
142402009-04-19 Jason Rumney <jasonr@gnu.org>
14241
14242 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 14243 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
14244
14245 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
14246 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
14247 get_phys_cursor_geometry.
14248
b71ac3dd 14249 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
14250 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
14251 using get_phys_cursor_geometry.
14252
14253 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
14254 correctly calculated.
14255
dc2933eb
JD
142562009-04-19 Jan Djärv <jan.h.d@swipnet.se>
14257
1ac9108a
SM
14258 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
14259 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
14260 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
14261 is deprecated.
14262
973e7849
AS
142632009-04-18 Andreas Schwab <schwab@linux-m68k.org>
14264
14265 * font.c (font_put_frame_data): Use xfree instead of free.
14266
314d66f4
JB
142672009-04-17 Juanma Barranquero <lekktu@gmail.com>
14268
14269 * w32font.c (Qja, Qko): Remove declarations.
14270 (syms_of_w32font): Don't DEFSYM them.
14271
cf702558
CY
142722009-04-17 Chong Yidong <cyd@stupidchicken.com>
14273
14274 * font.c (Qja, Qko): Move definitions here from ftfont.c.
14275
14276 * font.h (Qja, Qko): Extern them.
14277
14278 * ftfont.c (Qja, Qko): Remove declarations.
14279
14280 * xfont.c (Qja, Qko): Remove declarations.
14281
b50504f5
KH
142822009-04-17 Kenichi Handa <handa@m17n.org>
14283
bde25748
KH
14284 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
14285 string from a vector to handle Latin-1 characters correctly.
14286
b50504f5
KH
14287 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
14288 entity even if the cache hits.
14289
f4646fff
AS
142902009-04-16 Andreas Schwab <schwab@linux-m68k.org>
14291
14292 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 14293 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 14294
e7deaab0
AS
14295 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
14296 * lisp.h: Adjust prototypes.
14297
0a0e7d49
CY
142982009-04-16 Chong Yidong <cyd@stupidchicken.com>
14299
14300 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
14301 change (Bug#3003).
14302
3c908a57
KH
143032009-04-16 Kenichi Handa <handa@m17n.org>
14304
1ac9108a 14305 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
14306
14307 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
14308 adstyle.
14309
14310 * ftfont.c (Qja, Qko): Don't make them static.
14311 (enum ftfont_cache_for): New enum.
14312 (fc_charset_table): Undo the previous change.
14313 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
14314 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
14315 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
14316 non-scarable font, try to get AVERAGE_WIDTH.
14317 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
14318 Change ft_face_cache from a list of a hash-table. Don't check
14319 `ja' and `ko' adstyle here.
14320 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
14321 FTFONT_CACHE_FOR_CHARET.
14322 (ftfont_get_charset): Undo the previous change.
1ac9108a 14323 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
14324 (ftfont_close): Likewise.
14325 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
14326
14327 * font.c (font_sort_entites): Change the meaning of the arg
14328 BEST-ONLY. Don't optimize for VEC of lenght 1.
14329 (font_select_entity): Just return the value of font_sort_entites.
14330
14331 * xfaces.c (merge_face_vectors): Reflect font properties in
14332 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
14333 font_clear_prop if a face attribute doesn't change.
14334
3c908a57
KH
14335 * charset.h (charset_ksc5601): Extern it.
14336
14337 * charset.c (charset_ksc5601): New variable.
14338 (Fdefine_charset_internal): Set charset_ksc5601.
14339 (init_charset_once): Initialize charset_ksc5601 to -1.
14340
d65859c3
DN
143412009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
14342
14343 * fileio.c (history_delete_duplicates): Remove unused declaration.
14344
14345 * callint.c (history_delete_duplicates): New declaration.
14346 (Fcall_interactively): Remove command history duplicates when
14347 history_delete_duplicates is true.
14348
3ba010e5
EZ
143492009-04-14 Eli Zaretskii <eliz@gnu.org>
14350
14351 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
14352
06f19b91
KH
143532009-04-14 Kenichi Handa <handa@m17n.org>
14354
14355 * font.c (Ffont_info): Fix docstring. Fix the second element of
14356 the returned value (bug#2949).
14357
2cce8bfc
CY
143582009-04-14 Chong Yidong <cyd@stupidchicken.com>
14359
14360 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
14361
d156542d
KH
143622009-04-14 Kenichi Handa <handa@m17n.org>
14363
14364 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
14365 encoding charset is ascii_compatible.
14366
14367 * charset.c (Fdefine_charset_internal): Make charset
14368 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
14369 code_offset is 0, and covers all ASCII characters.
14370
86fa089e
SM
143712009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
14372
14373 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
14374 (ns_string_to_pasteboard_internal):
14375 * nsmenu.m (process_dialog):
14376 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
14377 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
14378 * lisp.h (Fx_load_color_file): Declare.
14379
a8a3728b
KH
143802009-04-13 Kenichi Handa <handa@m17n.org>
14381
1ac9108a 14382 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
14383 (font_select_entity): Suppress the code to optimize for the same
14384 kind of fonts.
14385 (font_load_for_lface): Get a font that supports at least ASCII
14386 characters.
14387
14388 * ftfont.c (Qja, Qko): New variables.
14389 (fc_charset_table): Delete uniquifier data for iso8859-1.
14390 (ftfont_get_latin1_charset): New function.
14391 (get_adstyle_property): New function.
14392 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
14393 bitmap fonts.
14394 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
14395 Delete iso-8859-1 range from the charset of fonts whose adstyle is
14396 `ko' or `ja'.
14397 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 14398 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
14399 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
14400 property.
14401 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
14402 (syms_of_ftfont): DEFSYM Qja and Qko.
14403
483670b5
KH
144042009-04-09 Kenichi Handa <handa@m17n.org>
14405
12b55765
KH
14406 * charset.c (map_charset_chars): For a charset of `superset'
14407 method, fix calculation of code range.
14408
483670b5
KH
14409 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
14410 from the list of extra properties.
14411 (font_clear_prop): Be sure to delete `:name' font property.
14412
57d3b93b
KH
144132009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14414
b4b2c2ca
YM
14415 * dispnew.c (redraw_overlapping_rows): Fix detection of
14416 overlapping for topmost and bottommost rows.
14417
1ac9108a 14418 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 14419
472c3609
JR
144202009-04-06 Jason Rumney <jasonr@gnu.org>
14421
14422 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
14423
ab193662
KH
144242009-04-06 Kenichi Handa <handa@m17n.org>
14425
14426 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
14427
14428 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
14429
0c26f026
KH
144302009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14431
14432 * ftfont.c (ftfont_open): Fix checking of the return value of
14433 FT_Load_Char. Fix setting font->underline_thickness.
14434
e173bbce
CY
144352009-04-04 Chong Yidong <cyd@stupidchicken.com>
14436
14437 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
14438 (Fterminal_parameters, Fterminal_parameter)
14439 (Fset_terminal_parameter): In doc string, refer to terminal
14440 objects rather than terminal ids.
14441
693a2698
EZ
144422009-04-04 Eli Zaretskii <eliz@gnu.org>
14443
14444 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
14445 ret_lim_data. (Bug#2867)
14446
d5221487
CY
144472009-04-03 Chong Yidong <cyd@stupidchicken.com>
14448
14449 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
14450 so they don't get wider than the window, matching 2006-01-23
14451 change to the partner function in xdisp.c (Bug#2800).
14452
223509a3
KH
144532009-04-03 Kenichi Handa <handa@m17n.org>
14454
14455 * print.c (print_object): Make each lowest sub_char_table start a
14456 new line (Bug#2866).
14457
74fcd0b1
KH
144582009-04-02 Kenichi Handa <handa@m17n.org>
14459
14460 * fontset.c (fontset_font): Record no-font when a fontset
14461 explicitly tells not to try another font-specs.
14462
c542407d
SM
144632009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
14464
14465 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
14466
e3869731
KH
144672009-03-30 Kenichi Handa <handa@m17n.org>
14468
d8d2f142
KH
14469 * fontset.c (fontset_from_font): Specify only registry in a
14470 font-spec for all characters supported by that registry.
14471
e3869731
KH
14472 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
14473 even if HAVE_M17N_FLT is not defined.
14474
5da5f805
CY
144752009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
14476
14477 * ftfont.c: Conditionalize prototyping and use of
14478 ftfont_variation_glyphs.
14479
ab226c50
SM
144802009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14481
9628fed7
SM
14482 * frame.c (delete_frame): Work around compiler bug.
14483
14484 * editfns.c (general_insert_function): Adjust to insdel.c changes.
14485 * insdel.c (prepare_to_modify_buffer, signal_before_change):
14486 Some more EMACS_INT.
14487 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
14488
14489 * xdisp.c (dump_glyph): Fix typo.
14490
ae19ba7c
SM
14491 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
14492 (adjust_markers_gap_motion, adjust_markers_for_delete)
14493 (adjust_markers_for_insert, adjust_point)
14494 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
14495 (make_gap, copy_text, count_size_as_multibyte, insert)
14496 (insert_and_inherit, insert_before_markers)
14497 (insert_before_markers_and_inherit, insert_1)
14498 (count_combining_before, count_combining_after, insert_1_both)
14499 (insert_from_string, insert_from_string_before_markers)
14500 (insert_from_string_1, insert_from_gap, insert_from_buffer)
14501 (insert_from_buffer_1, adjust_after_replace)
14502 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
14503 (replace_range_2, del_range, del_range_1, del_range_byte)
14504 (del_range_both, del_range_2, modify_region)
14505 (prepare_to_modify_buffer, signal_before_change)
14506 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
14507 for buffer positions and sizes.
14508 * lisp.h: Adjust prototypes accordingly.
14509
14510 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
14511 (non_regular_inserted, non_regular_nbytes, read_non_regular)
14512 (Finsert_file_contents): Use EMACS_INT for buffer positions.
14513
ab226c50
SM
14514 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
14515
46dfb8fb
JD
145162009-03-27 Jan Djärv <jan.h.d@swipnet.se>
14517
14518 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
14519 lines and columns so we keep the same pixel height and width.
14520
14521 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
14522 the property _NET_WM_STATE has changed.
46dfb8fb
JD
14523 (x_handle_net_wm_state): New function to update frame parameter
14524 fullscreen.
14525 (x_term_init): Initialize atoms for _NET_WM_STATE.
14526
14527 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
14528
d347e494
SM
145292009-03-27 Kevin Ryde <user42@zip.com.au>
14530
14531 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
14532 Gpm_GetEvent as an error that justifies closing the filedescriptor.
14533 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
14534 (Fgpm_mouse_stop): Pass that new parameter.
14535 * termhooks.h (close_gpm): Adjust prototype.
14536
84db11d6
SM
145372009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14538
c95a5008
SM
14539 * lisp.h (Fx_focus_frame): Declare.
14540
84db11d6
SM
14541 * callint.c (Fcall_interactively): For '^' just delegate the work to
14542 handle-shift-selection.
14543 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
14544
0a1958d6
CY
145452009-03-24 Chong Yidong <cyd@stupidchicken.com>
14546
0bfdff23
CY
14547 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
14548
0a1958d6
CY
14549 * data.c (Qinteractive_form): New variable.
14550 (Finteractive_form): Use it.
14551
14552 * eval.c (Fcommandp): Use Qinteractive_form.
14553
58aec0d6
JR
145542009-03-24 Jason Rumney <jasonr@gnu.org>
14555
14556 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
14557 Calculate total size precisely. Decode environment variables
14558 before substituting. (Bug#38)
14559
553dd618
KH
145602009-03-24 Kenichi Handa <handa@m17n.org>
14561
14562 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 14563 encoding (Bug#2722).
553dd618 14564
c39ea606
JD
145652009-03-23 Jan Djärv <jan.h.d@swipnet.se>
14566
14567 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
14568 that gdpy is set.
14569
bc9b2b5e
AM
145702009-03-22 Alan Mackenzie <acm@muc.de>
14571
14572 * callint.c (Finteractive): Clarify the doc string - even
14573 promptless elements need \n separators.
14574
9f995a76
JR
145752009-03-22 Jason Rumney <jasonr@gnu.org>
14576
14577 * w32term.c (syms_of_w32term): Doc fix for
14578 x-use-underline-position-properties.
14579
22749e9a
EZ
145802009-03-21 Eli Zaretskii <eliz@gnu.org>
14581
14582 * w32.c (getpwuid): Change argument type to unsigned.
14583 (struct w32_id): Change type of `rid' member to unsigned.
14584 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
14585 argument ID to unsigned. All callers changed.
14586 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
14587
e00553bf
EZ
145882009-03-20 Eli Zaretskii <eliz@gnu.org>
14589
14590 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
14591 negative, produce a float value.
14592
14593 * dired.c (make_uid, make_gid): New functions.
14594 (Ffile_attributes): Use them to avoid negative UID and GID.
14595
f761d6b6
JB
145962009-03-20 Juanma Barranquero <lekktu@gmail.com>
14597
14598 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14599 (syms_of_keyboard) <command-hook-internal, input-method-function>:
14600 Fix typos in docstrings.
14601
d507f8d7
KH
146022009-03-19 Kenichi Handa <handa@m17n.org>
14603
14604 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
14605 changed, use font_load_for_lface to get a new font object.
14606 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
14607
14608 * frame.c (x_set_font): Handle the case that ARG is a cons.
14609
c68845e0
GM
146102009-03-19 Glenn Morris <rgm@gnu.org>
14611
14612 * fileio.c (Fsubstitute_in_file_name): Doc fix.
14613
bfa49dd1
CY
146142009-03-19 Chong Yidong <cyd@stupidchicken.com>
14615
14616 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14617
8458d4c1
KH
146182009-03-19 Kenichi Handa <handa@m17n.org>
14619
14620 * charset.c (load_charset_map_from_file): When a mapfile can't be
14621 loaded, signal an error.
14622
78e7d1fe
EZ
146232009-03-18 Eli Zaretskii <eliz@gnu.org>
14624
14625 * dired.c (Ffile_attributes): Make sure UID and GID are always
14626 positive, even if the value is too large for a positive EMACS_INT.
14627 Doc fix.
14628
14629 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
14630
5da9fdfa
YM
146312009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14632
14633 * xmenu.c (xdialog_show): Move Fredisplay call ...
14634 (Fx_popup_dialog): ... here.
14635
7519c40d
SM
146362009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
14637
14638 * dired.c (file_name_completion): Disable the first optimization just
14639 installed, since it is not implemented correctly.
14640
2cd298e2
SM
146412009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14642
14643 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 14644 only if the entry can affect bestmatch.
2cd298e2
SM
14645 Stop the search early, as Ftry_completion already does.
14646
48d37adf
CY
146472009-03-17 Chong Yidong <cyd@stupidchicken.com>
14648
e10c9c93 14649 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 14650
9286b16a
CY
146512009-03-15 Chong Yidong <cyd@stupidchicken.com>
14652
14653 * keyboard.c (parse_menu_item): Don't display remappings as menu
14654 equivalent bindings (Bug#788).
14655
f7b146dc
JR
146562009-03-15 Jason Rumney <jasonr@gnu.org>
14657
14658 * w32term.h (WM_EMACS_PAINT): New message.
14659 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14660 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14661 before passing to lisp thread. (Bug#950)
14662
f761d6b6 146632009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 14664
d93f9575
CY
14665 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14666 variable as it was never reset.
14667 (ns_term_init): Remove initialization of Lisp-settable defaults
14668 and ns_expand_space.
14669 (-setPanelFromDefaultValues): Remove ns_expand_space.
14670 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14671 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
14672 i.e. no additional spacing, similar to Carbon port.
14673
d93f9575
CY
14674 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14675 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 14676
305018ec
JD
146772009-03-14 Jan Djärv <jan.h.d@swipnet.se>
14678
14679 * sound.c (alsa_configure): Remove call to deprecated
14680 snd_pcm_sw_params_set_xfer_align.
14681
f761d6b6 146822009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
14683
14684 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14685 after clicking in a detached tool bar.
14686 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14687
46e722a9
SM
146882009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
14689
348db3dd
SM
14690 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14691 int/Lisp_Object mixup).
46e722a9 14692
a3d16f39
KH
146932009-03-13 Kenichi Handa <handa@m17n.org>
14694
14695 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 14696 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
14697 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14698 (set_fontset_font): Change ARG to a vector. Handle range_list in
14699 ARG correctly.
14700 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 14701 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
14702 the above change.
14703 (fontset_from_font): Fix previous change.
fe24f56a 14704 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
14705 entry. If FONTSET is the default fontset, don't set the extra
14706 slot of the returning char-table.
14707
b066e6b6
JB
147082009-03-12 Juanma Barranquero <lekktu@gmail.com>
14709
14710 * nsfns.m (Fx_close_connection): Doc fix.
14711 (Fns_do_applescript): Reflow docstring.
14712 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
14713 (Fx_display_pixel_width, Fx_display_pixel_height)
14714 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
14715 Fix typos in docstrings.
14716 (Fns_set_alpha): Fix typos in error messages.
14717
d472514e 147182009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 14719
d472514e 14720 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
14721 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
14722 were used for such events.
14723
d472514e
JB
14724 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14725 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 14726
d472514e 14727 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
14728 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14729
fb930676
KH
147302009-03-11 Kenichi Handa <handa@m17n.org>
14731
ff85581a
KH
14732 * font.h (font_open_by_spec): Extern it.
14733
c50b7e98
KH
14734 * font.c (font_open_by_spec): New function.
14735 (font_open_by_name): Use font_open_by_spec.
14736
fb930676
KH
14737 * frame.c (x_set_font): When ARG is a font-object, don't alter the
14738 fontset of the frame.
14739
14740 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14741 modify the default font of frames that use this fontset.
14742 (num_auto_fontsets): New variable.
14743 (fontset_from_font): Use num_auto_fontsets to decide a fontset
14744 name. Be sure to set FONTSET_ASCII to the correct font name.
14745 (update_auto_fontset_alist): New function.
14746
df4e8455
JB
147472009-03-11 Juanma Barranquero <lekktu@gmail.com>
14748
14749 * makefile.w32-in: Update dependencies.
14750
0a375797
AR
147512009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14752
14753 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
14754
61313fa3
SM
147552009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14756
14757 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
14758
b55103fb
CY
147592009-03-10 Chong Yidong <cyd@stupidchicken.com>
14760
14761 * lread.c (Feval_buffer): Doc fix.
14762
dde2559c
KH
147632009-03-09 Kenichi Handa <handa@m17n.org>
14764
14765 * charset.c (Qfile_name_handler_alist): Extern it.
14766 (load_charset_map_from_file): Temporarily bind
14767 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
14768
df4e8455 147692009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 14770
47f588bb
GM
14771 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
14772 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 14773
4ddf94bd
AR
147742009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14775
4c9bdfc2
AR
14776 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
14777 (x_set_window_size): Change back to calculated method of setting
14778 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
14779 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
14780 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
14781
fe41ae9e
AR
14782 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
14783
4c9bdfc2
AR
14784 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
14785 accelerator in parens under GNUstep.
14786
825d0875
KH
147872009-03-06 Kenichi Handa <handa@m17n.org>
14788
14789 These changes are to detect incorrect composition sequence without
f3b3be74 14790 looking ahead the source. (Bug#2370)
825d0875
KH
14791
14792 * coding.h: Include "composite.h".
14793 (enum compisition_state): New enum.
14794 (struct compisition_status): New struct.
14795 (struct iso_2022_spec): New member cmp_status.
14796 (struct emacs_mule_spec): New struct.
14797 (struct coding_system): New members ctext_extended_segment_len and
14798 embedded_utf_8. Change the union member
14799 spec.emacs_mule_full_support to spec.emacs_mule.
14800
14801 * coding.c (CODING_ISO_CMP_STATUS): New macro.
14802 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 14803 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
14804 (ADD_COMPOSITION_DATA): New arg nbytes.
14805 (emacs_mule_char): New arg cmp_status.
14806 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
14807 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
14808 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
14809 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
14810 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
14811 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
14812 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
14813 (EMACS_MULE_COMPOSITION_END): New macro.
14814 (emacs_mule_finish_composition): New function.
14815 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
14816 (decode_coding_emacs_mule): Avoid long looking ahead while
14817 handling composition.
14818 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
14819 (ENCODE_COMPOSITION_RULE): New macro.
14820 (finish_composition): New function.
14821 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
14822 (DECODE_COMPOSITION_START): New implementation.
14823 (DECODE_COMPOSITION_END): Likewise.
14824 (STORE_COMPOSITION_RULE): New macro.
14825 (decode_coding_iso_2022): Avoid long looking ahead while handling
14826 composition, CTEXT extended segment, and embedded UTF-8.
14827 (setup_coding_system): For a coding of type iso-2022, reset
14828 CODING_ISO_EXTSEGMENT_LEN (coding) and
14829 CODING_ISO_EMBEDDED_UTF_8 (coding).
14830 (get_translation): Delete arguments last_block, from_nchars,
14831 to_nchars. Callers changed.
14832 (produce_chars): Don't modify charbuf. Adjusted for the change of
14833 get_translation.
98a326f7 14834 (produce_composition): Adjust for the new annotation sequence.
825d0875 14835 (handle_composition_annotation): Likewise.
98a326f7 14836 (consume_chars): Adjust for the change of get_translation.
825d0875 14837
ccbc4452
AR
148382009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
14839
4ddf94bd 14840 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 14841
988a7ddb
KH
148422009-03-05 Kenichi Handa <handa@m17n.org>
14843
14844 * font.c (font_select_entity): New function.
14845 (font_find_for_lface): Use font_select_entity to select a font.
14846
14847 * fontset.c (fontset_find_font): If a font found without
a8a3728b 14848 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
14849 font with C restriction.
14850
98a326f7 148512009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 14852
be1bce46 14853 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 14854
10ea2b82
JR
148552009-03-04 Jason Rumney <jasonr@gnu.org>
14856
2c93b248 14857 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 14858 characters that have already been read. (Bug#2569)
2c93b248 14859
10ea2b82
JR
14860 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
14861 Log an error message if check_image_size failed.
14862 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 14863 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 14864
71a0c011
EZ
148652009-03-02 Eli Zaretskii <eliz@gnu.org>
14866
14867 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
14868 when decoding process output.
14869
2f63bba8
RS
148702009-03-01 Richard M Stallman <rms@gnu.org>
14871
14872 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
14873
14874 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
14875
0a9564cb
EZ
148762009-02-28 Eli Zaretskii <eliz@gnu.org>
14877
14878 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
14879 (decode_coding_emacs_mule, decode_coding_iso_2022)
14880 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14881 (decode_coding_raw_text, decode_coding_charset)
14882 (setup_coding_system, decode_eol, decode_coding, consume_chars):
14883 Honor inhibit-eol-conversion. (Bug #2186)
14884
449148b3
JR
148852009-02-28 Jason Rumney <jasonr@gnu.org>
14886
14887 * coding.c (detect_coding_charset): If not checking latin extra,
14888 fail on characters between 0x80 and 0xA0. (Bug#2354)
14889
a4aee864
EZ
148902009-02-28 Eli Zaretskii <eliz@gnu.org>
14891
14892 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 14893 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 14894
d88bee5a
GM
148952009-02-27 Glenn Morris <rgm@gnu.org>
14896
14897 * callint.c (Finteractive): Doc fix.
14898
a808f22d
KH
148992009-02-27 Kenichi Handa <handa@m17n.org>
14900
14901 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
14902
caf8d60c
CY
149032009-02-27 Chong Yidong <cyd@stupidchicken.com>
14904
14905 * font.c (font_style_to_value): Set value for unknown symbols to
14906 100 instead of 255.
b61137ea
CY
14907 (weight_table, slant_table, width_table): Treat "unspecified" as
14908 the default value.
caf8d60c 14909
1a0de25c
JB
149102009-02-26 Juanma Barranquero <lekktu@gmail.com>
14911
14912 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
14913
8fc45744
JB
149142009-02-25 Juanma Barranquero <lekktu@gmail.com>
14915
107bd7d1
JB
14916 * lread.c (Fload): Stop checking Vloads_in_progress and signal
14917 error as soon as a recursive load is detected.
8fc45744 14918
f097e223
AR
149192009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14920
14921 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
14922 before caching.
14923
8810a12f
KH
149242009-02-24 Kenichi Handa <handa@m17n.org>
14925
14926 * fontset.c (fontset_find_font): Fix the condition for checking
14927 unavailable font.
14928
2c7d1565
GM
149292009-02-24 Glenn Morris <rgm@gnu.org>
14930
14931 * xfaces.c (Finternal_set_font_selection_order): Remove leading
14932 whitespace that confuses documentation.
14933
a20878b6
MB
149342009-02-23 Miles Bader <miles@gnu.org>
14935
14936 * process.c (Flist_system_processes, Fprocess_attributes)
14937 (syms_of_process): Rename `system-process-attributes' to
14938 `process-attributes'.
14939
b3b58c01
AS
149402009-02-22 Andreas Schwab <schwab@linux-m68k.org>
14941
1b3b981b
AS
14942 * coding.h (struct coding_system): Make safe_charsets a pointer to
14943 unsigned char.
14944 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
14945 being 255.
14946 (SAFE_CHARSET_P): Likewise.
14947 (setup_iso_safe_charsets): Properly setup safe_charsets.
14948 (Fdefine_coding_system_internal): Likewise.
14949 (setup_coding_system): Likewise. Remove unneeded casts.
14950 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
14951 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
14952 Remove unneeded casts.
1b3b981b 14953
b3b58c01
AS
14954 * insdel.c (del_range_2): Don't modify gap contents when called
14955 from decode_coding_object. (Bug#1809)
14956
0b6f228c
CY
149572009-02-21 Chong Yidong <cyd@stupidchicken.com>
14958
14959 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
14960 Qfont_object.
14961 (Ftype_of): Recognize font objects.
14962
14963 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
14964
bba3e508
SM
14965 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
14966 Definitions moved to data.c.
0b6f228c 14967
52f8870b
AR
149682009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14969
14970 * nsterm.m (x_make_frame_invisible): Unset async_visible,
14971 async_iconified. Based on a patch by Christian Lynbech
14972 <christian.lynbech@tieto.com>.
14973 (EmacsView-windowDidMiniaturize:): Unset async_visible.
14974
7087d5e9
GM
149752009-02-20 Glenn Morris <rgm@gnu.org>
14976
14977 * syntax.c (Fskip_chars_forward): Fix doc typo.
14978
41d2ceef
CY
149792009-02-20 Chong Yidong <cyd@stupidchicken.com>
14980
14981 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
14982
1a3b7ca6
CY
149832009-02-19 Chong Yidong <cyd@stupidchicken.com>
14984
14985 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
14986
73cce38d
KH
149872009-02-19 Kenichi Handa <handa@m17n.org>
14988
14989 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 14990 Don't overflow coding->carryover. (Bug#2370)
73cce38d 14991
a51092ee
DN
149922009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
14993
14994 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
14995
c423ecca
KH
149962009-02-18 Kenichi Handa <handa@m17n.org>
14997
14998 * font.c (font_check_otf_features): Fix handling of `nil' element.
14999 (Ffont_spec): Describe :lang and :otf in the docstring.
15000
4c1958f4
AS
150012009-02-16 Andreas Schwab <schwab@suse.de>
15002
15003 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
15004 string.
15005
5704f39a
KH
150062009-02-16 Kenichi Handa <handa@m17n.org>
15007
15008 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 15009 (Bug#1723)
5704f39a 15010
8f0085aa
CY
150112009-02-14 Chong Yidong <cyd@stupidchicken.com>
15012
a057d86a 15013 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
15014
15015 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
15016 (handle_line_prefix): Suppress wrapping of wrap prefixes.
15017
aff01dd9
EZ
150182009-02-14 Eli Zaretskii <eliz@gnu.org>
15019
15020 * msdos.c (MAX_SCREEN_BUF): New macro.
15021 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
15022 Encode the entire run of glyphs sharing the same face, instead of
15023 doing that one glyph at a time (fixes a bug with displaying
15024 double-size characters).
15025
ba301db3
AR
150262009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
15027
15028 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
15029
15030 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
15031 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 15032 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
15033
15034 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 15035 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 15036
51d861de
SM
150372009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15038
ac146f82 15039 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
15040 invisible areas.
15041
7fed8996
JR
150422009-02-12 Jason Rumney <jasonr@gnu.org>
15043
631ea4fb
JR
15044 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
15045 (add_font_entity_to_list): Call check_face_name even when family
15046 is unspecified.
15047
cb4a3e42
JR
15048 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15049 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 15050 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 15051
7fed8996 15052 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 15053 raster fonts. (Bug#2219)
7fed8996 15054
895416e3
KH
150552009-02-12 Kenichi Handa <handa@m17n.org>
15056
15057 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
15058 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
15059 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 15060 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
15061 (find_automatic_composition): While looking forward and backward,
15062 check static composition. Fix where to stop looking forward.
15063 (composition_adjust_point): Fix checking of static composition.
15064 (Fcomposition_get_gstring): Pay attention to
1dacf998 15065 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
15066
15067 * lisp.h (fast_looking_at): Extern it.
15068
15069 * search.c (fast_looking_at): New function.
15070
51d861de 15071 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
15072 <struct glyph>.u.cmp.to.
15073 (append_composite_glyph): Likewise.
15074
51d861de 15075 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
15076 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
15077 composition.
51d861de 15078 (append_composite_glyph): Adjust for the change of
895416e3
KH
15079 <strcut glyph>.u.cmp.to.
15080
8510724d
JB
150812009-02-11 Juanma Barranquero <lekktu@gmail.com>
15082
15083 * casetab.c (init_casetab_once):
15084 * coding.c (ALLOC_CONVERSION_WORK_AREA):
15085 * font.c (font_update_lface):
15086 * fontset.c (Fnew_fontset):
15087 * ftfont.c (ftfont_drive_otf):
15088 * xfont.c (xfont_open):
15089 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
15090
294fa707
SM
150912009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15092
15093 * fileio.c (Fwrite_region): !NILP -> CONSP.
15094
b5bfebec
AS
150952009-02-10 Andreas Schwab <schwab@suse.de>
15096
15097 * process.c (send_process): Properly relocate pointer into data
adab88bd 15098 when using encoded data. (Bug#2272)
b5bfebec 15099
cb84a2be
KH
151002009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
15101
15102 * coding.c (detect_coding_charset): Fix previous change.
15103
89e09428
JR
151042009-02-08 Jason Rumney <jasonr@gnu.org>
15105
15106 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 15107 disappeared while hourglass was displayed. (Bug #2193)
89e09428 15108
4470a277
AS
151092009-02-07 Andreas Schwab <schwab@suse.de>
15110
15111 * unexelf.c (unexec): Fix error message.
15112
3175b12a
AR
151132009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
15114
15115 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 15116 when modal window is active. (Bug #2152)
3175b12a
AR
15117 (applicationShouldTerminate:): Remove now-unneeded while loop
15118 around NSRunAlertPanel.
15119
15120 * nsmenu.m (popupSession): New file-global variable.
15121 (pop_down_menu): End the popupSession before closing dialog.
15122 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
15123 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
15124 don't query NSApp for events (just sleep instead).
15125
8434d0b8
EZ
151262009-02-07 Eli Zaretskii <eliz@gnu.org>
15127
51d861de
SM
15128 * coding.c (syms_of_coding) <translation-table-for-input>:
15129 Modify doc string to discourage use for character code unification.
8434d0b8 15130
aa82edfd
CY
151312009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15132
15133 * atimer.c (run_timers): Update pending_atimers.
15134
2d283c7c
CY
151352009-02-06 Chong Yidong <cyd@stupidchicken.com>
15136
eb306cab
CY
15137 * image.c (svg_load_image): Fix last change.
15138
2d283c7c
CY
15139 * xfns.c (Fx_create_frame): Signal an error if no font is
15140 found (Bug#2147).
15141
4d8e170e
JB
151422009-02-05 Juanma Barranquero <lekktu@gmail.com>
15143
15144 * character.c (syms_of_character) <script-representative-chars>:
15145 Fix typo in docstring.
15146
c96169a0
AR
151472009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15148
15149 * nsmenu.m (pop_down_menu): New function.
15150 (ns_popup_dialog): Call it on unwind.
15151 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
15152 call timer_check() (Bug#2154).
15153 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
15154 handling_signal is set.
15155 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
15156
31fd7c5c 15157 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
15158
15159 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
15160
15161 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
15162
51d861de
SM
15163 * keyboard.c (poll_for_input_1, handle_async_input):
15164 Set handling_signal under HAVE_NS.
c96169a0 15165
aacd8ba1
GM
151662009-02-04 Glenn Morris <rgm@gnu.org>
15167
15168 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
15169
4cb75c4b
KH
151702009-02-04 Kenichi Handa <handa@m17n.org>
15171
15172 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
15173
15174 * charset.c (Fchar_charset): New optional arg restriction.
15175
15176 * coding.h (coding_system_charset_list): Extern it.
15177
15178 * coding.c (coding_system_charset_list): New function.
15179
15180 * composite.c: Include coding.h and termhooks.h.
15181 (composition_gstring_p): Fix for the terminal case.
15182 (composition_gstring_width): Likewise.
15183 (fill_gstring_body): Likewise.
15184 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
15185 the frame.
15186 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
15187 is within a composition.
867d4bb3 15188 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
15189
15190 * term.c (encode_terminal_code): Fix handling of composition.
15191 (produce_composite_glyph): For static composition, get pixel_width
15192 from struct composition.
15193
826ba17e
AS
151942009-02-02 Andreas Schwab <schwab@suse.de>
15195
15196 * unexelf.c (unexec): Handle unaligned bss offset.
15197
8ad093db
AR
151982009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15199
15200 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
15201 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 15202
8ad093db
AR
15203 * keyboard.c (handle_interrupt): Don't call
15204 quit_throw_to_read_char() under NS.
d0a76a6e 15205
8ad093db
AR
15206 * blockinput.h: Remove NS-specific code.
15207
4d18a7a2
DN
152082009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
15209
db878925
DN
15210 * dispnew.c (window_change_signal): Don't try to get the size of a
15211 suspended tty frame.
15212 * term.c (Fresume_tty): Resize if the size has changed while the
15213 tty was suspended.
15214
4d18a7a2
DN
15215 * alloc.c (mark_stack): Properly conditionalize previous change.
15216
8984df7c
JB
152172009-01-30 Juanma Barranquero <lekktu@gmail.com>
15218
15219 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
15220 * w32term.c (w32_read_socket) [SYNC_INPUT]:
15221 Remove; this code is not used on Windows.
15222
75f4f1ac
EZ
152232009-01-30 Eli Zaretskii <eliz@gnu.org>
15224
15225 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
15226 EOLs that also has stray ^M characters.
15227
07a1e794
JB
152282009-01-30 Juanma Barranquero <lekktu@gmail.com>
15229
15230 * atimer.c (run_timers, alarm_signal_handler):
15231 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
15232 * w32inevt.c (w32_console_read_socket):
15233 * w32term.c (w32_read_socket):
15234 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
15235
a8b11cc9
CY
152362009-01-30 Chong Yidong <cyd@stupidchicken.com>
15237
15238 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
15239 Initialize it as a relative filename pattern.
15240 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
15241 (Fcall_process_region): Simplify temp file creation using
15242 temporary-file-directory.
15243
c279587b
EZ
152442009-01-29 Eli Zaretskii <eliz@gnu.org>
15245
15246 * msdos.c: Rename pending_signals to msdos_pending_signals.
15247 (sig_suspender, sigprocmask): Adjust.
15248
a8fe3242
CY
152492009-01-29 Chong Yidong <cyd@stupidchicken.com>
15250
15251 * keyboard.c (pending_signals): New var.
15252 (poll_for_input, input_available_signal, init_keyboard): Set it.
15253 (process_pending_signals): New function.
15254
15255 * lisp.h (QUIT): Check pending_signals instead of
15256 interrupt_input_pending. Use process_pending_signals.
15257
51d861de 15258 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 15259
51d861de 15260 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
15261
15262 * sysdep.c (emacs_write): Use process_pending_signals.
15263
15264 * xterm.c (XTread_socket): Update pending_signals.
15265
15266 * w32term.c (w32_read_socket): Update pending_signals.
15267
15268 * w32inevt.c (w32_console_read_socket): Update pending_signals.
15269
6570a1c4
KH
152702009-01-29 Kenichi Handa <handa@m17n.org>
15271
15272 * xftfont.c (xftfont_has_char): New function.
15273 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
15274
d72a4afa
AR
152752009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15276
15277 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
15278 under GNUstep.
15279 (ns_query_color): New declaration.
15280
15281 * nsterm.m (ns_confirm_quit): New variable.
15282 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
15283 (EmacsApp-applicationShouldTerminate:): Use it.
15284 (EmacsPrefsController): Let user set it.
15285 (ns_query_color): New function.
15286 (ns_defined_color): Use it.
15287 (ns_initialize): Drop.
15288 (ns_term_init): Add two lines from ns_initialize(), and set
15289 input_interrupt_mode to nil.
15290
15291 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 15292 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 15293
9fe78804
KH
152942009-01-28 Kenichi Handa <handa@m17n.org>
15295
15296 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
15297 (fontset_get_font_group): Remember that no font-group is specified
15298 for C.
9fe78804 15299
fa57de36
CY
153002009-01-27 Chong Yidong <cyd@stupidchicken.com>
15301
930600e9
CY
15302 * fns.c (concat): Check for string overflow (bug#1787).
15303
fa57de36
CY
15304 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
15305 Quadruple undo limits (bug#1501).
15306
7179ce7b
KH
153072009-01-27 Kenichi Handa <handa@m17n.org>
15308
15309 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
15310 directly use GT_Get_Char_index.
15311
15312 * xftfont.c (struct xftfont_info): New member `index'.
15313
15314 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 15315 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 15316
5be8fcc0
CY
153172009-01-26 Kenichi Handa <handa@m17n.org>
15318
15319 * fontset.c (fontset_find_font): Fix handling of non-cons return
15320 value of fontset_get_font_group.
15321 (fontset_font): Revert last change.
15322
19ae3e61
JR
153232009-01-26 Jason Rumney <jasonr@gnu.org>
15324
15325 * w32font.c (w32font_list_internal): Return quickly if registry is
15326 unknown. Simplify final return.
15327 (add_font_entity_to_list): Break complex logic down into more
15328 manageable chunks. Move unknown registry check to
15329 w32font_list_internal.
15330
8612b71a
AR
153312009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
15332
15333 Changes to remove Feval calls from GUI under NS.
15334
d8038940
JB
15335 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
15336 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
15337 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
15338
15339 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
15340 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
15341 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
15342 instead of NON_ASCII_KEYSTROKE_EVENT.
15343 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
15344 (EmacsApp-applicationShouldTerminate:): Query user.
15345 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
15346 instead of Feval.
15347
15348 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
15349
15350 * keyboard.c (kbd_buffer_get_event): Check for it.
15351 (keys_of_keyboard): Define lispy keys for
15352 ns-put/unput-working-text.
15353
15354 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
15355 versions.
15356 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
15357
6288ae55
CY
153582009-01-25 Chong Yidong <cyd@stupidchicken.com>
15359
15360 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 15361 setting current_buffer directly. (Bug#2044)
6288ae55 15362
289e7f8f
CY
153632009-01-24 Chong Yidong <cyd@stupidchicken.com>
15364
5ce87308 15365 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 15366 any work. (Bug#1952, bug#1990).
5ce87308 15367
64cc3cf6 15368 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 15369
b3243e6f
AR
153702009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
15371
15372 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
15373 (ns_no_defaults): New declaration.
15374 (main): Use it.
e0d2e69a 15375
d900b2af 15376 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 15377
d900b2af 15378 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 15379
d900b2af
AR
15380 * nsterm.m (ns_no_defaults): New variable.
15381 (ns_initialize): Don't read defaults when ns_no_defaults.
15382 (EmacsView-readSelectionFromPasteboard:)
15383 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 15384 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
15385 (ns_dumpglyphs_stretch): New function.
15386 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 15387 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 15388
e0d2e69a
AR
15389 * nsimage.m (setPixmapData:): Set to ignore image DPI.
15390
3ac71f5d
CY
153912009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
15392
15393 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
15394 call for Sparc64.
15395
3fe53a83
AR
153962009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15397
15398 * nsfns.m:
15399 * nsgui.h:
15400 * nsmenu.m:
15401 * nsselect.m:
15402 * nsterm.h:
15403 * nsterm.m: Remove '23' comments that indicated code added during
15404 update from emacs-20 -> emacs-23.
15405
10f87c6f 154062009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
15407
15408 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 15409 ns_alternate_modifier. (Bug#1217)
a3b53a85 15410
c7cef62d
AR
15411 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
15412 Display all shortcuts, including those w/o super modifier.
15413
575fb8bd
AR
15414 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
15415
918b848b
CY
154162009-01-22 Chong Yidong <cyd@stupidchicken.com>
15417
15418 * fileio.c (Vwrite_region_post_annotation_function)
15419 (Vwrite_region_annotation_buffers): New vars.
15420 (build_annotations_unwind): Just reset
15421 Vwrite_region_annotation_buffers.
15422 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
15423 Call write-region-post-annotation-function.
15424 (build_annotations): Add to Vwrite_region_annotation_buffers if
15425 buffer changes.
15426
a39e2539
AR
154272009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15428
15429 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
15430 Tiger.
51d861de
SM
15431 * nsfns.m (ns_do_applescript):
15432 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 15433
35ed44db
AR
154342009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
15435
15436 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
15437
cbe0b5bf
AR
154382009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15439
15440 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 15441
6049d3a0
AR
15442 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
15443
15444 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
15445 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
15446 handle Ctrl-tab. (Bug#1841)
15447 (ns_get_color): Use unsigned long long for scanned hex string value.
15448 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 15449 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 15450 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 15451 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 15452 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 15453 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 15454 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 15455
d3810c21 15456 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 15457 DPI. (Bug#1316)
d3810c21
AR
15458 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
15459 values in onTiger section.
4c7077c3 15460
e301e634
CY
154612009-01-19 Chong Yidong <cyd@stupidchicken.com>
15462
7f82490b
CY
15463 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
15464 Check return value of font_spec_from_name.
64cc3cf6 15465 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
15466
15467 * font.c (font_spec_from_name): Return Qnil if font name could not
15468 be parsed.
15469 (font_parse_name): Treat a `?' character as part of an XLFD.
15470
e301e634
CY
15471 * fns.c (Fsubstring): Doc fix.
15472
1c0db158
KH
154732009-01-19 Kenichi Handa <handa@m17n.org>
15474
51d861de 15475 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
15476 (ftfont_list): Likewise.
15477
acf20901
JB
154782009-01-18 Juanma Barranquero <lekktu@gmail.com>
15479
fff4e459
JB
15480 * dbusbind.c (Fdbus_register_signal):
15481 * process.c (conv_sockaddr_to_lisp):
15482 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
15483
acf20901
JB
15484 * callproc.c (Fgetenv_internal): Doc fix.
15485
e7abcdfb
CY
154862009-01-16 Chong Yidong <cyd@stupidchicken.com>
15487
15488 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
15489 it is not even used.
15490
b60861e6
GM
154912009-01-16 Glenn Morris <rgm@gnu.org>
15492
15493 * font.c (Ffont_variation_glyphs): Silence compiler.
15494
8db52afe
JB
154952009-01-15 Juanma Barranquero <lekktu@gmail.com>
15496
15497 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
15498 Reported by David Robinow <drobinow@gmail.com>.
15499
4cddb209
KH
155002009-01-15 Kenichi Handa <handa@m17n.org>
15501
51d861de 15502 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 15503
f247f67b
JR
155042009-01-14 Jason Rumney <jasonr@gnu.org>
15505
15506 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 15507 never a fontset. (Bug#1562)
f247f67b 15508
f56a4450
KH
155092009-01-14 Kenichi Handa <handa@m17n.org>
15510
15511 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 15512 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 15513
4e99855e
CY
155142009-01-13 Chong Yidong <cyd@stupidchicken.com>
15515
15516 * font.c (font_clear_prop): If clearing the family, clear the font
15517 width index too.
15518
fff4e459 15519 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 15520
24f01470
JB
155212009-01-12 Juanma Barranquero <lekktu@gmail.com>
15522
15523 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
15524 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
15525 functions, use sizeof.
15526
a41240a3
MR
155272009-01-12 Martin Rudalics <rudalics@gmx.at>
15528
15529 * keyboard.c (read_char): Fix case where last_nonmenu_event
15530 returned a bad value with submenus. (Bug#447)
15531
944636b8
CY
155322009-01-12 Chong Yidong <cyd@stupidchicken.com>
15533
15534 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
15535 family, clear the font width index too.
15536
0dad7c6f
JR
155372009-01-11 Jason Rumney <jasonr@gnu.org>
15538
15539 * keyboard.c (cmd_error_internal): Exit when errors occur before
15540 frame creation and not in daemon mode. (Bug#1836)
15541
7c2363af
CY
155422009-01-10 Chong Yidong <cyd@stupidchicken.com>
15543
15544 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
15545 of a display vector, backtrack.
15546 (try_window_reusing_current_matrix): Check glyph type before
15547 referencing charpos member.
15548
97b1b294
EZ
155492009-01-10 Eli Zaretskii <eliz@gnu.org>
15550
15551 Fix Bug #876:
15552
15553 * coding.c (inhibit_null_byte_detection): New variable.
15554 (detect_coding, detect_coding_system): Don't pay attention to null
15555 bytes if inhibit_null_byte_detection is non-zero.
51d861de 15556 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
15557 <inhibit-iso-escape-detection>: Doc fix.
15558
4624b6e3
JR
155592009-01-09 Jason Rumney <jasonr@gnu.org>
15560
15561 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 15562 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
15563 Only report Unicode Plane 2 fonts as unicode-sip.
15564
323b840c
CY
155652009-01-09 Chong Yidong <cyd@stupidchicken.com>
15566
51d861de
SM
15567 * xfaces.c (Fx_font_family_list): Delete function.
15568 Move compatibility version to faces.el.
323b840c 15569
51d861de 15570 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 15571
eba7400d
MR
155722009-01-09 Martin Rudalics <rudalics@gmx.at>
15573
15574 * frame.c (x_set_frame_parameters): Remember requested value for
15575 fullscreen before it's reset by the parameter handler.
15576
4b09796d
GM
155772009-01-09 Glenn Morris <rgm@gnu.org>
15578
15579 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 15580 (last_command_event): ... and update all users.
4b09796d
GM
15581 (last_input_char): For clarity, rename to...
15582 (last_input_event): ... and update all users.
15583 (last-command-char, last-input-char): Move to subr.el as aliases.
15584 * cmds.c, commands.h: Update for last_command_char rename.
15585
14ccea62
CY
155862009-01-08 Chong Yidong <cyd@stupidchicken.com>
15587
51d861de 15588 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 15589
5f004711
JR
155902009-01-08 Jason Rumney <jasonr@gnu.org>
15591
15592 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
15593 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
15594 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
15595 Don't declare.
fff4e459 15596 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
15597 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
15598
b71f6f73
KH
155992009-01-07 Kenichi Handa <handa@m17n.org>
15600
50b06221 15601 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 15602 remember the coding system used for decoding in
50b06221
KH
15603 coding_system (Bug#1039).
15604
b71f6f73 15605 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 15606 breaking the loop. (Bug#870)
b71f6f73
KH
15607 (decode_coding_utf_16, decode_coding_emacs_mule)
15608 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15609 (decode_coding_charset): Likewise.
15610
56f668f7
MR
156112009-01-05 Martin Rudalics <rudalics@gmx.at>
15612
15613 * frame.c (x_set_frame_parameters): Make sure height (width) get
15614 applied when fullwidth (fullheight) is set. (Bug#1522)
15615
5da9424d
JB
156162009-01-04 Juanma Barranquero <lekktu@gmail.com>
15617
15618 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
15619 (utc_base): Declare as ULONGLONG, not long double.
15620 (convert_time_raw): Delete.
15621 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15622 (initialize_utc_base): New function.
15623 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15624 (convert_from_time_t): Use initialize_utc_base; compute result with
15625 64-bit arithmetic.
15626 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15627
c4605e09
EZ
156282009-01-03 Eli Zaretskii <eliz@gnu.org>
15629
9acef61c 15630 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
15631 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15632 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15633 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15634 [!subprocesses]: Define.
15635 (syms_of_process) [!subprocesses]: Intern and staticpro them.
15636 (Flist_system_processes, Fsystem_process_attributes)
15637 [!subprocesses]: Call list_system_processes and
15638 system_process_attributes instead of returning Qnil.
15639
9acef61c
JB
15640 * dosfns.c (system_process_attributes, list_system_processes):
15641 New functions.
c4605e09
EZ
15642
15643 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15644
15645 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15646 Don't use the default (no-op) implementation.
15647
8b7d0a16
JR
156482009-01-03 Jason Rumney <jasonr@gnu.org>
15649
a6d46bc1
JR
15650 * keyboard.c (parse_modifiers_uncached): Wheel events are
15651 clicks (bug#687).
15652
8b7d0a16
JR
15653 * w32term.c (x_query_colors, x_query_color): New functions.
15654
15655 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15656 (svg_load_image): Cast returned pointers from dynamically loaded
15657 functions. Eliminate W32 specific code.
15658
bfe11752
DN
156592009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
15660
89e2438a
DN
15661 * nsfns.m (x_set_foreground_color, x_set_background_color)
15662 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15663 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15664 x_ prefix instead of ns_. Update references.
15665 (syms_of_nsfns): Add a FIXME comment.
15666
15667 * nsterm.m (x_set_cursor_type): New prototype.
15668 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15669
bfe11752
DN
15670 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15671 for Solaris instead of incorrectly providing Qutime and Qcutime.
15672
031da700
EZ
156732009-01-02 Eli Zaretskii <eliz@gnu.org>
15674
15675 * w32.c (process_times): Compute sum of utime and stime.
15676 (system_process_attributes): Add Qtime to the alist.
15677
15678 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15679 and add them to the alist.
15680
15681 * process.c (top level) <Qtime, Qctime>: New variables.
15682 (syms_of_process): staticpro them.
15683 (Fsystem_process_attributes): Add their documentation to the doc
15684 string.
15685
15686 * process.h: Declare Qtime and Qctime.
15687
df23bf08
JR
156882009-01-02 Jason Rumney <jasonr@gnu.org>
15689
9acef61c 15690 * image.c (Qgobject): New symbol.
df23bf08
JR
15691 (syms_of_image): Initialize it.
15692 (init_svg_functions): Load some functions from gobject library.
15693
5bbdf7aa
DN
156942009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
15695
15696 * frame.c (make_terminal_frame): Remove redundant code and useless
15697 block.
15698
63136da6
AS
156992009-01-01 Andreas Schwab <schwab@suse.de>
15700
15701 * process.c (conv_sockaddr_to_lisp): Add workaround for
15702 getsockname bug on BSD.
15703
9ef69046
CY
157042009-01-01 Chong Yidong <cyd@stupidchicken.com>
15705
d6fafbe0
CY
15706 * xfns.c (x_create_tip_frame): Set border width of the X window.
15707
51d861de 15708 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 15709
f9c34147
JR
157102009-01-01 Jason Rumney <jasonr@gnu.org>
15711
9acef61c 15712 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
15713 Don't block input, as per earlier xterm.c changes.
15714
f5497e45
AR
157152008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
15716
15717 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
15718 (ns_appkit_version_int): New function.
15719 (x-server-version): Use ns_appkit_version_int and follow 21+
15720 convention of returning 3 integers.
15721
c19cab20
KH
157222008-12-30 Kenichi Handa <handa@m17n.org>
15723
15724 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15725 (CHAR_SURROGATE_PAIR_P): New macro.
15726
15727 * font.h (struct font_driver): New member get_variation_glyphs.
15728
9acef61c 15729 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
15730 (Ffont_variation_glyphs): New function.
15731 (syms_of_font): Defsubr it.
15732
15733 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15734 ftfont_variation_glyphs.
15735 (setup_otf_gstring): New function.
15736 (ftfont_drive_otf): Use it.
15737 (ftfont_shape_by_flt): Handle variation selector.
15738 (ftfont_variation_glyphs): New function.
15739
28cd591f
MR
157402008-12-30 Martin Rudalics <rudalics@gmx.at>
15741
15742 * frame.c (Vemacs_iconified): Remove.
15743
7f714baf
JR
157442008-12-30 Jason Rumney <jasonr@gnu.org>
15745
15746 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 15747 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 15748
9d2d22ab
CY
157492008-12-30 Chong Yidong <cyd@stupidchicken.com>
15750
15751 * indent.c (Fvertical_motion): Don't advance iterator if we have
15752 reseated to the desired position.
15753
15754 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
15755 checking for pos match.
15756
545312c2
KH
157572008-12-30 Kenichi Handa <handa@m17n.org>
15758
1ede3eb6
KH
15759 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
15760 just get the low 8-bit of the code.
15761
545312c2
KH
15762 * font.c (font_intern_prop): Validate str as multibyte.
15763
bd7bbf29
DN
157642008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15765
31e0750e
DN
15766 * dispextern.h (struct face): Move lface and hash from the middle
15767 of bitfields.
15768
bd7bbf29
DN
15769 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
15770
b5672e7c
DN
157712008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15772
15773 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
15774 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
15775 instead of intervals.h.
15776
d704470f
AS
157772008-12-26 Andreas Schwab <schwab@suse.de>
15778
15779 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
15780 cons.
15781
54b33868
MR
157822008-12-26 Martin Rudalics <rudalics@gmx.at>
15783
15784 * textprop.c (Qminibuffer_prompt): New variable.
15785 (syms_of_textprop): Initialize it.
15786 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
15787 in minibuffer-prompt face. (Bug#1662)
15788
40b615d6
JR
157892008-12-25 Jason Rumney <jasonr@gnu.org>
15790
15791 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
15792
baae5c2d
JR
157932008-12-24 Jason Rumney <jasonr@gnu.org>
15794
15795 * ralloc.c (r_alloc_reset_variable): New function.
15796
15797 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 15798 record of what points where. (Bug#716)
baae5c2d 15799
a9051c88
DN
158002008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
15801
15802 * minibuf.c (read_minibuf): Follow the non-interactive case when
15803 running as a daemon, before detaching.
15804
8b146312
AS
158052008-12-22 Andreas Schwab <schwab@suse.de>
15806
15807 * buffer.c (init_buffer): Use realloc instead of xrealloc.
15808 * gtkutil.c (free_widget_value): Use xfree instead of free.
15809
56f2de10
MR
158102008-12-22 Martin Rudalics <rudalics@gmx.at>
15811
15812 * frame.c (delete_frame): New function derived from
15813 Fdelete_frame to handle Qnoelisp value for FORCE argument.
15814 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
15815 (Fdelete_frame): Call delete_frame. Remove line from doc-string
15816 saying that FORCE non-nil doesn't run `delete-frame-functions'.
15817 * frame.h: Extern delete_frame.
15818 * window.c (window_loop):
15819 * terminal.c (delete_terminal):
15820 * xterm.c (x_connection_closed):
15821 * xfns.c (Fx_hide_tip):
9acef61c 15822 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 15823
1fc200d6
JR
158242008-12-21 Jason Rumney <jasonr@gnu.org>
15825
15826 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
15827 when character maps to .notdef character.
15828
5e252df2
SM
158292008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
15830
15831 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
15832
99b72cc4
JR
158332008-12-20 Jason Rumney <jasonr@gnu.org>
15834
15835 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 15836 a graphical frame on Windows. (Bug#1325)
99b72cc4 15837
acc49a52
JD
158382008-12-20 Jan Djärv <jan.h.d@swipnet.se>
15839
15840 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
15841
6ea15123
CY
158422008-12-20 Chong Yidong <cyd@stupidchicken.com>
15843
15844 * minibuf.c (Fread_buffer): Doc fix.
15845
b2dab6c8
JR
158462008-12-20 Jason Rumney <jasonr@gnu.org>
15847
54ea0c87 15848 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 15849 server name in UNC paths. (Bug#719)
54ea0c87 15850
b2dab6c8 15851 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 15852 charbuf. (Bug#1035)
b2dab6c8 15853
6d1921be
DN
158542008-12-19 Daniel Engeler <engeler@gmail.com>
15855
15856 * sysdep.c (serial_configure): Fix typo.
15857
53934c98
DN
158582008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15859
15860 * sysdep.c: Include alloca.h.
f4f634e8
DN
15861 (system_process_attributes): Add implementation for Solaris.
15862
15863 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 15864
06e111a6
DN
158652008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15866
15867 Reorganize implementation of Flist_system_processes and
15868 Fsystem_process_attributes. No functional changes.
15869 * process.c: Don't #include pwd.h, grp.h and limits.h.
15870 (Flist_system_processes): Just call list_system_processes.
15871 (Fsystem_process_attributes): Just call system_process_attributes.
15872 (procfs_list_system_processes, time_from_jiffies)
15873 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15874 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
15875
15876 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
15877 (list_system_processes): Rename from
15878 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
15879 Provide a do nothing implementation.
15880 (system_process_attributes): Rename from
15881 procfs_list_system_processes.
15882 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 15883 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
15884
15885 * w32.c (list_system_processes): Rename from
15886 w32_list_system_processes.
15887 (system_process_attributes): Rename from
15888 w32_system_process_attributes.
15889
15890 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
15891
15892 * process.h (w32_list_system_processes)
15893 (w32_system_process_attributes): Remove.
362654a6
JB
15894 (list_system_processes, system_process_attributes):
15895 New prototypes.
06e111a6 15896
6a705b23
KH
158972008-12-19 Kenichi Handa <handa@m17n.org>
15898
15899 * xfont.c (xfont_decode_coding_xlfd): New function.
15900 (xfont_encode_coding_xlfd): New function.
15901 (xfont_list_pattern): Decode XLFD by iso-8859-1.
15902 (xfont_list): Decode and encode XLFD by iso-8859-1.
15903 (xfont_match): Likewise.
15904 (xfont_list_family): Likewise.
15905 (xfont_open): Likewise.
15906
d66c0241 15907 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
15908 names are utf-8.
15909
d66c0241 15910 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
15911 names are utf-8.
15912
5a130941
JD
159132008-12-18 Jan Djärv <jan.h.d@swipnet.se>
15914
15915 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
15916 changed.
bfd20325
JD
15917 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
15918 clicked on a detached tool bar button.
5a130941 15919
fd95644b
DN
159202008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
15921
15922 * emacs.c (main): Print and error and exit when no data is read
15923 from the pipe.
15924
e6eee6ae
JR
159252008-12-17 Jason Rumney <jasonr@gnu.org>
15926
15927 * w32font.c (w32font_has_char): Always return -1.
15928
a35dd56b
KH
159292008-12-16 Kenichi Handa <handa@m17n.org>
15930
15931 * font.c (font_open_entity): Fix previous change.
15932
0e3635c2
DN
159332008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
15934
15935 * process.c: Include <limits.h>.
15936
d4835507 159372008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
15938
15939 * font.c (font_update_drivers): Fix mistake in reconstructing the
15940 driver list.
15941
159422008-12-16 Chong Yidong <cyd@stupidchicken.com>
15943
15944 * font.c (font_clear_cache): Fix format of font cache data.
15945
e2cbc401
CY
159462008-12-15 Chong Yidong <cyd@stupidchicken.com>
15947
15948 * xftfont.c (xftfont_open): Free Xft font pattern if
15949 XftFontOpenPattern fails.
15950
15951 * xterm.c (x_free_frame_resources): Remove extraneous call to
15952 free_frame_faces.
15953
b131d535
CY
159542008-12-13 Chong Yidong <cyd@stupidchicken.com>
15955
15956 * xterm.c (x_delete_display): Move xim_close_dpy call to
15957 x_delete_terminal.
15958 (x_delete_terminal): Call xim_close_dpy.
15959
e6df5336
JR
159602008-12-13 Jason Rumney <jasonr@gnu.org>
15961
15962 * w32font.c (intern_font_name): New function.
15963 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
15964 (w32font_open_internal, Fx_select_font): Decode font name.
15965 (fill_in_logfont, list_all_matching_fonts): Encode font name.
15966
15967 * w32font.h (intern_font_name): Declare new function.
15968
15969 * w32uniscribe.c (add_opentype_font_name_to_list):
15970 Use intern_font_name.
15971
20d68145
CY
159722008-12-13 Chong Yidong <cyd@stupidchicken.com>
15973
9f2554de
CY
15974 * frame.c (Fdelete_frame): Call free_font_driver_list.
15975
3d9bec9a
CY
15976 * font.c (free_font_driver_list): Implement missing function.
15977
20d68145
CY
15978 * w32term.c (w32_term_init): Don't initialize the image cache
15979 here; it will be done in init_frame_faces.
15980
15981 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
15982 (struct x_display_info): Remove unused member null_pixel.
15983 New member xim_callback_data.
20d68145
CY
15984
15985 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
15986 (xim_initialize): Save pointer to callback function data.
15987 (xim_close_dpy): Free callback function data. Call XCloseIM,
15988 reverting 2008-11-04 change by David Smith.
15989 (x_term_init): Don't initialize the image cache here; it will be
15990 done in init_frame_faces. Remove ancient "null_pixel" cruft.
15991 (x_delete_display): Free x_dnd_atoms member.
15992
96f9306b
KH
159932008-12-13 Kenichi Handa <handa@m17n.org>
15994
ef1b0ba7 15995 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 15996 Argument type changed. Handle a font-spec too.
96f9306b 15997 (font_score): Check Vface_font_rescale_alist.
6dec9044 15998 (font_open_entity): Likewise. (Bug#1547)
96f9306b 15999
ef1b0ba7 16000 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 16001
8d5b4964
CY
160022008-12-13 Chong Yidong <cyd@stupidchicken.com>
16003
16004 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
16005
e6df5336
JR
160062008-12-12 Jason Rumney <jasonr@gnu.org>
16007
bba3e508
SM
16008 * w32fns.c (x_display_info_for_name, Fx_open_connection):
16009 Set Vwindow_system_version to the real w32 major version.
e6df5336 16010
97c6058a
DN
160112008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
16012
16013 * term.c (init_tty): Move setting the terminal name before the
16014 potential user: maybe_fatal.
16015
ec4e88d7
CY
160162008-12-11 Chong Yidong <cyd@stupidchicken.com>
16017
ef1b0ba7 16018 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 16019 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 16020
b4233ec9
JR
160212008-12-11 Jason Rumney <jasonr@gnu.org>
16022
8ec71e23 16023 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 16024 SYMBOL_CHARSET. (Bug#547)
8ec71e23 16025
b4233ec9 16026 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 16027 size for surrogates. (Bug#1096, bug#872)
b4233ec9 16028
011a0143
JB
160292008-12-11 Juanma Barranquero <lekktu@gmail.com>
16030
16031 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
16032
3c309f34
JB
160332008-12-11 Juanma Barranquero <lekktu@gmail.com>
16034
16035 * process.c (Fsystem_process_attributes, syms_of_process):
16036 Fix typo in name of Ssystem_process_attributes.
16037 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
16038
fedc6ab5
JB
160392008-12-11 Juanma Barranquero <lekktu@gmail.com>
16040
16041 * syntax.c (Fmodify_syntax_entry): Doc fix.
16042
ba3de0e8
JB
160432008-12-10 Juanma Barranquero <lekktu@gmail.com>
16044
16045 * font.c (Ffont_spec): Move usage to end of docstring.
16046
174f1c74
JR
160472008-12-10 Jason Rumney <jasonr@gnu.org>
16048
16049 * w32font.c (Qcham): New symbol.
16050 (font_supported_scripts): Add cham, and comments for other new
16051 scripts in bitfield from OpenType spec.
9d32f818
JR
16052 (add_font_entity_to_list): Limit unicode-sip fonts to those that
16053 contain characters beyond the bmp.
174f1c74 16054
7b649478
KH
160552008-12-10 Kenichi Handa <handa@m17n.org>
16056
16057 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 16058 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
16059 Qunicode_sip.
16060
2133e2d1
JB
160612008-12-10 Juanma Barranquero <lekktu@gmail.com>
16062
16063 * coding.c (QCdefault_char): Rename from QCdefalut_char.
16064 (Fcoding_system_put): Use QCdefault_char.
16065 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
16066
9af886ee
CY
160672008-12-09 Chong Yidong <cyd@stupidchicken.com>
16068
74d819eb
CY
16069 * xftfont.c (syms_of_xftfont): Fix typo.
16070
4ccfa1c0 16071 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 16072
7c19d3ae
DN
160732008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
16074
16075 * emacs.c (main): Close daemon_pipe on exec.
16076
567826bb
CY
160772008-12-08 Chong Yidong <cyd@stupidchicken.com>
16078
16079 * termchar.h (struct tty): New members termcap_term_buffer and
16080 termcap_strings_buffer.
16081
16082 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 16083 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
16084 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
16085 All callers changed.
16086 (init_tty): Store termcap data and string buffers in new struct
16087 tty members termcap_term_buffer and termcap_strings_buffer.
16088 (delete_tty): Free them.
4ccfa1c0 16089 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 16090
aa96c42b
SZ
160912008-12-07 Seiji Zenitani <zenitani@mac.com>
16092
16093 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 16094 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 16095
b7e1d896
CY
160962008-12-06 Chong Yidong <cyd@stupidchicken.com>
16097
16098 * coding.c (make_conversion_work_buffer): Disable buffer
16099 modification hooks in the work buffer.
16100
b5ec91a5
EZ
161012008-12-05 Eli Zaretskii <eliz@gnu.org>
16102
16103 * process.c (procfs_system_process_attributes): If `nread' has a
16104 negative value, assign zero to it.
16105
a5d2a52b
CY
161062008-12-05 Chong Yidong <cyd@stupidchicken.com>
16107
68c5540b 16108 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 16109
7bf1bb21
KH
161102008-12-05 Kenichi Handa <handa@m17n.org>
16111
16112 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
16113 second character is a combining character.
16114
2fdc7d00
EZ
161152008-12-05 Eli Zaretskii <eliz@gnu.org>
16116
16117 * process.c (procfs_system_process_attributes): Don't use cmd,
16118 cmdsize, and q without initializing them first.
16119
bf6bfba8
JR
161202008-12-04 Jason Rumney <jasonr@gnu.org>
16121
16122 * w32font.c (w32font_draw): Initialize orig_clip before getting
16123 it, and delete it when finished.
16124
a3b1a468
DN
161252008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
16126
16127 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
16128 case when running as a daemon before detaching.
16129
8b8be8eb
JB
161302008-12-03 Juanma Barranquero <lekktu@gmail.com>
16131
805f2638 16132 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 16133
b1bde622
KH
161342008-12-03 Kenichi Handa <handa@m17n.org>
16135
e500c47d
KH
16136 * font.c (font_at): Set `multibyte' at first.
16137
ca516334
KH
16138 * coding.c (decode_coding_charset): Check type of an element of
16139 vector VALIDS.
7bf1bb21 16140 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 16141
4ccfa1c0 16142 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
16143 (font_for_char): Likewise.
16144
1e5ecd37
CY
161452008-12-03 Chong Yidong <cyd@stupidchicken.com>
16146
d5b01609 16147 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
16148 (font_update_lface): Handle fonts with corrupted size specs,
16149 i.e. non-int and non-float.
d5b01609 16150
11e3a6e4 16151 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 16152 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 16153 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 16154
ab06788b
CY
16155 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
16156
1e5ecd37 16157 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 16158 underline_minimum_offset for underline position.
1e5ecd37 16159
63c125ab
DN
161602008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
16161
16162 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
16163
16164 * character.c (c_string_width): Specify the type for LEN.
16165
3a8406e1
KH
161662008-12-03 Kenichi Handa <handa@m17n.org>
16167
4ccfa1c0 16168 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 16169 (decode_coding_utf_8): Likewise.
4ccfa1c0 16170 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 16171 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 16172
651df7d9
CY
161732008-12-02 Chong Yidong <cyd@stupidchicken.com>
16174
16175 * keyboard.c (make_lispy_position): Only use PT if the selected
16176 window is current.
16177
1f625c6c
AS
161782008-12-02 Andreas Schwab <schwab@suse.de>
16179
f7741ce9
AS
16180 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
16181
1f625c6c
AS
16182 * doprnt.c (doprnt1): Fix size of charbuf.
16183
92bc2678
CY
161842008-12-02 Chong Yidong <cyd@stupidchicken.com>
16185
16186 * keyboard.c (timer_check): Revert last change.
16187
93b9e8cc
JB
161882008-12-02 Juanma Barranquero <lekktu@gmail.com>
16189
16190 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
16191
fd7a37d5
JB
161922008-12-01 Juanma Barranquero <lekktu@gmail.com>
16193
16194 * makefile.w32-in: Update dependencies.
16195 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
16196
c115043b
AS
161972008-12-01 Andreas Schwab <schwab@suse.de>
16198
16199 * font.c (register_font_driver): Use xmalloc.
16200 (font_put_frame_data): Likewise.
16201
f5668d2a
CY
162022008-12-01 Chong Yidong <cyd@stupidchicken.com>
16203
860d96be
CY
16204 * xfaces.c (realize_x_face): Make abort condition clearer.
16205
f5668d2a
CY
16206 * gtkutil.c (update_frame_tool_bar): Initialize variable.
16207
379c17e7
CY
162082008-11-30 Chong Yidong <cyd@stupidchicken.com>
16209
16210 * keyboard.c (timer_check): After a timer runs, ensure that the
16211 selected window's buffer is current.
16212
35f36d65
JB
162132008-11-30 Juanma Barranquero <lekktu@gmail.com>
16214
f952c61c
JB
16215 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
16216 It was accidentally restored by the Unicode merge.
16217
35f36d65
JB
16218 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
16219
b23077df
JB
162202008-11-29 Juanma Barranquero <lekktu@gmail.com>
16221
16222 * w32proc.c: Include "coding.h".
16223 (Fw32_short_file_name): Encode filename passed to Windows API.
16224 (Fw32_long_file_name): Encode filename passed to Windows API and
16225 decode back the result. (Bug#1433)
16226
b8ebe9dd
KH
162272008-11-29 Kenichi Handa <handa@m17n.org>
16228
8cc53f96
KH
16229 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
16230 not before accessing it.
16231
b8ebe9dd
KH
16232 * charset.c (Fdefine_charset_internal): After calculating
16233 min_char, max_char, and fastmap, copy the charset structure again.
16234 (encode_char): Fix the previous change.
16235
59bc82c0
SZ
162362008-11-28 Seiji Zenitani <zenitani@mac.com>
16237
16238 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
16239
16240 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
16241
16242 * nsterm.m (x_set_frame_alpha): New function.
16243
32247e3d
EZ
162442008-11-27 Eli Zaretskii <eliz@gnu.org>
16245
16246 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
16247
b003e5ff
JB
162482008-11-27 Juanma Barranquero <lekktu@gmail.com>
16249
16250 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
16251 pointer to check_face_name.
16252
708550f5
KH
162532008-11-27 Kenichi Handa <handa@m17n.org>
16254
16255 * category.h (SET_CATEGORY_SET): Call set_category_set.
16256 (set_category_set): Extern it.
16257
16258 * category.c (hash_get_category_set): New function.
bba3e508 16259 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
16260 char_table_ref_and_range. Call hash_get_category_set to get a
16261 category set to store in the table.
16262
16263 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
16264 Funify_charset.
16265
2ae37cf0 16266 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
16267 (DECODE_CHAR): Check if the decoder vector is ready.
16268 (ENCODE_CHAR): Check if the encoder char-table is ready.
16269 (maybe_unify_char): Extern it.
16270
16271 * charset.c (Vchar_unified_charset_table): Delete it.
16272 (inhibit_load_charset_map): New variable.
16273 (temp_charset_work): New variable.
16274 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
16275 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
16276 New macros.
bba3e508
SM
16277 (load_charset_map): Meaning of control_flag changed.
16278 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
16279 temp_charset_work.
16280 (load_charset): New argument control_flag.
16281 (map_charset_for_dump): New function.
16282 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
16283 map_charset_for_dump.
16284 (Fdefine_charset_internal): If the charset method is MAP, load
16285 mapping tables by calling load_charset.
16286 (Funify_charset): Don't load a mapping table but directly set
16287 Vchar_unify_table.
16288 (maybe_unify_char): New function.
16289 (decode_char): Don't handle the deleted method MAP_DEFERRED.
16290 Handle the case of inhibit_load_charset_map being nonzero.
16291 (encode_char): Don't handle the deleted method MAP_DEFERRED.
16292 Handle the case of inhibit_load_charset_map being nonzero.
16293 (Fclear_charset_maps): Just free temp_charset_work.
16294 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
16295 variable.
16296
bba3e508 16297 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
16298 change of char_table_ref_and_range.
16299 (char_table_ref_and_range): Change the meaning of argument FROM
16300 and TO. Now the caller must provide initial values for *FROM
16301 and *TO.
16302
bba3e508 16303 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
16304 char_table_ref_and_range.
16305 (fontset_get_font_group): Likewise.
16306 (Ffontset_info): Likewise.
16307
bba3e508 16308 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
16309 char_table_ref_and_range. For char-table, put boundary between
16310 non-ASCII and 8-bit characters.
16311
16312 * print.c (print_object): For bool-vector, delete unnecessary
16313 check of ASCII_BYTE_P.
16314
9196133b
JR
163152008-11-26 Jason Rumney <jasonr@gnu.org>
16316
16317 * w32font.c (w32font_open_internal): Don't include external
9acef61c 16318 leading in font height. (Bug#879)
9196133b 16319
9f688acf
GM
163202008-11-26 Glenn Morris <rgm@gnu.org>
16321
16322 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
16323 redefinition with ifdef. (Bug#1383)
16324
90d19aff
AR
163252008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16326
16327 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
16328
4ccfa1c0 163292008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
16330
16331 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
16332 New EmacsView methods.
16333 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
16334 Fixes bug #1048,1357,1414.
16335
163362008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16337
16338 Fix bug #1362.
16339 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
16340 is not an indexed color.
16341 * nsterm.m (free_indexed_color): Add argument checking.
16342 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
16343
e7d5ecb3
CY
163442008-11-24 Chong Yidong <cyd@stupidchicken.com>
16345
16346 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
16347 Document confirm-after-completion value for
16348 minibuffer-completion-confirm.
16349
c285743c
JR
163502008-11-24 Jason Rumney <jasonr@gnu.org>
16351
16352 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
16353 warning.
16354
b0857706
JR
163552008-11-23 Jason Rumney <jasonr@gnu.org>
16356
16357 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
16358 restored before returning.
16359
16360 * w32font.c (check_face_name): New function.
16361 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 16362 fonts. (Bug#642)
b0857706 16363
ee50ff07
MR
163642008-11-22 Martin Rudalics <rudalics@gmx.at>
16365
16366 * buffer.c (Fswitch_to_buffer): Reword and mention new option
16367 confirm-nonexistent-file-or-buffer in doc-string.
16368
b8ff72fa
SM
163692008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16370
16371 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
16372 Fix copy/paste typo. Add checks.
16373
cee53ed4
KH
163742008-11-21 Kenichi Handa <handa@m17n.org>
16375
16376 * coding.c (detect_coding_iso_2022): Reject invalid composition
16377 sequence.
16378 (DECODE_COMPOSITION_START): If the current source is the last
16379 block, and the current composition doesn't end, regard this
16380 sequence as invalid.
16381 (decode_coding_iso_2022): Handle invalid composition sequence.
16382
f6ef1e65
MR
163832008-11-20 Martin Rudalics <rudalics@gmx.at>
16384
16385 * window.c (coordinates_in_window): Don't return
16386 ON_VERTICAL_BORDER for the rightmost position of a mode/header
16387 line when the window is not the rightmost one. (Bug#1372)
16388
e08b1705
MR
163892008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
16390
16391 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
16392
ad98e89f
EZ
163932008-11-15 Eli Zaretskii <eliz@gnu.org>
16394
16395 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
16396 and bright_bg if noninteractive is non-zero.
16397
fb098a4b
CY
163982008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16399
16400 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
16401 x_draw_glyph_string_background.
16402
16403 * w32term.c (x_draw_glyph_string): Likewise.
16404
ce952b6e
CY
164052008-11-15 Chong Yidong <cyd@stupidchicken.com>
16406
16407 * xterm.c (x_draw_glyph_string): Stop drawing the background of
16408 the next glyph string once past the overhang width.
16409
16410 * nsterm.m (ns_draw_glyph_string): Likewise.
16411
16412 * w32term.c (x_draw_glyph_string): Likewise.
16413
26ea7079
CY
164142008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
16415
16416 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
16417 double file close.
16418
1c33c906
MR
164192008-11-14 Martin Rudalics <rudalics@gmx.at>
16420
16421 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
16422 dedicated status of window before attempting to display another
16423 buffer in it.
16424
8fc29035
JB
164252008-11-14 Juanma Barranquero <lekktu@gmail.com>
16426
16427 * msdos.c (Fmsdos_long_file_names):
16428 (syms_of_msdos) <dos-unsupported-char-glyph>:
16429 * dosfns.c (Fint86): Fix typos in docstrings.
16430
55fb4286
EZ
164312008-11-14 Eli Zaretskii <eliz@gnu.org>
16432
16433 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
16434
3fda0315
KY
164352008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
16436
16437 * puresize.h (BASE_PURESIZE): Increase to 1260000.
16438
7e849c17
CY
164392008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
16440
16441 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
16442
16443 * frame.h: Negative alpha means "don't touch".
16444
16445 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
16446
16447 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
16448
b9fd67bd
DN
164492008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
16450
16451 * hftctl.c:
16452 * chpdef.h:
16453 * acldef.h: Remove files used only for systems no longer supported.
16454
16455 * Makefile.in: Fix .o alphabetical ordering.
16456 (hftctl.o): Remove dependency, file removed.
16457 (keymap.o, print.o): Depend on charset.h.
16458
d5998e03
KH
164592008-11-10 Kenichi Handa <handa@m17n.org>
16460
2ae37cf0 16461 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 16462
be70e183
CY
164632008-11-08 Chong Yidong <cyd@stupidchicken.com>
16464
16465 * dired.c (file_name_completion): If completion_ignore_case is
16466 enabled, ignore case when checking completion-regexp-list.
16467
7cf94eac
EZ
164682008-11-08 Eli Zaretskii <eliz@gnu.org>
16469
16470 * vm-limit.c (get_lim_data): Fix last change.
16471
ee107a89
KH
164722008-11-08 Kenichi Handa <handa@m17n.org>
16473
16474 * character.c (Fget_byte): New function.
16475 (syms_of_character): Defsubr Fget_byte.
16476
5fd15622
CY
164772008-11-07 Chong Yidong <cyd@stupidchicken.com>
16478
16479 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
16480 cursor position is valid after scrolling.
16481
13d62fad
JB
164822008-11-06 Juanma Barranquero <lekktu@gmail.com>
16483
16484 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
16485
a1dd2936
GM
164862008-11-06 Glenn Morris <rgm@gnu.org>
16487
16488 * xterm.c (handle_one_xevent): Don't let popup menus cause
16489 mouse-autoselect-window related window switching. (Bug#1261)
16490
860cd236
CY
164912008-11-04 David Smith <davidsmith@acm.org> (tiny change)
16492
16493 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
16494
653a3150
AS
164952008-11-04 Andreas Schwab <schwab@suse.de>
16496
16497 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
16498
870f5cac
CY
164992008-11-03 Chong Yidong <cyd@stupidchicken.com>
16500
16501 * xfns.c (Fx_wm_set_size_hint): New function.
16502
1e02f3cb
MR
165032008-11-03 Martin Rudalics <rudalics@gmx.at>
16504
16505 * textprop.c (Fprevious_single_char_property_change): Return 0
16506 when there's no change in a string. (Bug#1301)
16507
e630dfc6
MR
165082008-11-02 Martin Rudalics <rudalics@gmx.at>
16509
16510 * frame.c (do_switch_frame): New argument NORECORD passed to
16511 Fselect_window.
16512 (Fselect_frame): New argument NORECORD passed to
16513 do_switch_frame.
16514 (Fset_frame_selected_window): New argument NORECORD passed to
16515 Fselect_frame.
16516 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
16517 in call of do_switch_frame.
16518 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
16519 Handle NORECORD argument in call of Fselect_frame.
16520 * lisp.h (do_switch_frame, Fselect_frame)
16521 (Fset_frame_selected_window): Adjust declarations.
16522 * window.c (select_frame_norecord): New function.
16523 (run_window_configuration_change_hook): Use it and call
16524 Fselect_frame with NORECORD set.
16525 (Fselect_window): Pass NORECORD to Fselect_frame.
16526 (Fset_window_configuration): Handle NORECORD argument in call of
16527 do_switch_frame.
16528 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
16529 Fset_frame_selected_window.
16530 * keyboard.c (command_loop_1): Handle NORECORD in call of
16531 Fselect_frame (currently ifdefd).
16532
9020b223
GM
165332008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
16534
16535 * emacs.c (USAGE2): Untabify.
16536
793ffee8
SM
165372008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
16538
16539 * composite.c (fill_gstring_header): Fix copy/paste typo.
16540
ab6d1131
MR
165412008-10-31 Martin Rudalics <rudalics@gmx.at>
16542
16543 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
16544 (Fother_window): Rename argument and rewrite doc-string.
16545 (select_window_norecord): Fix return value. (Bug#1276)
16546
601a9cf1
JB
165472008-10-30 Juanma Barranquero <lekktu@gmail.com>
16548
16549 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
16550 new frames overriding foreground for tooltips. Based on similar patch
16551 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
16552
813b0652
CY
165532008-10-29 Chong Yidong <cyd@stupidchicken.com>
16554
16555 * emacs.c (Fdaemon_initialized): Initialize nfd.
16556
4414f58f
MR
165572008-10-29 Martin Rudalics <rudalics@gmx.at>
16558
16559 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
16560 (Fwindow_text_height): Clarify doc-strings.
16561 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
16562 doc-string of window-scroll-functions.
16563
ecdcaa09
RS
165642008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
16565
16566 * category.c (syms_of_category): Fix typo in docstring.
16567
23fe745a
JB
165682008-10-28 Juanma Barranquero <lekktu@gmail.com>
16569
16570 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
16571 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
16572 Fix typos in docstrings.
16573
ff808935
DN
165742008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
16575
16576 * emacs.c (daemon_pipe): Make non-static.
16577 (IS_DAEMON): Move definition ...
16578 * lisp.h (IS_DAEMON): ... here.
16579 (daemon_pipe): Declare.
16580 (is_daemon): Remove.
16581 * dispnew.c (init_display): Use IS_DAEMON.
16582
fc012771
SM
165832008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16584
16585 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
16586 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
16587
16588 * emacs.c (is_daemon): Remove.
16589 (main): Don't set is_daemon.
16590 (IS_DAEMON): New macro.
16591 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 16592 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
16593 parent exits.
16594 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
16595
d8bdbe6f
CY
165962008-10-27 Chong Yidong <cyd@stupidchicken.com>
16597
d1a072bf
CY
16598 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16599 over-sized glyph, draw it with the default glyph width.
16600
e2e325aa
CY
16601 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16602 glyph, draw it with the default glyph width.
16603
16604 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16605 glyph, draw it with the default glyph width.
16606
d8bdbe6f
CY
16607 * xdisp.c (try_scrolling): When computing the distance from the
16608 scroll margin to PT, try moving some distance past the window
16609 bottom before giving up.
16610
7bfac547
MR
166112008-10-27 Martin Rudalics <rudalics@gmx.at>
16612
16613 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16614 (Fset_window_buffer): Explain in doc-string that a window can be
16615 "strongly" dedicated to its buffer.
16616
4ff029f6
DN
166172008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
16618
16619 * emacs.c (daemon_name): New variable.
16620 (main): Deal with --daemon=SERVER_NAME.
16621 (Fdaemonp): Return a name if one was passed to --daemon.
16622
5790ef40
DN
166232008-10-26 Romain Francoise <romain@orebokech.com>
16624
f9bd0df9 16625 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
16626 (main): Create a pipe before forking, make the parent exit only after
16627 the child has closed its end of the pipe. Move closing the
16628 descriptors ...
16629 (Fdaemon_initialized): ... here. New function.
16630
f5385255
SM
166312008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
16632
4d632321
SM
16633 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16634 the previous unoptimized table.
16635
f5385255
SM
16636 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16637 the distinction between non-nil and non-t value of `dedicated'.
16638
6c56a0f3
CY
166392008-10-25 Chong Yidong <cyd@stupidchicken.com>
16640
16641 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 16642 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 16643
fec89261
MR
166442008-10-25 Martin Rudalics <rudalics@gmx.at>
16645
16646 * window.c (Fget_buffer_window, Fdelete_windows_on)
16647 (Freplace_buffer_in_windows): Make buffer argument optional and
16648 rename to buffer_or_name.
16649
34fcddd0
CY
166502008-10-24 Chong Yidong <cyd@stupidchicken.com>
16651
f5385255
SM
16652 * xdisp.c (handle_single_display_spec, handle_display_prop):
16653 Undo 2005-05-16 change.
34fcddd0
CY
16654 (handle_stop): Pop iterator if it's loaded with an empty string.
16655 (get_overlay_strings_1): Don't save iterator if it's loaded with
16656 an empty string (bug#1201).
16657
064766f2
KH
166582008-10-24 Kenichi Handa <handa@m17n.org>
16659
16660 * ftfont.c (ftfont_otf_features): Fix previous change.
16661 (ftfont_otf_capability): Check FeatureList.FeatureCount before
16662 calling ftfont_otf_features.
16663
f9bd0df9 166642008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
16665
16666 * font.c (font_match_p): Fix for the case that a vector of
16667 characters is in script-representative-chars.
16668
1dae9197
MA
166692008-10-24 Michael Albinus <michael.albinus@gmx.de>
16670
16671 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 16672 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
16673 (xd_read_queued_messages): Catch Qdbus_error from the macros.
16674 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 16675 macro. (Bug#1186)
1dae9197 16676
f9bd0df9 166772008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
16678
16679 * s/sol2-10.h: New file.
16680
878a4584
JB
166812008-10-23 Juanma Barranquero <lekktu@gmail.com>
16682
16683 * xdisp.c (fill_glyph_string): Fix typo in source (though the
16684 poor beast has survived 9+ years and the jump from xterm.c!).
16685
cd265ca6
MR
166862008-10-23 Martin Rudalics <rudalics@gmx.at>
16687
16688 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16689 Reword doc-string.
f5385255 16690 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 16691
472a4dc9
JB
166922008-10-23 Juanma Barranquero <lekktu@gmail.com>
16693
16694 * character.c (syms_of_character) <script-representative-chars>:
16695 <unicode-category-table>: Doc fixes.
16696
159bd5a2
NF
166972008-10-23 Noah Friedman <friedman@splode.com>
16698
16699 * coding.c (make_conversion_work_buffer): Check that
16700 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
16701 Fget_buffer_create.
16702
49f9c344
KH
167032008-10-23 Kenichi Handa <handa@m17n.org>
16704
16705 * font.c (font_add_log): Check the values of extra properties.
16706
12bb3111
MR
167072008-10-22 Martin Rudalics <rudalics@gmx.at>
16708
16709 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16710 Reword doc-string.
16711 (Fset_window_parameter): Use NILP.
16712 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 16713 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 16714
bbeb4e99
JB
167152008-10-22 Juanma Barranquero <lekktu@gmail.com>
16716
16717 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
16718
167192008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
16720
16721 * nsfns.m (ns_appkit_version): New function.
16722 (x-server-version): Use it.
16723 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16724 (x-server-vendor): Don't check_ns().
16725
16726 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16727
a9b555d3
JB
167282008-10-22 Juanma Barranquero <lekktu@gmail.com>
16729
16730 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16731 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16732
4626499f
KH
167332008-10-22 Kenichi Handa <handa@m17n.org>
16734
e3681952
KH
16735 * syntax.c (scan_words): Call word_boundary_p instead of comparing
16736 scripts.
16737
4626499f
KH
16738 * category.c (word_boundary_p): Check scripts instead of charset.
16739 Handle nil value in word-separating-categories and
16740 word-combining-categories.
16741 (syms_of_category): Fix docstrings of word-separating-categories
16742 and word-combining-categories.
16743
1560f91a
EZ
167442008-10-21 Eli Zaretskii <eliz@gnu.org>
16745
16746 * coding.c (Fencode_coding_region, Fdecode_coding_region)
16747 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
16748
f4668441
MR
167492008-10-21 Martin Rudalics <rudalics@gmx.at>
16750
16751 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
16752 Rename arg "buffer" to "buffer_or_name".
16753 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
16754 it optional.
16755 (no_switch_window): Remove since the return value is not used.
a9b555d3 16756 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
16757 Consider window as dedicated when Fwindow_dedicated_p returns a
16758 non-nil value.
16759 * lisp.h: Remove prototype for no_switch_window.
16760
fd75ddb2
JD
167612008-10-21 Jan Djärv <jan.h.d@swipnet.se>
16762
16763 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 16764 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 16765
07295713
KH
167662008-10-21 Kenichi Handa <handa@m17n.org>
16767
16768 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
16769 check Vlatin_extra_code_table.
16770
712adc82
EZ
167712008-10-20 Eli Zaretskii <eliz@gnu.org>
16772
16773 * fileio.c (Fset_file_modes): Doc fix.
16774
f549eb0b
MA
167752008-10-19 Michael Albinus <michael.albinus@gmx.de>
16776
16777 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
16778 in arrays.
16779
aac0c6e3
MR
167802008-10-19 Martin Rudalics <rudalics@gmx.at>
16781
16782 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16783 Mention kill-buffer in doc-string.
16784 (Fset_window_buffer): Reinsert tem check removed in last commit.
16785 (Fenlarge_window, Fshrink_window): Have argument names and
16786 doc-string follow Elisp manual more closely.
16787
167882008-10-18 Eli Zaretskii <eliz@gnu.org>
16789
16790 * fileio.c (Fset_file_modes): Doc fix.
16791
167922008-10-18 Martin Rudalics <rudalics@gmx.at>
16793
16794 * window.c (Fwindow_width, Fset_window_start)
16795 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
16796 (Fdelete_windows_on, Freplace_buffer_in_windows):
16797 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
16798 (Fwindow_dedicated_p): Make window argument optional.
16799 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
16800 (Fset_window_buffer): Respect any non-nil dedicated value for
16801 window. Rename "buffer" argument to "buffer_or_name".
16802
168032008-10-18 Ulrich Mueller <ulm@gentoo.org>
16804
16805 * m/sh3.h: New file, machine description for SuperH.
16806
168072008-10-17 Martin Rudalics <rudalics@gmx.at>
16808
16809 * window.c (Fsplit_window): Rename arg horflag to horizontal.
16810
168112008-10-17 Kenichi Handa <handa@m17n.org>
16812
16813 * ftfont.c (ftfont_otf_features): Fix indexing
16814 gsub_gpos->FeatureList.Feature. Check the validity of indices.
16815
168162008-10-16 Magnus Henoch <mange@freemail.hu>
16817
16818 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
16819 (Fdbus_call_method_asynchronously): Ditto.
16820 This change makes C-h f display the argument list.
16821
168222008-10-16 Chong Yidong <cyd@stupidchicken.com>
16823
16824 * fileio.c (Fexpand_file_name): Doc fix.
16825
16826 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
16827 of :foreground and :background equivalent to unspecified (20.x
16828 compatibility).
16829
168302008-10-15 Eli Zaretskii <eliz@gnu.org>
16831
16832 * buffer.c (syms_of_buffer): Doc fix.
16833
168342008-10-14 Kenichi Handa <handa@m17n.org>
16835
16836 * font.c (font_clear_prop): When clearing font width, clear the
16837 average width field too.
16838
168392008-10-12 Andreas Schwab <schwab@suse.de>
16840
16841 * ftfont.c (ftfont_shape_by_flt): Make static.
16842 * ftfont.h (ftfont_shape_by_flt): Don't declare.
16843
16844 * font.c: Don't include <m17n-flt.h>.
16845
168462008-10-10 Eli Zaretskii <eliz@gnu.org>
16847
16848 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
16849
168502008-10-09 Eli Zaretskii <eliz@gnu.org>
16851
16852 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
16853 away code.
16854
168552008-10-09 Chong Yidong <cyd@stupidchicken.com>
16856
16857 * dispnew.c (update_text_area): Avoid looping due to large glyph
16858 overhangs (bug#1070).
16859
168602008-10-09 Kenichi Handa <handa@m17n.org>
16861
16862 * fontset.c (face_for_char): If face->fontset is negative, just
16863 return ascii_face.
16864
f5385255
SM
16865 * font.c (font_delete_unmatched): Fix previous change.
16866 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
16867
168682008-10-09 Martin Rudalics <rudalics@gmx.at>
16869
16870 * frame.c (Fraise_frame): On text-only terminals select frame in
16871 order to make it visible. (Bug#1061)
16872
168732008-10-08 Chong Yidong <cyd@stupidchicken.com>
16874
16875 * fontset.c (fontset_find_font): Check frame validity.
16876
168772008-10-07 Chong Yidong <cyd@stupidchicken.com>
16878
a9b555d3 16879 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
16880 (xg_display_close): Allow Emacs to close all displays (bug#985).
16881
168822008-10-06 Andreas Schwab <schwab@suse.de>
16883
f5385255 16884 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
16885
168862008-10-06 Chong Yidong <cyd@stupidchicken.com>
16887
f5385255 16888 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 16889
a9b555d3 16890 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
16891
16892 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
16893 during initialization.
16894
168952008-10-04 Eli Zaretskii <eliz@gnu.org>
16896
16897 * xdisp.c (redisplay_internal): If frame switched, redisplay the
16898 whole thing on MSDOS frames as well as on a TTY.
16899
16900 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
16901 well as for TTY.
16902 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
16903 well as on a TTY.
16904
16905 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
16906 as well as for TTY.
16907
16908 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
16909
16910 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
16911 MSDOS frames as well.
16912
169132008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16914
16915 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
16916 correct arguments.
b71ac3dd 16917 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
16918
169192008-10-03 Glenn Morris <rgm@gnu.org>
16920
16921 * emacs.c (USAGE1): Add --daemon.
16922
169232008-10-02 Eli Zaretskii <eliz@gnu.org>
16924
16925 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
16926 100, so it's in percents as advertised.
16927
169282008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16929
16930 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
16931 (ns_output.current_cursor, ns_output.desired_cursor)
16932 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
16933 (FRAME_NEW_CURSOR_COLOR): Remove.
16934
16935 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 16936 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
16937 enumeration (HOLLOW_BOX_CURSOR, etc.).
16938
16939 * nsterm.m (ns_frame_rehighlight): Remove commented code.
16940 (draw_window_cursor): Simplify code.
f5385255
SM
16941 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
16942 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 16943 updates manually.
a9b555d3
JB
16944 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
16945 Use core Emacs cursor types.
aac0c6e3 16946
b8ff72fa 16947 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
16948
169492008-10-02 Martin Rudalics <rudalics@gmx.at>
16950
16951 * process.c (Faccept_process_output): Fix doc-string.
16952
169532008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
16954
16955 * gmalloc.c (__sbrk): Also define for uClibc.
16956
16957 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
16958 for uClibc.
16959
169602008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16961
16962 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
16963 styles.
16964 (nsfont_open): Reenable the cache.
16965
169662008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16967
16968 * font.c (font_matching_entity): Reflect ATTRS in font selection.
16969 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
16970
169712008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
16972
16973 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
16974 a suspended terminal.
16975
169762008-09-30 Michael Albinus <michael.albinus@gmx.de>
16977
16978 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
16979
169802008-09-30 Eli Zaretskii <eliz@gnu.org>
16981
16982 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
16983
169842008-09-30 Chong Yidong <cyd@stupidchicken.com>
16985
16986 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
16987 in a continued line coincides with a line beginning.
16988
169892008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
16990
16991 * nsfont.m (nsfont_trait_distance): Fix bug.
16992 (nsfont_list): Return a list rather than a vector (syncs with Handa
16993 changes of 2008-05-14).
16994 (nsfont_open): Improve logging.
16995
169962008-09-29 Andreas Schwab <schwab@suse.de>
16997
16998 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
16999
170002008-09-28 Martin Rudalics <rudalics@gmx.at>
17001
17002 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
17003 name as char-resolve-modifiers.
17004 Reported by: Markus Triska <markus.triska@gmx.at>
17005
170062008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
17007
17008 * dispnew.c (init_display): Return earlier when running as a daemon.
17009
170102008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17011
17012 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
17013
170142008-09-27 Eli Zaretskii <eliz@gnu.org>
17015
17016 * composite.c (Fcomposition_get_gstring)
17017 (Fcompose_region_internal, Fcompose_string_internal)
17018 (Ffind_composition_internal): Doc fix.
17019 (syms_of_composite) <compose-chars-after-function>: Doc fix.
17020 (syms_of_composite) <auto-composition-function>: Doc fix.
17021 (syms_of_composite) <composition-function-table>: Doc fix.
17022
170232008-09-25 Chong Yidong <cyd@stupidchicken.com>
17024
17025 * search.c (wordify): New argument for lax word-ends.
17026 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
17027
170282008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
17029
17030 * lisp.h (is_daemon): Declare.
17031 * dispnew.c (init_display): Do not try to initialize the terminal
17032 when running as a daemon.
17033
170342008-09-22 Chong Yidong <cyd@stupidchicken.com>
17035
17036 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
17037 x_display_pixel_height.
17038
170392008-09-22 Martin Rudalics <rudalics@gmx.at>
17040
17041 * undo.c (record_point): Don't call Fundo_boundary for first
17042 change. (Bug#731)
17043
170442008-09-22 Juanma Barranquero <lekktu@gmail.com>
17045
17046 * emacs.c (Fdaemonp): Doc fix.
17047
170482008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
17049
17050 * emacs.c (main): Place #ifdef in the proper place.
17051
170522008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
17053
17054 * emacs.c (standard_args): Add --daemon.
17055 (main): Disconnect from the terminal when --daemon is passed.
17056 (is_daemon): New variable.
17057 (Fdaemonp): New function.
17058 (syms_of_emacs): Defsubr it.
17059
170602008-09-20 Chong Yidong <cyd@stupidchicken.com>
17061
17062 * xdisp.c (get_next_display_element): Handle string display
17063 correctly when checking for the end of a box run.
17064
170652008-09-20 Glenn Morris <rgm@gnu.org>
17066
17067 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
17068 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
17069 (Frename_file): Avoid copying to trash if a rename involves
17070 a delete. (Bug#964).
17071
170722008-09-20 Eli Zaretskii <eliz@gnu.org>
17073
17074 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
17075 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
17076 frames as well as termcap frames.
17077 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
17078 get_named_tty.
17079
170802008-09-19 Eli Zaretskii <eliz@gnu.org>
17081
17082 * process.c (procfs_system_process_attributes): Fix cmdline in
17083 case /proc/PID/cmdline is empty.
17084
17085 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
17086 x_display_pixel_height.
17087
170882008-09-19 Juanma Barranquero <lekktu@gmail.com>
17089
17090 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
17091
17092 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
17093 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
17094
170952008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
17096
17097 * dispextern.h (struct it): Move line_wrap away from the middle of
17098 bitfields. Move voffset in struct iterator_stack_entry after the
17099 bitfields. Move tab_width near after another short.
17100
171012008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
17102
17103 * frame.h (struct frame): Move alpha from the middle of bitfields.
17104
17105 * window.h (struct window): Move frozen_window_start_p after the
17106 rest of the bitfields to reduce padding.
17107
171082008-09-18 Chong Yidong <cyd@stupidchicken.com>
17109
17110 * xterm.h (x_display_info): Remove `height' and `width' members.
17111
17112 * nsterm.h (ns_display_info): Remove `height' and `width' members.
17113
17114 * w32term.h (w32_display_info): Remove `height', `width',
17115 `height_in', and `width_in' members.
17116
b8ff72fa
SM
17117 * xterm.c (x_display_pixel_height, x_display_pixel_width):
17118 New functions.
aac0c6e3
MR
17119 (x_calc_absolute_position): Use them.
17120 (x_term_init): Omit removed `height' and `width' members.
17121
b8ff72fa
SM
17122 * w32term.c (x_display_pixel_height, x_display_pixel_width):
17123 New functions.
aac0c6e3
MR
17124 (w32_read_socket, x_calc_absolute_position): Use them.
17125 (w32_initialize_display_info, w32_term_init): Omit removed members
17126 of w32_display_info.
17127
b8ff72fa
SM
17128 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
17129 New functions.
17130 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 17131
b8ff72fa
SM
17132 * xterm.c (x_display_pixel_height, x_display_pixel_width):
17133 New functions.
aac0c6e3
MR
17134 (x_calc_absolute_position): Use them.
17135 (x_term_init): Omit removed `height' and `width' members.
17136
17137 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
17138 (compute_tip_xy):
17139 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
17140 * xmenu.c (menu_position_func): Use x_display_pixel_height and
17141 x_display_pixel_width.
17142
171432008-09-18 Kenichi Handa <handa@m17n.org>
17144
17145 * composite.c (fill_gstring_header): Don't check FROM and TO here.
17146 (composition_compute_stop_pos): Fix handling of static composition.
17147 (Fcomposition_get_gstring): Check FROM and TO at first.
17148
171492008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
17150
46e722a9 17151 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
17152 mixup (YAILOM).
17153
171542008-09-17 Chong Yidong <cyd@stupidchicken.com>
17155
17156 * indent.c (Fvertical_motion): Use position reported by iterator
17157 instead of PT for determining screen motion (bug#943).
17158
171592008-09-17 Romain Francoise <romain@orebokech.com>
17160
17161 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
17162
171632008-09-17 Kenichi Handa <handa@m17n.org>
17164
17165 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
17166
17167 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
17168 if necessary.
17169
171702008-09-16 Kenichi Handa <handa@m17n.org>
17171
17172 * coding.c (make_conversion_work_buffer): Avoid calling
17173 Fget_buffer_create if it is not necessary.
17174
171752008-09-15 Martin Rudalics <rudalics@gmx.at>
17176
17177 * window.c (Fselect_window): Don't update window_select_count and
17178 use_time when norecord is not nil.
17179
171802008-09-14 Kenichi Handa <handa@m17n.org>
17181
17182 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
17183 specpdl_ptr.
17184
171852008-09-12 Kenichi Handa <handa@m17n.org>
17186
17187 * indent.c (scan_for_column): Don't handle automatic composition
17188 if the current buffer is not associated with a window.
17189
17190 * composite.c (composition_reseat_it): If the current buffer is
17191 not associated with a window, ignore the automatic composition.
17192 (find_automatic_composition): Likewise.
17193
171942008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
17195
17196 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
17197 (Fgpm_mouse_stop): Use it.
17198 * termhooks.h (close_gpm): Declare.
17199 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
17200 connection if Gpm_GetEvent fails.
17201
17202 * window.c (set_window_buffer): Always preserve current-buffer.
17203
172042008-09-12 Glenn Morris <rgm@gnu.org>
17205
17206 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
17207
172082008-09-11 Glenn Morris <rgm@gnu.org>
17209
17210 * charset.c (charset-map-path): Doc fix.
17211
172122008-09-10 Kenichi Handa <handa@m17n.org>
17213
17214 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
17215
17216 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
17217 compose a grapheme cluster with the preceding base glyph.
17218
17219 * composite.c (composition_compute_stop_pos): Fix previous change.
17220 Reset cmp_it->id to -1 at first.
17221
172222008-09-10 Glenn Morris <rgm@gnu.org>
17223
17224 * Makefile.in (character.o, chartab.o): Fix config.h typo.
17225
172262008-09-09 Chong Yidong <cyd@stupidchicken.com>
17227
17228 * keyboard.c (read_key_sequence): Reapply translation maps when
17229 switching keyboards.
17230
172312008-09-09 Kenichi Handa <handa@m17n.org>
17232
17233 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
17234 characters.
17235
17236 * composite.c (FORWARD_CHAR): Fix calculation
17237 of (POSITION).pos_byte.
17238 (composition_compute_stop_pos): Limit the search of composition to
17239 at most 500 characters ahead. If we reach the limit or find a
17240 newline, set cmp_it->ch to -2 and return 0.
17241 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
17242
172432008-09-08 Kenichi Handa <handa@m17n.org>
17244
17245 * indent.c (Fvertical_motion): Be sure to set
17246 it_overshoot_expected if it.cmp_it.id is non-negative.
17247
172482008-09-07 Andreas Schwab <schwab@suse.de>
17249
17250 * callproc.c (Fcall_process): Don't hold references to string data
17251 across garbage collection. Move initialisation of new_argv down
17252 to avoid compiler bug.
17253
172542008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17255
17256 * process.c (Fsystem_process_attributes): Doc fix.
17257
172582008-09-07 Chong Yidong <cyd@stupidchicken.com>
17259
17260 * callproc.c (Fcall_process): Canonicalize current directory name.
17261
17262 * xdisp.c (move_it_to): When moving by vpos, ensure that the
17263 iterator advances to the next line if the current line ends in a
17264 continued tab.
17265
172662008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
17267
17268 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
17269 member to point to cmp_from.
17270
17271 * xdisp.c: Doc fix for references to gidx data member.
17272
172732008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17274
17275 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
17276
172772008-09-07 Kenichi Handa <handa@m17n.org>
17278
17279 * composite.c (FORWARD_CHAR): Check STOP after
17280 incrementing (POSITION).pos.
17281
172822008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17283
17284 * process.c (Fsystem_process_attributes): Doc fix.
17285
172862008-09-06 Chong Yidong <cyd@stupidchicken.com>
17287
17288 * keyboard.c (Ftop_level): Doc fix.
17289
172902008-09-06 Eli Zaretskii <eliz@gnu.org>
17291
17292 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
17293 minibuffer, don't let lower part of menu invade the echo area.
17294
17295 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
17296 "char *q" to access menu text and advance through it. Revert the
17297 change that displayed ">" instead of ASCII character 0x10.
17298
172992008-09-05 Eli Zaretskii <eliz@gnu.org>
17300
17301 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
17302 toggle boxes and radio buttons on MS-DOS as well.
17303
173042008-09-05 Kenichi Handa <handa@m17n.org>
17305
17306 * composite.c (autocmp_chars): Check lookback count.
17307 (composition_compute_stop_pos): Set cmp_it->lookback.
17308 (composition_reseat_it): Check lookback count.
17309 (struct position_record): New struct.
17310 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
17311 (find_automatic_composition): New function.
17312 (composition_adjust_point): Use find_automatic_composition.
17313
17314 * dispextern.h (struct composition_it): New member lookback.
17315
173162008-09-02 Chong Yidong <cyd@stupidchicken.com>
17317
17318 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
17319 if moving by a single line.
17320
173212008-09-02 Andreas Schwab <schwab@suse.de>
17322
17323 * xterm.c (x_delete_display): Fix merge error.
17324
17325 * fileio.c (Fexpand_file_name): Remove unused variables.
17326
173272008-09-02 Eli Zaretskii <eliz@gnu.org>
17328
17329 * fileio.c (Fexpand_file_name): Copy argument `name' into local
17330 storage on all platforms, not just on DOS_NT.
17331
173322008-09-02 Jason Rumney <jasonr@gnu.org>
17333
b8ff72fa
SM
17334 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
17335 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
17336
173372008-09-01 Chong Yidong <cyd@stupidchicken.com>
17338
17339 * xfaces.c (Finternal_set_alternative_font_family_alist)
17340 (Finternal_set_alternative_font_registry_alist): Properly copy
17341 entire alist structure.
17342
173432008-09-01 Kenichi Handa <handa@m17n.org>
17344
d66c0241 17345 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 17346 representative chars of the script is a vector.
d66c0241
JB
17347 (ftfont_list): Handle the case where the representative chars of
17348 the script is a vector.
aac0c6e3
MR
17349
17350 * character.c (syms_of_character): Docstring of
17351 script-representative-chars fixed.
17352
173532008-08-31 Eli Zaretskii <eliz@gnu.org>
17354
17355 * msdos.c (BUILD_CHAR_GLYPH): New macro.
17356 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
17357 the menu. Allocate larger buffer for `text', to account for
17358 possible ^C characters.
17359
173602008-08-31 Martin Rudalics <rudalics@gmx.at>
17361
17362 * xdisp.c (prepare_menu_bars): Don't call
17363 Vwindow_size_change_functions with arg Qt.
17364
173652008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17366
17367 * font.h (font_range):
17368 * fileio.c (report_file_error):
46e722a9
SM
17369 * composite.c (composition_update_it): Yet another int/Lisp_Object
17370 mixup (YAILOM).
aac0c6e3
MR
17371
173722008-08-30 Glenn Morris <rgm@gnu.org>
17373
17374 * data.c (Fmake_variable_frame_local): Doc fix.
17375
17376 * frame.c (Fmodify_frame_parameters): Doc fix.
17377
173782008-08-30 Eli Zaretskii <eliz@gnu.org>
17379
17380 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
17381 needed by GetTokenInformation.
17382 (w32_system_process_attributes): Check return values of all system
17383 APIs.
17384
17385 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
17386 only when the state changes.
17387 (IT_update_begin, IT_update_end): Add termscript trace.
17388
17389 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
17390 clipboard is unavailable. Set dst to NULL if it doesn't point to
17391 malloc'ed data.
17392 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
17393 passing random values to xfree.
17394
17395 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 17396 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
17397
173982008-08-29 Jason Rumney <jasonr@gnu.org>
17399
17400 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
17401
174022008-08-29 Eli Zaretskii <eliz@gnu.org>
17403
17404 * composite.c (fill_gstring_body): Avoid compiler warnings.
17405
17406 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
17407 LGLYPH_SET_CODE to avoid compiler warnings.
17408
2ae37cf0 17409 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
17410
17411 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
17412
17413 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
17414 LGLYPH_SET_CODE.
17415
174162008-08-29 Kenichi Handa <handa@m17n.org>
17417
17418 * fileio.c (report_file_error): Don't downcase the first character
17419 of errstring if it is still unibyte.
17420
174212008-08-29 Kenichi Handa <handa@m17n.org>
17422
17423 These changes are to re-implement the automatic composition so
17424 that it doesn't use text properties.
17425
17426 * Makefile.in (ftfont.o): Depend on composite.h.
17427 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
17428
17429 * character.h (Vunicode_category_table): Extern it.
17430
17431 * character.c (Vunicode_category_table): New variable.
17432 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
17433
17434 * chartab.c (optimize_sub_char_table): Perform more greedy
17435 optimization.
17436
b8ff72fa
SM
17437 * composite.h (enum composition_method):
17438 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
17439 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
17440 (Vcomposition_function_table): Extern it.
17441 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
17442 (composition_gstring_put_cache, composition_gstring_from_id)
17443 (composition_gstring_p, composition_gstring_width)
17444 (composition_compute_stop_pos, composition_reseat_it)
17445 (composition_update_it, composition_adjust_point): Extern them.
17446 (Fcomposition_get_gstring): EXFUN it.
17447
d66c0241 17448 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
17449 (Vcomposition_function_table)
17450 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
17451 (gstring_hash_table, gstring_work, gstring_work_headers):
17452 New variables.
aac0c6e3
MR
17453 (gstring_lookup_cache, composition_gstring_put_cache)
17454 (composition_gstring_from_id, composition_gstring_p)
17455 (composition_gstring_width, fill_gstring_header)
17456 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
17457 (composition_reseat_it, composition_update_it)
b8ff72fa 17458 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
17459 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
17460 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 17461 Defsubr composition_get_gstring.
aac0c6e3
MR
17462
17463 * dispextern.h (struct glyph): New union u.cmp. Delete the member
17464 cmp_id.
17465 (struct glyph_string): Delete the member gidx. New members
17466 cmp_id, cmp_from, and cmp_to.
17467 (enum it_method): Delete GET_FROM_COMPOSITION.
17468 (struct composition_it): New struct.
17469 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
17470 Delete c, len, cmp_id, cmp_len in u.comp.
17471
17472 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 17473 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 17474 (enum lglyph_indices): Likewise.
b8ff72fa 17475 (font_range): Adjust extern.
aac0c6e3
MR
17476 (font_fill_lglyph_metrics): Extern it.
17477
17478 * font.c (QCf): New variable.
17479 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17480 (font_prepare_composition): Delete this function.
17481 (font_range): Type and arguments changed.
17482 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
17483 (font_fill_lglyph_metrics): New function.
b8ff72fa 17484 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 17485 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
17486 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
17487 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
17488
17489 * fontset.h (font_for_char): Extern it.
17490
17491 * fontset.c (font_for_char): New function.
17492
17493 * ftfont.c: Include composite.h.
17494 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 17495 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
17496
17497 * indent.c: Include composite.h and dispextern.h.
17498 (check_composition): Delete this function.
17499 (scan_for_column): Handle composition by
17500 composition_compute_stop_pos, composition_reseat_it, and
17501 composition_update_it.
17502 (compute_motion): Likewise.
17503 (Fvertical_motion): Fix checking of composition.
17504
17505 * keyboard.c (adjust_point_for_property): Check composition by
17506 composition_adjust_point.
17507
b8ff72fa 17508 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
17509 struct glyph_string.
17510
b8ff72fa
SM
17511 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
17512 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
17513 struct glyph.
17514 (produce_composite_glyph): Likewise.
17515
b8ff72fa
SM
17516 * w32term.c (x_draw_composite_glyph_string_foreground):
17517 Adjust for the change of struct glyph_string.
aac0c6e3
MR
17518 (x_draw_glyph_string): Likewise.
17519
17520 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
17521 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17522
17523 * xdisp.c: Include font.h.
17524 (it_props): Delete the entry for Qauto_composed.
17525 (init_iterator): Initialize it->cmp_it.id to -1.
17526 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 17527 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
17528 (handle_auto_composed_prop): Delete it.
17529 (handle_composition_prop): Handle only static composition.
17530 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
17531 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 17532 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
17533 (pop_it): Likewise.
17534 (get_next_element): Delete next_element_from_composition.
17535 (CHAR_COMPOSED_P): New macro.
17536 (get_next_display_element): For automatic composition, get a face
17537 from the font in the glyph-string.
17538 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 17539 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
17540 (next_element_from_string): Check if the character at the current
17541 position is composed by CHAR_COMPOSED_P.
17542 (next_element_from_buffer): Likewise.
d66c0241
JB
17543 (next_element_from_composition): Adjust for the change of struct it.
17544 Update it->cmp_it.
b8ff72fa
SM
17545 (dump_glyph): Adjust for the change of struct glyph.
17546 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
17547 it and struct glyph. Don't handle automatic composition here.
17548 (fill_gstring_glyph_string): New function.
17549 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 17550 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
17551 (BUILD_GSTRING_GLYPH_STRING): New macro.
17552 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
17553 automatic composition.
b8ff72fa 17554 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 17555 struct glyph.
b8ff72fa 17556 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 17557
b8ff72fa 17558 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
17559 the change of struct glyph_string.
17560 (x_draw_glyph_string): Likewise.
17561
175622008-08-29 Glenn Morris <rgm@gnu.org>
17563
17564 * buffer.c (word-wrap): Doc fix.
17565 * xdisp.c (truncate-partial-width-windows): Doc fix.
17566 Increase default to 50.
17567
175682008-08-29 Chong Yidong <cyd@stupidchicken.com>
17569
17570 * xdisp.c (update_tool_bar_unwind): New function.
17571 (update_tool_bar): Temporarily set selected frame before building
17572 tool-bar items.
17573
175742008-08-28 Michael Albinus <michael.albinus@gmx.de>
17575
17576 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
17577 snprintf, respectively.
17578 (xd_append_arg): Convert strings with Fstring_make_unibyte.
17579
175802008-08-28 Chong Yidong <cyd@stupidchicken.com>
17581
17582 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
17583 LDFLAGS to GNUstep CC invocation.
17584
175852008-08-27 Chong Yidong <cyd@stupidchicken.com>
17586
17587 * indent.c (Fvertical_motion): Revert last change. Handle the
17588 general case where we are moving forward, and PT spans multiple
17589 screen lines.
17590
17591 * eval.c (find_handler_clause): Temporarily increase
17592 max-lisp-eval-depth while printing the backtrace buffer, to
17593 guarantee that help-mode code can run.
17594
175952008-08-27 Eli Zaretskii <eliz@gnu.org>
17596
17597 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
17598 colors under -rv.
17599 (IT_set_frame_parameters): Don't swap foreground and background
17600 colors if `(reverse . t)' is present in the frame properties.
17601 (internal_terminal_init): Call init_frame_faces only for the
17602 initial frame.
17603
176042008-08-27 Andreas Schwab <schwab@suse.de>
17605
17606 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17607
176082008-08-27 Andreas Schwab <schwab@suse.de>
17609
17610 * search.c (search_buffer): Set char_base to zero only at the end.
17611
176122008-08-27 Kenichi Handa <handa@m17n.org>
17613
b8ff72fa 17614 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
17615
176162008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
17617
17618 * xterm.c (x_term_init): Temporarily hide the partially
17619 initialized terminal while calling vendor-specific-keysyms.
17620
176212008-08-26 Eli Zaretskii <eliz@gnu.org>
17622
17623 * msdos.c (internal_terminal_init): Most initializations done only
17624 once, especially initial_screen_colors[] and termscript open.
17625
176262008-08-26 Chong Yidong <cyd@stupidchicken.com>
17627
17628 * eval.c (Fcondition_case): Doc fix.
17629
17630 * widgetprv.h (EmacsFramePart): Change font member to the new font
17631 struct.
17632
17633 * widget.c: Include character.h and font.h for XSETFONT.
17634 (setup_frame_gcs): Compute X font id from font struct, just once.
17635
176362008-08-26 Eli Zaretskii <eliz@gnu.org>
17637
17638 * term.c (get_named_tty): Fix last change.
17639
176402008-08-26 Chong Yidong <cyd@stupidchicken.com>
17641
17642 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 17643 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
17644
176452008-08-25 Eli Zaretskii <eliz@gnu.org>
17646
17647 * frame.c (do_switch_frame): Mark previously displayed frame as
17648 obscured for FRAME_MSDOS_P frames as well.
17649
176502008-08-24 Eli Zaretskii <eliz@gnu.org>
17651
17652 * frame.c (make_terminal_frame): Initialize f->terminal,
17653 f->terminal->reference_count, and scroll bars on MS-DOS as well.
17654 Set the top frame to newly created frame.
17655 (Fmake_terminal_frame): Reuse the_only_display_info.
17656
17657 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17658 estimating available memory.
17659
b97439ce 176602008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
17661
17662 * nsterm.m (ns_draw_window_cursor): Don't call
17663 NSDisableScreenUpdates and NSEnableScreenUpdates on
17664 non-NS_IMPL_COCOA systems.
17665
176662008-08-23 Andreas Schwab <schwab@suse.de>
17667
17668 * process.c (procfs_system_process_attributes): Fix use of
17669 uninitialized variables.
17670
176712008-08-23 Eli Zaretskii <eliz@gnu.org>
17672
17673 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17674
17675 * dispnew.c (init_display): Remove MS-DOS specific conditions for
17676 calling tty-set-up-initial-frame-faces.
17677
b8ff72fa
SM
17678 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17679 Allow MSDOS frames along with X frames.
aac0c6e3
MR
17680
17681 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17682 addition to output_termcap.
17683
17684 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17685
17686 * termchar.h (FRAME_TTY): Support output_msdos_raw.
17687 (struct tty_display_info) [MSDOS]: Add fields related to mouse
17688 highlight.
17689
17690 * process.c [!subprocesses]: Define QCname.
17691 (syms_of_process): Intern and staticpro it.
17692
17693 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
17694 Adjust for changes in encoding/decoding routines.
17695 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
17696 encode_coding and decode_coding.
17697
b8ff72fa 17698 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
17699
17700 * dosfns.c: Include frame.h before termhooks.h.
17701 (dos_cleanup): Use CURTTY ()->termscript instead of a global
17702 variable termscript.
17703
17704 * s/msdos.h (USER_FULL_NAME): Define.
17705 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
17706
17707 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
17708 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
17709 pw->pw_gecos.
17710
17711 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
17712 SELECTED_FRAME as additional (1st) argument.
17713 (tty_read_avail_input): Handle output_msdos_raw in
17714 addition to output_termcap.
17715
17716 * msdos.c: Include frame.h before termhooks.h.
17717 (mouse_on, mouse_off, mouse_moveto, mouse_init)
17718 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17719 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17720 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17721 (IT_set_terminal_modes, IT_reset_terminal_modes)
17722 (IT_set_frame_parameters): Use tty->termscript instead of a global
17723 variable termscript.
17724 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17725 global variable terminal_coding. Don't refer to
17726 Vnonascii_translation_table.
17727 (internal_terminal_init): Set Vwindow_system in current_kboard.
17728 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
17729 Announce date and time of session start, if termscript is open.
17730 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
17731 term.c:init_tty). Open termscript only of not already open.
17732 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
17733 here instead of dos_ttraw. Don't initialize display if this is an
17734 initial tty. Don't set FRAME_FONT.
17735 (Vwindow_system_version): Bump to 23.
17736 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
17737 is available, set up mouse_position_hook.
17738 (dos_ttraw, IT_set_terminal_modes): If called with initial
17739 terminal, do nothing.
17740 (IT_set_frame_parameters): Handle the Qtty_type frame
17741 parameter by calling internal_terminal_init.
17742 (dos_set_window_size, show_mouse_face)
17743 (clear_mouse_face, IT_note_mode_line_highlight)
17744 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
17745 (dos_rawgetc): Use tty_display_info instead of x_display_info.
17746 (initialize_msdos_display): New function.
17747 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
17748 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
17749 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
17750 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 17751 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
17752 (request_sigio, unrequest_sigio): Don't define, now defined on
17753 sysdep.c.
17754 (IT_write_glyphs): Rewrite to use encode_terminal_code.
17755
17756 * term.c [MSDOS]: Include msdos.h.
17757 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
17758 conditional to DOS_NT. Allow only one call to this function in a
17759 session. Don't allocate a new struct tty_display_info; instead,
17760 reuse the_only_display_info. Call get_tty_size to get screen
17761 dimensions. Call init_baud_rate to set bad_rate.
17762 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
17763 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 17764 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
17765 (get_tty_terminal, get_named_tty, Ftty_type)
17766 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
17767 output_termcap.
b8ff72fa
SM
17768 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
17769 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 17770 only when subprocesses are supported.
aac0c6e3
MR
17771
17772 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
17773 f->output_data.x.
17774 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
17775 terminal devices.
17776
5582fbc7 17777 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
17778 x_output.
17779 (FRAME_FONT): Use output_data.tty.
17780 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
17781 (struct x_display_info): Rename from display_info. Update all users in
17782 msdos.c.
aac0c6e3 17783 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 17784 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
17785 (dos_ttraw): Update prototype.
17786
17787 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
17788 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
17789
177902008-08-23 Jason Rumney <jasonr@gnu.org>
17791
17792 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
17793 (fn_TIFFSetDirectory): New library function used.
17794 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
17795 (tiff_load): Use :index to select among multiple images. Set count
17796 property when multiple images exist.
17797 (gif_format): Use :index, not :image.
17798
177992008-08-23 Chong Yidong <cyd@stupidchicken.com>
17800
17801 * xdisp.c (try_scrolling): Check INT_MAX instead of
17802 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
17803 to obtain INT_MAX.
17804
178052008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
17806
17807 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
17808
178092008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
17810
17811 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
17812 GNUstep library location.
17813
178142008-08-21 Chong Yidong <cyd@stupidchicken.com>
17815
17816 * xfaces.c (x_update_menu_appearance): Check validity of menu font
17817 before using it.
17818
17819 * puresize.h (BASE_PURESIZE): Increase to 1250000.
17820
178212008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17822
17823 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
17824 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
17825 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
17826 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
17827 (EmacsApp-cursor_blink_handler): Remove declaration.
17828 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
17829 match 01 Feb 2008 changes in xterm.c.
17830 (ns_read_socket): Add cast to avoid warning.
17831 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
17832 GNUstep.
17833
178342008-08-20 Chong Yidong <cyd@stupidchicken.com>
17835
17836 * xselect.c (x_get_foreign_selection): Return nil if desired
17837 selection could not be obtained, instead of signalling an error.
17838
178392008-08-20 David Reitter <david.reitter@gmail.com>
17840
17841 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
17842 * nsterm.m: Remove ns-specific code for cursor blinking.
17843 (ns_draw_window_cursor): Clear cursor properly rather than
17844 redrawing the area. Respect width of bar cursors.
17845 These changes enable the use of generic blink-cursor-mode and
17846 generic cursor types in NS and support smooth cursor movements (do
17847 not blink off after command).
17848 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
17849 Nextstep, too.
17850
178512008-08-19 Kenichi Handa <handa@m17n.org>
17852
17853 * font.c (Vfont_log_deferred): New variable.
17854 (font_add_log): Check Vfont_log_deferred.
17855 (font_deferred_log): New function.
17856
17857 * font.h (font_deferred_log): Extern it.
17858
17859 * fontset.c (reorder_font_vector): Use encoding charset of fonts
17860 for sorting.
17861 (face_for_char): Use deferred log.
17862
178632008-08-18 Kenichi Handa <handa@m17n.org>
17864
17865 * fontset.c (face_for_char): Add font log.
17866
17867 * font.c (font_add_log): Add the font properties :script, :lang,
17868 and :otf in the log.
17869
178702008-08-17 Chong Yidong <cyd@stupidchicken.com>
17871
17872 * xdisp.c: Remove dead code.
17873 (handle_invisible_prop, next_overlay_string): Defer call to
17874 setup_for_ellipsis.
17875 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
17876
178772008-08-15 Chong Yidong <cyd@stupidchicken.com>
17878
17879 * xfaces.c (lookup_derived_face): Properly handle possible zero
17880 return value of get_lface_attributes.
17881 (merge_faces): Don't tell lookup_derived_face to signal an error
17882 if face is not found.
17883
17884 * dired.c (Fdirectory_files): Doc fix.
17885
17886 * process.c (make_process): Initialize kill_without_query struct
17887 member.
17888
178892008-08-15 Eli Zaretskii <eliz@gnu.org>
17890
17891 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
17892 Alternative calculation of totphys for Visual Studio 6.
17893
17894 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
17895
17896 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
17897 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
17898 All users changed.
17899 (stat): Only root directory passed to GetDriveType. Allow RAM
17900 disk as well as local fixed disk when w32-get-true-file-attributes
17901 is set to `local'.
17902 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
17903 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
17904 (w32_cached_id, w32_add_to_cache): New functions.
17905 (get_name_and_id): Look account names in the cache before calling
17906 lookup_account_sid.
17907 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
17908 New initialization flags.
17909 (globals_of_w32): Initialize them to zero.
17910 (w32_system_process_attributes): Use w32_cached_id and
17911 w32_add_to_cache.
17912
179132008-08-14 Lawrence Mitchell <wence@gmx.li>
17914
17915 * lread.c (Fread_char, Fread_char_exclusive): If no character
17916 event is read before timeout is reached, return nil, rather than
17917 converting to a number.
17918
179192008-08-14 Chong Yidong <cyd@stupidchicken.com>
17920
17921 * fns.c (use_dialog_box): Doc fix.
17922
17923 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
17924 on OS X.
17925
179262008-08-13 Chong Yidong <cyd@stupidchicken.com>
17927
17928 * frame.c (Qns_parse_geometry): New var.
17929 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
17930
179312008-08-11 Chong Yidong <cyd@stupidchicken.com>
17932
17933 * xdisp.c (x_produce_glyphs): Handle the case when font has no
17934 space character in calculating tabs.
17935
179362008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
17937
17938 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
17939
179402008-08-10 Glenn Morris <rgm@gnu.org>
17941
17942 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
17943 silence gcc "limited range of data type" warnings in some
17944 make_fixnum_or_float calls.
17945
179462008-08-09 Eli Zaretskii <eliz@gnu.org>
17947
17948 * w32.c (w32_system_process_attributes): If the process does not
17949 exist, return nil.
17950
17951 * w32.c: Include thelp32.h, psapi.h and coding.h.
17952 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
17953 declarations.
17954 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
17955 (Process32Next_Proc): New typedefs.
17956 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
17957 (g_b_init_process32_next, g_b_init_open_thread_token)
17958 (g_b_init_impersonate_self, g_b_init_revert_to_self)
17959 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
17960 (g_b_init_get_process_working_set_size)
17961 (g_b_init_global_memory_status_ex): New static variables.
17962 (globals_of_w32): Initialize them.
17963 (create_toolhelp32_snapshot, process32_first, process32_next)
17964 (open_thread_token, impersonate_self, revert_to_self)
17965 (get_process_memory_info, get_process_working_set_size)
17966 (global_memory_status, global_memory_status_ex): New wrapper
17967 functions.
17968 (w32_list_system_processes, w32_system_process_attributes)
17969 (enable_privilege, restore_privilege, ltime, process_times):
17970 New functions.
17971 (convert_time_raw): New function.
17972 (convert_time): Remove conversion of FILETIME into time in 100
17973 nsec units, call convert_time_raw instead.
17974
17975 * process.h (w32_list_system_processes, w32_system_process_attributes):
17976 Add prototypes.
17977 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
17978 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
17979 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
17980 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
17981
17982 * process.c (Fsystem_process_attributes): Doc fix.
17983
179842008-08-08 Chong Yidong <cyd@stupidchicken.com>
17985
17986 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
17987 a continued multi-char glyph; if so, advance to the actual glyph.
17988
179892008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
17990
17991 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
17992
17993 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
17994 (.m.o): Use it.
17995 * config.in: Regenerate.
17996
179972008-08-07 Chong Yidong <cyd@stupidchicken.com>
17998
17999 * xdisp.c (redisplay_window): Revert last change.
18000 (try_window): Check bottom scroll margin too.
18001
180022008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
18003
18004 * config.in: Regenerate.
18005
18006 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
18007 -list-load-path-shadows'.
18008 (nsgui.h): Reduce number of things depending on it.
18009
180102008-08-06 Chong Yidong <cyd@stupidchicken.com>
18011
18012 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
18013 instead of window-end which does the wrong thing at eob.
18014 (try_cursor_movement): Minor optimization.
18015 (redisplay_window): If scroll margin is defined, don't assume
18016 window doesn't need scrolling.
18017
180182008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
18019
18020 * config.in: Regenerate.
18021
18022 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
18023 (mostlyclean): Don't delete *.d under NS.
18024
18025 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
18026
180272008-08-06 Kenichi Handa <handa@m17n.org>
18028
18029 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
18030
180312008-08-06 Andreas Schwab <schwab@suse.de>
18032
18033 * config.in: Regenerate.
18034
180352008-08-05 Chong Yidong <cyd@stupidchicken.com>
18036
18037 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
18038 forcing a window start.
18039
18040 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
18041 (auto_save_1): Update modtime when auto-save-list-file-name is on.
18042
180432008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18044
18045 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
18046 argument.
18047
180482008-08-05 Juanma Barranquero <lekktu@gmail.com>
18049
18050 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
18051 <scroll-down-aggressively, before-change-functions>:
18052 <after-change-functions>: Reflow docstrings.
18053
180542008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 18055 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
18056
18057 Dock menu customization, based on a patch by Ken Raeburn, plus some
18058 other fixes.
18059 * nsmenu.m (dockMenu): New variable.
18060 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
18061
18062 * nsterm.h (dockMenu): Declare.
18063
18064 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
18065 (ns_term_init): Initialize dockMenu.
18066 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
18067 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
18068 left.
18069
18070 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
18071
180722008-08-04 Chong Yidong <cyd@stupidchicken.com>
18073
18074 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
18075
18076 * config.in: Regenerate.
18077
180782008-08-04 Seiji Zenitani <zenitani@mac.com>
18079
18080 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
18081
180822008-08-04 Chong Yidong <cyd@stupidchicken.com>
18083
18084 * nsterm.h (find_and_call_menu_selection): Fix prototype.
18085
180862008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
18087
18088 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
18089
18090 * keyboard.h: Comment an #endif.
18091
18092 * lisp.h (have_menus_p): Adjust comment.
18093
18094 * menu.c (find_and_return_menu_selection): Fix comparison with
18095 client_data.
18096
18097 * nsmenu.m (popup_activated_flag): New variable.
18098 (popup_activated): New function.
18099 (menu-or-popup-active-p): New exported lisp definition.
18100 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
18101 when popup done.
18102 (ns_popup_dialog): Set popup_activated_flag.
18103
18104 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
18105 version for GNUstep (handled by conditional typedef in nsterm.m).
18106 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
18107 in rgb.txt).
18108
18109 * process.c (init_process): Use DARWIN_OS, not DARWIN.
18110
18111 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
18112
18113 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
18114
18115 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
18116 shortcircuit if popup_activated like GTK and X toolkit.
18117
18118 * m/inter386.h: Change DARWIN to DARWIN_OS.
18119
18120 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
18121 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
18122 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
18123 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
18124
181252008-08-03 Chong Yidong <cyd@stupidchicken.com>
18126
18127 * nsterm.m (windowDidResize): Remove stopModal call.
18128
181292008-08-03 Andreas Schwab <schwab@suse.de>
18130
18131 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
18132 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
18133
181342008-08-02 Chong Yidong <cyd@stupidchicken.com>
18135
18136 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
18137 Don't use uninitialized pointer variable when using getrlimit.
18138
181392008-08-02 Jason Rumney <jasonr@gnu.org>
18140
18141 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
18142
181432008-08-02 Eli Zaretskii <eliz@gnu.org>
18144
18145 * alloc.c (NSTATICS): Bump to 0x640.
18146
18147 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
18148
18149 * lisp.h: Add prototype for directory_files_internal.
18150
18151 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
18152 New functions.
18153 (syms_of_process): Defsubr them. Add initializations for various
18154 Q* symbols used in procfs_system_process_attributes.
18155 (procfs_list_system_processes, procfs_system_process_attributes)
18156 [HAVE_PROCFS]: New functions.
18157 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
18158 (procfs_get_total_memory): New functions.
18159
181602008-08-01 Juanma Barranquero <lekktu@gmail.com>
18161
18162 * xfaces.c (Fx_load_color_file): Fix previous change;
18163 it is #ifdef WINDOWSNT, not WINDOWS_NT.
18164
181652008-08-01 Michael Albinus <michael.albinus@gmx.de>
18166
18167 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
18168
181692008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18170
18171 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
18172
181732008-08-01 Chong Yidong <cyd@stupidchicken.com>
18174
18175 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
18176
18177 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
18178 define NSApplicationDelegateReplySuccess.
18179 (EmacsView -converstationIdentifier): Use long instead of
18180 NSInteger for GNUstep, since it doesn't have NSInteger.
18181
18182 * xmenu.c: Revert last change.
18183
18184 * keyboard.h: Fix last change.
18185
181862008-08-01 Juanma Barranquero <lekktu@gmail.com>
18187
18188 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
18189 on Windows.
18190
181912008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18192
18193 Warning clearing and clean-up in NS port.
18194 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
18195 Add prototypes.
18196 * nsgui.h (FACE_DEFAULT): Remove, unused.
18197 (XGCValues): Change colors to unsigned long.
18198 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
18199 nsterm.m.
18200 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
18201 (ns_list_fonts): Remove, unused.
18202 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
18203 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
18204 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
18205 (nsfont_draw): Compare face colors to 0, not nil.
18206 * nsmenu.m (struct widget_value): Drop unneeded declaration.
18207 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
18208 (-addSubmenuWithTitle:): Use NSMenuItem class.
18209 (ns_popup_menu): Use NO, not NULL, for enabled setting.
18210 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
18211 (ns_clip_to_row): Make gc arg a BOOL.
18212 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
18213 ns_clip_to_row() call.
18214 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
18215 used). Cast FRAME_FONT assignments.
18216 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
18217 (ns_string_to_lispmod): Change arg to const char.
18218 (ns_term_init): Use NSMenuItem class.
18219 (EmacsApp -openFile:): Move to different section of file.
18220 (EmacsApp -application:openFiles:): Don't return a value, call
18221 -replyToOpenOrPrint:.
18222 (EmacsView -keyDown:): Fix up cast.
18223 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
18224 (EmacsView -menuDown:): Cast tag in call to
18225 find_and_call_menu_selection().
18226 (ns_list_fonts): Remove, unused.
18227 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
18228 (ns_fontname_to_xlfd): Make static.
18229 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
18230 Remove prototypes (now in keyboard.h).
18231 (next_menubar_widget_id): Remove, unused.
18232 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
18233 Remove prototypes (now in keyboard.h).
18234 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
18235
182362008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
18237
18238 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
18239 (floatfns.o): Depend on syssignal.h.
18240 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
18241
18242 * systty.h: Fix previous change that removed BSD_TERMIOS.
18243 Add comments to #ifdefs.
18244
182452008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18246
18247 * w32fns.c (w32-load-color-file): Remove.
18248 (x-open-connection): Use renamed Fx_load_color_file.
18249 * xfaces.c (x-load-color-file): Add.
18250 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
18251 Emacs.clr.
18252 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
18253
182542008-07-31 Michael Albinus <michael.albinus@gmx.de>
18255
18256 * dbusbind.c (Fdbus_call_method_asynchronously)
18257 (Fdbus_method_error_internal): New defuns.
18258 (xd_read_message): Handle also reply messages.
18259 (Vdbus_registered_functions_table): Extend docstring.
18260
182612008-07-31 Juanma Barranquero <lekktu@gmail.com>
18262
18263 * keyboard.c (gobble_input): Fix previous change.
18264
182652008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18266
18267 * bitmaps/README:
18268 * xfns.c:
18269 * termcap.c:
18270 * term.c:
18271 * syswait.h:
18272 * systty.h:
18273 * systime.h:
18274 * syssignal.h:
18275 * sysdep.c:
18276 * process.h:
18277 * process.c:
18278 * print.c:
18279 * ndir.h:
18280 * lread.c:
18281 * keyboard.c:
18282 * getpagesize.h:
18283 * floatfns.c:
18284 * fileio.c:
18285 * emacs.c:
18286 * doc.c:
18287 * dispnew.c:
18288 * dired.c:
18289 * data.c:
18290 * callproc.c:
18291 * buffer.c:
18292 * README:
18293 * Makefile.in:
18294 * s/template.h:
18295 * s/msdos.h:
18296 * m/vax.h: Remove VMS support.
18297 * s/vms.h:
18298 * vlimit.h:
18299 * uaf.h:
18300 * temacs.opt:
18301 * param.h:
18302 * ioctl.h: Remove file.
18303
183042008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18305
18306 * s/ms-w32.h (MULTI_KBOARD): Remove.
18307 * xterm.c:
18308 * xselect.c:
18309 * xfns.c:
18310 * window.c:
18311 * w32term.c:
18312 * w32fns.c:
18313 * terminal.c:
18314 * termhooks.h:
18315 * term.c:
18316 * sysdep.c:
18317 * keyboard.h:
18318 * keyboard.c:
18319 * frame.h:
18320 * frame.c:
18321 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
18322 * config.in: Regenerate.
18323
183242008-07-30 Jason Rumney <jasonr@gnu.org>
18325
18326 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
18327
18328 * w32font.c (w32font_encode_char): Leave as unicode if in range.
18329 (w32font_open_internal): Get unicode version of textmetrics.
18330 Don't enable or disable glyph indices here.
18331 (w32font_open): Disable use of glyph indices.
18332
18333 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
18334
183352008-07-30 Chong Yidong <cyd@stupidchicken.com>
18336
18337 * minibuf.c (Vread_buffer_function): Doc fix.
18338
183392008-07-30 John Paul Wallington <jpw@pobox.com>
18340
18341 * minibuf.c (read_buffer_completion_ignore_case): New var.
18342 (Fread_buffer): Use it.
18343
183442008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
18345
18346 * systty.h (sensemode): Remove empty #if. Remove reference to
18347 BSD_TERMIOS, unused.
18348
18349 * sysdep.c: Remove reference to DGUX.
18350 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
18351
18352 * config.in: Regenerate.
18353
183542008-07-30 Jason Rumney <jasonr@gnu.org>
18355
18356 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
18357
183582008-07-29 Jason Rumney <jasonr@gnu.org>
18359
18360 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
18361 is populated.
18362 (uniscribe_encode_char): Always use uniscribe.
18363 Avoid using context if cache is populated.
18364
183652008-07-29 Jan Djärv <jan.h.d@swipnet.se>
18366
18367 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
18368 open menu.
18369
18370 * gtkutil.c (menu_nav_ended): Remove.
18371 (create_menus): Remove signal connect for menu_nav_ended.
18372
183732008-07-28 Chong Yidong <cyd@stupidchicken.com>
18374
18375 * xdisp.c (redisplay_window): Check return value of
18376 compute_window_start_on_continuation_line before forcing a window
18377 start.
18378
183792008-07-28 Jason Rumney <jasonr@gnu.org>
18380
18381 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
18382
18383 * w32term.c (w32_enable_unicode_output, cleartype_active):
18384 Remove obsolete display options.
18385 (x_draw_glyph_string_background): Don't use old cleartype_active
18386 workaround.
18387 (w32_initialize): Remove cleartype_active initialization.
18388 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
18389
183902008-07-28 Andreas Schwab <schwab@suse.de>
18391
18392 * lisp.h (init_weak_hash_tables, syms_of_font)
18393 (xd_read_queued_messages, syms_of_dbusbind): Declare.
18394 (remove_hash_entry): Don't declare.
18395 * eval.c (maybe_call_debugger): Make static and move before use.
18396 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
18397 * xdisp.c: Include "gtkutil.h" if USE_GTK.
18398 * xterm.h (x_set_frame_alpha): Declare.
18399
184002008-07-28 Jan Djärv <jan.h.d@swipnet.se>
18401
18402 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
18403 (create_menus): Connect selection-done to menu_nav_ended.
18404
184052008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18406
18407 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
18408 Set Vx_resource_name to a fallback. Replace read of 'buffered'
18409 parameter with read of 'alpha' one.
18410 (Qns_frame_parameter): Remove.
5582fbc7 18411 * nsselect.m (selection-coding-system)
aac0c6e3
MR
18412 (next-selection-coding-system, Vselection_coding_system)
18413 (Vnext_selection_coding_system): Drop.
18414
184152008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18416
18417 * nsfns.m (do-applescript, do_applescript): Rename to
18418 ns-do-applescript, ns_do_applescript, and move within file.
18419
184202008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
18421
18422 Remove support for Mac Carbon.
18423 * mactoolbox.c:
18424 * macterm.h:
18425 * macterm.c:
18426 * macselect.c:
18427 * macmenu.c:
18428 * macgui.h:
18429 * macfns.c:
18430 * mac.c: Remove file.
18431 * s/darwin.h:
18432 * m/intel386.h:
18433 * xfaces.c:
18434 * xdisp.c:
18435 * window.c:
18436 * tparam.c:
18437 * termhooks.h:
18438 * termcap.c:
18439 * term.c:
18440 * syssignal.h:
18441 * sysselect.h:
18442 * sysdep.c:
18443 * process.c:
18444 * lread.c:
18445 * lisp.h:
18446 * keyboard.c:
18447 * image.c:
18448 * fringe.c:
18449 * frame.h:
18450 * frame.c:
18451 * fontset.c:
18452 * font.h:
18453 * font.c:
18454 * fns.c:
18455 * fileio.c:
18456 * emacs.c:
18457 * dispnew.c:
18458 * dispextern.h:
18459 * config.in:
18460 * atimer.c:
2ae37cf0 18461 * Makefile.in: Remove code for Carbon.
aac0c6e3 18462
f0131492 184632008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
18464
18465 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
18466
184672008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18468
18469 * macterm.h (kCGBitmapByteOrder32Host): New define for
18470 non-universal SDKs.
18471
18472 * image.c (mac_create_cg_image_from_image, image_load_image_io)
18473 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18474
18475 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
18476 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18477
184782008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
18479
18480 * w32inevt.c: Include dispextern.h.
18481
184822008-07-26 Andreas Schwab <schwab@suse.de>
18483
18484 * print.c (print_object): Fix off-by-one in last change.
18485
184862008-07-25 Juanma Barranquero <lekktu@gmail.com>
18487
18488 * term.c (syms_of_term): Don't initialize default_orig_pair,
18489 default_set_foreground and default_set_background on Windows.
18490
184912008-07-25 Jason Rumney <jasonr@gnu.org>
18492
18493 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
18494 ScriptItemize. Clean up return value checking. Remove unused
18495 variables.
18496 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
18497 shaping engine.
18498
18499 * w32font.c (w32font_has_char): Handle the case where we can't
18500 determine the script for a character.
18501
185022008-07-25 Chong Yidong <cyd@stupidchicken.com>
18503
18504 * term.c (syms_of_term): Initialize default_orig_pair,
18505 default_set_foreground, and default_set_background.
18506
18507 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18508 clash (bug#86).
18509 (getloadavg): Callers changed.
18510
18511 * image.c (svg_load_image): Fix last change.
18512 (svg_load_image): Use rsvg_handle_get_dimensions to check that
18513 image size is valid. Use g_object_unref instead of deprecated
18514 rsvg_handle_free to free rsvg handle.
18515 (x_from_xcolors): Don't initialize pixmap (silence compiler).
18516
185172008-07-25 Jason Rumney <jasonr@gnu.org>
18518
18519 * w32font.c (w32font_encode_char): Encode characters outside BMP as
18520 surrogates before looking up glyph index.
18521 (w32font_text_extents): Encode as surrogates if falling back to
18522 functions that need UTF-16 wide chars.
18523
18524 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
18525 BMP as surrogates before looking up glyph index.
18526
185272008-07-25 Chong Yidong <cyd@stupidchicken.com>
18528
18529 * image.c (svg_load_image): Check for failure in return value of
18530 rsvg_handle_get_pixbuf. Free rsvg handle when done.
18531
185322008-07-25 Jason Rumney <jasonr@gnu.org>
18533
18534 * w32font.c (Fx_select_font): Reverse sense of second arg.
18535
185362008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
18537
18538 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
18539 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
18540
18541 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
18542 (PURESIZE): Use it.
18543
185442008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
18545
18546 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
18547 * m/alpha.h (TEXT_END):
18548 * m/ibmrs6000.h (TEXT_END):
18549 * m/macppc.h (TEXT_END):
18550 * s/darwin.h (TEXT_END):
18551 * s/msdos.h (TEXT_END): Remove, unused.
18552 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
18553 * s/cygwin.h: Remove comment.
18554
18555 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
18556 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
18557 * m/intel386.h (DOT_GLOBAL_START):
18558 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
18559 (USG): Remove, file not used on USG platforms.
18560
18561 * Makefile.in (HAVE_X11): Remove empty #else.
18562
185632008-07-24 Andreas Schwab <schwab@suse.de>
18564
18565 * fileio.c (Finsert_file_contents): Properly adjust undo list
18566 after format conversion.
18567
185682008-07-24 Jan Djärv <jan.h.d@swipnet.se>
18569
18570 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
18571 (menu_nav_ended): Remove.
18572 (create_menus): Remove signal connect for menu_nav_ended.
18573 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
18574 create_menus.
18575 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
18576
185772008-07-23 Jason Rumney <jasonr@gnu.org>
18578
18579 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
18580 with opened font.
18581 (w32font_open): Set font type to gdi.
18582
18583 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
18584
185852008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
18586
18587 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
18588 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
18589 defines it.
18590 * unexec.c (ADDR_CORRECT): Define unconditionally.
18591
18592 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
18593
18594 * unexec.c: Remove code depending on !COFF and USG, the file is
18595 not used for such systems.
18596
18597 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
18598 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18599 (LD_SWITCH_SYSTEM_1): Remove, update users.
18600
18601 * s/darwin.h (DATA_END):
18602 * m/intel386.h (DATA_END):
18603 * m/ibmrs6000.h (DATA_END):
18604 * m/alpha.h (DATA_END): Remove, unused.
18605
18606 * config.in: Regenerate.
18607 * s/ms-w32.h (subprocesses): Define unconditionally.
18608 * s/template.h (subprocesses): Update comment.
18609 * s/vms.h (subprocesses):
18610 * s/usg5-4.h (subprocesses):
18611 * s/hpux10-20.h (subprocesses):
18612 * s/gnu-linux.h (subprocesses):
18613 * s/cygwin.h (subprocesses):
18614 * s/bsd-common.h (subprocesses):
18615 * s/aix4-2.h (subprocesses):
18616 * s/darwin.h (subprocesses): Do not define, defined by default now.
18617
18618 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18619 Remove all references.
18620 (temacs): Add GNUstep specific ld flags.
18621
18622 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18623 similarly to what X does.
18624
186252008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18626
18627 * nsfns.m (x-list-fonts): Remove.
18628 (syms_of_nsfns): Drop the x-list-fonts declaration.
18629 * nsterm.m: Get rid of remaining "//" comments.
18630
186312008-07-22 Chong Yidong <cyd@stupidchicken.com>
18632
18633 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18634
18635 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18636 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18637 (Fns_own_selection_internal, Fx_disown_selection_internal)
18638 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18639
18640 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18641 ... */' style of docstrings. Doc fixes.
18642
186432008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18644
18645 * terminfo.c (UP, BC, PC): Undo previous change.
18646
18647 * nsfns.m: Rename ns prefixed functions/variables to the
18648 corresponding x versions. Update references.
18649
186502008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
18651
18652 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18653
186542008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18655
18656 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18657 Remove forwarding functions.
18658 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18659 non-static.
18660 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18661 non-static.
18662 (ns_frame_parm_handlers): Use the new names.
18663 (syms_of_nsfns): Move to the end of file.
18664
18665 * nsterm.m (syms_of_nsterm): Move to the end of file.
18666
18667 * dispnew.c (init_display): Remove code for X10.
18668
186692008-07-22 Jason Rumney <jasonr@gnu.org>
18670
18671 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18672 bare drive.
18673
186742008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18675
18676 * nsterm.m (syms_of_nsterm): Remove debugging println.
18677
186782008-07-22 David Reitter <david.reitter@gmail.com>
18679
18680 * nsfns.m (do_applescript, F_do_applescript): NS version of the
18681 Carbon implementation of the same functionality: execute arbitrary
18682 AppleScript code.
18683
186842008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
18685
18686 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18687 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18688 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18689 (Fx_display_mm_height, Fx_display_mm_width)
18690 (Fx_display_backing_store, Fx_display_visual_class)
18691 (Fx_display_save_under, Fx_open_connection)
18692 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18693 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18694 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18695 (Fx_display_pixel_width, Fx_display_pixel_height)
18696 (Fx_display_usable_bounds, Fx_display_planes)
18697 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18698 ... */' style of docstrings.
18699
187002008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
18701
18702 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
18703 on this platform.
18704 (mips):
18705 * m/iris4d.h (mips): Do not define.
18706 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
18707
18708 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
18709
18710 * image.c:
18711 * nsfns.m:
18712 * nsselect.m:
18713 * nsterm.h:
18714 * nsterm.m: Rename ns prefixed functions/variables to the
18715 corresponding x versions. Update references.
18716
18717 * m/ibms390x.h (NO_REMAP): Do not undefine.
18718
18719 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18720
187212008-07-21 Chong Yidong <cyd@stupidchicken.com>
18722
18723 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18724 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18725 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18726 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18727 (Fns_display_mm_height, Fns_display_mm_width)
18728 (Fns_display_backing_store, Fns_display_visual_class)
18729 (Fns_display_save_under, Fns_open_connection)
18730 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18731 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18732 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18733 (Fns_display_pixel_width, Fns_display_pixel_height)
18734 (Fns_display_usable_bounds, Fx_display_planes)
18735 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18736
187372008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18738
18739 * print.c (print_object): Check print_depth before searching for
18740 circularities.
18741
187422008-07-21 Michael Albinus <michael.albinus@gmx.de>
18743
18744 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
18745 only sprintf.
18746
187472008-07-21 Kenichi Handa <handa@m17n.org>
18748
18749 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
18750
187512008-07-20 Andreas Schwab <schwab@suse.de>
18752
18753 * syntax.c (find_start_pos, find_start_value)
18754 (find_start_value_byte, find_start_begv, find_defun_start)
18755 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
18756
187572008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18758
18759 * s/sol2-3.h: Insert contents of s/sol2.h.
18760 (LD_SWITCH_SYSTEM): Remove redundant definition.
18761 * s/sol2.h: Remove, unused.
18762
187632008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18764
18765 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
18766
187672008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18768
18769 * Makefile.in (ns_appdir): Fix typo in find command.
18770
187712008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18772
18773 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
18774
18775 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
18776 added not supported anymore.
18777
18778 * s/usg5-4-2.h (LIBS_SYSTEM):
18779 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
18780
18781 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18782 * s/lynxos.h (GETPGRP_NO_ARG):
18783 * s/hpux10-20.h (NO_SIOCTL_H):
18784 * s/gnu.h (GETPGRP_NO_ARG):
18785 * s/gnu-linux.h (NO_SIOCTL_H):
18786 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18787 * s/cygwin.h (GETPGRP_NO_ARG):
18788 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
18789 (C_DEBUG_SWITCH): Remove duplicate definition.
18790
18791 * m/ibms390.h: Remove boilerplate comments.
18792
18793 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
18794
18795 * process.c (HAVE_SERIAL): Consolidate ifdefs.
18796 (wait_reading_process_output): Remove code for SunOS, platform not
18797 supported anymore. Use SOLARIS2 instead of sun.
18798
187992008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18800
18801 * font.c (font_open_by_name): Under NS, default lface height to zero.
18802 (font_open_for_lface): Under NS, set size based on frame fontsize.
18803 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
18804 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
18805
188062008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18807
18808 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
18809 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
18810 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
18811 YES/NO.
18812 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
18813 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
18814 * Makefile.in (clean): Clear out build destination dir.
18815
188162008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18817
18818 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
18819 xterm, xselect.
18820 * lisp.h: Remove declaration of hash_remove.
18821 * nsgui.h: Remove redefinitions of hash_remove.
18822 * fns.c (hash_remove): Rename to hash_remove_from_table.
18823
188242008-07-19 Seiji Zenitani <zenitani@mac.com>
18825
18826 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
18827 strdup() the family UTF8String before modifying it.
18828
188292008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18830
18831 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
18832 NS_FACE_BACKGROUND with 0 instead of nil.
18833 * nsfont.m (nsfont_draw): Same.
18834
188352008-07-19 Chong Yidong <cyd@stupidchicken.com>
18836
18837 * nsfns.m (ns_set_background_color): Fix crash.
18838
188392008-07-18 Chong Yidong <cyd@stupidchicken.com>
18840
18841 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
18842
188432008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
18844
18845 * puresize.h (BASE_PURESIZE): Increase to 1240000.
18846
188472008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18848
18849 * gtkutil.c: Include <config.h> instead of "config.h".
18850
18851 * lisp.h (Foverlay_buffer): Add EXFUN.
18852
18853 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
18854 child process to complete child_setup. Undo 2005-09-21 change.
18855
18856 * s/darwin.h: Mention setsid after vfork.
18857
188582008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18859
18860 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
18861 Depend on macgui.h.
18862
18863 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
18864 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
18865
18866 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
18867 and f19.
18868 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
18869
18870 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
18871 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
18872 Remove enumerators.
18873
18874 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
18875 Check if FACE_FROM_ID returns NULL.
18876
188772008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
18878
18879 * w32inevt.c (change_frame_size): Remove extern declaration.
18880 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
18881 change_frame_size.
18882
188832008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18884
18885 * getloadavg.c: Revert last change (2008-07-15).
18886
188872008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18888
18889 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 18890 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
18891 from configure.
18892
188932008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
18894
18895 * s/sol2.h:
18896 * s/sol2-4.h: Reorganize conditionals.
18897
18898 * ecrt0.c: Remove code depending on m68000, not used anymore.
18899
18900 * fns.c (hash_remove): Make static.
18901 * lisp.h (hash_remove): Don't prototype.
18902
18903 * m/ibmrs6000.h:
18904 * m/ibms390x.h:
18905 * m/macppc.h: Remove boilerplate comments.
18906
18907 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
18908 Solaris, which does not need them.
18909
18910 * m/vax.h: Remove comments about unsupported systems.
18911
18912 * s/darwin.h: Reorganize ifdefs.
18913
189142008-07-17 Andreas Schwab <schwab@suse.de>
18915
18916 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
18917
189182008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18919
18920 Use SDATA. Follow coding convention of placing operators at
18921 beginning of next line rather than end of previous line, and placing
18922 spaces around infix operators.
18923
18924 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
18925 in case it was defined already.
18926 USE @GNUSTEP_MAKEFILES@ rather than envvars.
18927 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
18928 ns_default.
18929 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
18930 Lisp_Objects.
18931 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
18932 (ns_defined_color, ns_color_to_lisp): Declare.
18933 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
18934 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
18935 it's accepted even with USE_LISP_UNION_TYPE.
18936 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
18937 (update_frame_tool_bar): Remove apparently obsolete tests for
18938 non-integerness of f->tool_bar_lines.
18939 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
18940 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
18941 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
18942 (nsfont_open): Don't confuse NULL for Qnil.
18943 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
18944 * menu.h (find_and_call_menu_selection):
18945 * menu.c (find_and_call_menu_selection): Use just int for vector size.
18946 (find_and_return_menu_selection): Always return something.
18947 * frame.h: Include dispextern.h for Display_Info.
18948 (display_x_get_resource): Declare.
18949
189502008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
18951
18952 * syntax.c: Remove stdio.h include accidentally introduced in
18953 Emacs.app commit.
18954 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
18955 NS_IMPL_COCOA.
18956 * keyboard.c (handle_async_input, input_available_signal): Remove
18957 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
18958
189592008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18960
18961 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
18962 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
18963 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
18964 Use SDATA.
18965
18966 * keymap.c: Remove all NS-specific code.
18967 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
18968 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
18969 where_is_preferred_modifier, return a different value depending on how
18970 preferred is the binding.
18971 (where_is_internal): Adjust accordingly.
18972 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
18973 Adjust to new preferred_sequence_p.
18974 (syms_of_keymap): Declare `where-is-preferred-modifier'.
18975 * keyboard.c (parse_solitary_modifier): Not static any more.
18976 * keyboard.h (parse_solitary_modifier): Declare.
18977
189782008-07-16 Andreas Schwab <schwab@suse.de>
18979
18980 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
18981 of easymenu.
18982
189832008-07-16 Chong Yidong <cyd@stupidchicken.com>
18984
18985 * xdisp.c (move_it_in_display_line): Account for word wrap, so
18986 that we don't move off the line.
18987
189882008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18989
18990 * keyboard.c (Qsuper): Remove.
18991 (parse_menu_item): Don't call where_is_internal specially for NS.
18992
189932008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18994
18995 * s/gnu-linux.h: Remove boilerplate comments.
18996
18997 * m/alpha.h (__ELF__): Consolidate conditions.
18998
18999 * m/m68k.h (linux): Use GNU_LINUX instead.
19000 Remove boilerplate comments.
19001
19002 * m/intel386.h: Undo refactoring from previous change.
19003 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
19004 too, remove dead code.
19005 (linux): Use GNU_LINUX instead.
19006
190072008-07-16 Jason Rumney <jasonr@gnu.org>
19008
19009 * w32gui.h: Repeat 26 June changes lost by last change.
19010
190112008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
19012
19013 * systty.h: Remove code for Aix on 386, unsupported platform.
19014
19015 * s/ms-w32.h: Remove boilerplate comments.
19016 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
19017
19018 * s/gnu-linux.h (TERM): Remove support.
19019 (HAVE_SYSVIPC): Remove, unused.
19020 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
19021 for this system.
19022
19023 * process.c: Remove support for IRIS, unused.
19024 Remove support for TERM, not relevant anymore.
19025
19026 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
19027 used with the definition.
19028
19029 * s/aix4-2.h (static): Do not undef.
19030
19031 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
19032 only used on Aix.
19033 (HAVE_SYSVIPC): Remove, unused.
19034
19035 * m/hp800.h (CANNOT_DUMP): Do not undef.
19036
19037 * m/alpha.h: Fix comment.
19038
19039 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
19040 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
19041 used by this configuration.
19042 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
19043 * unexec.c: Remove code depending on HPUX and
19044 USG_SHARED_LIBRARIES, not used with this file. Remove code
19045 depending on IRIS, unused. Remove if 0-ed code.
19046
19047 * s/template.h: Remove comments about static.
19048
19049 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
19050 Remove if 0-ed code.
19051 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
19052 were the same as the default.
19053 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
19054 Remove boilerplate comments.
19055 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
19056 (HAVE_SYSVIPC): Remove, unused.
19057 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
19058
19059 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19060 Remove boilerplate comments.
19061 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19062 Remove boilerplate comments.
19063 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
19064 Remove boilerplate comments.
19065 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
19066
19067 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
19068 USG systems which do not use DATA_SEG_BITS.
19069 Refactor code. Remove boilerplate comments.
19070
19071 * m/ibms390.h:
19072 * m/m68k.h:
19073 * s/bsd-common.h:
19074 * s/cygwin.h:
19075 * s/darwin.h:
19076 * s/freebsd.h:
19077 * s/gnu.h:
19078 * s/msdos.h: Remove boilerplate comments.
19079
19080 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 19081 do not use this file.
aac0c6e3
MR
19082 (IRIS_4D): Remove, unused.
19083
19084 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 19085 do not use this file.
aac0c6e3
MR
19086 (SIGN_EXTEND_CHAR):
19087 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
19088 * unexmips.c: Remove file, unused.
19089
19090 * editfns.c (Fuser_full_name): Replace the only use of
19091 USER_FULL_NAME with its value.
19092 * config.in: Regenerate.
19093
190942008-07-16 David Reitter <david.reitter@gmail.com>
19095
19096 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
19097 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
19098
190992008-07-16 Glenn Morris <rgm@gnu.org>
19100
19101 * emacs.c (system-type): Doc fix.
19102
191032008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
19104
19105 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
19106 If the cache doesn't work, let's fix it, rather than work around it.
19107
191082008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19109
19110 * Makefile.in: Correct additions for nsfont.o in last commit.
19111 * nsfont.m: New file (forgot last commit).
19112
191132008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
19114
bba3e508
SM
19115 * callproc.c (set_initial_environment):
19116 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
19117 batch-compiling for bootstrap).
19118
191192008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 19120 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 19121
c4cc8b9a
JB
19122 * frame.c (make_initial_frame): Call init_frame_faces(f) in
19123 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
19124
191252008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19126
19127 Changes and additions for NeXTstep windowing system (Cocoa and
19128 GNUstep) support.
19129
19130 * Makefile.in:
19131 * config.in: Support defines and build commands for NS port.
19132 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
19133 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
19134 * dispextern.h: Include nsgui.h and add needed typedefs under NS
19135 windowing.
19136 (struct face): Add synth_ital field.
19137 * dispnew.c: Include nsterm.h when compiling under NS windowing.
19138 (init_display): Initialize Vinitial_window_system to "ns" when so
19139 compiled.
19140 * emacs.c: Include GSConfig.h when compiling under GNUstep.
19141 (display_arg): Use under NS.
19142 (main): Under NS, allocate autorelease pool and handle command line
19143 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
19144 (standard_args): Add NS-specific args.
19145 (shut_down_emacs): Shut down NS terminal if compiled under NS.
19146 * font.c (DEFAULT_ENCODING): New variable.
19147 (font_find_for_lface): Use it.
19148 (syms_of_font): Load syms_of_nsfont under NS.
19149 * font.h: Declare nsfont_driver when compiled under NS.
19150 * fontset.c: When compiling under NS, include nsterm.h.
19151 (fontset_from_font): Autoconstruct fontset under NS.
19152 * frame.c (various): Under NS, include nsterm.h, add Qns window system
19153 symbol, document and use it.
19154 (do_switch_frame): When for_deletion under Cocoa, add
19155 Fraise_frame(Qnil).
19156 (x_set_frame_parameters): Ensure font attribute changes are picked up.
19157 (x_get_arg): Allow "yes" and "no" as boolean values.
19158 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
19159 Qright under Cocoa.
19160 (focus-follows-mouse): Default to 0 under NS.
19161 * frame.h (enum output_method): Add output_ns.
19162 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
19163 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
19164 (FRAME_WINDOW_P): NS-specific definition.
19165 * fringe.c (max_used_fringe_bitmap): Make public.
19166 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
19167 (getloadavg): Use NeXT code under descendant OS's.
19168 * image.c (includes and header section, x_create_bitmap_from_data)
19169 (x_create_bitmap_from_file, free_bitmap_record, image_background)
19170 (image_background_transparent, x_clear_image_1)
19171 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
19172 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
19173 (x_to_xcolors, x_from_xcolors, x_disable_image)
19174 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
19175 other GUIs, including XPM support using code originally written for
19176 Carbon GUI.
19177 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
19178 using NS API.
19179 (image_ascent): Use font metrics macros instead of direct struct field
19180 access.
19181 * keyboard.c (includes): Add nsterm.h when compiling under NS.
19182 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
19183 Also, handle NS as GTK for menu bar purposes.
19184 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
19185 toolkit where they differ.
19186 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
19187 use cachelist, still needed under NS.
19188 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
19189 (struct widget_value): Define it here for menu.c.
19190 * keymap.c (includes): Include modifier internals.
19191 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
19192 NS.
19193 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
19194 support for preferring sequences using certain modifiers, specified by
19195 the FIRSTONLY argument.
19196 * lisp.h (hash_remove): Rename to avoid name clash when compiling
19197 under NS GNUstep implementation.
19198 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
19199 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
19200 * menu.c: Include nsterm.h under NS.
19201 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
19202 (free_menubar_widget_tree_value, update_submenu_strings)
19203 (find_and_call_menu_selection): Treat NS as X and NT.
19204 (find_and_return_menu_selection): New function, used for popup menus.
19205 * nsgui.h:
19206 * nsterm.h:
19207 * nsfns.m:
19208 * nsimage.m:
19209 * nsmenu.m:
19210 * nsselect.m:
19211 * nsterm.m: New files.
19212 * process.c (wait_reading_process_output): Under NS, call ns_select()
19213 instead of plain select().
19214 * syntax.c (char_quoted): Under NS, avoid a crash when called near
19215 beginning of buffer.
19216 * sysselect.h (init_process): Rename when compiling under Cocoa to
19217 avoid name conflict.
19218 * termhooks.h (display_info): Add ns_display_info to union.
19219 * terminal.c (Fterminal_live_p): Add ns to terminal types.
19220 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
19221 COCOA environment.
19222 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
19223 unexec() signature. (Note, this will dump, but the resulting file
19224 crashes; unexosx is used instead; keeping around for reference and
19225 possible aid in getting dump working under GNUstep.)
19226 * w32gui.h (button_type, widget_value): Remove definitions (now in
19227 keyboard.h).
19228 * window.c: Include nsterm.h when compiling under NS.
19229 * xdisp.c (includes): Include nsterm.h when compiling under NS.
19230 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
19231 other GUI windowing systems.
19232 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
19233 GTK.
19234 (x_consider_frame_title): Under NS, set icon type and frame
19235 modified-state indicator; use ns_set_name_as_filename() when using
19236 formatted title.
19237 (update_window_cursor): Make public when compiling under NS.
19238 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
19239 (hourglass_atimer, Vhourglass_delay
19240 * xfaces.c (header section, init_frame_faces, clear_font_table)
19241 (defined_color, unload_color, x_face_list_fonts)
19242 (prepare_face_for_display): Add NS support parallel to other GUIs.
19243 Emulate GCs like other non-X GUIs.
19244 (split_font_name): Don't lowercase font name under NS.
19245 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
19246 under NS.
19247 * s/darwin.h: Add support for compilation under NS.
19248
192492008-07-15 Jason Rumney <jasonr@gnu.org>
19250
19251 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
19252 (w32_show_hourglass): Rename from show_hourglass.
19253 (w32_hide_hourglass): Rename from hide_hourglass.
19254 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
19255 (Vhourglass_delay): Declare extern.
19256 (hourglass_started): Remove.
19257
19258 * xdisp.c (Vhourglass_delay): Remove static.
19259 (hourglass_started, start_hourglass, cancel_hourglass):
19260 Don't include these versions on WINDOWSNT.
19261
192622008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19263
19264 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
19265 variables (formerly in xfns.c).
19266 (show_hourglass, hide_hourglass): New prototypes (same).
19267 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
19268 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
19269 in xfns.c).
19270 (syms_of_xdisp): Declare/initialize display-hourglass,
19271 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
19272 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
19273 formerly in xfns.c.
19274 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19275 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19276 (start_hourglass, cancel_hourglass): Remove.
19277 (show_hourglass, hide_hourglass): Remove prototypes and static
19278 modifiers.
19279 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
19280 hourglass_atimer, hourglass_shown_p declaration/initialization.
19281 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19282 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19283 (start_hourglass, cancel_hourglass): Remove.
19284 (show_hourglass, hide_hourglass): Remove prototypes and static
19285 modifiers.
19286 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
19287 hourglass_atimer, hourglass_shown_p declaration/initialization.
19288 * w32fns.c (display_hourglass_p, Vhourglass_delay)
19289 (DEFAULT_HOURGLASS_DELAY): Remove.
19290 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
19291 hourglass_shown_p declaration/initialization.
19292
192932008-07-14 Jason Rumney <jasonr@gnu.org>
19294
19295 * w32fns.c (w32_get_arg): Remove wrapper function.
19296 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
19297 directly.
19298 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
19299
193002008-07-14 Kenichi Handa <handa@m17n.org>
19301
19302 * xfont.c (xfont_open): Add workaround for X's bug.
19303
193042008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19305
19306 * fontset.c: Include <stdio.h> unconditionally.
19307
193082008-07-13 Michael Albinus <michael.albinus@gmx.de>
19309
19310 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
19311 for filtering.
19312
193132008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
19314
19315 * s/vms.h: Use __GNUC__ instead of _GNUC_.
19316
19317 * m/macppc.h:
19318 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
19319
c4cc8b9a 19320 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
19321 (SPECIAL_EMACS_INT):
19322 * m/ia64.h (SPECIAL_EMACS_INT):
19323 * m/amdx86-64.h (SPECIAL_EMACS_INT):
19324 * s/gnu.h (NLIST_STRUCT):
19325 * s/aix4-2.h (X11R5_INHIBIT_I18N):
19326 * s/gnu-linux.h (LINUX):
19327 * s/msdos.h (HAVE_FACES):
19328 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
19329
19330 * systty.h:
19331 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
19332 anymore.
19333
193342008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
19335
19336 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
19337 always defined as int.
19338
19339 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
19340 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
19341 * s/gnu-linux.h (HAVE_WAIT_HEADER):
19342 * s/freebsd.h (HAVE_WAIT_HEADER):
19343 * s/bsd-common.h (HAVE_UNION_WAIT):
19344 * s/aix4-2.h (HAVE_WAIT_HEADER):
19345 * m/mips.h (HAVE_UNION_WAIT):
19346 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
19347 (COFF, static): Do not define, they are undefined later in the file.
19348
19349 * process.c (update_status): Don't use a union.
19350 (status_convert):
19351 (sigchld_handler): Use int instead of WAITTYPE.
19352
193532008-07-12 Chong Yidong <cyd@stupidchicken.com>
19354
19355 * indent.c (Fvertical_motion): Restore hscroll before moving to
19356 goal column.
19357
193582008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19359
19360 * lisp.h: Remove left over code.
19361
193622008-07-11 Andreas Schwab <schwab@suse.de>
19363
19364 * lisp.h: Fix logic in last change.
19365
19366 * menu.h: New file.
19367 * menu.c: Include it.
19368 * xmenu.c: Likewise.
19369 * Makefile.in: Update dependencies.
19370
193712008-07-11 Kenichi Handa <handa@m17n.org>
19372
19373 * fontset.c (fontset_from_font): Cancel the previous change.
19374
193752008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19376
19377 * lisp.h:
19378 * w32heap.c:
19379 * emacs.c:
19380 * alloc.c: Replace all references of NO_UNION_TYPE with
19381 USE_LISP_UNION_TYPE.
19382
19383 * m/xtensa.h (NO_UNION_TYPE):
19384 * m/vax.h (NO_UNION_TYPE):
19385 * m/template.h (NO_UNION_TYPE):
19386 * m/sparc.h (NO_UNION_TYPE):
19387 * m/mips.h (NO_UNION_TYPE):
19388 * m/macppc.h (NO_UNION_TYPE):
19389 * m/m68k.h (NO_UNION_TYPE):
19390 * m/iris4d.h (NO_UNION_TYPE):
19391 * m/intel386.h (NO_UNION_TYPE):
19392 * m/ibms390x.h (NO_UNION_TYPE):
19393 * m/ibms390.h (NO_UNION_TYPE):
19394 * m/ibmrs6000.h (NO_UNION_TYPE):
19395 * m/ia64.h (NO_UNION_TYPE):
19396 * m/hp800.h (NO_UNION_TYPE):
19397 * m/arm.h (NO_UNION_TYPE):
19398 * m/amdx86-64.h (NO_UNION_TYPE):
19399 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
19400 defining it the same.
19401
194022008-07-10 Chong Yidong <cyd@stupidchicken.com>
19403
19404 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
19405
194062008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19407
19408 * fileio.c:
50426a04 19409 * sysdep.c:
aac0c6e3
MR
19410 * systty.h:
19411 * m/ibmrs6000.h:
19412 * m/iris4d.h:
19413 * s/aix4-2.h:
19414 * s/freebsd.h:
19415 * s/gnu-linux.h:
19416 * s/hpux10-20.h:
19417 * s/hpux11.h:
19418 * s/netbsd.h:
19419 * s/sol2-3.h:
19420 * s/sol2-4.h:
19421 * s/sol2.h:
19422 * s/usg5-4.h:
19423 * s/vms.h: Remove references to unused variables.
19424
194252008-07-10 Andreas Schwab <schwab@suse.de>
19426
19427 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
19428 pattern before matching the generic family.
19429
194302008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19431
19432 * unexec.c:
19433 * s/vms.h:
19434 * s/usg5-4-2.h:
19435 * s/sol2-5.h:
19436 * s/freebsd.h:
19437 * s/darwin.h: Remove dead code.
19438
19439 * m/template.h:
19440 * m/sparc.h:
19441 * m/mips.h:
19442 * m/m68k.h:
19443 * m/iris4d.h:
19444 * m/intel386.h:
19445 * m/ibms390x.h:
19446 * m/ibms390.h:
19447 * m/ia64.h:
19448 * m/hp800.h:
19449 * m/arm.h:
19450 * m/amdx86-64.h: Remove dead code and references to unused
19451 and compiler defined symbols.
19452
19453 * unexmips.c:
19454 * unexelf.c: Remove references to desupported systems.
19455
19456 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
19457
19458 * m/powermac.h: Remove boilerplate comments.
19459 (NO_REMAP): Remove unused definition.
19460
19461 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
19462 define them.
19463
194642008-07-10 Kenichi Handa <handa@m17n.org>
19465
19466 * xfont.c (xfont_open): Log the reason of failure.
19467
194682008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
19469
19470 * fontset.c (fontset_get_font_group):
19471 * font.c (font_check_otf): Specify argument types.
19472
194732008-07-09 Kenichi Handa <handa@m17n.org>
19474
19475 * coding.c (detect_coding_utf_8): Set detect_info->found only when
19476 non-ASCII char is found.
19477
19478 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
19479 (reorder_font_vector): Change the arg preferred_family to font.
19480 Prefer the spec matching with font.
19481 (fontset_get_font_group): New function.
19482 (fontset_find_font): Change the format of an element of a realized
19483 fontset. Use fontset_get_font_group.
19484 (fontset_font): Try the current fontset, the default fontset, the
19485 fallbacks of the current fontset, and the fallbacks of the default
19486 fontset in this order.
19487 (face_for_char): Delete the shortcut to use the current font.
19488 (fontset_from_font): Don't set fonts for Latin in the fontset.
19489
19490 * font.h (font_make_object, font_match_p): Adjust prototypes.
19491
19492 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
19493
19494 * font.c (font_make_object): New arg entity and pixelsize.
19495 (font_check_otf_features, font_check_otf): New functions.
19496 (font_match_p): Check :lang, :script, and :otf properties.
19497
19498 * xfont.c (xfont_open): Adjust it for the change of
19499 font_make_object.
19500 (xfont_text_extents): Fix initial setting of metrics.
19501
19502 * ftfont.c (struct ftfont_info): New member index, delete member
19503 fc_charset_idx. Make the member order compatible with struct
19504 xftfont_info.
19505 (fc_charset_table): Change charset names to registry names.
19506 (ftfont_pattern_entity): Delete the args registry and
19507 fc_charset_idx. Change the value of :font-entity property
19508 to (FONTNAME . INDEX). Always set :registry property to
19509 `iso10646-1'.
19510 (struct ftfont_cache_data): New struct.
19511 (ftfont_lookup_cache): New arg for_face.
19512 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
19513 (ftfont_driver): Set the member otf_capability.
19514 (ftfont_get_charset): Adjust it for the change of
19515 fc_charset_table.
19516 (OTF_TAG_SYM): New macro.
19517 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
19518 for the change of fc_charset_table.
19519 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
19520 ftfont_pattern_entity. Add FC_INDEX to objset.
19521 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
19522 and ftfont_pattern_entity.
19523 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
19524 font_make_object, struct ftfont_info.
19525 (ftfont_has_char): Use ftfont_get_fc_charset.
19526 (ftfont_otf_features, ftfont_otf_capability): New functions.
19527 (ftfont_shape): Use ftfont_get_otf.
19528 (ftfont_text_extents): Fix initial setting of metrics.
19529
19530 * xftfont.c (struct xftfont_info): New member ft_size. Make the
19531 member order compatible with struct ftfont_info.
bba3e508
SM
19532 (xftfont_open): Add FC_CHARSET to the pattern.
19533 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
19534 properties if appropriate.
19535 (xftfont_close): Unlock the face.
19536 (xftfont_anchor_point, xftfont_shape): Deleted.
19537 (syms_of_xftfont): Don't set members anchor_point and shape of
19538 xftfont_driver.
19539
19540 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
19541 font_make_object.
19542
19543 * w32font.c (w32font_open): Adjust it for the change of
19544 font_make_object.
19545 (w32font_open_internal): Don't set properties of font_object here.
19546
195472008-07-08 Chong Yidong <cyd@stupidchicken.com>
19548
19549 * macfns.c (x_create_tip_frame):
19550 * w32fns.c (x_create_tip_frame):
19551 * xfns.c (x_create_tip_frame): Pass parameter argument to
19552 face-set-after-frame-default.
19553
19554 * xfaces.c (Finternal_merge_in_global_face): Save merged
19555 attributes for the default face back into the face vector.
19556
195572008-07-08 Andreas Schwab <schwab@suse.de>
19558
19559 * fontset.h: Declare fontset_from_font. Don't declare
19560 new_fontset_from_font and fontset_from_font_name.
19561 * xterm.c: Include "fontset.h".
19562 * Makefile.in (xterm.o): Update dependencies.
19563
195642008-07-08 Glenn Morris <rgm@gnu.org>
19565
19566 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
19567 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
19568
195692008-07-07 Chong Yidong <cyd@stupidchicken.com>
19570
19571 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
19572 (x_set_frame_parameters): Don't bind it.
19573
195742008-07-07 Juanma Barranquero <lekktu@gmail.com>
19575
19576 * w32fns.c (map_w32_filename): Declare extern.
19577
195782008-07-07 Jason Rumney <jasonr@gnu.org>
19579
19580 * w32term.c (WS_EX_LAYERED): Define if not already.
19581
195822008-07-06 Chong Yidong <cyd@stupidchicken.com>
19583
19584 * xfaces.c (set_font_frame_param): Don't try to set the font
19585 parameter if it is still unspecified in the lface.
19586
195872008-07-05 Chong Yidong <cyd@stupidchicken.com>
19588
19589 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
19590 face if it didn't already exist.
19591
19592 * xdisp.c (try_window_id): Give up if word-wrapping is on.
19593
195942008-07-05 Andreas Schwab <schwab@suse.de>
19595
19596 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
19597
195982008-07-05 Chong Yidong <cyd@stupidchicken.com>
19599
19600 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19601 word-wrapping.
19602 (IT_DISPLAYING_WHITESPACE): New macro.
19603 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19604 when word-wrapping. Simplify word-wrapping logic. Use correct
19605 pixel positions when saving copies of the iterator.
19606 (display_line): Use proper wrap point if the last character on a
19607 line was preceded by whitespace.
19608
196092008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
19610
19611 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19612
196132008-07-04 Kenichi Handa <handa@m17n.org>
19614
19615 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19616
19617 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19618
196192008-07-02 Jason Rumney <jasonr@gnu.org>
19620
19621 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 19622 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
19623
19624 * xdisp.c (next_element_from_display_vector): Move assignment out
19625 of if statement.
19626
196272008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
19628
19629 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19630
19631 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19632 (syms_of_fileio): Initialize and export them.
19633 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19634
19635 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19636 (Fsystem_move_file_to_trash): New function.
19637 (syms_of_w32fns): Export it to lisp.
19638
196392008-07-01 Jason Rumney <jasonr@gnu.org>
19640
19641 * w32font.c (w32font_text_extents): Don't count overhang as part
19642 of width.
19643
196442008-06-30 Miles Bader <miles@gnu.org>
19645
19646 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19647 Add `avoid_cursor_p' field.
19648
19649 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19650 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19651 (append_glyph, append_composite_glyph, produce_image_glyph)
19652 (append_stretch_glyph): Initialize avoid_cursor_p.
19653 (get_it_property): Rename from `get_line_height_property'.
19654 (x_produce_glyphs): Use get_it_property.
19655 (handle_line_prefix, push_display_prop): New functions.
19656 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19657 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19658 New variables.
19659 (syms_of_xdisp): Initialize them.
19660
196612008-06-30 Kenichi Handa <handa@m17n.org>
19662
19663 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19664 XftDefaultSubstitute (they are called in XftFontMatch).
19665 (xftfont_open): Fix args to ftfont_font_format.
19666
19667 * ftfont.c (fc_charset_table): New member lang.
19668 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 19669 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
19670 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19671 (ftfont_open): Fix args to ftfont_font_format.
19672 (ftfont_font_format): New arg filename.
19673
196742008-06-30 Chong Yidong <cyd@stupidchicken.com>
19675
19676 * xfaces.c (Finternal_merge_in_global_face): If default face was
19677 modified, realize it again. Update the font face attribute.
19678
196792008-06-29 Jason Rumney <jasonr@gnu.org>
19680
19681 * w32term.c (x_set_frame_alpha): Fix logic.
19682
196832008-06-29 Kenichi Handa <handa@m17n.org>
19684
19685 * fontset.c (Finternal_char_font): Return font-object instead of
19686 font-name.
19687
19688 * composite.c (get_composition_id): Fix the width calculation for TAB.
19689
196902008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
19691
19692 * indent.c (Fvertical_motion): Properly handle float column arg.
19693
196942008-06-28 Jason Rumney <jasonr@gnu.org>
19695
19696 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19697 (pfnSetLayeredWindowAttributes): New function pointer.
19698 (w32_initialize): Initialize it when supported.
19699 (x_set_frame_alpha): New function.
19700
19701 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
19702 (w32_frame_parm_handlers): Set alpha handler.
19703
19704 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
19705
197062008-06-27 Jason Rumney <jasonr@gnu.org>
19707
19708 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
19709 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
19710 (w32_to_x_charset, x_to_w32_charset)
19711 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19712 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19713 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19714 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19715 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19716 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19717 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
19718 (Qw32_charset_unicode): Remove.
19719 (syms_of_w32fns): Update for above changes.
19720
19721 * w32font.c (w32_to_x_charset, x_to_w32_charset)
19722 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19723 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19724 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19725 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19726 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19727 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19728 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19729 (syms_of_w32font): Update for above changes.
19730
197312008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
19732
19733 * s/usg5-4.h: Fix previous change: keep the correct branch of a
19734 removed #if.
19735 (USG_SHARED_LIBRARIES): Remove duplicate definition.
19736
197372008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 19738 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
19739
19740 * makefile.w32-in (LOCAL_FLAGS):
19741 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19742
19743 * sysdep.c (_spawnlp, _getpid):
19744 Declare with explicit _cdecl instead of _CRTAPI1.
19745
19746 * editfns.c (Fget_internal_run_time):
19747 Check for WINDOWSNT with #ifdef, not #if.
19748
197492008-06-26 Jason Rumney <jasonr@gnu.org>
19750
19751 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
19752
19753 * w32term.c (x_draw_glyph_string_foreground)
19754 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
19755 Use FONT_HANDLE macro.
19756 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
19757
19758 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19759 (uniscribe_encode_char): Use FONT_HANDLE macro.
19760
19761 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
19762 (w32font_text_extents): Use precast w32_font.
19763 (w32font_close): Free cached metrics.
19764 (w32font_open_internal): Allocate space for name on stack.
19765
197662008-06-26 Chong Yidong <cyd@stupidchicken.com>
19767
19768 * xdisp.c (extend_face_to_end_of_line): Fix last change.
19769
197702008-06-26 Jason Rumney <jasonr@gnu.org>
19771
19772 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
19773 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
19774
197752008-06-26 Juanma Barranquero <lekktu@gmail.com>
19776
19777 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
19778
197792008-06-26 Jason Rumney <jasonr@gnu.org>
19780
19781 * w32bdf.c, w32bdf.h: Remove obsolete files.
19782
19783 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
19784
19785 * w32gui.h: Don't include w32bdf.h.
19786 (XCharStruct, enum w32_char_font_type, W32FontStruct):
19787 Remove obsolete font support.
19788
19789 * w32font.h (struct w32font_info): Remove compat_w32_font.
19790 Add hfont member.
19791 (FONT_COMPAT): Remove obsolete macro.
19792
19793 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
19794 (w32font_encode_char, w32font_text_extents): Use new hfont member.
19795 (w32font_open_internal): Remove compat code. Set new hfont member.
19796 (Fx_select_font): Use new hfont member.
19797
19798 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19799 (uniscribe_encode_char): Use new hfont member.
19800
19801 * w32term.c (x_draw_glyph_string_foreground)
19802 (x_draw_composite_glyph_string_foreground): Use new hfont member.
19803 (x_draw_glyph_string): Use metrics in w32font_info.
19804
198052008-06-26 Kenichi Handa <handa@m17n.org>
19806
19807 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
19808
198092008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
19810
19811 * unexnext.c:
19812 * m/ews4800.h:
19813 * m/hp9000s300.h:
19814 * m/ibm370aix.h:
19815 * m/mips-siemens.h:
19816 * m/ncr386.h:
19817 * m/next.h:
19818 * m/pmax.h:
19819 * m/powerpcle.h:
19820 * m/tandem-s2.h:
19821 * s/386bsd.h:
19822 * s/bsd386.h:
19823 * s/bsd4-1.h:
19824 * s/bsd4-2.h:
19825 * s/bsdos2-1.h:
19826 * s/bsdos2.h:
19827 * s/bsdos3.h:
19828 * s/bsdos4.h:
19829 * s/nextstep.h:
19830 * s/ultrix4-3.h:
19831 * s/usg5-0.h:
19832 * s/usg5-2-2.h:
19833 * s/usg5-2.h:
19834 * s/usg5-4-3.h:
19835 * s/ux4800.h:
19836 * s/uxpds.h:
19837 * s/uxpv.h: Remove support for obsolete systems.
19838 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 19839 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
19840 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
19841 Remove, insert contents in s/aix4-2.h.
19842 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
19843 * s/bsd4-3.h: Rename to ...
19844 * s/bsd-common.h: ... this.
19845 * data.c:
19846 * doc.c:
19847 * ecrt0.c:
19848 * emacs.c:
19849 * fileio.c:
19850 * floatfns.c:
19851 * keyboard.c:
19852 * mem-limits.h:
19853 * print.c:
19854 * process.c:
19855 * sysdep.c:
19856 * syssignal.h:
19857 * systty.h:
19858 * syswait.h:
19859 * term.c:
19860 * unexec.c:
19861 * unexelf.c:
19862 * unexhp9k800.c:
19863 * m/hp800.h:
19864 * m/ibmrs6000.h:
19865 * m/mips.h:
19866 * m/vax.h:
19867 * s/darwin.h:
19868 * s/freebsd.h:
19869 * s/gnu.h:
19870 * s/ms-w32.h:
19871 * s/msdos.h:
19872 * s/netbsd.h:
19873 * s/template.h: Remove references to obsolete variables.
19874
19875 * Makefile.in: Add dependencies for all unexec files.
19876 (admindir): Remove unused variable.
19877 (UNEXEC_SRC): Remove references.
19878
198792008-06-25 Chong Yidong <cyd@stupidchicken.com>
19880
19881 * xfns.c (x_default_font_parameter): If Xft is available, first
19882 try Monospace-12 for the default font.
19883
198842008-06-25 Jason Rumney <jasonr@gnu.org>
19885
19886 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
19887
198882008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
19889
19890 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
19891
19892 * buffer.c (syms_of_buffer): Remove default-word-wrap.
19893
198942008-06-25 Juanma Barranquero <lekktu@gmail.com>
19895
19896 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
19897 <scroll-conservatively>: Fix typo in docstring.
19898
19899 * xselect.c (Fx_send_client_event): Doc fix.
19900
199012008-06-25 Kenichi Handa <handa@m17n.org>
19902
19903 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
19904
19905 * font.c (font_parse_fcname): Remove unused variables.
19906 (font_sort_entites): Delete the arg SPEC. Caller changed.
19907 Fix for the case of ! best_only.
19908 (font_delete_unmatched): Check DPI and AVGWIDTH too.
19909
19910 * lisp.h (Fstring_to_unibyte): EXFUN it.
19911
19912 * character.h (str_to_unibyte): Extern it.
19913
19914 * character.c (str_to_unibyte): New function.
19915
19916 * fns.c (Fstring_to_unibyte): New function.
19917 (syms_of_fns): Defsubr it.
19918
199192008-06-24 Kenichi Handa <handa@m17n.org>
19920
19921 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
19922 DPI too.
19923 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
19924
199252008-06-24 Andreas Schwab <schwab@suse.de>
19926
19927 * Makefile.in (${lispsource}loaddefs.el): Rename from
19928 ../lisp/loaddefs.el.
19929 (bootstrap-clean): Do what distclean does but don't remove
19930 Makefile.
19931 (distclean): Depend on bootstrap-clean and remove Makefile.
19932
199332008-06-24 Chong Yidong <cyd@stupidchicken.com>
19934
19935 * buffer.h (struct buffer): New member word_wrap.
19936
19937 * buffer.c (syms_of_buffer): New variables default-word-wrap and
19938 word-wrap.
19939 (init_buffer_once): Initialize them.
19940
19941 * dispextern.h (struct it): Replace bool truncate_lines_p with a
19942 line_wrap enum possessing three possible values.
19943
19944 * termopts.h: Replace truncate_partial_width_windows with
19945 Vtruncate_partial_width_windows.
19946
19947 * dispnew.c (direct_output_for_insert): Avoid direct output when
19948 inserting a space with word wrap on.
19949
19950 * indent.c (compute_motion): Obey integer values of
19951 truncate-partial-width-windows.
19952
19953 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
19954 replacing truncate_partial_width_windows.
19955 (init_iterator): If Vtruncate_partial_width_windows is an integer,
19956 truncate only if the window width is below that integer.
19957 (start_display, resize_mini_window, produce_stretch_glyph)
19958 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
19959 (back_to_previous_visible_line_start, reseat_1):
19960 Reset string_from_display_prop_p.
aac0c6e3
MR
19961 (display_line): Extend default face to end of line when wrapping.
19962
199632008-06-24 Kim F. Storm <storm@cua.dk>
19964
19965 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
19966 to wrap continued lines at word boundaries.
19967
199682008-06-24 Jason Rumney <jasonr@gnu.org>
19969
19970 * font.c (Ffont_face_attributes): Multiply pixel size before point
19971 conversion to avoid multiplying rounding error.
19972
199732008-06-23 Jason Rumney <jasonr@gnu.org>
19974
19975 * w32term.c (x_draw_glyph_string_background)
19976 (x_draw_glyph_string): Remove old bdf font code.
19977
19978 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
19979
199802008-06-22 Kenichi Handa <handa@m17n.org>
19981
19982 * font.c (font_find_for_lface): Try the adstyle specified in
19983 the property of LFACE_FONT of LFACE (if any).
19984
199852008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 19986 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
19987
19988 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
19989
199902008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
19991
19992 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
19993 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
19994 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
19995 (witness-emacs): Remove.
19996 (lisp, shortlisp): Move loaddefs.el earlier.
19997 (mostlyclean): Forget about witness-emacs.
19998
199992008-06-22 Glenn Morris <rgm@gnu.org>
20000
20001 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
20002 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
20003
200042008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
20005
20006 * Makefile.in (PRECOMP): Remove.
20007 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
20008 (witness-emacs): Run `compile-first'.
20009 (.el.elc): Use the new compile-onefile target.
20010
200112008-06-21 Kenichi Handa <handa@m17n.org>
20012
20013 * xftfont.c (xftfont_open): Handle QCembolden only when
20014 FC_EMBOLDEN is defined.
20015
200162008-06-21 Andreas Schwab <schwab@suse.de>
20017
20018 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
20019 (.el.elc): Likewise.
20020
200212008-06-21 Miles Bader <miles@gnu.org>
20022
20023 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
20024 build dir, not the lisp source dir.
20025
200262008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
20027
20028 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
20029 (bootstrapclean): Remove.
20030 (.el.elc): New rule.
20031 (PRECOMP): New var.
20032 (../lisp/subdirs.el): Remove.
20033 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
20034 (witness-emacs): New target.
20035 (mostlyclean): Remove witness-emacs as well.
20036 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
20037 Add witness-emacs dependency.
20038
200392008-06-20 Chong Yidong <cyd@stupidchicken.com>
20040
20041 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
20042 defined by the font.
20043
200442008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20045
20046 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
20047 (bootstrap-clean): New target that keeps TAGS around.
20048 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
20049 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
20050
200512008-06-20 Jason Rumney <jasonr@gnu.org>
20052
20053 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
20054 Remove obsolete font code.
20055
20056 * w32font.c (font_matches_spec): Use csb bitfield from font signature
20057 to determine language support.
20058
200592008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20060
20061 * sysdep.c (cfsetspeed): New fun extracted from the code.
20062 (cfmakeraw): Move before first use.
20063
200642008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
20065
20066 * sysdep.c (cfmakeraw): Provide fallback implementation.
20067 (serial_configure): Provide fallback implementation of cfsetspeed.
20068
200692008-06-20 Kenichi Handa <handa@m17n.org>
20070
20071 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
20072 the pattern.
20073
20074 * fontset.c (fontset_from_font): Copy font_spec before changing
20075 the elements.
20076
20077 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
20078
200792008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
20080
20081 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
20082 for explicit `font' parameters.
20083
20084 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
20085
200862008-06-19 Kenichi Handa <handa@m17n.org>
20087
20088 * frame.c: Include <ctype.h>.
20089 (x_set_font_backend): Allow spacing characters in the X resource
20090 for FontBackend.
20091
200922008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
20093
20094 * w32fns.c, xfns.c (Qfont_param): New var.
20095 (syms_of_w32fns): Initialize it.
20096 (x_default_font_parameter): Record explicit `font' into
20097 `font-parameter'.
20098
200992008-06-18 Kenichi Handa <handa@m17n.org>
20100
20101 * font.c (font_parse_xlfd): Fix previous change.
20102 (font_parse_fcname): Don't use :fc-unknown-spec.
20103 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
20104 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
20105 (font_add_log): Prepend the driver name to the resulting fonts.
20106
20107 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
20108 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
20109 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
20110
20111 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
20112 (QCembolden): New variables.
20113 (syms_of_xftfont): DEFSYM them.
20114 (xftfont_open): Call XftFontMatch. Don't trust the result of
20115 XftTextExtents8 if the pixel_size is less than 5.
20116
201172008-06-18 Andreas Schwab <schwab@suse.de>
20118
20119 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
20120 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
20121
201222008-06-18 Jason Rumney <jasonr@gnu.org>
20123
20124 * w32font.c (w32font_list, w32font_match): Add logging.
20125
20126 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
20127
201282008-06-17 Chong Yidong <cyd@stupidchicken.com>
20129
20130 * font.c (font_parse_fcname): Store divider characters for
20131 unknown-spec list. For known key symbols, intern using correct
20132 symbol name.
20133
201342008-06-17 Kenichi Handa <handa@m17n.org>
20135
20136 * xfaces.c (realize_default_face): If the frame is not on window
20137 system, set the fontset of face to nil.
20138
201392008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20140
20141 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
20142
201432008-06-16 Juanma Barranquero <lekktu@gmail.com>
20144
20145 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
20146 (build_font_name_from_vector): Delete externs.
20147
20148 * xfaces.c (struct font_name): Don't declare.
20149
201502008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
20151
20152 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
20153
201542008-06-16 Chong Yidong <cyd@stupidchicken.com>
20155
20156 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
20157
201582008-06-16 Juanma Barranquero <lekktu@gmail.com>
20159
20160 * font.c (Ffont_spec): Fix usage in docstring.
20161 (Ffont_face_attributes): Doc fix.
20162
201632008-06-16 Andreas Schwab <schwab@suse.de>
20164
20165 * font.c (Ffont_face_attributes): Fix definition.
20166
201672008-06-16 Jason Rumney <jasonr@gnu.org>
20168
20169 * font.h (font_style_symbolic_from_value): Remove.
20170
20171 * font.c (font_style_symbolic_from_value): Remove.
20172 (font_style_symbolic): Revert to pre 2008-06-13 version.
20173
20174 * w32font.c (w32_to_fc_weight): New function.
20175 (w32font_full_name, logfont_to_fcname): Use it.
20176
201772008-06-16 Kenichi Handa <handa@m17n.org>
20178
20179 * font.c (font_check_object): Delete it.
20180 (font_clear_cache): Check if a font-object is alive.
20181 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
20182 font-object to nil.
20183 (font_close_object): Don't check FONT_CLOSE_OBJECT.
20184 (font_at): Don't call font_check_object.
20185 (Ffont_get): Return a symbol for :weight, :slant, and :width.
20186
201872008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
20188
20189 * puresize.h (BASE_PURESIZE): Increase to 1230000.
20190
201912008-06-16 Chong Yidong <cyd@stupidchicken.com>
20192
20193 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
20194
201952008-06-15 Chong Yidong <cyd@stupidchicken.com>
20196
20197 * font.c (font_parse_fcname): Only one decimal point.
20198 (font_unparse_fcname): Handle data in family and foundry indices
20199 as symbols, not strings.
20200 (font_unparse_gtkname, Ffont_face_attributes): New functions.
20201
20202 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
20203
20204 * font.h (font_unparse_gtkname): Add prototype.
20205
202062008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20207
20208 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
20209
202102008-06-15 Andreas Schwab <schwab@suse.de>
20211
20212 * font.c (font_update_drivers): Fix crash when no drivers match.
20213
202142008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
20215
20216 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
20217 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
20218
202192008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
20220
20221 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
20222
202232008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
20224
20225 * process.c (Fserial_process_configure, Fprocess_send_eof):
20226 Use EQ to compare Lisp_Objects.
20227
202282008-06-13 Jason Rumney <jasonr@gnu.org>
20229
20230 * w32fns.c (Fw32_select_font): Remove old font API function.
20231
20232 * w32font.c (logfont_to_fcname): New function.
20233 (Fx_select_font): New font dialog function compatible with
20234 GTK/fontconfig version.
20235
20236 * font.c (font_style_symbolic_from_value): New function.
20237 (font_style_symbolic): Use it.
20238
20239 * font.h (font_style_symbolic_from_value): Declare new function.
20240
202412008-06-13 Juanma Barranquero <lekktu@gmail.com>
20242
20243 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
20244 <font-width-table>: Fix typos in docstrings.
20245
202462008-06-13 Daniel Engeler <engeler@gmail.com>
20247
20248 These changes add serial port access.
20249 * process.c: Add HAVE_SERIAL.
20250 (Fdelete_process, Fprocess_status, Fset_process_buffer)
20251 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
20252 (list_processes_1, select_wrapper, Fstop_process)
20253 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
20254 (status_notify): Modify to handle serial processes.
20255 [HAVE_SERIAL] (Fserial_process_configure)
20256 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
20257 New functions.
20258 * process.h (struct Lisp_Process): Add `type'.
20259 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
20260 New functions.
20261 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
20262 serial ports.
b71ac3dd 20263 (serial_open, serial_configure): New functions.
aac0c6e3
MR
20264 * w32.h: Add FILE_SERIAL.
20265 (struct _child_process): Add ovl_read, ovl_write.
20266
202672008-06-13 Kenichi Handa <handa@m17n.org>
20268
20269 * dispextern.h (enum lface_attribute_index): New member
20270 LFACE_FOUNDRY_INDEX.
20271
20272 * font.c (font_score): Delete arg alternate_families. Check only
20273 weight, slant, width, and size. Ignore the difference of alias
20274 style symbols.
20275 (font_sort_entites): Adjust for the above change. Reflect the
20276 order of font-driver to scores.
20277 (font_list_entities): Don't check alternate_familes here.
20278 (font_clear_prop): Handle foundry.
20279 (font_update_lface): Don't parse "foundry-family" form here.
20280 Handle FONT_FOUNDRY_INDEX.
20281 (font_find_for_lface): Likewise. Handle alternate families here.
20282 If registry is nil, try iso8859-1 and ascii-0.
20283 (font_open_for_lface): Pay attention to size in ENTITY.
20284 (font_open_by_name): Simplify by calling font_load_for_lface.
20285 (free_font_driver_list): Delete it.
20286 (font_update_drivers): Preserve the order of backends.
20287 (syms_of_font): Setting of sort_shift_bits adjusted for the change
20288 of font_score and font_sort_entites.
20289 (font_update_sort_order): Likewise.
20290
20291 * xfaces.c (LFACE_FOUNDRY): New macro.
20292 (check_lface_attrs): Check foundry.
20293 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
20294 (merge_face_vectors): Check foundry.
20295 (merge_face_ref): Likewise.
20296 (Finternal_set_lisp_face_attribute): Likewise.
20297 (x_update_menu_appearance): Likewise.
20298 (Finternal_get_lisp_face_attribute): Likewise.
20299 (lface_hash): Likewise.
20300 (lface_same_font_attributes_p): Likewise.
20301 (x_supports_face_attributes_p): Likewise.
20302 (tty_supports_face_attributes_p): Likewise.
20303 (Finternal_set_alternative_font_family_alist): Intern strings.
20304 (Finternal_set_alternative_font_registry_alist): Downcase strings.
20305 (realize_default_face): Set LFACE_FOUNDRY (lface).
20306
20307 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
20308 font-driver at first.
20309
20310 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
20311
203122008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
20313
20314 * lread.c (Fload): Use xfree, not free on saved_doc_string.
20315
203162008-06-12 Jim Meyering <meyering@redhat.com>
20317
20318 Make unexec_free handle NULL the same way free does.
20319 * unexmacosx.c (unexec_free): Ignore a NULL argument.
20320
203212008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20322
20323 * character.h (CHAR_TO_BYTE_SAFE): New macro.
20324 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
20325 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
20326 (WEAK_ALIAS): Simplify.
20327 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
20328 when searching a unibyte buffer.
20329
203302008-06-12 Chong Yidong <cyd@stupidchicken.com>
20331
20332 * xfns.c (Fx_select_font): Rename from x-font-dialog.
20333
203342008-06-12 Juanma Barranquero <lekktu@gmail.com>
20335
20336 * w32font.c: Include ctype.h.
20337
203382008-06-11 Jason Rumney <jasonr@gnu.org>
20339
20340 * w32font.c (w32font_encode_char): Detect missing glyphs that are
20341 misreported as space.
20342 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
20343 as aliases for registry iso10646-1.
20344
203452008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20346
20347 * buffer.c (clone_per_buffer_values): Skip `name'.
20348
203492008-06-11 Chong Yidong <cyd@stupidchicken.com>
20350
20351 * font.c (font_parse_fcname): Fix last change; accept decimal
20352 points in font size.
20353
203542008-06-10 Jason Rumney <jasonr@gnu.org>
20355
20356 * w32uniscribe.c (add_opentype_font_name_to_list):
20357 Skip non unicode fonts.
20358
203592008-06-10 Chong Yidong <cyd@stupidchicken.com>
20360
20361 * xfns.c (Fx_font_dialog): New function.
20362
20363 * gtkutil.c (xg_dialog_response_cb): Rename from
20364 xg_file_response_callback.
20365 (pop_down_dialog): Rename from pop_down_file_dialog.
20366 (xg_get_file_name): Callers changed.
20367 (xg_get_font_name): New function.
20368
20369 * gtkutil.h (xg_get_font_name): Insert prototype.
20370
203712008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20372
20373 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
20374 x_underline_minimum_display_offset.
20375 (syms_of_xdisp): Declare it here rather than in xterm.c.
20376 * dispextern.h (underline_minimum_offset): Declare it.
20377 * w32term.c (x_draw_glyph_string): Use it.
20378 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
20379 (syms_of_xterm): Don't declare it any more.
20380 (x_draw_glyph_string): Adjust to the new name.
20381
8719abec 203822008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
20383
20384 * xterm.c (x_underline_minimum_display_offset): New var.
20385 (x_draw_glyph_string): Use it.
20386 (syms_of_xterm): Declare it.
20387
203882008-06-10 Chong Yidong <cyd@stupidchicken.com>
20389
20390 * font.c (font_parse_fcname): Accept GTK-style font names too.
20391
203922008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20393
20394 * dired.c (file_name_completion): Don't return t if the match is exact
20395 but with different capitalization.
20396 * minibuf.c (Ftry_completion): Simplify.
20397
20398 * window.c (Vwindow_point_insertion_type): New var.
20399 (set_window_buffer): Use it.
20400 (syms_of_window): Init and export it to Lisp.
20401
204022008-06-10 Kenichi Handa <handa@m17n.org>
20403
20404 * font.h (font_intern_prop): Prototype adjusted.
20405
20406 * font.c (font_intern_prop): New arg force_symbol.
20407 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
20408 Adjust for the change of font_intern_prop.
20409
20410 * ftfont.c (ftfont_pattern_entity):
20411 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
20412 (w32_registry):
20413 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
20414 the change of font_intern_prop.
20415
204162008-06-09 Juanma Barranquero <lekktu@gmail.com>
20417
20418 * w32menu.c (digest_single_submenu): Declare extern.
20419
204202008-06-09 Jason Rumney <jasonr@gnu.org>
20421
20422 * w32term.c (x_make_frame_visible): Use alternate restore flags.
20423
20424 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
20425 (parse_single_submenu): Remove.
20426 (digest_single_submenu): Remove.
20427 (syms_of_w32menu): Don't initialise variables that have moved
20428 to menu.c.
20429 (set_frame_menubar): Sync with version in xmenu.c.
20430 (w32_menu_show): Sync with xmenu_show in xmenu.c.
20431
20432 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
20433 Make static again.
20434
204352008-06-09 Jason Rumney <jasonr@gnu.org>
20436
20437 Changes to w32 files related to the move of common menu code
20438 to menu.c on 2008-06-08 by Chong Yidong.
20439
20440 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
20441 defs to w32gui.h.
20442 (single_keymap_panes, push_menu_item, push_menu_pane):
20443 Make globally visible.
20444
20445 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
20446 (local_free, malloc_widget_value, free_widget_value)
20447 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
20448 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
20449 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
20450 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
20451 (menu_items, menu_items_allocated, menu_items_used)
20452 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
20453 (init_menu_items, finish_menu_items, discard_menu_items)
20454 (grow_menu_items, push_submenu_start, push_submenu_end)
20455 (push_left_right_boundary, push_menu_pane, push_menu_item)
20456 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
20457 (free_menubar_widget_tree_value, parse_single_submenu)
20458 (update_submenu_strings): Remove functions.
20459 (xmalloc_widget_value): Remove and declare extern.
20460
20461 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
20462 (OBJ1): Build it.
20463
20464 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
20465 (local_heap, local_alloc, local_free, malloc_widget_value)
20466 (free_widget_value): Define here.
20467
204682008-06-09 Kenichi Handa <handa@m17n.org>
20469
20470 * font.h (Qascii_0): Extern it.
20471
20472 * font.c (Qascii_0): New variable.
20473 (syms_of_font): DEFSYM it.
20474 (font_open_by_name): If the registry "iso8859-1" fails, try also
20475 "ascii-0".
20476
20477 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
20478
204792008-06-08 Kenichi Handa <handa@m17n.org>
20480
20481 * .gdbinit (xfont): New command.
20482
204832008-06-08 Andreas Schwab <schwab@suse.de>
20484
20485 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
20486 * Makefile.in (menu.o): Update dependencies.
20487
20488 * Makefile.in (obj): Always add menu.o.
20489 * emacs.c (main): Always call syms_of_menu.
20490 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
20491
204922008-06-08 Chong Yidong <cyd@stupidchicken.com>
20493
20494 * Makefile.in: Compile menu.c.
20495
20496 * lisp.h: Declare syms_of_menu.
20497
20498 * emacs.c (main): Call syms_of_menu.
20499
20500 * keyboard.h: Relocate platform-independent menu definitions from
20501 xmenu.c.
20502
20503 * menu.c: New file. Relocate platform-independent menu
20504 definitions from xmenu.c. Suggested by Adrian Robert.
20505
20506 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 20507 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
20508 (menu_items_used, menu_items_n_panes)
20509 (menu_items_submenu_depth): Move to keyboard.h.
20510 (init_menu_items, finish_menu_items, unuse_menu_items)
20511 (discard_menu_items, restore_menu_items, save_menu_items)
20512 (grow_menu_items, push_submenu_start, push_submenu_end)
20513 (push_left_right_boundary, push_menu_pane, push_menu_item)
20514 (keymap_panes, single_keymap_panes, single_menu_item)
20515 (list_of_panes, list_of_items, find_and_call_menu_selection)
20516 (xmalloc_widget_value, free_menubar_widget_value_tree)
20517 (parse_single_submenu, digest_single_submenu)
20518 (update_submenu_strings): Move to menu.c.
20519
205202008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
20521
20522 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
20523
205242008-06-06 Miles Bader <miles@gnu.org>
20525
20526 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
20527 face, not frame default.
20528
205292008-06-05 Martin Rudalics <rudalics@gmx.at>
20530
20531 * window.c (pop_up_windows, pop_up_frames)
20532 (display_buffer_reuse_frames, Vpop_up_frame_function)
20533 (Vdisplay_buffer_function, Veven_window_heights)
20534 (Vspecial_display_buffer_names, Vspecial_display_regexps)
20535 (Vspecial_display_function, Vsame_window_buffer_names)
20536 (Vsame_window_regexps, split_height_threshold)
20537 (Vsplit_window_preferred_function): Move those vars to window.el.
20538 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
20539 (Fdisplay_buffer): Move those functions to window.el.
20540 (syms_of_window): Remove corresponding declarations.
20541 (display_buffer): New function.
20542 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
20543 * dispnew.c (Flast_nonminibuf_frame): New function.
20544 * buffer.c (Fpop_to_buffer): Move to window.el.
20545
205462008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20547
20548 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
20549
205502008-06-05 Kenichi Handa <handa@m17n.org>
20551
20552 * coding.c (detect_coding): Fix previous change.
20553 (detect_coding_system): Likewise.
20554
205552008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20556
20557 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
20558
20559 * keymap.c (Vminibuffer_local_filename_must_match_map):
20560 Rename from Vminibuffer_local_must_match_filename_map.
20561 (syms_of_keymap):
20562 * minibuf.c (Fcompleting_read): Adjust accordingly.
20563 * commands.h: Rename declaration as well.
20564
205652008-06-05 Kenichi Handa <handa@m17n.org>
20566
20567 * font.c (Ffont_spec): Don't use font_parse_family_registry for
20568 family name.
20569 (Ffont_put): Likewise.
20570
20571 * fontset.c (fontset_find_font): Call font_open_for_lface with the
20572 current font-spec.
20573
20574 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
20575 is unspecified.
20576
20577 * xfaces.c (realize_x_face): If the font-related face attributes
20578 are the same as those of default face, realize a new fontset from
20579 default->fontset.
20580 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
20581
205822008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20583
20584 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
20585 (move_it_in_display_line): New wrapper.
20586
20587 * window.c (window_scroll_pixel_based_preserve_x)
20588 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
20589 (window_scroll_pixel_based, window_scroll_line_based):
20590 Use them to preserve column positions.
20591 (syms_of_window): Initialize them.
20592
20593 * indent.c (Fvertical_motion): Extend first arg to allow passing an
20594 (HPOS . VPOS) pair.
20595
20596 * dispextern.h (move_it_in_display_line): Declare.
20597
205982008-06-05 Juanma Barranquero <lekktu@gmail.com>
20599
20600 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20601 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
20602 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
20603
206042008-06-04 Juanma Barranquero <lekktu@gmail.com>
20605
20606 * window.c (Fset_window_parameter): Doc fix.
20607 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20608
206092008-06-04 Joakim Verona <joakim@verona.se>
20610
20611 * window.h (struct window): Add new member window_parameters.
20612
20613 * window.c (Fwindow_parameters, Fwindow_parameter)
20614 (Fset_window_parameter): New defuns.
20615 (syms_of_window): Defsubr the new defuns.
20616 (make_window): Initialize window_parameters to nil.
20617
206182008-06-04 John Paul Wallington <jpw@pobox.com>
20619
20620 * eval.c (Fdefmacro): Doc fix.
20621
206222008-06-04 Kenichi Handa <handa@m17n.org>
20623
20624 * coding.c (detect_coding): Fix handling of coding->head_ascii.
20625 Be sure to call setup_coding_system when we find a proper coding system.
20626 (detect_coding_system): Fix handling of coding->head_ascii.
20627
206282008-06-03 Andreas Schwab <schwab@suse.de>
20629
20630 * font.c (font_prop_validate_spacing): Fix last change.
20631
206322008-06-03 Kenichi Handa <handa@m17n.org>
20633
20634 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20635 (font_parse_fcname): Fix handling of unknown key.
20636
20637 * xfont.c (xfont_list): Try an alias.
20638
20639 * charset.c (char_charset): Return NULL if the arg charset_list is
20640 specified and C doesn't belong to any of them.
20641
206422008-06-02 Chip Coldwell <coldwell@redhat.com>
20643
20644 * font.c (font_pixel_size): Don't take cdr of an integer.
20645
206462008-06-02 Jim Meyering <meyering@redhat.com>
20647
20648 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20649 * alloc.c (xfree): Return right away for a NULL arg.
20650 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20651 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20652 * mac.c (create_apple_event_from_event_ref): Likewise.
20653 (create_apple_event_from_drag_ref, cfstring_create_normalized):
20654 Likewise.
20655 * doprnt.c (doprnt1): Likewise.
20656 * frame.c (frame): Likewise.
20657 * keyboard.c (wipe_kboard): Likewise.
20658 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20659 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20660 * term.c (tty_default_color_capabilities, maybe_fatal)
20661 (delete_tty): Likewise.
20662 * w16select.c (string): Likewise.
20663 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20664 * w32bdf.c (w32_free_bdf_font): Likewise.
20665 * w32fns.c (w32_unload_font): Likewise.
20666 * w32font.c (w32font_close): Likewise.
20667 * window.c (size_window): Likewise.
20668 * xselect.c (receive_incremental_selection): Likewise.
20669 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20670 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20671 * w32.c (stat): Likewise.
20672
20673 Remove useless if-before-free tests.
20674 * editfns.c (Fset_time_zone_rule): Likewise.
20675 * lread.c (nosuffix): Likewise.
20676 * ralloc.c (get_bloc): Likewise.
20677 * regex.c (reg_free): Likewise.
20678 * xftfont.c (xftfont_open, xftfont_close): Likewise.
20679 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20680 * xsmfns.c (smc_save_yourself_CB): Likewise.
20681
206822008-06-02 Kenichi Handa <handa@m17n.org>
20683
20684 * font.c (font_find_for_lface): Handle float font size.
20685 (font_open_for_lface): Likewise.
20686
20687 * xfaces.c (x_supports_face_attributes_p): Check face->font before
20688 comparing the properties.
20689
206902008-06-01 Jason Rumney <jasonr@gnu.org>
20691
20692 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20693 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20694 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20695 Don't add empty script list.
20696 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20697
206982008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
20699
20700 * Makefile.in (dot, dotdot): Remove, update users.
20701 ".." has been used elsewhere in the file for a long time.
20702 (LIBXT_STATIC): Remove conditional based on unused variable.
20703
207042008-06-01 Miles Bader <miles@gnu.org>
20705
20706 * xfaces.c (Vface_remapping_alist): New variable.
20707 (syms_of_xfaces): Initialize it.
20708 (enum named_merge_point_kind): New type.
20709 (struct named_merge_point): Add `named_merge_point_kind' field.
20710 (push_named_merge_point): Make cycle detection respect different
20711 named-merge-point kinds.
20712 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
20713 Remove face-name alias resolution.
20714 (lface_from_face_name): New definition using
20715 `lface_from_face_name_no_resolve'.
20716 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
20717 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
20718 (get_lface_attributes): New definition that layers face-remapping on
20719 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
20720 (lookup_basic_face): New function.
20721 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20722 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20723 `get_lface_attributes'.
20724 (face_at_buffer_position): Use `lookup_basic_face' to lookup
20725 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
20726 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20727
20728 * xdisp.c (init_iterator): Pass base_face_id through
20729 `lookup_basic_face' when we actually use it as a face-id.
20730 (handle_single_display_prop): Use `lookup_basic_face' to lookup
20731 DEFAULT_FACE_ID.
20732
20733 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20734 lookup the initial face-id.
20735
20736 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20737
207382008-06-01 Juanma Barranquero <lekktu@gmail.com>
20739
20740 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20741 (Fremove_text_properties): Fix typos in docstrings.
20742
207432008-05-31 Kenichi Handa <handa@m17n.org>
20744
20745 * font.c (font_list_entities): Fix the car part of data to be
20746 stored in the cache.
20747
20748 * ftfont.c (ftfont_font_format): Don't use strcasestr.
20749
207502008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20751
20752 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
20753 Add a `test' argument so another predicate than `equal' can be used.
20754 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
20755 (map_char_table): Remove unused vars `c' and `i'.
20756 * lisp.h (Foptimize_char_table): Adjust declaration.
20757 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
20758
207592008-05-30 Kenichi Handa <handa@m17n.org>
20760
20761 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
20762 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
20763 defined.
20764
207652008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20766
20767 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20768 (Fmake_variable_frame_local): Disallow mixing buffer-local and
20769 frame-local settings for the same variable.
20770
207712008-05-30 Kenichi Handa <handa@m17n.org>
20772
20773 * fontset.c (Ffont_info): Move to font.c.
20774 (syms_of_fontset): Delete defsubr of Sfont_info.
20775
20776 * font.c (font_style_to_value, font_score): Delete casting of the
20777 args to xstcasecmp.
20778 (register_font_driver): Increment num_font_drivers only when
20779 registering the driver globally.
20780 (Ffont_info): Move from fontset.c. Handle a font object too.
20781 (syms_of_font): Defsubr Sfont_info.
20782
207832008-05-29 Kenichi Handa <handa@m17n.org>
20784
20785 * coding.h (enum define_coding_utf8_arg_index): New enum.
20786 (enum coding_attr_index): Change coding_attr_utf_16_bom to
20787 coding_attr_utf_bom.
20788 (enum utf_bom_type): Rename from utf_16_bom_type.
20789 (struct utf_16_spec): Adjust for the above change.
20790 (struct coding_system): Add utf_8_bom in `spec' union.
20791
20792 * coding.c (CODING_UTF_8_BOM): New macro.
20793 (enum coding_category): Delete coding_category_utf_8, add
20794 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
20795 coding_category_utf_8_sig.
20796 (CATEGORY_MASK_UTF_8): Delete it.
20797 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
20798 (CATEGORY_MASK_UTF_8_SIG): New macros.
20799 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
20800 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
20801 CATEGORY_MASK_UTF_8_SIG.
20802 (CATEGORY_MASK_UTF_8): New macro.
20803 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
20804 (detect_coding_utf_8): Check BOM.
20805 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
20806 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
20807 (encode_coding_utf_16): Likewise.
20808 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
20809 (detect_coding, detect_coding_system): Handle utf-8-auto.
20810 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
20811 (syms_of_coding): Fix setting up of Vcoding_category_table.
20812
208132008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
20814
20815 * process.c (Faccept_process_output): If `millisec' is non-nil,
20816 `seconds' default to 0.
20817 (wait_reading_process_output): Also return non-nil if we read output
20818 from a non-running process.
20819
208202008-05-29 Jason Rumney <jasonr@gnu.org>
20821
20822 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
20823 `raster' specified.
20824 (add_font_entity_to_list): Allow non-opentype truetype fonts back
20825 in the uniscribe backend, but disallow any font that has no
20826 unicode subrange support.
20827
208282008-05-29 Juanma Barranquero <lekktu@gmail.com>
20829
20830 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
20831 Fix typos in docstrings.
20832
208332008-05-29 Kenichi Handa <handa@m17n.org>
20834
20835 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
20836 (Fx_family_fonts): Set frame correctly.
20837
208382008-05-28 Jason Rumney <jasonr@gnu.org>
20839
20840 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
20841
208422008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
20843
20844 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
20845 calling build_annotations.
20846
208472008-05-28 Juanma Barranquero <lekktu@gmail.com>
20848
20849 * coding.c (Fdecode_coding_region, Fencode_coding_region)
20850 (Fencode_coding_string):
20851 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
20852 <latin-extra-code-table>: Fix typos in docstrings.
20853 (syms_of_coding) <coding-system-alist>: Doc fix.
20854 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
20855
208562008-05-28 Kenichi Handa <handa@m17n.org>
20857
20858 * fontset.c (Ffont_info): Don't call font_close_object.
20859
20860 * font.c (font_parse_family_registry): Use Ffont_put to validate
20861 foundry and family.
20862 (font_delete_unmatched): Don't check spacing.
20863 (font_list_entities): Add spacing to the spec to list fonts.
20864
20865 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
20866 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
20867
20868 * coding.c (encode_coding_raw_text): Fix previous change.
20869 (encode_coding_object): When the dst_object is a buffer and is
20870 different from src_object, move gap to PT.
20871
208722008-05-27 Chong Yidong <cyd@stupidchicken.com>
20873
20874 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
20875
208762008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20877
20878 * coding.c (encode_coding_raw_text): Set coding->produced_char for
20879 all branches. Compute it differently.
20880
20881 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
20882
208832008-05-27 Juanma Barranquero <lekktu@gmail.com>
20884
20885 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
20886 into "else if () ... else ...".
20887
208882008-05-27 Jason Rumney <jasonr@gnu.org>
20889
20890 * w32font.c (w32font_open_internal): Determine if glyph indices
20891 are likely to work here.
20892
208932008-05-27 Chong Yidong <cyd@stupidchicken.com>
20894
20895 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
20896 draw overlap glyphs with appropriate highlighting.
20897
208982008-05-27 Kenichi Handa <handa@m17n.org>
20899
20900 * xfont.c (xfont_open): Fix calculation of font->average_width.
20901
209022008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20903
20904 * casefiddle.c (casify_object): Try to guess better whether the
20905 argument is a byte or a char.
20906
209072008-05-26 Andreas Schwab <schwab@suse.de>
20908
20909 * xselect.c (x_reply_selection_request): Properly handle format == 32.
20910 Always send multiples of format size.
20911
20912 * xterm.c (x_set_frame_alpha): Fix type mismatch.
20913
209142008-05-26 Jason Rumney <jasonr@gnu.org>
20915
20916 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
20917 (compute_metrics): Don't set failure if we just cleared the cache.
20918 (w32_weight_table): Remove unused variable.
20919 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
20920 backwards compatibility.
20921
209222008-05-25 Kenichi Handa <handa@m17n.org>
20923
20924 * w32term.c (x_draw_glyph_string):
20925 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
20926
20927 * xfaces.c: Delete unused function prototypes.
20928 (xstrlwr, font_frame): Delete them.
20929 (clear_face_cache): Delete unused variable.
20930
20931 * xftfont.c (xftfont_open): Delete unused variable.
20932 If underline_thickness is not 1, adjust underline_position.
20933
20934 * ftxfont.c (ftxfont_open): Delete unused variable.
20935
20936 * fontset.c (face_for_char): Optimize for the case of no charset
20937 property.
20938
20939 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
20940 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
20941 (otf_open, font_otf_capability, generate_otf_features)
20942 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20943 Comment out by surrounding "#if 0" and "#endif" for the moment.
20944 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
20945 (syms_of_font): Codes for accessing above commented out.
20946
209472008-05-24 Eli Zaretskii <eliz@gnu.org>
20948
20949 * w32proc.c: Include dispextern.h.
20950
20951 * w32.c: Include dispextern.h.
20952
209532008-05-23 Juanma Barranquero <lekktu@gmail.com>
20954
20955 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
20956 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
20957 Fix typos in docstrings.
20958
209592008-05-23 Jason Rumney <jasonr@gnu.org>
20960
20961 * xsmfns.c: Remove includes that are already included by config.h.
20962
209632008-05-23 Kenichi Handa <handa@m17n.org>
20964
20965 * charset.c (Qemacs, charset_emacs): New variables.
20966 (char_charset): Fix for non-Unicode characters.
20967 (syms_of_charset): Define charset_emacs.
20968
20969 * w32term.c (x_draw_glyph_string): Be sure to update
20970 s->underline_thickness and s->underline_position. Be sure to draw
20971 underline within the current line area.
20972
20973 * xterm.c (x_draw_glyph_string): Be sure to update
20974 s->underline_thickness and s->underline_position. Be sure to draw
20975 underline within the current line area.
20976
20977 * fontset.c: Delete unused variables and add casting for char *
20978 throughout the file.
20979 (fontset_font): Try the fallback fonts of the current fontset
20980 before consulting the default fontset.
20981
20982 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
20983
20984 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
20985
209862008-05-22 Jason Rumney <jasonr@gnu.org>
20987
20988 * font.c: Don't include strings.h.
20989
20990 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
20991
20992 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
20993 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
20994 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
20995 to call xstrcasecmp.
20996
20997 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
20998
20999 * fontset.c (fs_query_fontset): Use xstrcasecmp.
21000
21001 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
21002
21003 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
21004
210052008-05-22 Kenichi Handa <handa@m17n.org>
21006
21007 * puresize.h (BASE_PURESIZE): Increase to 1220000.
21008
21009 * font.c (font_prop_validate_style): Adjust for the format
21010 change of font_style_table.
21011
21012 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
21013 two args.
21014
21015 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
21016 two args.
21017
210182008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
21019
21020 * minibuf.c (keys_of_minibuf): Delete.
21021 * lisp.h (keys_of_minibuf): Delete.
21022 * emacs.c (main): Don't call keys_of_minibuf.
21023
210242008-05-22 Kenichi Handa <handa@m17n.org>
21025
21026 * ftfont.c (ftfont_resolve_generic_family): Rename from
21027 ftfont_list_generic_family. Return a single family for each
21028 generic family.
21029 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
21030 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
21031 Call font_add_log.
21032 (ftfont_match): Call font_add_log.
21033
21034 * font.h (Ffont_xlfd_name): EXFUN adjusted.
21035 (FONT_DEBUG): Define it.
21036 (font_add_log): Extern it.
21037 (font_assert): Rename from xassert.
21038
21039 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
21040 (xfont_list_family): Call font_add_log.
21041 (xfont_match): Likewise.
21042 (memq_no_quit): Delete.
21043
21044 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
21045 call of Ffont_xlfd_name.
21046
21047 * xfaces.c (struct table_entry, slant_table, weight_table)
21048 (swidth_table): Move to font.c.
21049
21050 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
21051 xassert are changed to font_assert. Delete many unused variables.
21052 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
21053 New variables.
21054 (struct table_entry): Move from xfaces.c and modified.
21055 (weight_table, slant_table, width_table): Move from xfaces.c and
21056 contents adjusted for the change of struct table_entry.
21057 (font_style_to_value, font_style_symbolic): Adjust for the
21058 format change of font_style_table.
21059 (font_parse_family_registry): Don't overwrite existing foundry and
21060 family of font_spec.
21061 (font_score): Fix calculation of diff for sizes.
21062 (font_sort_entites): Call font_add_log.
21063 (font_delete_unmatched): Return a newly created list.
21064 (font_list_entities): Fix previous change. Call font_add_log.
21065 (font_matching_entity, font_open_entity, font_close_entity):
21066 Call font_add_log.
21067 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
21068 (Finternal_set_font_style_table): Delete.
21069 (BUILD_STYLE_TABLE): New macro.
21070 (build_style_table): New function.
21071 (Vfont_log, font_log_env_checked): New variables.
21072 (font_add_log): New function.
21073 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
21074 Declare Lisp variables "font-weight-table", "font-slant-table",
21075 "font-width-table", and "font-log". Initialize font_style_table.
21076
210772008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
21078
21079 * xterm.c (x_set_frame_alpha): Move declarations before statements.
21080
210812008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 21082 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
21083
21084 * frame.c (Qalpha): Add a new frame parameter `alpha'.
21085 (Vframe_alpha_lower_limit): New variable.
21086 (x_set_alpha): New function.
21087
21088 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
21089
21090 * xfns.c (x-create-frame, Qalpha):
21091 Initialize the frame parameter `alpha'.
21092 * xterm.c (OPAQUE, OPACITY): New.
21093 (x_set_frame_alpha): New function.
21094 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
21095
21096 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
21097 * w32fns.c (w32_frame_parm_handlers): Likewise.
21098
210992008-05-20 Jason Rumney <jasonr@gnu.org>
21100
21101 * w32font.c (add_font_entity_to_list): Don't add non-opentype
21102 truetype fonts to opentype list.
21103
211042008-05-20 Juanma Barranquero <lekktu@gmail.com>
21105
21106 * fontset.c (Ffontset_info): Doc fix.
21107 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
21108 <ignore-relative-composition>: Fix typos in docstrings.
21109
21110 * font.c (syms-of-font) <font-encoding-alist>:
21111 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
21112 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
21113 (Ffont_otf_alternates): Doc fixes.
21114
211152008-05-20 Kenichi Handa <handa@m17n.org>
21116
21117 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
21118 font.h through out the file.
21119 (FONT_DRIVERS): Rename from FONTOBJ.
21120 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
21121 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
21122
21123 * emacs.c (main): Call syms_of_font unconditionally.
21124
21125 * font.h (find_font_encoding): Extern it.
21126
21127 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
21128 fontset.c.
194d44e7 21129 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
21130 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
21131 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
21132 only when HAVE_WINDOW_SYSTEM is defined.
21133 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
21134 when HAVE_WINDOW_SYSTEM is defined.
21135
21136 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
21137 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
21138
21139 * xfaces.c: Include font.h unconditionally.
21140 (merge_face_ref, merge_face_vectors)
21141 (Finternal_set_lisp_face_attribute): Cancel the previous change.
21142
211432008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
21144
21145 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
21146 indirect_variable.
21147 * eval.c (lisp_indirect_variable): New fun.
21148 (Fuser_variable_p): Use it.
21149
211502008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21151
21152 * lisp.h (indirect_variable):
21153 * data.c (indirect_variable, let_shadows_buffer_binding_p):
21154 Use Lisp_Symbol pointers rather than Lisp_Object.
21155 Adjust callers.
21156 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
21157 To this end, change calling-convention.
21158
21159 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
21160 if some non-hidden buffers are selected by string&pred.
21161
211622008-05-19 Chong Yidong <cyd@stupidchicken.com>
21163
21164 * process.c (wait_reading_process_output): Always check status
21165 when in batch mode.
21166
211672008-05-19 Kenichi Handa <handa@m17n.org>
21168
21169 * font.c (font_list_entities): Fix handling of cache.
21170 (font_matching_entity): Likewise.
21171
21172 * ftfont.c (cs_iso8859_1): Delete.
21173 (ft_face_cache): New variable.
21174 (struct ftfont_info): New member fc_charset_idx.
21175 (ftfont_build_basic_charsets): Delete.
21176 (fc_charset_table): New variable.
21177 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
21178 . FC_CHARSET_IDX) as :font-entity property in the font entity.
21179 Callers changed.
21180 (ftfont_lookup_cache, ftfont_get_charset): New functions.
21181 (ftfont_spec_pattern): New argument fc_charset_idx.
21182 Check registry more rigidly. Change callers.
21183 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
21184 change of :font-entity property of the font.
21185
21186 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
21187 property of the font.
21188
211892008-05-18 Juanma Barranquero <lekktu@gmail.com>
21190
21191 * coding.c (Fcoding_system_p): Rename argument to match docstring.
21192 (Funencodable_char_position, Fcheck_coding_systems_region)
21193 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
21194 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
21195 (Ffind_operation_coding_system, Fset_coding_system_priority)
21196 (Fcoding_system_eol_type): Doc fixes.
21197
211982008-05-17 Glenn Morris <rgm@gnu.org>
21199
21200 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
21201
212022008-05-16 Eli Zaretskii <eliz@gnu.org>
21203
21204 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
21205 and st_gid.
21206
21207 * frame.c (Fdelete_frame): Don't call font_update_drivers if
21208 HAVE_WINDOW_SYSTEM is not defined.
21209
21210 * xfaces.c (merge_face_ref, merge_face_vectors)
21211 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
21212 HAVE_WINDOW_SYSTEM is defined.
21213 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
21214
212152008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
21216
21217 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
21218
212192008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21220
21221 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
21222
212232008-05-15 Kenichi Handa <handa@m17n.org>
21224
21225 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
21226 preference.
21227
212282008-05-15 Glenn Morris <rgm@gnu.org>
21229
21230 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
21231
212322008-05-15 Chong Yidong <cyd@stupidchicken.com>
21233
21234 * fns.c (init_fns): Don't initialize weak_hash_tables here.
21235 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
21236
21237 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
21238
212392008-05-15 Kenichi Handa <handa@m17n.org>
21240
21241 * ftfont.c (ftfont_list): Downcase family name to check generic
21242 families.
21243
21244 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
21245 font-spec for QCfont value.
21246
21247 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
21248 buffer. Check the return value of it.
21249
212502008-05-14 Jason Rumney <jasonr@gnu.org>
21251
21252 * w32term.c (w32_get_glyph_overhangs): Remove.
21253 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
21254
212552008-05-14 Kenichi Handa <handa@m17n.org>
21256
21257 * font.c (font_prop_validate): Make nil a valid value.
21258 (font_clear_cache): Check if the cached vector of entities is nil
21259 or not.
21260
212612008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21262
21263 * emacs.c (main_thread): Conditionalize on
21264 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21265 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
21266
21267 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
21268 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
21269 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21270
212712008-05-14 Kenichi Handa <handa@m17n.org>
21272
21273 * coding.c (detect_coding_iso_2022): Ignore a coding category that
21274 has no corresponding coding system.
21275
212762008-05-14 Jason Rumney <jasonr@gnu.org>
21277
21278 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
21279
21280 * w32font.h (w32font_open_internal): Update declaration.
21281
21282 * w32font.c (w32font_open_internal): Change last argument from
21283 w32font_info struct to font object. Fill in font object from
21284 font_entity. Get Outline metrics if possible. Use them to
21285 calculate underline position and thickness. Use xlfd name as name
21286 property. Don't set codepage.
21287 (w32font_open): Pass font_object to w32font_open_internal. Don't
21288 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
21289 (w32font_draw): Use s->font.
21290 (clear_cached_metrics): Don't clear non-existent blocks.
21291
21292 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
21293 font was not found.
21294 (x_draw_glyph_string): Use underline position and thickness from font.
21295
21296 * w32uniscribe.c (uniscribe_open): Pass font_object to
21297 w32font_open_internal.
21298
212992008-05-14 Kenichi Handa <handa@m17n.org>
21300
21301 These changes are to delete all legacy font-handling codes, and
21302 make Emacs use only font-backends.
21303
21304 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
21305 (frame.o, image.o, print.o): Depend on $(FONTSRC).
21306
21307 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
21308
21309 * charset.h (Vcharset_non_preferred_head)
21310 (Vcurrent_iso639_language): Extern them.
21311
21312 * charset.c (Vcharset_non_preferred_head): New variable.
21313 (Vcurrent_iso639_language): New variable.
21314 (syms_of_charset): Declare it as a Lisp variable.
21315 (char_charset): Don't check non preferred charsets. As a last
21316 resort, return charset_unicode.
21317 (Fset_charset_priority): Update Vcharset_non_preferred_head.
21318
21319 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
21320 conditionals. Don't check enable_font_backend. Delete all codes
21321 used only when USE_FONT_BACKEND is not defined.
21322
21323 * dispextern.h (struct glyph_string): Change type of `font' to
21324 `struct font *'.
21325 (struct glyph_string): New member underline_position and
21326 underline_thickness.
21327 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
21328 (struct face): Change type of `font' to `struct font *'.
21329 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
21330 (per_char_metric, encode_char): Delete externs.
21331 (calc_pixel_width_or_height): Adjust the prototype.
21332
21333 * emacs.c (enable_font_backend): Delete extern.
21334 (main): Don't set enable_font_backend. Don't check the command
21335 line argument "-disable-font-backend".
21336
21337 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
21338 (enum font_property_index): New members FONT_DPI_INDEX,
21339 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
21340 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
21341 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
21342 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
21343 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
21344 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
21345 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
21346 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
21347 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 21348 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
21349 (struct font): Many members from old "struct font_info" moved to
21350 here. Members font and entity deleted.
21351 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
21352 the new font-related objects.
21353 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
21354 (CHECK_FONT_GET_OBJECT): Likewise.
21355 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 21356 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
21357 (struct font_driver): New members case_sensitive anc check.
21358 Type of the member list and open changed.
aac0c6e3
MR
21359 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
21360 (font_symbolic_width, font_find_object, font_get_spec)
21361 (font_set_lface_from_name): Delete extern.
21362 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
21363
21364 * font.c: Include <strings.h>.
21365 (enable_font_backend): Delete it.
21366 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
21367 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 21368 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
21369 (null_string): Delete it.
21370 (null_vector): Make it static.
21371 (font_family_alist): Delete it.
21372 (Qnormal): Extern it.
21373 (QCextra, QClanguage): Delete it.
21374 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
21375 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 21376 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 21377 the string. Callers changed.
bba3e508 21378 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
21379 objects.
21380 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
21381 (font_style_to_value, font_style_symbolic): New function.
21382 (build_font_family_alist): Delete it.
21383 (font_registry_charsets): Use Fassoc_string instead of
21384 assq_no_quit.
21385 (font_prop_validate_symbol): Don't return null_string.
bba3e508 21386 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
21387 style-related values in a font vector.
21388 (font_property_table): Delete entries for QClanguage and
21389 QCantialias, add entries for QCavgwidth.
21390 (get_font_prop_index): Delete the 2nd argument FROM.
21391 (font_prop_validate): Arguments changed.
bba3e508 21392 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
21393 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
21394 (font_parse_fcname, font_unparse_fcname)
21395 (font_prepare_composition): Likewise.
ef1b0ba7 21396 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 21397 (otf_open): Delete the 1st arg entity.
bba3e508 21398 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
21399 (font_score): New arg alternate_families. Adjusted for the change
21400 of font-related objects.
21401 (font_sort_entites): New arg best_only.
21402 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
21403 Delete them.
21404 (font_match_p): Check alternate families.
21405 (font_find_object): Delete it.
21406 (font_check_object): New function.
bba3e508 21407 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
21408 (font_delete_unmatched): New arg.
21409 (font_list_entities): Call font_driver->list with a spec that
21410 doesn't specify style-related properties.
21411 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 21412 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
21413 (font_close_object, font_has_char, font_encode_char)
21414 (font_get_name, font_get_spec): Likewise.
21415 (font_spec_from_name, font_clear_prop, font_update_lface):
21416 New functions.
21417 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
21418 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 21419 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
21420 (font_range): New function.
21421 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 21422 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 21423 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 21424 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
21425 (Finternal_set_font_style_table): Arguments changed.
21426 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 21427 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
21428 change of font-related objects.
21429 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
21430
21431 * fontset.h (struct font_info): Delete it. Most members go to
21432 struct font.
ef1b0ba7 21433 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
21434 (enum FONT_SPEC_INDEX): Delete it.
21435 (font_info, list_fonts_func, load_font_func, query_font_func)
21436 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
21437 (get_font_repertory_func, new_fontset_from_font_name):
21438 Delete externs.
aac0c6e3
MR
21439 (fontset_from_font_name): Extern it.
21440 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
21441 (FONT_INFO_FROM_FACE): Deleted.
21442 (face_for_font): Adjust prototype.
21443
21444 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
21445 conditionals. Don't check enable_font_backend. Delete all codes
21446 used only when USE_FONT_BACKEND is not defined.
21447 (get_font_info_func, list_font_func, load_font_func)
21448 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
21449 (get_font_repertory_func): Delete them.
21450 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
21451 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
21452 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
21453 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
21454 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
21455 (fontset_compare_rfontdef): New function.
21456 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
21457 rfont-defs by qsort. Adjusted for the change of font-group vector.
21458 (load_font_get_repertory): Deleted.
21459 (fontset_find_font): Use new macros to ref/set elements of
21460 font-def and rfont-def.
21461 (fontset_font): Fix the timing of remembering that no font for C.
21462 (free_face_fontset): Do nothing if the face has no fontset.
21463 (face_suitable_for_char_p): Use new macros to ref/set elements of
21464 rfont-def.
21465 (face_for_char): Likewise. Call face_for_char with font_object.
21466 (fs_load_font): Delete. Delete #pragma surrounding it.
21467 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 21468 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
21469 font-spec.
21470 (Fset_fontset_font): Likewise. Use new macros to set elements of
21471 font-def.
21472 (Fnew_fontset): Use font_unparse_xlfd to generate
21473 FONTSET_ASCII (fontset).
21474 (new_fontset_from_font_name): Deleted.
ef1b0ba7 21475 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
21476 a fontset is already created for the font. FIx updating of
21477 Vfontset_alias_alist.
21478 (fontset_ascii_font): Deleted.
bba3e508 21479 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
21480 (Finternal_char_font): Likewise.
21481 (Ffontset_info): Likewise.
21482 (syms_of_fontset): Don't check load_font_func.
21483
21484 * fns.c (internal_equal): Handle PREV_FONT.
21485
21486 * frame.h: Delete USE_FONT_BACKEND conditional.
21487
21488 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
21489 conditionals. Don't check enable_font_backend. Delete all codes
21490 used only when USE_FONT_BACKEND is not defined.
21491 (x_set_font): Call x_new_font, not x_new_fontset2.
21492 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
21493 already set for the frame.
21494
bba3e508
SM
21495 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
21496 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
21497 of intern_downcase. Use FONT_SET_STYLE to set a style-related
21498 font property. If a font is scalable, set avgwidth property to 0.
21499 Set font-entity property by font_put_extra.
21500 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 21501 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
21502 (ftfont_spec_pattern): New function.
21503 (ftfont_list): Return a list, not vector.
21504 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
21505 (ftfont_list_family): Don't downcase names.
21506 (ftfont_free_entity): Deleted.
21507 (ftfont_open): Return a font-object. Adjusted for the change of
21508 struct font. Get underline_thickness and underline_position from
21509 font property. Don't update dpyinfo->smallest_font_height and
21510 dpyinfo->smallest_char_width.
21511 (ftfont_close): Don't free `struct font'.
bba3e508 21512 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
21513 (ftfont_encode_char, ftfont_text_extents): Likewise.
21514
21515 * ftxfont.c (ftxfont_list): Return a list, not vector.
21516 (ftxfont_open): Return a font-object. Adjusted for the change of
21517 struct font. Get underline_thickness and underline_position from
21518 font property. Don't update dpyinfo->smallest_font_height and
21519 dpyinfo->smallest_char_width.
21520 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 21521 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 21522
bba3e508
SM
21523 * image.c (image_ascent): Don't include "charset.h".
21524 Include "character.h" and "font.h".
aac0c6e3
MR
21525
21526 * lisp.h (enum pvec_type): New member PREV_FONT.
21527 (Fassoc_string): EXFUN it.
21528
21529 * print.c: Include font.h.
21530 (print_object): Handle font-related objects.
21531
21532 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
21533 conditionals. Don't check enable_font_backend. Delete all codes
21534 used only when USE_FONT_BACKEND is not defined.
21535 (handle_auto_composed_prop): Do nothing if it->f is not on a
21536 window system. Check how many following characters can be
21537 displayed by the same font.
21538 (calc_pixel_width_or_height): Type of the 4th arg is changed to
21539 'struct font *'.
21540 (get_char_face_and_encoding): Assign the whole encoding task to
21541 the `encode-char' method of a font driver.
bba3e508 21542 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
21543 face' and `struct glyph_string'.
21544 (fill_glyph_string): Likewise.
21545 (get_per_char_metric): Arguments changed.
bba3e508 21546 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
21547 and `struct glyph_string'.
21548 (produce_stretch_glyph, calc_line_height_property)
21549 (x_produce_glyphs): Likewise.
21550
21551 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
21552 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
21553 used only when USE_FONT_BACKEND is not defined.
21554 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
21555 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
21556 (Qp): Extern them.
21557 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
21558 Deleted.
21559 (struct font_name): Deleted.
21560 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
21561 (compare_fonts_by_sort_order): New function.
21562 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
21563 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
21564 Deleted.
21565 (Fx_family_fonts): Use font_list_entities, and sort fonts by
21566 compare_fonts_by_sort_order.
21567 (Fx_font_family_list): Call Ffont_family_list.
21568 (face_numeric_value, face_numeric_weight, face_numeric_slant)
21569 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
21570 (face_symbolic_slant, face_symbolic_swidth)
21571 (split_font_name_into_vector, build_font_name_from_vector)
21572 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
21573 (font_rescale_ratio, split_font_name, build_font_name)
21574 (free_font_names, sort_fonts, x_face_list_fonts)
21575 (face_font_available_p, sorted_font_list, cmp_font_names)
21576 (font_list_1, concat_font_list, font_list, remove_duplicates):
21577 Deleted.
21578 (Fx_list_fonts): Use Ffont_list.
21579 (LFACE_AVGWIDTH): Deleted.
21580 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
21581 by FONTP.
21582 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
21583 (set_lface_from_font_name): Delete it.
ef1b0ba7 21584 (set_lface_from_font): Rename from
aac0c6e3
MR
21585 set_lface_from_font_and_fontset. Caller changed. Don't set
21586 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
21587 for face.
21588 (merge_face_vectors): Copy font-spec if necessary.
21589 Clear properties of the font-spec if necessary.
21590 (merge_face_ref): Clear properties of the font-spec if necessary.
21591 (Finternal_set_lisp_face_attribute): Likewise.
21592 (set_font_frame_param): Use font_load_for_lface to load a
21593 font-object, and call Fmodify_frame_parameters with it.
21594 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
21595 font name by Ffont_xlfd_name.
21596 (Finternal_lisp_face_attribute_values): Don't check QCweight,
21597 QCslant, and QCwidth.
21598 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21599 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21600 Compare fonts by EQ.
21601 (lookup_non_ascii_face): Deleted.
21602 (face_for_font): The 2nd argument changed.
21603 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21604 Check atomic font properties by case insensitive.
21605 (realize_non_ascii_face): Set face->overstrike correctly.
21606 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
21607 (dump_realized_face): Get font name from
21608 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
21609
21610 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21611 conditionals. Don't check enable_font_backend. Delete all codes
21612 used only when USE_FONT_BACKEND is not defined.
21613 (xic_create_xfontset): Original code deleted and renamed from
21614 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
21615 (x_make_gc): Don't set GCFont in GCs.
21616 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21617 opened by "fixed".
21618 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21619 find_ccl_program_func, query_font_func, set_frame_fontset_func,
21620 get_font_repertory_func.
21621
21622 * xfont.c: Include <stdlib.h> and "ccl.h".
21623 (struct xfont_info): New structure.
21624 (xfont_query_font): Deleted.
ef1b0ba7 21625 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 21626 moved from xterm.c.
bba3e508 21627 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 21628 (compare_font_names): New function.
ef1b0ba7
SM
21629 (xfont_list_pattern): Sort font names case insensitively.
21630 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
21631 (xfont_list): Return a list, not vector.
21632 (xfont_match): If the font doesn't have QCname property, generate
21633 a name from the other font properties.
21634 (xfont_open): Return a font-object. Adjusted for the change of
21635 struct font. Get underline_thickness and underline_position from
21636 font property. Don't update dpyinfo->smallest_font_height and
21637 dpyinfo->smallest_char_width.
21638 (xfont_close): Don't free struct font.
bba3e508 21639 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 21640 (xfont_done_face): Deleted.
bba3e508 21641 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
21642 (xfont_encode_char, xfont_draw): Likewise.
21643 (xfont_check): New function.
21644
bba3e508 21645 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 21646 callback function.
bba3e508
SM
21647 (xftfont_match): Adjust for the format change of font-entity.
21648 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
21649 font-object. Adjusted for the change of struct font. Return a
21650 font-object. Don't update dpyinfo->smallest_font_height and
21651 dpyinfo->smallest_char_width.
21652 (xftfont_close): Block input while calling XftFontClose.
21653 (xftfont_prepare_face): Don't block input while calling
21654 xftfont_get_colors. Adjusted for the change of struct font.
21655 (xftfont_shape): Return value of error case fixed.
21656
21657 * xrdb.c (x_load_resources): Don't setup a fontset resource.
21658
21659 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21660 conditionals.
21661 (FONT_WIDTH): Return (f)->max_width.
21662 (struct x_display_info): Delete member `font'.
21663 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21664 (x_find_ccl_program, x_get_font_repertory): Delete externs.
21665 (struct x_output): Change type of `font' to `struct font *'.
21666
21667 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21668 conditionals. Don't check enable_font_backend. Delete all codes
21669 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
21670 (x_per_char_metric, x_encode_char): Deleted.
21671 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 21672 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
21673 `struct face'.
21674 (x_draw_glyph_string_foreground)
21675 (x_draw_composite_glyph_string_foreground): Likewise.
21676 (x_draw_glyph_string): Likewise. Use font->underline_position and
21677 font->underline_thickness.
ef1b0ba7 21678 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
21679 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
21680 (x_check_font): Call `check' method of a font driver.
21681 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
21682 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 21683 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 21684 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
21685 redisplay_interface'.
21686
21687 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
21688 conditionals. Don't check enable_font_backend. Delete all codes
21689 used only when USE_FONT_BACKEND is not defined. Surround non-used
21690 code by "#ifdef OLD_FONT" and "endif".
21691 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21692
21693 * w32font.h (struct w32font_info): New member.
21694 (FONT_COMPAT): New macro.
21695 (w32font_open_internal): Prototype adjusted.
21696
21697 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21698 OLD_FONT" and "endif".
21699
21700 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
21701 conditionals. Don't check enable_font_backend. Delete all codes
21702 used only when USE_FONT_BACKEND is not defined.
21703 (w32font_open): Return a font-object. Make a font-object by
21704 font_make_object. Adjusted for the change of struct w32font_info.
21705 (w32font_close): Don't free struct font. Adjusted for the change
21706 of struct w32font_info.
21707 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 21708 Adjust for the change of struct w32font_info.
aac0c6e3
MR
21709 (w32font_draw): Likewise.
21710 (w32font_list_internal): Return a list, not vector.
21711 (w32font_open_internal): Change the 4th arg to font-object.
21712 Adjusted for the change of struct w32font_info and font-object format.
21713 (add_font_name_to_list): Don't downcase names.
21714 (w32_enumfont_pattern_entity): Make a font-entity by
21715 font_make_entity. Adjusted for the format change of font-entity.
21716 Use FONT_SET_STYLE to set a style-related font property. If a
21717 font is scalable, set avgwidth property to 0. Set font-entity
21718 property by font_put_extra.
bba3e508 21719 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
21720 (w32_weight_table, w32_decode_weight): New variables.
21721 (w32_encode_weight): New function.
bba3e508 21722 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
21723 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21724 weight value.
bba3e508 21725 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
21726
21727 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21728 conditionals. Don't check enable_font_backend. Surround non-used
21729 code by "#ifdef OLD_FONT" and "endif".
21730 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 21731 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
21732
21733 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21734 conditionals. Don't check enable_font_backend. Delete all codes
21735 used only when USE_FONT_BACKEND is not defined. Surround non-used
21736 code by "#ifdef OLD_FONT" and "endif".
21737
21738 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21739 (uniscribe_open): Return value changed to font-object.
21740 Adjusted for the format change of font-object.
bba3e508 21741 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 21742 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 21743 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
21744 font_driver.
21745
217462008-05-13 Chong Yidong <cyd@stupidchicken.com>
21747
21748 * dispnew.c (update_frame_1): Check if tty output is still valid
21749 before flushing it.
21750
217512008-05-13 Jan Djärv <jan.h.d@swipnet.se>
21752
21753 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
21754 to Gtk+ menus.
21755
217562008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
21757
21758 * dired.c (file_name_completion): Tweak the code so as to always do it
21759 in a single pass. Tighten the scope of some variables.
21760
21761 * dired.c (Qdefault_directory): New var.
21762 (file_name_completion): Use it instead of Fexpand_file_name.
21763 (syms_of_dired): Initialize it.
21764
217652008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
21766
21767 * fileio.c (double_dollars): Remove dead code.
21768
217692008-05-10 Eli Zaretskii <eliz@gnu.org>
21770
21771 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
21772 Mention w32-get-true-file-attributes in doc string.
21773
21774 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
21775
217762008-05-09 Glenn Morris <rgm@gnu.org>
21777
21778 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
21779 2008-04-23.
21780
217812008-05-09 Eli Zaretskii <eliz@gnu.org>
21782
21783 Support for reporting owner and group of each file on MS-Windows:
21784 * dired.c (stat_uname, stat_gname): New functions, with special
21785 implementation for w32.
21786 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
21787
21788 * w32.c: Rename the_passwd_* to dflt_passwd_*.
21789 (dflt_group_name): New static variable.
21790 (dflt_group): Rename from the_group.
21791 (init_user_info): Init dflt_group fields. Get user's group name
21792 from LookupAccountSid.
21793 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
21794 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
21795 New initialization states.
21796 (globals_of_w32): Initialize them to zero. Initialize the default
21797 group name to "None".
21798 (GetFileSecurity_Name): New global var, the name of the function
21799 to call for GetFileSecurity.
21800 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
21801 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
21802 (get_file_security, get_security_descriptor_owner)
21803 (get_security_descriptor_group, is_valid_sid)
21804 (get_file_security_desc, get_rid, get_name_and_id)
21805 (get_file_owner_and_group): New functions.
21806 (stat): Use get_file_security_desc and get_file_owner_and_group to
21807 report the owner and primary group of each file. Don't ignore the
21808 high 32 bits of file's size, now that st_size is 64-bit wide.
21809 Fix test when to get true file attributes.
21810 (init_user_info): Use get_rid instead of equivalent inline code.
21811 (fstat): Don't ignore the high 32 bits of file's size.
21812
218132008-05-09 Chong Yidong <cyd@stupidchicken.com>
21814
21815 * image.c (png_load): Use correct bit-depth for setting background
21816 color.
21817
218182008-05-08 Eli Zaretskii <eliz@gnu.org>
21819
21820 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
21821 epa-hook.elc.
21822
218232008-05-08 Juanma Barranquero <lekktu@gmail.com>
21824
21825 * font.c (Ffont_match_p): Don't use `iff' in docstring.
21826
218272008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
21828
21829 * macfns.c (Fx_create_frame): Make a copy of frame parameters
21830 because the original parameters are in pure storage now.
21831 (mac_window): Remove unused params. Update callers.
21832
218332008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
21834
21835 * lread.c (substitute_object_recurse): Use lower-level primitives.
21836 Don't signal errors when traversing sub-char-tables.
21837 Don't loop over all the possible characters when traversing char-tables.
21838
21839 * print.c (print_preprocess): Add sub-char-tables to the print-table,
21840 just like we do in print.c.
21841
218422008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
21843
21844 * minibuf.c (Ftry_completion): Remove code left over from when we used
21845 scmp instead of Fcompare_strings.
21846
218472008-05-04 Juanma Barranquero <lekktu@gmail.com>
21848
21849 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
21850
218512008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21852
21853 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
21854 Create bitmap context in native byte order.
21855
21856 * macterm.c (XDrawLine)
21857 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
21858 context in native byte order.
21859
218602008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21861
21862 * config.in: Regenerate.
21863
21864 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
21865 New definitions for Image I/O support.
21866 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
21867 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
21868 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21869 (mac_data_provider_release_data, image_load_image_io)
21870 [USE_MAC_IMAGE_IO]: New functions.
21871 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
21872 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
21873 (init_image_func_pointer) [MAC_OSX]: Remove function.
21874 (image_load_quartz2d) [MAC_OSX]: Check availability of
21875 CGImageCreateWithPNGDataProvider at compile time.
21876 Use lowercase `false' for boolean constant.
21877 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
21878 Use image_load_image_io.
21879 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
21880 Don't check MyCGImageCreateWithPNGDataProvider.
21881 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
21882 Don't call init_image_func_pointer.
21883
21884 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
21885
21886 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
21887 Make variable non-static.
21888 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
21889 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21890
21891 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
21892 (RED_FROM_ULONG): Mask off higher bits.
21893 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
21894
21895 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
21896 Include AvailabilityMacros.h.
21897 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
21898 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
21899
219002008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
21901
21902 * chartab.c (Fset_char_table_range): If range is t, really set all
21903 chars to that value.
21904
219052008-05-03 Eli Zaretskii <eliz@gnu.org>
21906
21907 * dired.c (Ffile_attributes): Don't allow the device number become
21908 negative.
21909
219102008-05-02 Daiki Ueno <ueno@unixuser.org>
21911
21912 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
21913
219142008-05-02 Juri Linkov <juri@jurta.org>
21915
21916 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
21917 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
21918 DEFAULT argument as a list of default values in docstrings.
21919
219202008-05-01 Chong Yidong <cyd@stupidchicken.com>
21921
21922 * puresize.h (BASE_PURESIZE): Increase to 1210000.
21923
219242008-05-01 Martin Rudalics <rudalics@gmx.at>
21925
21926 * dispnew.c (change_frame_size_1): Preserve small windows when
21927 shrinking frames by calling set_window_height|width with third
21928 arg 2.
21929
21930 * window.h (struct window): Replace field too_small_ok by field
21931 resize_proportionally.
21932
21933 * window.c (make_window): Initialize resize_proportionally.
21934 (enlarge_window): Temporarily set resize_proportionally to make
21935 sure that shrink_windows does scale the window proportionally.
21936 (shrink_windows): When window has resize_proportionally set try
21937 to shrink it proportionally by stealing from other windows.
21938 (struct saved_window, Fset_window_configuration)
21939 (compare_window_configurations): Handle resize_proportionally.
21940 (WINDOW_TOTAL_SIZE): New macro.
21941 (window_min_size, shrink_windows, size_window): Use it.
21942 (check_min_window_sizes): Remove. Invalid values of
21943 window-min-height|width are handled by window_min_size_2 now.
21944 (size_window, Fsplit_window, enlarge_window)
21945 (adjust_window_trailing_edge, grow_mini_window): Don't call
21946 check_min_window_sizes.
21947 (window_min_size_2, window_min_size_1, window_min_size):
21948 New argument safe_p for retrieving "safe" minimum sizes.
21949 (Fdisplay_buffer, Fsplit_window, enlarge_window)
21950 (adjust_window_trailing_edge, grow_mini_window):
21951 Adjust arguments of window_min_size... functions.
21952 (shrink_windows): Argument min_size removed. New argument
21953 safe_p allows shrinking windows to their safe minimum sizes.
21954 Calculate minimum size and decide whether a window shall be
21955 deleted for each window individually.
21956 (size_window): When nodelete_p equals 2, tell shrink_windows to
21957 delete windows only if their new minimum size is no more safe.
21958 (shrink_window_lowest_first): Call window_min_size_1 to make
21959 sure to preserve modeline of bottom-most window when resizing
21960 the minibuffer.
21961 (Fset_window_configuration, Fcurrent_window_configuration)
21962 (compare_window_configurations): Do not handle
21963 window-min-height|width any more.
21964 (syms_of_window): Clarify window-min-height|width doc-strings.
21965
219662008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
21967
21968 * dired.c (file_name_completion): Fix up the encoding/decoding issue
21969 some more. Copy some of the code from Ftry_completions.
21970 Remove special case code that dates back to initial revision when the
21971 slash was only added when necessary and that can't trigger nowadays.
21972
219732008-04-27 Kenichi Handa <handa@m17n.org>
21974
21975 * font.c (font_prop_validate): Signal `error' instead of `font'.
21976
219772008-04-29 Jason Rumney <jasonr@gnu.org>
21978
21979 * w32fns.c (Fw32_battery_status): New defun.
21980 (syms_of_w32fns): Defsubr it.
21981
219822008-04-28 Andreas Schwab <schwab@suse.de>
21983
21984 * dired.c (file_name_completion): Fix another mixing of encoded
21985 and decoded names.
21986
219872008-04-28 Juanma Barranquero <lekktu@gmail.com>
21988
21989 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
21990
219912008-04-27 Juanma Barranquero <lekktu@gmail.com>
21992
21993 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
21994
219952008-04-27 Andreas Schwab <schwab@suse.de>
21996
21997 * dired.c (file_name_completion): Fix inappropriate mixing of
21998 encoded and decoded names.
21999
22000 * xterm.c (XTread_socket): Fix use of uninitialized variable.
22001
22002 * puresize.h (BASE_PURESIZE): Increase to 1200000.
22003
220042008-04-26 Eli Zaretskii <eliz@gnu.org>
22005
22006 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
22007 2008-03-31, it's not needed anymore with `struct stat' definition
22008 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
22009 for the same reasons.
22010
220112008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
22012
22013 * m/sparc.h: Additional redefinitions for GNU/Linux.
22014
220152008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22016
22017 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
22018 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
22019 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
22020 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
22021 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
22022 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
22023 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22024 Likewise.
22025
22026 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
22027 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
22028 (mac_ax_number_of_characters): Add externs.
22029 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
22030 [USE_MAC_TSM]: Likewise.
22031 (mac_handle_text_input_event) [MAC_OSX]:
22032 Handle kEventTextInputOffsetToPos for no active input area case.
22033 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
22034 (mac_handle_document_access_event)
22035 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
22036 (install_application_handler) [MAC_OSX]: Register handlers for
22037 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
22038 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22039 Register mac_handle_document_access_event.
22040
22041 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
22042 Make functions non-static.
22043
220442008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
22045
22046 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
22047 (read_file_name_completion_ignore_case, insert_default_directory)
22048 (Qdefault_directory): Move to minibuffer.el.
22049 (Fread_file_name): Call the new `read-file-name' instead.
22050
220512008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22052
22053 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
22054 Make function non-static.
22055 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
22056 Remove function.
22057 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
22058 Move to mactoolbox.c.
22059 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
22060
22061 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
22062 (mac_rect_make): New macro.
22063
22064 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
22065 instead of float.
22066 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
22067 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
22068 (XSetBackground) [USE_CG_DRAWING]: Likewise.
22069 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
22070 CGRectMake.
22071 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
22072 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
22073 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
22074 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
22075 instead of WindowRef in argument type.
22076 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
22077 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
22078 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
22079 instead of DISPLAY. All uses changed.
22080 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
22081 (x_calc_absolute_position): Simplify so as not to use
22082 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
22083
22084 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
22085 instead of WindowRef in argument type.
22086 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
22087 [TARGET_API_MAC_CARBON]: Remove externs.
22088 (create_apple_event, mac_event_parameters_to_lisp)
22089 [TARGET_API_MAC_CARBON]: Add externs.
22090
22091 * mactoolbox.c (Vmac_ts_script_language_on_focus)
22092 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
22093 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
22094 is clicked.
22095 (x_activate_menubar): Remove extern for saved_menu_event_location.
22096 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
22097 Move from mac.c.
22098
220992008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22100
22101 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
22102 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
22103
221042008-04-23 Jason Rumney <jasonr@gnu.org>
22105
22106 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
22107 attributes only for local files.
22108
22109 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
22110 default to Qlocal.
22111
221122008-04-22 Juri Linkov <juri@jurta.org>
22113
22114 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
22115 read-buffer-to-switch instead of using the letter "B".
22116
221172008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
22118
22119 * fileio.c (Qdefault_directory): New variable.
22120 (Fread_file_name): Use it to pass `dir' to the completion functions.
22121
221222008-04-20 Chong Yidong <cyd@stupidchicken.com>
22123
22124 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
22125
221262008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
22127
22128 * keyboard.c (Vpre_help_message): Remove.
22129 (show_help_echo): Remove default C code.
22130
22131 * dired.c (directory_files_internal, file_name_completion):
22132 Only call ENCODE_FILE if the string is indeed decoded.
22133
221342008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22135
22136 * Makefile.in (TOOLKIT_DEFINES): Remove.
22137 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
22138
221392008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22140
22141 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
22142 (mactoolbox.o): New target.
22143
22144 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
22145 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
22146
22147 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
22148 Use mac_set_frame_window_background instead of XSetWindowBackground.
22149 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
22150 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
22151 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
22152 instead of SetWindowTitleWithCFString.
22153 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
22154 Move function to mactoolbox.c.
22155 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
22156 Use mac_set_window_modified instead of SetWindowModified.
22157 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
22158 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
22159 (Fx_focus_frame): Use mac_front_non_floating_window instead of
22160 FrontNonFloatingWindow. Use mac_activate_window instead of
22161 ActivateWindow. Use mac_active_non_floating_window instead of
22162 ActiveNonFloatingWindow.
22163 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
22164 Use mac_show_hourglass and mac_hide_hourglass.
22165 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
22166 instead of GetGlobalMouse.
22167 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
22168 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
22169 Use mac_bring_window_to_front instead of BringToFront.
22170 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
22171 mactoolbox.c.
22172 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
22173 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
22174 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
22175 mactoolbox.c.
22176
22177 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
22178 (XtPointer): Move typedef from macmenu.c.
22179 (enum button_type): Move enum from macmenu.c.
22180 (widget_value): Move typedef from macmenu.c.
22181 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
22182 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22183 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22184 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22185 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22186 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22187 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22188 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
22189 (Selection): Move typedef from macselect.c.
22190 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
22191 macterm.c.
22192 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
22193 (mac_is_window_collapsed, mac_bring_window_to_front)
22194 (mac_send_window_behind, mac_hide_window, mac_show_window)
22195 (mac_collapse_window, mac_front_non_floating_window)
22196 (mac_active_non_floating_window, mac_activate_window)
22197 (mac_move_window_structure, mac_move_window, mac_size_window)
22198 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
22199
22200 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
22201 (enum mac_menu_kind): Move enum to mactoolbox.c.
22202 (min_menu_id): Move variable to mactoolbox.c.
22203 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
22204 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
22205 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22206 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22207 [TARGET_API_MAC_CARBON]: Likewise.
22208 (XtPointer): Move typedef to macgui.h.
22209 (enum button_type): Move enum to macgui.h.
22210 (widget_value): Move typedef to macgui.h.
22211 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22212 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22213 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22214 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22215 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22216 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22217 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
22218 (popup_activated_flag): Make variable non-static.
22219 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
22220 (add_menu_item, fill_menu, dispose_menus):
22221 Move functions to mactoolbox.c.
22222 (restore_show_help_function, menu_target_item_handler)
22223 (install_menu_target_item_handler, mac_handle_dialog_event)
22224 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
22225 [TARGET_API_MAC_CARBON]: Likewise.
22226 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
22227 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22228 (find_and_call_menu_selection, name_is_separator): Make function
22229 non-static.
22230 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
22231 to mactoolbox.c.
22232 (set_frame_menubar): Don't call install_menu_quit_handler.
22233 (menu_item_selection): New variable.
22234 (mac_menu_show): Use create_and_show_popup_menu.
22235 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
22236 selection but set variable menu_item_selection. All uses changed.
22237 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
22238 Call install_menu_quit_handler. Move to mactoolbox.c.
22239
22240 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
22241 (Selection): Move typedef to macgui.h.
22242 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
22243 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
22244 Make variables non-static.
22245 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22246 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
22247 Make functions non-static.
22248 (Vmac_service_selection) [MAC_OSX]: Likewise.
22249 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
22250 (mac_valid_selection_target_p, mac_clear_selection)
22251 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22252 (mac_put_selection_value, mac_selection_has_target_p)
22253 (mac_get_selection_value, mac_get_selection_target_list)
22254 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
22255 Move functions to mactoolbox.c.
22256 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
22257 Likewise.
22258 (copy_scrap_flavor_data, mac_handle_service_event)
22259 (install_service_handler) [MAC_OSX]: Likewise.
22260 (syms_of_macselect) <Vmac_dnd_known_types>:
22261 Use mac_dnd_default_known_types.
22262
22263 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
22264 Move to mactoolbox.c.
22265 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
22266 (Fx_selection_owner_p): Add EXFUN.
22267 (install_window_handler, remove_window_handler, XSetWindowBackground):
22268 Remove externs.
22269 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
22270 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
22271 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
22272 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
22273 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
22274 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
22275 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
22276 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
22277 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
22278 (create_and_show_popup_menu, mac_get_selection_from_symbol)
22279 (mac_valid_selection_target_p, mac_clear_selection)
22280 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22281 (mac_put_selection_value, mac_selection_has_target_p)
22282 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
22283 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
22284 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
22285 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22286 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
22287 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22288 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
22289 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22290 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22291
22292 * mactoolbox.c: New file.
22293
222942008-04-18 Jason Rumney <jasonr@gnu.org>
22295
22296 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
22297
222982008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22299
22300 * character.c (Fmultibyte_char_to_unibyte):
22301 Return latin1 chars unchanged.
22302
22303 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
22304 relocated if it points to `name'.
22305
223062008-04-17 Kenichi Handa <handa@m17n.org>
22307
22308 * data.c (Faset): Allow setting a multibyte character in an
22309 ASCII-only unibyte string.
22310
22311 * lisp.h (STRING_SET_MULTIBYTE): New macro.
22312
223132008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
22314
22315 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
22316 done in config.h.
22317
223182008-04-16 Juanma Barranquero <lekktu@gmail.com>
22319
22320 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
22321 (Fchar_direction): Add usage in the docstring.
22322
223232008-04-15 Chong Yidong <cyd@stupidchicken.com>
22324
22325 * keyboard.c (read_key_sequence): Remove always-true checks.
22326
223272008-04-14 Jason Rumney <jasonr@gnu.org>
22328
22329 * w32font.c (w32font_open_internal): Set max_bounds.descent in
22330 compatibility struct, for better underline positioning.
22331
223322008-04-13 David Hansen <david.hansen@gmx.net>
22333
22334 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
22335 string.
22336
223372008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
22338
22339 * m/hp800.h (XUINT, XSET): Remove.
22340
223412008-04-12 Juanma Barranquero <lekktu@gmail.com>
22342
22343 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
22344 previous change.
22345
223462008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
22347
22348 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
22349 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
22350
223512008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22352
22353 * keymap.h (map_keymap_canonical): Declare.
22354 * xmenu.c (single_keymap_panes): Use it.
22355
223562008-04-11 Glenn Morris <rgm@gnu.org>
22357
22358 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
22359 set the target's value to that of the alias.
22360
223612008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22362
22363 * term.c (set_tty_color_mode): Left over typo.
22364
223652008-04-10 Michael Albinus <michael.albinus@gmx.de>
22366
22367 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
22368 only after check for file name handler functions. Signal, when
22369 native functionality is not supported.
22370 (syms_of_fileio): Declare it unconditionally.
22371
223722008-04-10 Jason Rumney <jasonr@gnu.org>
22373
22374 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
22375 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
22376
22377 * w32.c (logon_network_drive): Also logon to remote drives that
22378 are mapped to drive letters.
22379
223802008-04-10 Glenn Morris <rgm@gnu.org>
22381
22382 * xdisp.c (truncate-partial-width-windows): Doc fix.
22383
223842008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
22385
22386 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
22387 Move functions to minibuffer.el.
22388 (syms_of_fileio): Don't declare them.
22389
223902008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22391
22392 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
22393 (syms_of_minibuf): Remove its initialization.
22394
22395 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
22396
223972008-04-09 Juanma Barranquero <lekktu@gmail.com>
22398
22399 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
22400
224012008-04-09 Jason Rumney <jasonr@gnu.org>
22402
22403 * makefile.w32-in (distclean): Delete makefile too.
22404 (maintainer-clean): New target.
22405
22406 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
22407
22408 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
22409 for new font backend and composite cases.
22410
224112008-04-09 Jan Djärv <jan.h.d@swipnet.se>
22412
22413 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
22414 Most of the code moved to run_timers.
22415 (do_pending_atimers): Call run_timers.
22416 (run_timers): New function.
22417
22418 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
22419 run atimers.
22420
22421 * process.c (wait_reading_process_output): The same as above.
22422
224232008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22424
22425 * minibuf.c (last_exact_completion): Remove variable.
22426 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
22427 (complete_and_exit_1, complete_and_exit_2)
22428 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
22429 (Fdisplay_completion_list, display_completion_list_1)
22430 (Fminibuffer_completion_help, Fself_insert_and_exit)
22431 (Fexit_minibuffer, Fminibuffer_message): Move functions to
22432 minibuffer.el.
22433 (syms_of_minibuf): Remove corresponding initializations.
22434
22435 * keyboard.c (Qdeactivate_mark): New var.
22436 (command_loop_1): Use it to call `deactivate-mark'.
22437 (syms_of_keyboard): Initialize it.
22438
22439 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
22440 to another frame.
22441 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
22442 Don't call set_tty_color_mode.
22443 (store_frame_param): Reset previous_frame rather than call
22444 set_tty_color_mode.
22445 * term.c (set_tty_color_mode): Rewrite.
22446 * dispextern.h (set_tty_color_mode): New type.
22447 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
22448
224492008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
22450
22451 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
22452 for generic chars, which do not exist any more in emacs-unicode.
22453
224542008-04-08 Michael Albinus <michael.albinus@gmx.de>
22455
22456 * coding.c (detect_coding_emacs_mule)
22457 (Ffind_operation_coding_system): Fix typo.
22458
224592008-04-08 Jason Rumney <jasonr@gnu.org>
22460
22461 * w32uniscribe.c (SNAME): Extract only symbol name.
22462
22463 * w32font.h (struct w32_metric_cache): New struct.
22464 (w32font_info): Use it.
22465 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
22466 (CACHE_BLOCKSIZE): New constants.
22467
22468 * w32font.c (Qja, Qko, Qzh): New symbols.
22469 (syms_of_w32font): Initialise them.
22470 (font_matches_spec): Use them to filter by language.
22471 (recompute_cached_metrics): Remove function.
22472 (compute_metrics, clear_cached_metrics): New functions.
22473 (w32font_encode_char): Use them to manage metric cache.
22474 (w32font_text_extents): Cache metrics for all glyphs on demand.
22475 Delay converting glyph indices to WORD until needed.
22476 (w32font_open_internal): Initialize metric cache to empty.
22477 (registry_to_w32_charset): Charset should always be a symbol.
22478 (fill_in_logfont, list_all_matching_fonts): Family should
22479 always be a symbol.
22480
224812008-04-06 Jason Rumney <jasonr@gnu.org>
22482
22483 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
22484 Give up if glyph indices not supported. Use uniscribe obtained
22485 ABC widths for individual metrics. Map glyph clusters back to
22486 characters using fClusterStart flag. Return number of glyphs
22487 produced, not chars processed.
22488 (uniscribe_shape): Map char at FROM to current glyph.
22489
224902008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22491
22492 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
22493 Use SetMenuItemHierarchicalMenu.
22494
224952008-04-05 Jason Rumney <jasonr@gnu.org>
22496
22497 * image.c (pbm_load): Allow color values up to 65535.
22498 Throw an error if max_color_idx is outside the supported range.
22499 Report an error when image size is invalid.
22500 Read two bytes at a time when raw images have max_color_idx above 255.
22501
aac0c6e3
MR
225022008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
22503
22504 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
22505 append "CCL: Quitted" when the CCL program is quitted.
22506 (setup_ccl_program): Initialize ccl->quit_silently to zero.
22507
22508 * ccl.h (struct ccl_program): New member quit_silently.
22509
225102008-04-05 Chong Yidong <cyd@stupidchicken.com>
22511
22512 * search.c (compile_pattern_1): Treat non-nil and non-string of
22513 search-spaces-regexp as nil.
22514
22515 * minibuf.c (Fassoc_string): Tweak docstring.
22516
225172008-04-05 Eli Zaretskii <eliz@gnu.org>
22518
22519 * dired.c (Ffile_attributes): Support inode numbers wider than 32
22520 bits. Remove ugly WINDOWSNT-specific kludge introduced on
22521 2008-03-14 to force inode be positive.
22522
22523 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
22524 _S_* ones, since we now use our own sys/stat.h.
22525 (stat, fstat): Don't mangle the inode number.
22526 (init_user_info): Don't restrict UID and GID to 0-60000 range.
22527
225282008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
22529
22530 * frame.h (struct frame): Give one more bit to `visible' since we use
22531 values larger than 1 to indicate obscured frames on ttys.
22532
22533 * keymap.c (Qkeymap_canonicalize): New var.
22534 (Fmap_keymap_internal): New fun.
22535 (describe_map): Use keymap-canonicalize.
22536
22537 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
22538 (Fundo_boundary): Set them.
22539 (syms_of_undo): Initialize them.
22540 (record_point): Use them instead of last_point_position*.
22541 (last_undo_buffer): Change type.
22542
225432008-04-04 Jason Rumney <jasonr@gnu.org>
22544
22545 * w32font.c (w32font_text_extents): Use font's ascent and descent.
22546 (recompute_cached_metrics): Don't set ascent and descent per char.
22547
22548 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
22549 (uniscribe_check_otf): Add GC protection before consing.
22550 Rearrange loop for counting features.
22551
225522008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
22553
22554 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
22555 buffer with byte-size of source buffer.
22556
225572008-04-03 Chong Yidong <cyd@stupidchicken.com>
22558
22559 * callint.c (Fcall_interactively): Handle temporary region even
22560 when shift-select-mode is off.
22561
225622008-04-03 Jason Rumney <jasonr@gnu.org>
22563
22564 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
22565
225662008-04-03 Kenichi Handa <handa@m17n.org>
22567
22568 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
22569 (CATEGORY_MASK_UTF_16): Likewise.
22570 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
22571 binary file.
22572 (detect_coding): Add null-byte detection for a binary file.
22573 (detect_coding_system): Likewise.
22574
225752008-04-03 Jason Rumney <jasonr@gnu.org>
22576
22577 * w32uniscribe.c: New file.
22578
22579 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
22580
22581 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
22582
22583 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
22584 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
22585 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
22586 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
22587 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
22588 (Qphonetic): New symbols.
22589 (syms_of_w32font): Initialize them.
22590 (font_supported_scripts): Use them.
22591 (w32font_list_family): List all charsets.
22592 (w32font_text_extents, recompute_cached_metrics): Fix metric
22593 calculations.
22594 (w32_enumfont_pattern_entity): Make full_type a DWORD.
22595 Give opentype fonts their own format.
22596 (font_matches_spec): New arguments backend and logfont.
22597 Handle :otf spec for uniscribe backend.
22598 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22599 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22600
22601 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22602 font backend.
22603 (globals_of_w32fns): Initialize uniscribe font backend.
22604
22605 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
22606 dependencies.
22607 (w32uniscribe.$(O)): New file to build.
22608 (FONT_OBJ): Include w32uniscribe.$(O).
22609 (LIBS): Add uniscribe libraries.
22610
22611 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22612
226132008-04-02 Chong Yidong <cyd@stupidchicken.com>
22614
22615 * callint.c (Vshift_select_mode): New var.
22616 (Finteractive): Document new ^ spec.
22617 (Fcall_interactively): Call handle-shift-selection if the ^ spec
22618 is present.
22619
22620 * keyboard.c (Vthis_command_keys_shift_translated): New var.
22621 (command_loop_1): Avoid running the direct display versions of
22622 forward-char and backward-char if shift-selection may occur.
22623 (read_key_sequence): Set Vthis_command_keys_shift_translated if
22624 shift-translation takes place.
22625
22626 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22627 avoid clobbering by define-minor-mode.
22628
22629 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22630 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22631
22632 * syntax.c (Fforward_word): Add ^ interactive spec.
22633
22634 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22635 (Fscroll_right): Add ^ interactive spec.
22636
226372008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
22638
22639 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22640
22641 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22642
22643 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22644
226452008-03-31 Juri Linkov <juri@jurta.org>
22646
22647 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22648
226492008-03-30 Jan Djärv <jan.h.d@swipnet.se>
22650
22651 * gtkutil.c (xg_set_geometry): Fix indentation.
22652 (xg_resize_outer_widget): Remove.
22653 (x_wm_size_hint_off): Fix indentation.
22654 (xg_frame_set_char_size): Call flush_and_sync after
22655 gtk_window_resize.
22656 (x_wm_set_size_hint): Pass NULL as geometry window to
22657 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22658 Add menu bar and tool bar height to base height.
22659 (xg_update_frame_menubar, free_frame_menubar)
22660 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22661 (update_frame_tool_bar, free_frame_tool_bar):
22662 Change xg_resize_outer_widget to xg_frame_set_char_size.
22663
226642008-03-30 Michael Albinus <michael.albinus@gmx.de>
22665
22666 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22667 (Fdbus_call_method): New parameter TIMEOUT.
22668 (dbus-send-signal): Optimize UNGCPRO call.
22669
226702008-03-29 Juri Linkov <juri@jurta.org>
22671
22672 * window.c (Fdisplay_buffer): Move call to
22673 Vsplit_window_preferred_function out of conditions that check
22674 if window is eligible for vertical splitting.
22675 When Vsplit_window_preferred_function is non-nil, call it and use
22676 its non-nil return value as window. Otherwise, continue doing
22677 vertical splitting using Fsplit_window with arg horflag=nil.
22678 (syms_of_window) <Vsplit_window_preferred_function>: Change the
22679 default value from `split-window' to nil.
22680
226812008-03-29 Juri Linkov <juri@jurta.org>
22682
22683 * callint.c (Fcall_interactively): Revert 2008-03-16 change
22684 for interactive code letters 'b' and 'B'.
22685
226862008-03-29 Eli Zaretskii <eliz@gnu.org>
22687
22688 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22689 multibyte string.
22690
226912008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
22692
22693 * keyboard.c (pending_funcalls): New var.
22694 (timer_check): Run it.
22695 (syms_of_keyboard): Initialize it.
22696 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22697 (Vdelete_terminal_functions): New vars.
22698 (syms_of_terminal): Initialize them.
22699 (Fdelete_terminal): Run delete-terminal-functions.
22700 * xdisp.c (safe_eval): Rewrite.
22701 (safe_call2): New fun.
22702 * frame.c (Qdelete_frame_functions): New var.
22703 (syms_of_frame): Initialize it.
22704 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
22705 * lisp.h (safe_call2, pending_funcalls): Declare.
22706
227072008-03-28 Andreas Schwab <schwab@suse.de>
22708
22709 * indent.c (Fmove_to_column): Move declaration before statements.
22710
227112008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
22712
22713 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
22714 (struct frame): Use bit fields for boolean vars.
22715
22716 * process.c (server_accept_connection): Simplify naming.
22717 (emacs_get_tty_pgrp): Use SDATA.
22718
22719 * coding.c (decode_coding_object): Fix last change.
22720
227212008-03-27 Jason Rumney <jasonr@gnu.org>
22722
22723 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22724
227252008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
22726
22727 * charset.c (Fdefine_charset_internal): Change the way of
22728 registering charsets in Vcharset_order_list.
22729 (syms_of_charset): Make the charset `eight-bit' supplementary.
22730
227312008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
22732
22733 * regex.c (EXTEND_BUFFER): Change order of pointer addition
22734 operations, to avoid having the difference between pointers
22735 overflow.
22736
227372008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
22738
22739 * indent.c (check_display_width): New fun.
22740 (scan_for_column): Use it.
22741
22742 * data.c (syms_of_data): Mark most-positive-fixnum and
22743 most-negative-fixnum as constants.
22744
22745 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
22746
22747 * indent.c (scan_for_column): Extract from current_column_1.
22748 Merge with the same code from Fmove_to_column.
22749 (current_column_1, Fmove_to_column): Use it.
22750
227512008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
22752
22753 * keymap.c (map_keymap_internal): New fun.
22754 (map_keymap): Use it.
22755 (Fmap_keymap_internal): New fun.
22756 (Fmap_keymap): Remove left-out test from before make_save_value.
22757
22758 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
22759
22760 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
22761 Use XCAR/XCDR.
22762
22763 * process.h (struct Lisp_Process): Remove filter_multibyte.
22764 * process.c (QCfilter_multibyte): Remove.
22765 (setup_process_coding_systems): Don't use filter_multibyte.
22766 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
22767 (read_process_output): Don't adjust multibyteness to filter_multibyte.
22768 (Fset_process_filter_multibyte): Change the coding-system to
22769 approximate the previous behavior.
22770 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
22771 coding-system.
22772
22773 * coding.c (decode_coding_object): When not decoding into a buffer,
22774 obey the coding system's preference of (uni|multi)byte.
22775
227762008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
22777
22778 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
22779 every char is changed and has a different byte-length.
22780 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
22781 Fix int -> EMACS_INT.
22782
227832008-03-23 David Hansen <david.hansen@gmx.net>
22784
22785 * dbusbind.c (xd_read_message): Remove extra copying of message
22786 strings. Check for NULL `interface' or `member'.
22787
227882008-03-22 Eli Zaretskii <eliz@gnu.org>
22789
22790 * w32.c (readdir): If FindFirstFile/FindNextFile return in
22791 cFileName a file name that includes `?' characters, use the 8+3
22792 alias in cAlternateFileName instead.
22793
227942008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
22795
22796 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
22797
227982008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22799
22800 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
22801 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
22802 work on current_buffer only instead (that was already the case
22803 for some of the code anyway).
22804 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
22805 (temp_set_point, temp_set_point_both): Use EMACS_INT.
22806 (SET_PT, SET_PT_BOTH): Adjust.
22807 * intervals.h (set_point, temp_set_point, set_point_both)
22808 (temp_set_point_both): Remove redundant declarations.
22809
228102008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22811
22812 * fileio.c (Finsert_file_contents):
22813 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
22814 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
22815 when buffer != current_buffer anyway.
22816
228172008-03-20 Andreas Schwab <schwab@suse.de>
22818
22819 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
22820 as default.
22821
228222008-03-19 Jason Rumney <jasonr@gnu.org>
22823
22824 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
22825 (syms_of_w32fns): Initialize them.
22826 (HOURGLASS_ID): New constant.
22827 (x_window_to_frame): Don't check hourglass_window.
22828 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
22829 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
22830 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
22831 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
22832 Only change the cursor if hourglass is not active.
22833 (Fx_create_frame): Initialize frame's current_cursor.
22834 (hourglass_atimer): Remove.
22835 (hourglass_started): New function.
22836 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
22837 (show_hourglass): Adapt to w32, changing argument to frame.
22838
22839 * w32term.h (struct w32_output): Remove hourglass_window.
22840 Add current_cursor.
22841
22842 * eval.c (call_debugger, Fsignal):
22843 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
22844 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
22845 (Fexecute_extended_command, cancel_hourglass_unwind):
22846 * minibuf.c (read_minibuf):
22847 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
22848
228492008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
22850
22851 * window.c (run_funs): New fun.
22852 (run_window_configuration_change_hook): Use it to run the buffer-local
22853 and the global part of the hook.
22854
22855 * xdisp.c (format_mode_line_unwind_data): Add window argument.
22856 (unwind_format_mode_line): Restore selected window.
22857 (x_consider_frame_title, Fformat_mode_line): Set selected window.
22858
228592008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
22860
22861 * editfns.c (Fchar_equal): Check they are valid characters.
22862
22863 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
22864
228652008-03-17 Andreas Schwab <schwab@suse.de>
22866
22867 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
22868 against a charset.
22869
22870 * lisp.h (Fbuffer_list): Declare.
22871
228722008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 22873
aac0c6e3
MR
22874 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
22875 handlebox_widget is != 0.
22876
228772008-03-16 Juri Linkov <juri@jurta.org>
22878
22879 * callint.c (Fcall_interactively): For interactive code letters
22880 'b' and 'B' put the buffer list into the list of default "future"
22881 values of the minibuffer.
22882
228832008-03-16 Andreas Schwab <schwab@suse.de>
22884
22885 * keyboard.c (read_key_sequence): Fix downcasing of letters with
22886 modifiers.
22887
22888 * regex.c (re_match_2_internal): Correct matching of a charset
22889 against latin-1 characters.
22890
228912008-03-16 Kenichi Handa <handa@m17n.org>
22892
22893 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
22894 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
22895 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
22896 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
22897 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
22898 CHAR_STRING_ADVANCE.
22899 (produce_chars): Fix for the case that the source and the
22900 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
22901 instead of CHAR_STRING_ADVANCE.
22902 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
22903 STRING_CHAR_ADVANCE.
22904
229052008-03-15 Andreas Schwab <schwab@suse.de>
22906
22907 * regex.c (re_match_2_internal): Correct matching of eight bit
22908 characters in unibyte strings.
22909
229102008-03-15 Martin Rudalics <rudalics@gmx.at>
22911
22912 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
22913 at end of range when it coincides with the end of the buffer.
22914
229152008-03-14 Eli Zaretskii <eliz@gnu.org>
22916
22917 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
22918
22919 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
22920
229212008-03-14 Jason Rumney <jasonr@gnu.org>
22922
22923 * editfns.c (initial_tz): New variable.
22924 (syms_of_editfns): Initialize it.
22925 (Fset_time_zone_rule): Set it when first called.
22926 Use it when TZSTRING is nil.
22927
22928 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
22929 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
22930 (monitor_from_point_fn, get_monitor_info_fn): New globals.
22931 (globals_of_w32fns): Initialize them.
22932 (compute_tip_xy): Use them to position tooltips.
22933
229342008-03-14 Glenn Morris <rgm@gnu.org>
22935
22936 * emacs.c (main): Revert previous change.
22937 (standard_args): Revert -internal-script back to -scriptload,
22938 and remove the long-option form.
22939
229402008-03-13 Glenn Morris <rgm@gnu.org>
22941
22942 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
22943 Remove option -enable-font-backend.
22944
229452008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
22946
22947 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
22948
229492008-03-11 Jan Djärv <jan.h.d@swipnet.se>
22950
22951 * xterm.c (x_connection_closed): For GTK: If this is the last
22952 terminal just exit without closing the display.
22953
229542008-03-11 Jason Rumney <jasonr@gnu.org>
22955
22956 * w32font.c (w32font_full_name): Use floor to round.
22957
f0131492 229582008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
22959
22960 * sound.c (alsa_configure): Declare vol at beginning of block.
22961
22962 * fontset.c (Ffontset_info): Remove extra semicolon.
22963
229642008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
22965
22966 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
22967 size of resulting string.
22968
229692008-03-10 Jason Rumney <jasonr@gnu.org>
22970
22971 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
22972
229732008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22974
22975 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
22976 Don't pretend as if characters with display property haven't been
22977 consumed for string-replacing-string case.
22978
229792008-03-08 Kim F. Storm <storm@cua.dk>
22980
22981 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
22982 (get_next_display_element, next_element_from_string)
22983 (next_element_from_ellipsis, next_element_from_buffer): Use it.
22984
229852008-03-08 Andreas Schwab <schwab@suse.de>
22986
22987 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
22988
229892008-03-06 Jason Rumney <jasonr@gnu.org>
22990
22991 * w32font.c (w32_registry): Take font_type argument. Use ANSI
22992 when charset not specified. Only translate ANSI to unicode when
22993 font_type is truetype.
22994 (w32font_coverage_ok): New function.
22995 (add_font_entity_to_list): Use it to filter unsuitable fonts.
22996
229972008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
22998
22999 * lread.c (Fread_char): Resolve modifiers.
23000 (Fread_char_exclusive): Likewise.
23001
23002 * character.c (char_resolve_modifier_mask): New function.
23003 (char_string): Use char_resolve_modifier_mask.
23004 (Fchar_resolve_modifiers): New function.
23005 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
23006 function.
23007
230082008-03-04 Jason Rumney <jasonr@gnu.org>
23009
23010 * makefile.w32-in: Always include w32font.c in the build.
23011 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
23012
230132008-03-04 Andreas Schwab <schwab@suse.de>
23014
23015 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
23016 (versionclean): Likewise.
23017
230182008-03-04 Juanma Barranquero <lekktu@gmail.com>
23019
23020 * .cvsignore: Add oo.
23021
230222008-03-03 Andreas Schwab <schwab@suse.de>
23023
23024 * coding.c (decode_coding_object): Inhibit gap shrinking while
23025 decoding in place.
23026
230272008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
23028
23029 * w32term.c: Remove unused include "gnu.h".
23030 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
23031
23032 * gnu.h: Rename to ...
23033 * emacs-icon.h: ... this.
23034 * xterm.c: Use emacs-icon.h instead of gnu.h.
23035 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
23036
230372008-03-03 Juanma Barranquero <lekktu@gmail.com>
23038
23039 * w32font.c: Include math.h.
23040
230412008-03-03 Jason Rumney <jasonr@gnu.org>
23042
23043 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
23044 Compute options separately.
23045 (w32font_open_internal): Set glyph_idx before caching metrics.
23046
23047 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
23048 Define if system headers don't.
23049 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
23050 (w32font_encode_char): Don't declare here.
23051
23052 * w32font.c (Quniscribe, QCformat): New symbols.
23053 (syms_of_w32font): Define them.
23054 (w32font_has_char): Indicate uncertainty.
23055 (w32font_encode_char): Encode as glyph point. Make static.
23056 (recompute_cached_metrics): New function.
23057 (w32font_open_internal): Use it. Set font to use glyph points
23058 initially. Set format based on type of font.
23059 (w32font_text_extents, w32font_draw): Optionally use glyph points.
23060 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
23061 on it. Set format based on information available here.
23062 (add_font_entity_to_list): Identify backend based on opentype_only.
23063
230642008-03-02 Andreas Schwab <schwab@suse.de>
23065
23066 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
23067
23068 * coding.c (decode_coding_big5, produce_chars):
23069 Fix typos in last change.
23070
230712008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
23072
23073 * gnu.h: New icon.
23074
230752008-03-02 Kenichi Handa <handa@m17n.org>
23076
23077 * coding.c (decode_coding_utf_8): When eol-type of CODING is
23078 `dos', don't decode '\r' if that is the last in the source.
23079 (decode_coding_utf_16, decode_coding_emacs_mule)
23080 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23081 (decode_coding_raw_text, decode_coding_charset): Likewise.
23082 (produce_chars): Don't decode EOL here. Use EMACS_INT.
23083
230842008-03-01 Jason Rumney <jasonr@gnu.org>
23085
23086 * w32font.c (w32font_full_name): Report point size for scalable fonts.
23087
230882008-03-01 Kim F. Storm <storm@cua.dk>
23089
23090 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
23091
230922008-03-01 Jason Rumney <jasonr@gnu.org>
23093
23094 * w32font.c (w32font_full_name): New function.
23095 (w32font_open_internal): Use it.
23096
230972008-03-01 Kim F. Storm <storm@cua.dk>
23098
23099 * dispnew.c (line_draw_cost): Fix invalid glyph check.
23100
231012008-03-01 Jason Rumney <jasonr@gnu.org>
23102
23103 * font.c (font_unparse_fcname): Increase len when style is a symbol.
23104
231052008-03-01 Jan Djärv <jan.h.d@swipnet.se>
23106
23107 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
23108 xg_frame_resized when the event is for the edit widget.
23109
ef1b0ba7 23110 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
23111
23112 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
23113 set_char_size.
ef1b0ba7 23114 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
23115 operations on widgets here. Just set frame size if needed.
23116 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
23117 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
23118 (x_wm_set_size_hint): Set size hints on the edit widget only, not
23119 the whole frame.
23120 (xg_create_tool_bar): Move attachment of the tool bar to
23121 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
23122 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
23123
231242008-03-01 Jason Rumney <jasonr@gnu.org>
23125
23126 * w32fns.c (w32_msg_pump): Disable debug code.
23127
231282008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23129
23130 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
23131
231322008-02-29 Chong Yidong <cyd@stupidchicken.com>
23133
23134 * xdisp.c (next_overlay_string): Don't set
23135 overlay_strings_at_end_processed_p if we're currently reading from
23136 a display string.
23137
231382008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
23139
23140 * xdisp.c (get_overlay_strings_1): Fix typo.
23141
231422008-02-29 Chong Yidong <cyd@stupidchicken.com>
23143
23144 * xdisp.c (get_overlay_strings_1): Add missing argument type.
23145
231462008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
23147
23148 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
23149
23150 * xdisp.c (display_mode_element): Cancel the previous change.
23151 (decode_mode_spec): Likewise.
23152 (handle_auto_composed_prop): Don't make composition if it->string
23153 is a string.
23154
231552008-02-27 Kim F. Storm <storm@cua.dk>
23156
23157 * lisp.h (GLYPH): Change type from int to struct with separate char
23158 and face_id members.
23159 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
23160 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
23161 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
23162 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
23163 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
23164 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
23165 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
23166 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
23167 handle new Lisp glyph code encoding, either an integer or a cons.
23168
23169 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
23170 (GLYPH_ALIAS): Delete.
23171 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
23172 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
23173 (GLYPH_FROM_CHAR): Replace macro by ...
23174 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
23175
23176 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
23177 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
23178 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
23179 (GLYPH_INVALID_P): New macro.
23180 (spec_glyph_lookup_face): Update prototype.
23181
23182 * dispnew.c (line_draw_cost): Adapt to new glyph type.
23183 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
23184 new glyph code encoding.
23185 (spec_glyph_lookup_face): No return value; update passed glyph instead.
23186 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
23187
23188 * xdisp.c (get_next_display_element, next_element_from_display_vector):
23189 Adapt to new glyph type and new glyph code encoding.
23190
23191 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
23192
23193 * indent.c (current_column, current_column_1, Fmove_to_column)
23194 (compute_motion): Adapt to new glyph code encoding.
23195
23196 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
23197
231982008-02-27 Chong Yidong <cyd@stupidchicken.com>
23199
23200 * process.c (wait_reading_process_output): Check for window
23201 changes caused by timers.
23202 Suggested by Johan Bockgård.
23203
232042008-02-27 Glenn Morris <rgm@gnu.org>
23205
23206 * emacs.c (USAGE1): Add `--disable-font-backend'.
23207
232082008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
23209
23210 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
23211 is made to the buffer.
23212
232132008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
23214
23215 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
23216 (face_at_string_position):
23217 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
23218 (face_at_string_position):
23219 * xdisp.c (display_string, next_overlay_change):
23220 * buffer.h (overlays_at):
23221 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
23222 Update callers.
23223
232242008-02-26 Chong Yidong <cyd@stupidchicken.com>
23225
23226 * editfns.c (Fformat): Doc fix.
23227
232282008-02-26 Juanma Barranquero <lekktu@gmail.com>
23229
23230 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
23231 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
23232 (Ffont_otf_alternates, Fquery_font): Doc fixes.
23233
232342008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23235
23236 * buffer.c (Fbuffer_swap_text): New function.
23237 (syms_of_buffer): Defsubr it.
23238
232392008-02-25 Chong Yidong <cyd@stupidchicken.com>
23240
23241 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
23242
232432008-02-25 Jason Rumney <jasonr@gnu.org>
23244
23245 * w32font.c (w32font_draw): Draw one character at a time when padding.
23246
232472008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23248
23249 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
23250 Handle a nil arg. Use run_window_configuration_change_hook.
23251 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
23252 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
23253 Use run_window_configuration_change_hook.
23254
232552008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23256
23257 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
23258 1-pixel width.
23259
232602008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23261
23262 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
23263 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
23264 if the glyph in the font is zero pixel with.
23265
23266 * dispextern.h (struct glyph_string): New member padding_p.
23267
23268 * w32font.c (w32font_draw): Pay attention to s->padding_p.
23269
23270 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
23271
23272 * xfont.c (xfont_draw): Pay attention to s->padding_p.
23273
23274 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
23275
23276 * font.c: If the font driver doesn't have `shape' function, return Qnil.
23277
232782008-02-25 Jason Rumney <jasonr@gnu.org>
23279
23280 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
23281
232822008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
23283
23284 Allow fine-grained image-cache flushing.
23285 * dispextern.h (struct image): Add `dependencies' field.
23286 (clear_image_caches): Change arg to Lisp_Object.
23287 * image.c (make_image): Initialize `dependencies' field.
23288 (clear_image_cache): Change arg to allow fine-grained flushing.
23289 Perform the flush even if image-cache-eviction-delay is nil.
23290 (clear_image_caches): Change arg to Lisp_Object.
23291 (Fclear_image_cache): Expand meaning of the argument.
23292 (mark_image): Mark `dependencies' field.
23293 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
23294 (lface_hash): Use XHASH rather than XFASTINT.
23295 (face_at_buffer_position): Fix int -> EMACS_INT position.
23296 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
23297 (select_frame_for_redisplay): Remove code duplication.
23298 (redisplay_internal): Adapt arg to call to clear_image_caches.
23299
233002008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
23301
23302 * s/vms4-0.h:
23303 * s/vms4-2.h:
23304 * s/vms4-4.h:
23305 * s/vms5-5.h: Remove, unused.
23306
23307 * s/irix5-2.h:
23308 * s/irix6-0.h:
23309 * s/riscos5.h:
23310 * s/mach-bsd4-3.h:
23311 * m/mips4.h: Remove files for obsolete systems.
23312
23313 * Makefile.in:
23314 * filelock.c:
23315 * unexmips.c:
23316 * m/hp9000s300.h:
23317 * m/iris4d.h:
23318 * s/aix3-1.h:
23319 * s/hpux.h:
23320 * s/msdos.h:
23321 * s/usg5-0.h:
23322 * s/usg5-2-2.h:
23323 * s/usg5-2.h:
23324 * s/usg5-3.h: Remove references to obsolete variables.
23325
23326 * s/irix5-0.h: Remove, move all the contents ...
23327 * s/irix6-5.h: ... here. Simplify.
23328 * config.in: Regenerate.
23329
233302008-02-24 Jason Rumney <jasonr@gnu.org>
23331
23332 * w32term.c (x_draw_glyph_string_background): Clear the background
23333 manually when cleartype is in use.
23334 (x_draw_glyph_string_foreground): Draw text transparently when
23335 cleartype is in use.
23336
23337 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
23338 a font into it unless we have to.
23339
233402008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23341
23342 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
23343 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 23344
aac0c6e3
MR
233452008-02-18 Jason Rumney <jasonr@gnu.org>
23346
23347 * w32fns.c (Fw32_shell_execute): Encode parameters.
23348
233492008-02-09 Eli Zaretskii <eliz@gnu.org>
23350
23351 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
23352
233532008-02-05 Juanma Barranquero <lekktu@gmail.com>
23354
23355 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
23356
233572008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
23358
23359 * xterm.c (x_set_offset): Don't change the gravity if
23360 CHANGE_GRAVITY is -1.
23361
233622008-02-23 Chong Yidong <cyd@stupidchicken.com>
23363
23364 * fileio.c (auto_save_error_occurred): New var.
23365 (auto_save_error): Set it.
23366 (Fdo_auto_save): Don't overwrite the error message if an auto-save
23367 error occurred.
23368
233692008-02-23 Eli Zaretskii <eliz@gnu.org>
23370
23371 * w32.c (globals_of_w32): Add initializations for
23372 g_b_init_get_sid_sub_authority and
23373 g_b_init_get_sid_sub_authority_count.
23374
233752008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
23376
23377 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
23378 (font_parse_xlfd): Use them for sanity check.
23379 (Finternal_set_font_style_table): Make sure the table is bijective.
23380
23381 Consolidate the image_cache to the terminal struct.
23382 * termhooks.h (P_): Remove redundant def.
23383 (struct terminal): New field `image_cache'.
23384 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
23385 of FRAME_X_IMAGE_CACHE.
23386 * xterm.h (struct x_display_info): Remove image_cache field.
23387 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23388 * w32term.h (struct w32_display_info): Remove image_cache field.
23389 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23390 * macterm.h (struct mac_display_info): Remove image_cache field.
23391 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23392 * xterm.c (x_term_init):
23393 * w32term.c (w32_term_init):
23394 * macterm.c (mac_term_init): Set the image_cache in the terminal.
23395 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
23396 Remove declarations.
23397 (clear_image_caches, mark_image_cache): New declarations.
23398 * xfaces.c (clear_face_cache):
23399 * xdisp.c (redisplay_internal): Use clear_image_caches.
23400 * image.c (clear_image_cache): Don't check that a frame is on
23401 a window-system before checking if it shares the same cache.
23402 (clear_image_caches): New function.
23403 (Fclear_image_cache): Use it.
23404 (mark_image): Move from allo.c.
23405 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
23406 * alloc.c (mark_image, mark_image_cache): Move to image.c.
23407 (mark_object): Don't call mark_image_cache for frames.
23408 (mark_terminals): Call mark_image_cache.
23409
23410 * lisp.h (Fdelete_terminal): Declare.
23411
23412 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
23413 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
23414 wrong_type_argument.
23415
234162008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
23417
23418 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
23419 malayalam.el, and tamil.el. Add sinhala.el.
23420
234212008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
23422
23423 * xterm.c (x_connection_closed): Consolidate identical tests.
23424 (x_delete_terminal): Don't crash if called via x_connection_closed.
23425
234262008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
23427
23428 * xdisp.c (decode_mode_spec): New arg string.
23429 (display_mode_element): Adjust for the above change.
23430
234312008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23432
23433 * callint.c (Fcall_interactively): Use AREF.
23434
234352008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
23436
23437 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
23438
234392008-02-18 Jan Djärv <jan.h.d@swipnet.se>
23440
23441 * xfns.c (Fx_show_tip): Set string to " " if empty.
23442
234432008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
23444
23445 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
23446 with Qt.
23447
234482008-02-17 Kenichi Handa <handa@m17n.org>
23449
23450 * ftfont.c (ftfont_shape): Return Lispy number.
23451
23452 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
23453 for GCs.
23454 (Finternal_set_font_selection_order): Call font_update_sort_order
23455 only when enable_font_backend is set.
23456 (realize_x_face): Set face->font_info to that of default face only
23457 when enable_font_backend is set.
23458
23459 * xdisp.c (handle_composition_prop): Set it->c to the fist
23460 character of the composed region.
23461 (fill_composite_glyph_string): Set base_face->font_info to
23462 s->font_info. Get a face for ascii from base_face->ascii_face.
23463 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
23464 with a face already decided.
23465 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
23466 non-negative.
23467 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
23468 call font_prepare_composition unconditionally.
23469
23470 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
23471
23472 * xterm.h (struct x_display_info): New member font.
23473
23474 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
23475 (x_set_mouse_face_gc, x_new_font): Likewise.
23476 (x_term_init): Setup display_info->font.
23477 (x_delete_terminal): Free display_info->font.
23478
23479 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
23480
23481 * ftxfont.c (ftxfont_default_fid): Delete it.
23482 (ftxfont_open): Set xfont->fid to 0.
23483 (ftxfont_end_for_frame): Clear data specific to the frame and the
23484 font-driver.
23485
23486 * xftfont.c (xftfont_default_fid): Delete it.
23487 (xftfont_open): Set xfont->fid to 0.
23488
23489 * fontset.c (FONTSET_OBJLIST): New macro.
23490 (fontset_find_font): Update font-object list of the fontset.
23491 (free_realized_fontset): New function.
23492 (free_face_fontset): Call free_realized_fontset.
23493 (Ffont_info): Call font_close_object only when enable_font_backend
23494 is set.
23495
23496 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
23497 [HAVE_NTGUI]: Include w32term.h.
23498 [MAC_OS]: Include macterm.ch.
23499 (font_otf_ValueRecord): Use make_number.
23500 (font_finish_cache): Fix handling of reference count.
23501 (font_clear_cache): Update num_fonts.
23502 (font_open_entity): Update smallest_char_width and
23503 smallest_font_height of the frame.
23504 (font_close_object): Update num_fonts.
23505 (Fclear_font_cache): Fix finding the target cache data.
23506
235072008-02-16 Glenn Morris <rgm@gnu.org>
23508
23509 * fontset.c (Finternal_char_font): Fix compilation warning.
23510
235112008-02-16 Eli Zaretskii <eliz@gnu.org>
23512
23513 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
23514 instead of char arrays. Enlarge the size of array passed to
23515 get_token_information.
23516
23517 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
23518 warnings.
23519
235202008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
23521
23522 * .gdbinit: Don't set `args', it breaks gdb --args.
23523
235242008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
23525
23526 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
23527 within a narrowed buffer.
23528
235292008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
23530
23531 * coding.c (decode_coding_object, encode_coding_object):
23532 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
23533
235342008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
23535
23536 * coding.c (coding_set_destination): Use BEG_BYTE rather than
23537 hardcoding 1.
23538 (detect_coding_system):
23539 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
23540 (string_char_to_byte, string_byte_to_char, insert_from_gap):
23541 * insdel.c (insert_from_gap):
23542 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
23543 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
23544 (string_to_multibyte):
23545 * character.c (chars_in_text, multibyte_chars_in_text):
23546 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
23547
23548 * character.h (FETCH_STRING_CHAR_ADVANCE)
23549 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
23550 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
23551 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
23552
23553 * casefiddle.c (casify_region): Only call after-change and composition
23554 functions on the part of the region that was changed.
23555
23556 * keyboard.c (read_avail_input):
23557 * frame.c (Fdelete_frame): Call Fdelete_terminal.
23558
235592008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23560
23561 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
23562 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
23563
235642008-02-11 Juanma Barranquero <lekktu@gmail.com>
23565
23566 * w32menu.c (push_submenu_start, push_submenu_end)
23567 (push_left_right_boundary, push_menu_pane, push_menu_item):
23568 * keyboard.c (read_key_sequence): Don't pass args with side effects
23569 to AREF, it fails when compiling with -DENABLE_CHECKING.
23570
235712008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
23572
23573 * Makefile.in (${lispsource}international/charprop.el):
23574 Delete this target.
23575
23576 * search.c (boyer_moore): Fix incorrect synching of the trunk and
23577 emacs-unicode-2.
23578
235792008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23580
23581 * terminal.c (Fdelete_terminal): Clean up the `force' path.
23582
235832008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23584
23585 * frame.c (Qnoelisp): New symbol.
23586 (syms_of_frame): Initialize it.
23587 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
23588 harmless Elisp code, from a strong `force' from x_connection_closed.
23589 * frame.h (Qnoelisp): Declare.
23590 * xterm.c (x_connection_closed): Pass `noelisp'.
23591
23592 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
23593 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
23594 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
23595 rather than `int' for the type of `type'.
23596
235972008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
23598
23599 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23600
23601 * Makefile.in (GNUC): Remove support for gcc-1.x.
23602
236032008-02-10 Richard Stallman <rms@gnu.org>
23604
23605 * lisp.h (ASET): Use AREF, not ASLOT.
23606
236072008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23608
23609 * lisp.h (ASET): Check bounds.
23610
236112008-02-10 Glenn Morris <rgm@gnu.org>
23612
23613 * buffer.c (mode-name): Doc fix.
23614
236152008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23616
23617 * Makefile.in:
23618 * emacs.c:
23619 * gmalloc.c:
23620 * keyboard.c:
23621 * lisp.h:
23622 * m/ibm370aix.h:
23623 * process.c:
23624 * regex.c:
23625 * s/hpux.h:
23626 * sysdep.c:
23627 * sysselect.h:
23628 * systty.h:
23629 * unexec.c:
23630 * w32term.c:
23631 * xsmfns.c:
23632 * xterm.c: Remove code that deals with obsolete variables.
23633
23634 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23635
23636 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23637 nothing else needs it anymore.
23638
236392008-02-09 Eli Zaretskii <eliz@gnu.org>
23640
23641 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23642 instead of unibyte_char_to_multibyte.
23643
236442008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23645
23646 * s/gnu-linux.h: Remove commented out code.
23647
23648 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23649
23650 * Makefile.in: Update what RMS says about using autoconf.
23651 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23652 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23653 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23654 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23655
236562008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
23657
23658 * keymap.c (Fkey_description): Move side effect outside of macro call.
23659
23660 * xfaces.c (Finternal_make_lisp_face):
23661 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23662
23663 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23664 (syms_of_fontset): Use ASET.
23665
23666 * fns.c (concat): Move side effect outside of macro call.
23667 (hash_clear): Use ASET.
23668
236692008-02-08 Richard Stallman <rms@gnu.org>
23670
23671 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23672 If FORCE, and frame has a surrogate minibuffer for another frame,
23673 delete the other frame first.
23674
236752008-02-07 Timo Savola <timo.savola@iki.fi>
23676
23677 * xterm.c (x_detect_focus_change): Handle embed client message.
23678 (handle_one_xevent): Ditto.
23679 (handle_one_xevent): If embedded and we get a button press/release,
23680 request focus.
23681 (xembed_set_info, xembed_send_message): New functions.
23682 (x_make_frame_visible): Call xembed_set_info if embedded.
23683 (x_make_frame_invisible): Call xembed_set_info if embedded.
23684 (x_term_init): Initialize Xatom_XEMBED.
23685 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23686 (x_iconify_frame): Ditto.
23687
23688 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23689 (enum xembed_info, enum xembed_message, enum xembed_focus)
23690 (enum xembed_modifier, enum xembed_accelerator): New.
23691 (xembed_set_info, xembed_send_message): Declare.
23692 (FRAME_X_EMBEDDED_P): New.
23693
23694 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23695 gtk_plug_new.
23696
23697 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23698 window ID of a frame.
23699 (x_window): Reparent frame if embedded.
23700 (Fx_create_frame): Don't set border width if embedded.
23701
23702 * emacs.c (USAGE3): Add --parent-id.
23703 (standard_args): Ditto.
23704
237052008-02-07 Jan Djärv <jan.h.d@swipnet.se>
23706
23707 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
23708
237092008-02-07 Jim Meyering <meyering@redhat.com>
23710
23711 Use "do...while (0)", not "if (1)...else" in macro definitions.
23712 The latter provokes a warning from gcc about the empty else, when
23713 followed by ";". Also, without that trailing semicolon, it would
23714 silently swallow up any following statement.
23715 * syntax.h (SETUP_SYNTAX_TABLE)
23716 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
23717 * buffer.h (DECODE_POSITION): Likewise.
23718 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23719 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23720 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23721 (FETCH_CHAR_ADVANCE): Likewise.
23722 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23723
237242008-02-07 Jim Meyering <meyering@redhat.com>
23725
23726 * lread.c [lint]: Don't include <sys/inode.h>.
23727
237282008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
23729
23730 * xselect.c (x_handle_dnd_message):
23731 * xmenu.c (digest_single_submenu, xmenu_show):
23732 * xdisp.c (with_echo_area_buffer_unwind_data)
23733 (format_mode_line_unwind_data, unwind_format_mode_line)
23734 (display_menu_bar):
23735 * eval.c (Ffetch_bytecode):
23736 * doc.c (store_function_docstring):
23737 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23738 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23739 * buffer.c (add_overlay_mod_hooklist): Use ASET.
23740
237412008-02-07 Kenichi Handa <handa@m17n.org>
23742
23743 * ftxfont.c (ftxfont_open): Don't set
23744 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
23745
23746 * ftfont.c (ftfont_open): Fix previous change.
23747
237482008-02-06 Jason Rumney <jasonr@gnu.org>
23749
23750 * w32font.c (w32font_text_extents): Fill in lbearing metric.
23751 Use cached metrics for ASCII characters.
23752 (w32font_open_internal): Don't set font's owning_frame.
23753 Cache metrics for ASCII characters.
23754
23755 * w32font.h (struct w32font_info): Add ascii_metrics.
23756 Remove owning_frame.
23757
237582008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
23759
23760 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
23761 to negative value.
23762
23763 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
23764
23765 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
23766
23767 * charset.c (syms_of_charset): Set QCtest and Qeq.
23768
237692008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
23770
23771 * process.c (Fstart_process):
23772 * callproc.c (Fcall_process): Handle the case where
23773 Funhandled_file_name_directory returns nil.
23774
23775 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
23776 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
23777 * font.c (check_gstring): Use them and AREF to access the vector before
23778 we know it's really a gstring.
23779 (Ffont_shape_text): Fix typo.
46e722a9 23780 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
23781
23782 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
23783 Declare.
23784
23785 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
23786
237872008-02-05 Jason Rumney <jasonr@gnu.org>
23788
23789 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
23790 Set smallest_font_height and smallest_char_width in display info.
23791
237922008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
23793
23794 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
23795
237962008-02-05 Miles Bader <miles@gnu.org>
23797
23798 * xfaces.c (get_lface_attributes, merge_named_face)
23799 (lookup_named_face, lookup_derived_face, realize_named_face):
23800 Revert 2008-02-01 change by cyd@stupidchicken.com.
23801
238022008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
23803
23804 * fontset.c (Ffontset_info): Handle the case of inhibitting the
23805 fallback fonts.
23806 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
23807
238082008-02-04 Jason Rumney <jasonr@gnu.org>
23809
23810 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
23811 set full_name.
23812 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
23813
238142008-02-03 Jason Rumney <jasonr@gnu.org>
23815
23816 * makefile.w32-in (OBJ1): Include font.o here.
23817 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
23818
238192008-02-02 Jason Rumney <jasonr@gnu.org>
23820
23821 * makefile.w32-in (temacs): Bump EMHEAP to 21.
23822
238232008-02-01 Jason Rumney <jasonr@gnu.org>
23824
23825 * s/cygwin.h: Define VIRT_ADDR_VARIES.
23826
23827 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
23828
238292008-02-01 Andreas Schwab <schwab@suse.de>
23830
23831 * Makefile.in (shortlisp, lisp): Update for rename of
23832 ../lisp/language/myanmar.el.
23833
238342008-02-01 Chong Yidong <cyd@stupidchicken.com>
23835
23836 * xfaces.c (get_lface_attributes): Delete function.
23837 (merge_named_face, lookup_named_face, lookup_derived_face)
23838 (realize_named_face): Call lface_from_face_name directly, and use
23839 the fact that merge_face_vectors does not alter its FROM argument.
23840
238412008-02-01 Jason Rumney <jasonr@gnu.org>
23842
23843 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
23844 input in the default locale. Handle non-Unicode multibyte input.
23845
238462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23847
23848 * fontset.c (reorder_font_vector): Exclude nil elements from the
23849 font group. Don't try multiple fonts.
23850 (fontset_font): Adjust for the above change.
23851 (Finternal_char_font): Return nil if the found font doesn't
23852 contain the character ch.
23853
23854 * Makefile.in (lisp, shortlisp): Add cham.el.
23855
238562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23857
23858 * font.h (FONTP): Make it return 1 also for a font-object.
23859
23860 * .gdbinit (xfontset): New function.
23861
23862 * font.c (font_find_for_lface): Check if the character C is
23863 supported or not only for the first font.
23864
23865 * fontset.c (reorder_font_vector): Fix typo.
23866 (fontset_find_font): Don't add a font-spec specifying a script.
23867 Use 0 (not Qt) for the indication of empty font-group. Change the
23868 format of RFONT-DEF. Return Qt if no font in the font-group
23869 support the character.
23870 (fontset_font): Adjust for the above change. If no font was
23871 found the character, remember that.
23872 (face_for_char): Adjust for the change of RFONT-DEF.
23873 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
23874 no font for the target.
23875 (Finternal_char_font): Adjust for the change of RFONT-DEF.
23876
238772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23878
23879 * font.c (font_load_for_face): Handle the case that the font in
23880 face->lface is a string.
23881
238822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23883
23884 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
23885
238862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23887
23888 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
23889 Fix previous change. If the frame is not on a window system,
23890 signal an error.
23891
238922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23893
bba3e508
SM
23894 * coding.c (decode_coding_object, encode_coding_object):
23895 Adjust marker positions after conversion.
aac0c6e3
MR
23896
23897 * lisp.h (struct Lisp_Marker): New member need_adjustment.
23898
238992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23900
23901 * font.c (font_find_for_lface): Fix the handling of the return
23902 value of font_has_char.
23903 (Ffont_shape_text): Fix previous change.
23904
23905 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
23906 (fontset_ref_and_range): Delete it.
23907 (fontset_find_font): Call char_table_ref_and_range instead of
23908 FONTSET_REF_AND_RANGE.
23909 (make_fontset): Don't setup font groups of Latin here.
23910 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
23911 (new_fontset_from_font): Make the specified font the default for
23912 all Latin characters.
23913
239142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23915
23916 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
23917 is on a window system before accessing the fontset of the frame.
23918
239192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23920
23921 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
23922
23923 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
23924 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
23925
23926 * font.c (Ffont_shape_text): If the font driver doesn't have a
23927 shaper function, make zero-width glyphs to have at least one-pixel
23928 width. Fix setting of `to' field of glyphs.
23929
239302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23931
23932 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
23933 glyphs.
23934
23935 * font.h (struct font_driver): Improve docstring of member `shape'.
23936
239372008-02-01 Kenichi Handa <handa@m17n.org>
23938
23939 * composite.c (syms_of_composite): Fix docstring of
23940 auto-composition-function.
23941
23942 * font.h (LGLYPH_SIZE): New macro.
23943
23944 * font.c (Ffont_fill_gstring): Stop filling when a character not
23945 supported by the font is found.
23946 (Ffont_shape_text): When a shape callback function returns nil,
23947 try at most two more times with larger gstring.
23948 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
23949
23950 * xdisp.c (handle_auto_composed_prop): Change the argument to
23951 auto-composition-function.
23952
23953 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
23954 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
23955 Lispy glyph and store it in the lgstring.
23956
23957 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
23958
23959 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
23960
239612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23962
23963 * font.c (Ffont_shape_text): Avoid unnecessary composition.
23964
23965 * fontset.c (Vfont_encoding_charset_alist): New variable.
23966 (syms_of_fontset): DEFVAR it.
23967 (reorder_font_vector, fontset_find_font): Optimize for the case of
23968 no need of reordering.
23969 (face_for_char): Map the charset property by
23970 Vfont_encoding_charset_alist.
23971
239722008-02-01 Jason Rumney <jasonr@gnu.org>
23973
23974 * w32font.c (logfonts_match): Don't check adstyle here.
23975 (font_matches_spec): Check here against physical font instead.
23976 (add_font_entity_to_list): Avoid some substitutions.
23977
23978 * font.c (font_parse_fcname): Default weight and slant to normal.
23979 (font_score): Prefer normal fonts if weight or slant unspecified.
23980 (font_score) [WINDOWSNT]: Scale weight difference down to closer
23981 match freetype scores.
23982
239832008-02-01 Jason Rumney <jasonr@gnu.org>
23984
23985 * w32font.c (w32font_text_extents): Don't use the frame stored in the
23986 font, as it may have been deleted.
23987 (w32_enumfont_pattern_entity): Map generic family to adstyle using
23988 most common hyphenless variation.
23989 (logfonts_match): Check generic family.
23990 (font_matches_spec): Don't check generic family here.
23991 (fill_in_logfont): Set generic family based on adstyle.
23992
23993 * w32font.h (w32font_get_cache): Update declaration.
23994
239952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23996
23997 * ftfont.c (ftfont_get_cache): Adjust the argument type.
23998
23999 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
24000 If none of the new drivers are available, call font_update_drivers
24001 with the old drivers.
24002
24003 * w32font.c (w32font_get_cache): Adjust the argument type.
24004
24005 * xfont.c (xfont_get_cache): Adjust the argument type.
24006
24007 * font.h (struct font_driver): Change argument type of get_cache.
24008
24009 * xftfont.c (xftfont_start_for_frame): Delete prototype.
24010
24011 * font.c (Ffont_get): Fix arguments to Fassoc.
24012 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
24013 (font_clear_cache): New function.
24014 (font_list_entities, font_matching_entity): Use font_get_cache.
24015 (font_update_drivers): Call font_clear_cache when finishing a driver.
24016
24017 * fontset.c (fontset_find_font): Fix previous change.
24018
240192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24020
24021 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
24022 dpyinfo->font_table.
24023 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
24024 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
24025
24026 * font.c (font_at): Handle the case that the arg C is negative.
24027 Handle the unibyte case.
24028 (Ffont_at): Call font_at with the arg C -1.
24029
24030 * xdisp.c (handle_auto_composed_prop): Don't get a character at
24031 the position here, and call font_at with the arg C -1.
24032 Don't check the range of the existing composition at the point.
24033
240342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24035
24036 * fontset.c (fontset_add): New args charset_id and family.
24037 Change caller.
24038 (load_font_get_repertory, fontset_find_font): Assume that
24039 font_spec is always a font-spec object.
24040 (Fset_fontset_font): Always store a font-spec object in a fontset.
24041
24042 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
24043 instead of get_property_and_range.
24044
240452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24046
24047 * xftfont.c (struct xftfont_info): Delete the member ft_face.
24048 (xftfont_open): Don't keep locking face.
24049 (xftfont_close): Don't unlock face.
24050 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
24051
24052 * fontset.c (fontset_find_font): Don't prefer a font of
24053 supplementary charset.
24054
240552008-02-01 Kenichi Handa <handa@m17n.org>
24056
24057 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
24058 script, langsys_tag to langsys, new member script.
24059 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 24060 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
24061 listing to the script specified in that property. Fix arg to
24062 OTF_check_features.
24063
240642008-02-01 Jason Rumney <jasonr@gnu.org>
24065
24066 * w32font.h: New file.
24067
24068 * w32font.c: Include it.
24069 (struct w32font_info): Add owning_frame field. Move to w32font.h.
24070 (w32font_open): Set owning_frame.
24071 (w32font_text_extents): Use owning_frame.
24072 (struct font_callback_data): Add opentype_only field.
24073 (add_font_entity_to_list): Use it to filter fonts.
24074 Don't check against full name.
24075 (w32font_list_internal): New function.
24076 (w32font_list): Use it.
24077 (w32font_match_internal): New function.
24078 (w32font_match): Use it.
24079 (w32font_open_internal): New function.
24080 (w32font_open): Use it.
24081 (w32font_get_cache, w32font_close, w32font_has_char)
24082 (w32font_encode_char, w32font_text_extents, w32font_draw):
24083 Make non-static.
24084
24085 * makefile.w32-in (w32font.o): Depend on w32font.h.
24086
240872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24088
24089 * charset.c (Fdefine_charset_internal): Record a supplementary
24090 charset at the tail of Vcharset_order_list.
24091
24092 * font.c (Ffont_shape_text): Fix the return value.
24093
24094 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
24095
24096 * xdisp.c (handle_auto_composed_prop): Fix previous change.
24097
240982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24099
24100 * ftfont.c (struct OpenTypeSpec): New struct.
24101 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
24102 (ftfont_get_open_type_spec): New function.
24103 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
24104
24105 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
24106
241072008-02-01 Jason Rumney <jasonr@gnu.org>
24108
24109 * w32font.c (add_font_entity_to_list): Compare only the beginning
24110 of full name.
24111
241122008-02-01 Kenichi Handa <handa@m17n.org>
24113
24114 * xdisp.c (handle_auto_composed_prop): Simplify the code.
24115 Never return HANDLED_RECOMPUTE_PROPS.
24116
241172008-02-01 Kenichi Handa <handa@m17n.org>
24118
24119 * font.c (font_gstring_produce): Delete it.
24120
24121 * composite.h (COMPOSITION_METHOD):
24122 Handle COMPOSITION_WITH_GLYPH_STRING.
24123
241242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24125
24126 * xfont.c (Qx): Delete.
24127 (syms_of_xfont): Don't initialize Qx.
24128
24129 * composite.h (enum composition_method):
24130 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
24131
241322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24133
24134 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
24135 (choose_face_font): Accept new form of font-spec.
24136
24137 * frame.h (font_driver_list): Declare it unconditionally.
24138 (struct frame): Define members font_driver_list and font_data_list
24139 unconditionally.
24140
24141 * fontset.c: Include "font.h" unconditionally.
24142 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
24143 (Fset_fontset_font): Accept a font-spec object.
24144
24145 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
24146 PIXEL_SIZE part a wild card.
24147
24148 * dispextern.h (struct glyph_string): Define members clip and
24149 num_clips unconditionally.
24150 (struct face): Define members font_info and extra unconditionally.
24151
24152 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
24153 ftfont_info only when HAVE_LIBOTF is defined.
24154
241552008-02-01 Andreas Schwab <schwab@suse.de>
24156
24157 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
24158 and end.
24159
241602008-02-01 Jason Rumney <jasonr@gnu.org>
24161
24162 * w32font.c (w32font_driver): Add new fields.
24163
241642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24165
24166 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
24167 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
24168 (LIBES): Add @M17N_FLT_CFLAGS@.
24169
24170 * composite.c (compose_text): Don't treat the new style
24171 composition specially.
24172
24173 * emacs.c (main): Call syms_of_font unconditionally.
24174
24175 * font.h (FONT_ENTITY_NOT_LOADABLE)
24176 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
24177 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
24178 (struct font_driver): New member shape.
24179 (font_registry_charsets): Extern it.
24180 (font_find_for_lface, font_prepare_composition): Adjust prototype.
24181 (font_otf_capability, font_drive_otf): Delete their externs.
24182
24183 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
24184 (font_charset_alist, font_registry_charsets): Move from xfont.c
24185 and rename.
24186 (font_prop_validate_otf): New function.
24187 (font_property_table): Register it for QCotf.
24188 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
24189 (font_drive_otf): Delete.
24190 (font_prepare_composition): New arg F. Adjust for the change of
24191 lispy gstring.
24192 (font_find_for_lface): New arg C.
24193 (font_load_for_face): Adjust for the change of font_find_for_lface.
24194 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
24195 lispy gstring.
24196 (Ffont_shape_text): New function.
24197 (Fopen_font): If the font size is not given, use 12-pixel.
24198 (Ffont_at): New arg STRING.
40b1a3a9 24199 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
24200 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
24201 conditionally.
24202
24203 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
24204 fonts of the same font-spec. Change the format of RFONT-DEF.
24205 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
24206 Adjust for the change of RFONT-DEF.
24207 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
24208
24209 * ftfont.h: New file.
24210
24211 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
24212 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24213 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24214 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
24215 font_otf_capability and font_drive_otf, set ftfont_shape.
24216 (ftfont_list): Adjust for the change of :otf property value.
24217 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
24218 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
24219 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
24220 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24221 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
24222 (otf_gstring, gstring, m17n_flt_initialized): New variables.
24223
24224 * w32term.c (x_draw_composite_glyph_string_foreground):
24225 Adjust for the change of lispy gstring.
24226
24227 * xdisp.c (handle_composition_prop): Adjust for the change of
24228 lispy gstring. Call a function for auto-composition with the
24229 third arg it->window.
24230 (fill_composite_glyph_string): Adjust for the change of lispy string.
24231 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
24232
24233 * xfaces.c (set_font_frame_param): Adjust for the change of
24234 font_find_for_lface.
24235
24236 * xfont.c (x_font_charset_alist): Move to font.c and rename.
24237 (xfont_registry_charsets): Likewise. Change caller.
24238 (syms_of_xfont): Don't handle x_font_charset_alist.
24239
24240 * xftfont.c: Include "ftfont.h".
24241 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24242 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24243 (xftfont_close) [HAVE_LIBOTF]: Close otf.
24244 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24245 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
24246 Set xftfont_driver.shape to xftfont_shape.
24247
24248 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24249 the change of lispy gstring.
24250
242512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24252
24253 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
24254
242552008-02-01 Jason Rumney <jasonr@gnu.org>
24256
24257 * w32font.c (w32font_draw): Fill background manually.
24258
242592008-02-01 Jason Rumney <jasonr@gnu.org>
24260
24261 * font.c (Qfontp): Remove unused symbol.
24262 (QCantialias): New symbol.
24263 (syms_of_font): Define it.
24264 (font_property_table): Set a validator for QCantialias.
24265
24266 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
24267 Define if not already.
24268 (QCfamily): Share with xfaces.c.
24269 (Qstandard, Qsubpixel, Qnatural): New symbols.
24270 (syms_of_w32font): Define them. Don't define QCfamily here.
24271 (w32_antialias_type, lispy_antialias_type): New functions.
24272 (w32_enumfont_pattern_entity): New arg requested_font.
24273 Set antialias parameter if non-default was requested.
24274 (fill_in_logfont): Fill in lfQuality if :antialias specified.
24275
242762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24277
24278 * lread.c (read1): Undo the previous change.
24279
242802008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
24281
24282 * frame.c (Fdelete_frame): Call font_update_drivers only when
24283 USE_FONT_BACKEND is defined.
24284
242852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24286
24287 * font.h (struct font_bitmap): New member bits_per_pixel.
24288 (struct font_driver): New members start_for_frame and end_for_frame.
24289 (struct font_data_list): New struct.
24290 (font_put_frame_data, font_get_frame_data): Extern them.
24291
24292 * frame.h (struct frame): New member font_data_list.
24293
24294 * font.c (font_update_drivers): Call driver->start_for_frame and
24295 driver->end_for_frame at proper timings.
24296 (font_put_frame_data, font_get_frame_data): New functions.
24297 (Ffont_spec): Add usage in the docstring.
24298
24299 * frame.c (make_frame): Initialize f->font_data_list to NULL.
24300 (Fdelete_frame): Call font_update_drivers.
24301
24302 * xftfont.c (struct xftface_info): Delete the member xft_draw.
24303 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
24304 (xftfont_get_xft_draw): New function.
24305 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
24306 (xftfont_end_for_frame): New function.
24307 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
24308
24309 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
24310 Change argument. Cache GCs in the per-frame data.
24311 (struct ftxfont_frame_data): New struct.
24312 (ftxfont_draw_bitmap): New arg gc_fore and flush.
24313 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
24314 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
24315 (ftxfont_end_for_frame): New function.
24316 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
24317
24318 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
24319
243202008-02-01 Kenichi Handa <handa@m17n.org>
24321
24322 * xselect.c (Vselection_coding_system)
24323 (Vnext_selection_coding_system): Delete them.
24324 (syms_of_xselect): Don't declare selection-coding-system and
24325 next-selection-coding-system. They are declared in select.el.
24326
243272008-02-01 Jason Rumney <jasonr@gnu.org>
24328
24329 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
24330
24331 * w32fns.c: Include imm.h.
24332 (get_composition_string_fn, get_ime_context_fn): New optional
24333 system functions.
24334 (globals_of_w32fns): Load them from imm32.dll.
24335 (ignore_ime_char): New flag.
24336 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
24337 WM_IME_ENDCOMPOSITION messages.
24338
24339 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
24340 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
24341
243422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24343
24344 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
24345 (READCHAR_REPORT_MULTIBYTE): New macro.
24346 (readchar): New 2nd arg MULTIBYTE.
24347 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
24348 Make symbol's name multibyte according to the multibyteness of the
24349 source.
24350
243512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24352
24353 * xfaces.c (face_for_overlay_string): Call lookup_face with
24354 correct arguments (fix of synching with the trunk).
24355
243562008-02-01 Kenichi Handa <handa@m17n.org>
24357
24358 * font.c (font_prop_validate_symbol, font_prop_validate_style)
24359 (font_prop_validate_non_neg, font_prop_validate_spacing):
24360 Delete argument prop_index.
24361 (font_property_table): Change arguments to validater. Change Callers.
24362 (font_lispy_object): Delete.
24363 (font_at): Use font_find_object instead fo font_lispy_object.
24364
243652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24366
24367 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
24368 and file names.
24369
243702008-02-01 Jason Rumney <jasonr@gnu.org>
24371
24372 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
24373 (font_matches_spec): Remove debug output.
24374 (add_font_entity_to_list): Avoid using substituted fonts.
24375
243762008-02-01 Jason Rumney <jasonr@gnu.org>
24377
24378 * doc.c (Fsnarf_documentation):
24379 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
24380
243812008-02-01 Miles Bader <miles@gnu.org>
24382
24383 * dispextern.h (struct glyph_row): Only define "clip" field if
24384 HAVE_WINDOW_SYSTEM is defined.
24385
243862008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24387
24388 Fix up multi-tty merge.
24389
24390 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
24391 and indentation.
24392
24393 * xfaces.c (free_realized_face, clear_face_gcs):
24394 Include font_done_for_face in the input_blocked section, just in case.
24395
24396 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
24397 (get_char_face_and_encoding): Undo last change and remove the *other*
24398 duplicate definition (i.e. keep the one that's better scoped and that
24399 includes code for the font-backend).
24400
24401 * terminal.c (create_terminal): Default keyboard_coding to
24402 `no-conversion' and terminal_coding to `undecided'.
24403
24404 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
24405
24406 * fontset.c (free_realized_fontsets): Check that the table entry does
24407 contain a fontset before trying to compare it to `base'.
24408
24409 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
24410 syms_of_charset, and syms_of_coding earlier because init_window_once
24411 now needs Vcoding_system_hash_table to be setup.
24412
24413 * coding.h (default_buffer_file_coding): Remove.
24414
24415 * coding.c (default_buffer_file_coding): Remove.
24416 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
24417 than ->symbol, and use the terminal-local coding system.
24418 (syms_of_coding): Don't setup the coding-systems that are not
24419 terminal-local.
24420 (Fdefine_coding_system_internal): Use XCAR/XCDR.
24421
24422 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
24423 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
24424
24425 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
24426 in chartab.c and were re-added here by mistake.
24427 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
24428
24429 * doc.c (Fsnarf_documentation):
24430 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
24431 src to etc.
24432
24433 * ChangeLog.10: Add mistakenly removed entry.
24434
244352008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
24436
24437 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
24438
244392008-02-01 Miles Bader <miles@gnu.org>
24440
24441 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
24442 Add extra args to FACE_FOR_CHAR.
24443
244442008-02-01 Kenichi Handa <handa@m17n.org>
24445
24446 * keymap.c (where_is_internal_1): If key is a cons, store the copy
24447 in sequence.
24448
24449 * chartab.c (map_sub_char_table, map_char_table): If the range
24450 contains just one character, call the function with that character
24451 even if the depth is not 3.
24452
244532008-02-01 Jason Rumney <jasonr@gnu.org>
24454
24455 * w32font.c (w32font_text_extents): Calculate metrics for the
24456 whole string.
24457
244582008-02-01 Jason Rumney <jasonr@gnu.org>
24459
24460 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
24461
244622008-02-01 Jason Rumney <jasonr@gnu.org>
24463
bba3e508
SM
24464 * w32term.c (x_set_glyph_string_clipping):
24465 Use get_glyph_string_clip_rects.
aac0c6e3
MR
24466 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24467 Adjust for the change of struct glyph_string.
24468
24469 * w32font.c (w32font_draw): Do clipping here.
24470
244712008-02-01 Kenichi Handa <handa@m17n.org>
24472
24473 * xftfont.c (xftfont_draw): Adjust for the change of struct
24474 glyph_string.
24475
bba3e508
SM
24476 * xterm.c (x_set_glyph_string_clipping):
24477 Use get_glyph_string_clip_rects.
aac0c6e3
MR
24478 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24479 Adjust for the change of struct glyph_string.
24480
24481 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
24482 the resulting clip(s}.
24483 (expose_overlaps): Add arg r. Change callers. Set it to
24484 row->clip temporarily.
24485 (expose_window): Redraw rows overlapping the exposed area.
24486
24487 * dispextern.h (struct glyph_row): New member clip.
24488 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
24489 clip_height, new member clip, and num_clips.
24490
244912008-02-01 Kenichi Handa <handa@m17n.org>
24492
24493 * data.c (Fchar_or_string_p): Fix docstring.
24494
244952008-02-01 Kenichi Handa <handa@m17n.org>
24496
24497 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
24498 create a temporary XftDraw object.
24499
245002008-02-01 Kenichi Handa <handa@m17n.org>
24501
24502 * font.c (Ffontp): Fix docstring.
24503
24504 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
24505 strong evidence of ISO-2022.
24506
245072008-02-01 Kenichi Handa <handa@m17n.org>
24508
24509 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
24510 SYNTAX_ENTRY_FOLLOW_PARENT.
24511
245122008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24513
24514 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
24515 its type.
24516 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24517 Update to the new type of weak_hash_tables and next_weak.
24518
24519 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
24520 a plain C pointer to Lisp_Hash_Table.
24521
24522 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
24523 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
24524 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
24525 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
24526 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
24527 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
24528 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
24529 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
24530 (GC_EQ): Remove since they've been identical to their non-GC_
24531 alter-egos ever since the markbit was eradicated.
24532
24533 * alloc.c:
24534 * buffer.c:
24535 * buffer.h:
24536 * data.c:
24537 * fileio.c:
24538 * filelock.c:
24539 * fns.c:
24540 * frame.h:
24541 * lisp.h:
24542 * macterm.c:
24543 * print.c:
24544 * process.c:
24545 * w32fns.c:
24546 * w32menu.c:
24547 * w32term.c:
24548 * xfns.c:
24549 * xmenu.c:
24550 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
24551
245522008-02-01 Kenichi Handa <handa@m17n.org>
24553
24554 * chartab.c (map_sub_char_table): Make it work for the top-level
24555 char-table. Fix handling of parent char-table.
24556 (map_char_table): Adjust for the above change.
24557
245582008-02-01 Jason Rumney <jasonr@gnu.org>
24559
24560 * w32font.c (Qgdi): Rename from Qw32.
24561
245622008-02-01 Jason Rumney <jasonr@gnu.org>
24563
24564 * w32bdf.c (get_quoted_string): Make function static.
24565
245662008-02-01 Kenichi Handa <handa@m17n.org>
24567
24568 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
24569 bigger ascent and descent than those of the font, use them as
24570 font's ascent and descent.
24571
245722008-02-01 Kenichi Handa <handa@m17n.org>
24573
24574 * Makefile.in (${lispsource}international/charprop.el): Move this
24575 target within "#ifdef HAVE_UNIDATA" and "#endif".
24576
245772008-02-01 Kenichi Handa <handa@m17n.org>
24578
24579 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
24580 (shortlisp): Add ../lisp/language/tai-viet.el.
24581
245822008-02-01 Ulrich Mueller <ulm@gentoo.org>
24583
24584 * Makefile.in (${lispsource}international/charprop.el): Depend on
24585 temacs${EXEEXT}.
24586
245872008-02-01 Jason Rumney <jasonr@gnu.org>
24588
24589 * w32font.c (w32font_close): Delete the GDI font object.
24590
24591 * w32menu.c: Include character.h.
24592
24593 * w32proc.c: Likewise.
24594
24595 * w32select.c: Likewise.
24596
24597 * makefile.w32-in (w32proc.o): Depend on character.h.
24598
245992008-02-01 Jason Rumney <jasonr@gnu.org>
24600
24601 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24602
24603 * w32menu.c (syms_of_w32menu): Likewise.
24604
24605 * w32proc.c (syms_of_ntproc): Likewise.
24606
24607 * w32select.c (syms_of_w32select): Likewise.
24608
24609 * w32term.c (syms_of_w32term): Likewise.
24610
246112008-02-01 Jason Rumney <jasonr@gnu.org>
24612
24613 * w32font.c (w32font_draw): Delete brush after using it.
24614
246152008-02-01 Jason Rumney <jasonr@gnu.org>
24616
24617 * w32font.c (w32font_open): Don't set font_idx.
24618 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24619 to font settings.
24620 (w32font_draw): Fill background explicitly.
24621
246222008-02-01 Jason Rumney <jasonr@gnu.org>
24623
24624 * w32term.c (w32_initialize): Don't call w32font_initialize.
24625
24626 * w32font.c (w32font_info): Remove subranges.
24627 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24628 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24629 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24630 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24631 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24632 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24633 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24634 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24635 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24636 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24637 New symbols.
24638 (font_callback_data): New struct.
24639 (w32font_list, w32font_match): Use it.
24640 (w32font_open): Don't populate subranges.
24641 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24642 (w32font_encode_char): Always return unicode code-point as-is.
24643 (w32font_text_extents): Supply a transformation matrix to
24644 GetGlyphOutline. Never look up by glyph index. Avoid looping
24645 twice. Use unicode version of GetTexExtentPoint32 instead of
24646 glyph index version.
24647 (set_fonts_frame): Remove.
24648 (w32_enumfont_pattern_entity): Add frame parameter, use it to
24649 set frame parameter. Use backward compatible fake foundries.
24650 Save generic family in extra slot under QCfamily. Make width slot
24651 constant. Save QCspacing value. Save list of scripts instead of
24652 binary subranges.
24653 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
24654 (add_font_entity_to_list): Use font_callback_data struct.
24655 Filter unwanted fonts.
aac0c6e3
MR
24656 (add_one_font_entity_to_list): Use font_callback_data struct.
24657 (w32_registry): Default to iso10646_1.
24658 (fill_in_logfont): Use dpi from extra slot. Don't bother with
24659 string font registries. Don't fill in font name if it is a generic
24660 family name, fill family instead. Use spacing, family and script
24661 extra info to fill pitch, family and charset fields.
24662 (list_all_matching_fonts): Use font_callback_data struct.
24663 (unicode_range_for_char): Remove.
24664 (font_supported_scripts): New function.
24665 (w32font_initialize): Remove.
24666 (syms_of_w32font): Update which symbols are defined.
24667
246682008-02-01 Jason Rumney <jasonr@gnu.org>
24669
24670 * font.c (font_pixel_size): Reverse assq_no_quit args.
24671
24672 * w32term.h (FONT_WIDTH): Report max width, not average.
24673 (FONT_MAX_WIDTH): Remove.
24674 (FONT_AVG_WIDTH): New macro.
24675
24676 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24677 redefinition of FONT_WIDTH.
24678
24679 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24680 (w32_cache_char_metrics): Use FONT_WIDTH.
24681
24682 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24683
246842008-02-01 Jason Rumney <jasonr@gnu.org>
24685
24686 * w32font.c (w32font_open): Make lfHeight negative.
24687
24688 * w32fns.c (x_default_font_parameter): Use new style font name.
24689 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24690
246912008-02-01 Jason Rumney <jasonr@gnu.org>
24692
24693 * w32font.c (QCsubranges): New symbol.
24694 (w32font_open, w32font_has_char): Get subranges from subproperty
24695 of extra.
24696 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24697 (syms_of_w32font): Define :subranges symbol.
24698
24699 * font.c (font_put_extra): Expose externally.
24700
24701 * font.h (font_put_extra): Move declaration from font.c.
24702
24703 * font.c (Ffont_get): Use font driver to determine otf capability.
24704 (adjust_anchor): Check if driver defines anchor_point before using.
24705
24706 * w32font.c (w32font_open): Handle size, height and pixel_size better.
24707 (w32font_draw): Use options.
24708 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
24709 Fix detection of truetype fonts.
24710 (registry_to_w32_charset): Handle charsets other than iso8859-1
24711 expressed as lisp symbols.
24712 (w32_registry): Express charset as lisp symbol.
24713 (fill_in_logfont): Reverse pixel and point height logic.
24714 Don't set width here. Set quality to default.
24715
24716 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
24717 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
24718
24719 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24720 Remove redundant loop and allocation.
24721
24722 * makefile.w32-in (font.o, w32font.o): New objects.
24723 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24724 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24725
24726 * xdisp.c (fill_composite_glyph_string): Make the first arg to
24727 STORE_XCHARB a valid l-value.
24728
24729 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24730 calculations for non-Truetype fonts.
24731 (x_draw_glyph_string): Sync with xterm.c.
24732 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24733 Remove redundant code.
24734 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24735
24736 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24737 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24738
24739 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24740 (x_to_w32_charset, w32_to_x_charset): Expose externally.
24741
24742 * w32font.c: New file for w32 font backend.
24743
247442008-02-01 Kenichi Handa <handa@m17n.org>
24745
24746 * term.c: Don't include "buffer.h" twice.
24747
247482008-02-01 Kenichi Handa <handa@m17n.org>
24749
24750 * character.c (Funibyte_string): New function.
24751 (syms_of_character): Defsubr it.
24752
247532008-02-01 Jason Rumney <jasonr@gnu.org>
24754
24755 * w32term.c [USE_FONT_BACKEND]:
24756 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
24757 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
24758 (x_draw_glyph_string, x_draw_glyph_string_foreground)
24759 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
24760 (x_free_frame_resources): Sync with xterm.c.
24761
247622008-02-01 Andreas Schwab <schwab@suse.de>
24763
24764 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
24765 char-table size.
24766
247672008-02-01 Kenichi Handa <handa@m17n.org>
24768
24769 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
24770
247712008-02-01 Kenichi Handa <handa@m17n.org>
24772
24773 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
24774 font_otf_gpos, add font_drive_otf.
24775
24776 * fontset.c (fontset_find_font): Pay attention to font size
24777 specified for a font.
24778 (reorder_font_vector): Check contents of font_def.
24779
24780 * font.c (struct otf_list): Delete it.
24781 (otf_list): Make it a lisp variable.
24782 (otf_open): Use lispy otf_list.
24783 (generate_otf_features): Rename from parse_gsub_gpos_spec.
24784 (check_otf_features): New function.
24785 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
24786 New functions.
24787 (font_drive_otf): New function merging font_otf_gsub and
24788 font_otf_gpos.
24789 (font_open_for_lface): New arg spec. Change argument order.
24790 (font_load_for_face): Adjust for the change of font_open_for_lface.
24791 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
24792 Ffont_otf_gpos.
24793 (syms_of_font): Staticpro otf_list. Delete defsubr of
24794 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
24795
24796 * xfaces.c (set_font_frame_param): Adjust for the change of
24797 font_open_for_lface.
24798
24799 * font.h (font_open_for_lface): Adjust prototype.
24800 (struct font_driver): Delete members otf_gsub and otf_gpos, add
24801 member otf_drive.
24802 (font_otf_gsub, font_otf_gpos): Delete externs.
24803 (font_drive_otf): Extern it.
24804
248052008-02-01 Kenichi Handa <handa@m17n.org>
24806
24807 * font.c (font_at): If the window W is not on a window system,
24808 return Qnil.
24809
24810 * coding.c (produce_chars, encode_coding): Don't call
24811 insert_from_gap if no characters to produce.
24812
248132008-02-01 Kenichi Handa <handa@m17n.org>
24814
24815 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
24816 Fclear_face_cache.
24817
24818 * xfaces.c (face_for_font): Check also face->font==font->font.font.
24819
248202008-02-01 Miles Bader <miles@gnu.org>
24821
24822 * emacs.c (main): Change default value of `enable_font_backend' to 1.
24823 Parse "--disable-font-backend" option.
24824 (standard_args): Add "--disable-font-backend" option.
24825
248262008-02-01 Kenichi Handa <handa@m17n.org>
24827
24828 * fontset.c (fontset_find_font): New function.
24829 (fontset_font): Use fontset_find_font.
24830 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
24831 Register the specified font for all Latin characters.
24832 (new_fontset_from_font): Register the specified font for all Latin
24833 characters.
24834 (dump_fontset): For a realized fontset, include the base fontset
24835 name in the returned vector.
24836
248372008-02-01 Kenichi Handa <handa@m17n.org>
24838
24839 * character.h (CHAR_STRING): Cast C to unsigned on calling
24840 char_string.
24841
24842 * character.c (char_string): Type of arg C changed to unsigned.
24843 Signal an error if C is an invalid character code.
24844
24845 * editfns.c (general_insert_function, Fchar_to_string):
24846 Use CHARACTERP, not INTEGERP.
24847
248482008-02-01 Kenichi Handa <handa@m17n.org>
24849
24850 * character.h (MIN_MULTIBYTE_LEADING_CODE)
24851 (MAX_MULTIBYTE_LEADING_CODE): New macros.
24852
24853 * regex.c (analyse_first): Fix for multibyte characters in "case
24854 charset:" and "case categoryspec:".
24855
248562008-02-01 Andreas Schwab <schwab@suse.de>
24857
24858 * Makefile.in (LIBES): Move standard libraries to the end.
24859
248602008-02-01 Kenichi Handa <handa@m17n.org>
24861
24862 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
24863 nonzero, don't shrink the buffer nextb.
24864
24865 * buffer.h (struct buffer_text): New member inhibit_shrinking.
24866
24867 * coding.c (coding_alloc_by_making_gap): New arg offset.
24868 (alloc_destination): Call coding_alloc_by_making_gap with the arg
24869 offset.
24870 (decode_coding_iso_2022): Update coding->safe_charsets.
24871 (decode_coding_gap): Temporarily set
24872 current_buffer->text->inhibit_shrinking to 1.
24873
248742008-02-01 Kenichi Handa <handa@m17n.org>
24875
bba3e508
SM
24876 * xterm.c (x_draw_composite_glyph_string_foreground):
24877 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
24878
248792008-02-01 Juanma Barranquero <lekktu@gmail.com>
24880
24881 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
24882
248832008-02-01 Kenichi Handa <handa@m17n.org>
24884
24885 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
24886 target_multibyte instead of multibyte.
24887 (re_match_2_internal): Call bcmp_translate with target_multibyte.
24888 (bcmp_translate): Change the argument name from multibyte to
24889 target_multibyte.
24890
248912008-02-01 Kenichi Handa <handa@m17n.org>
24892
24893 These changes are to compile a regexp into a pattern that can be
24894 used both for multibyte and unibyte targets.
24895
24896 * Makefile.in (search.o): Depend on charset.h.
24897
24898 * character.c (multibyte_char_to_unibyte_safe): New function.
24899
24900 * search.c: Include "charset.h".
24901 (compile_pattern_1): Delete argument multibyte. Don't set
24902 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
24903 (compile_pattern): Don't compare cp->buf.target_multibyte.
24904 Compare cp->buf.charset_unibyte.
24905 (compile_pattern): Set cp->buf.target_multibyte.
24906
24907 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
24908
24909 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
24910
24911 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
24912 multibyte. Change callers.
24913 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
24914 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
24915 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
24916 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
24917 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
24918 (regex_compile): Make the compiled pattern usable both for
24919 multibyte and unibyte targets.
24920 (analyse_first): Make the fastmap usable both for multibyte and
24921 unibyte targets.
24922 (TRANSLATE_VIA_MULTIBYTE): Delete.
24923 (re_match_2_internal): Pay attention to the case that the
24924 multibyteness of bufp and target may be different.
24925
249262008-02-01 Kenichi Handa <handa@m17n.org>
24927
24928 * xdisp.c (x_produce_glyphs): When a font is not found, make the
24929 empty box occupy at least one column width.
24930
249312008-02-01 Miles Bader <miles@gnu.org>
24932
24933 * Makefile.in: Remove redundant HAVE_XFT clause.
24934
249352008-02-01 Kenichi Handa <handa@m17n.org>
24936
24937 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
24938
249392008-02-01 Kenichi Handa <handa@m17n.org>
24940
24941 * fontset.c (Finternal_char_font): Fix for the case of POSITION
24942 being nil.
24943
249442008-02-01 Kenichi Handa <handa@m17n.org>
24945
24946 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
24947
249482008-02-01 Kenichi Handa <handa@m17n.org>
24949
24950 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
24951
249522008-02-01 Kenichi Handa <handa@m17n.org>
24953
24954 * search.c (simple_search): Fix previous change.
24955
249562008-02-01 Kenichi Handa <handa@m17n.org>
24957
24958 * xftfont.c (ftfont_font_format): Extern declaration.
24959
24960 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
24961
24962 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
24963 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
24964
24965 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
24966 (ftfont_font_format): Fix previous change.
24967
24968 * font.h (Ffont_xlfd_name): EXFUN it.
24969
24970 * font.c (font_parse_xlfd): Fix the array size of `f'.
24971 (register_font_driver): Use EQ to compare driver->type.
24972
24973 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
24974 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
24975 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
24976
249772008-02-01 Kenichi Handa <handa@m17n.org>
24978
24979 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
24980 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
24981
249822008-02-01 Kenichi Handa <handa@m17n.org>
24983
24984 * xfont.c (xfont_open): Set font->format.
24985
24986 * xftfont.c (xftfont_open): Set font->format.
24987
24988 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
24989 (ftfont_list): Include FC_FONTFORMAT in FcObject.
24990 (ftfont_open): Set font->format.
24991 (ftfont_font_format): New function.
24992
24993 * font.h (struct font): New member format.
24994
24995 * font.c (Qopentype): New variable.
24996 (syms_of_font): Defsym it.
24997 (Fquery_font): Change the format of the last element of the return
24998 value.
24999
250002008-02-01 Kenichi Handa <handa@m17n.org>
25001
25002 * xfns.c (xic_create_xfontset): Try the default fontset name as a
25003 last resort.
25004
250052008-02-01 Kenichi Handa <handa@m17n.org>
25006
25007 * coding.c (detect_coding_charset): Fix detection of multi-byte
25008 charset.
25009
250102008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
25011
25012 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
25013
250142008-02-01 Kenichi Handa <handa@m17n.org>
25015
25016 * xdisp.c (get_next_display_element): Set it->face_id for the
25017 first component of a composition.
25018 (x_produce_glyphs): Check if the font is changed or not for composition.
25019
250202008-02-01 Kenichi Handa <handa@m17n.org>
25021
25022 * fontset.c (Qlatin): New variable.
25023 (syms_of_fontset): Define it as a lisp symbol.
25024 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
25025
250262008-02-01 Kenichi Handa <handa@m17n.org>
25027
25028 * font.c (font_unparse_fcname): Pay attention to the case that
25029 some of font property is a null string.
25030
250312008-02-01 Kenichi Handa <handa@m17n.org>
25032
25033 * term.c: Include "composite.h".
25034 (encode_terminal_code): Output all components of composition.
25035 Check the size of encode_terminal_src.
25036 (produce_glyphs): For composition, call produce_composite_glyph.
25037 (append_composite_glyph, produce_composite_glyph): New functions.
25038
25039 * xdisp.c (x_produce_glyphs): In handling composition, if a font
25040 is not found, get font_info from the current ascii face.
25041
250422008-02-01 Kenichi Handa <handa@m17n.org>
25043
25044 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
25045 buffer-file-name to Qnil before calling insert_from_buffer.
25046
25047 * font.c (font_unparse_fcname): Pay attention to the case that
25048 foundry is a null string.
25049
250502008-02-01 Kenichi Handa <handa@m17n.org>
25051
25052 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
25053
25054 * font.c (Qunicode_sip): New variable.
25055 (syms_of_font): Declare it as a Lisp symbol.
25056
25057 * font.h (Qunicode_sip): Extern it.
25058
250592008-02-01 Kenichi Handa <handa@m17n.org>
25060
25061 * composite.c (get_composition_id): Pay attention to TAB component.
25062
25063 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
25064 TAB. Adjust for the change of s->char2b which always points to
25065 the first element of allocated memory.
25066
25067 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
25068
25069 * xdisp.c (handle_composition_prop): Set it->c to the first
25070 non-TAB component.
25071 (fill_composite_glyph_string): Change argument.
25072 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
25073 (x_produce_glyphs): Fix handling of left/right padding.
25074
250752008-02-01 Kenichi Handa <handa@m17n.org>
25076
25077 * coding.c (detect_coding_system): Fix for handling off
25078 inhibit_iso_escape_detection. Fix for the case that no coding
25079 system is defined for a specific coding category.
25080
250812008-02-01 Kenichi Handa <handa@m17n.org>
25082
25083 * font.c (font_matching_entity): Delete unused local var.
25084
25085 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
25086 opening a font.
25087
25088 * fileio.c (Finsert_file_contents): On recovering a file, assume
25089 Unix-like eol.
25090 (choose_write_coding_system): On auto-saving a file, force
25091 Unix-like eol.
25092
25093 * coding.c (setup_coding_system): Fix setting of
25094 coding->common_flags based on eol_type.
25095 (coding_inherit_eol_type): If PARENT is not nil, be sure to
25096 inherit from it.
25097
250982008-02-01 Kenichi Handa <handa@m17n.org>
25099
25100 * alloc.c (NSTATICS): Increas to 0x600.
25101
251022008-02-01 Kenichi Handa <handa@m17n.org>
25103
25104 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
25105 (ftfont_list): Don't check :name property.
25106 (ftfont_match): New function.
25107 (ftfont_pattern_entity): If the pattern doesn't contain
25108 FC_SPACING, don't assume FC_MONO.
25109
25110 * font.h (struct font_driver): New member `match'.
25111 (font_update_drivers): Adjust prototype.
25112
25113 * font.c (font_parse_fcname, font_parse_name): Don't change :name
25114 property of FONT.
bba3e508
SM
25115 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
25116 Define them unconditionally.
aac0c6e3
MR
25117 (font_matching_entity): New function.
25118 (font_open_by_name): Try font_matching_entity if exact match is
25119 not found.
25120 (font_update_drivers): Delete the arg FONT. Return a list of
25121 actually used backends. Don't free faces, font caches here.
25122 Don't store data in frame parameters. Don't call x_set_font.
25123 (Ffont_spec): Store :name property as is.
25124 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
25125 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
25126 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
25127 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
25128 Call font->driver->otf_gsub instead of font_otf_gsub.
25129
25130 * frame.c (x_set_font_backend): Do more works that were done in
25131 font_update_drivers before.
25132
25133 * xfont.c (xfont_match): New function.
25134 (xfont_driver): Set xfont_driver.match to xfont_match.
25135 (xfont_draw): Set font in GC if necessary.
25136
25137 * ftxfont.c (ftxfont_match): New function.
25138 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
25139
25140 * xftfont.c (xftfont_match): New function.
25141 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
25142
251432008-02-01 Kenichi Handa <handa@m17n.org>
25144
25145 * font.h (struct font): New member scalable.
25146 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
25147 (font_otf_gsub): Adjust prototype.
25148
25149 * font.c (font_otf_capability): Fix handling of the default langsys.
25150 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
25151 Check the contents of SPEC.
25152 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
25153 (check_gstring): New function.
25154 (REPLACEMENT_CHARACTER): New macro.
25155 (font_otf_gsub): New arg alternate_subst. Be sure to set all
25156 glyph codes of GSTRING.
25157 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
25158 (font_prepare_composition): Set cmp->glyph_len.
25159 (font_open_entity): Set font->scalable.
25160 (Ffont_get): Handle :otf property.
bba3e508
SM
25161 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
25162 New functions.
aac0c6e3
MR
25163 (Fquery_font): Use font->font.full_name.
25164 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
25165 Sfont_otf_alternates.
25166
25167 * ftfont.c (ftfont_open): Set font->font.full_name and
25168 font->font.name properly. Fix calculation of font->font.height
25169 and font->min_width.
25170
25171 * ftxfont.c (ftxfont_create_gcs): New function.
25172 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
25173 (ftxfont_draw_backgrond): Fix filling region.
25174 (ftxfont_default_fid): New function.
25175 (ftxfont_open): Set xfont->fid to the return value of
25176 ftxfont_default_fid.
25177 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
25178 (ftxfont_done_face): Free only GCs that are created by
25179 ftxfont_create_gcs.
25180 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
25181
25182 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
25183 Clip to src->width, etc (not src->clip_XXX).
25184
25185 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
25186 FontBackend frame parameter.
25187
251882008-02-01 Kenichi Handa <handa@m17n.org>
25189
25190 * font.h (struct font_driver_list): New member `on'.
25191 (Fclear_font_cache): EXFUN it.
25192 (font_update_drivers): Extern it.
25193
25194 * font.c (font_unparse_fcname): Fix typo (swidth->width).
25195 (font_list_entities): Check driver_list->on.
40b1a3a9 25196 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
25197 (font_update_drivers): New function.
25198 (Fclear_font_cache): Check driver_list->on.
25199
25200 * frame.h (Qfont_backend): Extern it.
25201 (x_set_font_backend): Extern it.
25202
25203 * frame.c (Qfont_backend): New variable.
25204 (frame_parms): New element for font-backend.
25205 (x_set_font_backend): New function.
25206
25207 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
25208 FontBackend frame parameter.
25209 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
25210 x_set_font_backend.
25211
25212 * xfont.c (xfont_list): Don't try listing by :name property if the
25213 name is not for XLFD.
25214
252152008-02-01 Kenichi Handa <handa@m17n.org>
25216
25217 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
25218 (LGLYPH_SET_TO): New macros.
25219 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
25220 element of G is vector or not.
25221 (font_at): Extern it.
25222
25223 * font.c: Include window.h.
25224 (font_lispy_object): New function.
25225 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
25226 end of valid glyph.
25227 (font_close_object): Fix getting (struct font *).
25228 (font_at): New function.
25229 (Ffont_get): If FONT is a font-object, get entity from it.
25230 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
25231 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
25232 Fix range check.
aac0c6e3
MR
25233 (Ffont_at): New function.
25234 (syms_of_font): Defsubr Sfont_at.
25235
25236 * xdisp.c (it_props): Move the entry for Qauto_composed to just
25237 before the entry for Qcomposition.
25238 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
25239 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
25240 the font in gstring.
25241 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
25242 LGLYPH_FORM (g) to detect the end of valid glyph.
25243 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
25244 we are composing with gstring.
25245
25246 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
25247 Check if adjustment is vector or not.
25248
25249 * Makefile.in (font.o): Make it depends on window.h.
25250
252512008-02-01 Kenichi Handa <handa@m17n.org>
25252
25253 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
25254 adjustment is vector or not.
25255
252562008-02-01 Miles Bader <miles@gnu.org>
25257
25258 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
25259
252602008-02-01 Kenichi Handa <handa@m17n.org>
25261
25262 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 25263 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
25264 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
25265
25266 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
25267 (DEVICE_DELTA): Fix typo.
25268 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
25269 LGLYPH format.
25270
25271 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
25272 the change of LGLYPH format.
25273
252742008-02-01 Kenichi Handa <handa@m17n.org>
25275
25276 * ftfont.c (ftfont_list): Fix typo.
25277 (ftfont_build_basic_charsets): Don't include letters with diacritics.
25278
252792008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25280
25281 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
25282
25283 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
25284 xftface_info is non-NULL.
25285
252862008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25287
25288 * ftfont.c (ftfont_list): Move misplaced #endif.
25289
252902008-02-01 Kenichi Handa <handa@m17n.org>
25291
25292 * ftfont.c (ftfont_list): Pay attention to the case that
25293 FC_CAPABILITY is not defined.
25294
252952008-02-01 Kenichi Handa <handa@m17n.org>
25296
25297 * xftfont.c (xftfont_open): Set charset related members to -1.
25298
25299 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
25300 QCname.
25301 (ftfont_open): Set charset related members to -1.
25302
25303 * fontset.c (Votf_script_alist): New variable.
25304 (syms_of_fontset): Initialize it.
25305 (fontset_font): Delete unused variable.
25306
25307 * fontset.h (Votf_script_alist): Extern it.
25308
25309 * font.c (font_find_for_lface): Optimize code.
25310
25311 * font.h (font_close_object, font_merge_old_spec): Extern them.
25312
253132008-02-01 Kenichi Handa <handa@m17n.org>
25314
25315 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
25316 (syms_of_font): Initialize them.
25317 (font_pixel_size): Allow float value in dpi.
25318 (font_prop_validate_type): Delete.
25319 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
25320 Change caller.
25321 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
25322 (font_prop_validate_extra): Delete.
25323 (font_prop_validate_spacing): New function.
25324 (font_property_table): Add elements for all known properties.
bba3e508
SM
25325 (get_font_prop_index): Rename from check_font_prop_name.
25326 New argument FROM. Change caller.
aac0c6e3
MR
25327 (font_prop_validate): Validate all known properties.
25328 (font_put_extra): Delete argument force. Change caller.
25329 (font_expand_wildcards): Make it static. Fix the way of shrinking
25330 the possible range.
25331 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
25332 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
25333 Change caller.
25334 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
25335 (font_parse_fcname): Delete argument merge. Fix parsing of point
25336 size. Don't validate properties values here. Change caller.
25337 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
25338 (font_open_by_name): Delete unused variable.
25339 (Ffont_spec): Likewise. Validate property values.
25340 (Ffont_match_p): New function.
25341
25342 * font.h (QCscalable): Extern it.
25343 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
25344
25345 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
25346
25347 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
25348 (xfont_list_pattern): New function.
25349 (xfont_list): Use xfont_list_pattern.
25350
253512008-02-01 Kenichi Handa <handa@m17n.org>
25352
25353 * font.h (Flist_fonts): EXFUN it.
25354
253552008-02-01 Jason Rumney <jasonr@gnu.org>
25356
25357 * w32term.c (w32_initialize): Add back smoothing_type and
25358 smoothing_enabled definitions.
25359
253602008-02-01 Kenichi Handa <handa@m17n.org>
25361
25362 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
25363 s->face->font on determining underline position.
25364
253652008-02-01 Kenichi Handa <handa@m17n.org>
25366
25367 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
25368 (font_has_char): Accept font-object too.
25369 (font_find_for_lface): Try at first with a size specified in face.
25370
253712008-02-01 Kenichi Handa <handa@m17n.org>
25372
25373 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
25374 font_open_by_name.
25375
253762008-02-01 Kenichi Handa <handa@m17n.org>
25377
25378 * font.h (QCspacing, QCdpi): Extern them.
25379 (enum font_spacing): New enum.
25380 (FONT_PIXEL_SIZE_QUANTUM): New macro.
25381
25382 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
25383 (QCspacing, QCdpi): New variables.
25384 (syms_of_font): Initialize them.
25385 (font_pixel_size): New function.
25386 (font_put_extra): New function.
25387 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
25388 in FONT_EXTRA.
25389 (font_parse_fcname): Handle enumerated values (e.g. bold).
25390 Fix handling font size. Add QCname property that contains only
25391 unknown properties.
25392 (font_score): Change argument. Change caller. Pay attention to
25393 FONT_PIXEL_SIZE_QUANTUM.
25394 (font_sort_entites, font_list_entities, font_find_for_lface)
25395 (font_open_for_lface, font_open_by_name): Fix handling of font size.
25396 (Ffont_spec): Add QCname property that contains only unknown properties.
25397
bba3e508
SM
25398 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
25399 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
25400 listed font. Don't include scalable in pattern. Pay attention to
25401 FONT_PIXEL_SIZE_QUANTUM.
25402
254032008-02-01 Kenichi Handa <handa@m17n.org>
25404
25405 * font.c (font_parse_fcname): Fix parsing of point-size.
25406 (font_unparse_fcname): Produce symbolic names for style properties.
25407 (font_list_entities): Handle float size correctly.
25408 (font_open_by_name): Prefer `normal' property values if the name
25409 doesn't specify them.
25410
25411 * fontset.c (Finternal_char_font): Use font_get_name, not
25412 Ffont_xlfd_name.
25413
25414 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
25415 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
25416 pattern. Don't force scalable.
25417
25418 * xftfont.c (xftfont_open): For generating a name, start from
25419 96-byte buffer.
25420
254212008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25422
25423 * frame.h (x_new_fontset2): Fix prototype.
25424
254252008-02-01 Kenichi Handa <handa@m17n.org>
25426
25427 * font.h (struct font_driver): Delete member parse_name.
25428 (font_match_p, font_get_spec, font_parse_fcname)
25429 (font_unparse_fcname): Extern them.
25430 (font_get_name): Adjust prototype.
25431
25432 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
25433 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
25434 (font_expand_wildcards): Fix handling ENCODING field.
25435 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
25436 (font_parse_fcname): New function.
25437 (font_unparse_fcname): New function.
25438 (font_parse_name): New function.
25439 (font_match_p): New function.
25440 (font_get_name): Change return value to Lisp string.
25441 (font_get_spec): New function.
25442 (Qunspecified, Qignore_defface): Don't extern them.
25443 (font_find_for_lface): Assume that LFACE is fully specified.
25444 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
25445 object, use it for FACE.
25446 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
25447 driver->parse_name.
25448 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
25449
25450 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
25451 prototype.
25452
25453 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
25454 argument F. Don't call Fnew_fontset. Instead, directly call
25455 make_fontset.
25456
25457 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
25458
25459 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
25460 of x_new_fontset2.
25461
25462 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
25463 (Qsans__serif): New variables.
25464 (ftfont_generic_family_list): New variable.
25465 (syms_of_ftfont): Initialize the above variables.
25466 (ftfont_pattern_entity): Delete argument NAME.
25467 (ftfont_list_generic_family): New function.
25468 (ftfont_parse_name): Delete this function.
25469 (ftfont_list): Try generic family only when FcFontList found no font.
25470 (ftfont_list_family): Fix args to FcObjectSetBuild.
25471
25472 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
25473 object in attrs[LFACE_FONT_INDEX].
25474 (set_lface_from_font_name): Cancel all changes for font-backend.
25475 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
25476 function.
25477 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
25478 font object in QCfont attribute.
25479 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
25480 (realize_default_face) [USE_FONT_BACKEND]: Call
25481 set_lface_from_font_and_fontset.
25482
25483 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
25484 "fixed", and signal error here if no suitable font was found.
25485
25486 * xfont.c (xfont_parse_name): Delete this function.
25487
25488 * xftfont.c (xftfont_open): Change coding style of error
25489 handling. Generate fontconfig's fontname pattern.
25490
25491 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
25492 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
25493
25494 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
25495 Both args FONTSET and FONT_OBJECT must be existing ones.
25496
254972008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25498
25499 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
25500
255012008-02-01 Kenichi Handa <handa@m17n.org>
25502
25503 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
25504
25505 * font.h (struct font): Fix typo.
25506
25507 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
25508 XLFD_XXX_INDEX.
25509 (enum xlfd_field_mask): New enum.
ef1b0ba7 25510 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
25511 are followed by non-digits, return a symbol.
25512 (font_expand_wildcards): New function.
25513 (font_parse_xlfd): Fix wildcard handling.
25514 (Ffont_spec): If :name is specified, reflect the info in the other
25515 properties.
25516
25517 * ftfont.c (ftfont_pattern_entity): Fix typo.
25518 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
25519 locale.
25520
255212008-02-01 Kenichi Handa <handa@m17n.org>
25522
25523 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
25524
25525 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
25526 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
25527 registry doesn't specify encoding part.
25528 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
25529 (font_open_by_name): At first try parsing the name.
25530 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
25531 as Lisp symbols.
25532
25533 * fontset.c (reorder_font_vector): Pay attention to the case that
25534 the 3rd element of font_def is nil.
25535 (fontset_font): For the default fontset, append one more fontset
25536 elements for a script-based font specification. Don't add script
25537 attribute on finding a font.
25538 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
25539 font name.
25540 (fontset_ascii_font): If a font can't be opened, return nil.
25541
25542 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
25543 (ftfont_pattern_entity): New function.
25544 (ftfont_get_cache): Assume that freetype_font_cache is already
25545 initialized.
25546 (ftfont_list): Handle the case that a file is specified in font
25547 name. Use ftfont_pattern_entity to generate entities.
25548 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
25549 (syms_of_ftfont): Initialize freetype_font_cache.
25550
25551 * xftfont.c (xftfont_open): Make the font name fontconfig's
25552 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
25553 (xftfont_close): Free font->font.name if not NULL.
25554
25555 * xfont.c (xfont_list): If script is specified for a font, return
25556 null_vector.
25557 (xfont_list_family): Declare argument type.
25558
25559 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
25560 name, set LFACE_FONT (lface) to nil.
25561
25562 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
25563 return Qnil.
25564
255652008-02-01 Kenichi Handa <handa@m17n.org>
25566
25567 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
25568 (standard_args): Add "-enable-font-backend".
25569
255702008-02-01 Kenichi Handa <handa@m17n.org>
25571
25572 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
25573 (struct xftdraw_list, xftdraw_list): Delete them.
25574 (register_xftdraw, check_xftdraw): Delete them.
25575 (xftfont_prepare_face): Don't call register_xftdraw.
25576 (xftfont_done_face): Don't call check_xftdraw.
25577 (xftfont_draw): Get background color only when with_background is
25578 nonzero.
25579
25580 * xfont.c (xfont_encode_char): Fix calculation of char2b.
25581
255822008-02-01 Kenichi Handa <handa@m17n.org>
25583
25584 These changes are for the new font handling codes.
25585
25586 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
25587 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
25588 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
25589 (FONTSRC, FONTOBJ): New variables.
25590 (obj): Add $(FONTOBJ).
25591 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
25592 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
25593 @LIBOTF_LIBS@.
25594 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
25595 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
25596
25597 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
25598
25599 * character.h (Vscript_representative_chars): Extern it.
25600
25601 * character.c (Vscript_representative_chars): New variable.
25602 (syms_of_character): Declare it as a Lisp variable.
25603
25604 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25605 enable_font_backend is nonzero, accept the composition method
25606 COMPOSITION_WITH_GLYPH_STRING.
25607
25608 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25609 enumeration COMPOSITION_WITH_GLYPH_STRING.
25610
25611 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25612 members clip_x, clip_y, clip_width, and clip_height.
25613 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25614
25615 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25616 --enable-font-backend. Call syms_of_font.
25617
25618 * fns.c (assoc_no_quit): New function.
25619
25620 * fontset.h (FONT_INFO_FROM_FACE): New macro.
25621 (face_for_font, new_fontset_from_font)
25622 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25623
25624 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25625 (fontset_font, fontset_ascii, face_for_char)
25626 (make_fontset_for_ascii_face, Ffont_info)
25627 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25628 is nonzero, use font-backend mechanism.
25629 (find_font_encoding): Make it non-static.
25630 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25631 New functions.
25632
25633 * frame.h (struct frame): New members resx and resy.
25634 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25635 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25636
25637 * frame.c [USE_FONT_BACKEND]: Include "font.h".
25638 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25639
25640 * lisp.h (assoc_no_quit): Extern it.
25641
25642 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25643 Through out the file, use FONT_INFO_FROM_FACE instead of
25644 FONT_INFO_FROM_ID, use get_per_char_metric instead of
25645 rif->per_char_metric.
25646 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25647 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25648 (get_glyph_face_and_encoding, fill_composite_glyph_string)
25649 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25650 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25651 nonzero, use font-backend mechanism.
25652 (get_per_char_metric): New function.
25653
25654 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25655 (set_lface_from_font_name)
25656 (set_font_frame_param, free_realized_face)
25657 (prepare_face_for_display, clear_face_gcs)
25658 (Finternal_set_font_selection_order, realize_x_face)
25659 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25660 font-backend mechanism.
25661 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25662 (load_face_font) [USE_FONT_BACKEND]: Abort.
25663 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25664 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25665
25666 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25667 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25668 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
25669 nonzero, register all available font drivers.
25670 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
25671 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25672
25673 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25674 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25675 (x_set_glyph_string_clipping_exactly)
25676 (x_compute_glyph_string_overhangs)
25677 (x_draw_glyph_string_foreground)
25678 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25679 (x_free_frame_resources) [USE_FONT_BACKEND]: If
25680 enable_font_backend is nonzero, use font-backend mechanism.
25681 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25682
256832008-02-01 Kenichi Handa <handa@m17n.org>
25684
25685 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25686 system_eol_type.
25687 (syms_of_coding): Initialize system_eol_type.
25688
25689 * process.c (Fset_process_coding_system): Inherit system's eol
25690 format if necessary.
25691
256922008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25693
25694 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25695
256962008-02-01 Kenichi Handa <handa@m17n.org>
25697
25698 * coding.c (decode_eol): Pay attention to buffer relocation in
25699 del_range_2.
25700 (decode_coding): Call decode_eol before restoring undo_list.
25701
257022008-02-01 Kenichi Handa <handa@m17n.org>
25703
25704 * charset.c (Fdefine_charset_internal): Fix setting of
25705 emacs_mule_bytes.
25706
257072008-02-01 Kenichi Handa <handa@m17n.org>
25708
25709 * keyboard.c (read_char): Check if C is a character or not before
25710 looking up Vkeyboard_translate_table.
25711
257122008-02-01 Kenichi Handa <handa@m17n.org>
25713
bba3e508
SM
25714 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
25715 Fix condition to terminate the loop.
aac0c6e3
MR
25716
257172008-02-01 Kenichi Handa <handa@m17n.org>
25718
25719 * coding.c (produce_composition): Compare charbuf[i] instead of
25720 args[i] against 0.
25721 (Fterminal_coding_system): Use EQ to compare Lisp objects.
25722
257232008-02-01 Kenichi Handa <handa@m17n.org>
25724
25725 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25726 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25727 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25728 detect_coding.
25729 (emacs_mule_char): Handle old style (Emacs 20) component character
25730 of a composition.
25731 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25732 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25733 composition rule.
25734 (decode_coding_emacs_mule): Handle invalid bytes correctly.
25735
257362008-02-01 Kenichi Handa <handa@m17n.org>
25737
25738 * coding.c (encode_coding_ccl): Allocate destination dynamically
25739 when necessary.
25740
257412008-02-01 Kenichi Handa <handa@m17n.org>
25742
25743 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
25744 the loop. When quitted, show a proper error message.
25745
257462008-02-01 Kenichi Handa <handa@m17n.org>
25747
bba3e508
SM
25748 * xterm.c (x_set_glyph_string_clipping_exactly):
25749 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
25750
25751 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
25752 character sequence.
25753 (Fccl_execute_on_string): Use ASET, not XSET.
25754
257552008-02-01 Kenichi Handa <handa@m17n.org>
25756
25757 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
25758
257592008-02-01 Kenichi Handa <handa@m17n.org>
25760
25761 * coding.c (decode_coding): Fix the condition of terminating the
25762 decoding loop.
25763
257642008-02-01 Kenichi Handa <handa@m17n.org>
25765
25766 * data.c (Faset): On setting a character bigger than 255 in a
25767 unibyte string, signal an error instead of make the string multibyte.
25768
257692008-02-01 Kenichi Handa <handa@m17n.org>
25770
25771 * charset.c (map_charset_chars): Fix for ascii-compatible charset
25772 made by a mapping table.
25773
257742008-02-01 Kenichi Handa <handa@m17n.org>
25775
25776 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
25777 not.
25778 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
25779 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
25780
bba3e508
SM
25781 * xterm.c (x_draw_composite_glyph_string_foreground):
25782 Check s->face is NULL or not.
aac0c6e3
MR
25783
257842008-02-01 Kenichi Handa <handa@m17n.org>
25785
25786 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
25787 (x_draw_glyph_string): Fix drawing of right_overhang and
25788 left_overhang around/on cursor.
25789
25790 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
25791
257922008-02-01 Kenichi Handa <handa@m17n.org>
25793
25794 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
25795
257962008-02-01 Kenichi Handa <handa@m17n.org>
25797
25798 * coding.c (Fdefine_coding_system_internal)
25799 (Fdefine_coding_system_alias): Avoid a duplicated element in
25800 Vcoding_system_alist.
25801
258022008-02-01 Kenichi Handa <handa@m17n.org>
25803
25804 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
25805
25806 * coding.c (Qcoding_system_define_form): New variable.
25807 (syms_of_coding): Intern and staticpro it.
25808 (Fcoding_system_p): Check Qcoding_system_define_form.
25809 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
25810
25811 * coding.h (CODING_SYSTEM_P): If ID is not available, call
25812 Fcoding_system_p.
25813 (CHECK_CODING_SYSTEM): If ID is not available, call
25814 Fcheck_coding_system.
25815 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
25816 Try also Fcheck_coding_system.
25817
258182008-02-01 Kenichi Handa <handa@m17n.org>
25819
25820 * coding.c (code_conversion_restore): GCPRO arg.
25821
258222008-02-01 Kenichi Handa <handa@m17n.org>
25823
25824 * character.c (lisp_string_width): Check multibyteness of STRING.
25825
258262008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25827
25828 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
25829 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
25830 (decode_mac_font_name): Use decode_coding_c_string instead of
25831 decode_coding.
bba3e508
SM
25832 (x_load_font): Initialize fontp->fontset to -1.
25833 Set fontp->encoding_type.
aac0c6e3
MR
25834
258352008-02-01 Kenichi Handa <handa@m17n.org>
25836
25837 * search.c (search_buffer): Give up BM search on case-fold-search
25838 if one of a target character has a case-equivalence of different
3b59c351 25839 byte length even if that target character is an ASCII.
aac0c6e3
MR
25840 (simple_search): Fix calculation of byte length of matched text.
25841 (boyer_moore): Fix handling of case-equivalent multibyte characters.
25842
258432008-02-01 Kenichi Handa <handa@m17n.org>
25844
25845 * coding.c (decode_coding): Fix handling of invalid bytes.
25846
258472008-02-01 Kenichi Handa <handa@m17n.org>
25848
25849 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
25850 Unicode characters.
25851
258522008-02-01 Kenichi Handa <handa@m17n.org>
25853
25854 * coding.c (encode_coding_object): If a pre-write-conversion
25855 function makes a new buffer, kill it.
25856
258572008-02-01 Kenichi Handa <handa@m17n.org>
25858
25859 * coding.c (QCascii_compatible_p): New variable.
25860 (syms_of_coding): Initialize it.
25861 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
25862 calling string_char.
25863 (record_conversion_result): Add `default:' case.
25864 (coding_charset_list): Delete unused variable `coding_type'.
25865 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
25866 property in the plist of the coding system.
25867 (Fcoding_system_put): Check QCascii_compatible_p.
25868
258692008-02-01 Miles Bader <miles@gnu.org>
25870
25871 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
25872 removed calculation of frame `f', as it's now used.
25873
258742008-02-01 Kenichi Handa <handa@m17n.org>
25875
25876 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
25877 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
25878 (UNIDATA): New variable.
25879 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
25880 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
25881 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
25882
258832008-02-01 Kenichi Handa <handa@m17n.org>
25884
25885 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
25886 (admindir): New variable.
25887 ($(lispsource)international/charprop.el): New target.
25888
258892008-02-01 Miles Bader <miles@gnu.org>
25890
25891 * character.c (chars-in-region): Remove obsolete function.
25892 (syms_of_character): Remove its initialization.
25893
258942008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
25895
25896 * w32select.c (validate_coding_system)
25897 (setup_windows_coding_system): New functions.
bba3e508
SM
25898 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
25899 Use setup_windows_coding_system.
25900 (setup_config, Fw32_get_clipboard_data):
25901 Use validate_coding_system.
aac0c6e3
MR
25902 (Fx_selection_exists): Move call to setup_config to a place
25903 where signals are allowed.
25904
25905 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
25906 (Fcheck_coding_system): Add declarations.
25907
259082008-02-01 Kenichi Handa <handa@m17n.org>
25909
25910 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
25911
259122008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25913
25914 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
25915 string as the second argument for x_new_fontset.
25916
259172008-02-01 Kenichi Handa <handa@m17n.org>
25918
25919 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
25920 (encode_coding_object): Use safe_call instead of call2.
25921
259222008-02-01 Kenichi Handa <handa@m17n.org>
25923
25924 * fontset.c (Fset_fontset_font): Check family element of a given vector.
25925
25926 * Makefile.in (lisp): Include charprop.el.
25927
259282008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25929
25930 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
25931 Not sure if it's unnecessary.
25932
259332008-02-01 Steven Tamm <steventamm@mac.com>
25934
25935 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
25936 some possibly unnecessary fontset checking code that crashed
25937 when creating a new frame.
25938
259392008-02-01 Kenichi Handa <handa@m17n.org>
25940
25941 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
25942 lookup_face.
25943
25944 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
25945
25946 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
25947
259482008-02-01 Kenichi Handa <handa@m17n.org>
25949
25950 * coding.c: Cancel the change done in HEAD on 2008-02-01.
25951 (coding_charset_list): New function.
25952
25953 * coding.h (coding_charset_list): Extern it.
25954
259552008-02-01 Kenichi Handa <handa@m17n.org>
25956
25957 * fontset.c (Fset_fontset_font): Call find_font_encoding with
25958 concatenation of family and registry.
25959
259602008-02-01 Kenichi Handa <handa@m17n.org>
25961
25962 * character.h (BYTE8_STRING): Fix typo.
25963
25964 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
25965 string to multibyte (sync to HEAD).
25966
25967 * casefiddle.c (casify_region): Handle changes in byte-length
25968 using replace_range_2 (sync to HEAD).
25969
259702008-02-01 Andreas Schwab <schwab@suse.de>
25971
25972 * chartab.c (map_char_table): GCPRO table and arg.
25973
259742008-02-01 Kenichi Handa <handa@m17n.org>
25975
25976 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
25977 already at limit.
25978
259792008-02-01 Kenichi Handa <handa@m17n.org>
25980
25981 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
25982 instead of fast_c_string_match_ignore_case.
bba3e508
SM
25983 (find_font_encoding): Change argument to Lisp_Object.
25984 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
25985 fast_c_string_match_ignore_case. Change caller.
25986
259872008-02-01 Kenichi Handa <handa@m17n.org>
25988
25989 * xdisp.c (get_next_display_element): In unibyte case, decide to
25990 display in octal form by checking a character by
25991 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
25992
25993 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
25994
25995 * character.c (unibyte_has_multibyte_table): New variable.
25996
25997 * character.h (unibyte_has_multibyte_table): Extern it.
25998 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
25999
260002008-02-01 Kenichi Handa <handa@m17n.org>
26001
26002 * coding.c (encode_coding_iso_2022): Fix handling of charset
26003 annotation.
26004
260052008-02-01 Kenichi Handa <handa@m17n.org>
26006
26007 * coding.c (setup_coding_system): If coding_system is nil, use
26008 Qundecided.
26009 (Fterminal_coding_system): Return nil if terminal coding system is
26010 `undecided'.
bba3e508
SM
26011 (syms_of_coding): Define coding-system `undecided' here.
26012 Setup terminal_coding as `undecided'.
aac0c6e3
MR
26013
260142008-02-01 Kenichi Handa <handa@m17n.org>
26015
bba3e508
SM
26016 * xdisp.c (message_dolog, set_message_1):
26017 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
26018
26019 * lread.c (read1): Fix reading of a char-table.
26020
26021 * print.c (print_object): Include sub char-table in circularities
26022 detection.
26023
260242008-02-01 Kenichi Handa <handa@m17n.org>
26025
26026 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
26027 Append the found sequences in car of ARGS instead of prepending.
26028
260292008-02-01 Kenichi Handa <handa@m17n.org>
26030
26031 * fileio.c (report_file_error): Make a unibyte string from
26032 strerror (errorno).
26033 (Fsubstitute_in_file_name): Fix the arg to
26034 unibyte_char_to_multibyte. It is evaluated twice.
26035
260362008-02-01 Kenichi Handa <handa@m17n.org>
26037
26038 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
26039
260402008-02-01 Kenichi Handa <handa@m17n.org>
26041
26042 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
26043 BOM is not found.
26044 (detect_coding, detect_coding_system): Optimization for ISO-2022
26045 when no 8-bit data is found.
26046
260472008-02-01 Jason Rumney <jasonr@gnu.org>
26048
26049 * w32fns.c (x_to_w32_font): Update to use new coding struct.
26050
260512008-02-01 Kenichi Handa <handa@m17n.org>
26052
26053 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
26054 CHARS.
26055
260562008-02-01 Steven Tamm <steventamm@mac.com>
26057
26058 * macterm.c (mac_encode_char): Add charset argument and update
26059 to use encoding_type.
26060 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
26061 switch to pure fontset.
26062 (decode_mac_font_name): Temporarily remove decoding.
26063 (x_font_name_to_mac_font_name): Temporarily remove encoding.
26064 (x_load_font): Temporarily remove encoding.
26065
260662008-02-01 Kenichi Handa <handa@m17n.org>
26067
26068 * xfaces.c (Fface_font): If frame is not on a window system,
26069 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
26070 refer to face->font.
26071 (split_font_name_into_vector, build_font_name_from_vector)
26072 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
26073 when HAVE_WINDOW_SYSTEM is defined.
26074
260752008-02-01 Kenichi Handa <handa@m17n.org>
26076
26077 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
26078 (x_produce_glyphs): Fix setting of members of cmp in case
26079 cmp->glyph_len is zero.
26080
26081 * fontset.c (Fset_fontset_font): Fix docstring.
26082 (Ffontset_info): Make it backward compatible. New arg ALL.
26083
260842008-02-01 Kim F. Storm <storm@cua.dk>
26085
26086 * process.c (read_process_output): Grow decoding_buf when needed;
26087 this could cause a crash in allocate_string and compact_small_strings.
26088
260892008-02-01 Kenichi Handa <handa@m17n.org>
26090
26091 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
26092
260932008-02-01 Kenichi Handa <handa@m17n.org>
26094
26095 * coding.c (setup_coding_system): Set coding->common_flags
26096 correctly for raw-text.
26097 (consume_chars): On encoding unibyte text by raw-text, don't check
26098 multibyte form.
26099 (encode_coding): On encoding by raw-text, never use translation tables.
26100
26101 * fileio.c (e_write): Short cut for the case of no encoding.
26102
261032008-02-01 Kenichi Handa <handa@m17n.org>
26104
26105 * coding.c (detect_coding, detect_coding_system): Delete unused
26106 variables.
26107
261082008-02-01 Kenichi Handa <handa@m17n.org>
26109
26110 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
26111 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
26112
261132008-02-01 Kenichi Handa <handa@m17n.org>
26114
bba3e508
SM
26115 * coding.c (Ffind_coding_systems_region_internal):
26116 Include raw-text and no-conversion in the result.
aac0c6e3
MR
26117
261182008-02-01 Kenichi Handa <handa@m17n.org>
26119
26120 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
26121 (load_font_get_repertory): Delete unnecessary check of ENCODING of
26122 FONT_DEF.
26123 (font_def_arg, add_arg, from_arg, to_arg): New args.
26124 (set_fontset_font): Change argument.
26125 (Fset_fontset_font): Fix for the case that TARGET is a script
26126 name and charset name.
26127 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
26128
261292008-02-01 Kenichi Handa <handa@m17n.org>
26130
26131 * fontset.c (fontset_font): Rename from fontset_face. Change return
26132 value.
26133 (face_suitable_for_char_p, face_for_char): Adjust for the change
26134 of fontset_font.
26135 (make_fontset_for_ascii_face): Fix setting of the fontset element
26136 for ASCII.
26137 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
26138 to get a font name.
26139 (Ffontset_info): Adjust for the change of fontset_font.
26140
26141 * coding.c (emacs_mule_char): Check invalid code more rigidly.
26142
26143 * character.h (LEADING_CODE_LATIN_1_MIN)
26144 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
26145
261462008-02-01 Kenichi Handa <handa@m17n.org>
26147
26148 * editfns.c (check_translation): New function.
26149 (Ftranslate_region_internal): Handle M:N mapping.
26150
261512008-02-01 Kenichi Handa <handa@m17n.org>
26152
26153 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
26154
261552008-02-01 Kenichi Handa <handa@m17n.org>
26156
26157 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
26158 goto invalid_code.
26159 (decode_coding_iso_2022): Fix handling of invalid designation.
26160
26161 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
26162 after calling code_conversion_save.
26163
261642008-02-01 Kenichi Handa <handa@m17n.org>
26165
26166 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
26167
26168 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
26169
26170 * fontset.c: Include "intervals.h".
26171 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
26172 (free_face_fontset, new_fontset_from_font_name):
26173 Fix Lisp_Object/int mixup.
aac0c6e3
MR
26174
26175 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
26176
26177 * coding.c: Add many prototypes for static functions.
26178 (get_translation_table): Allow max_lookup to be NULL.
26179 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
26180 (Funencodable_char_position, Fcheck_coding_systems_region):
26181 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
26182
261832008-02-01 Kenichi Handa <handa@m17n.org>
26184
26185 * coding.c (get_translation_table): Declare it as Lisp_Object.
26186 (LOOKUP_TRANSLATION_TABLE): New macro.
26187 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
26188 instead of CHAR_TABLE_REF.
26189
261902008-02-01 Kenichi Handa <handa@m17n.org>
26191
26192 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
26193 annotation data format.
26194 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
26195 Change arguments FROM and TO to single argument NCHARS. Change caller.
26196 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
26197 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26198 (decode_coding_ccl, decode_coding_charset): Pay attention to
26199 coding->charbuf_used.
26200 (get_translation): New function.
26201 (produce_chars): New arguments translation_table and last_block.
26202 Translate characters here. Return number of carryover chars.
26203 Change caller.
26204 (produce_composition): New argument pos. Change caller.
26205 Adjust for the change of annotation data format.
26206 (produce_charset, produce_annotation): Likewise.
26207 (decode_coding, encode_coding): Don't call translate_chars.
26208 (consume_chars): New arg translation_table. Change caller.
26209 (translate_chars): Delete.
26210 (syms_of_coding): Make translation-table's number of extra slots 2.
26211
262122008-02-01 Kenichi Handa <handa@m17n.org>
26213
26214 * search.c (simple_search): Fix setting this_pos_byte in backward
26215 search.
26216
26217 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
26218 byte sequence.
26219 (detect_coding_ccl): Fix setting of the variable valids.
26220
262212008-02-01 Kenichi Handa <handa@m17n.org>
26222
26223 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
26224
26225 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
26226
26227 * editfns.c (Ftranslate_region_internal): Rename from
26228 Ftranslate_region. Accept a char-table in TABLE.
26229 (syms_of_editfns): Defsubr Stranslate_region_internal.
26230
26231 * xfaces.c (set_lface_from_font_name): If a font is specified for
26232 a frame, generate a fontset from the font.
26233 (build_scalable_font_name): If the scalable font is requested for
26234 a specific size, don't change that size.
26235 (try_font_list): Try a scalable font also in the case that a
26236 pattern string is specified.
26237
262382008-02-01 Kenichi Handa <handa@m17n.org>
26239
26240 * xfaces.c (Fface_font): New optional arg CHARACTER.
26241
262422008-02-01 Kenichi Handa <handa@m17n.org>
26243
26244 * charset.h (CHARSET_OFFSET): New macro.
26245
262462008-02-01 Kenichi Handa <handa@m17n.org>
26247
26248 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
26249
26250 * fontset.c (fontset_face): Handle the case that repertory is a
26251 char-table.
26252 (find_font_encoding): Return nil for unknown encoding.
26253 (Fset_fontset_font): Ignore a font of unknown encoding.
26254
262552008-02-01 Kenichi Handa <handa@m17n.org>
26256
26257 * keymap.c (describe_vector): Handle default value of a char table.
26258
26259 * fontset.c (fontset_face): Handle fallback fonts correctly.
26260 (Ffontset_info): Return infomation about fallback fonts.
26261
262622008-02-01 Kenichi Handa <handa@m17n.org>
26263
26264 * fontset.c (FONTSET_DEFAULT): New macro.
26265 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
26266 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
26267 the case that it is nil.
26268 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
26269 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
26270
26271 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
26272 subset or superset.
26273
262742008-02-01 Kenichi Handa <handa@m17n.org>
26275
26276 * emacs.c (main): Call init_charset after syms_of_XXX.
26277
26278 * charset.c (Vcharset_map_directory): Delete.
26279 (Vcharset_map_path): New variable.
26280 (load_charset_map_from_file): Use Vcharset_map_path instead.
26281 (init_charset): Initialize Vcharset_map_path.
26282 (syms_of_charset): Delete declaration of "charset-map-directory",
26283 add declaration of "charset-map-path".
26284
262852008-02-01 Kenichi Handa <handa@m17n.org>
26286
26287 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
26288 ASCII only string.
26289
26290 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
26291
26292 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
26293 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
26294
262952008-02-01 Kenichi Handa <handa@m17n.org>
26296
26297 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
26298
26299 * coding.c (QCmnemonic, QCdefalut_char)
26300 (QCdecode_translation_table, QCencode_translation_table)
26301 (QCpost_read_conversion, QCpre_write_conversion): New variables.
26302 (get_translation_table): Return a list of translation tables if
26303 necessary.
26304 (decode_coding): Call get_translation_table with ENCODEP 0.
26305 (char_encodable_p): If translation_table is non-nil, always call
26306 translate_char.
26307 (Fdefine_coding_system_internal): Accept list of translation
26308 tables as :encode-translation-table and :decode-translation-table.
26309 (Fcoding_system_put): New function.
bba3e508
SM
26310 (syms_of_coding): Declare new symbols.
26311 Defsubr Scoding_system_put.
aac0c6e3
MR
26312 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
26313 typically JISX0212.
26314
26315 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
26316 when the charset is superset type.
26317
26318 * character.c (translate_char): Accept list of translation tables.
26319
263202008-02-01 Kenichi Handa <handa@m17n.org>
26321
26322 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
26323 (CODING_ATTR_TRANS_TBL): New macro.
26324
26325 * coding.c (get_translation_table): New function.
26326 (translate_chars): Fix the bug of skipping annotation data.
26327 (decode_coding, encode_coding): Utilize get_translation_table.
26328 (char_encodable_p, Funencodable_char_position): Translate char if
26329 necessary.
26330 (Ffind_coding_systems_region_internal)
26331 (Fcheck_coding_systems_region): Setup translation table for encode
26332 in a coding system attribute vector in advance.
26333 (Fdefine_coding_system_internal): Allow a symbol as translation
26334 table. For shift-jis type coding system, allow 4th charset.
26335
263362008-02-01 Kenichi Handa <handa@m17n.org>
26337
26338 * coding.c (decode_coding_sjis): Check the first byte rigidly.
26339
26340 * xdisp.c (get_next_display_element): Pass -1 as POS to
26341 FACE_FOR_CHAR if displaying a C-string.
26342
263432008-02-01 Kenichi Handa <handa@m17n.org>
26344
26345 * composite.c (get_composition_id): Handle xoff and yoff in a
26346 composition rule.
26347
26348 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
26349 (struct composition): New member lbearing and rbearing.
26350
26351 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
26352 (x_get_glyph_overhangs): Handle a composition glyph.
26353 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
26354
26355 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
26356 composition glyph.
26357
263582008-02-01 Kenichi Handa <handa@m17n.org>
26359
26360 * print.c: Include charset.h.
26361 (Vprint_charset_text_property): New variable.
26362 (Qdefault): Extern it.
26363 (PRINT_STRING_NON_CHARSET_FOUND)
26364 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
26365 (print_check_string_result): New variable.
26366 (print_check_string_charset_prop): New function.
26367 (print_prune_charset_plist): New variable.
26368 (print_prune_string_charset): New function.
26369 (print_object): Call print_prune_string_charset if
26370 Vprint_charset_text_property is not t.
26371 (print_interval): Print nothing if interval->plist is nil.
26372 (syms_of_print): Declare Vprint_charset_text_property as a lisp
26373 variable. Init and staticpro print_prune_charset_plist.
26374
263752008-02-01 Kenichi Handa <handa@m17n.org>
26376
26377 * fontset.c (new_fontset_from_font_name): Use the specified font
26378 for all characters in the new fontset.
26379
26380 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26381 OBJECT args.
26382
26383 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
26384 OBJECT args for composition too.
26385
26386 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26387 OBJECT args.
26388
263892008-02-01 Kenichi Handa <handa@m17n.org>
26390
26391 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
26392
26393 * fontset.c (reorder_font_vector): Adjust for the change of
26394 FONT_DEF format.
26395 (fontset_face): New arg id. Change caller.
26396 (face_for_char): New args pos and object.
26397 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
26398 (fs_query_fontset): Check NAME by Fassoc too.
26399 (Fset_fontset_font): Allow non-XLFD font name.
26400 (Ffontset_info): Adjust for the change of FONT_DEF format.
26401
26402 * fontset.h (face_for_char): Adjust prototype.
26403
26404 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
26405 (append_space, extend_face_to_end_of_line)
26406 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
26407 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
26408
26409 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
26410 POS and OBJECT args.
26411
26412 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
26413 POS and OBJECT args.
26414
264152008-02-01 Jason Rumney <jasonr@gnu.org>
26416
26417 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
26418 of GlobalAlloc'ed memory.
26419
264202008-02-01 Kenichi Handa <handa@m17n.org>
26421
26422 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
26423
26424 * charset.h (charset_table_used): Delete extern.
26425
26426 * charset.c (charset_table_used): Make it static.
26427 (map_charset_chars): Fix args to c_function with.
26428
26429 * chartab.c (map_sub_char_table_for_charset): Fix args to
26430 c_function with.
26431
bba3e508
SM
26432 * coding.h (enum coding_result_code):
26433 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
26434
26435 * coding.c (Qinsufficient_source, Qinconsistent_eol)
26436 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
26437 (Vlast_code_conversion_error): New variables.
26438 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
26439 (ONE_MORE_BYTE): Record error if any instead of signaling an
26440 error. If non-ASCII multibyte char is found, return the negative
26441 value of the code. All callers changed to check it.
26442 (ONE_MORE_BYTE_NO_CHECK): Likewise.
26443 (record_conversion_result): New function. Change all codes setting
26444 coding->result to call this function.
26445 (detect_coding_utf_8, decode_coding_utf_8)
26446 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
26447 Don't use the local variable incomplete.
26448 (emacs_mule_char): Change the second arg to `const'.
26449 (decode_coding): Fix of flushing out unprocessed data.
26450 (make_conversion_work_buffer): Fix making of a work buffer.
26451 (decode_coding_object): Return coding->dst_object.
26452
26453 * fontset.c (set_fontset_font): Fix args.
26454
26455 * lisp.h (CHARACTERBITS): Define as 22.
26456
26457 * process.c (send_process): Be sure to set coding->src_multibyte.
26458
26459 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
26460
264612008-02-01 Kenichi Handa <handa@m17n.org>
26462
26463 * xdisp.c (handle_auto_composed_prop): Give limit to
26464 Fnext_single_char_property_change.
26465
264662008-02-01 Kenichi Handa <handa@m17n.org>
26467
26468 * composite.c (syms_of_composite): Don't make the composition hash
26469 table weak.
26470
26471 * fontset.c (Fset_fontset_font): Fix docstring.
26472
26473 * lisp.h (detect_coding_system): Adjust prototype.
26474
26475 * fileio.c (kill_workbuf_unwind): Delete this function.
26476 (Finsert_file_contents): Adjust the call of detect_coding_system.
26477 Get conversion_buffer by code_conversion_save. Use the macro
26478 CODING_MAY_REQUIRE_DECODING. After decoding, update
26479 coding_system.
26480
26481 * coding.h (make_conversion_work_buffer): Delete extern.
26482 (code_conversion_save): Extern it.
26483
26484 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
26485 (CODING_GET_INFO): Delete argument eol_type. Change callers.
26486 (decode_coding_utf_8): Don't do eol converion.
26487 (detect_coding_utf_16): Check coding->src_chars, not
26488 coding->src_bytes. Add heuristics for those that have no signature.
26489 (decode_coding_emacs_mule, decode_coding_iso_2022)
26490 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26491 Don't do eol converion.
26492 (adjust_coding_eol_type): Return a new coding system.
26493 (detect_coding): Don't detect eol. Fix for utf-16 detection.
26494 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
26495 each change.
26496 (decode_coding): Pay attention to undo_list. Do eol conversion for
26497 all types of coding-systems (if necessary).
26498 (Vcode_conversion_work_buf_list): Delete it.
26499 (Vcode_conversion_reused_workbuf): Rename from
26500 Vcode_conversion_reused_work_buf.
26501 (Vcode_conversion_workbuf_name): New variable.
26502 (reused_workbuf_in_use): New variable.
26503 (make_conversion_work_buffer): Delete the arg DEPTH.
26504 (code_conversion_restore): Change argument to cons.
26505 (code_conversion_save): Delete the argument BUFFER. Change callers.
26506 (detect_coding_system): New argument src_chars. Change callers.
26507 Fix for utf-16 detection.
26508 (init_coding_once): Don't use ISO_carriage_return.
26509 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
26510 reused_workbuf_in_use.
26511
265122008-02-01 Kenichi Handa <handa@m17n.org>
26513
26514 * keymap.c (store_in_keymap): Pay attention to the case that idx
26515 is a cons specifying a character range.
26516
265172008-02-01 Kenichi Handa <handa@m17n.org>
26518
26519 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
26520 HANDLED_RECOMPUTE_PROPS.
26521
26522 * coding.c (Fdefine_coding_system_internal): Fix checking of
26523 ascii compatibility.
26524
265252008-02-01 Kenichi Handa <handa@m17n.org>
26526
26527 * charset.c (find_charsets_in_text): Delete unused locale variable.
26528 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
26529
26530 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
26531 Resync charset_list to Vemacs_mule_charset_list.
26532
26533 * keymap.c (store_in_keymap): Pay attention to the case that idx
26534 is a cons specifying a character range.
26535
265362008-02-01 Kenichi Handa <handa@m17n.org>
26537
26538 * composite.c (update_compositions): Bind inhibit-read-only, etc
26539 to t before calling remove-list-of-text-properties.
26540
26541 * print.c (print_object): Always print ASCII chars as is.
26542
265432008-02-01 Kenichi Handa <handa@m17n.org>
26544
26545 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
26546
26547 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
26548 is a char table.
26549
265502008-02-01 Kenichi Handa <handa@m17n.org>
26551
26552 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
26553
265542008-02-01 Kenichi Handa <handa@m17n.org>
26555
26556 * xfaces.c (set_lface_from_font_name): Fix for the case that
26557 FONTNAME is not fontset name.
26558
265592008-02-01 Kenichi Handa <handa@m17n.org>
26560
26561 * fns.c (base64_encode_1): Fix previous change.
26562
265632008-02-01 Kenichi Handa <handa@m17n.org>
26564
26565 * fontset.c (set_fontset_font): New function.
26566 (Fset_fontset_font): If a font is specified for a charset, use
26567 map_charset_chars to store the font spec in a fontset.
26568
265692008-02-01 Kenichi Handa <handa@m17n.org>
26570
26571 * fontset.c (fontset_face): Create a fallback fontset on demand.
26572 (make_fontset): Don't create a fallback fontset here.
26573 (free_face_fontset): Free a fallback fontset (if any) too.
26574 (n_auto_fontsets): Delete this variable.
26575 (auto_fontset_alist): New variable.
26576 (new_fontset_from_font_name): Check auto_fontset_alist.
26577 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
26578 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
26579 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
26580 Defsubr Sfontset_list_all.
26581
265822008-02-01 Kenichi Handa <handa@m17n.org>
26583
26584 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
26585
265862008-02-01 Kenichi Handa <handa@m17n.org>
26587
26588 * fontset.c (Fnew_fontset): Check NAME more rigidly.
26589
265902008-02-01 Kenichi Handa <handa@m17n.org>
26591
26592 * editfns.c (Fgoto_char): Fix docstring.
26593
265942008-02-01 Kenichi Handa <handa@m17n.org>
26595
26596 * insdel.c (insert_from_gap): Adjust intervals correctly.
26597
265982008-02-01 Jason Rumney <jasonr@gnu.org>
26599
26600 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26601 (pfnGetFontUnicodeRanges): New dynamically loaded function.
26602 (w32_initialize): Try to load it.
26603 (x_get_font_repertory): Use it if available.
26604 (w32_encode_char): Add shortcut for unicode output.
26605
26606 * w32fns.c (w32_load_system_font): Default charset to -1.
26607 (x_to_w32_charset): Match all fonts for unicode.
26608 (w32_to_x_charset): New parameter matching. Don't return partial
26609 or wildcard charsets.
26610 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26611 (w32_codepage_for_font): Return CP_UNICODE for unicode.
26612 (w32_to_x_font): Match charset to real charset.
26613 (enum_font_cb2): Always list unicode versions.
26614
26615 * makefile.w32-in (temacs): Increase EMHEAP.
26616
266172008-02-01 Jason Rumney <jasonr@gnu.org>
26618
26619 * w32term.c (w32_encode_char): New charset parameter.
26620 font_info.encoding becomes encoding_type.
26621 (x_get_font_repertory): New function. Warning: stub only!
26622 (x_new_font): Return quickly if font already set.
26623 (x_new_fontset): fontsetname parameter is Lisp_Object.
26624 Use new fs_query_fontset. Try new_fontset_from_font_name.
26625 Use fontset_name for return value.
26626
26627 * w32term.h: Declare x_get_font_repertory.
26628
26629 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26630 place of find_charset_in_text. Use encode_coding_object in place
26631 of encode_coding.
26632 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26633 decode_coding.
26634
26635 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26636 of x_new_fontset.
26637 (w32_load_system_font): Initialize charset as unicode.
26638 font_info.encoding becomes encoding_type.
26639 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26640 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26641 (syms_of_w32fns): Set get_font_repertory_func.
26642
26643 * w32console.c: Include character.h. Use terminal_encode_buffer
26644 from term.c.
bba3e508
SM
26645 (write_glyphs): Use new version of encode_terminal_code.
26646 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
26647
26648 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26649 encoding becomes encoding_type.
26650
26651 * term.c (terminal_encode_buffer): Make externally visible.
26652
26653 * makefile.w32-in: Add character.h dependancies.
26654 (character.o, chartab.o): New targets.
26655
266562008-02-01 Kenichi Handa <handa@m17n.org>
26657
26658 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26659 CODING_ID_EOL_TYPE.
26660
266612008-02-01 Andreas Schwab <schwab@suse.de>
26662
26663 * coding.c (produce_chars): Revert last change.
26664
266652008-02-01 Kenichi Handa <handa@m17n.org>
26666
26667 * charset.h (charset_unicode): Extern it.
26668
26669 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
26670 (find_charsets_in_text): Change format of the arc CHARSETS.
26671 New arg MULTIBYTE.
aac0c6e3
MR
26672 (Ffind_charset_region, Ffind_charset_string): Adjust for the
26673 change of find_charsets_in_text.
26674 (Fsplit_char): Fix doc. Never return unknown.
26675
26676 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26677
bba3e508
SM
26678 * coding.c (Fdefine_coding_system_alias):
26679 Update Vcoding_system_list.
aac0c6e3
MR
26680
26681 * fontset.c (load_font_get_repertory): Pay attention to the case
26682 that ENCODING of a font is specified by a char-table.
26683
26684 * xterm.c (x_get_font_repertory): Handle the case that the
26685 encoding of font is other than Unicode.
26686
266872008-02-01 Kenichi Handa <handa@m17n.org>
26688
bba3e508
SM
26689 * term.c (encode_terminal_code): Don't handle glyph-table.
26690 Check if a character is encodable by the terminal coding system.
26691 If not, produces proper number of `?'s. Update
aac0c6e3
MR
26692 terminal_encode_buffer and terminal_encode_buf_size if necessary.
26693 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26694
266952008-02-01 Kenichi Handa <handa@m17n.org>
26696
bba3e508
SM
26697 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26698 New variables.
aac0c6e3
MR
26699 (encode_terminal_code): Change argument. Encode multiple
26700 characters at once. Store the result of encoding in
26701 terminal_encode_buffer.
26702 (write_glyphs, insert_glyphs): Adjust for the change of
26703 encode_terminal_code.
26704 (term_init): Initialize terminal_encode_buffer and
26705 terminal_encode_buf_size.
26706
26707 * coding.c (consume_chars): If coding->src_object is nil, don't
26708 check annotation.
26709
267102008-02-01 Kenichi Handa <handa@m17n.org>
26711
26712 * character.c (char_string): Use ASCII_CHAR_P instead of
26713 SINGLE_BYTE_CHAR_P.
26714
267152008-02-01 Kenichi Handa <handa@m17n.org>
26716
26717 * xdisp.c (handle_auto_composed_prop): Check if the last
26718 characters of auto-composed region is newly composed with the
26719 following characters.
26720 (handle_composition_prop): Fix checking of point being inside
26721 composition.
26722
267232008-02-01 Kenichi Handa <handa@m17n.org>
26724
26725 * fns.c (concat): Don't change multibyteness of the result by
26726 concatenating an 8-bit character.
26727
26728 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
26729 multibyteness of the result when newelt is an 8-bit character.
26730
267312008-02-01 Dave Love <fx@gnu.org>
26732
26733 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26734 EMACS_INT.
26735
26736 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26737
26738 * xfaces.c (face_numeric_value): Declare dim size_t.
26739 (Finternal_lisp_face_equal_p): Remove unused f.
26740
26741 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26742 (MATRIX_ROW): Remove unused vars.
26743 (draw_glyphs, x_insert_glyphs, fast_find_position)
26744 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
26745 byte/char counts.
26746
26747 * regex.c (regex_compile): Remove unused var.
26748
26749 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26750
26751 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
26752 (Faccessible_keymaps, where_is_internal): Remove unused vars.
26753
26754 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
26755
26756 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
26757
26758 * fileio.c (Fwrite_region): Remove unused var.
26759
26760 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
26761 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
26762
26763 * composite.c (Fremove_list_of_text_properties): Declare.
26764
26765 * coding.c (inhibit_pre_post_conversion): Remove (unused).
26766 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
26767 (coding_inherit_eol_type): Remove unused attrs.
26768 (detect_coding): Cast arg of detect_eol.
26769
26770 * charset.c (syms_of_charset): Remove unused var p.
26771 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
26772 byte/char counts.
26773
26774 * casetab.c (set_case_table): Remove unused var.
26775
bba3e508
SM
26776 * window.c (Fdisplay_buffer, Fframe_selected_window):
26777 Remove unused vars.
aac0c6e3
MR
26778
267792008-02-01 Dave Love <fx@gnu.org>
26780
26781 * xterm.c (x_bitmap_mask): Declare.
26782
267832008-02-01 Dave Love <fx@gnu.org>
26784
26785 * xterm.c (x_term_init): Fix type error.
26786
26787 * lisp.h: Add Funibyte_char_to_multibyte.
26788
26789 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
26790 (Fset_coding_system_priority): Doc fix.
26791
26792 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
26793
26794 * indent.c (check_composition): Make start and end EMACS_INT.
26795
26796 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
26797
26798 * xdisp.c (handle_composition_prop, check_point_in_composition):
26799 Make buffer positions EMACS_INT.
26800
26801 * composite.c (find_composition, run_composition_function)
26802 (update_compositions, Ffind_composition_internal): Make buffer
26803 positions EMACS_INT.
26804
bba3e508
SM
26805 * composite.h (find_composition, update_compositions):
26806 Make position args EMACS_INT.
aac0c6e3
MR
26807
26808 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
26809
26810 * intervals.c (get_property_and_range):
26811 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
26812
26813 * unexalpha.c: Don't include varargs.h.
26814
268152008-02-01 Dave Love <fx@gnu.org>
26816
26817 * coding.h (ENCODE_UTF_8): New.
26818
26819 * Makefile.in (gtkutil.o): Depend on coding.h.
26820
26821 * coding.c (Fset_coding_system_priority): Doc fix.
26822
268232008-02-01 Kenichi Handa <handa@m17n.org>
26824
26825 * fileio.c (Finsert_file_contents): Call setup_coding_system in
26826 the case of auto saving.
26827
268282008-02-01 Andreas Schwab <schwab@suse.de>
26829
bba3e508
SM
26830 * chartab.c (map_char_table, map_char_table_for_charset):
26831 Protect `range' from GC.
aac0c6e3
MR
26832
268332008-02-01 Kenichi Handa <handa@m17n.org>
26834
26835 * coding.c (decode_coding_sjis): Check bytes more rigidly.
26836
268372008-02-01 Kenichi Handa <handa@m17n.org>
26838
26839 * fileio.c (choose_write_coding_system): Return a decided coding system.
26840 (Fwrite_region): Set Vlast_coding_system_used to the return value
26841 of choose_write_coding_system.
26842
268432008-02-01 Kenichi Handa <handa@m17n.org>
26844
26845 * charset.c (Fset_charset_priority): Pay attention to duplicated
26846 arguments.
26847
26848 * coding.c (QCcategory): New variable.
26849 (syms_of_coding): Defsym it. Set all elements of
26850 Vcoding_category_table and their symbol values.
26851 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
26852 coding-category-XXX, and coding-category-list.
26853 (Fdefine_coding_system_internal): Add category in the plist.
26854
268552008-02-01 Kenichi Handa <handa@m17n.org>
26856
26857 * callproc.c (Fcall_process): Handle carryover correctly.
26858
26859 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
26860 (raw_text_coding_system): Check NILP (coding_system).
26861 (coding_inherit_eol_type): Check NILP (coding_system) and
26862 NILP (parent).
26863 (consume_chars): Fix for the case of raw-text.
26864
26865 * process.c (read_process_output): Handle carryover correctly.
26866
268672008-02-01 Dave Love <fx@gnu.org>
26868
26869 * regex.c (re_search_2): Fix last change.
26870
268712008-02-01 Kenichi Handa <handa@m17n.org>
26872
26873 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
26874 target_multibyte. Even in a unibyte case, return a converted
26875 multibyte char.
26876 (GET_CHAR_AFTER): New macro.
26877 (PATFETCH): Translate via multibyte char.
26878 (HANDLE_UNIBYTE_RANGE): Delete this macro.
26879 (SETUP_MULTIBYTE_RANGE): New macro.
26880 (regex_compile): Setup compiled code so that its multibyteness
26881 matches that of a target. Fix the handling of "[X-YZ]" using
26882 SETUP_MULTIBYTE_RANGE.
26883 (analyse_first) <charset>: For filling fastmap for all multibyte
26884 characters, don't check by BASE_LEADING_CODE_P.
26885 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
26886 the same as RE_MULTIBYTE_P (bufp) now.
26887 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
26888 (TARGET_CHAR_AND_LENGTH): Delete this macro.
26889 (TRANSLATE_VIA_MULTIBYTE): New macro.
26890 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
26891 It is the same as RE_MULTIBYTE_P (bufp) now.
26892 <exactn>: Translate via multibyte.
bba3e508
SM
26893 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
26894 Don't translate it.
aac0c6e3
MR
26895 <charset, charset_not>: Fetch a character by
26896 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
26897 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
26898 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
26899 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
26900 by GET_CHAR_AFTER.
26901 (bcmp_translate): Likewise.
26902
26903 * search.c (compile_pattern): Check the member target_multibyte,
26904 not the member multibyte of buf.
26905
26906 * lread.c (read1): While reading a string, set force_singlebyte
26907 and force_multibyte correctly.
26908
26909 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
26910 up of unibyte_to_multibyte_table.
26911
269122008-02-01 Kenichi Handa <handa@m17n.org>
26913
26914 * coding.c (setup_coding_system): If coding has
26915 post-read-conversion or pre-write-conversion, set
26916 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
26917 respectively.
26918 (decode_coding_gap): Run post-read-conversion if any.
26919
26920 * fileio.c (Finsert_file_contents): Even if we read into a
26921 unibyte buffer, check if we must decode the result or not.
26922
269232008-02-01 Kenichi Handa <handa@m17n.org>
26924
26925 * coding.c (make_conversion_work_buffer): Change the work buffer
26926 name to the same one as that of Emacs 21.
26927
269282008-02-01 Kenichi Handa <handa@m17n.org>
26929
26930 * coding.h (make_conversion_work_buffer): Adjust prototype.
26931 (code_conversion_restore): Don't extern it.
26932
26933 * coding.c (detected_mask): Delete unused variable.
26934 (decode_coding_iso_2022): Pay attention to the byte sequence of
26935 CTEXT extended segment, and retain those bytes as is.
26936 (decode_coding_ccl): Delete unused variable `valids'.
26937 (setup_coding_system): Delete unused variable `category'.
26938 (consume_chars): Delete unused variable `category'. Make it work
26939 for non-multibyte case.
26940 (make_conversion_work_buffer): Change argument.
26941 (saved_coding): Delete unused variable.
26942 (code_conversion_restore): Don't check saved_coding->destination.
26943 (code_conversion_save): New function.
26944 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
26945 instead of record_unwind_protect.
26946 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
26947 (detect_coding_system): Delete unused variable `mask'.
26948 (Fdefine_coding_system_internal): Delete unused variable id.
26949
26950 * fileio.c (kill_workbuf_unwind): New function.
26951 (Finsert_file_contents): On replacing, call
26952 make_conversion_work_buffer with correct args, and call
26953 record_unwind_protect with the first arg kill_workbuf_unwind.
26954
26955 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
26956
269572008-02-01 Kenichi Handa <handa@m17n.org>
26958
26959 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
26960 (fontset_add): Fix for the case that TO is less than TO1.
26961 (Ffontset_info): Don't use fallback fontset on checking the
26962 default fontset.
26963 (dump_fontset): New function for debugging.
26964
26965 * coding.c (Fdefine_coding_system_internal): Fix for the case that
26966 coding_type is Qcharset.
26967
269682008-02-01 Kenichi Handa <handa@m17n.org>
26969
26970 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
26971 (map_char_table): Don't inherit the value from the parent on
26972 initializing VAL. Adjust for the above change.
26973
269742008-02-01 Kenichi Handa <handa@m17n.org>
26975
26976 * coding.c (Qsignature, Qendian): Delete these variables.
26977 (syms_of_coding): Don't initialize them.
26978 (CATEGORY_MASK_UTF_16_AUTO): New macro.
26979 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
26980 detect_info->found.
26981 (decode_coding_utf_16): Don't detect BOM here.
26982 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
26983 is NOT utf_16_without_bom.
26984 (setup_coding_system): For a coding system of type utf-16, check
26985 if the attribute :endian is Qbig or not (not nil or not), and set
26986 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
26987 (detect_coding): If coding type is utf-16 and BOM detection is
26988 required, detect it.
26989 (Fdefine_coding_system_internal): For a coding system of type
26990 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
26991
269922008-02-01 Kenichi Handa <handa@m17n.org>
26993
26994 * coding.c (coding_set_source): Fix for the case that the current
26995 buffer is different from coding->src_object.
26996 (decode_coding_object): Don't use the conversion work buffer if
26997 DST_OBJECT is a buffer.
26998
269992008-02-01 Dave Love <fx@gnu.org>
27000
27001 * lread.c (read_emacs_mule_char) [len==2]: Index
27002 emacs_mule_charset correctly.
27003
270042008-02-01 Dave Love <fx@gnu.org>
27005
27006 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
27007 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
27008 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
27009 treated specially.)
27010 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
27011 (detected_mask): Remove Big5 bits.
27012
270132008-02-01 Kenichi Handa <handa@m17n.org>
27014
27015 The following changes are to make the font rescaling facility
27016 compatible with Emacs 21.
27017
27018 * xfaces.c (Vface_font_rescale_alist): Rename from
27019 Vface_resizing_fonts.
27020 (struct font_name): Rename member resizing_ratio to rescale_ratio.
27021 (font_rescale_ratio): Rename from font_resizing_ratio.
27022 (split_font_name): Set font->rescale_ratio.
27023 (better_font_p): Pay attention to font->rescale_ratio.
27024 (build_scalable_font_name): Likewise. Change RESX, and RESY
27025 fields.
27026 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
27027
270282008-02-01 Kenichi Handa <handa@m17n.org>
27029
27030 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
27031 (Qutf_16_le): Remove these variables.
27032 (syms_of_coding): Don't DEFSYM them.
27033 (decode_coding_utf_16): Fix handling of BOM.
27034 (encode_coding_utf_16): Fix handling of BOM.
27035
270362008-02-01 Kenichi Handa <handa@m17n.org>
27037
27038 * fileio.c (Finsert_file_contents): On replacing, before decoding
27039 the file into the work buffer, set point of the work buffer to the end.
27040
270412008-02-01 Dave Love <fx@gnu.org>
27042
27043 * coding.c (Fcheck_coding_systems_region): Fix type errors.
27044
270452008-02-01 Dave Love <fx@gnu.org>
27046
27047 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27048 and fix C types.
27049
270502008-02-01 Kenichi Handa <handa@m17n.org>
27051
27052 * xdisp.c (SKIP_GLYPHS): New macro.
27053 (set_cursor_from_row): Pay attention to string display properties.
27054
27055 * category.c (copy_category_entry): Fix for the case that RANGE
27056 is an integer.
27057
27058 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
27059
27060 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
27061
270622008-02-01 Kenichi Handa <handa@m17n.org>
27063
27064 * charset.c (Fcharset_id_internal): New function.
27065 (syms_of_charset): Defsubr it.
27066
27067 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
27068 with the last arg charset_list acquired from coding.
27069 (Fdefine_coding_system_internal): For ccl-based coding system, fix
27070 the attribute coding_attr_ccl_valids.
27071
27072 * coding.h (enum define_coding_ccl_arg_index): Set the first
27073 member coding_arg_ccl_decoder to coding_arg_max.
27074
27075 * ccl.h (ccl_driver): Adjust prototype.
27076
27077 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
27078 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 27079 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
27080 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
27081 last arg Qnil.
27082
270832008-02-01 Kenichi Handa <handa@m17n.org>
27084
27085 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
27086 call encode_char.
27087
27088 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
27089
270902008-02-01 Dave Love <fx@gnu.org>
27091
27092 * composite.c (syms_of_composite): Make composition_hash_table weak.
27093
270942008-02-01 Kenichi Handa <handa@m17n.org>
27095
27096 * dispextern.h (check_face_attributes, generate_ascii_font_name)
27097 (font_name_registry): Don't extern them.
27098 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
27099
27100 * fontset.h (Qfontset): Don't extern it.
27101 (new_fontset_from_font_name): Extern it.
27102
27103 * fontset.c: Give 8 extra slots to fontset objects.
27104 (Qfontset_info): New variable.
27105 (syms_of_fontset): Defsym it.
27106 (FONTSET_FALLBACK): New macro.
27107 (fontset_face): Try also the default fontset.
27108 (make_fontset): Realize a fallback fontset from the default fontset.
27109 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
27110 using split_font_name_into_vector and build_font_name_from_vector.
27111 (Fset_fontset_font): Access the elements of font_spec by enum
27112 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
27113 name by using split_font_name_into_vector.
27114 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
27115 generate a proper font name from the fontset name.
27116 Update Vfontset_alias_alist.
aac0c6e3
MR
27117 (n_auto_fontsets): New variable.
27118 (new_fontset_from_font_name): New function.
27119 (Ffont_info): Store the information about fonts generated from the
27120 default fontset in the first extra slot of the returned char-table.
27121
27122 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
27123 (font_name_registry): Delete function.
27124 (split_font_name_into_vector): New function.
27125 (build_font_name_from_vector): New function.
27126 (font_list): The argument REGISTRY is now a list of registry names.
27127 (choose_face_font): If we are choosing an ASCII font, and ATTRS
27128 specifies an explicit font name, return the name as is. Make a
27129 list of registy names.
27130
27131 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
27132 of x_new_fontset.
27133 (Fx_create_frame): Don't call x_new_fontset here. Just use
27134 x_list_fonts to check the existence of fonts.
27135
27136 * xterm.h (x_new_fontset): Adjust prototype.
27137
27138 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
27139 string. Use new_fontset_from_font_name to create a fontset from a
27140 font name.
27141
271422008-02-01 Kenichi Handa <handa@m17n.org>
27143
27144 * syntax.c (Vfind_word_boundary_function_table): New name for
27145 Vnext_word_boundary_function_table.
27146 (find-word-boundary-function-table): New name for
27147 next-word-boundary-function-table.
27148
271492008-02-01 Dave Love <fx@gnu.org>
27150
27151 * Makefile.in: Fix some dependencies.
27152
27153 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
27154 set it to nil before returning.
27155
27156 * composite.c (update_compositions): Fix type error.
27157
27158 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
27159
271602008-02-01 Kenichi Handa <handa@m17n.org>
27161
27162 * xterm.c (x_new_font): Optimize for the case that the font is
27163 already set for the frame.
27164
271652008-02-01 Kenichi Handa <handa@m17n.org>
27166
27167 * chartab.c (char_table_ascii): Check if the char table contents
27168 is sub-char-table or not.
27169 (char_table_set, char_table_set_range): Fix argument to
27170 char_table_ascii.
27171
27172 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
27173 (detect_coding_utf_8, detect_coding_utf_16)
27174 (detect_coding_emacs_mule, detect_coding_iso_2022)
27175 (detect_coding_sjis, detect_coding_big5)
27176 (detect_coding_ccl, detect_coding_charset): Change argument MASK
27177 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
27178 sequence is valid in this coding system. Change callers.
27179 (MAX_ANNOTATION_LENGTH): New macro.
27180 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
27181 (ADD_COMPOSITION_DATA): Change argument. Change callers.
27182 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
27183 (ADD_CHARSET_DATA): New macro.
27184 (emacs_mule_char): New argument ID. Change callers.
27185 (decode_coding_emacs_mule, decode_coding_iso_2022)
27186 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
27187 Produce charset annotation data in coding->charbuf.
27188 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
27189 to charset annotation data in coding->charbuf.
27190 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
27191 coding->common_flags if the coding system is iso-2022 based and
27192 uses designation.
27193 (produce_composition): Adjust for the new annotation data format.
27194 (produce_charset): New function.
27195 (produce_annotation): Handle charset annotation.
bba3e508
SM
27196 (handle_composition_annotation, handle_charset_annotation):
27197 New functions.
aac0c6e3
MR
27198 (consume_chars): Handle charset annotation. Utilize the above two
27199 functions.
27200 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
27201 buffer, get the deleted text as a string and set
27202 coding->src_object to that string.
27203 (detect_coding, detect_coding_system): Use the new struct
27204 coding_detection_info.
27205
27206 * coding.h (struct coding_detection_info): New structure.
27207 (struct coding_system): Adjust prototype of the member `detector'.
27208 (CODING_ANNOTATE_CHARSET_MASK): New macro.
27209
272102008-02-01 Kenichi Handa <handa@m17n.org>
27211
27212 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
27213
272142008-02-01 Dave Love <fx@gnu.org>
27215
27216 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
27217 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
27218 to new local and nullify apropos_accumulate before returning.
27219 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
27220
272212008-02-01 Kenichi Handa <handa@m17n.org>
27222
27223 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
27224 correctly.
e3eea1fc 27225
aac0c6e3
MR
272262008-02-01 Dave Love <fx@gnu.org>
27227
27228 * fns.c (Flanginfo): Call synchronize_system_time_locale.
27229
272302008-02-01 Kenichi Handa <handa@m17n.org>
27231
27232 The following changes are to make character composition happen
27233 automatically on displaying.
27234
27235 * Makefile.in (lisp, shortlisp): Add composite.elc.
27236
27237 * composite.h (Qauto_composed, Vauto_composition_function)
27238 (Qauto_composition_function): Extern them.
27239
27240 * composite.c (Vcomposition_function_table)
27241 (Qcomposition_function_table): Delete variables.
27242 (Qauto_composed, Vauto_composition_function)
27243 (Qauto_composition_function): New variables.
27244 (run_composition_function): Don't call
27245 compose-chars-after-function.
27246 (update_compositions): Clear `auto-composed' text property.
27247 (compose_chars_in_text): Delete this function.
27248 (syms_of_composite): Staticpro Qauto_composed and
27249 Qauto_composition_function. Declare Vauto_composition_function as
27250 a Lisp variable.
27251
27252 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
27253
27254 * xdisp.c (it_props): Add an entry for Qauto_composed.
27255 (handle_auto_composed_prop): New function.
27256
27257 * xselect.c (selection_data_to_lisp_data): Don't call
27258 compose_chars_in_text.
27259
272602008-02-01 Dave Love <fx@gnu.org>
27261
27262 * keyboard.c (read_char): Modify checking around use of
27263 Vkeyboard_translate_table.
27264
27265 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27266 and fix C types.
27267
272682008-02-01 Kenichi Handa <handa@m17n.org>
27269
27270 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
27271 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
27272 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
27273 the case that the last byte is '\r' correctly.
27274 (decode_coding): Flush out the unprocessed data correctly.
27275 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
27276
272772008-02-01 Dave Love <fx@gnu.org>
27278
27279 * xterm.c (XTread_socket): Fix changes for defined keysyms.
27280 Add XK_ISO... case.
27281 (xaw_scroll_callback): Revert last change.
27282
272832008-02-01 Kenichi Handa <handa@m17n.org>
27284
27285 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
27286
272872008-02-01 Kenichi Handa <handa@m17n.org>
27288
27289 * xfaces.c (Vface_resizing_fonts): New variable.
27290 (struct font_name): New member `resizing_ratio'.
27291 (font_resizing_ratio): New function.
27292 (split_font_name): Set font->resizing_ratio.
27293 (better_font_p): Pay attention to font->resizing_ratio.
27294 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
27295 RESX, and RESY fields.
27296 (try_alternative_families): Try scalable fonts if
27297 Vscalable_fonts_allowed is not Qt.
27298 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
27299
273002008-02-01 Dave Love <fx@gnu.org>
27301
27302 * xterm.c (xaw_scroll_callback): Cast correctly.
27303
273042008-02-01 Dave Love <fx@gnu.org>
27305
27306 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
27307 (lispy_kana_keys): Comment out.
27308 (make_lispy_event) [XK_kana_A]: Comment out.
27309
27310 * xterm.c (xaw_scroll_callback): Cast call_data.
27311 (XTread_socket): Deal with ASCII keysyms.
27312 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
27313
273142008-02-01 Dave Love <fx@gnu.org>
27315
27316 * xterm.c (Vx_keysym_table): New.
27317 (syms_of_xterm): Initialize it.
27318 (XTread_socket): Use it.
27319 From head: Eliminate incorrect optimization that tried to avoid
27320 decoding the output of X*LookupString.
27321 (x_get_font_repertory): Delete charset declaration.
27322
273232008-02-01 Kenichi Handa <handa@m17n.org>
27324
27325 * coding.c (detect_coding_charset): If only ASCII bytes are found,
27326 return 0.
bba3e508
SM
27327 (Fdefine_coding_system_internal):
27328 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
27329
273302008-02-01 Dave Love <fx@gnu.org>
27331
27332 * coding.c (Fcheck_coding_system): Doc fix.
27333
27334 * editfns.c (Finsert_byte): Return a proper value.
27335
273362008-02-01 Kenichi Handa <handa@m17n.org>
27337
bba3e508
SM
27338 * coding.c (decode_coding): Fix args to translate_chars.
27339 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
27340 (encode_coding): Fix args to translate_chars. Pay attention to
27341 Vstandard_translation_table_for_encode.
27342
27343 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
27344 SINGLE_BYTE_CHAR_P.
27345
27346 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
27347 not by SINGLE_BYTE_CHAR_P.
27348
27349 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
27350 SINGLE_BYTE_CHAR_P.
27351
27352 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
27353 SINGLE_BYTE_CHAR_P.
27354
27355 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
27356 by SINGLE_BYTE_CHAR_P.
27357
27358 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
27359 SINGLE_BYTE_CHAR_P.
27360
273612008-02-01 Dave Love <fx@gnu.org>
27362
27363 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
27364
273652008-02-01 Dave Love <fx@gnu.org>
27366
27367 * fns.c (Flanginfo): Fix typo.
27368
27369 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
27370
273712008-02-01 Kenichi Handa <handa@m17n.org>
27372
27373 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
27374 (detect_coding_emacs_mule, detect_coding_iso_2022)
27375 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
27376 incomplete byte sequence. Don't update *mask when correctly detected.
27377 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
27378 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
27379 (detect_coding, detect_coding_system): Adjust for the changes above.
27380
273812008-02-01 Kenichi Handa <handa@m17n.org>
27382
27383 * character.c (char_string): Rename from
27384 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
27385 (string_char): Rename from string_char.
27386
27387 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
27388 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
27389 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
27390 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
27391
273922008-02-01 Dave Love <fx@gnu.org>
27393
27394 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
27395
273962008-02-01 Kenichi Handa <handa@m17n.org>
27397
27398 * keymap.c (push_key_description): Pay attention to force_multibyte.
27399
27400 * regex.c (re_search_2): Fix for the case of unibyte buffer.
27401
274022008-02-01 Dave Love <fx@gnu.org>
27403
27404 * charset.c (define_charset_internal): Rename `supprementary'.
27405
27406 * Makefile.in (lisp, shortlisp): Remove latin-N.
27407
274082008-02-01 Dave Love <fx@gnu.org>
27409
27410 * xfns.c (x_window, x_window): Use use_xim.
27411
27412 * xterm.c (use_xim): Initialize.
27413 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
27414 (x_term_init): Maybe set use_xim.
27415
27416 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
27417
274182008-02-01 Kenichi Handa <handa@m17n.org>
27419
27420 * search.c (search_buffer): Fix case-fold-search of multibyte
27421 characters.
27422 (boyer_moore): Rename the last argument to char_high_bits.
27423
274242008-02-01 Kenichi Handa <handa@m17n.org>
27425
27426 * xdisp.c (display_string): Fix for the case of zero width glyph.
27427
27428 * xfns.c (x_set_font): Change the error message of the case that
27429 x_new_fontset returns Qt.
27430
27431 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
27432 (Finternal_set_lisp_face_attribute): Use signal_error for the
27433 error of invalid fontset.
27434
27435 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
27436 fontset, return Qt.
27437
274382008-02-01 Dave Love <fx@gnu.org>
27439
27440 * unexelf.c (unexec): Make .got handling not SGI-specific.
27441
27442 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
27443
27444 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
27445
27446 * keyboard.c (read_key_sequence): Fix type error.
27447
bba3e508
SM
27448 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
27449 Fix type error.
aac0c6e3
MR
27450
27451 * fontset.c (fontset_add): Return Lisp_Object.
27452
274532008-02-01 Dave Love <fx@gnu.org>
27454
27455 * charset.h (charset_ordered_list_tick): Declare extern.
27456
274572008-02-01 Kenichi Handa <handa@m17n.org>
27458
27459 The following changes (and some of 2008-02-01 changes of mine) are
27460 for handling syntax, category, and case conversion for unibyte
27461 characters by converting them to multibyte on the fly. With these
27462 changes, we don't have to setup syntax and case tables for unibyte
27463 characters in each language environment.
27464
27465 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
27466 multibyte if necessary.
27467
27468 * bytecode.c (Fbyte_code): Likewise.
27469
27470 * character.h (LEADING_CODE_LATIN_1_MIN)
27471 (LEADING_CODE_LATIN_1_MAX): New macros.
27472 (unibyte_to_multibyte_table): Extern it.
27473 (unibyte_char_to_multibyte): New macro.
27474 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
27475 (CHAR_LEADING_CODE): New macro.
27476 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
27477
27478 * character.c (unibyte_to_multibyte_table): New variable.
27479 (unibyte_char_to_multibyte): Move to character.h and define as macro.
27480 (multibyte_char_to_unibyte): If C is an eight-bit character,
27481 convert it to the corresponding byte value.
27482
27483 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
27484 not 1, signals an error. Update the elements of
27485 unibyte_to_multibyte_table.
27486 (init_charset_once): Initialize unibyte_to_multibyte_table.
27487 (syms_of_charset): Define the charset `iso-8859-1'.
27488
27489 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
27490 as is without converting it to unibyte. In a unibyte buffer,
27491 convert C to multibyte before checking the syntax.
27492
27493 * lisp.h (unibyte_char_to_multibyte): Delete extern.
27494
27495 * minibuf.c (Fminibuffer_complete_word): Use the macro
27496 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
27497
27498 * regex.h (struct re_pattern_buffer): New member target_multibyte.
27499
27500 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
27501 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
27502 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
27503 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
27504 non-emacs case.
27505 (PATFETCH): Convert an eight-bit char to multibyte.
27506 (HANDLE_UNIBYTE_RANGE): New macro.
27507 (regex_compile): Setup the compiled pattern for multibyte chars
27508 even if the given regex string is unibyte. Use PATFETCH_RAW
27509 instead of PATFETCH in many places. To handle `charset'
27510 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
27511 only for ASCII chars.
27512 (analyse_first) <exactn>: Simplify because the compiled pattern
27513 is multibyte.
27514 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
27515 <charset>: Use CHAR_LEADING_CODE to get leading codes.
27516 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
27517 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
27518 multibyte always 1.
27519 (re_search_2): In emacs, set the locale variable multibyte to 1,
27520 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
27521 to decide the multibyteness of STR1 and STR2.
27522 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
27523 before translating and checking fastmap.
27524 (TARGET_CHAR_AND_LENGTH): New macro.
27525 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
27526 to 1, otherwise to 0. New local variable target_multibyte.
27527 Check it to decide the multibyteness of STR1 and STR2.
27528 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
27529 <charset, charset_not>: If multibyte is nonzero, check fastmap
27530 only for ASCII chars. Call bcmp_translate with
27531 target_multibyte, not with multibyte.
27532 <begline>: Declare the local variable C as `unsigned'.
27533 (bcmp_translate): Change the last arg name to target_multibyte.
27534
27535 * search.c (compile_pattern_1): Don't adjust the multibyteness of
27536 the regexp pattern and the matching target. Set cp->buf.multibyte
27537 to the multibyteness of the regexp pattern. Set
27538 cp->but.target_multibyte to the multibyteness of the matching target.
27539 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
27540 FETCH_STRING_CHAR_ADVANCE.
27541 (Freplace_match): Convert unibyte chars to multibyte.
27542
27543 * syntax.c (char_quoted, back_comment, scan_words)
27544 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
27545 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
27546 unibyte chars to multibyte.
27547 (skip_chars): Delete the arg syntaxp, and move the code for
27548 handling syntaxes to skip_syntaxes. Change callers.
27549 Fix the case that the multibyteness of STRING and the current
27550 buffer doesn't match.
27551 (skip_syntaxes): New function.
27552 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
27553 SINGLE_BYTE_CHAR_P.
27554
275552008-02-01 Kenichi Handa <handa@m17n.org>
27556
27557 * xfaces.c (QCfontset): New variable.
27558 (LFACE_FONTSET): New macro.
27559 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
27560 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
27561 (Finternal_set_lisp_face_attribute)
27562 (Finternal_get_lisp_face_attribute): Handle QCfontset.
27563 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
27564 check also LFACE_FONTSET_INDEX.
27565 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
27566 attrs[LFACE_FONT_INDEX].
27567 (syms_of_xfaces): Intern and staticpro QCfontset.
27568
27569 * dispextern.h (enum lface_attribute_index): New member
27570 LFACE_FONTSET_INDEX.
27571
27572 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
27573
275742008-02-01 Kenichi Handa <handa@m17n.org>
27575
27576 * coding.c (coding_set_destination): Fix coding->destination for
27577 the case converting a region.
27578 (encode_coding_utf_8): Encode eight-bit chars as single byte.
27579 (encode_coding_object): Fix coding->dst_pos and
27580 coding->dst_pos_byte for the case converting a region.
27581
27582 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
27583
27584 * character.h (BYTE8_STRING): New macro.
27585
27586 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
27587
275882008-02-01 Kenichi Handa <handa@m17n.org>
27589
27590 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
27591 characters by octal form.
27592
27593 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
27594
27595 * buffer.h (_fetch_multibyte_char_len): Delete extern.
27596 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
27597 _fetch_multibyte_char_len.
27598 (FETCH_CHAR_AS_MULTIBYTE): New macro.
27599
27600 * casetab.c (set_canon, set_identity, shuffle): Simplify.
27601
27602 * casefiddle.c (casify_object): Simplify. Handle the case that
27603 the case conversion change the byte length.
27604 (casify_region): Likewise.
27605
27606 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27607
27608 * character.c (_fetch_multibyte_char_len): Delete this variable.
27609 (syms_of_character): Setup Vprintable_chars.
27610
27611 * editfns.c (Fchar_equal): Fix for the unibyte case.
27612 (Finsert_byte): New function.
27613 (syms_of_editfns): Defsubr it.
27614
27615 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27616 of direct code 0x3ffff.
27617
27618 * search.c (Freplace_match): Fix for the unibyte case.
27619
276202008-02-01 Kenichi Handa <handa@m17n.org>
27621
27622 * lread.c (safe_to_load_p): Fix the logic.
27623
27624 * syntax.c (scan_words): Don't treat characters belonging to
27625 different scripts as constituting a word.
27626
27627 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27628
27629 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27630
27631 * emacs.c (main): In the case of --unibyte, instead of aborting on
27632 finding non-empty buffer, make it unibyte.
27633
276342008-02-01 Kenichi Handa <handa@m17n.org>
27635
27636 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27637 to create a fontset.
27638
276392008-02-01 Dave Love <fx@gnu.org>
27640
27641 * character.c (Funibyte_char_to_multibyte): Doc fix.
27642
27643 * xfns.c [HAVE_STDLIB_H]: Fix last change.
27644
276452008-02-01 Kenichi Handa <handa@m17n.org>
27646
27647 * fontset.c (fontset_add): Make the type `int'.
27648 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27649
27650 * character.c (unibyte_char_to_multibyte)
27651 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27652 charset_unibyte, not charset_primary.
27653
27654 * charset.h (charset_unibyte): Extern it instead of charset_primary.
27655
27656 * charset.c (charset_unibyte): Rename from charset_primary.
27657 (Funibyte_charset): Rename from Fprimary_charset.
27658 (Fset_unibyte_charset): Rename from Fset_primary_charset.
27659 (syms_of_charset): Adjust for the above changes.
27660
27661 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27662 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27663 it->multibyte_p is zero.
27664
27665 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27666 Delete extern.
27667
276682008-02-01 Kenichi Handa <handa@m17n.org>
27669
27670 * coding.c (Fdefine_coding_system_internal): Fix category setting
27671 for a coding system of type iso-2022.
27672
276732008-02-01 Kenichi Handa <handa@m17n.org>
27674
27675 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27676
276772008-02-01 Kenichi Handa <handa@m17n.org>
27678
27679 * syntax.c (Vnext_word_boundary_function_table): New variable.
27680 (next-word-boundary-function-table): Declare it as a Lisp variable
27681 in syms_of_syntax.
27682 (scan_words): Call functions in Vnext_word_boundary_function_table
27683 if any.
27684
27685 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27686
27687 * fontset.c (fs_load_font): If fontp->charset is not negative,
27688 return fontp without setting its members.
27689
276902008-02-01 Dave Love <fx@gnu.org>
27691
27692 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27693
27694 * m/sparc.h (HAVE_ALLOCA): Delete.
27695
27696 * s/irix6-5.h: Don't include strings.h.
27697 (bcopy, bzero, bcmp): Don't undef.
27698
27699 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
27700
27701 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
27702 (TIOCSIGSEND): Don't test IRIX6.
27703 (bcopy, bzero, bcmp): Define conditionally.
27704
277052008-02-01 Kenichi Handa <handa@m17n.org>
27706
27707 * buffer.c (Qas, Qmake, Qto): New variables.
27708 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
27709 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
27710
27711 * callproc.c (Fcall_process): Don't call insert_1_both directly if
27712 we are inserting a process output into a multibyte buffer.
27713
27714 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
27715 multibyte_char_to_unibyte.
27716
27717 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
27718 by the primary charset, make it eight-bit char.
27719 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27720
27721 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27722 (charset_8_bit__control, charset_8_bit_graphic)
27723 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27724 (define_charset_internal): New function.
27725 (syms_of_charset): Call define_charset_internal for pre-defined
27726 charsets.
27727
27728 * charset.h (charset_8_bit): Extern it.
27729
27730 * coding.c (make_conversion_work_buffer): Adjust for the change
27731 of Fset_buffer_multibyte.
27732 (encode_coding_raw_text): Increment p0 in the loop.
27733
27734 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27735
bba3e508
SM
27736 * xdisp.c (setup_echo_area_for_printing, set_message_1):
27737 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
27738
27739 * fns.c (Fstring_to_multibyte): New function.
27740 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27741
277422008-02-01 Dave Love <fx@gnu.org>
27743
27744 * xfns.c (x_put_x_image): Declare args.
27745
27746 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
27747 (try_font_list): Declare an arg.
27748
27749 * xdisp.c (message2_nolog, set_message): Declare an arg.
27750
27751 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
27752
27753 * syntax.c (scan_sexps_forward): Declare an arg.
27754
27755 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
27756 Declare an arg.
27757
27758 * lisp.h (Fnew_fontset): Declare.
27759
27760 * keymap.c (push_key_description): Call CHARACTERP correctly.
27761
27762 * fontset.c (fontset_add): Declare args. Call make_number correctly.
27763 (face_for_char): Delete unused vars.
27764 (Fset_fontset_font): Doc fix. Delete unused vars.
27765
27766 * doc.c (Fsubstitute_command_keys): Delete unused vars.
27767
27768 * composite.c (update_compositions): Declare arg.
27769
27770 * cm.c (calccost, cmgoto): Declare args.
27771
27772 * charset.c: Remove `emacs' conditional. Doc fixes.
27773 (map_char_table_for_charset): Declare.
27774
27775 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
27776
27777 * ccl.c: Remove `emacs' conditional.
27778
277792008-02-01 Kenichi Handa <handa@m17n.org>
27780
27781 The following changes are to allow specifying multiple font
27782 patterns for a character range (specified by script or charset).
27783
27784 * Makefile.in (abbrev.o): Depend on syntax.h.
27785 (xfaces.o): Depend on charset.h.
27786
27787 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
27788 SINGLE_BYTE_CHAR_P.
27789
27790 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
27791
27792 * character.h (Vchar_script_table): Extern it.
27793
27794 * character.c (Vscript_alist): Delete.
27795 (Vchar_script_table, Qchar_script_table): New variable.
27796 (syms_of_character): Declare Vchar_script_table as a lisp variable
27797 and initialize it.
27798
27799 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
27800 have property char-table-extra-slots, make no extra slot.
27801
27802 * dispextern.h (struct face): Delete member `charset'.
27803 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
27804 SINGLE_BYTE_CHAR_P.
27805 (choose_face_font, lookup_non_ascii_face, font_name_registry):
27806 Add prototypes.
27807 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
27808 (generate_ascii_font_name): Rename from generate_ascii_font.
27809
27810 * fontset.h (get_font_repertory_func): New prototype.
27811 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
27812 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
27813
27814 * fontset.c (Qprepend, Qappend): New variables.
27815 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
27816 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
27817 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
27818 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
27819 (fontset_ref_and_range, fontset_add, reorder_font_vector)
27820 (load_font_get_repertory): New functions.
27821 (fontset_set): Delete.
27822 (fontset_face): New arg FACE. Return face ID, not face.
27823 Complete re-write to handle new fontset structure. Change caller.
27824 (free_face_fontset): Use ASET istead of AREF (X) = Y.
27825 (face_for_char): Don't call lookup_face.
27826 (make_fontset_for_ascii_face): New arg FACE.
27827 (fs_load_font): New arg CHARSET_ID. Don't check
27828 Vfont_encoding_alist here.
27829 (find_font_encoding): New function.
27830 (list_fontsets): Use STRINGP, not ! NILP.
27831 (accumulate_script_ranges): New function.
bba3e508
SM
27832 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
27833 Completely re-written to handle new fontset structure.
aac0c6e3 27834 (Ffontset_font): Return a copy of element.
bba3e508
SM
27835 (syms_of_fontset): Define symbols Qprepend and Qappend.
27836 Fix docstring of font-encoding-alist.
aac0c6e3
MR
27837
27838 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
27839 (Fset_fotset_font): Fix arguments to 5.
27840
27841 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
27842
27843 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
27844 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27845 (highlight_trailing_whitespace): Adjust for the change of
27846 lookup_named_face.
27847
27848 * xfaces.c: Include charset.h.
27849 (load_face_font): Delete argument C. Change caller.
27850 (generate_ascii_font_name): Rename from generate_ascii_font.
27851 (font_name_registry): New function.
27852 (cache_face): Store ascii faces before non-ascii faces in buckets.
27853 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
27854 Lookup only ascii faces.
27855 (lookup_non_ascii_face): New function.
27856 (lookup_named_face): Delete argument C. Change caller.
27857 (lookup_derived_face): Delete argument C. Change caller.
27858 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
27859 a string, just call font_list with it.
27860 (choose_face_font): Delete arguments FACE and C. New arg
27861 FONT_SPEC. Change caller.
27862 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
27863 Change caller.
27864 (realize_non_ascii_face): New function.
27865 (realize_x_face): Call load_face_font here.
27866 (realize_tty_face): Delete argument C. Change caller.
27867 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
27868 get a face ID.
27869 (dump_realized_face): Don't print charset of FACE.
27870
27871 * xfns.c (x_set_font): Always call x_new_fontset and
27872 store_frame_parameter.
27873 (Fx_create_frame): Call x_new_fontset, not x_new_font.
27874 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
27875
27876 * xterm.h (x_get_font_repertory): Extern it.
27877
27878 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27879 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27880 it->multibyte_p is zero.
27881 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27882 (x_new_fontset): If FONTSETNAME doesn't match any existing
27883 fontsets, create a new one.
27884 (x_get_font_repertory): New function.
27885
278862008-02-01 Kenichi Handa <handa@m17n.org>
27887
27888 * coding.c (Ffind_coding_systems_region_internal): Detect an
27889 ASCII only string correctly.
27890
27891 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
27892 version is 0.
27893
278942008-02-01 Kenichi Handa <handa@m17n.org>
27895
27896 * lread.c: Include "coding.h".
27897 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
27898 (load_each_byte, unread_char): New variables.
27899 (readchar_backlog): Delete.
27900 (readchar): Return a character unless load_each_byte is nonzero.
27901 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
27902 cons. If unread_char is not -1, simply return it.
27903 (unreadchar): Handle the case that readcharfun is
27904 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
27905 (read_multibyte): Delete.
27906 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
27907 (read_emacs_mule_char): New functions.
27908 (Fload): Even if the file doesn't have the extension ".elc", if
27909 safe_to_load_p returns a positive version number, assume that the
27910 file contains bytecompiled code. If the version is less than 22,
27911 load the file while decoding multibyte sequences by emacs-mule.
27912 (readevalloop): Don't use readchar_backlog.
27913 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
27914 (Fread_from_string): Pay attention to the case that STREAM is a cons.
27915 (read_escape): Delete the arg BYTEREP.
27916 (read1): Set load_each_byte to 1 temporarily while handling
27917 #@NUMBER. Don't call read_multibyte.
27918 (read_vector): Call Fread with a cons. If readcharfun is
27919 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
27920 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
27921 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
27922 and Qload_force_doc_strings.
27923
279242008-02-01 Kenichi Handa <handa@m17n.org>
27925
bba3e508
SM
27926 * xdisp.c (face_before_or_after_it_pos):
27927 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
27928
279292008-02-01 Kenichi Handa <handa@m17n.org>
27930
27931 * character.h (TRAILING_CODE_P): New macro.
27932 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
27933 (string_char_with_unification): Fix prototype.
27934 (Vscript_alist): Extern it.
27935
27936 * character.c (Vscript_alist): New variable.
27937 (string_char_with_unification, str_as_unibyte)
27938 (string_escape_byte8): Add `const' to local variables.
27939 (syms_of_character): Declare script-alist as a Lisp variable.
27940
27941 * charset.h (Vcharset_ordered_list): Extern it.
27942 (charset_ordered_list_tick): Extern it.
27943 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
27944 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
27945 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
27946 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
27947 (Funify_charset): Adjust for the change of Funify_charset.
27948
27949 * charset.c (charset_ordered_list_tick): New variable.
27950 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
27951 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 27952 deunify instead of unify a charset.
aac0c6e3
MR
27953 (string_xstring_p): Add `const' to local variables.
27954 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
27955 (encode_char): Adjust for the change of Funify_charset.
27956 Fix detecting of invalid code.
aac0c6e3
MR
27957 (Fset_charset_priority): Increment charset_ordered_list_tick.
27958 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
27959 and TO_CODE.
27960
27961 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
27962 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
27963 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
27964 (decode_coding_ccl, consume_chars)
27965 (Ffind_coding_systems_region_internal)
27966 (Fcheck_coding_systems_region): Add `const' to local variables.
27967
27968 * print.c (print_object): Use octal form for printing the
27969 contents of a bool vector.
27970
279712008-02-01 Dave Love <fx@gnu.org>
27972
27973 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
27974 <version == 20>: Refuse to load.
27975
279762008-02-01 Dave Love <fx@gnu.org>
27977
27978 * fns.c: Move coding.h.
27979 (Qcodeset, Qdays, Qmonths): New.
27980 (concat): Use CHARACTERP instead of INTEGERP.
27981 (Flocale_codeset): Delete.
27982 (Flanginfo): New function.
27983 (syms_of_fns): Change accordingly.
27984
27985 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
27986
279872008-02-01 Dave Love <fx@gnu.org>
27988
bba3e508
SM
27989 * casetab.c (init_casetab_once, init_casetab_once):
27990 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
27991
27992 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
27993
27994 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
27995
27996 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
27997 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
27998 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
27999
28000 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
28001
28002 * coding.c (ENCODE_DESIGNATION, decode_eol)
28003 (make_conversion_work_buffer, code_conversion_restore)
28004 (Fdefine_coding_system_internal): Convert Lisp types.
28005 (code_conversion_restore): Use EQ, not ==.
28006 (Fencode_coding_string): Fix code_convert_string call.
28007
28008 * coding.h (code_convert_region): Fix prototype.
28009
28010 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
28011
28012 * fontset.c (fontset_ref, fontset_set, fs_load_font)
28013 (Ffontset_info): Convert Lisp types.
28014
28015 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
28016
28017 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
28018
28019 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
28020
28021 * chartab.c: Include "...h", not <...h> in some cases.
28022
28023 * callproc.c (Fcall_process): Remove unused variables.
28024
280252008-02-01 Dave Love <fx@gnu.org>
28026
28027 * coding.c (Fset_coding_system_priority): Allow null arg list.
28028
280292008-02-01 Dave Love <fx@gnu.org>
28030
28031 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
28032 (Fself_insert_and_exit): Use CHARACTERP.
28033
28034 * callproc.c (Fcall_process): Remove unused vars.
28035
28036 * xterm.c (XTread_socket): Add extra dead keysyms.
28037
28038 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
28039
28040 * dispextern.h: Remove prototypes for redraw_frame,
28041 redraw_garbaged_frames.
28042
28043 * cmds.c (Fself_insert_command): Use CHARACTERP.
28044
28045 * chartab.c (make_sub_char_table): Remove unused var.
28046 (Fset_char_table_default, Fmap_char_table): Doc fix.
28047
28048 * keymap.c (access_keymap): Remove generic char code.
28049 (push_key_description): Use CHARACTERP.
28050
280512008-02-01 Dave Love <fx@gnu.org>
28052
28053 * charset.c: Doc fixes.
28054 (Funify_charset): Extra checking.
28055
280562008-02-01 Dave Love <fx@gnu.org>
28057
28058 * lread.c: Remove some unused variables.
28059 (safe_to_load_p): If safe, return the magic number version byte.
28060 (Fload): Maybe use load-with-code-conversion.
28061
280622008-02-01 Kenichi Handa <handa@m17n.org>
28063
28064 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
28065 of category_set for characters out of the range.
28066 Avoid unnecessary modification.
aac0c6e3
MR
28067
28068 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
28069 Vchar_unify_table. The default value of the table is now nil.
28070
28071 * character.c (syms_of_character): Setup Vchar_width_table for
28072 eight-bit-control and raw-byte chars.
28073
bba3e508
SM
28074 * charset.h (enum define_charset_arg_index):
28075 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
28076 charset_arg_superset.
28077 (enum charset_attr_index): Delete charset_parents and add
28078 charset_subset and charset_superset.
28079 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
28080 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
28081 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
28082 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
28083 (CHARSET_SUPERSET): New macros.
28084 (charset_work): Extern it.
28085 (ENCODE_CHAR): Use charset_work.
28086 (CHAR_CHARSET_P): Adjust for the change of encoder format.
28087 (map_charset_chars): Extern it.
28088
28089 * charset.c (load_charset_map): Set the default value of encoder
28090 and deunifier char-tables to nil.
bba3e508
SM
28091 (map_charset_chars): Change argument. Change callers.
28092 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
28093 (Fmap_charset_chars): New optional args from_code and to_code.
28094 (Fdefine_charset_internal): Adjust for the change of
28095 `define-charset' (:parents -> :subset or :superset).
28096 (charset_work): New variable.
28097 (encode_char, syms_of_charset): Adjust for the change of
28098 Fdefine_charset_internal.
28099 (Ffind_charset_string): Setup the vector `charsets' correctly.
28100
bba3e508
SM
28101 * chartab.c (sub_char_table_ref_and_range): New arg default.
28102 Fix the previous change.
aac0c6e3
MR
28103 (char_table_ref_and_range): Adjust for the above change.
28104 (map_sub_char_table_for_charset): New function.
28105 (map_char_table_for_charset): New function.
28106
28107 * keymap.c (describe_vector): Handle a char-table directly here.
28108 (describe_char_table): Delete.
28109
28110 * lisp.h (map_charset_chars): Delete.
28111
281122008-02-01 Dave Love <fx@gnu.org>
28113
28114 * fns.c (count_combining): Comment out (unused).
28115 (Flocale_codeset): New.
28116 (syms_of_fns): Defsubr it.
28117
28118 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
28119 (size_t): Remove.
28120
281212008-02-01 Dave Love <fx@gnu.org>
28122
28123 * Makefile.in (chartab.o): Depend on charset.h.
28124
281252008-02-01 Kenichi Handa <handa@m17n.org>
28126
28127 * character.c (syms_of_character): Set the default value of
28128 Vprintable_chars to Qnil.
28129
281302008-02-01 Dave Love <fx@gnu.org>
28131
28132 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
28133
281342008-02-01 Kenichi Handa <handa@m17n.org>
28135
28136 * charset.c (load_charset_map): Handle the case that from < to
28137 correctly.
28138
28139 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
28140 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
28141 Pay attention to raw-8-bit chars.
28142
281432008-02-01 Kenichi Handa <handa@m17n.org>
28144
28145 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
28146 It is not bytecompiled now.
28147
28148 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
28149 (charset_jisx0208): New variables.
28150 (Fdefine_charset_internal): Setup them if appropriate.
28151 (init_charset_once): Initialize them to -1.
28152
28153 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
28154 (charset_jisx0208): Extern them.
28155
28156 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
28157 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
28158 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
28159 (setup_iso_safe_charsets): Fix arguments to Fassq.
28160 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
28161 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
28162 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
28163 (encode_coding_iso_2022): Change the 1st arg to
28164 ENCODE_ISO_CHARACTER to a variable.
28165
281662008-02-01 Kenichi Handa <handa@m17n.org>
28167
28168 * charset.h (enum define_charset_arg_index): New enums
28169 charset_arg_min_code and charset_arg_max_code.
28170 (struct charset): New member char_index_offset.
28171
28172 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
28173 Take charset->char_index_offset into account.
28174 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
28175 args[charset_arg_max_code]. Setup charset.char_index_offset.
28176 (syms_of_charset): Fix args to Fdefine_charset_internal.
28177
281782008-02-01 Dave Love <fx@gnu.org>
28179
28180 * coding.c (decode_coding_utf_8): Reject overlong sequences.
28181
281822008-02-01 Dave Love <fx@gnu.org>
28183
28184 * coding.c: Doc fixes.
28185 (Fcoding_system_aliases): Fix return value.
28186 (Qmac): Remove (duplicated) definition.
28187
281882008-02-01 Dave Love <fx@gnu.org>
28189
362654a6
JB
28190 * charset.c (Fcharset_priority_list, Fset_charset_priority):
28191 New functions.
aac0c6e3
MR
28192
28193 * character.c (Fstring): Doc fix.
28194
28195 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
28196
362654a6 28197 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
28198 (font-encoding-alist): Doc fix.
28199
282002008-02-01 Dave Love <fx@gnu.org>
28201
28202 * term.c (costs_set): Declare static, non-initialized for pcc.
28203 (encode_terminal_code): Remove unused var.
28204
28205 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
28206 for K&R.
28207
28208 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
28209
28210 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
28211 (suffixes): Move out of make_subsidiaries for K&R.
28212
28213 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
28214
28215 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
28216
282172008-02-01 Dave Love <fx@gnu.org>
28218
28219 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
28220
28221 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
28222
282232008-02-01 Yong Lu <lyongu@asia-infonet.com>
28224
28225 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
28226
28227 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
28228
282292008-02-01 Kenichi Handa <handa@m17n.org>
28230
28231 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
28232 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
28233
282342008-02-01 Kenichi Handa <handa@m17n.org>
28235
28236 * coding.c (decode_coding_charset): Adjust for the change of
28237 Fdefine_coding_system_internal.
28238 (Fdefine_coding_system_internal): For a coding system of
28239 `charset' type, store a list of charset IDs in
28240 `charset_attr_charset_valids' element of coding attributes.
28241
282422008-02-01 Kenichi Handa <handa@m17n.org>
28243
28244 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
28245 (emacs_mule_char): New arg src. Delete arg `composition'.
28246 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
28247 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
28248 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
28249 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
28250 (DECODE_EMACS_MULE_21_COMPOSITION):
28251 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
28252 sequence.
28253 (decode_coding_emacs_mule): Handle composition correctly. Rewind
28254 `src' and `consumed_chars' correctly before calling emacs_mule_char.
28255 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
28256 and alt&rule composition.
28257 (decode_coding_iso_2022): Handle composition correctly.
28258 (init_coding_once): Setup emacs_mule_bytes for private charsets.
28259
28260 * charset.c (Fdefine_charset_internal): Fix bug for the case of
28261 re-defining a charset. If the charset has :emacs-mule-id, setup
28262 emacs_mule_bytes.
28263 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
28264
282652008-02-01 Kenichi Handa <handa@m17n.org>
28266
28267 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
28268 (encode_coding_big5, encode_coding_charset): If coding requires safe
28269 encoding, produce a character specified by
28270 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
28271
282722008-02-01 Dave Love <fx@gnu.org>
28273
28274 * xterm.c (XSetIMValues): Declare.
28275
28276 * process.c: Conditionally include sys/wait.h, pty.h.
28277
28278 * print.c (print_object): Fix print format for 64-bit systems.
28279
28280 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
28281
28282 * buffer.c (emacs_strerror): Declare.
28283
28284 * fontset.c (Fclear_face_cache): Declare.
28285 (accumulate_font_info): Comment-out (unused).
28286 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
28287 variables.
28288
28289 * character.h (string_escape_byte8): Declare.
28290
bba3e508
SM
28291 * charset.c (load_charset_map, load_charset_map_from_file):
28292 Remove unused vars.
aac0c6e3
MR
28293 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
28294 (Fmap_charset_chars): Doc fix.
28295
28296 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
28297 (Fset_coding_system_priority, Fset_coding_system_priority)
28298 (Fdefine_coding_system_internal): Doc fix.
28299
283002008-02-01 Dave Love <fx@gnu.org>
28301
28302 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
28303
283042008-02-01 Kenichi Handa <handa@m17n.org>
28305
28306 * character.c (string_escape_byte8): Make multibyte string with
28307 correct size.
28308
28309 * charset.c (Fmake_char): Delete unnecessary code.
28310
283112008-02-01 Kenichi Handa <handa@m17n.org>
28312
28313 * xfns.c (x_encode_text): Allocate coding.destination here, and
28314 call encode_coding_object with dst_object Qnil.
28315
28316 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
28317 multibyte form correctly.
28318
28319 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
28320 against Vfont_encoding_alist.
28321
28322 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
28323 handling of charset list.
28324 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
28325 (decode_coding_object): Move point to coding->dst_pos before
28326 calling post-read-conversion function.
28327 (encode_coding_object): Give correct arguments to
28328 pre-write-conversion. Ignore the return value of
28329 pre-write-conversion function. Pay attention to the case that
28330 pre-write-conversion changes the current buffer. If dst_object is
28331 Qt, even if coding->src_bytes is zero, allocate at least one byte
28332 to coding->destination.
28333
28334 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
28335
28336 * charset.c (Fmake_char): Make it more backward compatible.
28337 (Fmap_charset_chars): Fix docstring.
28338
283392008-02-01 Dave Love <fx@gnu.org>
28340
28341 * coding.c: Doc fixes.
28342 (Fdefine_coding_system_alias): Use names, not symbols, in
28343 coding-system-alist.
28344
283452008-02-01 Kenichi Handa <handa@m17n.org>
28346
28347 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
28348 of calling free_realized_face.
28349
283502008-02-01 Yong Lu <lyongu@asia-infonet.com>
28351
28352 * charset.c (read_hex): Don't treat SPC as a comment starter.
28353 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
28354 (Fdecode_char): Fix typo.
28355
283562008-02-01 Kenichi Handa <handa@m17n.org>
28357
28358 * charset.h (struct charset): New member `code_space_mask'.
28359
28360 * coding.c (coding_set_source): Delete the local variable beg_byte.
28361 (encode_coding_charset, Fdefine_coding_system_internal):
28362 Delete the local variable charset.
bba3e508
SM
28363 (Fdefine_coding_system_internal):
28364 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
28365
28366 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
28367 member to check if CODE is valid or not.
28368 (Fdefine_charset_internal): Initialize `code_space_mask' member.
28369 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
28370 is within the range of charset->min_code and carset->max_code.
28371
283722008-02-01 Dave Love <fx@gnu.org>
28373
28374 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
28375
28376 * dispextern.h (generate_ascii_font): Fix return type.
28377
28378 * xfaces.c (generate_ascii_font): Fix arg declaration.
28379
28380 * coding.c (coding_inherit_eol_type)
28381 (Fset_terminal_coding_system_internal)
28382 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
28383
283842008-02-01 Kenichi Handa <handa@m17n.org>
28385
bba3e508
SM
28386 * coding.c (decode_coding_charset, encode_coding_charset):
28387 Handle multiple charsets correctly.
aac0c6e3
MR
28388
283892008-02-01 Kenichi Handa <handa@m17n.org>
28390
28391 * search.c (boyer_moore): Fix handling of multibyte character
28392 translation.
28393
28394 * xdisp.c (display_mode_element): When the variable `elt' is
28395 changed, update `this' and `lisp_string'.
28396
283972008-02-01 Kenichi Handa <handa@m17n.org>
28398
28399 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
28400
28401 * callproc.c (Fcall_process): Be sure to give the current buffer
28402 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
28403
28404 * charset.c (struct charset_map_entries): New struct.
28405 (load_charset_map): Rename from parse_charset_map. New args
28406 entries and n_entries. Change caller.
28407 (load_charset_map_from_file): Rename from load_charset_map.
28408 Change caller. New arg control_flag. Call load_charset_map at
28409 the tail.
28410 (load_charset_map_from_vector): New function.
28411 (Fdefine_charset_internal): Setup charset.compact_codes_p.
28412 (encode_char): If the charset is compact, change a character index
28413 to a code point.
28414
28415 * coding.c (coding_alloc_by_making_gap): Check the case that the
28416 source and destination are the same correctly.
28417 (decode_coding_raw_text): Set coding->consumed_char and
28418 coding->consumed to 0.
28419 (produce_chars): If coding->chars_at_source is nonzero, update
28420 coding->consumed_char and coding->consumed before calling
28421 alloc_destination.
28422 (Fdefine_coding_system_alias): Register ALIAS in
28423 Vcoding_system_alist.
28424 (syms_of_coding): Define `no-conversion' coding system at the tail.
28425
28426 * fileio.c (Finsert_file_contents): Set coding_system instead of
28427 val. If the current buffer is multibyte, always call
28428 decode_coding_gap.
28429
28430 * xfaces.c (try_font_list): Give higher priority to fontset's
28431 family than face's family.
28432
284332008-02-01 Kenichi Handa <handa@m17n.org>
28434
28435 * callproc.c (Fcall_process): Be sure to give the current buffer
28436 to decode_coding_c_string.
28437
28438 * xfaces.c (try_font_list): Give a family specified in a fontset
28439 higher priority than a family specified in a face.
28440
284412008-02-01 Kenichi Handa <handa@m17n.org>
28442
28443 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
28444 Fix arguments to insert_from_buffer.
28445
28446 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
28447
284482008-02-01 Kenichi Handa <handa@m17n.org>
28449
28450 * coding.c (produce_chars): Set the variable `multibytep' correctly.
28451 (decode_coding_gap): Set coding->dst_multibyte correctly.
28452
284532008-02-01 Kenichi Handa <handa@m17n.org>
28454
28455 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
28456 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
28457 (encode_coding_utf_16): Substitute coding->default_char for
28458 non-Unicode characters.
28459 (decode_coding): Don't call record_insert here.
28460 (setup_coding_system): Initialize `surrogate' of
28461 coding->spec.utf_16 to 0.
28462 (EMIT_ONE_BYTE): Fix for multibyte case.
28463
28464 * insdel.c (insert_from_gap): Call record_insert.
28465
284662008-02-01 Kenichi Handa <handa@m17n.org>
28467
28468 * casefiddle.c (casify_region): Fix multibyte case.
28469
28470 * character.c (c_string_width): Add return type `int'.
28471 (char_string_with_unification): Delete arg ADVANCED.
28472
28473 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
28474 (CHAR_STRING): Adjust for the change of char_string_with_unification.
28475 (CHAR_STRING_ADVANCE): Make it do-while statement.
28476
28477 * chartab.c (sub_char_table_set_range): Optimize for the case
28478 DEPTH == 3. Add workaround code for a GCC optimization bug.
28479
28480 * charset.c (parse_charset_map): Remove an unused variable.
28481
28482 * coding.c: Delete unused variables.
28483
28484 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
28485 earlier. If inserted is zero and the coding system doesn't
28486 require flushing, don't call decode_coding_gap.
28487
28488 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
28489
284902008-02-01 Kenichi Handa <handa@m17n.org>
28491
28492 The following changes are for using Unicode as an internal
28493 character model, and use UTF-8 format for buffer/string
28494 representation.
28495
28496 * .gdbinit (xchartable): Adjust for the change of char table structure.
28497 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
28498
28499 * Makefile.in (obj): Add character.o and chartab.o.
28500 (lisp, shortlisp): Remove utf-8.elc.
28501 (*.o): For many files, change dependency on charset.h to
28502 character.h, and add dependency on character.h.
28503 (character.o, chartab.o): New targets.
28504
28505 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
28506 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
28507 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
28508 of "charset.h".
28509
28510 * dired.c, filelock.c: Include "character.h".
28511
28512 * alloc.c: Include "character.h" instead of "charset.h".
28513 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
28514 (syms_of_alloc): Remove defsubr for Smake_char_table.
28515
28516 * buffer.c: Include "character.h" instead of "charset.h", don't
28517 include "coding.h".
28518 (Fset_buffer_multibyte): Adjust for UTF-8.
28519
28520 * buffer.h: EXFUN Fbuffer_live_p.
28521
28522 * callproc.c: Include "character.h" instead of "charset.h".
28523 (Fcall_process): Big change for the new code-conversion APIs.
28524
28525 * casetab.c: Include "character.h" instead of "charset.h".
28526 (set_canon, set_identity, shuffle): Adjust for the new
28527 map_char_table spec.
28528 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
28529 accessing the char table structure.
28530
28531 * chartab.c: New file that implements char table.
28532
28533 * category.c: Include "character.h".
28534 (copy_category_entry): New function.
28535 (copy_category_table): Call map_char_table and copy_category_entry.
28536 (Fmake_category_table): Initialize all top-level slots.
28537 (char_category_set): New function.
28538 (modify_lower_category_set): Delete.
28539 (Fmodify_category_entry): Call char_table_ref_and_range.
28540
28541 * category.h (CATEGORY_SET): Just call char_category_set.
28542
28543 * ccl.c: Include "character.h".
28544 (Qccl, Qcclp): New variables.
28545 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
28546 it's less than 256.
28547 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
28548 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
28549 and DST type.
28550 (ccl_driver): Change types of argument, adjust code accordingly.
28551 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
28552 ccl_driver.
28553 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
28554
28555 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
28556 New members src_multibyte, dst_multibyte, consumed, and produced.
28557 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
28558 (CODING_SPEC_CCL_PROGRAM): New macro.
28559 (ccl_driver): Update prototype.
28560 (Qccl, Qcclp, Fccl_program_p): Extern them.
28561 (CHECK_CCL_PROGRAM): New macro.
28562
28563 * character.c, character.h, chartab.c: New files.
28564
28565 * charset.c: Mostly re-written. Move character and multibyte sequence
28566 handling codes to character.c.
28567
28568 * charset.h: Mostly re-written. Move character and multibyte sequence
28569 handling codes to character.h.
28570
28571 * coding.c, coding.h: Mostly re-written.
28572
28573 * composite.c: Include "character.h" instead of "charset.h".
28574 (CHAR_WIDTH): Move to character.h.
28575 (HASH_KEY, HASH_VALUE): Delete.
28576
28577 * composite.h (enum composition_method): Change order of enumeration
28578 symbols.
28579
28580 * data.c: Include "character.h" instead of "charset.h".
28581 (Faref): Call CHAR_TABLE_REF for a char table.
28582 (Faset): Call CHAR_TABLE_SET for a char table.
28583
28584 * dispextern.h (free_realized_face, check_face_attribytes)
28585 (generate_ascii_font): Extern them.
28586 (free_realized_multibyte_face): Delete extern.
28587
28588 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
28589 table structure.
28590
28591 * editfns.c: Include "character.h" instead of "charset.h".
28592 (Fchar_to_string): Always call CHAR_STRING.
28593
28594 * emacs.c (main): Call init_charset_once, init_charset,
28595 syms_of_chartab, and syms_of_character.
28596
28597 * fileio.c: Include "character.h" instead of "charset.h".
28598 (Finsert_file_contents): Big change for the new code-conversion API.
28599 (choose_write_coding_system, Fwrite_region): Likewise.
28600 (build_annotations_2): Delete.
28601 (e_write): Big change for the new code-conversion API.
28602
28603 * fns.c: Include "character.h" instead of "charset.h".
28604 (copy_sub_char_table): Move to chartab.c.
28605 (Fcopy_sequence): Call copy_char_table for a char table.
28606 (concat): Delete codes calling count_multibyte.
28607 (string_char_to_byte, string_byte_to_char): Adjust for the new
28608 multibyte form.
28609 (internal_equal): Adjust for the change of char table structure.
28610 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28611 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28612 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28613 (char_table_translate, optimize_sub_char_table)
28614 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28615 chartab.c.
28616 (char_table_ref_and_index): Delete.
28617 (HASH_KEY, HASH_VALUE): Move to lisp.h.
28618 (Fmd5): Call preferred_coding_system instead of accessing
28619 Vcoding_category_list. Adjust for the new code-conversion API.
28620 (syms_of_fns): Move defsubr for char table related functions to
28621 chartab.c.
28622
28623 * fontset.c: Mostly re-written.
28624
28625 * fontset.h (struct font_info): Change type of the member encoding_type.
28626 (enum FONT_SPEC_INDEX): New enum.
28627 (fontset_font_pattern, fs_load_font): Update prototype.
28628 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28629
28630 * indent.c: Include "character.h" instead of "charset.h".
28631 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28632
28633 * insdel.c: Include "character.h" instead of "charset.h".
28634 (copy_text): Don't refer to Vnonascii_translation_table.
28635 (insert_from_gap): New function.
28636
28637 * keyboard.c: Include "character.h" instead of "charset.h".
28638 (command_loop_1): Never call direct_output_forward_char before
28639 a non-ASCII character.
28640 (read_char): If Vkeyboard_translate_table is a char table, always
28641 translate a character.
28642
28643 * keymap.c: Include "character.h".
28644 (store_in_keymap): Handle the case that IDX is a cons.
28645 (Fdefine_key): Handle the case that KEY is a cons and the car part
28646 is also a cons (range).
28647 (push_key_description): Adjust for the new character code.
28648 (describe_vector): Call describe_char_table for a char table.
28649 (describe_char_table): New function.
28650
28651 * keymap.h (describe_char_table): Extern it.
28652
28653 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28654 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28655 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28656 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28657 Delete.
28658 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28659 structure.
28660 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28661 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28662 (CHARTAB_SIZE_BITS_3): New macros.
28663 (chartab_size): Extern it.
28664 (struct Lisp_Char_Table): Re-design.
28665 (struct Lisp_Sub_Char_Table): New structure.
28666 (HASH_KEY, HASH_VALUE): Move from fns.c.
28667 (CHARACTERBITS): Define as 22.
28668 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28669 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28670 (GC_SUB_CHAR_TABLE_P): New macro.
28671 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 28672 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
28673 (init_character_once, syms_of_character, init_charset)
28674 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28675
28676 * lread.c: Include "character.h".
28677 (read_multibyte): New arg NBYTES.
28678 (read_escape): Change the meaning of returned *BYTEREP.
28679 (to_multibyte): Delete.
28680 (read1): Adjust the handling of char table and string.
28681
28682 * print.c: Include "character.h" instead of "charset.h".
28683 (print_string): Convert 8-bit raw bytes to octal form by
28684 string_escape_byte8.
28685 (print_object): Adjust for the new multibyte form. Print 8-bit
28686 raw bytes always in octal form. Handle sub char table correctly.
28687
28688 * process.c: Include "character.h" instead of "charset.h".
28689 (read_process_output, send_process): Adjust for the new
28690 code-conversion API.
28691
28692 * puresize.h (BASE_PURESIZE): Increase.
28693
28694 * regex.c: Include "character.h" instead of "charset.h".
28695 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28696 (regex_compile): Accept a range whose starting and ending
28697 character have different leading bytes.
28698 (analyse_first): Adjust for the above change.
28699
28700 * search.c: Include "character.h" instead of "charset.h".
28701 (search_buffer, boyer_moore): Adjust for the new multibyte form.
28702 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
28703
28704 * syntax.c: Include "character.h" instead of "charset.h".
28705 (syntax_parent_lookup): Delete.
28706 (Fmodify_syntax_entry): Accept a cons as CHAR.
28707 (skip_chars): Adjust for the new multibyte form.
28708 (init_syntax_once): Call char_table_set_range instead of directly
28709 accessing the structure of a char table.
28710
28711 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
28712 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
28713 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
28714 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
28715
28716 * term.c: Include "buffer.h" and "character.h".
28717 (encode_terminal_code, write_glyphs): Adjust for the new
28718 code-conversion API.
28719 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28720
28721 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28722
28723 * xdisp.c: Include "character.h".
28724 (get_next_display_element): Adjust for the new multibyte form.
28725 (disp_char_vector): Adjust for the new char table structure.
28726 (decode_mode_spec_coding): Adjust for the new structure of
28727 coding system.
28728 (decode_mode_spec): Adjust for the new code-conversion API.
28729
28730 * xfaces.c: Include "character.h" instead of "charset.h".
28731 (load_face_font): Adjust for the change of choose_face_font and
28732 FS_LOAD_FONT.
28733 (generate_ascii_font): New function.
28734 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28735 (set_font_frame_param): Adjust for the change of choose_face_font.
28736 (free_realized_face): Make it public.
28737 (free_realized_faces_for_fontset): Rename from
28738 free_realized_multibyte_face. Free also faces realized for ASCII.
28739 (choose_face_font): Change arguments. Adjust for the change of
28740 fontset_font_pattern and FS_LOAD_FONT.
28741
28742 * xfns.c: Include "character.h".
28743 (x_encode_text): Adjust for the new code-conversion API.
28744
28745 * xselect.c: Don't include "charset.h".
28746 (selection_data_to_lisp_data): Adjust for the new code conversion API.
28747
28748 * xterm.c: Include "character.h".
28749 (x_encode_char): New argument CHARSET. Change caller.
28750 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
28751 Call ENCODE_CHAR instead of SPLIT_CHAR.
28752 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
28753 CHAR_WIDTH instead of CHARSET_WIDTH.
28754 (XTread_socket): Adjust for the new code-conversion API.
28755 (x_new_font): Adjust for the change of FS_LOAD_FONT.
28756 (x_load_font): Adjust for the change of struct font.
28757
287582008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
28759
28760 * xfaces.c (face_at_buffer_position): Remove unused vars.
28761
287622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28763
28764 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
28765 Fix overflow checking.
28766
287672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28768
28769 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
28770 Cancel previous change.
28771
287722008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28773
28774 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
28775 ccl->eight_bit_control. Fix check for buffer overflow.
28776 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
28777 (ccl_driver): Initialize extra_bytes to 0.
28778
287792008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28780
28781 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
28782 return it ORed with ctrl_modifier.
28783
287842008-01-29 Miles Bader <miles@gnu.org>
28785
28786 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
28787
287882008-01-28 Jason Rumney <jasonr@gnu.org>
28789
28790 * w32.c (stat): Don't double check for networked drive.
28791
287922008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
28793
28794 * window.c (run_window_configuration_change_hook): New function.
28795 Code extracted from set_window_buffer. Set the selected frame.
28796 (set_window_buffer): Use it.
28797 * window.h (run_window_configuration_change_hook): Declare.
28798 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
28799
28800 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
28801
288022008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
28803
28804 * Makefile.in: Remove references to unused macros.
28805
288062008-01-26 Eli Zaretskii <eliz@gnu.org>
28807
28808 * w32.c (g_b_init_get_sid_sub_authority)
28809 (g_b_init_get_sid_sub_authority_count): New static variables.
28810 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
28811 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
28812 (init_user_info): Use them to retrieve uid and gid.
28813 Use 500/513, the Windows defaults, as Administrator's uid/gid.
28814 (fstat): Use pw_uid and pw_gid from the_passwd structure for
28815 st_uid and st_gid of the file.
28816
288172008-01-26 Jason Rumney <jasonr@gnu.org>
28818
28819 * w32.c (logon_network_drive): New function.
28820 (stat): Use it.
28821
288222008-01-26 Chong Yidong <cyd@stupidchicken.com>
28823
28824 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
28825 invisible text covered with an ellipsis.
28826
288272008-01-25 Richard Stallman <rms@gnu.org>
28828
28829 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
28830 jump back to beginning. Move some other initializations after that.
28831 (Qwindow_text_change_functions, Vwindow_text_change_functions):
28832 New variables.
28833 (syms_of_xdisp): Init them.
28834
28835 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
28836
28837 * buffer.c (reset_buffer_local_variables):
28838 Implement `permanent-local-hook'.
28839 (Qpermanent_local_hook): New variable.
28840 (syms_of_buffer): Init and staticpro it.
28841
288422008-01-25 Michael Albinus <michael.albinus@gmx.de>
28843
28844 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
28845
288462008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
28847
28848 * fns.c (Fclrhash): Return TABLE.
28849
288502008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28851
28852 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
28853 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
28854 is set even without positional changes.
28855 (x_scroll_bar_clear): Set bar->redraw_needed_p.
28856
28857 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
28858
288592008-01-23 Jason Rumney <jasonr@gnu.org>
28860
28861 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
28862
28863 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
28864 the unicode range available in MULE by locale-coding-system.
28865 Improve dbcs lead byte detection. Set event timestamp and modifiers
28866 earlier.
28867
288682008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28869
28870 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
28871 [MAC_OSX] (init_mac_osx_environment): Initialize it.
28872 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
28873 when used on child processes.
28874
288752008-01-21 Michael Albinus <michael.albinus@gmx.de>
28876
28877 * dbusbind.c (Fdbus_method_return_internal): Rename from
28878 Fdbus_method_return.
28879 (Fdbus_unregister_object): Move to dbus.el.
28880 (Fdbus_call_method, Fdbus_method_return_internal)
28881 (Fdbus_send_signal): Improve debug messages.
28882
288832008-01-20 Martin Rudalics <rudalics@gmx.at>
28884
28885 * undo.c (undo_inhibit_record_point): New variable.
28886 (syms_of_undo): Initialize it.
28887 (record_point): Don't record point when undo_inhibit_record_point
28888 is set.
28889
288902008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
28891
28892 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
28893
28894 * xdisp.c (Qauto_hscroll_mode): New var.
28895 (syms_of_xdisp): Initialize it.
28896 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
28897 window's buffer.
28898 (hscroll_windows): Don't check automatic_hscrolling_p here.
28899
28900 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
28901 vscroll if we're setting window-buffer to the value it already has.
28902
289032008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
28904
28905 * m/intel386.h: Remove references to XENIX.
28906
289072008-01-17 Andreas Schwab <schwab@suse.de>
28908
28909 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
28910 instead of HAVE_X86_64_LIB64_DIR.
28911 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
28912
289132008-01-17 Glenn Morris <rgm@gnu.org>
28914
28915 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
28916 to HAVE_X86_64_LIB64_DIR.
28917
289182008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
28919
28920 * s/irix3-3.h:
28921 * s/irix4-0.h:
28922 * s/386-ix.h:
28923 * s/domain.h:
28924 * s/hpux9-x11r4.h:
28925 * s/hpux9shxr4.h: Remove files for systems no longer supported.
28926
28927 * sysdep.c: Remove code containing references to symbols defined
28928 by unsupported systems.
28929
289302008-01-16 Glenn Morris <rgm@gnu.org>
28931
28932 * coding.c (select-safe-coding-system-function): Doc fix.
28933
289342008-01-15 Glenn Morris <rgm@gnu.org>
28935
28936 * config.in: Revert 2008-01-13 change: this is a generated file.
28937
289382008-01-13 Tom Tromey <tromey@redhat.com>
28939
28940 * lisp.h: Fix typo.
28941
289422008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28943
28944 * m/sequent-ptx.h:
28945 * m/sequent.h:
28946 * s/ptx.h:
28947 * s/ptx4-2.h:
28948 * s/ptx4.h: Remove files for systems no longer supported.
28949
28950 * callproc.c (Fcall_process): Fix previous change.
28951
289522008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28953
28954 * unexsunos4.c: Remove file, system not supported anymore.
28955
28956 * m/mips.h:
28957 * m/intel386.h:
28958 * callproc.c:
28959 * config.in:
28960 * ecrt0.c:
28961 * emacs.c:
28962 * fileio.c:
28963 * frame.c:
28964 * getpagesize.h:
28965 * keyboard.c:
28966 * lread.c:
28967 * process.c:
28968 * puresize.h:
28969 * sysdep.c:
28970 * systty.h:
28971 * syswait.h:
28972 * unexec.c:
28973 * xdisp.c:
28974 * alloc.c: Remove code containing references to symbols defined by
28975 unsupported systems.
28976
289772008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
28978
28979 * coding.c (detect_coding_mask): Fix previous change.
28980
289812008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
28982
28983 * coding.c (detect_coding_iso2022): New arg
28984 latin_extra_code_state. Allow Latin extra codes only
28985 when *latin_extra_code_state is nonzero.
28986 (detect_coding_mask): If there is a NULL byte, detect the encoding
28987 as UTF-16 or binary. If Latin extra codes exist, detect the
28988 encoding as ISO-2022 only when there's no other proper encoding is
28989 found.
28990
289912008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28992
28993 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
28994 #ifdef MAC_OS.
28995
289962008-01-08 Richard Stallman <rms@gnu.org>
28997
28998 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
28999
290002008-01-06 Nick Roberts <nickrob@snap.net.nz>
29001
29002 * keyboard.c (parse_menu_item): Don't enclose key bindings on
29003 menu bar in parentheses.
29004
290052008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
29006
29007 * m/7300.h:
29008 * m/acorn.h:
29009 * m/alliant-2800.h:
29010 * m/alliant.h:
29011 * m/alliant1.h:
29012 * m/alliant4.h:
29013 * m/altos.h:
29014 * m/amdahl.h:
29015 * m/apollo.h:
29016 * m/att3b.h:
29017 * m/aviion-intel.h:
29018 * m/aviion.h:
29019 * m/celerity.h:
29020 * m/clipper.h:
29021 * m/cnvrgnt.h:
29022 * m/convex.h:
29023 * m/cydra5.h:
29024 * m/delta88k.h:
29025 * m/dpx2.h:
29026 * m/dual.h:
29027 * m/elxsi.h:
29028 * m/f301.h:
29029 * m/gould-np1.h:
29030 * m/gould.h:
29031 * m/i860.h:
29032 * m/ibmps2-aix.h:
29033 * m/ibmrt-aix.h:
29034 * m/ibmrt.h:
29035 * m/irist.h:
29036 * m/is386.h:
29037 * m/isi-ov.h:
29038 * m/mega68.h:
29039 * m/mg1.h:
29040 * m/news-r6.h:
29041 * m/news-risc.h:
29042 * m/news.h:
29043 * m/nh3000.h:
29044 * m/nh4000.h:
29045 * m/ns16000.h:
29046 * m/ns32000.h:
29047 * m/nu.h:
29048 * m/orion.h:
29049 * m/orion105.h:
29050 * m/paragon.h:
29051 * m/pfa50.h:
29052 * m/plexus.h:
29053 * m/pyramid.h:
29054 * m/pyrmips.h:
29055 * m/sh3el.h:
29056 * m/sps7.h:
29057 * m/sr2k.h:
29058 * m/stride.h:
29059 * m/sun1.h:
29060 * m/sun2.h:
29061 * m/sun3-68881.h:
29062 * m/sun3-fpa.h:
29063 * m/sun3-soft.h:
29064 * m/sun3.h:
29065 * m/sun386.h:
29066 * m/symmetry.h:
29067 * m/tad68k.h:
29068 * m/tahoe.h:
29069 * m/targon31.h:
29070 * m/tek4300.h:
29071 * m/tekxd88.h:
29072 * m/tower32.h:
29073 * m/tower32v3.h:
29074 * m/ustation.h:
29075 * m/wicat.h:
29076 * m/xps100.h:
29077 * s/cxux.h:
29078 * s/cxux7.h:
29079 * s/dgux.h:
29080 * s/dgux4.h:
29081 * s/dgux5-4-3.h:
29082 * s/dgux5-4r2.h:
29083 * s/esix.h:
29084 * s/esix5r4.h:
29085 * s/hiuxmpp.h:
29086 * s/hiuxwe2.h:
29087 * s/iris3-5.h:
29088 * s/iris3-6.h:
29089 * s/isc2-2.h:
29090 * s/isc3-0.h:
29091 * s/isc4-0.h:
29092 * s/isc4-1.h:
29093 * s/newsos5.h:
29094 * s/newsos6.h:
29095 * s/osf1.h:
29096 * s/osf5-0.h:
29097 * s/riscix1-1.h:
29098 * s/riscix12.h:
29099 * s/sco4.h:
29100 * s/sco5.h:
29101 * s/sunos4-0.h:
29102 * s/sunos4-1.h:
29103 * s/sunos413.h:
29104 * s/sunos4shr.h:
29105 * s/umax.h:
29106 * s/unipl5-2.h:
29107 * s/xenix.h:
29108 * cxux-crt0.s:
29109 * unexapollo.c:
29110 * unexconvex.c:
29111 * unexenix.c:
29112 * unexsni.c: Remove files for systems no longer supported.
29113
29114 * m/intel386.h: Remove references to unsupported systems.
29115
29116 * w32.c (get_emacs_configuration): Remove reference to i860.
29117
29118 * sysdep.c: Remove dead code.
29119
291202008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
29121
29122 * s/rtu.h:
29123 * m/masscomp.h: Remove files. Platform is obsolete.
29124
291252008-01-04 Michael Albinus <michael.albinus@gmx.de>
29126
29127 * dbusbind.c (Fdbus_method_return): New function.
29128 (xd_read_message): Add the serial number to the event.
29129 (Fdbus_register_method): Activate the function.
29130
291312008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
29132
29133 * keyboard.c (read_key_sequence): Fix typo.
29134
291352008-01-03 Michael Albinus <michael.albinus@gmx.de>
29136
29137 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
29138 (xd_signature, xd_append_arg): Handle element type detection for
29139 empty arrays.
29140 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
29141 SDATA () calls; this must be solved more general.
29142 (Fdbus_register_signal): Use SBYTES instead of strlen.
29143
291442008-01-03 Magnus Henoch <magnus@zemdatav>
29145
29146 * dbusbind.c (xd_append_arg): Use unsigned char instead of
29147 unsigned int for byte values (necessary for big-endian platform).
29148 (Fdbus_call_method): Handle the case of no returned arguments.
29149
291502007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
29151
29152 * dbusbind.c (xd_read_message): Use non-static input_event struct.
29153
291542007-12-31 Magnus Henoch <mange@freemail.hu>
29155
29156 * dbusbind.c (xd_signature): Signature of variant is just "v".
29157
291582007-12-30 Michael Albinus <michael.albinus@gmx.de>
29159
29160 * dbusbind.c: Fix several errors and compiler warnings.
29161 Reported by Tom Tromey <tromey@redhat.com>.
29162 (XD_ERROR, XD_DEBUG_MESSAGE)
29163 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
29164 (xd_append_arg): Part for basic D-Bus types rewritten.
29165 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
29166 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
29167 appropriate.
29168 (xd_read_message): Return Qnil. Don't signal an error; it is not
29169 useful during event reading.
29170 (Fdbus_register_signal): Signal an error if the check for
29171 FUNCTIONP fails.
29172 (Fdbus_register_method): New function. The implementation is not
29173 complete, the call of the function signals an error therefore.
29174 (Fdbus_unregister_object): New function, renamed from
29175 Fdbus_unregister_signal. The initial check signals an error, if
29176 the object is not well formed.
29177
291782007-12-30 Richard Stallman <rms@gnu.org>
29179
29180 * textprop.c (get_char_property_and_overlay):
29181 Signal error if POSITION is out of range in a buffer.
29182
291832007-12-29 Martin Rudalics <rudalics@gmx.at>
29184
29185 * w32fns.c (Fx_create_frame): Make copy of frame parameters
29186 because the original parameters are in pure storage now.
29187
291882007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29189
29190 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
29191
291922007-12-22 Eli Zaretskii <eliz@gnu.org>
29193
29194 * callint.c (syms_of_callint) <command-history>: Add reference to
29195 history-length in the doc string.
29196
291972007-12-17 Jason Rumney <jasonr@gnu.org>
29198
29199 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
29200 before passing as wParam.
29201
292022007-12-22 Michael Albinus <michael.albinus@gmx.de>
29203
29204 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
29205 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
29206 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
29207 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
29208 as number.
29209 (Fdbus_call_method): Fix docstring.
29210
292112007-12-21 Michael Albinus <michael.albinus@gmx.de>
29212
29213 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
29214 New macros.
29215 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
29216 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
29217 Simplify.
29218 (xd_signature): New function.
29219 (xd_append_arg): Compute also signatures. Major rewrite.
29220 (xd_retrieve_arg): Make debug messages friendly.
29221 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
29222 Check for signatures of arguments.
29223
292242007-12-19 Michael Albinus <michael.albinus@gmx.de>
29225
29226 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
29227 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
29228 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
29229 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
29230 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
29231 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
29232 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
29233 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
29234 (xd_retrieve_value): Remove. Functionality included in ...
29235 (xd_append_arg): New function.
29236 (Fdbus_call_method, Fdbus_send_signal): Apply it.
29237
292382007-12-16 Michael Albinus <michael.albinus@gmx.de>
29239
29240 * dbusbind.c (top): Include <stdio.h>.
29241 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
29242 dbus_message_new_method_call and dbus_message_new_signal.
29243 (Fdbus_register_signal): Rename unique_name to uname.
29244 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
29245 non-existing unique name. Fix typos in matching rule. Return an
29246 object which is useful in Fdbus_unregister_signal.
29247 (Fdbus_unregister_signal): Reimplementation, in order to remove
29248 only the corresponding entry.
29249 (Vdbus_registered_functions_table): Change the order of entries.
29250 Apply these changes in xd_read_message and Fdbus_register_signal.
29251
292522007-12-16 Andreas Schwab <schwab@suse.de>
29253
29254 * fileio.c (Finsert_file_contents): Fix overflow check to not
29255 depend on undefined integer overflow.
29256
292572007-12-14 Jason Rumney <jasonr@gnu.org>
29258
29259 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
29260 for characters above 127.
29261
292622007-12-13 Jason Rumney <jasonr@gnu.org>
29263
29264 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
29265 before dereferencing array.
29266 (lookup_vk_code): Remove zero comparison.
29267
292682007-12-14 Michael Albinus <michael.albinus@gmx.de>
29269
29270 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
29271 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
29272 Use `unsigned int' instead of `uint'.
29273 (xd_read_message, Fdbus_register_signal): Split expressions into
29274 multiple lines before operators "&&" and "||", according to the
29275 GNU Coding Standards.
29276
292772007-12-14 Eli Zaretskii <eliz@gnu.org>
29278
29279 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
29280
292812007-12-12 Juri Linkov <juri@jurta.org>
29282
29283 * buffer.c (Frename_buffer): In interactive spec replace
29284 `read-buffer' with `read-string' that uses `buffer-name-history'
29285 as history, and the current buffer's name as default.
29286
292872007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
29288
29289 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
29290 manipulating the backtrace manually.
29291 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
29292 (struct backtrace, backtrace_list): Remove.
29293 (command_loop_1): Remove dead var `no_direct'.
29294
29295 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
29296 preserve non-built-in buffer-local variables.
29297 (Fkill_all_local_variables): Don't re-create&re-set permanent
29298 buffer-local variables.
29299
293002007-12-09 Juri Linkov <juri@jurta.org>
29301
29302 * buffer.c (Frename_buffer): Change interactive spec from "s" to
29303 Lisp code that uses `read-buffer' with current buffer as default.
29304
293052007-12-08 Michael Albinus <michael.albinus@gmx.de>
29306
29307 * dbusbind.c (xd_read_message): Generate an event for every
29308 registered handler. There might be several handlers registered
29309 for the same signal.
29310 (Fdbus_register_signal): Don't overwrite a registration for the
29311 same signal. Add a new registration if handlers are different.
29312 (Vdbus_registered_functions_table): Rework doc string.
29313
293142007-12-07 Michael Albinus <michael.albinus@gmx.de>
29315
29316 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
29317 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
29318 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
29319 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
29320 Unify argument lists.
29321 (xd_read_message, Fdbus_register_signal): Reorder and extend event
29322 arguments and hash table keys. Use unique name for service.
29323 (Fdbus_unregister_signal): Remove checks.
29324 (Vdbus_registered_functions_table): Fix doc string.
29325
293262007-12-05 Magnus Henoch <mange@freemail.hu>
29327
29328 * process.c (make_process): Initialize pty_flag to 0.
29329
293302007-12-05 Jason Rumney <jasonr@gnu.org>
29331
29332 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
29333 specified XBMs.
29334
293352007-12-05 Richard Stallman <rms@gnu.org>
29336
29337 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
29338
293392007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29340
29341 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
29342 New variable.
29343 (mac_try_close_socket) [MAC_OSX]: New function.
29344 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
29345 Update cfsockets_for_select. Replace invalid CFRunLoop source.
29346
29347 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
29348 Use mac_try_close_socket.
29349
293502007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29351
29352 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
29353 reloc_base.
29354 (copy_dysymtab): Compute relocation base here.
29355 (rebase_reloc_address) [__ppc64__]: New function.
29356 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
29357 changed.
29358
293592007-12-05 Jason Rumney <jasonr@gnu.org>
29360
29361 * w32proc.c (sys_spawnve): Quote args with wildcards.
29362
293632007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29364
29365 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
29366 __objc_* sections.
29367 (unrelocate) [_LP64]: Set relocation base to address of data segment.
29368
293692007-12-05 Michael Albinus <michael.albinus@gmx.de>
29370
29371 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
29372 Move check for Vdbus_registered_functions_table to
29373 xd_read_queued_messages.
29374 (xd_read_queued_messages): Protect xd_read_message calls by
29375 internal_condition_case_1.
29376
293772007-12-04 Michael Albinus <michael.albinus@gmx.de>
29378
29379 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
29380 Qdbus_system_bus and Qdbus_session_bus, respectively.
29381 (Vdbus_intern_symbols): Remove.
29382 (Vdbus_registered_functions_table): New hash table.
29383 (XD_SYMBOL_INTERN_SYMBOL): Remove.
29384 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
29385 Rewrite in order to manage registered functions by hash table
29386 Vdbus_registered_functions_table.
29387
293882007-12-03 Jan Djärv <jan.h.d@swipnet.se>
29389
29390 * xterm.c: Update URL to Window Manager Specification in comment.
29391
293922007-12-02 Michael Albinus <michael.albinus@gmx.de>
29393
29394 * config.in (HAVE_DBUS): Add.
29395
29396 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
29397 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
29398 (obj): Add $(DBUS_OBJ).
29399 (LIBES): Add $(DBUS_LIBS).
29400 (dbusbind.o): New target.
29401
29402 * dbusbind.c: New file.
29403
29404 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
29405
29406 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
29407 (Qdbus_event): New Lisp symbol.
29408 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
29409 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 29410 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
29411
29412 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
29413
294142007-12-01 Richard Stallman <rms@gnu.org>
29415
29416 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
29417
294182007-11-30 Jason Rumney <jasonr@gnu.org>
29419
29420 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
29421 (w32con_reset_terminal_modes): Clear screen buffer.
29422 (w32_face_attributes): Don't use color indexes that are out of range.
29423 Only reverse the default colors.
29424
29425 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
29426 WINDOWSNT.
29427
29428 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
29429
294302007-11-29 Jason Rumney <jasonr@gnu.org>
29431
29432 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
29433 (w32_face_attributes): Use Vtty_defined_color_alist to determine
29434 if the terminal colors are initialized.
29435 (unspecified_fg, unspecified_bg): Remove unused declarations.
29436
294372007-11-29 Andreas Schwab <schwab@suse.de>
29438
29439 * keyboard.c (apply_modifiers): Fix typo.
29440
294412007-11-29 Richard Stallman <rms@gnu.org>
29442
29443 * keymap.c (Fcurrent_local_map): Doc fix.
29444
294452007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
29446
29447 * s/gnu-kfreebsd.h: New file.
29448
294492007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
29450
29451 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
29452 Don't cast redundantly.
29453
29454 * keyboard.c (KEY_TO_CHAR): New macro.
29455 (parse_modifiers, apply_modifiers): Accept integer arguments.
29456 (read_key_sequence): Use them to unify the "shift->unshift" mapping
29457 for chars and symbol keys.
29458 After doing such remapping, apply function-key-map again.
29459
294602007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
29461
29462 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
29463 compiled anymore.
29464
294652007-11-26 Andreas Schwab <schwab@suse.de>
29466
29467 * process.c (list_processes_1): Fix indentation level of the
29468 command column.
29469
294702007-11-23 Andreas Schwab <schwab@suse.de>
29471
29472 * editfns.c (Fformat): Handle %c specially since it requires the
29473 argument to be of type int.
29474
294752007-11-23 Markus Triska <markus.triska@gmx.at>
29476
29477 * emacs.c (main): Call init_editfns before init_process, since
29478 init_process sets Vprocess_connection_type depending on OS release.
29479
294802007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
29481
29482 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
29483 (find_symbol_value): Use do_symval_forwarding.
29484
29485 * data.c (set_internal): Set the value in the `cons-cell' (for
29486 Buffer_Local_values) not only for frame-local variables.
29487
294882007-11-22 Andreas Schwab <schwab@suse.de>
29489
29490 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
29491 values to sprintf.
29492 * keymap.c (Fsingle_key_description): Likewise.
29493 * print.c (print_object): Likewise.
29494
294952007-11-22 Jan Djärv <jan.h.d@swipnet.se>
29496
29497 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
29498 file for image is nil.
29499
295002007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
29501
29502 * term.c: Include stdarg.h.
29503 (fatal): Implement using varargs.
29504 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
29505
295062007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29507
29508 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
29509 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
29510 Update call to buffer_slot_type_mismatch.
29511 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
29512 (buffer_slot_type_mismatch): Update.
29513 * buffer.c (buffer_local_types): Remove.
29514 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
29515 (defvar_per_buffer): Set the type in the buffer_objfwd.
29516
295172007-11-21 Jason Rumney <jasonr@gnu.org>
29518
29519 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
29520 CreateFileMapping returns NULL on failure.
29521
295222007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29523
29524 * search.c (Fset_match_data): Remove the `evaporate' feature.
29525 (unwind_set_match_data): Don't use the `evaporate' feature.
29526
295272007-11-21 Jason Rumney <jasonr@gnu.org>
29528
29529 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
29530
29531 * w32console.c (w32con_write_glyphs): Remove unused variables.
29532
295332007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
29534
29535 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
29536
29537 * s/darwin.h (MULTI_KBOARD): Remove.
29538
29539 * macfns.c (x_create_tip_frame, Fx_create_frame)
29540 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
29541
295422007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
29543
29544 * buffer.c (Fbuffer_local_value): Remove redundant test.
29545 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
29546 than in `current-buffer' to match the comment.
29547 Do the swap using swap_in_global_binding.
29548
29549 * data.c (store_symval_forwarding, set_internal):
29550 * eval.c (specbind): Remove dead code.
29551
29552 * coding.c (detect_coding, Fupdate_coding_systems_internal):
29553 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
29554 Since we do not want to see internal Lisp_*fwd objects here.
29555
295562007-11-18 Jan Djärv <jan.h.d@swipnet.se>
29557
29558 * sysdep.c (init_system_name): Use getaddrinfo if available.
29559
29560 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
29561 (x_scroll_bar_note_movement): start, end, with, height in struct
29562 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
29563
295642007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
29565
29566 * puresize.h (BASE_PURESIZE): Increase to 1190000.
29567
295682007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
29569
29570 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
29571 This undoes Richard's change of 14-Oct-2002.
29572
29573 * alloc.c (allocate_other_vector):
29574 * lisp.h (allocate_other_vector): Remove.
29575
29576 * window.c (struct save_window_data): Move non-lisp data to the end
29577 and make it `int' rather than Lisp_Object.
29578 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
29579 Done wrap/unwrap integer values.
29580 (Fset_window_configuration, compare_window_configurations):
29581 Update use of fields to their new types.
29582
29583 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
29584 Turn integer fields into `int'. Merge x_window_low and x_window_high.
29585 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
29586 (SET_SCROLL_BAR_X_WINDOW): Remove.
29587 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
29588 Access the new x_window field directly.
29589 * xterm.c (x_scroll_bar_create): Use a pseudovector.
29590 Don't wrap/unwrap integers into Lisp_Objects.
29591 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
29592 (x_scroll_bar_report_motion):
29593 Don't wrap/unwrap integers into Lisp_Objects.
29594 (x_term_init): Use SDATA.
29595 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
29596 (x_scroll_bar_set_handle, x_scroll_bar_remove)
29597 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
29598 (x_scroll_bar_report_motion, x_scroll_bar_clear):
29599 * xfns.c (x_set_background_color):
29600 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29601 Access the new x_window field directly.
29602
29603 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29604 (allocate_pseudovector): Make non-static.
29605
29606 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29607 (allocate_pseudovector): Declare.
29608 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29609
296102007-11-15 Andreas Schwab <schwab@suse.de>
29611
29612 * editfns.c (Fformat): Correctly format EMACS_INT values.
29613 Also take precision into account when formatting an integer.
29614
29615 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29616
296172007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
29618
29619 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29620 (syms_of_keyboard): Defsubr it.
29621
29622 * data.c (swap_in_global_binding): Fix longstanding bug where
29623 store_symval_forwarding was not called with the right second argument,
29624 thus causing objfwd-ing from being dropped.
29625
296262007-11-14 Juanma Barranquero <lekktu@gmail.com>
29627
29628 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29629 (Fx_display_pixel_height, Fx_display_planes)
29630 (Fx_display_color_cells, Fx_server_max_request_size)
29631 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29632 (Fx_display_visual_class, Fx_display_save_under):
29633 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29634 (Fx_display_pixel_height, Fx_display_planes)
29635 (Fx_display_color_cells, Fx_server_max_request_size)
29636 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29637 (Fx_display_mm_height, Fx_display_mm_width)
29638 (Fx_display_backing_store, Fx_display_visual_class)
29639 (Fw32_select_font, Fx_display_save_under):
29640 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29641 (Fx_display_pixel_height, Fx_display_planes)
29642 (Fx_display_color_cells, Fx_server_max_request_size)
29643 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29644 (Fx_display_save_under): Fix typos in docstrings.
29645
296462007-11-14 Juanma Barranquero <lekktu@gmail.com>
29647
29648 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29649 corresponding to deleted entries; they are an implementation detail.
29650 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29651 Remove variables.
29652 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29653 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29654 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29655 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29656 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29657 (Fw32_define_rgb_color, Fw32_load_color_file)
29658 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29659 Fix typos in docstrings.
29660 (Fx_server_version): Reflow docstring.
29661 (Fw32_shell_execute): Doc fixes.
29662
296632007-11-13 Juanma Barranquero <lekktu@gmail.com>
29664
29665 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29666 if w32_parse_hot_key returned nil.
29667
296682007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
29669
29670 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29671
296722007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 29673
aac0c6e3
MR
29674 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29675
29676 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29677
29678 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29679 Remove W32_SCROLL_BAR_CLICK_EVENT.
29680
29681 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29682 Add MULTIMEDIA_KEY_EVENT.
29683
29684 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29685 (lispy_multimedia_keys) [WINDOWSNT]: New array.
29686 (make_lispy_event) [WINDOWSNT]: Use it to translate
29687 MULTIMEDIA_KEY_EVENT.
29688
29689 * w32term.h (WM_APPCOMMAND): Define if not already.
29690 (GET_APPCOMMAND_LPARAM): Likewise.
29691
29692 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29693 WM_APPCOMMAND.
29694
29695 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29696 (syms_of_w32fns): Export and initialize it.
29697 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29698
296992007-11-09 Chong Yidong <cyd@stupidchicken.com>
29700
29701 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
29702 twice.
29703
29704 * xdisp.c (handle_face_prop): Fix last change.
29705
297062007-11-09 Richard Stallman <rms@gnu.org>
29707
29708 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
29709 not just for after-strings and before-strings.
29710 Call face_for_overlay_string and pass the overlay to it.
29711 (handle_display_prop): Determine whether property came from an overlay.
29712 Pass OVERLAY arg to handle_single_display_spec.
29713 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
29714 (load_overlay_strings): Fill in it->string_overlays.
29715 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
29716
29717 * xfaces.c (face_for_overlay_string): Function renamed from
29718 face_at_buffer_position_no_overlays, and add arg OVERLAY.
29719
29720 * dispextern.h (struct it): New elt string_overlays.
29721 New elt from_overlay, also in stack.
29722 Rearrange a few elements.
29723 (face_for_overlay_string): Decl renamed from
29724 face_at_buffer_position_no_overlays, and add argument.
29725
297262007-11-09 Richard Stallman <rms@gnu.org>
29727
29728 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29729 to get the base face for an overlay string.
29730
29731 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29732
29733 * xfaces.c (face_at_buffer_position_no_overlays): New function.
29734
29735 * xdisp.c (handle_stop): Move some code out of loop.
29736
297372007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29738
29739 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29740 Fix conversion from Lisp object to ATSUFontID.
29741
297422007-11-09 Jason Rumney <jasonr@gnu.org>
29743
29744 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
29745
297462007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29747
29748 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
29749 Don't assume regions are aligned to page boundary.
29750 (print_load_command_name): Add LC_UUID if defined.
29751
297522007-11-09 Richard Stallman <rms@gnu.org>
29753
29754 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
29755
297562007-11-07 Jason Rumney <jasonr@gnu.org>
29757
29758 * s/windows95.h: Remove.
29759
297602007-11-06 Jan Djärv <jan.h.d@swipnet.se>
29761
29762 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
29763 abort with a message on unhandled store_type values.
29764
297652007-11-01 Jan Djärv <jan.h.d@swipnet.se>
29766
29767 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
29768 Remove HAVE_X11R5 and HAVE_X11R4.
29769
297702007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29771
29772 * Makefile.in: Remove references to sunfns.c and sunfns.o.
29773
297742007-11-01 Johan Bockgård <bojohan@gnu.org>
29775
29776 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
29777 Don't set s->stippled_p here, since it has already been set by
29778 x_set_glyph_string_gc from x_draw_glyph_string.
29779
297802007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29781
29782 * sunfns.c: Remove file.
29783
29784 * m/sun386.h:
29785 * m/sun2.h:
29786 * m/sparc.h: Remove Sun windows code.
29787
297882007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
29789
29790 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
29791 (init_keyboard): Set current_kboard's window-system to nil.
29792 (tty_read_avail_input): Typo.
29793 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
29794
297952007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
29796
29797 * s/usg5-4.h:
29798 * s/usg5-3.h:
29799 * s/ptx.h:
29800 * m/is386.h:
29801 * m/ibmps2-aix.h:
29802 * Makefile.in: Remove all mentions of X10.
29803
29804 * dispnew.c (syms_of_display): Don't mention version 10.
29805
298062007-10-28 Juanma Barranquero <lekktu@gmail.com>
29807
29808 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
29809 ($(BLD)/abbrev.$(O)): Remove.
29810
298112007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
29812
29813 Rewrite abbrev.c in Elisp.
29814 * image.c (Qcount): Don't declare as extern.
29815 (syms_of_image): Initialize and staticpro `Qcount'.
29816 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
29817 * emacs.c (main): Don't call syms_of_abbrev.
29818 * Makefile.in (obj): Remove abbrev.o.
29819 (abbrev.o): Remove.
29820 * abbrev.c: Remove.
29821
298222007-10-26 Martin Rudalics <rudalics@gmx.at>
29823
29824 * window.c (window_min_size_2): Don't count header-line.
29825
298262007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
29827
29828 * frame.h (struct frame): Move all bit fields after the first bit
29829 field to take advantage of the available space. Group all the
29830 chars together to reduce wasted space due to padding.
29831
298322007-10-26 Juanma Barranquero <lekktu@gmail.com>
29833
29834 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
29835
29836 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
29837 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
29838 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
29839 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
29840 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
29841 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
29842 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
29843 (last_marked, mark_object_loop_halt): Make static.
29844
29845 * frame.c (syms_of_frame) <delete-frame-functions>:
29846 Fix typo in docstring.
29847
298482007-10-25 Juanma Barranquero <lekktu@gmail.com>
29849
29850 * w32.c (init_environment): Fix tiny memory leak.
29851 (w32_get_resource): Remove unused variable `ok'.
29852
298532007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
29854
29855 Make `window-system' into a keyboard-local variable (rather than
29856 frame-local as done originally by multi-tty).
29857
29858 * keyboard.h (struct kboard): Add Vwindow_system.
29859 * keyboard.c (init_kboard): Set a default for Vwindow_system.
29860 (mark_kboards): Mark Vwindow_system.
29861
29862 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
29863 (init_display): Don't set the obsolete `window-system' frame-param.
29864
29865 * xterm.c (x_term_init):
29866 * w32term.c (w32_create_terminal):
29867 * term.c (init_tty): Set Vwindow_system.
29868 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
29869 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
29870
29871 * xfns.c (Fx_create_frame, x_create_tip_frame):
29872 * w32fns.c (Fx_create_frame, x_create_tip_frame):
29873 * macfns.c (Fx_create_frame):
29874 Don't set the obsolete `window-system' frame-param.
29875
29876 * frame.h (Qwindow_system): Remove.
29877 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
29878 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
29879
298802007-10-24 Richard Stallman <rms@gnu.org>
29881
29882 * frame.c (x_figure_window_size): For fullscreen case,
29883 set USPosition | PPosition without clobbering rest of window_prompting.
29884
29885 * keyboard.c (Fcurrent_idle_time): Doc fix.
29886
29887 * print.c (Fwith_output_to_temp_buffer): Doc fix.
29888
298892007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
29890
29891 * process.c (unwind_request_sigio): Only define if __ultrix__.
29892
29893 * callproc.c (child_setup): Remove spurious *.
29894
29895 * lisp.h (Fget_text_property): Declare.
29896 (have_menus_p): Declare it here rather than in sys-dep header files.
29897 * macterm.h (have_menus_p):
29898 * msdos.h (have_menus_p):
29899 * xterm.h (have_menus_p): Remove.
29900
29901 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
29902 (Fmake_variable_frame_local): Just check the variable's const-ness
29903 rather than checking nil or t.
29904
299052007-10-22 Jason Rumney <jasonr@gnu.org>
29906
29907 * w32fns.c: Include math.h.
29908 (w32_abort): Declaration moved to nt/config.nt.
29909
29910 * s/ms-w32.h (HAVE_STDLIB_H): Define.
29911 (abort): Redefinition moved to nt/config.nt.
29912
29913 * m/windowsnt.h: Remove.
29914
299152007-10-22 Juanma Barranquero <lekktu@gmail.com>
29916
29917 * emacs.c (Fdump_emacs): Fix typo in message.
29918 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
29919 <installation-directory>: Reflow docstring.
29920
299212007-10-22 Juri Linkov <juri@jurta.org>
29922
29923 * minibuf.c: Allow minibuffer default to be a list of default values.
29924 With empty input use the first element of this list as returned default.
29925 (string_to_object)
29926 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
29927 (read_minibuf): If defalt is cons, set histstring to its car.
29928 (Fread_string): If default_value is cons, set val to its car.
29929 (Fread_buffer): If def is cons, use its car.
29930 (Fcompleting_read): If defalt is cons, set val to its car.
29931
299322007-10-21 Michael Albinus <michael.albinus@gmx.de>
29933
29934 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
29935
299362007-10-20 Juanma Barranquero <lekktu@gmail.com>
29937
29938 * doc.c (Fdocumentation): Check for advice in all cases.
29939
299402007-10-19 Chong Yidong <cyd@stupidchicken.com>
29941
29942 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
29943
299442007-10-19 Richard Stallman <rms@gnu.org>
29945
29946 * doc.c (Fdocumentation): Check for and handle an advised function.
29947
299482007-10-19 Juanma Barranquero <lekktu@gmail.com>
29949
29950 * process.c (Fset_process_filter): Doc fix.
29951
299522007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
29953
29954 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
29955 which caused key-translation-map to applied repeatedly (thus breaking
29956 double-mode).
29957
299582007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29959
29960 * xselect.c (x_own_selection, x_handle_selection_clear)
29961 (x_clear_frame_selections):
29962 * w32menu.c (list_of_panes, list_of_items):
29963 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
29964 * textprop.c (validate_plist, interval_has_all_properties)
29965 (interval_has_some_properties, interval_has_some_properties_list)
29966 (add_properties, text_property_list):
29967 * process.c (Fget_buffer_process, list_processes_1, status_notify):
29968 * minibuf.c (Fassoc_string):
29969 * macselect.c (x_own_selection, x_clear_frame_selections)
29970 (Fx_disown_selection_internal):
29971 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
29972 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
29973
299742007-10-17 Chong Yidong <cyd@stupidchicken.com>
29975
29976 * process.c: Link to libs for calling res_init() if available.
29977 (Fmake_network_process): Call res_init() before getaddrinfo or
29978 gethostbyname, if possible.
29979
299802007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29981
29982 * lread.c (read1): Set pvectype for char_tables.
29983
29984 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
29985 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
29986 Add type checks.
29987 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
29988
29989 * alloc.c (free_misc): Use XMISCTYPE.
29990 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
29991
299922007-10-17 Glenn Morris <rgm@gnu.org>
29993
29994 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
29995 (syms_of_minibuf): Add Qcompletion_ignore_case.
29996 * dired.c (Qcompletion_ignore_case): Change to external.
29997 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
29998 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
29999 (Fread_file_name): Use it rather than intern'ing.
30000
30001 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
30002 (Fread_coding_system): Ignore case of user input.
30003
300042007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30005
30006 * xdisp.c (handle_display_prop): Ignore display specs after
30007 replacing one when string text is being replaced.
30008 (handle_single_display_spec): Pretend as if characters with display
30009 property haven't been consumed only when buffer text is being replaced.
30010
300112007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
30012
30013 * xfns.c (Fx_create_frame, Fx_display_list):
30014 * window.c (window_fixed_size_p, enlarge_window)
30015 (shrink_window_lowest_first):
30016 * macterm.c (init_font_name_table):
30017 * macfns.c (Fx_create_frame, Fx_display_list):
30018 * lread.c (close_load_descs):
30019 * keyboard.c (read_char_x_menu_prompt):
30020 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
30021 * coding.c (code_convert_region_unwind): Test the type of an object
30022 rather than just !NILP before extracting data from it.
30023
30024 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
30025
30026 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
30027 (XMISCANY): New macro.
30028 (XMISCTYPE): Use it.
30029 (struct Lisp_Misc_Any): New type.
30030 (union Lisp_Misc): Use it.
30031 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
30032 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
30033 (find_symbol_value, set_internal, default_value, Fset_default)
30034 (Fmake_variable_buffer_local, Fmake_local_variable)
30035 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
30036 (Flocal_variable_if_set_p, Fvariable_binding_locus):
30037 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
30038 * alloc.c (allocate_buffer): Set the size and tag.
30039 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
30040 Use XMISCANY.
30041 (die): Follow the GNU convention for error messages.
30042 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
30043 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
30044 tag any more.
30045 (set_buffer_internal_1):
30046 * frame.c (store_frame_param):
30047 * eval.c (specbind):
30048 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
30049
30050 * doc.c (Fsnarf_documentation): Simplify.
30051
300522007-10-14 Juanma Barranquero <lekktu@gmail.com>
30053
30054 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
30055 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
30056
300572007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
30058
30059 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
30060
300612007-10-14 Juanma Barranquero <lekktu@gmail.com>
30062
30063 * eval.c (do_autoload): Don't save autoloads.
30064
30065 * data.c (Ffset): Save autoload of the function being set.
30066
300672007-10-07 John Paul Wallington <jpw@pobox.com>
30068
30069 * xfns.c (x_create_tip_frame): Set the `display-type' frame
30070 parameter before setting up faces.
30071
300722007-10-13 Eli Zaretskii <eliz@gnu.org>
30073
30074 * ccl.c (Fregister_code_conversion_map):
30075 * keyboard.c (append_tool_bar_item): Reformat last change.
30076
30077 * lisp.h (eabs): Rename from `abs'. All callers changed.
30078
300792007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
30080
30081 * buffer.c (add_overlay_mod_hooklist):
30082 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
30083 * fontset.c (make_fontset):
30084 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
30085 (append_tool_bar_item):
30086 * macmenu.c (grow_menu_items):
30087 * w32menu.c (grow_menu_items):
30088 * xmenu.c (grow_menu_items): Use larger_vector.
30089
300902007-10-13 Eli Zaretskii <eliz@gnu.org>
30091
30092 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
30093 selected frame'' on MSDOS).
30094
300952007-10-12 Martin Rudalics <rudalics@gmx.at>
30096
30097 * frame.c (Qexplicit_name): New variable.
30098 (x_report_frame_params): Report it in parameter alist.
30099 (syms_of_frame): Intern and staticpro it.
30100
301012007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
30102
30103 * macfns.c (x_create_tip_frame): Set terminal for frame.
30104
301052007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
30106
30107 * frame.c (Qenvironment): Remove.
30108 (syms_of_frame) <Qenvironment>: Don't initialize.
30109 (Fdelete_frame): Don't treat the `environment' param specially.
30110 * frame.h (Qenvironment): Don't declare.
30111 * callproc.c (set_initial_environment): Don't set unused frame param.
30112
30113 * frame.c (Fframe_with_environment): Remove.
30114 (syms_of_frame) <Sframe_with_environment>: Don't declare.
30115
30116 * lisp.h (Fframe_with_environment): Don't declare.
30117
301182007-10-10 Juanma Barranquero <lekktu@gmail.com>
30119
30120 * indent.c (indent_tabs_mode, last_known_column)
30121 (last_known_column_modified): Make static.
30122 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
30123
301242007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
30125
30126 * puresize.h (BASE_PURESIZE): Increase to 1170000.
30127
301282007-10-09 Jason Rumney <jasonr@gnu.org>
30129
30130 * w32term.c (x_set_window_size): Disable code that attempts to tell
30131 Lisp code about a size change before it actually happens.
30132
301332007-10-09 Richard Stallman <rms@gnu.org>
30134
30135 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
30136 return HANDLED_RETURN.
30137
301382007-10-08 Martin Rudalics <rudalics@gmx.at>
30139
30140 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
30141 when there's an unread command event.
30142
30143 * frame.c (focus_follows_mouse): Move here from frame.el to allow
30144 window autoselection act appropriately when leaving selected frame.
30145 (syms_of_frame): Initialize focus_follows_mouse.
30146 * frame.h (focus_follows_mouse): Extern it.
30147 * macterm.c (XTread_socket): When focus_follows_mouse is nil
30148 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
30149 * msdos.c (dos_rawgetc): Likewise.
30150 * w32term.c (w32_read_socket): Likewise.
30151 * xterm.c (handle_one_xevent): Likewise.
30152 * xdisp.c (syms_of_xdisp): In doc-string of
30153 mouse-autoselect-window mention focus-follows-mouse.
30154
301552007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30156
30157 * macterm.c (mac_load_query_font): Fix missing return value.
30158 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
30159 Add BLOCK_INPUT.
30160
301612007-10-08 Richard Stallman <rms@gnu.org>
30162
30163 * xdisp.c (get_window_cursor_type): Implement documented behavior
30164 for cursor-in-non-selected-windows = t.
30165
301662007-10-08 Jason Rumney <jasonr@gnu.org>
30167
30168 * w32.c (w32_get_resource): Always close registry keys.
30169
301702007-10-08 Jason Rumney <jasonr@gnu.org>
30171
30172 * makefile.w32-in (LIBS): Add COMCTL32.
30173
30174 * w32fns.c (globals_of_w32fns): Init common controls.
30175
301762007-10-08 Richard Stallman <rms@gnu.org>
30177
30178 * image.c (our_memory_buffer): Rename from omfib_buffer.
30179
301802007-10-08 Richard Stallman <rms@gnu.org>
30181
30182 * buffer.c (Foverlays_at): Doc fix.
30183
301842007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
30185
30186 * fns.c (Fplist_put): Preserve uneven tail data.
30187
301882007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
30189
30190 * termhooks.h (enum event_kind): Remove trailing comma.
30191
30192 * frame.h (enum): Remove trailing comma.
30193
301942007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
30195
30196 * w32proc.c (delete_child): Don't terminate threads of zombies.
30197
301982007-10-08 Martin Rudalics <rudalics@gmx.at>
30199
30200 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
30201
30202 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
30203 last-repeatable-command.
30204 (init_kboard): Initialize Vlast_repeatable_command.
30205 (command_loop_1): Set it to real_this_command unless that was
30206 bound to an input event.
30207 (mark_kboards): Mark it.
30208
302092007-10-08 Richard Stallman <rms@gnu.org>
30210
30211 * eval.c (condition-case): Doc fix.
30212
302132007-10-08 Masatake YAMATO <jet@gyve.org>
30214
30215 * xfaces.c (tty_supports_face_attributes_p): Fix code
30216 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
30217 was copied and not edited.
30218
302192007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
30220
30221 Add new `input-decode-map' keymap and use it for terminal
30222 escape sequences.
30223 * keyboard.h (struct kboard): Add Vinput_decode_map.
30224 Remove Vlocal_key_translation_map.
30225 * keyboard.c (read_key_sequence): Add support for input-decode-map.
30226 (init_kboard): Init input-decode-map.
30227 Replace local-key-translation-map back with key-translation-map.
30228 (syms_of_keyboard): Declare input-decode-map.
30229 Remove local-key-translation-map. Update docstrings.
30230 (mark_kboards): Mark Vinput_decode_map.
30231 Don't mark Vlocal_key_translation_map.
30232 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
30233 Replace local-key-translation-map back with key-translation-map.
30234 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
30235 Bind in input-decode-map rather than function-key-map.
30236
30237 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
30238 This was made redundant by the previous introduction of XSETPVECTYPE.
30239
302402007-10-09 Richard Stallman <rms@gnu.org>
30241
30242 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
30243
302442007-09-29 Richard Stallman <rms@gnu.org>
30245
30246 * eval.c (internal_condition_case_2, internal_condition_case_1)
30247 (internal_condition_case): Reenable abort if x_catching_errors ()
30248 to see if that really happens and why.
30249
302502007-10-06 Andreas Schwab <schwab@suse.de>
30251
30252 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
30253
302542007-10-04 Juanma Barranquero <lekktu@gmail.com>
30255
30256 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
30257
302582007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
30259
30260 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
30261
302622007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
30263
30264 * window.h (struct window):
30265 * window.c (struct save_window_data, struct saved_window):
30266 * termhooks.h (struct terminal):
30267 * process.h (struct Lisp_Process):
30268 * frame.h (struct frame):
30269 * buffer.h (struct buffer):
30270 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
30271 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
30272 The size field of (pseudo)vectors is now unsigned.
30273 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
30274
30275 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
30276 Turn `count' into an integer.
30277
30278 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
30279 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
30280 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
30281 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
30282 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
30283
30284 * alloc.c (allocate_pseudovector): New fun.
30285 (ALLOCATE_PSEUDOVECTOR): New macro.
30286 (allocate_window, allocate_terminal, allocate_frame)
30287 (allocate_process): Use it.
30288 (mark_vectorlike): New function.
30289 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
30290 (mark_terminals): Use it.
30291 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
30292 (Fmake_byte_code): Use XSETPVECTYPE.
30293
30294 * frame.c (Fframe_parameters): Minor simplification.
30295
30296 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
30297
30298 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
30299
30300 * buffer.c (Fget_buffer_create, init_buffer_once):
30301 * lread.c (defsubr):
30302 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
30303
30304 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
30305 defined differently in the m/*.h files.
30306 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
30307 (XSETPVECTYPE): New macro.
30308 (XSETPSEUDOVECTOR): Use it.
30309
30310 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
30311 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
30312
30313 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
30314 * lread.c (defvar_per_buffer):
30315 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
30316
30317 * window.c (candidate_window_p): Only consider as visible frames that
30318 are on the same terminal.
30319
30320 * m/ibms390x.h (MARKBIT): Remove unused macro.
30321
303222007-10-01 Juanma Barranquero <lekktu@gmail.com>
30323
30324 * lread.c (Fload): Fix typo in docstring.
30325
303262007-10-01 Michaël Cadilhac <michael@cadilhac.name>
30327
30328 * floatfns.c (Fexpt): Manually check for overflows, so that a power
30329 of a non-zero value can't yield zero.
30330
303312007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
30332
30333 * term.c (term_clear_mouse_face, term_mouse_highlight)
30334 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
30335
30336 * print.c (safe_debug_print): Use XHASH.
30337
30338 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
30339 Lisp elements such as tags.
30340 (XHASH): New macro.
30341 (EQ): Use it.
30342 (SREF, SSET, STRING_COPYIN): Use SDATA.
30343 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
30344
30345 * alloc.c (mark_terminal): Remove left-over declaration.
30346 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
30347 (allocate_vectorlike): Remove type argument. Adjust callers.
30348 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
30349 Only handle the one remaining MEM_TYPE_VECTORLIKE.
30350
30351 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
30352 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
30353 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
30354 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
30355 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
30356 Use them.
30357
30358 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
30359 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
30360 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
30361
303622007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
30363
30364 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
30365 loaded by default.
30366
303672007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
30368
30369 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
30370 on this tty.
30371 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
30372
30373 * term.c (mouse_face_window): Rename from Qmouse_face_window.
30374 Update all users.
30375 (handle_one_term_event): Use Gpm_DrawPointer.
30376 (Fgpm_mouse_start): Rename from Fterm_open_connection.
30377 Signal errors instead of returning nil. Always return nil.
30378 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
30379 Make it a noop if gpm-mouse was not activated.
30380 (syms_of_term): Update names.
30381
303822007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
30383
30384 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
30385 (init_sys_modes): Check that gpm_tty is the current tty.
30386
30387 * alloc.c (allocate_terminal): Set the vector size to only count the
30388 lisp fields. Initialize those to nil.
30389 (mark_object): Don't treat terminals specially.
30390 (mark_terminal): Remove.
30391 (mark_terminals): Use mark_object instead.
30392
30393 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
30394 the GC to the beginning.
30395
30396 * indent.h:
30397 * indent.c: Use EMACS_INT for ints coming from Elisp data.
30398
30399 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
30400
304012007-09-25 Jason Rumney <jasonr@gnu.org>
30402
30403 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
30404
30405 * w32console.c (create_w32cons_output): Remove.
30406
30407 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
30408
30409 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
30410 (reset_sys_modes): Use reset_terminal_modes_hook.
30411
304122007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
30413
30414 * eval.c (do_autoload): Don't output any message.
30415
304162007-09-24 Juri Linkov <juri@jurta.org>
30417
30418 * emacs.c (standard_args): Change priority of "--no-splash"
30419 from 40 to 3. Add "--no-desktop" with the same priority.
30420
304212007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
30422
30423 * alloc.c (gc_sweep): Check cons cell mark bits word by word
30424 and optimize the case where they are all 1.
30425
304262007-09-23 Johannes Weiner <hannes@saeurebad.de>
30427
30428 * lisp.h (abs): Define if not defined.
30429 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
30430 Don't define `abs', since it's defined in lisp.h.
30431
304322007-09-22 Eli Zaretskii <eliz@gnu.org>
30433
30434 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
30435 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
30436 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
30437 (init_tty): Use DEV_TTY instead of "/dev/tty".
30438 [WINDOWSNT]: No need to protect from NAME arg being null.
30439
304402007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
30441
30442 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
30443 up the tty state.
30444
304452007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30446
30447 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
30448 (gpm_tty): Change its type.
30449 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
30450 (gpm_tty): Change its type and initialize it.
30451 (Fterm_open_connection): Check the frame is indeed a tty.
30452 Use the new gpm_tty.
30453 (Fterm_close_connection): Use the new gpm_tty.
30454 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
30455 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
30456
304572007-09-21 Juanma Barranquero <lekktu@gmail.com>
30458
30459 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
30460 underline_color, to draw strike-through.
30461
304622007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30463
30464 * lisp.h (allocate_terminal): Declare.
30465
30466 * window.c (candidate_window_p): Consider frames that are being placed
30467 by the user as somewhere between visible and iconified.
30468 (window_loop): Prefer windows on the current frame.
30469 (Fselect_window): Move the use of select-frame to the beginning so we
30470 can just delegate all the work (it'll call us back anyway).
30471
30472 * frame.c (Qdisplay_environment_variable):
30473 * frame.h (Qdisplay_environment_variable): Delete.
30474
30475 * .gdbinit (xbacktrace): Print the arg's address rather than the value
30476 of the first arg, since that value may be a union.
30477
30478 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
30479 parameter rather than Qdisplay_environment_variable. If all else
30480 fails, look for DISPLAY in initial-environment.
30481
304822007-09-21 Glenn Morris <rgm@gnu.org>
30483
30484 * Makefile.in (emacstool): Remove target.
30485 (lisp, shortlisp): Remove termdev.elc.
30486
304872007-09-21 Markus Triska <markus.triska@gmx.at>
30488
30489 * xterm.c (x_delete_display): Compile session management conditionally.
30490
304912007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
30492
30493 * callproc.c (getenv_internal_1): New function.
30494 (getenv_internal): Use it.
30495 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
30496
30497 * terminal.c (get_terminal): Don't accept ints to represent terminals.
30498 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
30499 (Fset_terminal_parameter): Work with dead terminals as well.
30500 (Fmodify_terminal_parameters): Remove.
30501
30502 * terminal.c (get_terminal): Handle terminals.
30503 Make sure the terminal returned is live.
30504 (create_terminal): Use allocate_terminal.
30505 (mark_terminals): Move to alloc.c.
30506 (delete_terminal): Use terminal->name as liveness status.
30507 NULL out fields after freeing their contents.
30508 Don't deallocate the object.
30509 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
30510 rather than an int.
30511 (Fterminal_live_p): Accept non-integer arguments.
30512 (Fterminal_list): Return terminal objects rather than an ints.
30513
30514 * alloc.c (enum mem_type): New member for `terminal' objects.
30515 (allocate_terminal): New function.
30516 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
30517 Handle terminals.
30518 (mark_terminal): New fun.
30519 (mark_terminals): Move from terminal.c.
30520
30521 * term.c (get_tty_terminal): Don't treat output_initial specially.
30522 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
30523 (delete_tty): Use terminal->name as liveness status.
30524
30525 * termhooks.h (struct terminal): Make it into a pseudovector.
30526 Remove `deleted' replaced by checking `name's nullness.
30527
30528 * print.c (print_object): Handle terminals.
30529
30530 * lisp.h (enum pvec_type): New `terminal' pseudovector.
30531 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
30532
30533 * frame.c (make_terminal_frame):
30534 * keyboard.c (tty_read_avail_input):
30535 * w32term.c (x_delete_terminal):
30536 * xfns.c (Fx_create_frame, x_create_tip_frame):
30537 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
30538
305392007-09-20 Glenn Morris <rgm@gnu.org>
30540
30541 * process.c (Fmake_network_process): Doc fix.
30542
305432007-09-19 Jason Rumney <jasonr@gnu.org>
30544
30545 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
30546
305472007-09-19 Michaël Cadilhac <michael@cadilhac.name>
30548
30549 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
30550 Fix a C warning regarding variable constness.
30551
30552 * xterm.c (handle_one_xevent): Fix a C warning.
30553
305542007-09-18 Jason Rumney <jasonr@gnu.org>
30555
30556 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
30557
305582007-09-17 Jan Djärv <jan.h.d@swipnet.se>
30559
30560 * gtkutil.c (gdpy_def): New variable.
30561 (xg_initialize): Initialize gdpy_def.
30562 (xg_display_close): If no other display exists, set gdpy_def to a
30563 new connection.
30564
305652007-09-16 Jan Djärv <jan.h.d@swipnet.se>
30566
30567 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
30568 when we have no file name for the icon.
30569 (xg_tool_bar_expose_callback): Remove.
30570 (xg_create_tool_bar): Don't connect expose signal to
30571 xg_tool_bar_expose_callback.
30572 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
30573
305742007-09-16 Andreas Schwab <schwab@suse.de>
30575
30576 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
30577 values instead of zapping them.
30578
305792007-09-14 Glenn Morris <rgm@gnu.org>
30580
30581 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
30582 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
30583 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
30584 scope and rename to omfib_buffer for clarity.
30585 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
30586
305872007-09-14 Kenichi Handa <handa@m17n.org>
30588
30589 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
30590
305912007-09-13 Jason Rumney <jasonr@gnu.org>
30592
30593 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
30594
30595 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
30596
30597 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
30598 (mac_term_init): Call here instead, passing rif.
30599
306002007-09-13 Glenn Morris <rgm@gnu.org>
30601
30602 * s/hpux.h: No longer define `static' as nothing.
30603
306042007-09-13 Johan Bockgård <bojohan@gnu.org>
30605
30606 * callint.c (Fcall_interactively): Remove unused var `fun'.
30607
306082007-09-12 Romain Francoise <romain@orebokech.com>
30609
30610 * window.c (prefer_window_split_horizontally, display_buffer):
30611 Revert 2007-09-08 change.
30612
306132007-09-12 Glenn Morris <rgm@gnu.org>
30614
30615 * alloca.c: Remove file.
30616 * Makefile.in (alloca): Do not undef.
30617 (allocaobj, alloca.o): Remove.
30618 (otherobj): Remove allocaobj.
30619 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30620 * regex.c (C_ALLOCA): Remove all references and code that was only
30621 used when this was defined.
30622 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30623 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30624 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30625
30626 * Makefile.in (SOURCES, unlock, relock): Delete.
30627
30628 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30629 (menu_grab_callback): All uses changed.
30630
30631 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30632 (x_reply_selection_request): All uses changed.
30633
306342007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
30635
30636 * lread.c (load_warn_old_style_backquotes): Change message to look
30637 better when it appears in the middle of byte-compiler messages.
30638
306392007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
30640
30641 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30642
30643 * xterm.c (x_create_terminal): Add comment.
30644
30645 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30646
306472007-09-10 Richard Stallman <rms@gnu.org>
30648
30649 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30650
306512007-09-10 Michaël Cadilhac <michael@cadilhac.name>
30652
30653 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30654 (DEFUN): Document `intspec', use it instead of `prompt'.
30655
30656 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30657
30658 * data.c (Finteractive_form): If the interactive specification starts
30659 with a `(', use it as a Lisp form.
30660
30661 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30662 name and file modes.
30663
30664 * callint.c (Fcall_interactively): Comment fixes.
30665
306662007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
30667
30668 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30669 and compiled functions.
30670
306712007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
30672
30673 * window.c (prefer_window_split_horizontally): New variable.
30674 (display_buffer): Consider splitting window horizontally depending
30675 on prefer_window_split_horizontally.
30676
306772007-09-08 Eli Zaretskii <eliz@gnu.org>
30678
30679 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30680
306812007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30682
30683 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30684
30685 * frame.c (x_set_frame_parameters): Check number is positive before
30686 using XFASTINT.
30687
30688 * window.c (freeze_window_start): Don't presume selected_window holds
30689 a window object.
30690 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30691
306922007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
30693
30694 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30695
306962007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30697
30698 * window.c (Vsplit_window_preferred_function): New var.
30699 (Fdisplay_buffer): Use it.
30700 (syms_of_window): Export, and initialize it.
30701
307022007-09-06 Pixel <pixel@mandriva.com> (tiny change)
30703
30704 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
30705
307062007-09-06 Glenn Morris <rgm@gnu.org>
30707
30708 * gtkutil.c (menu_grab_callback) <cnt>:
30709 * xselect.c (x_reply_selection_request) <cnt>: Move static
30710 variable to file scope.
30711
307122007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
30713
30714 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
30715 consistent values of selected_frame and selected_window.
30716
307172007-09-04 Jason Rumney <jasonr@gnu.org>
30718
30719 * w32console.c (initialize_w32_display): Zero unused hooks.
30720
307212007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30722
30723 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30724 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30725
307262007-09-04 Jason Rumney <jasonr@gnu.org>
30727
30728 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30729 in w32console.c. Set up input. Remove XXX comments that have been
30730 confirmed as correct.
30731
30732 * s/ms-w32.h (MULTI_KBOARD): Define.
30733
30734 * w32console.c (one_and_only_w32cons): Remove.
30735 (initialize_w32_display): Take terminal argument.
30736
30737 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30738 initialize_w32_display.
30739 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30740
30741 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30742
30743 * keyboard.c (discard_mouse_events): Discard it.
30744 (make_lispy_event): Translate it to a lisp event.
30745 (lispy_wheel_names): Add wheel-left and right events.
30746 (syms_of_keyboard): Enlarge wheel_syms.
30747
30748 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
30749 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
30750
30751 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
30752
30753 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
30754 from WM_MOUSEHWHEEL.
30755 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
30756
30757 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
30758 terminal.
30759
30760 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
30761 keyboard for the terminal.
30762
307632007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30764
30765 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
30766 (Vresume_tty_hook): Rename from Vresume_tty_functions.
30767 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
30768 and resume-tty-function to resume-tty-hook.
30769 (Fsuspend_tty, Fresume_tty): Use new names.
30770
307712007-09-02 Jan Djärv <jan.h.d@swipnet.se>
30772
30773 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
30774 if it starts with "n:".
30775
307762007-08-31 Jan Djärv <jan.h.d@swipnet.se>
30777
30778 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
30779
307802007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
30781
30782 * frame.h:
30783 * frame.c (Qterm_environment_variable): Remove.
30784 (syms_of_frame): Don't init and staticpro it.
30785
30786 * callproc.c (getenv_internal): Remove special case for $TERM.
30787
30788 * callproc.c (Vinitial_environment): New variable.
30789 (set_initial_environment): Initialize it.
30790 (syms_of_callproc): Declare it.
30791 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
30792 TERM under which a process runs is never related to the TERM in which
30793 Emacs is running.
30794
307952007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30796
30797 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
30798 * s/darwin.h: ... do it here.
30799
308002007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
30801
30802 * lisp.h (set_initial_environment): Rename from set_global_environment.
30803
30804 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
30805 removed by mistake on the multi-tty branch.
30806
30807 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
30808 (Fmodify_frame_parameters): Return a value.
30809
30810 * image.c (png_load): Comment-out var only used in commented-out code.
30811
30812 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
30813 before passing it to mark_object.
30814
30815 * xfaces.c (internal_resolve_face_name): Return a value.
30816 (internal_resolve_face_name, resolve_face_name_error): Comment out.
30817
30818 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
30819 (x_icon): Comment-out var only used in commented-out code.
30820
308212007-08-29 Romain Francoise <romain@orebokech.com>
30822
30823 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
30824 QUIT hasn't been provided.
30825
308262007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30827
30828 * callproc.c (child_setup, getenv_internal): Use the
30829 display-environment-variable and term-environment-variable frame params.
30830 (set_initial_environment): Initialise Vprocess_environment.
30831
30832 * config.in: Disable multi-keyboard support on a mac.
30833
30834 * frame.c (Qterm_environment_variable)
30835 (Qdisplay_environment_variable): New variables.
30836 (syms_of_frame): Intern and staticpro them.
30837 (Fmake_terminal_frame): Disable output method test.
30838
30839 * frame.h: Declare them here.
30840
30841 * macfns.c (x_set_mouse_color): Get rif from the frame.
30842 (x_set_tool_bar_lines): Don't use updating_frame.
30843 (mac_window): Add 2 new parameters for consistency with other systems.
30844 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
30845 frame parameters following what is done in X11 and w32. Don't use
30846 FRAME_MAC_DISPLAY_INFO.
30847 (Fx_open_connection, start_hourglass): Remove window-system check.
30848 (x_create_tip_frame): Get the keyboard from the terminal.
30849
30850 * macmenu.c: Reorder includes.
30851 (Fx_popup_menu): Use terminal specific mouse_position_hook.
30852
30853 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
30854 terminal parameter.
30855 (x_clear_frame): Add a frame parameter.
30856 (note_mouse_movement): Get rif from the frame.
30857 (mac_term_init): Initialize the terminal.
30858 (mac_initialize): Make static and move terminal initialization ...
30859 (mac_create_terminal): ... to this new function.
30860
30861 * macterm.h (struct mac_display_info): Add terminal.
30862 (mac_initialize): Delete declaration.
30863
30864 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
30865
30866 * sysdep.c: Comment out text after #endif.
30867
30868 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
30869 is defined. Better initialize ttys in windows. Use terminal
30870 specific mouse_position_hook.
30871
30872 * termhooks.h (union display_info): Add mac_display_info.
30873
30874 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
30875 Set the default minibuffer frame, window_system and the rest of the
30876 frame parameters following what is done in X11.
30877
30878 * w32term.c (w32_initialize): Make static.
30879
30880 * xselect.c (x_handle_selection_clear): Only access
30881 terminal->kboard when MULTI_KBOARD is defined.
30882
30883 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
30884 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
30885
308862007-08-29 Jason Rumney <jasonr@gnu.org>
30887
30888 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
30889 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
30890
30891 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
30892 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
30893
30894 * keyboard.c (restore_kboard_configuration): Only define when
30895 MULTI_KBOARD defined.
30896
30897 * makefile.w32-in: Update dependancies from Makefile.in.
30898 (OBJ1): Add terminal.$(O)
30899
30900 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
30901 Don't define function body.
30902 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
30903
30904 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
30905
30906 * w32.c (request_sigio, unrequest_sigio): Remove.
30907
30908 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
30909 (w32con_clear_frame, w32con_clear_end_of_line)
30910 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
30911 (w32con_delete_glyphs, w32con_set_terminal_window)
30912 (scroll_line, w32_sys_ring_bell): Add frame arg.
30913 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
30914 Add terminal arg.
30915 (PICK_FRAME): Remove.
30916 (w32con_write_glyphs): Use frame specific terminal coding.
30917 (one_and_only_w32cons): New global variable.
30918 (initialize_w32_display): Use it for storing hooks.
30919 (create_w32cons_output): New function.
30920
30921 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
30922 arg a frame.
30923
30924 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
30925 Set window_system.
30926 (x_set_tool_bar_lines): Don't use updating_frame.
30927 (Fx_create_frame): Set terminal and ref count.
30928 (Fx_open_connection): Remove window-system check.
30929
30930 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
30931
30932 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
30933 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
30934 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
30935 Add frame arg.
30936 (x_delete_terminal, w32_create_terminal): New functions.
30937 (w32_term_init): Create a terminal.
30938 (w32_initialize): Move terminal specific initialization to
30939 w32_create_terminal.
30940
30941 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
30942 (w32_clear_rect, w32_clear_area): Use background from frame.
30943 (w32_display_info): Add terminal.
30944 (w32_sys_ring_bell, x_delete_display): Declare here.
30945
30946 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
30947
30948 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
30949
309502007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
30951
30952 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
30953 Fix get_named_tty calls for the controlling tty.
30954
309552007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
30956
194d44e7 30957 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
30958
309592007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
30960
30961 * term.c (tty_insert_glyphs): Add missing first parameter.
30962
309632007-08-29 Károly Lőrentey <karoly@lorentey.hu>
30964
30965 * buffer.c (Fbuffer_list, Fbury_buffer):
30966 Take frame->buried_buffer_list into account.
30967
30968 * cm.c (current_tty): New variable, for cmputc().
30969 (cmputc): Use it.
30970 (cmcheckmagic): Add tty parameter, look up terminal streams there.
30971 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
30972 (cmgoto): Add tty parameter. Pass it on to calccost().
30973 Use emacs_tputs() instead of tputs().
30974
30975 * cm.h (emacs_tputs): New macro to set current_tty, and then call
30976 tputs().
30977 (current_tty): New variable, for cmputc().
30978 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
30979
30980 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
30981 (internal_condition_case, internal_condition_case_1)
30982 (internal_condition_case_2): Don't abort when x_catching_errors.
30983
30984 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
30985 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
30986 prevent crashes caused by bogus longjmps in read_char.
30987
30988 * keymap.h (Fset_keymap_parent): Add EXFUN.
30989
30990 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
30991 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30992 Remove redundant definition.
30993
30994 * macfns.c (x_set_mouse_color, x_make_gc):
30995 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30996
30997 * w32term.c (x_free_frame_resources):
30998 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30999 (w32_initialize): Use the accessor macros for terminal characteristics.
31000
31001 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
31002 Use the accessor macros for terminal characteristics.
31003 * msdos.c (internal_terminal_init): Use the accessor macros for
31004 terminal characteristics.
31005 (ScreenVisualBell, internal_terminal_init):
31006 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31007
31008 * termopts.h (no_redraw_on_reenter): Declare.
31009
31010 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
31011 (mark_terminals, mark_ttys): Declare.
31012 (Fgarbage_collect): Call them.
31013 (mark_object): Mark buried_buffer_list.
31014
31015 * prefix-args.c: Include stdlib.h for exit.
31016
31017 * syssignal.h: Add comment.
31018
31019 * indent.c: Include stdio.h.
31020
31021 * window.h (Vinitial_window_system): Declare.
31022 (Vwindow_system): Delete declaration.
31023
31024 * fontset.c (Finternal_char_font): Use FRAME_RIF.
31025
31026 * image.c (lookup_image): Don't initialize `c' until the xasserts
31027 have been run.
31028
31029 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
31030 FRAME_FOREGROUND_PIXEL.
31031
31032 * print.c (print_preprocess): Don't lose print_depth levels while
31033 iterating.
31034
31035 * widget.c (update_from_various_frame_slots):
31036 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31037
31038 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
31039 frames.
31040 (window_internal_height): Remove bogus make_number call.
31041 (init_window_once): Call make_terminal_frame with two zero parameters.
31042
31043 * fileio.c (Fread_file_name): Update comment.
31044
31045 * callint.c (Fcall_interactively):
31046 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
31047 Make sure it is correctly unwound.
31048
31049 * xsmfns.c (x_session_close): New function.
31050
31051 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
31052 Delete declarations.
31053
31054 * xterm.h: Remove declaration for x_fully_uncatch_errors.
31055 (x_output): Remove background_pixel and foreground_pixel fields.
31056 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
31057 (x_delete_device, x_session_close): Declare.
31058
31059 * lread.c: Include setjmp.h. Update declaration of `read_char'.
31060 (read_filtered_event): Call `read_char' with a local
31061 `wrong_kboard_jmpbuf'.
31062
31063 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
31064 Don't call single_kboard_state. Use FRAME_RIF.
31065
31066 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
31067 systems.
31068
31069 * lisp.h (set_process_environment): Rename to `set_global_environment'.
31070 (Fframe_with_environment, Fset_input_meta_mode)
31071 (Fset_quit_char): EXFUN.
31072 (x_create_device, tty_output, terminal, tty_display_info): Declare.
31073 (init_sys_modes, reset_sys_modes): Update prototypes.
31074 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
31075
31076 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
31077 Vlocal_key_translation_map, and Vkeyboard_translate_table.
31078 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
31079 Delete declarations.
31080 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
31081 (temporarily_switch_to_single_kboard, tty_read_avail_input):
31082 New declarations.
31083
31084 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
31085 already does that during init_display(). Call syms_of_keymap
31086 before syms_of_keyboard. Call `syms_of_terminal'.
31087 Call set_initial_environment, not set_process_environment.
31088 (shut_down_emacs): Call reset_all_sys_modes() instead of
31089 reset_sys_modes().
31090
31091 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
31092 (internal_resolve_face_name, resolve_face_name_error): New functions.
31093 (resolve_face_name): Protect against loops and errors thrown by Fget.
31094 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
31095 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
31096
31097 * scroll.c: Replace CURTTY() with local variables throughout the
31098 file (where applicable).
31099 (calculate_scrolling, calculate_direct_scrolling)
31100 (scrolling_1, scroll_cost): Use the accessor macros for terminal
31101 characteristics.
31102
31103 * keymap.c (Vfunction_key_map): Remove.
31104 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
31105 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
31106 (Vkey_translation_map): Remove.
31107 (syms_of_keymap): Remove DEFVAR for key-translation-map.
31108 (Fdescribe_buffer_bindings)
31109 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
31110 Update for terminal-local key-translation-map.
31111
31112 * Makefile.in (callproc.o): Update dependencies.
31113 (lisp, shortlisp): Add termdev.elc.
31114 (obj): Add terminal.o.
31115 (terminal.o): Add dependencies.
31116 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
31117 (data.o, fns.o): Add termhooks.h dependency.
31118 (SOME_MACHINE_LISP): Add dnd.elc.
31119 (minibuf.o): Fix typo.
31120 Update dependencies.
31121
31122 * data.c (do_symval_forwarding, store_symval_forwarding)
31123 (find_symbol_value): Use the selected frame's keyboard, not
31124 current_kboard.
31125
31126 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
31127 Vwindow_system.
31128
31129 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
31130 Fmenu_bar_open.
31131 (syms_of_xmenu): Update defsubr.
31132 (mouse_position_for_popup, Fx_popup_menu)
31133 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
31134 (set_frame_menubar, free_frame_menubar)
b97439ce 31135 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
31136 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
31137 an X frame.
31138
31139 * xselect.c (x_own_selection): Abort if not an X frame.
31140 (some_frame_on_display): Check if it is an X frame.
31141 (x_handle_selection_clear): Deal with MULTI_KBOARD.
31142
31143 * coding.c: Include frame.h and termhooks.h.
31144 (terminal_coding, keyboard_coding): Delete.
31145 (Fset_terminal_coding_system_internal)
31146 (Fset_keyboard_coding_system_internal)
31147 (Fkeyboard_coding_system)
31148 (Fterminal_coding_system): Add a terminal parameter.
31149 Get terminal_coding from the terminal.
31150 (init_coding_once): Don't call setup_coding_system here.
31151
31152 * dispextern.h (set_scroll_region, turn_off_insert)
31153 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
31154 (tty_clear_end_of_line, tty_setup_colors)
31155 (delete_tty, updating_frame)
31156 (produce_special_glyphs, produce_glyphs, write_glyphs)
31157 (insert_glyphs): Remove.
31158 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
31159 (tty_turn_off_highlight, get_tty_size): Add declaration.
31160 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
31161
31162 * frame.h (enum output_method): Add output_initial.
31163 (struct x_output): Delete.
31164 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
31165 Access foreground_pixel and background_pixel directly from the frame.
31166 (tty_display): Delete.
31167 (struct frame): Add buried_buffer_list, foreground_pixel,
31168 background_pixel and terminal. Delete kboard.
31169 (union output_data): Add tty.
31170 (FRAME_KBOARD): Get the kboard from the terminal.
31171 (FRAME_INITIAL_P): New macro.
31172 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
31173 (Qterm_environment_variable, Qdisplay_environment_variable)
31174 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
31175 New declarations.
31176
31177 * termchar.h (tty_output, tty_display_info): New structures.
31178 (tty_list): Declare.
31179 (FRAME_TTY, CURTTY): New macros.
31180 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
31181 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
31182 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
31183 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
31184
31185 * callproc.c: Include frame.h and termhooks.h, for terminal
31186 parameters.
31187 (add_env): New function.
31188 (child_setup): Use it.
31189 (child_setup, getenv_internal): Handle the new Vprocess_environment.
31190 (getenv_internal): Fix get_terminal_param call.
31191 (Fgetenv_internal, egetenv): Update doc.
31192 (syms_of_callproc): Initialize Vprocess_environment to nil.
31193 Register and initialize them. Remove obsolete defvars. Update doc
31194 strings.
31195 (child_setup): Handle Vlocal_environment_variables.
31196 (getenv_internal): Add terminal parameter.
31197 Handle Vlocal_environment_variables.
31198 (Fgetenv_internal): Add terminal parameter.
31199 (child_setup, getenv_internal, Fgetenv_internal): Store the local
31200 environment in a frame (not terminal) parameter. Update doc strings.
31201 (set_initial_environment): Rename from set_global_environment.
31202 Store Emacs environment in initial frame parameter.
31203
31204 * xdisp.c (redisplay_internal): Update references to
31205 `previous_terminal_frame'.
31206 (display_mode_line, Fformat_mode_line): Replace calls to
31207 `push_frame_kboard' with `push_kboard'.
31208 (get_glyph_string_clip_rects): Add extra parentheses and
31209 braces to prevent compiler warnings.
31210 (calc_pixel_width_or_height): Add xassert to check that the
31211 frame is alive. Don't call `lookup_image' on a termcap frame.
31212 (message2_nolog, message3_nolog, redisplay_internal)
31213 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
31214 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
31215 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
31216 (Fx_display_pixel_width, Fx_display_pixel_height)
31217 (Fx_display_planes, Fx_display_color_cells)
31218 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
31219 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
31220 (Fx_display_backing_store, Fx_display_visual_class)
31221 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
31222 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
31223
31224 * xfns.c (x_set_foreground_color x_set_background_color)
31225 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
31226 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31227 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
31228 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
31229 terminal that is being deleted.
31230 (Fx_create_frame): Use `store_frame_param' to set `window-system'
31231 frame parameter, and make sure it overrides any user-supplied setting.
31232 (Fx_close_connection, Fx_synchronize): Unify argument names with
31233 the rest of the DEFUNs.
31234
31235 * dispnew.c (Fsend_string_to_terminal): Update call to
31236 `get_tty_terminal'.
31237 (Fredraw_frame, Fsend_string_to_terminal)
31238 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
31239 FRAME_TERMCAP_P and FRAME_TTY.
31240 (window_change_signal): Don't believe width/height values that are
31241 impossibly small.
31242 (Vinitial_window_system): Rename from Vwindow_system.
31243 (termscript, Wcm, rif): Delete.
31244
31245 * termhooks.h (struct terminal): New struct containing the
31246 previously global text display hooks and new members NAME,
31247 DELETED and PARAM_ALIST.
31248 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
31249 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
31250 (FRAME_RIF): New macros.
31251 (get_terminal_param, get_device): New declarations.
31252 (termscript): Delete declaration.
31253
31254 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
31255 (XTflash, x_free_frame_resources, x_scroll_bar_create)
31256 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
31257 FRAME_FOREGROUND_PIXEL.
31258 (x_fully_uncatch_errors): Disable definition.
31259 (x_scroll_bar_expose): Fix reference to foreground pixel.
31260 (XTread_socket): Disable loop on all X displays.
31261 (x_delete_terminal): Don't set terminal->deleted and let
31262 delete_terminal delete the frames on the terminal.
31263 (x_delete_display): Doc update to reflect changes in
31264 delete_terminal.
31265 (x_display_info) <terminal>: Move member earlier in the struct.
31266 (deleting_tty): Remove old variable.
31267 (Fsuspend_tty): Call clear_tty_hooks.
31268 (Fresume_tty, init_tty): Call set_tty_hooks.
31269 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
31270 errors on X frames.
31271 (x_catch_errors_unwind): Abort if x_error_message is NULL.
31272 (handle_one_xevent): Initialize `f' to NULL.
31273 (x_delete_terminal, x_create_terminal): New functions.
31274 (XTset_terminal_modes, XTreset_terminal_modes)
31275 (XTread_socket, x_connection_closed, x_term_init)
31276 (x_term_init, x_delete_display): Add terminal parameter.
31277 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
31278 X connections.
31279
31280 * frame.c: Include termchar.h.
31281 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
31282 (Qwindow_system, Qenvironment, Qterm_environment_variable)
31283 (Qdisplay_environment_variable): New vars.
31284 (Fframep): Deal with output_initial.
31285 (Fframe-live-p): Doc fix.
31286 (Fwindow-system): New function.
31287 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
31288 (make_terminal_frame): Don't create frames on a terminal that is
31289 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31290 (store_frame_param): Check for found_for_frame before calling XFRAME.
31291 (Fmake_terminal_frame): Handle NULL tty names correctly.
31292 (syms_of_frame): Enhance doc string of `default-frame-alist'.
31293 (Fdelete_frame): Remove unused variable `count'. Don't allow other
31294 frames to refer to a deleted frame in their 'environment parameter.
31295 (Fframe_with_environment): New function.
31296 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
31297 (get_future_frame_param): New function.
31298 (Fmake_terminal_frame): Use it.
31299 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
31300
31301 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
31302 * sysdep.c (reset_sys_modes): Update for renames.
31303
31304 * keyboard.c (tty_read_avail_input): New function.
31305 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
31306 (syms_of_keyboard): Defsubr them.
31307 (Fset_input_meta_mode, Fset_quit_char): New functions.
31308 (Fset_input_mode): Split to above functions.
31309 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
31310 parameter. Use it in call to `read_char'.
31311 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
31312 Set wrong_kboard_jmpbuf correctly in recursive calls.
31313 Use current_kboard to access Vkeyboard_translate_table.
31314 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
31315 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
31316 Update longjmp invocations. Remember the original current_kboard,
31317 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
31318 changes it. Comment out unnecessary calls to
31319 `record_single_kboard_state' and `any_kboard_state'.
31320 Update recursive calls.
31321 (wrong_kboard_jmpbuf): Remove global variable.
31322 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
31323 Handle deleted interrupted_kboards correctly; that is a legal
31324 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
31325 and read_char calls. Abort if interrupted_kboard died in read_char.
31326 (any_kboard_state, single_kboard_state)
31327 (push_frame_kboard): Remove function.
31328 (pop_kboard): Switch out of single_kboard mode if the kboard has
31329 been deleted. Remove unused variable. Help debugging by not
31330 changing current_kboard unnecessarily. Set current_kboard to the
31331 kboard of the selected frame when the stored kboard object has
31332 been deleted before pop_kboard.
31333 (temporarily_switch_to_single_kboard): Change first parameter to a
31334 frame pointer. Throw an error when caller wants to change kboards
31335 while in single_kboard mode. Don't push_kboard if we weren't in
31336 single kboard state. Don't pop_kboard if we popped into any
31337 kboard state.
31338 (restore_kboard_configuration): Abort if pop_kboard changed the
31339 kboard in single_kboard mode. Call pop_kboard only after setting
31340 up single_kboard mode.
31341 (Frecursive_edit): Switch to single_kboard mode only in nested
31342 command loops.
31343 (cmd_error, command_loop, command_loop_1, timer_check):
31344 Comment out unnecessary call to `any_kboard_state' and
31345 `record_single_kboard_state'.
31346 (delete_kboard): Exit single_kboard mode if we have just deleted
31347 that kboard. Use FRAME_KBOARD.
31348 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
31349 `fatal_error_signal'.
31350 (record_single_kboard_state): Don't push_kboard if we weren't in
31351 single kboard state. Don't pop_kboard if we popped into any
31352 kboard state.
31353 (push_frame_kboard): Rename to push_kboard.
31354 (kbd_buffer_get_event): Use FRAME_TERMINAL.
31355 (read_avail_input): Read input from all terminals.
31356 (mark_kboards): Also mark Vkeyboard_translate_table.
31357 (kbd_buffer_store_event_hold): Simplify condition.
31358 (read_key_sequence): Reinitialize fkey and keytran at each replay.
31359 (Vkeyboard_translate_table): Move to struct kboard.
31360 (init_kboard): Initialize Vkeyboard_translate_table.
31361 (syms_of_keyboard): Use DEFVAR_KBOARD to define
31362 Vkeyboard_translate_table. Update doc strings. Update docs of
31363 local-function-key-map and function-key-map.
31364
31365 * terminal.c: New file.
31366
31367 * term.c: Include errno.h.
31368 (Vring_bell_function, device_list, initial_device)
31369 (next_device_id, ring_bell, update_begin, update_end)
31370 (set_terminal_window, cursor_to, raw_cursor_to)
31371 (clear_to_end, clear_frame, clear_end_of_line)
31372 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
31373 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
31374 (syms_of_term): Move their initialization to terminal.c.
31375 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
31376 (Ftty_display_color_cells)
31377 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
31378 (clear_tty_hooks, set_tty_hooks)
31379 (init_tty, maybe_fatal): New functions.
31380 (Ftty_type): Return nil if terminal is not on a tty instead of
31381 throwing an error. Doc update.
31382 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
31383 Doc update. Initialize new subrs and variables.
31384 (delete_tty): Use terminal->deleted.
31385 (tty_set_terminal_modes): Rename from set_terminal_modes.
31386 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
31387 (set_scroll_region): Rename to `tty_set_scroll_region'.
31388 (turn_on_insert): Rename to `tty_turn_on_insert'.
31389 (turn_off_insert): Rename to `tty_turn_off_insert'.
31390 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
31391 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
31392 (toggle_highligh): Rename to `tty_toggle_highlight'.
31393 (background_highlight): Rename to `tty_background_highlight'.
31394 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
31395 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
31396 (tty_set_scroll_region, tty_background_highlight)
31397 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
31398 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
31399 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
31400 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
31401 Add static modifier.
31402 (tty_reset_terminal_modes, tty_set_terminal_window)
31403 (tty_set_scroll_region, tty_background_highlight)
31404 (tty_highlight_if_desired, tty_cursor_to)
31405 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
31406 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
31407 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
31408 renames.
31409
314102007-08-28 Jan Djärv <jan.h.d@swipnet.se>
31411
31412 * keyboard.c: Qrtl is new.
31413 (parse_tool_bar_item): Handle :rtl keyword.
31414 (syms_of_keyboard): Intern :rtl keyword.
31415
31416 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
31417
31418 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
31419 so no Lisp code is executed.
31420 (file_for_image, find_rtl_image): New functions.
31421 (xg_get_image_for_pixmap): Use file_for_image.
31422 (update_frame_tool_bar): If direction is RTL, use RTL image if
31423 defined. Use Gtk stock images if defined.
31424
314252007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31426
31427 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
31428 for nonexistent or zero-width glyph in composition glyph.
31429
314302007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
31431
31432 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
31433
31434 * xdisp.c (Finvisible_p): New function.
31435 (syms_of_xdisp): defsubr it.
31436
314372007-08-24 Juanma Barranquero <lekktu@gmail.com>
31438
31439 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
31440 Doc fixes.
31441
314422007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31443
31444 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
31445
314462007-08-24 Martin Rudalics <rudalics@gmx.at>
31447
31448 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
31449 whether decoding has modified buffer contents.
31450
314512007-08-24 Jason Rumney <jasonr@gnu.org>
31452
31453 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
31454 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
31455 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
31456 (init_svg_functions) [HAVE_NTGUI]: New function.
31457 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
31458 (svg_load_image): Use them.
31459 (svg_load_image) [HAVE_NTGUI]: Implement background.
31460
314612007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31462
31463 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
31464 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
31465 (LIBX): Remove @RSVG_LIBS@.
31466 (LIBES): Add $(RSVG_LIBS).
31467
31468 * image.c (svg_load_image): Blend with specified background if exists.
31469 Use IMAGE_BACKGROUND. Add Mac OS Support.
31470
31471 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
31472 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
31473 Remove macros.
31474 [MAC_OSX] (socket_callback): Do nothing.
31475 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
31476 ReceiveNextEvent.
31477 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
31478 socket_callback.
31479 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
31480
314812007-08-22 Glenn Morris <rgm@gnu.org>
31482
31483 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
31484
314852007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
31486
31487 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
31488
31489 * image.c: Add support for SVG images. Some additional comments
31490 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
31491 (svg_image_p): New function to test for SVG image.
31492 (svg_load): New function to load SVG image.
31493 (svg_load_image): New function, helper for svg_load.
31494 (Qsvg): New Lisp_object.
31495 (svg_keyword_index): New enum.
31496 (svg_format): New static `image_keyword' struct.
31497 (svg_type): New static `image_type' struct.
31498 (librsvg/rsvg.h): Include it.
31499
315002007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
31501
31502 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
31503
315042007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
31505
31506 * lread.c (Qold_style_backquotes): New var.
31507 (syms_of_lread): Init and staticpro it.
31508 (load_warn_old_style_backquotes): New fun.
31509 (Fload): Use them to warn about old style backquotes.
31510 (end_of_file_error, Fload): Remove unused vars.
31511
31512 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
31513
31514 * lread.c (Vold_style_backquotes): New var.
31515 (syms_of_lread): Init and export it to Elisp.
31516 (read1): Set it when we find an old-style (back)quote.
31517
315182007-08-22 Jason Rumney <jasonr@gnu.org>
31519
31520 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
31521
315222007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
31523
31524 * puresize.h (BASE_PURESIZE): Increase to 1140000.
31525
315262007-08-19 Richard Stallman <rms@gnu.org>
31527
31528 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
31529
315302007-08-19 Andreas Schwab <schwab@suse.de>
31531
31532 * alloc.c (pure): Round PURESIZE up.
31533
315342007-08-17 Jan Djärv <jan.h.d@swipnet.se>
31535
31536 * xterm.c (handle_one_xevent): Remove check that mouse click is in
31537 active frame.
31538
315392007-08-16 Richard Stallman <rms@gnu.org>
31540
31541 * eval.c (Fcommandp): Add parens to clarify.
31542
31543 * minibuf.c (Fall_completions): Use enum for type of table.
31544
31545 * emacs.c (USAGE2): Improve text.
31546
315472007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
31548
31549 * term.c (tty_default_color_capabilities): Declare static
31550 variables in file scope, to avoid HPUX compiler problem.
31551
315522007-08-13 Jan Djärv <jan.h.d@swipnet.se>
31553
31554 * gtkutil.c (update_frame_tool_bar): Use -1 as index
31555 to gtk_toolbar_insert.
31556
315572007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
31558
31559 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
31560
31561 * insdel.c (reset_var_on_error): New fun.
31562 (signal_before_change, signal_after_change):
31563 Use it to reset (after|before)-change-functions to nil in case of error.
31564 Bind inhibit-modification-hooks to t.
31565 Don't bind (after|before)-change-functions to nil while they run.
31566
315672007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31568
31569 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
31570 filling pixmap with stippled background.
31571
315722007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31573
31574 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
31575 Don't use invisible frame as parent window for repositioning.
31576
315772007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
31578
31579 * print.c (new_backquote_output): Rename from old_backquote_output.
31580 (print): Inverse its logic (according to its name) so as to match the
31581 behavior of new_backquote_flag in lread.c.
31582
315832007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31584
31585 * gmalloc.c (posix_memalign): New function.
31586
31587 * macterm.c (frame_highlight, frame_unhighlight): Don't call
31588 ActivateControl/DeactivateControl here.
31589 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
31590 frame-notice-user-settings is non-nil.
31591 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
31592 for kEventParamFMFontStyle.
31593 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
31594 mac_pass_command_to_system and mac_pass_control_to_system here.
31595 (XTread_socket): Call ActivateControl/DeactivateControl here.
31596 (XTread_socket) [TARGET_API_MAC_CARBON]:
31597 Check mac_pass_command_to_system and mac_pass_control_to_system here.
31598 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31599 for window repositioning.
31600
316012007-08-08 Glenn Morris <rgm@gnu.org>
31602
31603 * Replace `iff' in doc-strings and comments.
31604
316052007-08-07 Chong Yidong <cyd@stupidchicken.com>
31606
31607 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31608
316092007-08-07 Martin Rudalics <rudalics@gmx.at>
31610
31611 * fileio.c (Finsert_file_contents): Run format-decode and
31612 after_insert_file_functions on entire buffer when REPLACE is
31613 non-nil and inhibit modification_hooks and point_motion_hooks.
31614 For consistency, run after_insert_file_functions iff something
31615 got inserted. Move signal_after_change and update_compositions
31616 after code running after_insert_file_functions. Make sure that
31617 undo_list doesn't record intermediate steps of the decoding process.
31618
316192007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31620
31621 * emacs.c (main)
31622 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31623 Call malloc_enable_thread on interactive startup.
31624
31625 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31626 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31627 [USE_PTHREAD]: Conditionalize with it.
31628 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31629 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31630 New functions.
31631
316322007-08-06 Chong Yidong <cyd@stupidchicken.com>
31633
31634 * xdisp.c (redisplay_window): When restoring original buffer
31635 position, make sure it is still valid.
31636
31637 * image.c (png_load): Ignore png-supplied background color.
31638
316392007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31640
31641 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31642 Use kCFAbsoluteTimeIntervalSince1970.
31643
31644 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31645 New variable.
31646 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31647 event loop should be quit.
31648 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31649 Quit dialog event loop if quit_dialog_event_loop is set.
31650
31651 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31652 (Selection): New typedef. Use instead of ScrapRef.
31653 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31654 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31655 (mac_clear_selection): Rename from clear_scrap.
31656 (get_flavor_type_from_symbol): New argument SEL and subsume function of
31657 scrap_has_target_type. All uses changed.
31658 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31659 (mac_selection_has_target_p): New functions.
31660 (mac_put_selection_value): Rename from put_scrap_string.
31661 (mac_get_selection_value): Rename from get_scrap_string.
31662 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31663 (put_scrap_private_timestamp, scrap_has_target_type)
31664 (get_scrap_private_timestamp): Remove functions.
31665 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31666 (x_own_selection, x_get_local_selection):
31667 Use mac_valid_selection_value_p.
31668 (x_own_selection): Don't use put_scrap_private_timestamp.
31669 Record OWNERSHIP-INFO into Vselection_alist instead.
31670 (x_get_local_selection): Don't check type if request is local.
31671 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31672 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31673
316742007-08-04 Jan Djärv <jan.h.d@swipnet.se>
31675
31676 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31677 add comment explaining why.
31678
316792007-08-03 Richard Stallman <rms@gnu.org>
31680
31681 * fileio.c (Fvisited_file_modtime): Use make_time.
31682
316832007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
31684
31685 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31686 build.
31687
316882007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
31689
31690 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31691
316922007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
31693
31694 * puresize.h (BASE_PURESIZE): Increase to 1130000.
31695
316962007-07-30 Richard Stallman <rms@gnu.org>
31697
31698 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31699
317002007-07-29 Jan Djärv <jan.h.d@swipnet.se>
31701
31702 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
31703
317042007-07-28 Nick Roberts <nickrob@snap.net.nz>
31705
31706 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
31707 remote default-directory.
31708
31709 * buffer.c (mode-line-format): Update doc string.
31710
317112007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31712
31713 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
31714 scroll bar gap.
31715 (x_scroll_bar_create): Set bar->fringe_extended_p.
31716 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
31717 on frame edge. Check fringe background extension. Don't clear
31718 extended fringe background area.
31719
31720 * w32term.h (struct scroll_bar): New member fringe_extended_p.
31721 (w32_fill_area): Enclose multiple statements with do ... while (0).
31722
31723 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31724 Extend fringe background to scroll bar gap.
31725 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31726 Set bar->fringe_extended_p.
31727 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31728 Put leftmost/rightmost scroll bars on frame edge. Check fringe
31729 background extension. Don't clear extended fringe background area.
31730
31731 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31732 New member fringe_extended_p.
31733
317342007-07-25 Glenn Morris <rgm@gnu.org>
31735
31736 * Relicense all FSF files to GPLv3 or later.
31737
31738 * COPYING: Switch to GPLv3.
31739
317402007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
31741
31742 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
31743
31744 * data.c (Finteractive_form): Check for the presence of an
31745 `interactive-form' symbol property more thoroughly.
31746
31747 * data.c (Finteractive_form): Use an `interactive-form' property if
31748 present, analogous to the function-documentation property.
31749
317502007-07-24 Jason Rumney <jasonr@gnu.org>
31751
31752 * w32fns.c (x_real_positions): Get real position from OS instead of
31753 calculating it.
31754
317552007-07-23 Jason Rumney <jasonr@gnu.org>
31756
31757 * filelock.c (current_lock_owner): Allow for @ sign in username.
31758
317592007-07-22 Nick Roberts <nickrob@snap.net.nz>
31760
31761 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
31762 remote default-directory.
31763
31764 * buffer.c (mode-line-format): Describe above case in doc string.
31765
317662007-07-20 Eli Zaretskii <eliz@gnu.org>
31767
31768 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
31769 Define if not defined.
31770
317712007-07-18 Jason Rumney <jasonr@gnu.org>
31772
31773 * w32proc.c (w32_executable_type): Handle 64 bit executables.
31774
317752007-07-18 Richard Stallman <rms@gnu.org>
31776
31777 * data.c (Fsetq_default): Doc fix.
31778
31779 * eval.c (Fsetq): Doc fix.
31780
317812007-07-18 Juanma Barranquero <lekktu@gmail.com>
31782
31783 * coding.c (Ffind_operation_coding_system):
31784 * eval.c (For, Fand): Doc fixes.
31785 Reported by Johan Bockgård.
31786
317872007-07-18 Jan Djärv <jan.h.d@swipnet.se>
31788
31789 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
31790
31791 * xterm.h: Declare x_ewmh_activate_frame.
31792
31793 * xterm.c (x_ewmh_activate_frame): New function.
31794 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
31795
317962007-07-17 Martin Rudalics <rudalics@gmx.at>
31797
31798 * window.c (Fdisplay_buffer): If largest or LRU window is the
31799 only window, split it even if it is not eligible for splitting.
31800 This restores the original behavior broken by the 2007-07-15
31801 change.
31802
318032007-07-17 Glenn Morris <rgm@gnu.org>
31804
31805 * abbrev.c (abbrev_check_chars): New function.
31806 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
31807 Call abbrev_check_chars to check abbrev characters are word
31808 constituents. Doc fix.
31809
318102007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
31811
31812 * process.c (Fstart_process, Fmake_network_process)
31813 (read_process_output): Fix up last changes.
31814
318152007-07-16 Eli Zaretskii <eliz@gnu.org>
31816
31817 * makefile.w32-in (clean): Don't delete *~.
31818
318192007-07-16 Andreas Schwab <schwab@suse.de>
31820
31821 * window.c (Fdisplay_buffer): Use NILP.
31822 (Fset_window_scroll_bars): Likewise.
31823
318242007-07-15 Martin Rudalics <rudalics@gmx.at>
31825
31826 * window.c (window_min_size_2): New function.
31827 (window_min_size_1, size_window, Fdisplay_buffer)
31828 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
31829 windows without mode- or header-lines when window-min-height is
31830 too small.
31831 (size_window): Reset nodelete_p after testing it, following an
31832 earlier note by Kim F. Storm.
31833 (display_buffer): Do not set split_height_threshold to twice the
31834 value of window_min_height to avoid changing the value of a
31835 customizable variable. Rather explicitly check whether the
31836 height of the window that shall be splitted is at least as large
31837 as split_height_threshold.
31838 (Fwindow_full_width_p): New defun.
31839 (syms_of_window): Defsubr it.
31840
31841 * window.h: Add EXFUN for Fwindow_full_width_p.
31842
318432007-07-14 Jason Rumney <jasonr@gnu.org>
31844
31845 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
31846
318472007-07-14 Richard Stallman <rms@gnu.org>
31848
31849 * eval.c (maybe_call_debugger): New function.
31850 (find_handler_clause): Use maybe_call_debugger.
31851 Call it when the handler says `debug'.
31852 Eliminate DEBUGGER_VALUE_PTR.
31853 (Fsignal): Eliminate debugger_value.
31854 (Qdebug): New variable.
31855 (syms_of_eval): Initialize it.
31856
318572007-07-14 Juanma Barranquero <lekktu@gmail.com>
31858
31859 * eval.c (Fprogn):
31860 * keyboard.c (Ftrack_mouse):
31861 * print.c (Fwith_output_to_temp_buffer):
31862 * window.c (Fsave_window_excursion): Doc fix.
31863
318642007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
31865
31866 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
31867
318682007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
31869
31870 * process.h (struct Lisp_Process): Turn slots infd, outfd,
31871 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
31872 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
31873 read_output_delay, and read_output_skip from Lisp_Objects to ints.
31874 Remove unused encoding_carryover.
31875 * process.c: Adjust all functions accordingly.
31876
318772007-07-12 Richard Stallman <rms@gnu.org>
31878
31879 * term.c: Include unistd.h only if HAVE_UNISTD_H.
31880
318812007-07-11 Jason Rumney <jasonr@gnu.org>
31882
31883 * makefile.w32-in (LIBS): Include OLE32.
31884
31885 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
31886 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
31887
318882007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
31889
31890 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
31891 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
31892 from a Lisp_Object into a bare pointer.
31893 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
31894 Adjust the code correspondingly.
31895
31896 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
31897
31898 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
31899 (term_show_mouse_face): Remove unused var `j'.
31900 (handle_one_term_event): Remove unused vars `i' and `j'.
31901 Don't cast return value of ttyname since it's not necessary.
31902
319032007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
31904
31905 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
31906 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
31907
31908 * fns.c (map_char_table): Use an array of int for `indices' rather than
31909 an array of Lisp_Objects (which are only ever integers anyway).
31910 (Fmap_char_table): Update caller.
31911 * lisp.h: Update prototype.
31912 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
31913 * fontset.c (Ffontset_info):
31914 * casetab.c (set_case_table): Update callers.
31915
31916 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
31917
31918 * keymap.c (struct accessible_keymaps_data)
31919 (struct where_is_internal_data): New structures.
31920 (accessible_keymaps_1, where_is_internal_1): Use them to change
31921 interface to adhere to the one used by map_keymap.
31922 (Faccessible_keymaps, where_is_internal): Use map_keymap.
31923 (accessible_keymaps_char_table, where_is_internal_2): Remove.
31924
31925 * keymap.h (map_keymap_function_t): More informative prototype.
31926
319272007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
31928
31929 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
31930 (looking_at_1): Don't change search_regs and last_thing_searched
31931 if `inhibit-changing-match-data' is non-nil.
31932 (string_match_1, search_buffer, set_search_regs): Likewise.
31933 (syms_of_search): Add Lisp level definition for
31934 `inhibit-changing-match-data' and set it to nil.
31935 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
31936 start and end of the match, instead of using values in search_regs.
31937
319382007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
31939
31940 * minibuf.c (Fcompleting_read): New value `confirm-only'
31941 for `require-match'.
31942
319432007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
31944
31945 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
31946 part of the 2007-06-27 change to syms_of_fileio.
31947
319482007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31949
31950 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
31951 Check WINDOWP before using XWINDOW. Consolidate return statements.
31952
319532007-06-27 Richard Stallman <rms@gnu.org>
31954
31955 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
31956
319572007-06-27 Juanma Barranquero <lekktu@gmail.com>
31958
31959 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
31960
319612007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31962
31963 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
31964 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
31965 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
31966 (_free_internal, memalign): Use them.
31967 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
31968 Initialize to PTHREAD_MUTEX_INITIALIZER.
31969 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
31970 (morecore_nolock): Rename from morecore. All uses changed.
31971 Use only nolock versions of internal allocation functions.
31972 (_malloc_internal_nolock, _realloc_internal_nolock)
31973 (_free_internal_nolock): New functions created from
31974 _malloc_internal, _realloc_internal, and _free_internal.
31975 (_malloc_internal, _realloc_internal, _free_internal): Use them.
31976 Copy hook value to automatic variable before its use.
31977 (memalign): Copy hook value to automatic variable before its use.
31978
319792007-06-26 Kenichi Handa <handa@m17n.org>
31980
31981 * coding.c (Ffind_operation_coding_system): Docstring improved.
31982 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
31983
319842007-06-25 David Kastrup <dak@gnu.org>
31985
31986 * keymap.c (Fcurrent_active_maps): Add `position' argument.
31987 (Fwhere_is_internal): Adjust call to `current-active-maps' to
31988 cater for additional parameter.
31989
31990 * keymap.h: Adjust number of parameters to `current-active-maps'.
31991
31992 * doc.c (Fsubstitute_command_keys): Adjust call of
31993 `current-active-maps'.
31994
319952007-06-25 David Kastrup <dak@gnu.org>
31996
31997 * callint.c (Fcall_interactively): Make the parsing of interactive
31998 specs somewhat more readable.
31999
320002007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32001
32002 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
32003 to scroll bar gap also when bitmap fills fringe. Draw only foreground
32004 if extended background has already been filled.
32005
320062007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32007
32008 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
32009 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
32010
32011 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
32012 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
32013 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
32014 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
32015 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
32016 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
32017 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
32018 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
32019 Run timers during dialog popup.
32020 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
32021
320222007-06-21 Jason Rumney <jasonr@gnu.org>
32023
32024 * image.c (convert_mono_to_color_image): Swap fore and background.
32025
320262007-06-20 Jason Rumney <jasonr@gnu.org>
32027
32028 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
32029 (w32_free_bdf_font): Unmap memory not handle.
32030
320312007-06-20 Sam Steingold <sds@gnu.org>
32032
32033 * gmalloc.c (__morecore): Fix the declaration to comply with the
32034 definition.
32035
320362007-06-20 Juanma Barranquero <lekktu@gmail.com>
32037
32038 * w32term.c (w32_delete_display): Remove leftover declaration.
32039 (w32_define_cursor, w32_initialize): Make static.
32040
32041 * w32.c (_wsa_errlist): Fix typo in error message.
32042 (init_environment): Ignore any environment variable from the
32043 registry having a null value.
32044
320452007-06-20 Glenn Morris <rgm@gnu.org>
32046
32047 * Makefile.in (LIBGIF): Default to -lgif.
32048
320492007-06-17 Jason Rumney <jasonr@gnu.org>
32050
32051 * w32menu.c (add_menu_item): Don't use multibyte string functions on
32052 unicode strings.
32053
320542007-06-16 Juanma Barranquero <lekktu@gmail.com>
32055
32056 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
32057 Fix typo in docstring.
32058
320592007-06-16 Eli Zaretskii <eliz@gnu.org>
32060
32061 * w32menu.c (add_menu_item): Escape `&' characters in menu items
32062 and their keybindings.
32063
320642007-06-15 Chong Yidong <cyd@stupidchicken.com>
32065
32066 * composite.c (update_compositions): Fix last fix.
32067
320682007-06-14 Jason Rumney <jasonr@gnu.org>
32069
32070 * w32.c (get_process_times_fn): New function pointer.
32071 (globals_of_w32): Intialize it if present in kernel32.dll.
32072 (w32_get_internal_run_time): New function.
32073
32074 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
32075
320762007-06-14 Kenichi Handa <handa@etlken.m17n.org>
32077
32078 * composite.c (update_compositions): Check the validness of
32079 compositions.
32080
320812007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32082
32083 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
32084 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
32085
32086 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
32087 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
32088
32089 * macgui.h (USE_MAC_TOOLBAR): New define.
32090
32091 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32092 Return immediately unless popup is activated.
32093
32094 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
32095 background to scroll bar gap.
32096 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
32097 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
32098 scroll bars on frame edge. Check fringe background extension.
32099 Don't clear extended fringe background area.
32100 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
32101 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
32102 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
32103 [USE_MAC_TOOLBAR]: New macros.
32104 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
32105 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
32106 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
32107 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
32108 [USE_MAC_TOOLBAR]: New functions.
32109 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
32110 manually if previous repositioning has failed.
32111 (mac_handle_keyboard_event): Use precomputed event kind.
32112 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
32113 as tool bar item click. Handle mouse movement over tool bar items.
32114
32115 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
32116 toolbar_win_gravity.
32117 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
32118 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
32119 Add externs.
32120
32121 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
32122 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
32123
321242007-06-14 Chong Yidong <cyd@stupidchicken.com>
32125
32126 * image.c (search_image_cache): Remove unused variable.
32127
321282007-06-13 Chong Yidong <cyd@stupidchicken.com>
32129
32130 * xfns.c, xmenu.c: Link to xaw3d if available.
32131
321322007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32133
32134 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
32135 frame_foreground and frame_background.
32136
32137 * image.c (lookup_image): Save frame foreground and background colors.
32138 (search_image_cache): Check if saved and current frame colors match.
32139
321402007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
32141
32142 * regex.c (regex_compile): Remove the `regnum' counter.
32143 Use bufp->re_nsub instead. Add support for \(?N:RE\).
32144
321452007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
32146
32147 * term.c: Include intervals.h to declare Fget_text_property.
32148
321492007-06-10 Jason Rumney <jasonr@gnu.org>
32150
32151 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
32152
321532007-06-08 Juanma Barranquero <lekktu@gmail.com>
32154
32155 * callint.c (Fcall_interactively):
32156 * editfns.c (Fdelete_and_extract_region):
32157 * fileio.c (Fread_file_name):
32158 * fns.c (Fmapconcat):
32159 * keyboard.c (cmd_error_internal):
32160 * keymap.c (Fkey_description):
32161 * lread.c (openp):
32162 * minibuf.c (read_minibuf):
32163 * search.c (wordify):
32164 * sunfns.c (sel_read):
32165 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
32166 * xfns.c (x_default_scroll_bar_color_parameter):
32167 * xmenu.c (menu_help_callback):
32168 * xselect.c (Fx_get_atom_name):
32169 * xterm.c (x_term_init): Use empty_unibyte_string.
32170
321712007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
32172
32173 * alloc.c (init_strings): Initialize canonical empty strings.
32174 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
32175 canonical empty string when the requested size is 0.
32176
32177 * emacs.c (empty_unibyte_string): Rename from empty_string.
32178 (empty_multibyte_string): New canonical empty string.
32179 (syms_of_emacs): Don't initialize empty_string.
32180
32181 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
32182 string, if appropriate.
32183 (empty_unibyte_string, empty_multibyte_string): New externs.
32184 (empty_string): Remove extern.
32185
32186 * lread.c (syms_of_lread): Use empty_unibyte_string.
32187
321882007-06-07 Jason Rumney <jasonr@gnu.org>
32189
32190 * s/ms-w32.h: Don't define HAVE_TZNAME.
32191
32192 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
32193
321942007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32195
32196 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
32197
32198 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
32199 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
32200
32201 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32202 Don't call next handler.
32203 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
32204 Remove argument. Install handler to application.
32205 (set_frame_menubar): Don't change deep_p.
32206 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
32207 FRAME_OUTER_TO_INNER_DIFF_Y.
32208 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
32209 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
32210 [HAVE_DIALOGS]: New macros.
32211 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
32212 Use them.
32213 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
32214
32215 * macselect.c [MAC_OSX] (install_service_handler): Rename from
32216 init_service_handler. All callers changed. Return OSStatus value.
32217
32218 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
32219 All callers changed so as not to call SetPortWindowPort.
32220 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
32221 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
32222 mac_draw_string_common.
32223 (mac_draw_image_string_qd): Likewise.
32224 (mac_draw_string_common): Use them. Add INLINE.
32225 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
32226 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
32227 GetGlobalMouse.
32228 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
32229 and FRAME_OUTER_TO_INNER_DIFF_Y.
32230 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
32231 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
32232 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
32233 repositioning window to mac_handle_window_event.
32234 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
32235 saving window location to mac_handle_window_event
32236 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
32237 (install_menu_target_item_handler): Remove argument in extern.
32238 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
32239 Also accept command events.
32240 (do_keystroke): New function created from XTread_socket.
32241 (init_command_handler): Remove functions.
32242 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
32243 and save window location by kEventWindowShowing and kEventWindowHiding
32244 handlers here. Don't call next handler for window state change and
32245 focus events.
32246 (mac_handle_application_event, mac_handle_keyboard_event)
32247 [TARGET_API_MAC_CARBON]: New functions.
32248 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
32249 kEventWindowShowing and kEventWindowHiding events. Move installation
32250 of mouse, font, text input and menu target item handlers to
32251 install_application_handler.
32252 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
32253 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32254 New function.
32255 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32256 Register it.
32257 (XTread_socket) [TARGET_API_MAC_CARBON]:
32258 Consolidate SendEventToEventTarget calls.
32259 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
32260 Move application activation handler to mac_handle_application_event.
32261 Move keyboard handler to mac_handle_keyboard_event.
32262 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
32263 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
32264 init_command_handler. Call install_application_handler.
32265
32266 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
32267 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
32268
322692007-06-07 Glenn Morris <rgm@gnu.org>
32270
32271 * emacs.c (main): Use `emacs-copyright' in --version output.
32272
322732007-06-06 Chong Yidong <cyd@stupidchicken.com>
32274
32275 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
32276
322772007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32278
32279 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
32280
32281 * macgui.h: Replace WindowPtr with WindowRef.
32282
32283 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32284 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32285 Replace ControlHandle with ControlRef.
32286 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
32287
32288 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32289 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32290 Replace ControlHandle with ControlRef.
32291 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
32292 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
32293
32294 * macterm.h (struct scroll_bar): Rename member control_handle_low
32295 and control_handle_high to control_ref_low and control_ref_high.
32296 All uses changed.
32297 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
32298 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
32299 respectively. All uses changed.
32300 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
32301 (install_window_handler, remove_window_handler): Replace WindowPtr
32302 with WindowRef in externs.
32303
323042007-06-05 Juanma Barranquero <lekktu@gmail.com>
32305
32306 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
32307
323082007-06-03 Nick Roberts <nickrob@snap.net.nz>
32309
32310 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
32311
32312 * frame.c (Fmouse_position, Fmouse_pixel_position):
32313 Condition on HAVE_GPM too.
32314
32315 * term.c (term_mouse_highlight): Remove unused variables.
32316 (Fterm_open_connection): Set gpm_zerobased to 1.
32317 (term_mouse_movement, term_mouse_click, handle_one_term_event):
32318 Use zero based co-ordinates.
32319 (handle_one_term_event): Report a drag as mouse movement too.
32320
32321 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
32322
323232007-06-03 Chong Yidong <cyd@stupidchicken.com>
32324
32325 * image.c (search_image_cache): New function. Require background
32326 color match if background color is unspecified in the image spec.
32327 (uncache_image, lookup_image): Use it.
32328
323292007-06-01 Juanma Barranquero <lekktu@gmail.com>
32330
32331 * window.c (Fshrink_window): Reflow docstring.
32332
323332007-06-02 Chong Yidong <cyd@stupidchicken.com>
32334
32335 * Version 22.1 released.
32336
323372007-06-01 Richard Stallman <rms@gnu.org>
32338
32339 * xfns.c (x_encode_text): Add GCPRO.
32340
323412007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32342
32343 * xfns.c (x_set_name_internal): Save encoded name before
32344 x_encode_text in case string data is relocated.
32345
323462007-05-31 Richard Stallman <rms@gnu.org>
32347
32348 * buffer.c (syms_of_buffer): Doc fix.
32349
323502007-05-30 Nick Roberts <nickrob@snap.net.nz>
32351
32352 * sysdep.c (init_sys_modes): Add rather than replace with
32353 O_NONBLOCK.
32354
32355 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
32356 term_mouse_moveto.
32357
32358 * termhooks.h (term_mouse_moveto): New extern.
32359
32360 * term.c (mouse_face_window): Rename...
32361 (Qmouse_face_window): ...to this.
32362 (term_show_mouse_face, term_clear_mouse_face)
32363 (term_mouse_highlight): Use Qmouse_face_window.
32364 (term_mouse_moveto): New function.
32365 (term_mouse_position): Make it work.
32366 (syms_of_term): Uncomment assignment to mouse_position_hook.
32367 Staticpro Qmouse_face_window.
32368
323692007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32370
32371 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
32372 around current_column call.
32373
323742007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
32375
32376 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
32377 * xdisp.c (next_element_from_buffer):
32378 * window.c (delete_window):
32379 * term.c (term_mouse_highlight):
32380 * msdos.c (getdefdir):
32381 * macterm.c (mac_create_bitmap_from_bitmap_data)
32382 (init_font_name_table):
32383 * fns.c (Fsxhash):
32384 * data.c (Fmake_local_variable):
32385 * ccl.c (ccl_driver): Likewise.
32386
323872007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32388
32389 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
32390 Call mac_wakeup_from_rne on window size change.
32391
323922007-05-25 Chong Yidong <cyd@stupidchicken.com>
32393
32394 * image.c (uncache_image): Fix typo.
32395
323962007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
32397
32398 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
32399
324002007-05-22 Richard Stallman <rms@gnu.org>
32401
32402 * xterm.c (x_connection_closed): Remove NO_RETURN.
32403
324042007-05-22 Martin Rudalics <rudalics@gmx.at>
32405
32406 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
32407
324082007-05-21 Chong Yidong <cyd@stupidchicken.com>
32409
32410 * image.c (uncache_image): New function.
32411 (Fimage_refresh): New function.
32412
324132007-05-20 Jan Djärv <jan.h.d@swipnet.se>
32414
32415 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
32416
324172007-05-20 Nick Roberts <nickrob@snap.net.nz>
32418
32419 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
32420 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
32421
324222007-05-20 Nick Roberts <nickrob@snap.net.nz>
32423
32424 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
32425 conditional on [HAVE_GPM_H].
32426
324272007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
32428
32429 * syntax.c (skip_chars): Update syntax-table only after we checked that
32430 the new location is valid.
32431
324322007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32433
32434 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
32435 mac_get_window_bounds.
32436
324372007-05-20 Nick Roberts <nickrob@snap.net.nz>
32438
32439 * Makefile.in (LIBGPM): Allow it to be set from configure.
32440 If set then link Emacs with it.
32441
32442 * config.in: Regenerate.
32443
32444 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
32445 New externs.
32446
32447 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
32448 Include gpm.h.
32449 (handle_one_term_event, term_gpm): New externs.
32450
32451 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
32452 and allow it to be interrupted by SIGIO.
32453
32454 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
32455 (wait_reading_process_output): Wait on gpm_fd too.
32456 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
32457 (add_gpm_wait_descriptor_called_flag): New variable.
32458 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
32459
32460 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
32461 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
32462 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
32463 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
32464 (make_lispy_event): Add case GPM_CLICK_EVENT.
32465 (read_avail_input): Handle mouse input.
32466
32467 * term.c (write_glyphs_with_face): New function.
32468 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
32469 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
32470 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
32471 (mouse_face_face_id, term_gpm, pos_x, pos_y)
32472 (last_mouse_x, last_mouse_y): New variables.
32473 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
32474 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
32475 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
32476 (Fterm_close_connection): New functions.
32477 (term_init): Initialise mouse_face_window.
32478
324792007-05-19 Chong Yidong <cyd@stupidchicken.com>
32480
32481 * xdisp.c (redisplay_window): If first window line is a
32482 continuation line, recompute the new window start instead of
32483 recentering.
32484
324852007-05-18 Glenn Morris <rgm@gnu.org>
32486
32487 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
32488 Suggested by Alfred M. Szmidt <ams@gnu.org>.
32489
324902007-05-17 Glenn Morris <rgm@gnu.org>
32491
32492 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
32493
324942007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32495
32496 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
32497 dead key repeat and up events.
32498
324992007-05-14 Chong Yidong <cyd@stupidchicken.com>
32500
32501 * image.c (pbm_load): Check image size for monochrome pbm.
32502
325032007-05-13 Chong Yidong <cyd@stupidchicken.com>
32504
32505 * xterm.c (XTread_socket): Revert last change.
32506
325072007-05-12 Chong Yidong <cyd@stupidchicken.com>
32508
32509 * image.c (pbm_load): Correctly check image size for greyscale pbm.
32510
32511 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
32512
325132007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32514
32515 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
32516 mixup (YAILOM).
32517
325182007-05-07 Andreas Schwab <schwab@suse.de>
32519
32520 * keymap.c (Flookup_key): Fix typo in last change.
32521
325222007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32523
32524 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
32525 mapping for unibyte strings.
32526
325272007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32528
32529 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
32530 (Fx_popup_dialog) [MAC_OSX]: Likewise.
32531
325322007-04-29 Richard Stallman <rms@gnu.org>
32533
32534 * insdel.c (replace_range): For undo, record insertion first.
32535
325362007-04-29 Andreas Schwab <schwab@suse.de>
32537
32538 * lisp.h (VECSIZE): Use OFFSETOF.
32539
325402007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32541
32542 * xdisp.c (try_window_reusing_current_matrix): Fix number of
32543 disabled lines.
32544
325452007-04-28 Richard Stallman <rms@gnu.org>
32546
32547 * lread.c (read_escape): In a string, \s is always space.
32548
325492007-04-27 Jan Djärv <jan.h.d@swipnet.se>
32550
32551 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
32552
32553 * gtkutil.c (xg_update_menubar, create_menus): Create empty
32554 submenu for menu bar items.
32555
32556See ChangeLog.10 for earlier changes.
32557
32558;; Local Variables:
32559;; coding: utf-8
aac0c6e3
MR
32560;; End:
32561
73b0cd50 32562 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
32563
32564 This file is part of GNU Emacs.
32565
32566 GNU Emacs is free software: you can redistribute it and/or modify
32567 it under the terms of the GNU General Public License as published by
32568 the Free Software Foundation, either version 3 of the License, or
32569 (at your option) any later version.
32570
32571 GNU Emacs is distributed in the hope that it will be useful,
32572 but WITHOUT ANY WARRANTY; without even the implied warranty of
32573 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32574 GNU General Public License for more details.
32575
32576 You should have received a copy of the GNU General Public License
32577 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.