Move eshell's self-tests to the test/ directory.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
5aef9e9a
KB
12011-03-02 kbrown <kbrown@cornell.edu>
2
3 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
4
6c0dea8a
PE
52011-03-02 Paul Eggert <eggert@cs.ucla.edu>
6
7 Work around some portability problems with symlinks.
8
9 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
10 generate a special message for it. Suggested by Eli Zaretskii in
11 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
12 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
13 Simplify the code by assuming that the readlink and symlink calls
14 exist, even if they always fail on this host.
15 (Ffile_readable_p): Likewise, for fifos.
16 * config.in: Regenerate.
17
52eb77a6
CY
182011-02-27 Chong Yidong <cyd@stupidchicken.com>
19
20 * frame.c (store_frame_param): Don't store value directly in
21 buffer_list and buried_buffer_list; copy the list and remove dead
22 buffers (Bug#7898).
23
0f7bb05d
EZ
242011-02-27 Eli Zaretskii <eliz@gnu.org>
25
40be44e2
EZ
26 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
27
28 * msdos.h: (readlink) [DJGPP < 2.04]: Declare prototype.
29
0f7bb05d
EZ
30 * w32.c (symlink, readlink): New stub functions.
31
27786b2f
PE
322011-02-27 Paul Eggert <eggert@cs.ucla.edu>
33
c783d15b
PE
34 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
35 This avoids a gcc warning in some configurations.
36
76c1cebc
PE
37 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
38
0ff162fc
PE
39 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
40 (set_menu_bar_lines, x_get_resource_string): New decls.
41 * msdos.c (set_menu_bar_lines): Omit decl.
42
fdb0b28b
PE
43 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
44 It's always given int values and used as an int. This suppresses
45 a gcc "comparison of unsigned expression >= 0" warning in some
46 configurations.
47
27786b2f
PE
48 * dispnew.c: Rename locals to avoid shadowing.
49 (update_text_area, scrolling_window, update_frame_1): Rename locals.
50
09ad5a91
PE
512011-02-26 Paul Eggert <eggert@cs.ucla.edu>
52
53 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
54 (copy_glyph_row_contents): Remove; not used.
55 (frame_row_to_window, check_current_matrix_flags):
56 (window_change_signal): Now static, since they're not used elsewhere.
57 (check_current_matrix_flags): Surround with "#if 0", since its
58 only use is in a comment. Maybe both the comment and the "#if 0"
59 stuff should be removed?
60
d2d37ddc
PE
61 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
62 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
63 contexts that actually need it.
64
003fa8b6
EZ
652011-02-26 Eli Zaretskii <eliz@gnu.org>
66
67 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
68 (lstat): Define for DJGPP < 2.04.
69
b1894766
PE
702011-02-25 Paul Eggert <eggert@cs.ucla.edu>
71
72 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
73 as per recent filemodestring API change. Reported by Jonas Öster in
74 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
75
2c6584e8
BK
762011-02-23 Ben Key <bkey76@gmail.com> (tiny change)
77
78 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
79 directly, for bar cursors.
80
812011-02-23 Chong Yidong <cyd@stupidchicken.com>
82
83 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
84 into the frame's cursor_width.
85
617a0e83
SM
862011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
87
88 * print.c (print_object): Never print old-style backquotes.
89 Obey escapeflag for hash tables as well.
90
cce7d530 912011-02-23 Kenichi Handa <handa@m17n.org>
e3b300a4
KH
92
93 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
cce7d530 94 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
e3b300a4 95
8d40723d
PE
962011-02-22 Paul Eggert <eggert@cs.ucla.edu>
97
98 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
99
aa0f73d1
WJ
1002011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
101
102 * lread.c (openp): Correct Boolean typo in last commit.
103
bdaa0745
AR
1042011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
105
106 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
aa0f73d1 107 key to Emacs, treat as unmodified (go to input manager processing).
bdaa0745 108
f68c809d
PE
1092011-02-22 Paul Eggert <eggert@cs.ucla.edu>
110
111 Assume S_ISLNK etc. work, since gnulib supports this.
112 * config.in: Regenerate.
113 * dired.c (lstat): Remove.
114 (file_name_completion): Assume S_ISDIR works.
115 (file_name_completion_stat): Assume S_ISLNK works.
116 Do not bother calling stat unless lstat says it's a symlink.
117 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
118 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
119 (check_writable, Ffile_writable_p, Fset_file_times):
120 Assume S_ISDIR works.
121 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
122 fifos exist.
2f8f196d 123 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
f68c809d
PE
124 * filelock.c (S_ISLNK): Remove.
125 * lread.c (openp): Assume S_ISDIR works.
126 * xrdb.c (S_ISDIR): Remove.
127
25c51af3
EZ
1282011-02-21 Eli Zaretskii <eliz@gnu.org>
129
130 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
2f8f196d 131 lib/makefile.w32-in.
25c51af3
EZ
132 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
133 (GLOBAL_SOURCES): Remove filemode.c.
134 (OBJ1): Remove $(BLD)/filemode.$(O).
135
5c185672
PE
1362011-02-21 Paul Eggert <eggert@cs.ucla.edu>
137
138 Import filemode module from gnulib.
139 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
140 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
141 (filemode.o): Remove; this is now in ../lib.
142 * dired.c: Include <filemode.h>.
143 (filemodestring): Remove now-redundant decl.
144 * config.in: Regenerate.
145
32159fc3
CS
1462011-02-20 Eli Zaretskii <eliz@gnu.org>
147
148 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
149 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
150
2f8f196d 1512011-02-20 Christoph Scholtes <cschol2112@gmail.com>
32159fc3
CS
152
153 * makefile.w32-in: Remove md5.$(O).
154 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
155 lib/makefile.w32-in.
156
61353ac8 1572011-02-20 Paul Eggert <eggert@cs.ucla.edu>
ff05203e 158
61353ac8
PE
159 Import crypto/md5 and stdint modules from gnulib.
160 * Makefile.in (base_obj): Remove md5.o, since this file
161 is in lib now.
162 * config.in: Regenerate.
163 * md5.h, md5.h: Move to ../lib.
164 * deps.mk (md5.o): Remove.
165 (fns.o): Depend on ../lib/md5.h, not md5.h.
166
9d9d12cd
EZ
1672011-02-19 Eli Zaretskii <eliz@gnu.org>
168
f601db19
EZ
169 * termcap.c (tputs): Don't declare baud_rate.
170
9d9d12cd
EZ
171 * s/msdos.h (strtold): Define to _strtold.
172
aa56f361
SM
1732011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
174
cbe81f1d
SM
175 * process.c (Fstart_process, Fmake_serial_process)
176 (Fmake_network_process, server_accept_connection):
177 Use empty_unibyte_string.
178
179 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
180
aa56f361
SM
181 * lread.c (Qdir_ok): New constant.
182 (syms_of_lread): Initialize it.
183 (openp): Don't ignore directories if the predicate returns dir-ok.
184
d6de49a1
EZ
1852011-02-18 Eli Zaretskii <eliz@gnu.org>
186
42af913d
EZ
187 * xdisp.c (display_line): Fix the change made for bug#7939.
188
d6de49a1
EZ
189 * terminal.c (create_terminal): Use default-keyboard-coding-system
190 and default-terminal-coding-system to initialize coding systems of
191 the new terminal. (Bug#7840)
192
b286858c
SM
1932011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
194
195 * lisp.h (BYTE_MARK_STACK): New macro.
196 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
197
198 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
199 (struct byte_stack): Only define `top' and `bottom' if used.
200 (mark_byte_stack): Only define if used.
201 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
202 is not set.
203 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
204
205 * term.c (OUTPUT_IF): Use OUTPUT.
206
207 * alloc.c (Fgarbage_collect): When using stack scanning, don't
208 redundantly scan byte-code stacks, catchlist, and handlerlist.
209
124c9ff0
JD
2102011-02-17 Jan Djärv <jan.h.d@swipnet.se>
211
212 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
213 (Fns_read_file_name): Replace B_ with BVAR.
214
215 * nsterm.m (ns_term_init): Use KVAR.
216
05c65251
EZ
2172011-02-16 Eli Zaretskii <eliz@gnu.org>
218
026d69ec
EZ
219 * msdos.c (internal_terminal_init): Use KVAR.
220
05c65251
EZ
221 * w32fns.c (Fx_create_frame): Use KVAR.
222
223 * w32term.c (w32_create_terminal): Use KVAR.
224
225 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
eef5ce6e 226 (getloadavg): Declare prototype which was removed from lisp.h.
05c65251
EZ
227
228 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
229
b286858c
SM
230 * fileio.c (Finsert_file_contents, Fwrite_region):
231 Remove references to buffer_file_type.
05c65251
EZ
232 (syms_of_fileio): Don't intern and staticpro
233 find-buffer-file-type.
234
235 * callproc.c (syms_of_callproc): Remove references to
236 buffer_file_type.
237
238 * buffer.c (reset_buffer_local_variables): Don't set
239 buffer_file_type.
240 (init_buffer_once): Likewise.
241 (syms_of_buffer): Don't define buffer-file-type.
242
243 * buffer.h (struct buffer): Remove buffer_file_type.
244
1344aad4
TT
2452011-02-16 Tom Tromey <tromey@parfait>
246
15f58304
EZ
247 * callint.c (Fcall_interactively): Update for change to field names.
248 * doc.c (Fsubstitute_command_keys): Update for change to field names.
249 * cmds.c (Fself_insert_command): Update for change to field names.
1344aad4 250 * keymap.c (Fcurrent_active_maps, Fkey_binding)
15f58304 251 (Fdescribe_buffer_bindings): Update for change to field names.
1344aad4
TT
252 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
253 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
15f58304 254 Update for change to field names.
1344aad4
TT
255 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
256 (echo_length, echo_truncate, cmd_error, command_loop_1)
257 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
258 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
259 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
260 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
15f58304
EZ
261 Update for change to field names.
262 * xfns.c (Fx_create_frame): Update for change to field names.
263 * xterm.c (x_connection_closed, x_term_init): Update for change to
264 field names.
1344aad4 265 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
15f58304 266 Update for change to field names.
1344aad4 267 * window.c (window_scroll_pixel_based, window_scroll_line_based):
15f58304 268 Update for change to field names.
1344aad4 269 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
15f58304 270 (delete_frame): Update for change to field names.
1344aad4
TT
271 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
272 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
273 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
274
eb4916d7
TT
2752011-02-16 Tom Tromey <tromey@redhat.com>
276
277 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
278
4b4deea2
TT
2792011-02-16 Tom Tromey <tromey@parfait>
280
281 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
282 * xfaces.c (compute_char_face): Replace B_ with BVAR.
283 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
284 (message_dolog, update_echo_area, ensure_echo_area_buffers)
285 (with_echo_area_buffer, setup_echo_area_for_printing)
286 (set_message_1, update_menu_bar, update_tool_bar)
287 (text_outside_line_unchanged_p, redisplay_internal)
288 (try_scrolling, try_cursor_movement, redisplay_window)
289 (try_window_reusing_current_matrix, row_containing_pos)
290 (try_window_id, get_overlay_arrow_glyph_row, display_line)
291 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
292 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
293 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
294 BVAR.
295 * window.c (window_display_table, unshow_buffer, window_loop)
296 (window_min_size_2, set_window_buffer, Fset_window_buffer)
297 (select_window, Fforce_window_update, temp_output_buffer_show)
298 (Fset_window_configuration, save_window_save): Replace B_ with
299 BVAR.
300 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
301 Replace B_ with BVAR.
302 * undo.c (record_point, record_insert, record_delete)
303 (record_marker_adjustment, record_first_change)
304 (record_property_change, Fundo_boundary, truncate_undo_list)
305 (Fprimitive_undo): Replace B_ with BVAR.
306 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
307 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
308 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
309 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
310 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
311 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
312 (string_match_1, fast_looking_at, newline_cache_on_off)
313 (search_command, search_buffer, simple_search, boyer_moore)
314 (Freplace_match): Replace B_ with BVAR.
315 * process.c (get_process, list_processes_1, Fstart_process)
316 (Fmake_serial_process, Fmake_network_process)
317 (read_process_output, send_process, exec_sentinel)
318 (status_notify, setup_process_coding_systems): Replace B_ with
319 BVAR.
320 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
321 (strout, print_string, temp_output_buffer_setup, print_object):
322 Replace B_ with BVAR.
323 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
b286858c
SM
324 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
325 Replace B_ with BVAR.
4b4deea2
TT
326 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
327 (set_marker_both, set_marker_restricted_both, unchain_marker):
328 Replace B_ with BVAR.
329 * lread.c (readchar, unreadchar, openp, readevalloop)
330 (Feval_buffer, Feval_region): Replace B_ with BVAR.
331 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
332 * keymap.c (Flocal_key_binding, Fuse_local_map)
333 (Fcurrent_local_map, push_key_description)
334 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
335 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
336 (read_key_sequence): Replace B_ with BVAR.
337 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
338 * intervals.c (set_point_both, get_local_map): Replace B_ with
339 BVAR.
340 * insdel.c (check_markers, insert_char, insert_1_both)
341 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
342 (adjust_after_replace, replace_range, del_range_2)
343 (modify_region, prepare_to_modify_buffer)
344 (Fcombine_after_change_execute): Replace B_ with BVAR.
345 * indent.c (buffer_display_table, recompute_width_table)
346 (width_run_cache_on_off, current_column, scan_for_column)
347 (Findent_to, position_indentation, compute_motion, vmotion):
348 Replace B_ with BVAR.
349 * fringe.c (get_logical_cursor_bitmap)
350 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
351 with BVAR.
352 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
353 * font.c (font_at): Replace B_ with BVAR.
354 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
355 Replace B_ with BVAR.
356 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
357 (unlock_buffer): Replace B_ with BVAR.
358 * fileio.c (Fexpand_file_name, Ffile_directory_p)
359 (Ffile_regular_p, Ffile_selinux_context)
360 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
361 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
362 (Finsert_file_contents, choose_write_coding_system)
363 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
364 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
365 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
366 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
367 (save_excursion_restore, Fprevious_char, Fchar_before)
368 (general_insert_function, Finsert_char, Finsert_byte)
369 (make_buffer_string_both, Finsert_buffer_substring)
370 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
371 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
372 (Ftranslate_region_internal, save_restriction_restore)
373 (Fchar_equal): Replace B_ with BVAR.
374 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
375 * dispextern.h (WINDOW_WANTS_MODELINE_P)
376 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
377 * dired.c (directory_files_internal): Replace B_ with BVAR.
378 * data.c (swap_in_symval_forwarding, set_internal)
379 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
380 Replace B_ with BVAR.
381 * composite.c (fill_gstring_header)
382 (composition_compute_stop_pos, composition_adjust_point)
383 (Ffind_composition_internal): Replace B_ with BVAR.
384 * coding.c (decode_coding, encode_coding)
385 (make_conversion_work_buffer, decode_coding_gap)
386 (decode_coding_object, encode_coding_object)
387 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
388 (Funencodable_char_position, Fcheck_coding_systems_region):
389 Replace B_ with BVAR.
390 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
391 with BVAR.
392 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
393 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
394 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
395 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
396 * category.h (Vstandard_category_table): Replace B_ with BVAR.
397 * category.c (check_category_table, Fcategory_table)
398 (Fset_category_table, char_category_set): Replace B_ with BVAR.
399 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
400 BVAR.
401 * casefiddle.c (casify_object, casify_region): Replace B_ with
402 BVAR.
403 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
404 with BVAR.
405 * callint.c (check_mark, Fcall_interactively): Replace B_ with
406 BVAR.
407 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
408 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
409 with BVAR.
410 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
411 (get_truename_buffer, Fget_buffer_create)
412 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
413 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
414 (Fbuffer_local_value, buffer_lisp_local_variables)
415 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
416 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
417 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
418 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
419 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
420 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
421 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
422 (record_overlay_string, overlay_strings, init_buffer_once)
423 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
424
8678d9e4 4252011-02-16 Eli Zaretskii <eliz@gnu.org>
a73d395b
EZ
426
427 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
428 window is changed inside calls to do_pending_window_change.
429 (Bug#8020)
430
1f5d53eb
PE
4312011-02-16 Paul Eggert <eggert@cs.ucla.edu>
432
433 Remove no-longer needed getloadavg symbols.
434 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
435 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
436 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
437 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
438 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
439 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
440 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
441 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
442 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
443 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
444 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
445 (LDAV_SYMBOL): Remove.
446 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
447 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
448
449 Import getloadavg module from gnulib.
450 * deps.mk (getloadavg.o): Remove; gnulib now does this.
451 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
452 now does this.
453 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
454 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
455 * config.in: Regenerate.
456
8017fd6b
EZ
4572011-02-15 Eli Zaretskii <eliz@gnu.org>
458
459 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
460
75b43359
MWD
4612011-02-14 Michael Welsh Duggan <md5i@md5i.com>
462
463 * print.c (float_to_string): Ensure that a decimal point is
464 printed if using dtoastr (Bug#8033).
465
fc3ca113
EZ
4662011-02-14 Eli Zaretskii <eliz@gnu.org>
467
1f5d53eb 468 * msdos.c (IT_frame_up_to_date):
ef72f149
EZ
469 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
470
fc3ca113
EZ
471 * dired.c (directory_files_internal):
472 * fileio.c (Finsert_file_contents):
473 * insdel.c (prepare_to_modify_buffer):
474 * xdisp.c (pos_visible_p):
475 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
476 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
477 Use B_ for the MS-Windows build.
478
3928f2b6
JD
4792011-02-14 Jan Djärv <jan.h.d@swipnet.se>
480
481 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
482 resource that specifies helvetica for menus and dialogs.
483
484 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
485 (apply_systemfont_to_menu): Set resources *menubar*font and
486 *popup*font. Remove defflt.
b286858c
SM
487 (set_frame_menubar, create_and_show_popup_menu):
488 Call apply_systemfont_to_menu before lw_create_widget.
3928f2b6 489
4bb81cc2
TT
4902011-02-14 Tom Tromey <tromey@redhat.com>
491
fc3ca113
EZ
492 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
493
4bb81cc2
TT
494 * keyboard.h: Remove obsolete comment.
495
5d8ea120
TT
4962011-02-14 Tom Tromey <tromey@parfait>
497
498 * composite.c (fill_gstring_header)
499 (composition_compute_stop_pos, composition_adjust_point)
500 (Ffind_composition_internal): Use B_.
501 * intervals.c (set_point_both, get_local_map): Use B_.
502 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
503 * process.c (get_process, list_processes_1, Fstart_process)
504 (Fmake_serial_process, Fmake_network_process)
505 (read_process_output, send_process, exec_sentinel)
506 (status_notify, setup_process_coding_systems): Use B_.
507 * bytecode.c (Fbyte_code): Use B_.
508 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
509 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
510 (skip_syntaxes, scan_lists): Use B_.
511 * lread.c (readchar, unreadchar, openp, readevalloop)
512 (Feval_buffer, Feval_region): Use B_.
513 * print.c (printchar, strout, print_string, PRINTDECLARE)
514 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
515 (print_object): Use B_.
516 * font.c (font_at): Use B_.
b286858c
SM
517 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
518 Use B_.
5d8ea120
TT
519 * callint.c (check_mark, Fcall_interactively): Use B_.
520 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
521 (save_excursion_restore, Fprevious_char, Fchar_before)
522 (general_insert_function, Finsert_char, Finsert_byte)
523 (make_buffer_string_both, Finsert_buffer_substring)
524 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
525 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
526 (Ftranslate_region_internal, save_restriction_restore)
527 (Fchar_equal): Use B_.
528 * data.c (swap_in_symval_forwarding, set_internal)
529 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
530 Use B_.
531 * undo.c (record_point, record_insert, record_delete)
532 (record_marker_adjustment, record_first_change)
533 (record_property_change, Fundo_boundary, truncate_undo_list)
534 (Fprimitive_undo): Use B_.
535 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
536 (string_match_1, fast_looking_at, newline_cache_on_off)
537 (search_command, search_buffer, simple_search, boyer_moore)
538 (Freplace_match): Use B_.
539 * indent.c (buffer_display_table, recompute_width_table)
540 (width_run_cache_on_off, current_column, scan_for_column)
b286858c
SM
541 (Findent_to, position_indentation, compute_motion, vmotion):
542 Use B_.
5d8ea120
TT
543 * casefiddle.c (casify_object, casify_region): Use B_.
544 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
545 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
546 * fileio.c (Fexpand_file_name, Ffile_directory_p)
547 (Ffile_regular_p, Ffile_selinux_context)
548 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
549 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
550 (Finsert_file_contents, choose_write_coding_system)
551 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
552 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
553 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
554 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
555 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
b286858c
SM
556 (set_marker_both, set_marker_restricted_both, unchain_marker):
557 Use B_.
5d8ea120
TT
558 * insdel.c (check_markers, insert_char, insert_1_both)
559 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
560 (adjust_after_replace, replace_range, del_range_2)
561 (modify_region, prepare_to_modify_buffer)
562 (Fcombine_after_change_execute): Use B_.
563 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
564 (unlock_buffer): Use B_.
565 * keymap.c (Flocal_key_binding, Fuse_local_map)
566 (Fcurrent_local_map, push_key_description)
567 (Fdescribe_buffer_bindings): Use B_.
568 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
569 (read_key_sequence): Use B_.
570 * fringe.c (get_logical_cursor_bitmap)
571 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
572 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
573 * xfaces.c (compute_char_face): Use B_.
574 * character.c (chars_in_text, Fget_byte): Use B_.
575 * category.c (check_category_table, Fcategory_table)
576 (Fset_category_table, char_category_set): Use B_.
577 * coding.c (decode_coding, encode_coding)
578 (make_conversion_work_buffer, decode_coding_gap)
579 (decode_coding_object, encode_coding_object)
580 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
b286858c
SM
581 (Funencodable_char_position, Fcheck_coding_systems_region):
582 Use B_.
5d8ea120
TT
583 * charset.c (Ffind_charset_region): Use B_.
584 * window.c (window_display_table, unshow_buffer, window_loop)
585 (window_min_size_2, set_window_buffer, Fset_window_buffer)
586 (select_window, Fforce_window_update, temp_output_buffer_show)
587 (Fset_window_configuration, save_window_save): Use B_.
588 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
589 (message_dolog, update_echo_area, ensure_echo_area_buffers)
590 (with_echo_area_buffer, setup_echo_area_for_printing)
591 (set_message_1, update_menu_bar, update_tool_bar)
592 (text_outside_line_unchanged_p, redisplay_internal)
593 (try_scrolling, try_cursor_movement, redisplay_window)
594 (try_window_reusing_current_matrix, row_containing_pos)
595 (try_window_id, get_overlay_arrow_glyph_row, display_line)
596 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
597 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
598 (get_window_cursor_type, note_mouse_highlight): Use B_.
599 * frame.c (make_frame_visible_1): Use B_.
600 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
601 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
602 (WINDOW_WANTS_MODELINE_P): Use B_.
603 * syntax.h (Vstandard_syntax_table): Update.
604 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
605 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
606 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
607 * character.h (FETCH_CHAR_ADVANCE): Update.
608 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
609 * category.h (Vstandard_category_table): Update.
610 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
611 names.
612 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
613 * buffer.c (swapfield_): New macro.
614 (Fbuffer_swap_text): Use swapfield_ where appropriate.
615 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
616 (Fget_buffer_create, clone_per_buffer_values)
617 (Fmake_indirect_buffer, reset_buffer)
618 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
619 (Fbuffer_local_value, buffer_lisp_local_variables)
620 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
621 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
622 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
623 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
624 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
625 (Fbuffer_swap_text, Fset_buffer_multibyte)
626 (swap_out_buffer_local_variables, record_overlay_string)
627 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
628 Use B_.
629 * buffer.h (struct buffer): Rename all Lisp_Object fields.
630 (BUFFER_INTERNAL_FIELD, B_): New macro.
631 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
632
42f60557
JD
6332011-02-14 Jan Djärv <jan.h.d@swipnet.se>
634
635 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
636 is null.
637
2f9a22e2
J
6382011-02-13 Jan Djärv <jan.h.d@swipnet.se>
639
640 * callproc.c (Fcall_process):
641 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
642 comment.
643
84eb0351 6442011-02-12 Martin Rudalics <rudalics@gmx.at>
bae1fa42
MR
645
646 * window.c (select_window): Check inhibit_point_swap argument when
647 deciding whether to return immediately.
648
84eb0351 6492011-02-12 Jan Djärv <jan.h.d@swipnet.se>
9aabf64c
JD
650
651 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
652 zero (Bug#7348).
653
84eb0351
CY
6542011-02-12 Chong Yidong <cyd@stupidchicken.com>
655
656 * config.in (TERMINFO): New definition.
657
658 * s/netbsd.h: Use it to choose between terminfo and termcap
659 (Bug#7642).
660
33d605d0
PE
6612011-02-12 Paul Eggert <eggert@cs.ucla.edu>
662
663 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
664 The difference doesn't matter here, in practice, and sizeof is
665 more portable to non-GCC compilers. Also, this makes the code
666 match the already-existing comment.
667
c0ad4ea5
AS
6682011-02-12 Andreas Schwab <schwab@linux-m68k.org>
669
670 * process.c (create_process): Reset SIGPIPE handler in the child.
671 * callproc.c (Fcall_process): Likewise. (Bug#5238)
672
50fd938f
EZ
6732011-02-12 Eli Zaretskii <eliz@gnu.org>
674
675 * xdisp.c <this_line_min_pos>: New variable.
676 (move_it_in_display_line_to): Record in this_line_min_pos the
677 smallest position iterated across.
678 (display_line): Use this_line_min_pos to record the smallest
679 position in the line even if it is not displayed due to
680 hscrolling. (Bug#7939)
681
af59aa6e
PE
6822011-02-12 Paul Eggert <eggert@cs.ucla.edu>
683
cec81b22
PE
684 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
685 * md5.h (ATTRIBUTE_ALIGNED): New macro.
686 (struct md5_ctx): Use it.
687
af59aa6e
PE
688 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
689 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
690 defined.
691 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
692 FC_HINT_STYLE is supported.
693
02c3706c
JD
6942011-02-11 Jan Djärv <jan.h.d@swipnet.se>
695
696 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
697 Make sure we don't do x_catch_errors twice.
698
5ac75e8f
GM
6992011-02-10 Glenn Morris <rgm@gnu.org>
700
701 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
702
d37f40ed
EZ
7032011-02-09 Eli Zaretskii <eliz@gnu.org>
704
5ac75e8f
GM
705 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
706 New macros.
d37f40ed
EZ
707 (globals.h, gl-stamp): New targets.
708 (clean): Clean gl-stamp and globals.h.
709
33cd3ee4
AS
7102011-02-09 Andreas Schwab <schwab@linux-m68k.org>
711
712 * Makefile.in (gl-stamp): Create globals.h here.
713 (globals.h): Don't do it here.
714 (mostlyclean): Clean globals.h and gl-stamp.
715
f9f2e7f5
PE
7162011-02-09 Paul Eggert <eggert@cs.ucla.edu>
717
718 * Makefile.in ($(otherobj)): Depend on globals.h.
719 Otherwise 'make -j10' failed on my host, because the build lacked
720 necessary dependencies, e.g., vm-limit.o depends on globals.h.
721
00b3c7ac
TT
7222011-02-08 Tom Tromey <tromey@redhat.com>
723
724 * Makefile.in (NS_OBJC_OBJ): New variable.
725 (base_obj): Rename from 'obj'.
726 (obj): New variable.
727 (globals.h, gl-stamp, $(obj)): New targets.
728 (GLOBAL_SOURCES): New variable.
729 * globals.h: Remove.
730 * nsselect.m (Vselection_alist): Define. Reverts part of
731 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
732 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
733 variable.
734 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
735
8f3b2e12
KH
7362011-02-08 Kenichi Handa <handa@m17n.org>
737
738 * font.c (Ffont_get): Do not cache :otf value.
739
4f043d0f
PE
7402011-02-07 Paul Eggert <eggert@cs.ucla.edu>
741
742 conform to C89 pointer rules
743
744 * dired.c (scmp, file_name_completion):
745 Change types between char * and unsigned char *, to satisfy C89
746 rules about pointer type compatibility.
47ce90e4 747 * casefiddle.c (casify_object, casify_region): Likewise.
a7e979a4 748 * search.c (Freplace_match, Fregexp_quote): Likewise.
90256841
PE
749 * alloc.c (make_string, make_specified_string, make_pure_string):
750 Likewise.
57ace6d0 751 * data.c (Fstring_to_number): Likewise.
09125ef8
PE
752 * print.c (float_to_string, PRINTFINISH, printchar, strout):
753 (print_object): Likewise.
e7f8264d
PE
754 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
755 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
756 (Fformat): Likewise.
a2db9982 757 * callint.c (Fcall_interactively): Likewise.
f1e59824
PE
758 * fns.c (string_make_multibyte, string_to_multibyte):
759 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
760 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
761 Likewise.
4a25e32a 762 * lread.c (read1, hash_string): Likewise.
400a67ff
PE
763 * process.c (read_process_output, send_process, Fprocess_send_region):
764 Likewise.
0ca76b1e 765 * callproc.c (Fcall_process): Likewise.
7469ef5d
PE
766 * doprnt.c (doprnt): Likewise.
767 * indent.c (compute_motion): Likewise.
efe0234f 768 * xfont.c (xfont_decode_coding_xlfd): Likewise.
3ce2f8ac 769 * ralloc.c (resize_bloc): Likewise.
b19beacc 770 * image.c (tiff_load): Likewise.
c45e5276 771 * xml.c (make_dom, parse_region): Likewise.
7469ef5d
PE
772 * character.c (strwidth): Make its argument const char *, not const
773 unsigned char *, since more callers prefer it that way. All callers
774 changed.
4f043d0f 775
9eee99eb
PE
7762011-02-06 Paul Eggert <eggert@cs.ucla.edu>
777
4c83cffc
PE
778 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
779 Emacs assumes two's complement elsewhere, but the assumption is
780 easy to remove here, and this suppresses a warning with Sun C 5.8.
781
82470039
PE
782 conform to C89 pointer rules
783
784 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
785 (same_x_server, x_term_init):
9eee99eb
PE
786 Change types between char * and unsigned char *, to satisfy C89
787 rules about pointer type compatibility.
82470039
PE
788 * doc.c (get_doc_string, Fsnarf_documentation):
789 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
790 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
791 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 792 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
793 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
794 Likewise.
01c9aa3a 795 * keymap.c (Ftext_char_description): Likewise.
637de37e 796 * minibuf.c (Fread_buffer): Likewise.
5976c3fe
PE
797 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
798 (DRIVE_LETTER) [defined DOS_NT]:
799 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
800 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
801 (search_embedded_absfilename, Fsubstitute_in_file_name):
802 (barf_or_query_if_file_exists, Fmake_directory_internal):
803 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
804 (Finsert_file_contents, Fwrite_region):
805 Likewise.
b68864e5
PE
806 * insdel.c (insert, insert_and_inherit, insert_before_markers):
807 (insert_before_markers_and_inherit, insert_1, insert_1_both):
808 Likewise. This changes these functions' signatures, which is
809 more convenient since most callers use char *. All remaining
810 callers changed.
811 * editfns.c (general_insert_function): Change signature to
812 match changes to insert functions' signatures.
b286858c
SM
813 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
814 Use explicit cast when converting between void * and function pointer
01c9aa3a 815 types, as C89 requires this.
9eee99eb 816
32299e33
PE
8172011-02-05 Paul Eggert <eggert@cs.ucla.edu>
818
819 don't ignore chdir failure
820 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
821 failure and exit.
822 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
823 remaining unchecked chdir calls in this function; some DOS/NT
824 expert needs to fix them.
825 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
826 in this function; some NextStep expert needs to fix them.
827
233ba4d9 8282011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
829
830 * xfaces.c (Finternal_set_lisp_face_attribute):
831 Try to clarify some error messages. (Bug#2659)
832
233ba4d9 8332011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
834
835 * editfns.c (save_restriction_restore): Don't forget to invalidate the
836 current_column cache (bug#7946).
837
233ba4d9 8382011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
839
840 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
841
842 * xftfont.c (xftfont_open): Likewise.
843
233ba4d9 8442011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
845
846 * window.c (Fselect_window): Add missing return value.
847
d67985d3
PE
8482011-02-05 Paul Eggert <eggert@cs.ucla.edu>
849
25a48bd0
PE
850 xstrcasecmp: conform to C89 pointer rules
851 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
852 to const char *, since they're usually low-level C strings, and
853 this stays compatible with C89 pointer rules. All callers changed.
854
2f8f196d 855 * charset.c: Conform to C89 pointer rules.
dfb6afda
PE
856 (define_charset_internal): Switch between char * and unsigned char *.
857
2f8f196d 858 * xmenu.c: Conform to C89 const rules.
cc618f4e
PE
859 (xmenu_show, xdialog_show): Declare local var as char *, not
860 const char *, to stay compatible with C89 const rules.
861
2f8f196d 862 * xdisp.c: Conform to C89 pointer rules.
9bcaafce
PE
863 (store_mode_line_noprop, display_string, reseat_to_string):
864 (c_string_pos, number_of_chars, message_dolog):
865 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
866 (display_mode_element, display_string):
867 Switch between char * and unsigned char * to stay compatible wth
868 C89 pointer rules.
869
2f8f196d 870 * regex.c: Conform to C89 pointer rules.
5b0534c8
PE
871 (re_wctype): Add cast, as C89 does not allow assigning between
872 char * and unsigned char *.
873 (regex_compile): Likewise.
874
d67985d3
PE
875 sync from gnulib to remove HAVE_STDBOOL_H
876 * config.in: Regenerate.
877
a5d733f5
EZ
8782011-02-04 Eli Zaretskii <eliz@gnu.org>
879
f90e08f5
EZ
880 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
881 Replace all uses of lisp.h with $(LISP_H), and all uses of
882 process.h with $(PROCESS_H).
883 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
884 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
885
be50df37
EZ
886 * deps.mk: Update for recent changes: gnutls support, gnulib
887 imports, addition of globals.h.
888
f90e08f5
EZ
889 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
890 ../lib/ignore-value.h.
a5d733f5 891
67342916
PE
8922011-02-03 Paul Eggert <eggert@cs.ucla.edu>
893
894 allow C code to suppress warnings about ignored return values
895
896 We need to go through the code and for each such warning, either
897 fix the code to pay attention to the returned value, or tell GCC
898 that we really do want to ignore the returned value. Here is one
899 example of how to do the latter.
900 * sysdep.c: Include <ignore-value.h>.
901 (sys_subshell): Suppress an undesirable warning about not checking
902 the returned value of 'write', as there's nothing useful one can
903 do with that returned value.
904
36941b32
JD
9052011-02-03 Jan Djärv <jan.h.d@swipnet.se>
906
907 * xterm.c (x_connection_closed): Remove all calls that calls
908 XSync (Bug#7949).
909
3082f617
EZ
9102011-02-01 Eli Zaretskii <eliz@gnu.org>
911
912 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
913 TIFFClientOpen.
914
4df0af9b
JD
9152011-02-01 Jan Djärv <jan.h.d@swipnet.se>
916
917 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
918 (x_session_check_input): Change args and return type so it can be used
919 as argument to add_read_fd. Make static. Remove call to select.
920 Call kbd_buffer_store_event for emacs_event.
921 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
922 (ice_conn_watch_CB): Call add_read_fd.
923
924 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
925 x_session_check_input.
926 (x_session_initialized): Remove definition.
927 (x_initialize): Remove setting of x_session_initialized.
928
929 * xterm.h (x_session_check_input): Remove declaration.
930
a4180391
PE
9312011-02-01 Paul Eggert <eggert@cs.ucla.edu>
932
933 format-time-string now supports subsecond time stamp resolution
b286858c 934 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
a4180391
PE
935 for consistency with its new argument and with gnulib nstrftime.
936 All callers changed. New argument NS.
937 (Fformat_time_string): Check that the time argument's microseconds
938 component, if any, is in range; this avoids integer overflow and
939 also nstrftime needs this. Document %N.
940
14beddf4 9412011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
942
943 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
944 of int. All uses adjusted.
945 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
946 (svg_load_image): Remove casts.
947
14beddf4 9482011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
949
950 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
951 function definitions for compiling with libpng-1.5.
952 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
953 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
954 (Bug#7908).
955
70b0d280
EZ
9562011-01-31 Eli Zaretskii <eliz@gnu.org>
957
8b3c625b
EZ
958 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
959
70b0d280
EZ
960 * makefile.w32-in (OBJ2): Remove strftime.$(O).
961 ($(BLD)/strftime.$(O)): Remove prerequisites.
962
16fab143
PE
9632011-01-31 Paul Eggert <eggert@cs.ucla.edu>
964
965 src/emacs.c now gets version number from configure.in
966 * emacs.c (emacs_version): Set to VERSION so that it
967 is determined automatically from ../configure.in.
968
546961a9
JM
9692011-01-31 Jim Meyering <meyering@redhat.com>
970
971 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
972 Use xmalloc rather than malloc.
973
42a5b22f
PE
9742011-01-30 Paul Eggert <eggert@cs.ucla.edu>
975
16c3e636
PE
976 strftime: import from gnulib
977 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
978 * deps.mk (strftime.o): Remove.
979 * editfns.c: Include <strftime.h>, supplied by gnulib.
980 (emacs_strftimeu): Remove decl.
981 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
982 emacs_strftimeu.
983 * config.in: Regenerate.
984 * strftime.c: Remove; we now use strftime from gnulib.
985
42a5b22f
PE
986 Use SSDATA when the context wants char *.
987 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
988 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
989 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
990 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
991 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
992 Use SSDATA (not SDATA) when the context of the expression wants
993 char * (not unsigned char *).
994
2787bba3
JD
9952011-01-30 Jan Djärv <jan.h.d@swipnet.se>
996
997 * .gdbinit: Read global lisp variables as globals.f_V*.
998
4ec88040
AS
9992011-01-30 Andreas Schwab <schwab@linux-m68k.org>
1000
1001 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
1002 All uses changed.
1003 (PROP_SAVE): Likewise.
1004
b6bcd048
CY
10052011-01-29 Chong Yidong <cyd@stupidchicken.com>
1006
1007 * keyboard.c (make_lispy_position): Fix typo in last change
1008 (Bug#7935).
1009
f915f0f7
EZ
10102011-01-29 Eli Zaretskii <eliz@gnu.org>
1011
1012 * s/ms-w32.h (HAVE_MKTIME): Remove.
1013
1014 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
1015 (GNULIB): New variable.
1016 (LIBS): Add $(GNULIB).
1017 $(TEMACS): Depend on $(GNULIB).
1018 <top-level>: Fix font-lock disrupted by a lone `"'.
1019
497a1925
JD
10202011-01-29 Jan Djärv <jan.h.d@swipnet.se>
1021
1022 * nsselect.m (ns_string_from_pasteboard): Get length of string
1023 and use make_string instead of build_string (Bug#7934).
1024 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
1025 instead of stringWithUTF8String (Bug#7934).
1026
2f8f196d 10272011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
481ae085 1028
2f8f196d
JB
1029 * nsfont.m (nsfont_open): Ensure that fonts with inexact
1030 descenders would not become one pixel too tall (Bug#7887).
481ae085 1031
6b918613
CY
10322011-01-28 Chong Yidong <cyd@stupidchicken.com>
1033
1034 * keyboard.c (make_lispy_position): For clicks on right fringe or
1035 margin, compute text position using the X coordinate relative to
1036 the left of the text area (Bug#7839).
1037
9e269017
KH
10382011-01-28 Kenichi Handa <handa@m17n.org>
1039
1040 * ftfont.c (ftfont_spec_pattern): Check each extra property
1041 value.
1042
17dd1fc8
SM
10432011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
1044
1045 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
1046
372fb76b
CY
10472011-01-27 Chong Yidong <cyd@stupidchicken.com>
1048
1049 * font.c (font_parse_fcname): Undefine a temporary macro.
1050
e7f7fbaa
SM
10512011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
1052
1053 Let the debugger continue to the normal handler (bug#7825).
1054 * eval.c (maybe_call_debugger): Declare before new use.
1055 (find_handler_clause): Don't call debugger any more.
1056 Ignore Vstack_trace_on_error.
1057 Use XCAR/XCDR.
1058 (syms_of_eval): Remove Vstack_trace_on_error.
1059 (Fsignal): Only modify handlerlist when we know we need to do it.
1060 Call the debugger when necessary.
1061 * globals.h (Vstack_trace_on_error): Remove.
1062
6608a7d8
CY
10632011-01-26 Chong Yidong <cyd@stupidchicken.com>
1064
1065 * font.c (font_parse_fcname): Rewrite GTK font name parser.
1066
06d8ace5 10672011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
1068
1069 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
1070 the buffer's point-max (bug#7876).
1071
06d8ace5 10722011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
1073
1074 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 1075 Remove unused case (Bug#6811).
19634648 1076
8ab70320
JD
10772011-01-23 Jan Djärv <jan.h.d@swipnet.se>
1078
1079 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
1080 setFrameTopLeftPoint is constrained.
1081
51b59d79
PE
10822011-01-23 Paul Eggert <eggert@cs.ucla.edu>
1083
9055082e
PE
1084 Check return values of some library calls.
1085 * emacs.c (main): Check dup result.
1086 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
1087 (frame_name_fnn_p): Check strtol result.
1088
5c7d01a5 1089 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
1090 when calling XpmCreatePixmapFromData.
1091
51b59d79
PE
1092 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
1093 * lisp.h (SSDATA): New macro.
1094 All uses of (char *) SDATA (x) replaced with SSDATA (x),
1095 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
1096 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
1097 * xsmfns.c (SSDATA): Likewise.
1098
e6b84b30
MR
10992011-01-22 Martin Rudalics <rudalics@gmx.at>
1100
1101 * window.c (select_window): New function.
1102 (Fselect_window): Call it.
1103 (inhibit_point_swap): Variable deleted.
1104 (Fset_window_configuration): Call select_window directly.
1105
3fb69558
JD
11062011-01-22 Jan Djärv <jan.h.d@swipnet.se>
1107
1108 * nsterm.m (constrainFrameRect): Only constrain the first time called.
1109
449ab399
JD
11102011-01-21 Jan Djärv <jan.h.d@swipnet.se>
1111
e2f79c8d
JD
1112 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
1113 screen, not the window screen.
1114 (x_set_window_size): Remove constraints.
1115 Calculate origin.y only if zooming is 0 and without referring to a
1116 screen.
1117 (windowWillResize): Don't modify frameSize.
1118 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
1119 (initFrameFromEmacs): Initialize ns_userRect.
1120 (windowShouldZoom): Set zooming to one. Remove all other code.
1121 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
1122 Zero it after restore.
1123 (constrainFrameRect): New method for EmacsWindow.
1124 (mouseDragged): Always post NSWindowDidResizeNotification after call to
1125 windowWillResize.
1126
1127 * nsterm.h (ns_output): Add dont_constrain and zooming.
1128 (EmacsView): Add ns_userRect.
1129
449ab399
JD
1130 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
1131 if ns_alternate_modifier is none.
1132
e885315d
JD
11332011-01-20 Jan Djärv <jan.h.d@swipnet.se>
1134
1135 * unexmacosx.c: Add comment about include order.
1136
bb1c6663
GM
11372011-01-20 Glenn Morris <rgm@gnu.org>
1138
c11136ec
GM
1139 * minibuf.c (syms_of_minibuf) <read-expression-history>:
1140 Give it a doc string.
1141 * globals.h: Add Vread_expression_history.
1142
bb1c6663
GM
1143 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
1144 Give it a doc string.
1145 * globals.h: Add Vkbd_macro_termination_hook.
1146
9aea757b
CY
11472011-01-20 Chong Yidong <cyd@stupidchicken.com>
1148
1149 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
1150
e1ef0dac
PE
11512011-01-19 Paul Eggert <eggert@cs.ucla.edu>
1152
1153 Fix X11 compilation failure.
1154 * globals.h (struct emacs_globals): Document f_Vselection_alist.
1155 * xselect.c (Vselection_alist): Remove declaration, moving its
1156 documentation to globals.h. This fixes a compilation failure
1157 induced by the earlier change to globals.h today.
1158
fb9d0f5a
JD
11592011-01-19 Jan Djärv <jan.h.d@swipnet.se>
1160
8beb828a
JD
1161 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
1162
fb9d0f5a
JD
1163 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
1164 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
1165 (ns_input_spi_name, ns_input_spi_arg)
1166 (ns_alternate_modifier, ns_right_alternate_modifier)
1167 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
1168 (ns_right_control_modifier, ns_function_modifier)
1169 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
1170 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
1171 (x_underline_at_descent_line): Remove declaration.
1172 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
1173
1174 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
1175 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
1176 (syms_of_nsselect): Remove & from DEFVAR_LISP.
1177
1178 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
1179 Remove declaration.
1180
1181 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
1182 globals.h.
1183 (syms_of_nsfont): Remove & from DEFVAR_LISP.
1184
1185 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
1186 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
1187 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
1188
1189 * globals.h (struct emacs_globals): Add f_ns_input_file,
1190 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
1191 f_ns_input_color, f_ns_input_text, f_ns_working_text,
1192 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
1193 f_ns_right_alternate_modifier, f_ns_command_modifier,
1194 f_ns_right_command_modifier, f_ns_control_modifier,
1195 f_ns_right_control_modifier, f_ns_function_modifier,
1196 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
1197 f_Vns_version_string, f_Vns_sent_selection_hooks,
1198 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
1199 and corresponding defines.
1200
4e55715e
SS
12012011-01-19 Sam Steingold <sds@gnu.org>
1202
1203 * w32.c (check_windows_init_file): Remove declarations of
1204 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 1205 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 1206
ef79d2fa
TT
12072011-01-19 Tom Tromey <tromey@redhat.com>
1208
1209 * window.c: Fix error introduced by previous patch.
1210
29208e82
TT
12112011-01-18 Tom Tromey <tromey@parfait>
1212
1213 * globals.h: New file.
1214 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
1215 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
1216 (Vwindow_system_version): Remove declaration.
1217 * w32term.h (Vw32_enable_palette)
1218 (Vx_pixel_size_width_font_regexp): Remove declaration.
1219 * w32menu.c (Voverriding_local_map)
1220 (Voverriding_local_map_menu_flag): Remove declaration.
1221 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
1222 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
1223 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
1224 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
1225 (Vw32_phantom_key_code, Vw32_recognize_altgr)
1226 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1227 (w32_use_full_screen_buffer): Remove declaration.
1228 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
1229 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
1230 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
1231 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
1232 (no_redraw_on_reenter, visible_bell): Remove declaration.
1233 * sysdep.c (Vsystem_name): Remove declaration.
1234 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
1235 * menu.h (Vmenu_updating_frame): Remove declaration.
1236 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
1237 Remove declaration.
1238 * lisp.h (Vafter_init_time, Vafter_load_alist)
1239 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
1240 (Vcompletion_regexp_list, Vcurrent_load_list)
1241 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
1242 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
1243 (Vexec_directory, Vexec_path, Vexec_suffixes)
1244 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
1245 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
1246 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
1247 (Vinstallation_directory, Vinvocation_directory)
1248 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
1249 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
1250 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
1251 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
1252 (Vscalable_fonts_allowed, Vselect_active_regions)
1253 (Vshell_file_name, Vstandard_input, Vstandard_output)
1254 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
1255 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
1256 (Vuser_login_name, Vwindow_scroll_functions)
1257 (Vwindow_system_version, Vx_no_window_manager)
1258 (Vx_resource_class, Vx_resource_name, baud_rate)
1259 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
1260 (history_delete_duplicates, inhibit_x_resources)
1261 (last_nonmenu_event, load_in_progress, max_specpdl_size)
1262 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
b286858c
SM
1263 (use_dialog_box, use_file_dialog): Remove declaration.
1264 Include globals.h.
29208e82 1265 * keymap.h (Voverriding_local_map)
b286858c
SM
1266 (Voverriding_local_map_menu_flag, meta_prefix_char):
1267 Remove declaration.
29208e82
TT
1268 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
1269 (Vinput_method_function, Vkey_translation_map)
1270 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
1271 (do_mouse_tracking, extra_keyboard_modifiers)
1272 (num_nonmacro_input_events): Remove declaration.
1273 * intervals.h (Vchar_property_alias_alist)
1274 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
1275 (Vtext_property_default_nonsticky): Remove declaration.
1276 * gtkutil.h (x_gtk_file_dialog_help_text)
1277 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1278 (x_gtk_whole_detached_tool_bar): Remove declaration.
1279 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
1280 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
1281 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
1282 (focus_follows_mouse): Remove declaration.
1283 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
1284 (Vignore_relative_composition, Votf_script_alist)
b286858c
SM
1285 (Vuse_default_ascent, Vvertical_centering_font_regexp):
1286 Remove declaration.
29208e82
TT
1287 * font.h (Vfont_log): Remove declaration.
1288 * dosfns.h (Vdos_display_scancodes, Vdos_version)
1289 (Vdos_windows_version, dos_codepage, dos_country_code)
1290 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
b286858c
SM
1291 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
1292 Remove declaration.
1293 * disptab.h (Vglyph_table, Vstandard_display_table):
1294 Remove declaration.
29208e82
TT
1295 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
1296 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
1297 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
1298 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
1299 (inverse_video, mode_line_in_non_selected_windows)
1300 (tool_bar_button_relief, tool_bar_max_label_size)
1301 (underline_minimum_offset)
1302 (unibyte_display_via_language_environment, x_stretch_cursor_p):
1303 Remove declaration.
1304 * composite.h (Vauto_composition_function)
1305 (Vcomposition_function_table): Remove declaration.
1306 * commands.h (Vexecuting_kbd_macro)
1307 (Vminibuffer_local_completion_map)
1308 (Vminibuffer_local_filename_completion_map)
1309 (Vminibuffer_local_filename_must_match_map)
1310 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
1311 (Vminibuffer_local_ns_map, Vthis_command)
1312 (Vunread_command_events, cursor_in_echo_area)
1313 (last_command_event, last_nonmenu_event, unread_command_char):
1314 Remove declaration.
1315 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
1316 (Vdefault_file_name_coding_system)
1317 (Vdefault_process_coding_system, Vfile_name_coding_system)
1318 (Vlast_coding_system_used, Vlocale_coding_system)
1319 (Vselect_safe_coding_system_function)
1320 (Vtranslation_table_for_input, coding_system_require_warning)
1321 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
b286858c
SM
1322 (eol_mnemonic_unix, inherit_process_coding_system):
1323 Remove declaration.
1324 * charset.h (Vcharset_list, Vcurrent_iso639_language):
1325 Remove declaration.
29208e82
TT
1326 * character.h (Vauto_fill_chars, Vchar_direction_table)
1327 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
1328 (Vscript_representative_chars, Vtranslation_table_vector)
1329 (Vunicode_category_table): Remove declaration.
1330 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
1331 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
1332 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
1333 (inhibit_modification_hooks): Remove declaration.
1334 * xterm.c (syms_of_xterm): Update.
1335 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
1336 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
1337 (x_mouse_click_focus_ignore_position)
1338 (x_underline_at_descent_line)
1339 (x_use_underline_position_properties): Remove.
1340 * xsmfns.c (syms_of_xsmfns): Update.
1341 (Vx_session_id, Vx_session_previous_id): Remove.
1342 * xsettings.c (syms_of_xsettings): Update.
1343 (Vxft_settings, use_system_font): Remove.
1344 * xselect.c (syms_of_xselect): Update.
1345 (Vselection_converter_alist, Vx_lost_selection_functions)
1346 (Vx_sent_selection_functions, x_selection_timeout): Remove.
1347 * xfns.c (syms_of_xfns): Update.
1348 (Vgtk_version_string, Vmotif_version_string)
1349 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
1350 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
1351 (Vx_no_window_manager, Vx_nontext_pointer_shape)
1352 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
1353 (Vx_sensitive_text_pointer_shape)
1354 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
1355 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1356 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
1357 Remove.
1358 * xfaces.c (syms_of_xfaces): Update.
1359 (Vface_default_stipple, Vface_font_rescale_alist)
1360 (Vface_ignored_fonts, Vface_new_frame_defaults)
1361 (Vface_remapping_alist, Vfont_list_limit)
1362 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
1363 * xdisp.c (syms_of_xdisp): Update.
1364 (Vauto_resize_tool_bars, Vblink_cursor_alist)
1365 (Vdisplay_pixels_per_inch, Vfontification_functions)
1366 (Vframe_title_format, Vglobal_mode_string)
1367 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
1368 (Vicon_title_format, Vinhibit_redisplay)
1369 (Vline_number_display_limit, Vline_prefix)
1370 (Vmax_mini_window_height, Vmenu_bar_update_hook)
1371 (Vmenu_updating_frame, Vmessage_log_max)
1372 (Vmouse_autoselect_window, Vnobreak_char_display)
1373 (Voverlay_arrow_position, Voverlay_arrow_string)
1374 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
1375 (Vresize_mini_windows, Vshow_trailing_whitespace)
1376 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
1377 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
1378 (Vwindow_scroll_functions, Vwindow_size_change_functions)
1379 (Vwindow_text_change_functions, Vwrap_prefix)
1380 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
1381 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
1382 (highlight_nonselected_windows, hscroll_margin)
1383 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
1384 (inhibit_menubar_update, inhibit_try_cursor_movement)
1385 (inhibit_try_window_id, inhibit_try_window_reusing)
1386 (line_number_display_limit_width)
1387 (make_cursor_line_fully_visible_p, message_truncate_lines)
1388 (mode_line_inverse_video, multiple_frames, overline_margin)
1389 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
1390 (tool_bar_max_label_size, underline_minimum_offset)
1391 (unibyte_display_via_language_environment, x_stretch_cursor_p):
1392 Remove.
1393 * window.c (syms_of_window): Update.
1394 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
1395 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
1396 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
1397 (Vwindow_point_insertion_type, auto_window_vscroll_p)
1398 (mode_line_in_non_selected_windows, next_screen_context_lines)
1399 (window_min_height, window_min_width): Remove.
1400 (scroll_margin): Remove declaration.
1401 * w32term.c (syms_of_w32term): Update.
1402 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
1403 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
1404 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
1405 (w32_use_visible_system_caret, x_underline_at_descent_line)
1406 (x_use_underline_position_properties): Remove.
1407 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
1408 Remove declaration.
1409 * w32select.c (syms_of_w32select): Update.
1410 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
1411 * w32proc.c (syms_of_ntproc): Update.
1412 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
1413 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
1414 (Vw32_start_process_inherit_error_mode)
1415 (Vw32_start_process_share_console)
1416 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
1417 (Vsystem_name): Remove declaration.
1418 * w32font.c (syms_of_w32font): Update.
1419 (Vw32_charset_info_alist): Remove.
1420 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
1421 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
1422 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
1423 (Vw32_enable_palette, Vw32_lwindow_modifier)
1424 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
1425 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
1426 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1427 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
1428 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
1429 (Vx_no_window_manager, Vx_nontext_pointer_shape)
1430 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
1431 (Vx_sensitive_text_pointer_shape)
1432 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
1433 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
1434 (w32_mouse_move_interval)
1435 (w32_pass_extra_mouse_buttons_to_system)
1436 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
1437 (w32_strict_fontnames, w32_strict_painting): Remove.
1438 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
1439 (Vw32_recognize_altgr, Vwindow_system_version)
b286858c
SM
1440 (w32_num_mouse_buttons, w32_use_visible_system_caret):
1441 Remove declaration.
29208e82
TT
1442 * w32console.c (syms_of_ntterm): Update.
1443 (w32_use_full_screen_buffer): Remove.
1444 (Vtty_defined_color_alist): Remove declaration.
1445 * w16select.c (syms_of_win16select): Update.
1446 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
1447 * undo.c (syms_of_undo): Update.
1448 (Vundo_outer_limit, Vundo_outer_limit_function)
1449 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
1450 Remove.
1451 * textprop.c (syms_of_textprop): Update.
1452 (Vchar_property_alias_alist, Vdefault_text_properties)
1453 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
1454 Remove.
1455 * terminal.c (syms_of_terminal): Update.
1456 (Vdelete_terminal_functions, Vring_bell_function): Remove.
1457 * term.c (syms_of_term): Update.
1458 (Vresume_tty_functions, Vsuspend_tty_functions)
1459 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
1460 Remove.
1461 * syntax.c (syms_of_syntax): Update.
1462 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
1463 (open_paren_in_column_0_is_defun_start)
1464 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
1465 (words_include_escapes): Remove.
1466 * search.c (syms_of_search): Update.
1467 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
1468 * process.c (syms_of_process): Update.
1469 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
1470 (delete_exited_processes): Remove.
1471 * print.c (syms_of_print): Update.
1472 (Vfloat_output_format, Vprint_charset_text_property)
1473 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
1474 (Vprint_length, Vprint_level, Vprint_number_table)
1475 (Vstandard_output, print_escape_multibyte)
1476 (print_escape_newlines, print_escape_nonascii, print_quoted):
1477 Remove.
1478 * msdos.c (syms_of_msdos): Update.
1479 (Vdos_unsupported_char_glyph): Remove.
1480 (unibyte_display_via_language_environment): Remove declaration.
1481 * minibuf.c (syms_of_minibuf): Update.
1482 (Vcompletion_regexp_list, Vhistory_add_new_input)
1483 (Vhistory_length, Vminibuffer_completing_file_name)
1484 (Vminibuffer_completion_confirm)
1485 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
1486 (Vminibuffer_exit_hook, Vminibuffer_help_form)
1487 (Vminibuffer_history_position, Vminibuffer_history_variable)
1488 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
1489 (Vread_buffer_function, Vread_expression_map)
1490 (completion_ignore_case, enable_recursive_minibuffers)
1491 (history_delete_duplicates, minibuffer_allow_text_properties)
1492 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
1493 Remove.
1494 * marker.c (syms_of_marker): Update.
1495 (byte_debug_flag): Remove.
1496 * macros.c (syms_of_macros): Update.
1497 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
1498 * lread.c (syms_of_lread): Update.
1499 (Vafter_load_alist, Vbyte_boolean_vars)
1500 (Vbytecomp_version_regexp, Vcurrent_load_list)
1501 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
1502 (Vload_history, Vload_path, Vload_read_function)
1503 (Vload_source_file_function, Vload_suffixes, Vobarray)
1504 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
1505 (Vread_symbol_positions_list, Vread_with_symbol_positions)
1506 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
1507 (force_load_messages, load_convert_to_unibyte)
1508 (load_dangerous_libraries, load_force_doc_strings)
1509 (load_in_progress): Remove.
1510 * keymap.c (syms_of_keymap): Update.
1511 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
1512 (Vminibuffer_local_completion_map)
1513 (Vminibuffer_local_filename_completion_map)
1514 (Vminibuffer_local_filename_must_match_map)
1515 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
1516 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
1517 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
1518 Remove.
1519 * keyboard.c (syms_of_keyboard): Update.
1520 (Vauto_save_timeout, Vcommand_error_function)
1521 (Vcommand_hook_internal, Vdeactivate_mark)
1522 (Vdeferred_action_function, Vdeferred_action_list)
1523 (Vdisable_point_adjustment, Vdouble_click_time)
1524 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
1525 (Vfunction_key_map, Vglobal_disable_point_adjustment)
1526 (Vhelp_char, Vhelp_event_list, Vhelp_form)
1527 (Vinput_method_function, Vinput_method_previous_message)
1528 (Vkey_translation_map, Vlast_event_frame)
1529 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
1530 (Vminibuffer_message_timeout, Voverriding_local_map)
1531 (Voverriding_local_map_menu_flag, Vpost_command_hook)
1532 (Vpre_command_hook, Vprefix_help_command)
1533 (Vsaved_region_selection, Vselect_active_regions)
1534 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
1535 (Vthis_command, Vthis_command_keys_shift_translated)
1536 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
1537 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
1538 (Vtty_erase_char, Vunread_command_events)
1539 (Vunread_input_method_events, Vunread_post_input_method_events)
1540 (auto_save_interval, cannot_suspend, do_mouse_tracking)
1541 (double_click_fuzz, extra_keyboard_modifiers)
1542 (inhibit_local_menu_bar_menus, last_command_event)
1543 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
1544 (menu_prompting, meta_prefix_char, num_input_keys)
1545 (num_nonmacro_input_events, polling_period, unread_command_char):
1546 Remove.
1547 * insdel.c (syms_of_insdel): Update.
1548 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
1549 * indent.c (syms_of_indent): Update.
1550 (indent_tabs_mode): Remove.
1551 * image.c (syms_of_image): Update.
1552 (Vimage_cache_eviction_delay, Vimage_types)
1553 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
1554 (cross_disabled_images): Remove.
1555 * fringe.c (syms_of_fringe): Update.
1556 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
1557 * frame.c (syms_of_frame): Update.
1558 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
1559 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
1560 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
1561 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
1562 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
1563 Remove.
1564 * fontset.c (syms_of_fontset): Update.
1565 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
1566 (Vfontset_alias_alist, Vignore_relative_composition)
1567 (Votf_script_alist, Vuse_default_ascent)
1568 (Vvertical_centering_font_regexp): Remove.
1569 * font.c (syms_of_font): Update.
1570 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
1571 (Vfont_weight_table, Vfont_width_table): Remove.
1572 * fns.c (syms_of_fns): Update.
1573 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
1574 * filelock.c (syms_of_filelock): Update.
1575 (Vtemporary_file_directory): Remove.
1576 * fileio.c (syms_of_fileio): Update.
1577 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
1578 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
1579 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
1580 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
1581 (Vinhibit_file_name_operation, Vset_auto_coding_function)
1582 (Vwrite_region_annotate_functions)
1583 (Vwrite_region_annotations_so_far)
1584 (Vwrite_region_post_annotation_function)
1585 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
1586 (Vw32_get_true_file_attributes): Remove declaration.
1587 * eval.c (syms_of_eval): Update.
1588 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
1589 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
1590 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
1591 (debug_on_next_call, debug_on_quit, debugger_may_continue)
1592 (max_lisp_eval_depth, max_specpdl_size): Remove.
1593 * emacs.c (syms_of_emacs): Update.
1594 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
1595 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
1596 (Vinstallation_directory, Vinvocation_directory)
1597 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
1598 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
1599 (Vsystem_configuration, Vsystem_configuration_options)
1600 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
1601 (inhibit_x_resources, noninteractive1): Remove.
1602 * editfns.c (syms_of_editfns): Update.
1603 (Vbuffer_access_fontified_property)
1604 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
1605 (Voperating_system_release, Vsystem_name, Vuser_full_name)
1606 (Vuser_login_name, Vuser_real_login_name): Remove.
1607 * dosfns.c (syms_of_dosfns): Update.
1608 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
1609 (dos_codepage, dos_country_code, dos_decimal_point)
1610 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
1611 (dos_super_key, dos_timezone_offset): Remove.
1612 * doc.c (syms_of_doc): Update.
1613 (Vbuild_files, Vdoc_file_name): Remove.
1614 * dispnew.c (syms_of_display): Update.
1615 (Vglyph_table, Vinitial_window_system)
1616 (Vredisplay_preemption_period, Vstandard_display_table)
1617 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
1618 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
1619 * dired.c (syms_of_dired): Update.
1620 (Vcompletion_ignored_extensions): Remove.
1621 (Vw32_get_true_file_attributes): Remove declaration.
1622 * dbusbind.c (syms_of_dbusbind): Update.
1623 (Vdbus_debug, Vdbus_registered_buses)
1624 (Vdbus_registered_objects_table): Remove.
1625 * data.c (syms_of_data): Update.
1626 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
1627 * composite.c (syms_of_composite): Update.
1628 (Vauto_composition_function, Vauto_composition_mode)
1629 (Vcompose_chars_after_function, Vcomposition_function_table):
1630 Remove.
1631 * coding.c (syms_of_coding): Update.
1632 (Vcharset_revision_table, Vcoding_category_list)
1633 (Vcoding_system_alist, Vcoding_system_for_read)
1634 (Vcoding_system_for_write, Vcoding_system_list)
1635 (Vdefault_process_coding_system, Venable_character_translation)
1636 (Vfile_coding_system_alist, Vlast_code_conversion_error)
1637 (Vlast_coding_system_used, Vlatin_extra_code_table)
1638 (Vlocale_coding_system, Vnetwork_coding_system_alist)
1639 (Vprocess_coding_system_alist)
1640 (Vselect_safe_coding_system_function)
1641 (Vstandard_translation_table_for_decode)
1642 (Vstandard_translation_table_for_encode)
1643 (Vtranslation_table_for_input, coding_system_require_warning)
1644 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
1645 (eol_mnemonic_unix, inherit_process_coding_system)
1646 (inhibit_eol_conversion, inhibit_iso_escape_detection)
1647 (inhibit_null_byte_detection): Remove.
1648 * cmds.c (syms_of_cmds): Update.
1649 (Vpost_self_insert_hook): Remove.
1650 * charset.c (syms_of_charset): Update.
1651 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
1652 (inhibit_load_charset_map): Remove.
1653 * character.c (syms_of_character): Update.
1654 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
1655 (Vchar_width_table, Vprintable_chars)
1656 (Vscript_representative_chars, Vtranslation_table_vector)
1657 (Vunicode_category_table): Remove.
1658 * ccl.c (syms_of_ccl): Update.
1659 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
1660 (Vtranslation_hash_table_vector): Remove.
1661 * category.c (syms_of_category): Update.
1662 (Vword_combining_categories, Vword_separating_categories): Remove.
1663 * callproc.c (syms_of_callproc): Update.
1664 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
1665 (Vexec_directory, Vexec_path, Vexec_suffixes)
1666 (Vinitial_environment, Vprocess_environment)
1667 (Vshared_game_score_directory, Vshell_file_name): Remove.
1668 * callint.c (syms_of_callint): Update.
1669 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
1670 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
1671 * bytecode.c (syms_of_bytecode): Update.
1672 (Vbyte_code_meter, byte_metering_on): Remove.
1673 * buffer.c (syms_of_buffer): Update.
1674 (Vafter_change_functions, Vbefore_change_functions)
1675 (Vchange_major_mode_hook, Vfirst_change_hook)
1676 (Vinhibit_read_only, Vkill_buffer_query_functions)
1677 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
1678 * alloc.c (syms_of_alloc): Update.
1679 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
1680 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
1681 (cons_cells_consed, floats_consed, garbage_collection_messages)
1682 (gc_cons_threshold, gcs_done, intervals_consed)
1683 (misc_objects_consed, pure_bytes_used, string_chars_consed)
1684 (strings_consed, symbols_consed, vector_cells_consed): Remove.
1685
1686 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
1687 (DEFVAR_INT): Assume global is in `globals'.
1688 * alloc.c (globals): Define.
1689
448c0820
TT
16902011-01-18 Tom Tromey <tromey@redhat.com>
1691
1692 * image.c (Vimagemagick_render_type): Remove redundant
1693 definition.
1694
8442d95d
TT
16952011-01-18 Tom Tromey <tromey@redhat.com>
1696
1697 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
1698 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
1699 (redisplay_window): Update.
1700 (syms_of_xdisp): Update.
1701
cab0ba98
TT
17022011-01-18 Tom Tromey <tromey@redhat.com>
1703
1704 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
1705 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
1706 Declare.
1707 * gtkutil.c (xg_uses_old_file_dialog):
1708 (xg_get_file_with_chooser):
1709 (xg_tool_bar_detach_callback): Don't redeclare globals.
1710
422745d0
TT
17112011-01-18 Tom Tromey <tromey@redhat.com>
1712
1713 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
1714 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
1715
7cae64b4
PE
17162011-01-18 Paul Eggert <eggert@cs.ucla.edu>
1717
1718 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
1719 defined __GNUC__. ../configure now checks for this GCC feature,
1720 which is now also supported by IBM and Oracle compilers.
1721 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
1722 since Solaris malloc returns mult-of-8.
1723
a9faac5c 17242011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
1725
1726 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
1727
a3e44e79 17282011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 1729
6e8e6bf2
PE
1730 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
1731 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
1732 * data.c (Fnumber_to_string): Use it.
1733 * print.c (float_to_string, print_object): Likewise.
1734
4004364e
PE
1735 Include <unistd.h> unilaterally.
1736 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
1737 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
1738 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
1739 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
1740 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
1741 * xterm.c:
1742 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
1743 unistd.h is always present now, possibly supplied by gnulib.
1744
e84aba69
PE
1745 * mktime.c: Remove; moving to ../lib.
1746
1e11dbe3
PE
1747 Use gnulib's mktime module.
1748 * deps.mk (mktime.o): Remove rule.
1749
fa2c4f56
PE
1750 Use gnulib's ftoastr module.
1751 * print.c: Include ftoastr.h.
1752 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
1753 Remove; no longer needed.
1754 (float_to_string): Use dtoastr rather than rolling our own code,
1755 which had an off-by-one bug on non-IEEE hosts.
1756
9a514d4a
PE
1757 Automate syncing from gnulib.
1758 * Makefile.in (lib): New macro.
1759 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
1760 ($(lib)/libgnu.a): New rule.
1761 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
1762
717c30e0
PE
1763 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
1764 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
1765 so change the type of 'ign' to unsigned int from int.
1766
8865d794
PE
1767 * regex.c (analyse_first): Remove unreachable 'continue' statement.
1768
4ef36a7b
PE
1769 * xterm.h (struct x_display_info): Remove stray semicolon.
1770 The extra semicolon didn't conform to the C standard.
1771 Problem reported by Sun cc.
1772
6df4097e
PE
1773 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
1774 These changes make compilation easier to follow with Sun cc.
1775 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
1776 EMACS_INT values without provoking overflow diagnostics.
1777 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
1778 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
1779 diagnostic with signed left shift.
9fba3563 1780
410ed5c3
PE
1781 * fileio.c (make_temp_name): Remove unreachable code.
1782
97be3ce3
PE
1783 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
1784 Previously it was marked by preceding it with "return;", but
1785 Sun cc complains about this.
1786
9fba3563
PE
1787 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
1788 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
1789 which fixed Bug#2370. Caught by Sun cc.
1790
6dc1d2d3
MR
17912011-01-15 Martin Rudalics <rudalics@gmx.at>
1792
1793 * window.c (inhibit_point_swap): New variable.
1794 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
1795 point this time.
1796 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
1797 of setting selected_window to nil (Bug#7728).
1798
f853f599
TH
17992011-01-11 Tassilo Horn <tassilo@member.fsf.org>
1800
8dabbfd6
SM
1801 * image.c (imagemagick_load_image, Finit_image_library):
1802 Free intermediate image after creating a MagickWand from it.
1803 Terminate MagickWand environment after image loading.
f853f599 1804
2bc92a93
MA
18052011-01-10 Michael Albinus <michael.albinus@gmx.de>
1806
1807 * dbusbind.c (Fdbus_register_service): Raise an error in case of
1808 unexpected return values.
1809 (Fdbus_register_method): Remove connection initialization.
1810
18112011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
1812
1813 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
1814 used by Fdbus_register_service.
1815 (QCdbus_request_name_replace_existing): Likewise.
1816 (QCdbus_request_name_do_not_queue): Likewise.
1817 (QCdbus_request_name_reply_primary_owner): Likewise.
1818 (QCdbus_request_name_reply_in_queue): Likewise.
1819 (QCdbus_request_name_reply_exists): Likewise.
1820 (QCdbus_request_name_reply_already_owner): Likewise.
1821 (Fdbus_register_service): New function.
1822 (Fdbus_register_method): Use Fdbus_register_service to do the name
1823 registration.
1824 (syms_of_dbusbind): Add symbols dbus-register-service,
1825 :allow-replacement, :replace-existing, :do-not-queue,
1826 :primary-owner, :existing, :in-queue and :already-owner.
1827
21a76236
CY
18282011-01-09 Chong Yidong <cyd@stupidchicken.com>
1829
1830 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
1831 when removing extra buttons.
1832
3d91e302
CY
18332011-01-08 Chong Yidong <cyd@stupidchicken.com>
1834
1835 * fns.c (Fyes_or_no_p): Doc fix.
1836
0d23ffb5
AS
18372011-01-08 Andreas Schwab <schwab@linux-m68k.org>
1838
1839 * fns.c (Fyes_or_no_p): Add usage.
1840
9dc3366b
GM
18412011-01-08 Glenn Morris <rgm@gnu.org>
1842
d0981f82
GM
1843 * makefile.w32-in ($(EMACS)):
1844 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
1845
9dc3366b
GM
1846 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
1847 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
1848
466cbae9
AS
18492011-01-07 Andreas Schwab <schwab@linux-m68k.org>
1850
1851 * image.c (imagemagick_load_image): Fix some resource leaks and
1852 error handling.
1853
8c51d2a2
CY
18542011-01-07 Chong Yidong <cyd@stupidchicken.com>
1855
1856 * fns.c (Fyes_or_no_p): Accept format string args.
1857
66b7b0fe
GM
18582011-01-07 Glenn Morris <rgm@gnu.org>
1859
1860 * emacs.c (no_site_lisp): New int.
1861 (USAGE1): Add --no-site-lisp, mention -Q uses it.
1862 (main): Set no_site_lisp.
1863 (standard_args): Add --no-site-lisp.
1864 * lisp.h (no_site_lisp): New int.
1865 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
1866 directories to Vload_path.
1867
2018939f
AS
18682011-01-05 Andreas Schwab <schwab@linux-m68k.org>
1869
1870 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
1871
6ed843e5
MA
18722011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
1873
8dabbfd6 1874 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
1875 dont_register_service. Updated docstring accordingly.
1876
3f9b7090
GM
18772011-01-04 Glenn Morris <rgm@gnu.org>
1878
1879 * emacs.c (emacs_copyright): Update short copyright year to 2011.
1880
d82bce4a
EZ
18812011-01-03 Eli Zaretskii <eliz@gnu.org>
1882
1883 * image.c (png_jmpbuf): Remove definition.
1884 (my_png_error, png_load): Don't use png_jmpbuf.
1885
7c420169
CY
18862011-01-02 Eli Zaretskii <eliz@gnu.org>
1887
1888 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
1889
18902011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
1891
1892 * image.c <Qlibpng_version>: New variable.
1893 (syms_of_image): Intern and staticpro it. Set its value to the
1894 version of PNG library we were compiled with.
1895 (my_png_error, png_load): Avoid GCC warnings about direct access
1896 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
1897 (png_jmpbuf): New macro.
1898 (my_png_error, png_load): Use it instead of #ifdef'ing according
1899 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 1900
7c420169 19012011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
1902
1903 * .gdbinit (xgetptr): Fix the union+lsb case.
1904 (xbacktrace): Fix the union case.
1905
7c420169 19062011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
1907
1908 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
1909 different from selected-window's.
1910
7c420169 19112011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 1912
71fe378d
EZ
1913 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
1914 equivalent of a menu item when the key sequence is given by the
1915 `:keys' attribute. (Bug#7662)
1916
2e4ab211
EZ
1917 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
1918 the basic faces are supported.
1919
7c420169 19202011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
1921
1922 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
1923
7c420169 19242011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
1925
1926 * xdisp.c (Fformat_mode_line): Fix last change.
1927
7c420169 19282011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
1929
1930 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
1931 faces (Bug#7587).
1932
7c420169 19332011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
1934
1935 * fileio.c (Fexpand_file_name): One more doc fix.
1936
3afff00e
CY
19372011-01-01 Chong Yidong <cyd@stupidchicken.com>
1938
1939 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
1940 image or label in the container.
1941 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
1942 (xg_show_toolbar_item): Function deleted.
1943 (xg_tool_item_stale_p): New function.
1944 (update_frame_tool_bar): Calculate tool-bar style once per call.
1945 Instead of hiding text labels, omit them. Don't use
1946 xg_show_toolbar_item; create new GtkToolItems from scratch if
1947 necessary, instead of trying to re-use them. This avoids an
1948 annoying animation when changing tool-bars.
1949
aeb7e951
JD
19502010-12-31 Jan Djärv <jan.h.d@swipnet.se>
1951
1952 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
1953 title and buffer filename only for RepresentedFilename.
1954 Handle bad UTF-8 in buffer name (Bug#7517).
1955
5bbb4727
JD
19562010-12-30 Jan Djärv <jan.h.d@swipnet.se>
1957
1958 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
1959
1960 * nsfns.m (ns_set_name_iconic): Remove.
1961 (ns_set_name_internal): New function (Bug#7517).
1962 (Vicon_title_format): Extern declare.
1963 (ns_set_name): Call ns_set_name_internal.
1964 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
1965 (x_implicitly_set_name): Ditto.
1966 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
1967 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
1968
f1aab3ff
ŠN
19692010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
1970
1971 * window.c (syms_of_window): Add missing defsubr for
1972 window-use-time.
1973
365525b3
AS
19742010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1975
1976 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
1977 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
1978
59fc5cf9
AS
19792010-12-27 Andreas Schwab <schwab@linux-m68k.org>
1980
2f7c71a1
AS
1981 * buffer.c: Remove unused declarations.
1982 * buffer.h: Likewise.
1983 * charset.h: Likewise.
1984 * composite.h: Likewise.
1985 * dispextern.h: Likewise.
1986 * dispnew.c: Likewise.
1987 * font.h: Likewise.
1988 * fontset.c: Likewise.
1989 * fontset.h: Likewise.
1990 * intervals.h: Likewise.
1991 * keymap.h: Likewise.
1992 * lisp.h: Likewise.
1993 * syntax.c: Likewise.
1994 * syntax.h: Likewise.
1995 * termhooks.h: Likewise.
1996 * window.h: Likewise.
1997 * xsettings.h: Likewise.
1998 * xterm.c: Likewise.
1999 * xterm.h: Likewise.
2000
2001 * chartab.c (sub_char_table_ref): Make static.
2002 * dispnew.c (line_hash_code, required_matrix_height)
2003 (required_matrix_width): Likewise.
2004 * eval.c (interactive_p, apply_lambda): Likewise.
2005 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
2006 Likewise.
2007 * font.c (QCadstyle, QCregistry, font_make_spec)
2008 (font_parse_fcname, font_encode_char, font_at): Likewise.
2009 * frame.c (x_frame_get_arg): Likewise.
2010 * keymap.c (get_keyelt): Likewise.
2011 * lread.c (read_filtered_event): Likewise.
2012 * print.c (write_string_1): Likewise.
2013 * window.c (delete_window, window_height, window_width)
2014 (foreach_window): Likewise.
2015 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
2016 * xterm.c (x_scroll_bar_clear, xembed_set_info)
2017 (xembed_send_message): Likewise.
2018
2019 * eval.c (run_hook_list_with_args): Delete.
2020 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
2021 * terminal.c (get_terminal_param): Likewise.
2022 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
2023
c4b607ed
AS
2024 * scroll.c: Fix comment.
2025
59fc5cf9
AS
2026 * dispnew.c (add_window_display_history)
2027 (add_frame_display_history, glyph_row_slice_p)
2028 (find_glyph_row_slice, flush_stdout)
2029 (check_matrix_pointer_lossage, matrix_row)
2030 (check_matrix_invariants, check_window_matrix_pointers)
2031 (check_matrix_pointers, window_to_frame_vpos)
2032 (window_to_frame_hpos): Prototize.
2033 * textprop.c (erase_properties): Likewise.
2034
a65b85b5
SM
20352010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
2036
17870c01
SM
2037 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
2038 (print_preprocess): Fix handling of uninterned symbols in last change.
2039
a65b85b5
SM
2040 * print.c (print, print_preprocess, print_object): Use a hash table
2041 rather than a linear table for Vprint_number_table.
2042
f13183cf
CY
20432010-12-20 Chong Yidong <cyd@stupidchicken.com>
2044
2045 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
2046
94975270
CY
20472010-12-20 Chong Yidong <cyd@stupidchicken.com>
2048
2049 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
2050 (parse_tool_bar_item): Use it to obtain image separators for
2051 displays not using native tool-bar separators.
2052
2053 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
2054 specially, since this is now done in parse_tool_bar_item.
2055
ef1b0ba7
SM
20562010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
2057
2058 Minor clean up to silence some gcc warnings.
2059 * window.c (Fset_window_buffer):
2060 * xterm.c (x_set_frame_alpha): Restructure code to silence
2061 compiler warning.
2062 (handle_one_xevent): Remove unused var `p'.
2063 (do_ewmh_fullscreen): Remove unused var `lval'.
2064 (xembed_set_info): Remove unused var `atom'.
2065 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
2066 compiler warning.
2067 * fontset.c (fontset_id_valid_p, dump_fontset):
2068 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
2069 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
2070 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
2071 label only when it's used.
2072 * image.c (x_create_bitmap_from_xpm_data):
2073 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
2074 its callers.
2075 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
2076 `consumed_chars'.
2077 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
2078 (decode_coding_emacs_mule): Remove unused label `retry'.
2079 (detect_eol): Add parens to silence compiler warning.
2080 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
2081 it's used to silence the compiler.
2082 (make_number): Modernize k&r declaration.
2083 (mark_char_table): Add parens to silence compiler warning.
2084
4039c786
CY
20852010-12-17 Chong Yidong <cyd@stupidchicken.com>
2086
2087 * keyboard.c (parse_tool_bar_item): Allow menu separators in
2088 tool-bar maps.
2089 (menu_separator_name_p): New function, from gtkutil.c.
2090 (separator_names): Move from gtkutil.c.
2091
2092 * keyboard.h (menu_separator_name_p): Add prototype.
2093
2094 * gtkutil.c (XG_BIN_CHILD): New macro.
2095 (xg_get_menu_item_label, xg_update_menubar)
2096 (xg_update_menu_item, xg_tool_bar_menu_proxy)
2097 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
2098 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
2099 (create_menus, xg_update_submenu, update_frame_tool_bar):
2100 Use menu_separator_name_p.
4039c786
CY
2101
2102 * nsmenu.m (name_is_separator): Function deleted.
2103 (addItemWithWidgetValue): Use menu_separator_name_p.
2104
2105 * w32menu.c (name_is_separator): Function deleted.
2106 (add_menu_item): Use menu_separator_name_p.
2107
aa936e8e
JD
21082010-12-16 Jan Djärv <jan.h.d@swipnet.se>
2109
2110 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
2111 same as the background, use the face forground as cursor.
2112
f49d1f52 21132010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
2114
2115 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
2116
f49d1f52 21172010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 2118
f0559026
EZ
2119 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
2120 (face_before_or_after_it_pos, next_element_from_string)
2121 (next_element_from_c_string, produce_stretch_glyph): Remove unused
2122 calculations of maximum string length before calling
2123 string_char_and_length and STRING_CHAR_AND_LENGTH.
2124 (string_char_and_length): Update commentary: MAXLEN is no longer
2125 needed.
2126
f49d1f52 21272010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
2128
2129 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
2130 as (Qsave_session arg).
2131
2132 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
2133 (smc_die_CB): Make an event with arg Qt.
2134 (Fhandle_save_session): If event has Qt as argument,
2135 call Fkill_emacs (Bug#7552).
2136
f49d1f52
SM
21372010-12-13 Chong Yidong <cyd@stupidchicken.com>
2138
2139 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
2140
21412010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
2142
2143 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
2144
f49d1f52 21452010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
2146
2147 * dispextern.h (struct it): New member overlay_strings_charpos.
2148
2149 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
2150 charpos where we computed n_overlay_strings.
2151 (next_overlay_string): Load overlay strings at recorded position,
2152 which may not be the same as the iterator's charpos (Bug#7016).
2153
f49d1f52 21542010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
2155
2156 * xdisp.c (try_scrolling): Avoid infloop if the first line is
2157 obscured due to a vscroll (Bug#7537).
2158
f49d1f52 21592010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
2160
2161 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
2162
2163 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
2164 Use FRAME_TOOLBAR_HEIGHT.
2165 (x_set_offset): Handle XNegative and YNegative in
2166 f->size_hint_flags (Bug#7510).
2167
39321b94
EZ
21682010-12-11 Eli Zaretskii <eliz@gnu.org>
2169
2170 * w32fns.c (Fx_show_tip): Call try_window with last argument
2171 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
2172 solved. Round up the tip height to an integral multiple of the
2173 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
2174 (Bug#7398)
2175
ec1b9b17
GM
21762010-12-08 Glenn Morris <rgm@gnu.org>
2177
2178 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
2179
3c2317e8
LMI
21802010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
2181
2182 * xml.c (parse_region): Ignore blank HTML nodes.
2183 (make_dom): Return CDATA sections (like <style>foo</style>) as
2184 text nodes.
2185
bba3e508
SM
21862010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
2187
2188 * lread.c (read1): Allow newstyle unquote outside of backquote.
2189 Disallow old-style backquotes inside new-style backquotes.
2190 Don't count unquotes to figure out when we're "syntactically inside
2191 but semantically outside of a backquote" any more.
2192 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
2193 to all contexts.
2194
d23d8608
CY
21952010-12-05 Chong Yidong <cyd@stupidchicken.com>
2196
2197 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
2198
d6a003a8
AS
21992010-12-04 Andreas Schwab <schwab@linux-m68k.org>
2200
2201 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
2202 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
2203 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
2204
201ef780
AS
22052010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2206
2207 * lisp.h (union Lisp_Object): Explicitly declare signedness of
2208 bit-field.
2209 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
2210 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
2211 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
2212 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
2213 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
2214 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
2215 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
2216 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
2217 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
2218 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
2219 * m/hp800.h: Remove file.
2220 * m/mips.h: Remove file.
2221
146490c3
JD
22222010-12-03 Jan Djärv <jan.h.d@swipnet.se>
2223
2224 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
2225 with cursor color and draw a rectangle around the image (Bug#7412).
2226
babc8f0d
AS
22272010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2228
2229 * frame.c (x_set_font): Remove unused variable.
2230
9583e9a0
JD
22312010-12-02 Jan Djärv <jan.h.d@swipnet.se>
2232
dd723bbd
JD
2233 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
2234
9583e9a0
JD
2235 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
2236 drawing text under filled box cursor (Bug#7479).
2237
07976ae3 22382010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
2239
2240 * charset.c (emacs_mule_charset): Make it an array of charset ID;
2241 i.e. integer.
bba3e508 2242 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
2243 (init_charset_once): Likewise.
2244
bba3e508
SM
2245 * charset.h (emacs_mule_charset): Adjust the prototype.
2246 Delete duplicated extern.
b84ae584
KH
2247
2248 * coding.c (emacs_mule_char): Adjust for the change of
2249 emacs_mule_charset.
2250
2251 * lread.c (read_emacs_mule_char): Adjust for the change of
2252 emacs_mule_charset.
2253
07976ae3 22542010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
2255
2256 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
2257 of w32api >= 3.15. (Bug#6989) (Bug#7452)
2258
07976ae3 22592010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
2260
2261 * alloc.c (mark_terminals): Ensure that the image cache is marked
2262 even if the terminal object was marked earlier (Bug#6301).
2263
35f1de62
CY
22642010-11-21 Chong Yidong <cyd@stupidchicken.com>
2265
2266 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
2267
07976ae3 22682010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
2269
2270 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
2271 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 2272 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 2273
8547874a
EZ
22742010-11-26 Eli Zaretskii <eliz@gnu.org>
2275
228482b2
EZ
2276 * xdisp.c (set_message_1): Force paragraph direction in echo area
2277 be left-to-right.
2278
8547874a
EZ
2279 * keyboard.c (make_lispy_position): Put a meaningful value in yret
2280 when the click is on the header or mode line.
2281
1e2dddbe
EZ
22822010-11-25 Eli Zaretskii <eliz@gnu.org>
2283
2284 * xdisp.c (set_cursor_from_row): Don't forget to consider the
2285 `cursor' property of the first character in overlay strings.
12365240 2286 (Bug#7474) (Bug#7481)
1e2dddbe 2287
50795d1f
JD
22882010-11-24 Jan Djärv <jan.h.d@swipnet.se>
2289
2290 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
2291 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
2292 (keyDown): Parse left and right keys separately (Bug#7458).
2293 Compare Left key masks exactly (Bug#7458).
50795d1f 2294
f8ab8c1f
EZ
22952010-11-23 Eli Zaretskii <eliz@gnu.org>
2296
2297 * intervals.c (temp_set_point_both): Define before calling, to
2298 avoid GCC warnings.
2299
2e8a4797
DN
23002010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
2301
b29116ef
DN
2302 * nsmenu.m: Use #include <config.h> instead of "config.h".
2303
b932f8b1 2304 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 2305 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
2306 Move declarations ...
2307 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 2308 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
2309 ... here.
2310
42c8bc9b
DN
2311 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
2312 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
2313 (gdb_pvec_type):
2314 * print.c (print_output_debug_flag):
2315 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
2316 (safe_debug_print): New declaration.
2317
2e8a4797
DN
2318 * xterm.c:
2319 * systty.h:
2320 * sound.c: Include <sys/ioctl.h> unconditionally.
2321
b609f591
YM
23222010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2323
2324 * alloc.c (mark_maybe_object): Return early if given a Lisp
2325 integer (Bug#6301).
2326
731e263a
KB
23272010-11-21 Ken Brown <kbrown@cornell.edu>
2328
2329 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
2330
b7d1e144
JD
23312010-11-21 Jan Djärv <jan.h.d@swipnet.se>
2332
2333 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
2334 Define (Bug#7458).
2335 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
2336 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
2337 NSRightControlKeyMask also (Bug#7458).
2338 (keyDown): Ditto (Bug#7458).
2339 (syms_of_nsterm): Defvar ns-right-command-modifier and
2340 ns-right-control-modifier (Bug#7458).
2341
b7982059
DN
23422010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2343
bee3419f
DN
2344 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
2345 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
2346
b7982059
DN
2347 * intervals.h (temp_set_point, temp_set_point_both):
2348 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
2349
01664ed1
KB
23502010-11-20 Ken Brown <kbrown@cornell.edu>
2351
2352 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
2353
7c2d713b
EZ
23542010-11-20 Eli Zaretskii <eliz@gnu.org>
2355
2356 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
2357 \xNNNNNN for hex-code display of glyphless characters.
2358
d2bd5189
JD
23592010-11-20 Jan Djärv <jan.h.d@swipnet.se>
2360
2361 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
2362 Set important to ! vert_only.
2363 (xg_show_toolbar_item): Don't show label horizontally if
2364 tool item isn't important.
2365 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
2366 xg_make_tool_item, or update important on existing tool item.
2367
2368 * keyboard.c (QCvert_only): New variable.
2369 (parse_tool_bar_item): Check for QCvert_only.
2370 (syms_of_keyboard): Initialize QCvert_only.
2371
2372 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
2373
d9a95e67
EZ
23742010-11-20 Eli Zaretskii <eliz@gnu.org>
2375
2376 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
2377 same in-line.
2378
b6557553
AS
23792010-11-20 Andreas Schwab <schwab@linux-m68k.org>
2380
2381 * xfaces.c (lookup_face): Make static.
2382 * dispnew.c (copy_row_except_pointers): Likewise.
2383 * syntax.c (dec_bytepos): Likewise.
2384 (inc_bytepos): Remove.
2385 * dispextern.h (lookup_face): Remove declaration.
2386
f48fe1f0
EZ
23872010-11-19 Eli Zaretskii <eliz@gnu.org>
2388
2389 * xdisp.c (set_cursor_from_row): Display cursor after all the
2390 glyphs that come from an overlay. Don't overstep the last glyph
2391 when skipping glyphs from an overlay. (Bug#6687)
2392
654ef137
DN
23932010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
2394
84dfc8a7
DN
2395 * alloc.c (refill_memory_reserve): Move declaration ...
2396 * lisp.h (refill_memory_reserve): ... here.
2397
94fa3833
DN
2398 * strftime.c (_strftime_copytm): Add declaration.
2399
dde990a0
DN
2400 * callproc.c (syms_of_callproc): Use intern_c_string.
2401
50c77428
DN
2402 Move declarations from .c files to .h files.
2403 * process.c (timers_run):
2404 * minibuf.c (quit_char):
2405 * lread.c (read_emacs_mule_char):
2406 * keyboard.c (minibuf_level, message_enable_multibyte)
2407 (pending_malloc_warning):
2408 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
2409 (Qonly): Remove declarations.
2410 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
2411 (Vselect_active_regions):
2f8f196d 2412 * keyboard.h (timers_run): Add declarations.
50c77428 2413
654ef137
DN
2414 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
2415 (tm_diff): Convert definitions to standard C.
2416 (extra_args_spec_iso): Remove, unused.
2417
4a47c275 24182010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
2419
2420 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
2421
2422 * config.in (HAVE_G_TYPE_INIT): New symbol.
2423
4a47c275 24242010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
2425
2426 * lread.c (Fload): Mention `load-in-progress' and
2427 `load-file-name'. (Bug#7346)
2428
86520d8c
EZ
2429 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
2430 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
2431 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
2432 subprocesses. Use buffer_free only ifdef subprocesses.
2433
2434 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
2435 the subprocesses version, not in the non-subprocesses one.
2436
794a4b6d
EZ
2437 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
2438
146d267b
EZ
24392010-11-17 Eli Zaretskii <eliz@gnu.org>
2440
2441 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
2442 lines on text-mode terminals. (bug#7417)
2443
fad0d565
SM
24442010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2445
2446 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
2447 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
2448
6b4bb703
KH
24492010-11-17 Kenichi Handa <handa@m17n.org>
2450
2451 * coding.c (Fset_terminal_coding_system_internal): Fix previous
2452 change (set charset-ID list instead of charset-symbol list).
2453
9173a8fb
CY
24542010-11-16 Chong Yidong <cyd@stupidchicken.com>
2455
2456 * keyboard.c (make_lispy_position): For text area clicks, record Y
2457 pixel position relative to the text area, excluding header line.
2458 Also change X and Y to Lisp_Objects, not pointers; don't return
2459 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
2460 buffer_posn_from_coords counting from the start of the text area.
2461 (Fposn_at_x_y, make_lispy_event): Callers changed.
2462
2463 * window.c (coordinates_in_window): Change X and Y to ints rather
2464 than pointers; don't return coordinates via pointers.
2465 (struct check_window_data): Change X and Y from pointers to ints.
2466 (window_from_coordinates): Remove args WX and WY; don't return
2467 coordinates via pointers.
2468 (Fcoordinates_in_window_p, window_from_coordinates):
2469 (check_window_containing, Fwindow_at): Callers changed.
2470 (window_relative_x_coord): New function.
2471
2472 * window.h (window_from_coordinates, window_relative_x_coord):
2473 Update prototypes.
2474
2475 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
2476 the start of the text area.
2477
2478 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
2479 call. Use window_relative_x_coord.
2480 (note_mouse_highlight): Change window_from_coordinates call.
2481
2482 * w32term.c (w32_read_socket):
2483 * msdos.c (dos_rawgetc):
2484 * xterm.c (handle_one_xevent): Likewise.
2485
d2762c86
DN
24862010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
2487
2488 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
2489 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
2490 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
2491 Convert definitions to standard C.
2492 * regex.c: Do not include <stdlib.h>, config.h does it.
2493 Include unistd.h.
2494 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
2495 (regerror, regfree): Convert definitions to standard C.
2496 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
2497 (__mktime_internal): Convert definitions to standard C.
2498
c2f0866a
DN
24992010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
2500
42a7e7f1
DN
2501 * w32proc.c:
2502 * w32inevt.c:
2503 * w32heap.c:
2504 * w32.c: Remove config.h include guards.
2505
67802943
DN
2506 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
2507 No code changes.
2508
f0e1af46
DN
2509 * process.c: Include <sys/ioctl.h> unconditionally,
2510 keyboard.c already does it.
2511
c2f0866a
DN
2512 * keyboard.c (pending_malloc_warning): Add const to match
2513 definition in alloc.c.
2514 (Fset_input_interrupt_mode): Simplify #ifdefs.
2515
92d3ab7e
DN
25162010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
2517
12e610e8
DN
2518 Clean up systty.h macros.
2519 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
2520 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
2521 definition in all uses.
2522 (EMACS_TTY_TABS_OK): Remove, it has a single user.
2523 * sysdep.c (discard_tty_input, child_setup_tty)
2524 (init_sys_modes, tabs_safe_p, reset_sys_modes):
2525 * emacs.c (shut_down_emacs):
2526 * callproc.c (child_setup):
2527 * term.c (dissociate_if_controlling_tty): Inline removed macros.
2528
92d3ab7e
DN
2529 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
2530
a3e6bad4
CY
25312010-11-14 Chong Yidong <cyd@stupidchicken.com>
2532
2533 * w32fns.c (Fx_create_frame):
2534 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
2535 resource here; it's now done at startup.
2536
5a232ffb
J
25372010-11-14 Jan Djärv <jan.h.d@swipnet.se>
2538
2539 * xterm.c (set_wm_state): Add Qnil to final cons.
2540
2541 * xselect.c (x_send_client_event): Remove unused variables cons and
2542 size.
2543
24021b38
YM
25442010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2545
2f8f196d 2546 * keyboard.c (modify_event_symbol): Add const to array elements of
24021b38
YM
2547 arg NAME_TABLE.
2548 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
2549 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
2550 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
2551 Add const to array elements.
2552 (scroll_bar_parts): Make static. Fix position of const.
2553
2554 * w32fns.c (lispy_function_keys): Add const to extern.
2555
2556 * w32inevt.c (lispy_function_keys): Likewise.
2557
afa42fe3
CY
25582010-11-14 Chong Yidong <cyd@stupidchicken.com>
2559
2560 * xfns.c (Fx_create_frame): Don't check for the cursorColor
2561 resource here; it's now done at startup.
2562
53260a94
DN
25632010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
2564
c865c575 2565 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 2566
c865c575 2567 Fix compilation on Solaris.
ff2e8052
DN
2568 * sysdep.c: Do not #include <term.h>.
2569 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
2570
53260a94
DN
2571 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
2572
933e29ff
J
25732010-11-13 Jan Djärv <jan.h.d@swipnet.se>
2574
2575 * xterm.c (set_wm_state): Don't put Atom in cons, call
2576 make_fixnum_or_float on them first.
2577 (x_term_init): Initialize Xatom_net_supporting_wm_check and
2578 Xatom_net_supported correctly.
2579
2580 * xselect.c (x_send_client_event): Move CHECK_STRING ...
2581 (Fx_send_client_event): to here.
2582
a048073e
MR
25832010-11-13 Martin Rudalics <rudalics@gmx.at>
2584
2585 * window.c (Fwindow_use_time): New function.
2586
0eb025fb
EZ
25872010-11-13 Eli Zaretskii <eliz@gnu.org>
2588
2589 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
2590 zero-width characters.
2591
2592 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
2593
2594 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
2595 box before drawing the glyphs inside it.
2596
2597 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
2598
bba3e508
SM
2599 * dispextern.h (enum glyphless_display_method):
2600 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
2601 All users changed.
0eb025fb 2602
bba3e508
SM
2603 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2604 Fix comments.
0eb025fb
EZ
2605 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
2606 whitespace in "[]", to simulate a box. Don't use uninitialized
2607 variable `width'.
2608
c869cc37
JD
26092010-11-11 Julien Danjou <julien@danjou.info>
2610
2d9074ba
JD
2611 * xsettings.c (init_xsettings): Use already fetch atoms.
2612
2613 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
2614 from dpyinfo.
2615
2616 * xselect.c (Fx_send_client_event): Split and create
2617 x_send_client_event.
2618
2619 * lisp.h: Do not EXFUN Fx_send_client_event.
2620
2621 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
2622 from dpyinfo.
2623 (wm_supports): Use atoms from dpyinfo.
2624 (do_ewmh_fullscreen): Use atoms from dpyinfo.
2625 (x_ewmh_activate_frame): Use atoms from dpyinfo.
2626 (xembed_set_info): Use atoms from dpyinfo.
2627 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
2628 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
2629 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
2630 Get all atoms in one round-trip.
2631 (set_wm_state): Use x_send_client_event rather than
2632 Fx_send_client_event, using Atom directly.
2633 (x_ewmh_activate_frame): Ditto.
2634 (x_set_sticky): Pass atoms to set_wm_state.
2635 (do_ewmh_fullscreen): Ditto.
2636
2d9074ba
JD
2637 * xterm.h (x_display_info): Add Xatom_net_supported,
2638 Xatom_net_supporting_wm_check, Xatom_net_active_window,
2639 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
2640
c869cc37
JD
2641 * xfns.c (Fx_show_tip): Fix typo in docstring.
2642
1a4236ea
SM
26432010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
2644
2645 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
2646 it's not negative.
2647
3106121c
YM
26482010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2649
2650 * font.c (font_filter_properties): Add const to array elements of
2651 properties args.
2652
2653 * font.h (font_filter_properties): Likewise.
2654
2655 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
2656 elements.
2657
2658 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
2659
da1fec2b
MA
26602010-11-10 Michael Albinus <michael.albinus@gmx.de>
2661
2662 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
2663 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
2664 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
2665 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
2666 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
2667
bd6bc222
GM
26682010-11-10 Glenn Morris <rgm@gnu.org>
2669
2670 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
2671
c0098065
EZ
26722010-11-09 Eli Zaretskii <eliz@gnu.org>
2673
bd6bc222 2674 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 2675
d607b96b 26762010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
2677
2678 * image.c (free_image): Don't garbage the frame here, since this
2679 function can be called while redisplaying (Bug#7210).
2680 (uncache_image): Garbage the frame here (Bug#6426).
2681
d607b96b 26822010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 2683
d607b96b
SM
2684 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
2685 parent is the root window. Check this after traversing window tree.
184765cc 2686
d607b96b 2687 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 2688
d607b96b 2689 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 2690
d607b96b
SM
2691 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
2692 before traversing window tree (Bug#5721).
c2e124a9 2693
27f92be7
J
26942010-11-07 Jan Djärv <jan.h.d@swipnet.se>
2695
66b16767
J
2696 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
2697
25f38310
SM
2698 * xdisp.c (note_mode_line_or_margin_highlight):
2699 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 2700
a971c0a7
EZ
27012010-11-06 Eli Zaretskii <eliz@gnu.org>
2702
2703 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
2704 adjust width of tool-tip frame to the width of text, excluding the
2705 stretch glyph at the beginning of R2L glyph rows.
2706
2707 * w32fns.c (Fx_show_tip): Likewise.
2708
80417b95
JD
27092010-11-06 Jan Djärv <jan.h.d@swipnet.se>
2710
2711 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 2712 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 2713
28118eb6
EZ
27142010-11-05 Eli Zaretskii <eliz@gnu.org>
2715
c1fc2d3a 2716 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
2717
2718 * term.c: Remove static mouse_face_* variables. All users
2719 changed.
2720 (term_show_mouse_face, term_clear_mouse_face)
2721 (fast_find_position, term_mouse_highlight): Functions deleted.
2722 (tty_draw_row_with_mouse_face): New function.
2723 (term_mouse_movement): Call note_mouse_highlight instead of
2724 term_mouse_highlight.
2725
bbf534ce
EZ
2726 * nsterm.m (ns_update_window_begin, ns_update_window_end)
2727 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
2728 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
2729 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
2730 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
2731 Replace Display_Info with Mouse_HLInfo everywhere where
2732 mouse_face_* members were accessed for mouse highlight purposes.
2733
2734 * xterm.c (x_update_window_begin, x_update_window_end)
2735 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
2736 (handle_one_xevent, x_free_frame_resources, x_term_init):
2737 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
2738 members were accessed for mouse highlight purposes.
2739
2740 * w32term.c (x_update_window_begin, x_update_window_end)
2741 (x_update_end, w32_read_socket, x_free_frame_resources)
2742 (w32_initialize_display_info): Replace Display_Info with
2743 Mouse_HLInfo everywhere where mouse_face_* members were accessed
2744 for mouse highlight purposes.
2745
2746 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
2747 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
2748 unless the frame is on a window-system.
c1fc2d3a 2749 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
2750 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
2751 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2752 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2753 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
2754 Replace Display_Info with Mouse_HLInfo everywhere where
2755 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 2756 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
2757 HAVE_WINDOW_SYSTEM conditional.
2758 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
2759 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
2760 (try_window_id) [HAVE_GPM || MSDOS]:
2761 Call x_clear_window_mouse_face.
d009ae66 2762 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
2763 systems. Call tty_draw_row_with_mouse_face for TTY systems.
2764 (show_mouse_face): Call draw_row_with_mouse_face, instead of
2765 calling draw_glyphs directly.
d009ae66
EZ
2766 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2767 (cursor_in_mouse_face_p, rows_from_pos_range)
2768 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
2769 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2770 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
2771 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
2772 fragments.
2773 (note_mouse_highlight): Call popup_activated for MSDOS as well.
2774 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
2775 integer.
2776 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
2777 (x_consider_frame_title, tool_bar_lines_needed):
2778 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
2779 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
2780 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
2781 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
2782 part.
d009ae66
EZ
2783
2784 * dispnew.c (mirror_make_current): Set Y coordinate of the
2785 mode-line and header-line rows.
c1fc2d3a
EZ
2786 (init_display): Setup initial frame's output_data for text
2787 terminal frames.
d009ae66 2788
c1fc2d3a
EZ
2789 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
2790 its own definition on msdos.c.
d009ae66
EZ
2791
2792 * msdos.c (show_mouse_face, clear_mouse_face)
2793 (fast_find_position, IT_note_mode_line_highlight)
2794 (IT_note_mouse_highlight): Functions deleted.
2795 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
2796 instead of IT_note_mouse_highlight.
2797 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
2798 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
2799 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
2800 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
2801 where mouse_face_* members were accessed for mouse highlight
2802 purposes.
2803
2804 * msdos.h (initialize_msdos_display): Add prototype.
2805
2806 * frame.h (MOUSE_HL_INFO): New macro.
2807
2808 * lisp.h (Mouse_HLInfo): New data type.
2809
2810 * xterm.h (struct x_display_info):
2811 * w32term.h (struct w32_display_info):
2812 * nsterm.h (struct ns_display_info):
2813 * termchar.h (struct tty_display_info): Use it instead of
2814 mouse_face_* members.
2815
2816 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
2817 1st argument.
2818 (frame_to_window_pixel_xy, note_mouse_highlight)
2819 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
2820 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
2821 HAVE_WINDOW_SYSTEM conditional.
2822 (draw_row_with_mouse_face): Declare prototype.
2823 (tty_draw_row_with_mouse_face): Declare prototype.
2824
6e8d7c47
EZ
28252010-11-05 Eli Zaretskii <eliz@gnu.org>
2826
bba3e508
SM
2827 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2828 Remove unused variables.
6e8d7c47 2829
f31ba3f0
AR
28302010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2831
2832 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
2833 logic pointed out by Eli Zaretskii.
2834
448e17d6
LMI
28352010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2836
0c3a9a9f
GM
2837 * coding.c (coding-category-list): Refer to set-coding-system-priority
2838 instead of the obsolete set-coding-priority in the doc string.
448e17d6 2839
3fdebbf9 28402010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0 2841
2f8f196d 2842 * nsfont.m (nsfont_draw): Correct previous patch to return
f31ba3f0
AR
2843 correct value.
2844 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
2845 don't change the method signature, change the return.
2846
28472010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
2848
2849 * nsfont.m (nsfont_draw)
2850 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 2851 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 2852
17c0c952
JD
28532010-11-03 Julien Danjou <julien@danjou.info>
2854
2855 * image.c (gif_load): Add support for transparency and specified
2856 :background.
2857
b18fad6d
KH
28582010-11-01 Kenichi Handa <handa@m17n.org>
2859
2860 * dispextern.h (lookup_glyphless_char_display): Extern it.
2861
2862 * termhooks.h (struct terminal): New member charset_list.
2863
2864 * coding.c (Fset_terminal_coding_system_internal): Set the
2865 `charset_list' member of struct terminal.
2866
a8039db1 2867 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
2868 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2869
2870 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
2871 (lookup_glyphless_char_display): Set it->what at the end.
2872 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2873 (last_glyphless_glyph_merged_face_id): Make them non-static.
2874
a8039db1
JB
2875 * w32term.c (x_draw_glyphless_glyph_string_foreground):
2876 Fix the arg with_background for font->driver->draw.
65b6b59a 2877
a8039db1 28782010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 2879
a8039db1
JB
2880 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
2881 Surround chp by parentheses.
0269bd90 2882
a8039db1 28832010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
2884
2885 Implement various display methods for glyphless characters.
2886
2887 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
2888 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
2889 (Qzero_width): New variables.
2890 (THIN_SPACE_WIDTH): New macro.
2891 (lookup_glyphless_char_display): New funciton.
2892 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2893 (last_glyphless_glyph_merged_face_id): New variables.
2894 (get_next_display_element): Check glyphless characters.
2895 (redisplay_internal): Initialize last_glyphless_glyph_frame and
2896 last_glyphless_glyph_face_id.
2897 (fill_glyphless_glyph_string): New function.
2898 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
2899 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
2900 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2901 (x_produce_glyphs): If a suitable font is not found, produce a
2902 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
2903 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
2904 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
2905 Qzero_width.
2906 (Vglyphless_char_display): Declare it as a Lisp variable.
2907
2908 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
2909 (struct glyph): Change the size of the member "type" to 3.
2910 Add glyphless to the union slice and u.
b2cca856
KH
2911 (enum display_element_type): Add IT_GLYPHLESS.
2912 (enum glyphless_display_method): New enum.
2913 (struct it): New member glyphless_method.
2914 (Vglyphless_char_display): Extern it.
2915
2916 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
2917 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2918
a8039db1 2919 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
2920 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2921
2922 * nsterm.m (ns_draw_glyph_string): Handle the case
2923 GLYPHLESS_GLYPH (the detail is not yet implemented).
2924
c8c59954
GM
29252010-10-31 Glenn Morris <rgm@gnu.org>
2926
80696982
GM
2927 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
2928
c8c59954
GM
2929 * frame.c (syms_of_frame) <tool-bar-mode>:
2930 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
2931
46eadc7a
CY
29322010-10-31 Chong Yidong <cyd@stupidchicken.com>
2933
2934 * xterm.c (x_connection_closed): Print informative error message
2935 when aborting on GTK. This requires using shut_down_emacs
2936 directly instead of Fkill_emacs.
2937
ffe75e6b
EZ
29382010-10-29 Eli Zaretskii <eliz@gnu.org>
2939
2940 * emacs.c (main): Call syms_of_filelock unconditionally.
2941
2942 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
2943 clause, but keep part of it conditioned on CLASH_DETECTION.
2944
9d794026
GM
29452010-10-29 Glenn Morris <rgm@gnu.org>
2946
4f4f2973
GM
2947 * nsfns.m (Fx-display-save-under, Fx-open-connection)
2948 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
2949 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
2950 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
2951 Sync docs between X, W32, NS.
2952
9d794026
GM
2953 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
2954 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
2955
d46f6bbb
JB
29562010-10-26 Juanma Barranquero <lekktu@gmail.com>
2957
2958 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
2959 otherwise, bootstrapping on Windows fails to compile macroexp.el.
2960
2e35f1a2
EZ
29612010-10-26 Eli Zaretskii <eliz@gnu.org>
2962
2963 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 2964 zero or negative. (Bug#7281)
2e35f1a2 2965
8daaeda6
J
29662010-10-26 Jan Djärv <jan.h.d@swipnet.se>
2967
2968 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
2969
6a5c2175
GM
29702010-10-25 Glenn Morris <rgm@gnu.org>
2971
2972 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
2973
7c051dd8
GM
29742010-10-24 Glenn Morris <rgm@gnu.org>
2975
2976 * w32fns.c (Fx_synchronize, Fx_change_window_property)
2977 (Fx_window_property, Fx_file_dialog):
2978 * xfns.c (Fx_synchronize, Fx_change_window_property)
2979 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2980
23c261f5
CY
29812010-10-24 Chong Yidong <cyd@stupidchicken.com>
2982
2983 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
2984
d414c713 29852010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
2986
2987 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
2988
2989 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
2990 Deprecate use as a boolean flag.
2991
947f5e01
JM
29922010-10-24 Jim Meyering <jim@meyering.net>
2993
2994 * emacs.c (argmatch): Don't treat "--" as "--chdir".
2995
65807d73
GM
29962010-10-24 Glenn Morris <rgm@gnu.org>
2997
f5f25615
GM
2998 * w16select.c (syms_of_win16select) <selection-coding-system>:
2999 <next-selection-coding-system>:
3000 * w32select.c (syms_of_w32select) <selection-coding-system>:
3001 <next-selection-coding-system>:
3646b86d
GM
3002 Sync docs with select.el.
3003
46710489
GM
3004 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
3005 Lisp version.
3006
ea883883
GM
3007 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
3008 Sync doc with the xterm.c version.
3009
65807d73
GM
3010 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
3011 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
3012
f3d87560
GM
30132010-10-23 Glenn Morris <rgm@gnu.org>
3014
66c6abf0 3015 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 3016 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 3017 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 3018 <hourglass-delay>: Sync docs with Lisp.
f3d87560 3019
7b7e2c18
EZ
30202010-10-23 Eli Zaretskii <eliz@gnu.org>
3021
d1d6801e 3022 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
3023
3024 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
3025 (mouse_face_from_string_pos): New function, replaces
3026 fast_find_string_pos.
3027 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
3028 (note_mode_line_or_margin_highlight): Support bidi-reordered
3029 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
3030 (note_mouse_highlight): When bidi reordering is turned on in a
3031 buffer, call next-single-property-change and
ef1b0ba7
SM
3032 previous-single-property-change with last argument nil.
3033 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 3034 glyph that stands for no text beyond the line end.
1f382a02
EZ
3035 (row_containing_pos): Don't return too early when CHARPOS is in a
3036 bidi-reordered continued line. Return immediately when the first
3037 hit is found in a line that is not continued, or when an exact
3038 match for CHARPOS is found.
d1d6801e
EZ
3039 (rows_from_pos_range): New function.
3040 (mouse_face_from_buffer_pos): Use it instead of calling
3041 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
3042 function to support mouse highlight in bidi-reordered lines and
3043 not to assume that START_CHARPOS is always in mouse_face_beg_row.
3044 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
3045 that the former is always above the latter or identical to it.
1554d88e 3046 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
3047 (coords_in_mouse_face_p): New function, bidi-aware.
3048 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
3049 Call it instead of comparing with mouse-face members of dpyinfo.
3050 (note_mode_line_or_margin_highlight): Fix confusingly swapped
3051 usage of hpos and vpos.
544bbc31 3052
dee186b6
J
30532010-10-22 Jan Djärv <jan.h.d@swipnet.se>
3054
3055 * xrdb.c: Include keyboard.h for MOTIF.
3056
3057 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
3058 MOTIF (Bug#7263).
3059
3060 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
3061 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
3062 Make ANSI prototypes.
dee186b6 3063
5fb59edb
GM
30642010-10-22 Glenn Morris <rgm@gnu.org>
3065
3066 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
3067 Remove ccl and duplicate mouse.
3068
8b78d5e3
CY
30692010-10-21 Chong Yidong <cyd@stupidchicken.com>
3070
3071 * insdel.c (prepare_to_modify_buffer): Don't set
3072 saved-region-selection if modification hooks are disabled.
3073
b8a47412
CY
30742010-10-19 Chong Yidong <cyd@stupidchicken.com>
3075
3076 * cmds.c (Fdelete_char): Doc fix.
3077
ca3fa302 30782010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
3079
3080 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
3081
ca3fa302 30822010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
3083
3084 Fix incorrect font metrics when the same font is opened with
3085 different pixelsizes.
3086
3087 * xftfont.c: Include composite.h.
3088 (xftfont_shape): New function.
3089 (syms_of_xftfont): Set xftfont_driver.shape.
3090
c978536f
JD
30912010-10-18 Julien Danjou <julien@danjou.info>
3092
3093 * frame.c (Fframe_pointer_visible_p):
3094 Add `frame-pointer-visible-p' to get the pointer visibility.
3095
4b2d9ec2
LMI
30962010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
3097
3098 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
3099 non-"EAGAIN"-like error to signal to Emacs that the socket should
3100 be closed.
3101
9cf66cf2
EZ
31022010-10-15 Eli Zaretskii <eliz@gnu.org>
3103
c3911ead
EZ
3104 * unexcoff.c (make_hdr): Fix prototype according to changes in
3105 2010-10-03T13:59:56Z!dann@ics.uci.edu.
3106
9cf66cf2
EZ
3107 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
3108
be98da05
TH
31092010-10-15 Tassilo Horn <tassilo@member.fsf.org>
3110
3111 * Makefile.in (really-oldXMenu): Fix typo in variable name that
3112 made building the X menu fail.
cc98b256 3113 (really-oldXMenu): Fix my previous fix.
be98da05 3114
220d91b8 31152010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
3116
3117 Fix handling of font properties on Windows (bug#6303).
3118 * font.c (font_filter_properties): New function, refactored from
3119 ftfont_filter_properties.
3120 * font.h (font_filter_properties): Declare.
3121 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
3122 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
3123 (w32font_filter_properties): New function.
3124 (w32font_driver): Add w32font_filter_properties.
3125
220d91b8 31262010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 3127
c0943d3d 3128 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
3129 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
3130
24f981c9
JB
31312010-10-14 Juanma Barranquero <lekktu@gmail.com>
3132
3133 * w32fns.c (w32_wnd_proc, file_dialog_callback):
3134 * w32font.c (w32_generic_family):
3135 * w32inevt.c (key_event):
3136 * w32menu.c (fill_in_menu):
3137 * w32proc.c (reader_thread, w32_executable_type, compare_env)
3138 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
3139 * w32term.c (w32_read_socket): Make static.
3140
850690cc
JB
31412010-10-13 Juanma Barranquero <lekktu@gmail.com>
3142
3143 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
3144 prototypes; all callers changed.
3145
5e371708
JB
31462010-10-13 Juanma Barranquero <lekktu@gmail.com>
3147
3148 * makefile.w32-in (TLIB2): Rename from TLIBW32.
3149 (OBJ2): New macro.
3150 (WIN32OBJ, FONTOBJ): Remove.
3151 (OBJ1): Redistribute object files with OBJ2.
3152 (LIBS, $(TEMACS)): Use TLIB2.
3153 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
3154 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
3155
2e288d54
JB
31562010-10-13 Juanma Barranquero <lekktu@gmail.com>
3157
3158 * emacs.c (Vdynamic_library_alist)
3159 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
3160 Doc fix.
3161
3162 * lisp.h (Vdynamic_library_alist): Declare extern.
3163
3164 * image.c (Vimage_library_alist)
3165 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
3166 (lookup_image_type): Use Vdynamic_library_alist.
3167 (Finit_image_library): Doc fix.
3168
aba1381b
DN
31692010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
3170
3171 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
3172 (lispdir): Remove trailing /, update all uses.
3173
4c14013d 31742010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
3175
3176 * nsterm.m (Qleft): Declare.
3177 (ns_right_alternate_modifier): New variable
3178 (NSRightAlternateKeyMask): New define.
3179 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
3180 ns_right_alternate_modifier isn't Qleft.
3181 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
3182 as emacs modifier for NSRightAlternateKeyMask.
3183 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
3184
355cdaf3
LMI
31852010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
3186
3187 * gnutls.c (emacs_gnutls_write): If we're trying to write before
3188 gnutls is ready, return EAGAIN as the errno.
3189
4c620157
DN
31902010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
3191
edfd76ce
DN
3192 * vm-limit.c:
3193 * unexhp9k800.c:
3194 * unexelf.c:
3195 * unexaix.c:
3196 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
3197
a4daeecf
DN
3198 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
3199 (PROFILING_LDFLAGS): Remove, not needed anymore.
3200
2cb72a75 3201 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
3202 (CRT_DIR): Move near potential user.
3203 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 3204
4c620157
DN
3205 * sysdep.c (LPASS8): Remove, unused.
3206 (emacs_ospeed): Change from being a global to a local in the only
3207 user: init_baud_rate.
3208
b845653d
LMI
32092010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3210
3211 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 3212 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 3213 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 3214 gnutls_read. This allows us to actually read lots of data from
b845653d 3215 the GnuTLS stream.
2e6c74c5
LMI
3216 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
3217 According to the documentation, this is correct, and it seems to
3218 make things work.
b845653d 3219
3625b3e2
CY
32202010-10-09 Chong Yidong <cyd@stupidchicken.com>
3221
3222 * xterm.c (x_draw_relief_rect): Clear corner pixels.
3223
8b1c619f
MA
32242010-10-08 Michael Albinus <michael.albinus@gmx.de>
3225
3226 * keyboard.c: Revert last change; it was not intended to be
3227 synchronized with the trunk.
3228
93d50df8
KH
32292010-10-08 Kenichi Handa <handa@m17n.org>
3230
2b7c9342 3231 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 3232
4628bef1 32332010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
3234
3235 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
3236 (Fdbus_init_bus): ... here. (Bug#7113)
3237
4628bef1 32382010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
3239
3240 * buffer.c (before-change-functions, after-change-functions):
3241 Three-year overdue doc fix following 2007-08-13 change.
3242
4628bef1 32432010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
3244
3245 * coding.c (coding_inherit_eol_type): If parent doesn't specify
3246 eol-format, inherit from the system's default.
3247 (complement_process_encoding_system): Make a new coding system
3248 inherit the original eol-format.
3249
4628bef1 32502010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
3251
3252 * coding.c (complement_process_encoding_system): New function.
3253
3254 * coding.h (complement_process_encoding_system): Extern it.
3255
3256 * callproc.c (Fcall_process): Complement the coding system for
3257 encoding arguments.
3258 (Fcall_process_region): Complement the coding system for encoding
3259 the input to the process.
3260
3261 * process.c (Fstart_process): Complement the coding system for
3262 encoding arguments.
3263 (send_process): Complement the coding system for encoding what
3264 sent to the process.
3265
4628bef1 32662010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
3267
3268 * xfont.c (xfont_open): Fix setting of font->average_width from
3269 :avgwidth property (Bug#7123).
3270
4628bef1 32712010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
3272
3273 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
3274 is more portable.
3275
3276 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
84eb0351 3277 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
3278 has not defined SIGIO.
3279
389454fb
CY
32802010-10-08 Chong Yidong <cyd@stupidchicken.com>
3281
3282 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
3283 draw the outermost line using the black relief, for legibility.
3284 Omit drawing the four corner pixels.
3285
51b403bd
CY
32862010-10-04 Chong Yidong <cyd@stupidchicken.com>
3287
3288 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
3289 (read_key_sequence): Inline echo_prompt.
3290 (echo_dash): Add a dash only if key is continued (Bug#7137).
3291
3e6ae1a4
DN
32922010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
3293
3294 Remove O_RDONLY, O_WRONLY definitions, not needed.
3295 * unexcoff.c:
3296 * lread.c:
3297 * fileio.c:
3298 * doc.c:
3299 * callproc.c:
3300 * alloc.c:
3301 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
3302
c1ae068b
LMI
33032010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
3304
3305 * gnutls.h (GNUTLS_LOG2): Convenience macro.
3306
3307 * gnutls.c: Add property list symbol holders.
3308 (emacs_gnutls_handshake): Clarify how sockets are passed to
3309 GnuTLS.
3310 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
3311 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
3312 and keyfiles to be a list of file names. Default to "NORMAL" for
3313 the priority string. Improve logging.
3314
e2afe435
GM
33152010-10-03 Glenn Morris <rgm@gnu.org>
3316
3317 * fileio.c (Vdirectory_sep_char): Remove.
3318
dd5ecd6b
DN
33192010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
3320
b5437a05
DN
3321 * termhooks.h: Remove #ifdef CONSP.
3322
4777478a
DN
3323 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
3324
a3d5088d
DN
3325 Include <fcntl.h> unconditionally.
3326 * termcap.c:
3327 * sysdep.c:
3328 * lread.c:
3329 * keyboard.c:
3330 * filelock.c:
3331 * fileio.c:
3332 * doc.c:
3333 * callproc.c:
3334 * alloc.c: Remove include guards for <fcntl.h>, process.c already
3335 does it.
3336
82719735
DN
3337 * process.c: Do not include <sys/wait.h>, syswait.h does it.
3338
9de940b5
DN
3339 * sysdep.c (flush_pending_output): Remove code, does not do
3340 anything on any platform.
3341
57507bf8 3342 Remove unused code.
bba3e508
SM
3343 * sysdep.c (select_alarm, sys_select, read_input_waiting):
3344 Remove select emulation, all systems support select.
57507bf8
DN
3345 (set_exclusive_use): Remove, the only user is in an #if 0 block.
3346 * process.c (create_process): Remove #if 0 code.
3347
dd5ecd6b
DN
3348 Remove unused arguments for unexec.
3349 The third one is never used, and the last two are always passed as zero.
3350 * emacs.c (unexec): Add declaration.
3351 (Fdump_emacs): Only pass the first two arguments to unexec.
3352 Simplify #ifdef.
3353 * unexw32.c (unexec):
3354 * unexsol.c (unexec):
3355 * unexhp9k800.c (unexec):
3356 * unexcw.c (unexec): Remove the last 3 arguments, unused.
3357 * unexelf.c (unexec): Remove the last 3 arguments, unused.
3358 (find_section): Use const.
3359 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
3360 (unexec_error): Declare it NO_RETURN.
3361 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
3362 it as an argument, remove data_start and entry_address arguments, unused.
3363 (unexec): Remove bss_start, data_start and
3364 entry_address arguments.
3365 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
3366 it as an argument, remove data_start and entry_address arguments, unused.
3367 (unexec): Remove bss_start, data_start and
3368 entry_address arguments.
3369
74f1829d
JB
33702010-10-03 Juanma Barranquero <lekktu@gmail.com>
3371
7f467e14
JB
3372 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
3373
74f1829d
JB
3374 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
3375 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
3376 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
3377 Fix typos in docstrings.
3378 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
3379 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
3380
6926550f
CY
33812010-10-03 Chong Yidong <cyd@stupidchicken.com>
3382
3383 * keyboard.c (command_loop_1): Make sure the mark is really alive
3384 before using it (Bug#7044).
3385
54b65f7b
JB
33862010-10-02 Juanma Barranquero <lekktu@gmail.com>
3387
3388 * makefile.w32-in (tags): Rename target to full-tags.
3389
383ebd15
EZ
33902010-10-02 Eli Zaretskii <eliz@gnu.org>
3391
3392 * emacs.c (main): Remove !WINDOWSNT conditional.
3393 (Fkill_emacs): Don't mention exemption on MS-Windows.
3394
9c524fcb
GM
33952010-10-02 Glenn Morris <rgm@gnu.org>
3396
3226d6ca
GM
3397 * character.c (Fchar_bytes): Remove obsolete function.
3398 (syms_of_character): Remove Schar_bytes.
3399
9c524fcb
GM
3400 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
3401 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
3402 in batch-mode.
3403 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
3404 (kill-emacs-hook): Doc fix.
3405
1b217849
LMI
34062010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
3407
3408 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 3409 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
3410 renamed to reflect that these are the libxml functions.
3411
54cc6a83
EZ
34122010-10-01 Eli Zaretskii <eliz@gnu.org>
3413
0ebf79de
EZ
3414 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
3415 screen dimensions in tty->Wcm.
3416
54cc6a83
EZ
3417 * xdisp.c (set_cursor_from_row): When the row is truncated and
3418 point is outside the range of displayed characters, position the
3419 cursor inside the scroll margin. (Bug#6349)
3420
321401d1
DN
34212010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
3422
4cacd822
DN
3423 Do not include stdlib.h and string.h, config.h does it.
3424 * xfont.c:
3425 * w32term.c:
3426 * w32reg.c:
3427 * w32inevt.c:
3428 * w32heap.c:
3429 * w32console.c:
3430 * w16select.c:
3431 * unexsol.c:
3432 * term.c:
3433 * sound.c:
3434 * scroll.c (m):
3435 * gtkutil.c:
3436 * font.c:
3437 * filelock.c:
3438 * fileio.c:
3439 * dosfns.c:
3440 * dbusbind.c:
3441 * bidi.c:
3442 * callproc.c:
3443 * process.c:
3444 * msdos.c:
3445 * charset.c: Do not include stdlib.h and string.h, config.h does it.
3446
bba3e508
SM
3447 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
3448 defines it.
0781e7ab 3449
9bf58201
DN
3450 * process.c: Move #include <pty.h> earlier.
3451 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
3452 (pty_name): Move definition later.
3453
088dcc3e
DN
3454 * nsselect.m (syms_of_nsselect):
3455 * nsmenu.m (syms_of_nsmenu):
3456 * nsfns.m (syms_of_nsfns):
3457 * msdos.c (syms_of_msdos):
4cacd822 3458
088dcc3e
DN
3459 * image.c (syms_of_image):
3460 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
3461
321401d1
DN
3462 * point.h: Remove, unused.
3463
73077a9a
EZ
34642010-10-01 Eli Zaretskii <eliz@gnu.org>
3465
3466 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
3467 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
3468 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
3469
55e572ef
DN
34702010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
3471
3472 * xml.c (parse_string): Use const.
3473
d4b6d95d
LMI
34742010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
3475
ef1b0ba7
SM
3476 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
3477 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
3478 the level to 8 to produce more useful backtraces for bug reports.
3479
e4b6db12
DN
34802010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
3481
3482 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
3483
1becef93
JB
34842010-09-30 Juanma Barranquero <lekktu@gmail.com>
3485
3486 * w32console.c (vga_stdcolor_name): Remove unused function;
3487 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
3488
df7fcaff
LMI
34892010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
3490
bac5cef8
LMI
3491 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
3492 (Fgnutls_boot): Start the handshake.
3493 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
3494 (Fgnutls_boot): Remove some debugging messages.
3495 Change indentation throughout to use the Emacs style.
3496 (emacs_gnutls_handshake): Cast the fds to something that's
3497 possibly the expected length.
3498 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 3499
df7fcaff
LMI
3500 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
3501
3502 * process.c (make_process): Set the gnutls_p field to zero by
3503 default.
3504 (read_process_output): Always call the gnutls_read function if the
3505 stream is a gnutls stream.
3506 (send_process): Ditto for writes.
3507
3508 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
3509 or write anything until the state is GNUTLS_STAGE_READY.
3510 (Fgnutls_boot): Mark the stream as being a gnutls stream.
3511
d585695f
EZ
35122010-09-29 Eli Zaretskii <eliz@gnu.org>
3513
af7ef32d
EZ
3514 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
3515 NEUTRAL_DIR.
3516 (handle_invisible_prop, iterate_out_of_display_property)
3517 (next_element_from_buffer): If bidi_it.first_elt is set, call
3518 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
3519 (Bug#7128)
3520
d585695f
EZ
3521 * print.c (print_object): Fix format string and argument types for
3522 printing a Lisp_Misc_Marker.
3523
3524 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
3525 (load_overlay_strings, get_overlay_strings_1)
3526 (get_overlay_strings, forward_to_next_line_start)
3527 (back_to_previous_visible_line_start, reseat, reseat_to_string)
3528 (get_next_display_element, next_element_from_string)
3529 (next_element_from_c_string, next_element_from_buffer)
3530 (move_it_vertically_backward, move_it_by_lines, add_to_log)
3531 (message_dolog, message_log_check_duplicate, message2_nolog)
3532 (message3, message3_nolog, vmessage, set_message, set_message_1)
3533 (hscroll_window_tree, text_outside_line_unchanged_p)
3534 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
3535 (find_last_unchanged_at_beg_row)
3536 (find_first_unchanged_at_end_row, row_containing_pos)
3537 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
3538 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
3539 Use EMACS_INT for buffer and string positions.
d585695f
EZ
3540
3541 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
3542 (row_containing_pos): Adjust prototype.
3543
3544 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
3545 (message2_nolog, set_message): Adjust prototypes.
3546
a6f3211f
SM
35472010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3548
3549 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
3550 (Fgnutls_boot): Use SDATA.
3551 (Fgnutls_handshake): Remove unused var `max_log_level'.
3552
e0720500
MA
35532010-09-27 Michael Albinus <michael.albinus@gmx.de>
3554
11a5af7c 3555 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
3556 (Bug#7113)
3557
d8a4b27a
J
35582010-09-27 Jan Djärv <jan.h.d@swipnet.se>
3559
42d3022b
J
3560 * xgselect.c (xg_select): Clear file descriptors not set from
3561 rfds and wfds.
3562
d8a4b27a
J
3563 * process.c (wait_reading_process_output): Add missing FD_CLR
3564 for write_mask (must mirror connect_wait_mask).
3565
8ed70bf3
LMI
35662010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
3567
3568 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
3569 prefix.
3570 (Fgnutls_boot): Use changed process members. Use log level with a
3571 function parameter to set it. Bring back Emacs-level debugging
3572 messages at log level 1 and 2.
3573
3574 * process.c (make_process): Initialize gnutls_log_level.
3575
3576 * process.h: Add gnutls_log_level and rename x509_cred and
3577 anon_cred to have the gnutls_ prefix for consistency.
3578
3579 * gnutls.h (GNUTLS_LOG): Add convenience macro.
3580
bedf4aab
JB
35812010-09-27 Juanma Barranquero <lekktu@gmail.com>
3582
3583 * w32.c (g_b_init_get_sid_identifier_authority)
3584 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
3585 Remove, not used.
3586 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
3587 (init_winsock): Remove useless assignment.
3588 (open_process_token, get_token_information, lookup_account_sid)
3589 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
3590 (get_security_descriptor_owner, get_security_descriptor_group)
3591 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
3592 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
3593 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
3594 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
3595 (unc_volume_file_attributes, convert_from_time_t)
3596 (create_toolhelp32_snapshot, process32_first, process32_next)
3597 (open_thread_token, impersonate_self, revert_to_self)
3598 (get_process_memory_info, get_process_working_set_size)
3599 (global_memory_status, global_memory_status_ex, socket_to_fd)
3600 (shutdown_handler): Make static.
3601
08609ffd
MA
36022010-09-27 Michael Albinus <michael.albinus@gmx.de>
3603
3604 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
3605 (xd_pending_messages): Functions removed.
3606 (xd_read_queued_messages): Add parameters fd, *data, for_read in
3607 order to be compatible with add_read_fd. Determine bus from data,
3608 and call xd_read_message just for this bus.
3609 (xd_add_watch): Use xd_read_queued_messages as callback function.
3610 Add data.
3611
3612 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
3613
d2e9d0bb
LMI
36142010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
3615
ef1b0ba7 3616 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 3617 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 3618
4be9765d
KH
36192010-09-27 Kenichi Handa <handa@m17n.org>
3620
3621 These changes are to remove restriction on the number of glyphs in
3622 one composition.
3623
3624 * dispextern.h (struct glyph): Change the member "slice" to union.
3625 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 3626 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
3627
3628 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
3629 instead of glyph->slice.
3630 (marginal_area_string): Likewise.
3631
3632 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
3633 glyph->u.cmp.
3634 (append_composite_glyph): Likewise.
3635
3636 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
3637 glyph->u.cmp.
3638 (fill_gstring_glyph_string, x_get_glyph_overhangs)
3639 (append_composite_glyph): Likewise.
3640 (fill_image_glyph_string): Use glyph->slice.img instead of
3641 glyph->slice.
3642 (append_glyph, produce_image_glyph, append_stretch_glyph)
3643 (note_mouse_highlight): Likewise.
3644
3fad2ad2
J
36452010-09-26 Jan Djärv <jan.h.d@swipnet.se>
3646
bf05eed6
J
3647 * process.c (add_keyboard_wait_descriptor)
3648 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
3649 (wait_reading_process_output): Don't pass write_mask to select
3650 if SELECT_CANT_DO_WRITE_MASK is defined.
3651 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 3652
3fad2ad2
J
3653 * process.h (add_read_fd, delete_read_fd, add_write_fd)
3654 (delete_write_fd): Declare.
3655
3656 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
3657 (write_mask): New variable.
ef1b0ba7 3658 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 3659 (fd_callback_info): New variable.
70e31436
JB
3660 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
3661 New functions.
3fad2ad2
J
3662 (Fmake_network_process): FD_SET write_mask.
3663 (deactivate_process): FD_CLR write_mask.
3664 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
3665 check_connect removed. check_write is new. Remove references to gpm.
3666 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
3667 NON_BLOCKING_CONNECT) instead of Connecting.
3668 Loop over file descriptors and call callbacks in fd_callback_info
3669 if file descriptor is ready for I/O.
3670 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
3671 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
3672 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
3673 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
3674 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
3675 (init_process): Initialize write_mask and fd_callback_info.
3676
3677 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
3678
3679 * dbusbind.c: Include process.h.
3680 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
3681 (xd_read_message_1): New functions.
70e31436
JB
3682 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
3683 Handle watch for both read and write.
3fad2ad2
J
3684 (Fdbus_init_bus): Also register xd_toggle_watch.
3685 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3686 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
3687 to dbus_connection_flush.
70e31436 3688 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
3689 Call xd_read_message_1 until status is COMPLETE.
3690
dce4c2ac
DN
36912010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
3692
3693 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
3694 (init_tty): Reorder code to reduce the number of #ifdefs.
3695 No code changes.
dce4c2ac 3696
8af55556
TZ
36972010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
3698
3699 * process.h: Set up GnuTLS support.
3700
3701 * process.c (make_process, Fstart_process)
3702 (read_process_output, send_process): Set up GnuTLS support for
3703 process input/output file descriptors.
3704
3705 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
3706
3707 * gnutls.c: The source code for GnuTLS support in Emacs.
3708
3709 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
3710
3711 * config.in: Set up GnuTLS support.
3712
3713 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
3714 (obj, LIBES): Set up GnuTLS support.
3715
83e245c4
JB
37162010-09-26 Juanma Barranquero <lekktu@gmail.com>
3717
3718 * w32.c (get_emacs_configuration_options): Fix previous change.
3719
d24ec09a
CY
37202010-09-25 Chong Yidong <cyd@stupidchicken.com>
3721
3722 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
3723 alive before using it (Bug#6977).
3724
b7bdc47c
LMI
37252010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
3726
a952d5f3
LMI
3727 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
3728
3729 * dispextern.h: EMACS_INT/int fixup.
3730
3731 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
3732 fixup.
3733
b7bdc47c
LMI
3734 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
3735
41118bd3
EZ
37362010-09-25 Eli Zaretskii <eliz@gnu.org>
3737
2452438f
EZ
3738 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
3739 (Fselect_window, window_scroll_pixel_based)
3740 (window_scroll_line_based, Frecenter, Fset_window_configuration):
3741 Use EMACS_INT for buffer positions.
3742
3743 * textprop.c (validate_interval_range, interval_of)
3744 (property_change_between_p, Fadd_text_properties)
3745 (set_text_properties_1, Fremove_text_properties)
3746 (Fremove_list_of_text_properties, Ftext_property_any)
3747 (Ftext_property_not_all, copy_text_properties)
3748 (text_property_list, extend_property_ranges)
3749 (verify_interval_modification): Use EMACS_INT for buffer
3750 positions.
3751
f877c546
EZ
3752 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
3753 for buffer positions.
3754
3755 * process.c (read_process_output, send_process)
3756 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
3757 and string positions and size.
3758
da43f021
EZ
3759 * print.c (print_object, print_string, strout): Use EMACS_INT for
3760 string indices.
3761
3762 * minibuf.c (string_to_object): Use EMACS_INT for string position
3763 and size.
3764
3765 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
3766
3767 * lread.c <read_from_string_index, read_from_string_index_byte>
3768 <read_from_string_limit, readchar_count>: Define EMACS_INT.
3769 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
3770 buffer positions and string length.
3771
41118bd3
EZ
3772 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
3773 EMACS_INT.
3774 (echo_truncate, adjust_point_for_property, read_char)
3775 (gen_help_event, make_lispy_event, modify_event_symbol)
3776 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
3777 for buffer positions and string length.
3778
3779 * keyboard.h (gen_help_event): Adjust prototype.
3780
3781 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
3782
3783 * commands.h <last_point_position>: Declare EMACS_INT.
3784
3785 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
3786 (truncate_echo_area): Accept EMACS_INT argument.
3787
3788 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
3789
3790 * lisp.h (truncate_echo_area): Adjust prototype.
3791
3792 * composite.c (composition_adjust_point): Return EMACS_INT.
3793
3794 * composite.h (composition_adjust_point): Adjust prototype.
3795
ba3033ee
JB
37962010-09-25 Juanma Barranquero <lekktu@gmail.com>
3797
3798 * process.c (Fmake_network_process): When arg :host is 'local,
3799 use address 127.0.0.1, not name "localhost". (Bug#6781)
3800
4f3a2f8d
EZ
38012010-09-24 Eli Zaretskii <eliz@gnu.org>
3802
5816888b
EZ
3803 * indent.c (Fcurrent_indentation, indented_beyond_p)
3804 (compute_motion): Use EMACS_INT for buffer position variables.
3805
3806 * lisp.h (indented_beyond_p): Adjust prototype.
3807
3808 * buffer.c (overlay_strings): Return EMACS_INT.
3809
3810 * buffer.h (overlay_strings): Adjust prototype.
3811
3812 * region-cache.c (pp_cache): Adjust format to arguments.
3813
3814 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
3815 (call_debugger): Use EMACS_INT for specpdl_size related variables.
3816 (verror): Use EMACS_INT for size of allocated buffer.
3817
ace1712c
EZ
3818 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
3819 positions.
3820
3821 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
3822 (set_cursor_from_row, find_first_unchanged_at_end_row):
3823 Use EMACS_INT for buffer positions.
ace1712c 3824
f5276b75 3825 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
3826
3827 * dispnew.c (increment_matrix_positions)
3828 (increment_row_positions, copy_glyph_row_contents)
3829 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
3830 positions.
3831
3832 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
3833 (increment_matrix_positions, increment_row_positions):
3834 Adjust prototypes.
ace1712c
EZ
3835
3836 * data.c (Faref, Faset): Use EMACS_INT for string length and
3837 positions.
3838
3839 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
3840 characters to insert.
3841
3842 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
3843 position and size.
3844
4f3a2f8d
EZ
3845 * syntax.c (scan_words, update_syntax_table)
3846 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
3847 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
3848 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
3849
3850 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
3851
3852 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
3853 positions.
3854
db063399
LMI
38552010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
3856
f0812d35
LMI
3857 * scroll.c (calculate_scrolling, line_ins_del)
3858 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
3859 conversion.
3860
f5c7fc27
LMI
3861 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
3862 (region_cache_backward, region_cache_forward)
3863 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
3864 conversion.
3865
db063399
LMI
3866 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3867
3868 * eval.c (verror): Fix EMACS_INT/int conversion.
3869
07914cd0 3870 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
3871 (print_preprocess, print_check_string_charset_prop)
3872 (print_object): Fix EMACS_INT/int conversion.
3873
3874 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3875
e6d4aefa
EZ
38762010-09-24 Eli Zaretskii <eliz@gnu.org>
3877
69481da7
EZ
3878 * callproc.c (Fcall_process): Use EMACS_INT for count of
3879 characters read from the subprocess.
3880
61bfec98
EZ
3881 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
3882 positions.
3883 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
3884 positions.
3885
145582a0
EZ
3886 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
3887 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
3888 length.
3889 (advance_to_char_boundary, Fset_buffer_multibyte)
3890 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
3891 (overlay_touches_p, record_overlay_string, overlay_strings)
3892 (recenter_overlay_lists, fix_start_end_in_overlays)
3893 (modify_overlay, Fmove_overlay, report_overlay_modification)
3894 (evaporate_overlays): Use EMACS_INT for buffer positions.
3895
bba3e508
SM
3896 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
3897 Adjust prototypes.
145582a0 3898
446470a9
EZ
3899 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
3900 positions.
3901
e6d4aefa
EZ
3902 * fns.c (Fcompare_strings, Fstring_lessp, concat)
3903 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
3904 (Fsubstring_no_properties, substring_both, Ffillarray)
3905 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
3906 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
3907 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
3908 (Fmd5): Use EMACS_INT for buffer and string positions and length
3909 variables and arguments.
3910
3911 * lisp.h (substring_both): Adjust prototype.
3912
eb652396
JB
39132010-09-24 Juanma Barranquero <lekktu@gmail.com>
3914
3915 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
3916 * w32fns.c (clipboard_sequence_fn): Don't declare.
3917 (globals_of_w32fns): Don't initialize it.
3918
266a86bd 39192010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
3920
3921 * syntax.c (back_comment): Detect the case where a 1-char comment
3922 starter is also the 2nd char of a 2-char comment ender.
3923
266a86bd 39242010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
3925
3926 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
3927
40283062
LMI
39282010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3929
db063399
LMI
3930 * eval.c (verror): EMACS_INT/int cleanup.
3931
faf8b5bc
LMI
3932 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
3933 unwind_protect more than 2GB worth of functions.
3934
3935 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
3936
40283062
LMI
3937 * lisp.h: Have oblookup take EMACS_INT to allow interning big
3938 string and avoid compiler warnings.
3939 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
3940 all users.
3941
3942 * lread.c (oblookup): EMACS_INT/int cleanup.
3943
3944 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
3945
fe3537c3
EZ
39462010-09-23 Eli Zaretskii <eliz@gnu.org>
3947
3948 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
3949
3950 * lisp.h (clip_to_bounds): Adjust prototype.
3951
3952 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
3953
0350982f
LMI
39542010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3955
84c9ce05
LMI
3956 * lisp.h: doprnt.c EMACS_INT/int cleanup.
3957
3958 * doprnt.c (doprnt): EMACS_INT/int cleanup.
3959
3960 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
3961 cleanup.
3962
0350982f
LMI
3963 * lisp.h: Change the definition of all marker.c functions that
3964 take and return buffer stuff to be EMACS_INT instead of int.
3965
3966 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
3967 (buf_charpos_to_bytepos, bytepos_to_charpos)
3968 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
3969 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
3970 for all buffer positions.
3971
c50bd0d2
CY
39722010-09-23 Chong Yidong <cyd@stupidchicken.com>
3973
3974 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3975 (split_interval_right, find_interval, next_interval)
3976 (delete_node, delete_interval, interval_deletion_adjustment)
3977 (adjust_intervals_for_deletion, merge_interval_right)
3978 (merge_interval_left, graft_intervals_into_buffer)
3979 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
3980
3981 * intervals.h (traverse_intervals): Update prototype.
3982
14162469
EZ
39832010-09-23 Eli Zaretskii <eliz@gnu.org>
3984
c098fdb8
EZ
3985 * indent.c (compute_motion): Use EMACS_INT for arguments to
3986 region_cache_forward.
3987
bba3e508
SM
3988 * region-cache.c (struct boundary, struct region_cache):
3989 Use EMACS_INT for positions.
c098fdb8
EZ
3990 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
3991 (delete_cache_boundaries, set_cache_region)
3992 (invalidate_region_cache, know_region_cache)
bba3e508
SM
3993 (region_cache_forward, region_cache_backward, pp_cache):
3994 Use EMACS_INT for buffer positions.
c098fdb8
EZ
3995
3996 * region-cache.h (know_region_cache, invalidate_region_cache)
3997 (region_cache_forward, region_cache_backward): Adjust prototypes.
3998
3999 * search.c (string_match_1, fast_c_string_match_ignore_case)
4000 (looking_at_1, scan_buffer, scan_newline)
4001 (find_next_newline_no_quit, find_before_next_newline)
4002 (search_command, trivial_regexp_p, search_buffer, simple_search)
4003 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
4004 and string positions and length.
4005
caefdbe7
EZ
4006 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
4007 (find_before_next_newline): Adjust prototypes.
c098fdb8 4008
29cdc13e
EZ
4009 * editfns.c (transpose_markers, update_buffer_properties)
4010 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
4011 (get_pos_property, Fconstrain_to_field)
4012 (Fline_beginning_position, Fline_end_position, Fprevious_char)
4013 (Fchar_after, Fchar_before, Finsert_char)
4014 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
4015 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
4016 Use EMACS_INT for buffer and string position variables.
c098fdb8 4017 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
4018
4019 * lisp.h (clip_to_bounds): Adjust prototype.
4020
e79123aa
EZ
4021 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4022 (balance_an_interval, split_interval_right, split_interval_left)
4023 (find_interval, next_interval, update_interval)
4024 (adjust_intervals_for_insertion, delete_node, delete_interval)
4025 (interval_deletion_adjustment, adjust_intervals_for_deletion)
4026 (offset_intervals, merge_interval_right, merge_interval_left)
4027 (graft_intervals_into_buffer, adjust_for_invis_intang)
4028 (move_if_not_intangible, get_local_map, copy_intervals)
4029 (copy_intervals_to_string, compare_string_intervals)
4030 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 4031 and for interval tree size.
e79123aa
EZ
4032
4033 * intervals.h (traverse_intervals, split_interval_right)
4034 (split_interval_left, find_interval, offset_intervals)
4035 (graft_intervals_into_buffer, copy_intervals)
4036 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
4037 (update_interval): Adjust prototypes.
4038
579c18d0
EZ
4039 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
4040 Use EMACS_INT for buffer position variables and arguments.
4041
4042 * composite.c (get_composition_id, find_composition)
4043 (run_composition_function, compose_text)
4044 (composition_gstring_width, autocmp_chars)
4045 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
4046 for buffer positions and string length variables and arguments.
4047
4048 * composite.h (get_composition_id, find_composition, compose_text)
4049 (composition_gstring_width): Adjust prototypes.
4050
4051 * editfns.c (Fformat): Use EMACS_INT for string size variables.
4052
bba3e508
SM
4053 * xdisp.c (store_mode_line_noprop, display_mode_element):
4054 Use EMACS_INT for string positions.
579c18d0
EZ
4055
4056 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
4057 position arguments.
4058
4059 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
4060
4061 * character.c (parse_str_as_multibyte, str_as_multibyte)
4062 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 4063 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
4064 (strwidth, lisp_string_width, multibyte_chars_in_text):
4065 Use EMACS_INT for string length variables and arguments.
14162469
EZ
4066
4067 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 4068 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
4069 (c_string_width, strwidth, lisp_string_width):
4070 Adjust prototypes.
14162469 4071
579c18d0
EZ
4072 * font.c (font_intern_prop): Use EMACS_INT for string length
4073 variables.
4074
4075 * font.c (font_intern_prop): Use EMACS_INT for string length
4076 variables.
4077
14162469
EZ
4078 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
4079 variables.
4080
4081 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
4082 (Fmake_string): Protect against too large strings.
4083 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
4084 (live_misc_p): Use ptrdiff_t instead of int for pointer
4085 differences.
4086 (string_bytes, check_sblock, check_string_free_list)
4087 (allocate_string_data, compact_small_strings, Fmake_string)
4088 (Fmake_bool_vector, make_string, make_unibyte_string)
4089 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
4090 (make_specified_string_string, Fmake_list, Fmake_vector):
4091 Use EMACS_INT for string length variables and arguments.
14162469
EZ
4092 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
4093 (Fpurecopy): Use EMACS_INT for string size.
4094 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
4095 for vector size.
4096
4097 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
4098 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
4099 (make_pure_string, string_bytes, check_point_in_composition):
4100 Adjust prototypes.
14162469 4101
c8a66ab8
EZ
41022010-09-22 Eli Zaretskii <eliz@gnu.org>
4103
4104 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
4105 (check_translation): Use EMACS_INT for buffer positions and
4106 length.
4107
4108 * undo.c (record_marker_adjustment, record_delete)
4109 (record_change, record_point, record_insert)
4110 (record_property_change, Fprimitive_undo): Use EMACS_INT for
4111 buffer positions.
4112
4113 * lisp.h (record_marker_adjustment, record_delete)
4114 (record_change, record_point, record_insert)
4115 (record_property_change, Fprimitive_undo): Adjust prototypes.
4116
38c54d9d
JB
41172010-09-22 Juanma Barranquero <lekktu@gmail.com>
4118 Eli Zaretskii <eliz@gnu.org>
4119
4120 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
4121
413d18e7
EZ
41222010-09-22 Eli Zaretskii <eliz@gnu.org>
4123
4124 * minibuf.c (Fminibuffer_contents)
4125 (Fminibuffer_contents_no_properties)
4126 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
4127 positions.
4128
4129 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
4130 mark.
4131
4132 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
4133 (allocate_string_data): Accept EMACS_INT for string length.
4134
4135 * editfns.c (Ffield_string, Ffield_string_no_properties)
4136 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
4137 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
4138 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
4139 (Ffield_end): Use EMACS_INT for buffer positions.
4140
4141 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
4142 point with mark.
4143
4144 * lisp.h (allocate_string_data, make_uninit_string)
4145 (make_uninit_multibyte_string, make_buffer_string)
4146 (make_buffer_string_both): Adjust prototypes.
4147
4b9832a6
CY
41482010-09-22 Chong Yidong <cyd@stupidchicken.com>
4149
4150 * xml.c: Switch to GNU indentation.
4151 (make_dom): Change parse tree format to match xml.el.
4152 (Fxml_parse_html_string_internal): Rename from html-parse-string.
4153 (Fxml_parse_string_internal): Rename from xml-parse-string.
4154
86282aab
KH
41552010-09-22 Kenichi Handa <handa@m17n.org>
4156
4157 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
4158 only if we are not at a composition.
4159 (set_iterator_to_next): Give it->end_charpos to
4160 composition_compute_stop_pos.
4161 (set_iterator_to_next, next_element_from_buffer): Likewise.
4162
4163 * dispnew.c (buffer_posn_from_coords): Fix position when the
4164 current display element is a grapheme cluster in bidi-reordered
4165 region.
4166
840b985a
AR
41672010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
4168
4169 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
4170 the regions may overlap.
4171
5bc88f4b
JB
41722010-09-21 Juanma Barranquero <lekktu@gmail.com>
4173
4174 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
4175
92bc9a36
DN
41762010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
4177
d19e096e
DN
4178 * emacs.c: Do not include sys/ioctl.h, not needed.
4179
92bc9a36
DN
4180 * doprnt.c: Do not include stdlib.h, config.h does it.
4181 Move #include before macro definition.
4182
15f844ac
DN
41832010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
4184
48e24408
DN
4185 * Makefile.in (temacs): Link using $(CC) not $(LD).
4186 (LD_FIRSTFLAG): Define using autoconf.
4187 (LD): Remove.
4188
65539506
DN
4189 Remove HAVE_TERMIOS definitions.
4190 * s/usg5-4-common.h (HAVE_TERMIOS):
4191 * s/template.h (HAVE_TERMIOS):
4192 * s/gnu-linux.h (HAVE_TERMIOS):
4193 * s/darwin.h (HAVE_TERMIOS):
4194 * s/cygwin.h (HAVE_TERMIOS):
4195 * s/bsd-common.h (HAVE_TERMIOS):
4196 * s/aix4-2.h (HAVE_TERMIOS):
4197 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
4198 defined on all non-MS platforms.
4199 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
4200
15f844ac
DN
4201 * xterm.c (xt_action_hook): Use const.
4202
7d701334
JB
42032010-09-20 Juanma Barranquero <lekktu@gmail.com>
4204
4205 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
4206 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
4207 (gethostname) [!HAVE_SOCKETS]: Remove.
4208 (SOCK_REPLACE_HANDLE): Remove macro.
4209 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
4210 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
4211 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
4212 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
4213
f3ec267a
EZ
42142010-09-18 Eli Zaretskii <eliz@gnu.org>
4215
4216 * deps.mk (xml.o): Add dependencies.
4217
93acd23d
JB
4218 * xdisp.c (Fcurrent_bidi_paragraph_direction):
4219 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
4220
4221 * bidi.c (bidi_paragraph_init): Accept an additional argument
4222 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
4223 search back until a paragraph with a strong directional character
4224 is found, and use that to determine paragraph's base direction.
4225
4226 * dispextern.h (bidi_paragraph_init): Update prototype.
4227
69e847be
EZ
42282010-09-17 Eli Zaretskii <eliz@gnu.org>
4229
4230 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
4231 of w32api >= 3.15. (Bug#6989)
4232
283357a7
LMI
42332010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
4234
4235 * process.c (wait_reading_process_output): Don't message about
4236 accept-process-output unless the time limit really is zero.
4237
4ddb20d6
SM
42382010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4239
4240 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
4241 int/Lisp_Object mixup).
4242
e24ad6dd
J
42432010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4244
4245 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
4246 not HELP.
4247
fb0cf781
J
42482010-09-17 Stephen Berman <stephen.berman@gmx.net>
4249
4250 * frame.c (Ftool_bar_pixel_width): New function to expose tool
4251 bar's pixel width to Lisp (Bug#7048).
4252
4ddb20d6
SM
42532010-09-14 Juanma Barranquero <lekktu@gmail.com>
4254
4255 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 4256
318a04c6
J
42572010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4258
4259 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
4260 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
4261
78a21772
KH
42622010-09-17 Kenichi Handa <handa@m17n.org>
4263
4264 * ftfont.c (ftfont_check_otf): Fix previous change.
4265
fa3f6039
KH
42662010-09-14 Kenichi Handa <handa@m17n.org>
4267
4268 * ftfont.c (ftfont_check_otf): Fix the case of checking just
4269 existence of GSUB or GPOS.
4270
2b5491fa
JB
42712010-09-14 Juanma Barranquero <lekktu@gmail.com>
4272
4273 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
4274
c97c655f
LMI
42752010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
4276
ef1b0ba7 4277 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
4278 what it does.
4279 (parse_string): Return nil when the document can't be parsed.
4280
6664fc59 42812010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
4282
4283 * xterm.c (get_current_vm_state): New function.
4284 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
4285 want_fullscreen so set_wm_state calls are few (Bug#7013).
4286 (x_handle_net_wm_state): Move code to get_current_vm_state and
4287 call that function.
4288
6664fc59 42892010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
4290
4291 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
4292
6664fc59 42932010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
4294
4295 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
4296 we may use designation or locking-shift.
4297
6664fc59 42982010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
4299
4300 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
4301 sequence when the source is multibyte.
4302
1da70e99
AS
43032010-09-14 Andreas Schwab <schwab@linux-m68k.org>
4304
6664fc59
JB
4305 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
4306 Don't make first argument optional. Doc fix.
1da70e99 4307
26632d8d
LMI
43082010-09-14 Leo <sdl.web@gmail.com> (tiny change)
4309
4310 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
4311 parameters for the doc string.
4312
21fa8e37
LMI
43132010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
4314
4315 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
4316
5616cc54
SM
43172010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4318
4319 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
4320 (syms_of_fns): Don't defsubr Sy_or_n_p.
4321 * lisp.h: Don't declare Fy_or_n_p.
4322 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
4323
381408e2
LMI
43242010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4325
4326 * xml.c (Fxml_parse_buffer): New function to parse XML files.
4327
43282010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
4329
4330 * xml.c: New file.
4331 (Fhtml_parse_buffer): New function to interface to the libxml2
4332 html parsing function.
4333
733946e7
JB
43342010-09-05 Juanma Barranquero <lekktu@gmail.com>
4335
4336 * biditype.h: Regenerate.
4337
7574650a
AS
43382010-09-04 Andreas Schwab <schwab@linux-m68k.org>
4339
4340 * nsimage.m (ns_load_image): Check argument types.
4341
4342 * image.c: Remove all uses of gcpro.
4343 (xpm_load): Check all lisp types.
4344 (pbm_load): Likewise.
4345 (png_load): Likewise.
4346 (jpeg_load): Likewise.
4347 (tiff_load): Likewise.
4348 (gif_load): Likewise.
4349 (imagemagick_load_image): Likewise.
4350 (imagemagick_load): Likewise.
4351 (svg_load): Likewise.
4352 (gs_load): Likewise.
4353
6e6b8e25
EZ
43542010-09-04 Eli Zaretskii <eliz@gnu.org>
4355
bba3e508
SM
4356 * w32uniscribe.c (uniscribe_shape): Update commentary.
4357 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
4358 hold them in the logical order.
4359 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
4360 return glyph codes in the logical order.
4361
dbfe4532
AS
43622010-09-04 Andreas Schwab <schwab@linux-m68k.org>
4363
4364 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 4365 (imagemagick_load_image): Fix type mismatch.
5e5992c2 4366 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 4367
6d7cc563
JD
43682010-09-02 Jan Djärv <jan.h.d@swipnet.se>
4369
4370 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
4371
4372 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
4373
4374 * xselect.c: Remove declaration of cut-buffer objects and functions.
4375 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
4376 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
4377 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
4378 (Fx_rotate_cut_buffers_internal): Remove.
4379 (syms_of_xselect): Remove defsubr of above.
4380 Remove intern of QCUT_BUFFERn.
4381
8f4e9110
SM
43822010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
4383
4384 * cmds.c (Vblink_paren_function): Remove.
4385 (internal_self_insert): Make it insert N chars at a time.
4386 Don't call blink-paren-function.
4387 (Fself_insert_command): Adjust accordingly.
4388 (syms_of_cmds): Don't declare blink-paren-function.
4389
d419e1d9
KH
43902010-08-31 Kenichi Handa <handa@m17n.org>
4391
4392 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
4393 characters.
4394
4395 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
4396 (produce_glyphs): Don't set it->char_to_display here.
4397 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
4398 (produce_special_glyphs): Set temp_it.char_to_display before
4399 calling produce_glyphs.
4400
4401 * xdisp.c (get_next_display_element): Set it->char_to_display
4402 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
4403 characters.
4404 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
4405 calling PRODUCE_GLYPHS.
4406 (append_space_for_newline): Save and store it->char_to_display.
4407 Set it->char_to_display before calling PRODUCE_GLYPHS.
4408 (extend_face_to_end_of_line): Set it->char_to_display before
4409 calling PRODUCE_GLYPHS.
4410 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
4411 character to its byte value.
4412 (get_char_glyph_code): New function.
4413 (produce_stretch_glyph): Set it2.char_to_display too before
4414 calling x_produce_glyphs.
4415 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
4416 non-ASCII characters. Don't set it->char_to_display here.
4417 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 4418 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 4419
b819f760
SM
44202010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
4421
4422 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
4423
07fa68a7
CY
44242010-08-31 Chong Yidong <cyd@stupidchicken.com>
4425
4426 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
4427
cd196f12
SM
44282010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
4429
4430 * marker.c (Fcopy_marker): Make the first arg optional.
4431
49a752bb
KH
44322010-08-30 Kenichi Handa <handa@m17n.org>
4433
4434 * composite.c (composition_update_it): Fix computing of
4435 cmp_it->width.
4436
769ae9e1
KH
44372010-08-29 Kenichi Handa <handa@m17n.org>
4438
9e69cb05 4439 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 4440 corresponding bytes.
9e69cb05 4441
4520b858
J
44422010-08-29 Jan Djärv <jan.h.d@swipnet.se>
4443
4444 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
4445
fe50eb41
KH
44462010-08-26 Kenichi Handa <handa@m17n.org>
4447
4448 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
4449 on calling composition_compute_stop_pos.
4450
f6aa6ec6
KH
44512010-08-25 Kenichi Handa <handa@m17n.org>
4452
9dfdbc0a
KH
4453 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
4454 :otf.
4455
f6aa6ec6
KH
4456 * composite.c (composition_compute_stop_pos): Don't break
4457 composition at PT.
4458 (composition_reseat_it): Likewise. Fix calculation of character
4459 position starting a composition.
4460 (Fcomposition_get_gstring): Don't limit the number of components
4461 for automatic composition.
4462
ff94e32c
KH
44632010-08-25 Kenichi Handa <handa@m17n.org>
4464
4465 * composite.c (composition_compute_stop_pos): In forward search,
4466 pay attention to the possibility that some character after ENDPOS
4467 will be composed with charactrs before ENDPOS.
4468
1c409d0b
CY
44692010-08-24 Chong Yidong <cyd@stupidchicken.com>
4470
4471 * keyboard.c (command_loop_1): Don't clobber primary selection
4472 during handle-switch-frame (Bug#6872).
4473
0c372655
MA
44742010-08-23 Michael Albinus <michael.albinus@gmx.de>
4475
4476 * dbusbind.c: Accept UNIX domain sockets as bus address.
4477 (Fdbus_close_bus): New function.
4478 (Vdbus_registered_buses): New variable.
4479 (xd_initialize): Implement string as bus address.
4480 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
4481 (Fdbus_get_unique_name, Fdbus_call_method)
4482 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4483 (Fdbus_method_error_internal, Fdbus_send_signal)
4484 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
4485 check. This is done in xd_initialize_bus. Adapt doc string, if
4486 necessary.
4487 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
4488 Vdbus_registered_buses.
4489 (Vdbus_registered_objects_table): Create hash.
4490
7133b7ee
JL
44912010-08-22 Juri Linkov <juri@jurta.org>
4492
4493 * keyboard.c (Fexecute_extended_command): Move reading a command name
4494 with `completing-read' to a new Elisp function `read-extended-command'.
4495 Call it to read a command to `function' (bug#5364, bug#5214).
4496
198a7a97
CY
44972010-08-22 Chong Yidong <cyd@stupidchicken.com>
4498
4499 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
4500
b0126eac 45012010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
4502
4503 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
4504 instead of SAFE_ALLOCA.
4505
b0126eac 45062010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
4507
4508 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
4509 (Bug#6214).
4510
b0126eac 45112010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
4512
4513 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
4514
b0126eac
CY
45152010-08-22 Jan Djärv <jan.h.d@swipnet.se>
4516
4517 * doc.c (Fsnarf_documentation): Initialize skip_file before
4518 build-files test.
4519
692f3ddc 45202010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 4521
692f3ddc
JB
4522 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
4523 New definitions.
b0126eac
CY
4524 (HAVE_TERMIO): Remove.
4525
5f2f0bc1
EZ
45262010-08-22 Eli Zaretskii <eliz@gnu.org>
4527
b613941b
EZ
4528 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
4529
a583bbef
EZ
4530 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
4531 for w32.
4532
4533 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
4534 it's done in nt/config.nt.
4535
4536 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
4537
5f2f0bc1
EZ
4538 * unexcoff.c (report_error, make_hdr, write_segment)
4539 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
4540 Convert argument lists and prototypes to ANSI C.
4541 (make_hdr, write_segment): Remove unused variables.
4542 (unexec): Remove commented-out line. Initialize `new' to shut up
4543 compiler warnings.
4544
a7ebc409
DN
45452010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
4546
4547 Simplify termio code.
4548 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
4549 HAVE_TERMIO code is obsolete.
4550 Replace HAVE_TERMIOS conditionals with !DOS_NT.
4551 * systty.h: Do not define HAVE_TCATTR.
4552 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
4553 Do not define EMACS_HAVE_TTY_PGRP. Only define
4554 EMACS_GET_TTY_PGRP for !DOS_NT.
4555 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
4556 sys/ioctl.h and termios.h, systty.h does it.
4557 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
4558 (init_baud_rate): Remove HAVE_TERMIO code.
4559 (child_setup_tty): Remove HAVE_TERMIO code.
4560 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
4561 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
4562 (new_ltchars, new_tchars): Remove, unused.
4563 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
4564 code. Remove special casing for __mips__, it was a no-op.
4565 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
4566 (init_sys_modes): Remove HPUX special case.
4567 * process.c: Include stdlib.h unconditionally. Do not include
4568 fcntl.h, systty.h does it. Remove conditional code for
4569 HAVE_SERIAL, it is always true.
4570 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
4571 always true when SIGNALS_VIA_CHARACTERS is true.
4572 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
4573 !WINDOWSNT means HAVE_TERMIOS.
4574 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
4575 conditional, which is true for all HAVE_TERMIOS systems.
4576 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
4577 instead of HAVE_TERMIOS.
4578 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
4579 EMACS_HAVE_TTY_PGRP.
4580 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
4581 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
4582 anyway.
4583
914f049b 45842010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
4585
4586 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
4587 mirroring pixel positions.
4588
d931da8c
DN
45892010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
4590
b5c76d0c
DN
4591 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
4592 write only.
4593 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
4594 malloc_sbrk_used, nothing uses them.
4595
74815588
DN
4596 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
4597 defined, unconditionally defined in lisp.h.
4598
f5817d1c
DN
4599 * term.c: Do not include <termios.h>, systty.h does it.
4600
d931da8c
DN
4601 * s/unixware.h (HAVE_TCATTR):
4602 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
4603 systty.h defines it when HAVE_TERMIOS is defined.
4604
ff2de6d2 46052010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 4606
b43c883c 4607 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 4608 terminals: add one-character offset for R2L lines.
b43c883c 4609
491a1546
EZ
4610 * emacs.c <emacs_version>: Add a comment regarding
4611 msdos/mainmake.v2's dependency on the syntax of this declaration.
4612
2396cbba
EZ
46132010-08-20 Eli Zaretskii <eliz@gnu.org>
4614
4615 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
4616 position for R2L lines by mirroring the pixel position wrt the
4617 text are box. Improve commentary.
4618
7df6150a
AS
46192010-08-20 Andreas Schwab <schwab@linux-m68k.org>
4620
4621 * image.c (imagemagick_clear_image): Remove debugging output.
4622
a2e5caf7
SM
46232010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4624
4625 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
4626 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
4627 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
4628 self-insert-face.
4629 (syms_of_cmds): Initialize the new vars.
4630
20d60baf
JR
46312010-08-19 Jason Rumney <jasonr@gnu.org>
4632
cc477da7
JR
4633 * w32menu.c (set_frame_menubar): Remove call to undefined function.
4634
20d60baf
JR
4635 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
4636
2c0ac867
J
46372010-08-19 Jan Djärv <jan.h.d@swipnet.se>
4638
4639 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
4640
93352106
EZ
46412010-08-18 Eli Zaretskii <eliz@gnu.org>
4642
4643 * xterm.c (x_draw_bar_cursor):
4644 * w32term.c (x_draw_bar_cursor): If the character under cursor is
4645 R2L, draw the bar cursor on its right rather than on its left.
4646
c785836d
SM
46472010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
4648
0193499f
SM
4649 * eval.c (Fdefmacro): Only obey one declaration.
4650
c785836d
SM
4651 * casefiddle.c (casify_region): Setup gl_state.
4652
9cb728a5
J
46532010-08-18 Jan Djärv <jan.h.d@swipnet.se>
4654
4655 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
4656
e1e18511
J
46572010-08-18 Jan Djärv <jan.h.d@swipnet.se>
4658
1d77b63e 4659 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 4660
64cb6c78
J
46612010-08-18 David De La Harpe Golden <david@harpegolden.net>
4662
4663 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
4664 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
4665 QPRIMARY => NXPrimaryPboard.
4666 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
4667 NXPrimaryPboard => QPRIMARY.
4668 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
4669 NXSecondaryPboard = SecondarySelection.
4670 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
4671
0c9b8993
GM
46722010-08-18 Joakim Verona <joakim@verona.se>
4673
4674 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
4675 defined:
4676 (imagemagick_image_p): New function to test for ImageMagic image.
4677 (imagemagick_load): New function to load ImageMagick image.
4678 (imagemagick_load_image): New function, helper for imagemagick_load.
4679 (imagemagick-types): New function.
4680 (Qimagemagick): New Lisp_object.
4681 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 4682
c3554f68
SM
46832010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
4684
4685 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
4686 is a string.
4687
1ff2e434
J
46882010-08-17 Jan Djärv <jan.h.d@swipnet.se>
4689
4690 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
4691 x_set_tool_bar_position handler.
4692
0cc56427
EZ
46932010-08-17 Eli Zaretskii <eliz@gnu.org>
4694
4695 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
4696 x_set_tool_bar_position handler, needed to support changes from
4697 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
4698
e45a249b
JD
46992010-08-16 Jan Djärv <jan.h.d@swipnet.se>
4700
2f8f196d 4701 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
921242c6 4702 declaration (Bug#6863).
573d150b 4703 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 4704
e45a249b
JD
4705 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
4706
4707 * keyboard.h (QPRIMARY): Declare (Bug#6864).
4708
7c23dd44
CY
47092010-08-16 Chong Yidong <cyd@stupidchicken.com>
4710
4711 * keyboard.c (command_loop_1): Avoid setting selection twice,
4712 since it's done in deactivate-mark as well.
4713 (Vselect_active_regions): Change default to t. Replace `lazy'
4714 with non-default value `only', meaning only set PRIMARY for
4715 temporarily active regions.
4716
4717 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
4718 select-active-regions.
4719
0005830c
J
47202010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4721
4722 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
4723 isn't a string.
4724
603dfc72
AS
47252010-08-15 Andreas Schwab <schwab@linux-m68k.org>
4726
4727 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
4728
c25ce9d0
J
47292010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4730
c3554f68
SM
4731 * keyboard.c (parse_tool_bar_item): malloc buf.
4732 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
4733 new_lbl (Bug#6855).
c25ce9d0 4734
5872c762
EZ
47352010-08-14 Eli Zaretskii <eliz@gnu.org>
4736
b236615c
EZ
4737 * xterm.c (x_draw_stretch_glyph_string):
4738 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
4739 the cursor on the right edge of the stretch glyph.
4740
c3554f68
SM
4741 * xdisp.c (window_box_right_offset, window_box_right):
4742 Fix commentary.
b236615c 4743
5872c762
EZ
4744 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
4745 direction when point is inside a run of whitespace characters.
4746
4747 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
4748
e66f9a1b
JR
47492010-08-14 Jason Rumney <jasonr@gnu.org>
4750
4751 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
4752
79d6f59e
CY
47532010-08-14 Chong Yidong <cyd@stupidchicken.com>
4754
4755 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
4756
1c9b4129
JR
47572010-08-13 Jason Rumney <jasonr@gnu.org>
4758
4759 * w32menu.c (simple_dialog_show): Use unicode message box if available.
4760 (MessageBoxW_Proc): New function typedef.
4761 (unicode-message-box): New function pointer.
2f8f196d 4762 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1c9b4129 4763
2b4e6277
J
47642010-08-13 Jan Djärv <jan.h.d@swipnet.se>
4765
4766 * frame.h (Qtool_bar_position): Declare.
4767
4768 * xfns.c (Fx_create_frame): Call x_default_parameter for
4769 Qtool_bar_position.
4770
94c97d85
EZ
47712010-08-13 Eli Zaretskii <eliz@gnu.org>
4772
8ee81892
EZ
4773 * unexcoff.c: Remove the parts used when "emacs" is not defined.
4774 (report_error, report_error_1): Ditto.
4775 (write_segment): Remove "#if 0" unused code.
4776 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
4777 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
4778 (start_of_text): Remove unused function (was used only if NO_REMAP
4779 was NOT defined).
4780
891ef8f7
EZ
4781 * msdos.c (IT_set_face): Fix format string to match argument
4782 types.
4783 (IT_write_glyphs, IT_note_mode_line_highlight)
4784 (IT_set_frame_parameters): Remove unused variables.
4785 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
4786 (IT_set_terminal_modes): Disambiguate expression in if clause.
4787 (Fmsdos_remember_default_colors): Return Qnil.
4788 (IT_set_frame_parameters): Add parens to disambiguate boolean
4789 expression for logging the cursor type to termscript.
4790 (keyboard_layout_list, keypad_translate_map)
4791 (grey_key_translate_map): Add braces in inner initializers.
4792 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
4793 (dos_rawgetc): Remove unused label.
4794 (XMenuActivate): Add braces to remove ambiguous `else'.
4795 (dos_ttraw): Always return a value.
4796 (spawnve): Declare.
4797 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
4798
4799 * dosfns.h (x_set_title): Declare.
4800
4801 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4802 Remove unused variables.
4803
4804 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
4805 variables.
4806 (init_dosfns): Declare get_lim_data.
4807 (system_process_attributes): Declare Fget_internal_run_time.
4808
38e41e0e
EZ
4809 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
4810 list to be consistent with menu.h.
4811
94c97d85
EZ
4812 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
4813 warnings due to mixing of "char *" and "const char *".
4814
c5683ceb
SM
48152010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4816
4817 Introduce a new comment style "c" flag.
4818 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
4819 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
4820 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
4821 (syntax_prefix_flag_p): New function.
4822 (Fstring_to_syntax): Understand new "c" flag.
4823 (Finternal_describe_syntax_value): Recognize new flag; use the
4824 SYNTAX_FLAGS_* macros.
4825 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
4826 comment style to accomodate the new styles.
4827 (back_comment, forw_comment, Fforward_comment, scan_lists)
4828 (scan_sexps_forward): Update code to obey the new comment style flag.
4829
4830 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
4831
4832 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
4833
7aee76f4
J
48342010-08-11 Jan Djärv <jan.h.d@swipnet.se>
4835
3a46642b
J
4836 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
4837 first.
94dff98f 4838 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
4839
4840 * gtkutil.h (xg_check_special_colors): Declare.
4841
4842 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
4843 (xg_create_frame_widgets): Connect theme name changes to
4844 style_changed_cb.
4845
42ca4633
J
4846 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
4847 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
4848 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 4849 string literal. file is const char*.
42ca4633
J
4850
4851 * xsmfns.c (NOSPLASH_OPT): Change to char[].
4852 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
4853 props. Free them at the end.
4854
4855 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
4856
c5683ceb
SM
4857 * xrdb.c (get_system_app): Make path const and use char *p for
4858 non-const char.
42ca4633
J
4859
4860 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 4861 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
4862 char *.
4863 (button_names): Is const char *.
4864 (xdialog_show): error_name and pane_string is const.
4865
4866 * process.h (synch_process_death): Is const char*.
4867
4868 * w32menu.c (w32_menu_show):
4869 * nsmenu.m (ns_menu_show): error parameter is const char **.
4870
4871 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
4872 is const char **.
4873
4874 * menu.c (Fx_popup_menu): error_name is const.
4875
4876 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
4877 with unsigned char and XtPointer with void *.
4878
4879 * gtkutil.h: Replace widget_value with struct _widget_value.
4880 (enum button_type, struct _widget_value): Remove and use the one from
4881 keyboard.h.
4882
4883 * gtkutil.c (get_utf8_string): Always return an allocated string.
4884 Parameter is const.
4885 (create_dialog, xg_create_one_menuitem, create_menus)
4886 (xg_item_label_same_p, xg_update_menu_item): Free result from
4887 get_utf8_string.
4888 (xg_separator_p, xg_item_label_same_p): label is const.
4889
4890 * font.h (font_open_by_name): Make name const.
4891
4892 * font.c (font_open_by_name): Make name const.
4893
4894 * floatfns.c (matherr): Use a const char* variable for x->name.
4895
4896 * emacs.c (main): Pass char[] to putenv instead of literal.
4897
4898 * callproc.c (synch_process_death): Make const.
4899 (Fcall_process): Make signame const.
4900
9c5bd55a
J
4901 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
4902 (addDisplayItemWithImage): Use const char*.
4903
4904 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
4905 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
4906
4907 * nsfont.m (ns_descriptor_to_entity): Use const char*.
4908
4909 * keyboard.h (_widget_value): name, value and key are const char*.
4910
7aee76f4
J
4911 * unexmacosx.c (unexec_error): Use const char *.
4912
09d93395
DN
49132010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4914
4915 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4916 (font_parse_name, font_open_by_name):
09d93395 4917 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4918 (font_parse_name, font_open_by_name): Remove const.
09d93395 4919
671d409f
AS
49202010-08-09 Andreas Schwab <schwab@linux-m68k.org>
4921
4922 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
4923 definition.
4924
4925 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
4926 * m/amdx86-64.h: Likewise.
4927 * m/arm.h: Likewise.
4928 * m/hp800.h: Likewise.
4929 * m/ia64.h: Likewise.
4930 * m/ibmrs6000.h: Likewise.
4931 * m/ibms390.h: Likewise.
4932 * m/intel386.h: Likewise.
4933 * m/iris4d.h: Likewise.
4934 * m/m68k.h: Likewise.
4935 * m/macppc.h: Likewise.
4936 * m/mips.h: Likewise.
4937 * m/sh3.h: Likewise.
4938 * m/sparc.h: Likewise.
4939 * m/template.h: Likewise.
4940 * m/vax.h: Likewise.
4941 * m/xtensa.h: Likewise.
4942 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
4943 WORDS_BIG_ENDIAN.
4944 * lisp.h: Likewise.
4945 * md5.c: Likewise.
4946 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
4947
8ea90aa3
DN
49482010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4949
4950 Use const char* instead of char*.
4951 Reduce the number of warnings with -Wwrite-strings.
4952 * xrdb.c (get_environ_db, get_system_name):
4953 * unexelf.c (find_section):
4954 * term.c (string_cost, string_cost_one_line, per_line_cost)
4955 (get_named_tty, init_tty):
4956 * sysdep.c (sys_subshell):
4957 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
4958 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
4959 * search.c (Freplace_match):
4960 * process.c (Fmake_network_process, send_process, init_process):
4961 * lread.c (Fload, init_lread):
4962 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
4963 * keyboard.c (parse_tool_bar_item, struct event_head):
4964 * gtkutil.h (xg_get_font_name):
4965 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
4966 (make_widget_for_menu_item, make_menu_item, create_menus)
4967 (xg_make_tool_item):
4968 * font.c (parse_matrix, font_parse_name):
4969 * floatfns.c (rounding_driver, float_error_fn_name):
4970 * filelock.c (get_boot_time_1, lock_file_1):
4971 * fileio.c (barf_or_query_if_file_exists, check_writable):
4972 * editfns.c (get_system_name, get_operating_system_release)
4973 (Fencode_time, Fset_time_zone_rule):
4974 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
4975 * buffer.c (defvar_per_buffer): Use const.
4976
7815fe19 49772010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 4978
692f3ddc 4979 * charset.c: Include <stdlib.h>.
7a84eee5
KH
4980 (struct charset_sort_data): New struct.
4981 (charset_compare): New function.
692f3ddc 4982 (Fsort_charsets): New function.
7a84eee5
KH
4983 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
4984
4985 * coding.c (decode_coding_iso_2022): Fix checking of dimension
4986 number in CTEXT extended segment.
4987
7815fe19 49882010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
4989
4990 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4991 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
4992
7815fe19 49932010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
4994
4995 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
4996 (Fhash_table_size): Fix typos in docstrings.
4997 (Fmake_hash_table): Doc fix.
4998
7815fe19 49992010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
5000
5001 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
5002 Doc fix (bug#5625).
5003
7815fe19 50042010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
5005
5006 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
5007 the MSDOS definition.
5008
1b6d8cf0
DN
50092010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
5010
675e2c69
DN
5011 Use const char* instead of char*.
5012 * xterm.c (x_create_toolkit_scroll_bar):
5013 * xfont.c (xfont_list_pattern):
5014 * xfns.c (x_default_scroll_bar_color_parameter)
5015 (xic_create_fontsetname, x_default_font_parameter)
5016 (x_screen_planes):
5017 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
5018 (store_mode_line_string, decode_mode_spec, display_string):
5019 * menu.c (digest_single_submenu):
5020 * keymap.h (initial_define_key, initial_define_lispy_key):
5021 * keymap.c (initial_define_key, initial_define_lispy_key):
5022 * image.c (image_error, image_keyword):
5023 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
5024 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
5025 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
5026 (ftfont_list, ftfont_match):
5027 * frame.c (frame_parm_table):
5028 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5029 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5030 (font_add_log, font_deferred_log):
5031 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5032 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5033 (font_add_log, font_deferred_log):
5034 * emacs.c (argmatch):
5035 * dispextern.h (struct it):
5036 * coding.c (ENCODE_DESIGNATION):
5037 * charset.c (define_charset_internal): Use const.
5038
25717ca1
DN
5039 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
5040
c5683ceb
SM
5041 * xrdb.c: Remove include guard.
5042 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
5043 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
5044 realloc->xrealloc instead of using #defines.
5045
efb41e21
EZ
50462010-08-08 Eli Zaretskii <eliz@gnu.org>
5047
cd21226d 5048 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
5049 * editfns.c (Fline_beginning_position, Fline_end_position):
5050 State in the doc strings that start and end of line are in the
5051 logical order.
cd21226d 5052
efb41e21
EZ
5053 * xdisp.c (display_line): Move the handling of overlay arrow after
5054 the call to find_row_edges. (Bug#6699)
5055
746812d9
CY
50562010-08-07 Chong Yidong <cyd@stupidchicken.com>
5057
5058 * keyboard.c (command_loop_1):
5059 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
5060
9852377f
CY
50612010-08-07 Chong Yidong <cyd@stupidchicken.com>
5062
5063 * insdel.c (prepare_to_modify_buffer): Save active region text to
5064 Vsaved_region_selection.
5065
5066 * xselect.c (QPRIMARY): Move to keyboard.c.
5067
5068 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
5069 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
5070 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 5071
0e9c8657
JB
50722010-08-07 Juanma Barranquero <lekktu@gmail.com>
5073
5074 * alloc.c (lisp_malloc):
5075 * buffer.c (set_buffer_internal, set_buffer_internal_1):
5076 * charset.h (emacs_mule_charset):
5077 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
5078 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
5079 (bitch_at_user):
5080 * lisp.h (Fcheck_coding_system, Fget_text_property)
5081 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
5082 Remove duplicate declarations.
5083
648801d1
DN
50842010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5085
32bc6709
DN
5086 * process.c: Simplify include logic.
5087
3ef1d108
DN
5088 * keyboard.h (quit_char): Add declaration.
5089 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
5090 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
5091 Add declarations.
3ef1d108
DN
5092 * sysdep.c:
5093 * w32.c: Remove the above declarations.
5094
97ec208f
DN
5095 Remove extern declarations in .c files, .h files have them.
5096 * xterm.c:
5097 * xdisp.c:
97ec208f
DN
5098 * msdos.c:
5099 * image.c:
5100 * gtkutil.c:
5101 * fileio.c:
5102 * eval.c: Remove declarations.
5103
94eed851
DN
5104 * frame.c (frame_params): Make const.
5105
36e053eb
DN
5106 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
5107
0e843971
DN
5108 * emacs.c (emacs_copyright, emacs_version): Make static.
5109 (Vinitial_window_system, Vauto_save_list_file_name)
5110 (Vinhibit_redisplay): Remove declarations.
5111 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
5112 for AIX.
5113
648801d1
DN
5114 Use const for some arrays and functions.
5115 * xterm.h (xg_set_icon_from_xpm_data):
5116 * xfns.c (xg_set_icon_from_xpm_data):
5117 * term.c (fkeys):
5118 * keyboard.c (lispy_accent_keys, lispy_function_keys)
5119 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
5120 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
5121 (frame.c frame_parms):
5122 * emacs-icon.h (gnu_xpm_bits):
5123 * callint.c (callint_argfuns): Use const.
5124
8646d999
J
51252010-08-06 Jan Djärv <jan.h.d@swipnet.se>
5126
5127 * sysdep.c: Move include term.h last of includes (Bug#6812).
5128
cb4545ad
EZ
51292010-08-06 Eli Zaretskii <eliz@gnu.org>
5130
5131 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
5132
5133 * msdos.c (IT_display_cursor): Log cursor position on termscript.
5134
5135 * .gdbinit (pgx): Display the avoid_cursor_p flag.
5136
da7e2be6
JB
51372010-08-06 Juanma Barranquero <lekktu@gmail.com>
5138
5139 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
5140
3d608a86
J
51412010-08-06 Jan Djärv <jan.h.d@swipnet.se>
5142
7908fb60
J
5143 * xterm.h (x_get_focus_frame): Declare.
5144
5145 * keyboard.h (poll_for_input_1): Unconditionally declare.
5146
4094bf36
J
5147 * nsterm.h (x_set_menu_bar_lines): Declare.
5148
5149 * window.c: Don't include menu.h, it depends on lots of other .h-files.
5150
3d608a86
J
5151 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
5152
5153 * window.c: Include menu.h.
5154
5155 * unexmacosx.c (print_region_list, print_regions)
5156 (build_region_list, find_emacs_zone_regions)
5157 (unexec_regions_merge, read_load_commands, dump_it)
5158 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
5159
5160 * term.c: Check HAVE_SYS_IOCTL_H.
5161
686b968e 5162 * sysdep.c: Check HAVE_TERM_H.
3d608a86 5163
686b968e 5164 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
5165
5166 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
5167 (ns_ring_bell, ns_defined_color, hide_hourglass)
5168 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
5169 Convert to ANSI C prototypes.
5170 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
5171 before code.
5172
5173 * nsterm.h : Include sysselect.h.
5174 (x_sync, x_get_focus_frame, x_set_mouse_position)
5175 (x_set_mouse_pixel_position, x_make_frame_visible)
5176 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
5177 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
5178 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
5179 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 5180 Declare.
3d608a86
J
5181
5182 * nsmenu.m (popup_activated, name_is_separator)
5183 (syms_of_nsmenu): Convert to ANSI C prototypes.
5184 (runMenuAt): Prototypes and move declarations before code.
5185
5186 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
5187
5188 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
5189 prototypes.
5190
5191 * nsfns.m (have_menus_p, ns_display_info_for_name)
5192 (x_set_cursor_type, ns_appkit_version_str)
5193 (ns_appkit_version_int, ns_do_applescript)
5194 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
5195 (syms_of_nsfns): Convert to ANSI C prototypes.
5196
5197 * menu.h (x_set_menu_bar_line): Declare.
5198 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
5199
5200 * lisp.h (fmod_float): Declare.
5201
5202 * image.c (xpm_scan, xpm_make_color_table_v)
5203 (xpm_put_color_table_v, xpm_get_color_table_v)
5204 (xpm_make_color_table_h, xpm_put_color_table_h)
5205 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
5206 (xpm_load): Convert to ANSI C prototypes.
5207
5208 * emacs.c: Include nsterm.h if HAVE_NS.
5209
5210 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
5211
fce70521
DN
52122010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5213
5214 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
5215 subprocesses, only MSDOS does not define HAVE_SOCKETS.
5216 (socket_options): Use const char* for name.
5217
a11889ab
JB
52182010-08-06 Juanma Barranquero <lekktu@gmail.com>
5219
5220 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
5221
5222 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
5223 Don't declare xmalloc_widget_value and digest_single_submenu.
5224
5225 * w32font.c (Qlatin): Remove declaration.
5226
5227 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
5228
c95b508f 5229 * dired.c (compile_pattern): Restore declaration.
a11889ab 5230
6254cdda
DN
52312010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
5232
04bab72c
DN
5233 Remove extern declarations in .c files, .h files have them.
5234 * data.c:
5235 * dired.c:
5236 * editfns.c:
5237 * filelock.c:
5238 * fns.c:
5239 * font.c:
5240 * fontset.c:
5241 * frame.c:
5242 * fringe.c:
5243 * ftfont.c:
5244 * gtkutil.c:
5245 * indent.c:
5246 * keyboard.c:
5247 * keymap.c:
5248 * lread.c:
5249 * menu.c:
5250 * print.c:
5251 * search.c:
5252 * sound.c:
5253 * window.c:
5254 * xdisp.c:
5255 * xfaces.c:
5256 * xfns.c:
5257 * xfont.c:
5258 * xftfont.c:
5259 * xmenu.c:
5260 * xterm.c: Remove declarations.
5261
dff94ed5
DN
5262 Cleanup syssignal.h.
5263 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
5264 (main_thread): Move down to remove #ifdef.
5265 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
5266 Remove conditional definition following unconditional ones.
5267
99f3388e
DN
5268 * lisp.h: Remove HAVE_SHM code, unused.
5269 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
5270 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
5271 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
5272 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
5273 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
5274 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
5275 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
5276 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
5277 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
5278 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
5279 (Qwindow_scroll_functions, Vafter_load_alist)
5280 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
5281 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
5282 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
5283 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
5284 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
5285 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
5286 (initial_argv, last_nonmenu_event, load_in_progress)
5287 (noninteractive_need_newline, scroll_margin): Add declarations.
5288
bba3e508
SM
5289 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5290 Remove declarations, menu.h has them.
99f3388e
DN
5291 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
5292 (Vinput_method_function, Qinput_method_function)
5293 (Qevent_symbol_element_mask, last_event_timestamp):
5294 * dispextern.h (Voverflow_newline_into_fringe):
5295 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
5296 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
5297 (syms_of_w32font, syms_of_nsfont):
5298 * fontset.h (find_font_encoding, Qlatin):
5299 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
5300 (Vtool_bar_mode, set_frame_menubar):
5301 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
5302 * xterm.h (Qx_gtk_map_stock):
5303 * keymap.h (meta_prefix_char): Add declarations.
5304
9f5dd6f2
DN
5305 * term.c: Remove dead code.
5306
6254cdda
DN
5307 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
5308 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
5309 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
5310 which is what was there before BSD_PGRPS was removed.
5311
29cf3e20
EZ
53122010-08-05 Eli Zaretskii <eliz@gnu.org>
5313
5314 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
5315
5316 * unexcoff.c: Renamed from unexec.c.
5317
aaa0a19a
SM
53182010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
5319
5320 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
5321
8d1d9587
JB
53222010-08-03 Johan Bockgård <bojohan@gnu.org>
5323
5324 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 5325 (Bug#6744)
8d1d9587 5326
9a747ba6
JD
53272010-08-02 Jan Djärv <jan.h.d@swipnet.se>
5328
4d464ae4
JD
5329 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
5330 to TRUE if depth of screen is < 16.
5331
ac01763e
JD
5332 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
5333 USE_GTK_TOOLTIP.
e0d62a9b
JB
5334 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
5335 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 5336 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
5337 USE_GTK_TOOLTIP.
5338 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
5339
5340 * xterm.h (USE_GTK_TOOLTIP): New define.
5341 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
5342
9a747ba6
JD
5343 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
5344 to Control-D (Bug#6771).
5345
7b0815ba
JB
53462010-08-02 Juanma Barranquero <lekktu@gmail.com>
5347
5348 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
5349 Wording by Drew Adams <drew.adams@oracle.com>.
5350
aa1859f5
J
53512010-08-01 Jan Djärv <jan.h.d@swipnet.se>
5352
5353 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
5354 ttip_lbl.
5355
5356 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
5357 calling gtk_widget_queue_draw.
5358 (x_free_frame_resources): Call xg_free_frame_widgets.
5359
5360 * xfns.c (x_gtk_use_system_tooltips): New variable.
5361 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
5362 new gtkutil tooltip functions to show the tooltip.
5363 (Fx_hide_tip): Call xg_hide_tooltip.
5364 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
5365
5366 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
5367 (xg_show_tooltip, xg_hide_tooltip): Declare.
5368
5369 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
5370 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
5371 New functions.
aa1859f5
J
5372 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
5373 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
5374 Remove code that is commented out.
5375
76417ef4
SM
53762010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
5377
5378 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
5379
16041401
CY
53802010-07-31 Chong Yidong <cyd@stupidchicken.com>
5381
5382 * xselect.c (x_own_selection): Use list4.
5383
2c09a58f
DN
53842010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
5385
5386 * buffer.c (Qwindow): Do not define, already defined in data.c.
5387 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
5388
59df9fdd 53892010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 5390
59df9fdd
JB
5391 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
5392 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
5393 * config.in: Undef HAVE_DIRENT_H.
1c97e857 5394 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 5395 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 5396
1b231651
DN
53972010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5398
5399 Rename s/usg5-4.h -> s/usg5-4-common.h.
5400 * s/usg5-4.h: Rename file to ...
5401 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
5402 * s/unixware.h:
5403 * s/sol2-6.h:
5404 * s/irix6-5.h: Update includes accordingly.
5405
bfeabdc3
JD
54062010-07-29 Jan Djärv <jan.h.d@swipnet.se>
5407
2ebf1083
J
5408 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
5409
bfeabdc3 5410 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
5411 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
5412 Remove toolbar_height.
5413 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
5414 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
5415 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
5416 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
5417
5418 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
5419
5420 * xfns.c (x_set_tool_bar_position): New function.
5421 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
5422 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 5423 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
5424
5425 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
5426 and FRAME_TOOLBAR_LEFT_WIDTH.
5427
5428 * gtkutil.h (xg_change_toolbar_position): Declare.
5429
5430 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
5431 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
5432 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
5433 (xg_create_frame_widgets): Create a hobox for placing widgets
5434 vertically. Use gtk_box_pack_start.
ef1b0ba7 5435 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
5436 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
5437 (xg_update_frame_menubar, free_frame_menubar): Change to
5438 xg_height_or_width_changed.
5439 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
5440 size correctly. Remove hardcoded 4, instead use handlebox size -
5441 toolbar size.
5442 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 5443 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
5444 (xg_pack_tool_bar): POS is a new parameter.
5445 Set orientation of tool bar based on pos.
5446 Only make handlebox_widget if NULL.
5447 Check if tool bar goes to vbox or hbox depending on pos.
5448 (xg_update_tool_bar_sizes): New function.
686b968e 5449 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
5450 height, call xg_update_tool_bar_sizes instead.
5451 (free_frame_tool_bar): Remove from hbox or vbox depending on
5452 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
5453 (xg_change_toolbar_position): New function.
5454
5455 * frame.h (struct frame): Add tool_bar_position.
5456 (Qbottom): Declare.
5457
5458 * frame.c (Qtool_bar_position): New variable.
5459 (make_frame): Set tool_bar_position to Qtop.
5460 (frame_parms): Add tool-bar-position.
5461 (x_report_frame_params): Store tool_bar_position.
5462 (x_set_fringe_width): Reset wm size hint after fringe changes.
5463
26469a38
DN
54642010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5465
5466 Make lisp_time_argument declaration work on all systems.
5467 * lisp.h (lisp_time_argument): Move declaration ...
5468 * systime.h (lisp_time_argument): ... here
5469 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
5470
8848b728
JD
54712010-07-29 Jan Djärv <jan.h.d@swipnet.se>
5472
5473 * vm-limit.c (POINTER): Add typedef for it.
5474 (start_of_data): Change return type from POINTER to char *.
5475
5476 * frame.h (Qtty_color_mode): Move declaration out of ifdef
5477 HAVE_WINDOW_SYSTEM.
5478
76fd1ee9
DN
54792010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5480
0441987e
DN
5481 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
5482 Remove reference to __osf__, unused.
5483
56a000c7
DN
5484 * mem-limits.h: Remove duplicated includes.
5485 (NULL): Remove definition, unused.
5486 (POINTER): Remove definition.
5487 (start_of_data): Use char* in prototype, as the function
5488 definition does.
5489
e6cba650
DN
5490 Remove extern declarations from .c files, and them to .h files.
5491 * keyboard.h (Qhelp_echo, waiting_for_input)
5492 (input_available_clear_time, ignore_mouse_drag_p)
5493 (Vdouble_click_time, real_this_command, Vthis_original_command):
5494 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
5495 (Voverriding_local_map_menu_flag):
5496 * lisp.h (Qinteractive_form, use_file_dialog)
5497 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
5498 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
5499 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5500 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
5501 (Qfunction, debug_on_next_call, Qfield)
5502 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
5503 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
5504 (Qfile_directory_p, Qinsert_file_contents)
5505 (Qcompletion_ignore_case, Qcompletion_ignore_case)
5506 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
5507 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
5508 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
5509 (Qminibuffer_prompt)
5510 (Vtemporary_file_directory,char_ins_del_vector, Qface):
5511 * xterm.h (gray_bitmap_width, gray_bitmap_height)
5512 (gray_bitmap_bits, xic_create_fontsetname):
5513 * coding.h (Vtranslation_table_for_input): Add extern declarations.
5514
5515 * xsmfns.c (Vuser_login_name):
5516 * xrdb.c (Vdouble_click_time):
5517 * xfaces.c (xic_create_fontsetname):
5518 * w32select.c (waiting_for_input):
5519 * print.c (minibuffer_auto_raise):
5520 * msdos.c (Qhelp_echo):
5521 * macros.c (real_this_command):
5522 * keymap.c (Voverriding_local_map):
5523 * xterm.c (poll_for_input_1, gray_bitmap_width)
5524 (gray_bitmap_height, gray_bitmap_bits;
5525 * xmenu.c ( Voverriding_local_map)
5526 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
5527 (use_file_dialog, Xt_app_con):
5528 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
5529 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
5530 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
5531 (Qtool_bar_lines, ignore_mouse_drag_p):
5532 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
5533 (Qrear_nonsticky, nconc2):
5534 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
5535 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
5536 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
5537 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
5538 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
5539 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
5540 (gc_in_progress):
5541 * doc.c (Voverriding_local_map, Qremap):
5542 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
5543 (Vcompletion_regexp_list):
5544 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
5545 (Qcompletion_ignore_case):
5546 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
5547 (Vhistory_length, Vthis_original_command, real_this_command)
5548 (Qface, Qminibuffer_prompt, history_delete_duplicates):
5549 * image.c (Qrisky_local_variable):
5550 * fontset.c (QCname):
5551 * fns.c (minibuffer_auto_raise, QCname):
5552 * dispnew.c (char_ins_del_cost):
5553 * composite.c (font_fill_lglyph_metrics):
5554 * cmds.c (Qface, Vtranslation_table_for_input):
5555 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
5556 * ccl.c (charset_unicode):
5557 * callproc.c (Vtemporary_file_directory):
5558 * buffer.c (emacs_strerror): Remove extern declarations.
5559
5560 * data.c (Qwindow): Make non-static, used from other files too.
5561 * frame.c (validate_x_resource_name): Remove shadow definition for i.
5562
76fd1ee9
DN
5563 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
5564 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
5565 * s/usg5-4.h (COFF):
5566 * s/template.h:
5567 * s/msdos.h (COFF, NO_REMAP):
5568 * s/ms-w32.h (NO_REMAP):
5569 * s/hpux10-20.h (NO_REMAP):
5570 * m/sparc.h (SEGMENT_MASK):
5571 * m/m68k.h (NO_REMAP):
5572 * m/intel386.h (SEGMENT_MASK):
5573 * m/arm.h (NO_REMAP):
5574 * m/alpha.h (COFF):
5575 * m/template.h: Remove references to unused defines.
5576
8a52f00a
JD
55772010-07-28 Jan Djärv <jan.h.d@swipnet.se>
5578
5579 * xsettings.c (Ftool_bar_get_system_style): Also check for
5580 Qtext_image_horiz.
5581
5582 * xdisp.c (Qtext_image_horiz): Define.
5583 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 5584 to documentation of tool-bar-style.
8a52f00a
JD
5585
5586 * lisp.h (Qtext_image_horiz): Declare.
5587
5588 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
5589 style text_image_horiz.
5590
89dc303e
DN
55912010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5592
60799703
DN
5593 * emacs.c (Fkill_emacs): Remove return statement.
5594
37254dc1
DN
5595 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
5596 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
5597 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
5598 Remove local extern declarations.
37254dc1 5599
71c7345a
DN
5600 * xmenu.c: Do not included lwlib.h, not needed.
5601
6ba577cb
DN
5602 * m/iris4d.h (XUINT, XSET): Remove, not needed.
5603
fdb183d6
DN
5604 * process.c: Move definitions earlier to minimize #ifdefs.
5605
5606 * xterm.h (x_get_customization_string, x_load_resources)
5607 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
5608 (x_check_errors, x_property_data_to_lisp, defined_color)
5609 (xic_set_xfontset, x_defined_color): Use const.
5610
5611 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
5612 (x_text_icon, x_check_errors, x_connection_closed): Use const.
5613
5614 * xselect.c (selection_data_to_lisp_data)
5615 (x_property_data_to_lisp):
5616 * xrdb.c (x_get_string_resource, file_p)
5617 (x_get_customization_string, magic_file_p, search_magic_path)
5618 (get_system_app, get_user_app, x_load_resources, x_get_resource)
5619 (x_get_string_resource): Use const.
5620
5621 * xfns.c: Include xlwmenu.h when USE_LUCID.
5622 (x_defined_color, xic_set_xfontset): Use const.
5623 (Fx_hide_tip): Remove local extern declaration.
5624
5625 * xfaces.c (Qmouse_face): Remove declaration.
5626 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 5627 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
5628
5629 * xdisp.c (do_mouse_tracking): Remove declaration.
5630 (add_to_log): Use const.
5631
5632 * minibuf.c (Qmouse_face): Remove declaration.
5633
5634 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
5635
5636 * keyboard.h (do_mouse_tracking): Add declaration.
5637
5638 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
5639 (QCdata, QCtype, Qcenter): Remove declarations.
5640
5641 * frame.c (x_get_resource_string, x_get_string_resource)
5642 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5643 (x_default_parameter): Use const.
5644
5645 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
5646 (QCheight, QCsize, QCname): Remove declarations.
5647
5648 * emacs.c (main): Remove local extern declaration.
5649
5650 * editfns.c (region_limit, syms_of_editfns): Remove local extern
5651 declarations.
5652
5653 * dispnew.c: Remove duplicate #include <unistd.h>.
5654 (update_window, update_frame_1, init_display): Remove local extern
5655 declarations.
5656
5657 * dispextern.h (add_to_log): Remove declaration.
5658 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5659 (x_frame_get_and_record_arg, x_default_parameter): Add const.
5660
5661 * dired.c (scmp): Add const.
5662 (directory_files_internal): Remove local extern declaration.
5663
5664 * data.c (Finteractive_form): Use const.
5665
5666 * composite.c (syms_of_composite): Remove local extern declarations.
5667
5668 * charset.c (add_to_log): Remove declaration.
5669
5670 * character.c (strwidth, parse_str_to_multibyte): Add const.
5671
5672 * character.h (strwidth, parse_str_to_multibyte): Likewise.
5673
5674 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
5675
89dc303e 5676 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
5677 (Lisp_Subr): Make doc and intspec constant.
5678 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
5679 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
5680 (QCheight, QCsize, QCname, QCwidth, QCforeground)
5681 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
5682 (display_arg): Add declarations.
89dc303e 5683
0ed082fe 56842010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
5685
5686 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
5687
0ed082fe
JB
5688 * window.c (Fwindow_height): Doc fix (bug#6518).
5689
56902010-07-27 Juanma Barranquero <lekktu@gmail.com>
5691
5692 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
5693
ccaf0336
DN
56942010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
5695
977105dc
DN
5696 * keyboard.c (Ftop_level, Fexit_recursive_edit)
5697 (Fabort_recursive_edit): Remove return statements in NO_RETURN
5698 functions.
5699
f5ada890
DN
5700 * frame.h (Qtty_color_mode): Add declaration.
5701
ccaf0336
DN
5702 * lisp.h (Ftop_level, Fexit_recursive_edit)
5703 (Fabort_recursive_edit): Mark as NO_RETURN.
5704
dfe3c90f
KH
57052010-07-26 Kenichi Handa <handa@m17n.org>
5706
5707 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 5708 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 5709
7d383292
JB
57102010-07-26 Juanma Barranquero <lekktu@gmail.com>
5711
5712 * lread.c (unreadpure, mapatoms_1): Make static.
5713
da31e629
JB
57142010-07-25 Juanma Barranquero <lekktu@gmail.com>
5715
5716 * terminfo.c (tparam): Fix prototype of tparm.
5717
7bfa6d77
AS
57182010-07-25 Andreas Schwab <schwab@linux-m68k.org>
5719
dcc19aac
AS
5720 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
5721 find start of text segment.
5722 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
5723 is defined.
5724
7bfa6d77
AS
5725 * callproc.c (set_initial_environment): Avoid unbalanced braces.
5726
63f9a672
KB
57272010-07-25 Ken Brown <kbrown@cornell.edu>
5728
5729 * vm-limit.c (check_memory_limits): Fix previous change;
5730 accidentally reverted an earlier change.
5731
24933075
KB
57322010-07-25 Ken Brown <kbrown@cornell.edu>
5733
5734 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
5735 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
5736
361358ea
JB
57372010-07-25 Juanma Barranquero <lekktu@gmail.com>
5738
5739 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
5740 * dired.c (opendir, readdir): Fix prototypes.
5741 * editfns.c (w32_get_internal_run_time): Fix prototypes.
5742 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
5743 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
5744 (telldir): Remove declaration.
5745 * ralloc.c (real_morecore, __morecore): Fix prototypes.
5746 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
5747 * syssignal.h (strsignal): Fix prototype.
5748 * term.c (tparam): Fix prototype.
5749 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
5750 (term_get_fkeys): Set inside "#ifndef DOS_NT".
5751 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
5752 and __morecore.
5753 * w32gui.h (XParseGeometry): Fix prototype.
5754 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
5755 * w32term.c (my_set_focus): Declare inside #if 0.
5756 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
5757 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
5758 (drain_message_queue, get_next_msg, post_msg, parse_button)
5759 (ClipboardSequence_Proc): Fix prototypes.
5760 (wait_for_sync): Remove declaration.
5761
630b9592
JB
57622010-07-24 Juanma Barranquero <lekktu@gmail.com>
5763
5764 * w32fns.c (w32_to_x_color): Remove, unused.
5765
6a0d6611
AS
57662010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5767
5768 * lisp.h: Remove leftover P_.
5769
4e8608ff
DN
57702010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5771
5772 * ecrt0.c, unexalpha.c: Remove files, unused.
5773
c8197983
AS
57742010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5775
5776 * cmds.c (internal_self_insert): Make static.
5777 * lisp.h (internal_self_insert): Remove declaration.
5778
97b372d7
JB
57792010-07-23 Juanma Barranquero <lekktu@gmail.com>
5780
33ac0414
JB
5781 * alloc.c (free_float):
5782 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
5783 * frame.c (delete_frame_handler):
5784 * ralloc.c (reorder_bloc):
5785 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
5786 Remove unused static functions.
5787
94da8397
JB
5788 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
5789 it is called only from NS code.
5790
2e6c8532
JB
5791 * w32term.c (my_set_focus): #ifdef away; it is called only from
5792 "#ifdef 0" code.
5793
97b372d7
JB
5794 * w32fns.c (x_edge_detection):
5795 * xfaces.c (may_use_scalable_font_p):
5796 Remove obsolete static declarations.
5797
7c3320d8
JB
57982010-07-20 Juanma Barranquero <lekktu@gmail.com>
5799
5800 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
5801 (emacs_blocked_realloc, uninterrupt_malloc):
5802 * fringe.c (w32_reset_fringes):
5803 * image.c (convert_mono_to_color_image, lookup_rgb_color)
5804 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
5805 * sound.c (be2hs, do_play_sound):
5806 * vm-limit.c (get_lim_data, ret_lim_data):
5807 * w32term.c (x_free_frame_resources):
5808 * xfaces.c (x_create_gc, x_free_gc):
5809 Convert definitions to standard C.
5810
d5273788
SM
58112010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
5812
5813 * eval.c (Feval, Ffuncall): Use the new names.
5814
5815 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
5816 (DEFUN): Add braces around the union initialisation and use ## to
5817 specify the right union alternative and avoid a cast.
5818
8d16a259
JB
58192010-07-18 Juanma Barranquero <lekktu@gmail.com>
5820
5821 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
5822
3b8eff32
CY
58232010-07-17 Chong Yidong <cyd@stupidchicken.com>
5824
5825 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
5826
499322ce
J
58272010-07-17 Jan Djärv <jan.h.d@swipnet.se>
5828
5829 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
5830 is related to the menu bar (Bug#6499).
a628ad9d 5831 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 5832
f6003da5 58332010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
5834
5835 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
5836
5837 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
5838
5839 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
5840 i.e. don't put back ButtonRelease (Bug#6608).
5841
5842 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
5843 instead of Window. Call xg_event_is_for_menubar when
5844 USE_GTK (Bug#6499).
5845
5846 * gtkutil.h (xg_event_is_for_menubar): Declare.
5847
5848 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
5849
f6003da5 58502010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
5851
5852 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
5853 when it's the same as the old foreground. (Bug#6609)
5854
23243f29
J
58552010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5856
5857 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
5858 widget is non-null (Bug#6645).
5859
2b23d2a6
AS
58602010-07-15 Andreas Schwab <schwab@linux-m68k.org>
5861
01b564ff
AS
5862 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
5863 Convert old-style definition.
5864
2b23d2a6
AS
5865 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
5866 timestamp argument.
5867
c4affd2c
EZ
58682010-07-15 Eli Zaretskii <eliz@gnu.org>
5869
5870 * fringe.c (update_window_fringes): Restore mistakenly reverted
5871 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
5872
cf28cebc
J
58732010-07-14 Jan Djärv <jan.h.d@swipnet.se>
5874
5875 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
5876 (SET_SAVED_KEY_EVENT): Remove (not used).
5877 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
5878 remove size parameter.
5879 (handle_one_xevent): Check popup_activated () for menu for Xt also.
5880 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
5881 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
5882 ButtonRelease.
6b2c4bd9
J
5883 (x_set_window_size_1): scroll_bar_actual_width is always
5884 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
5885
5886 * xdisp.c (pending_menu_activation): Remove extern declaration.
5887 (prepare_menu_bars): Remove setting of pending_menu_activation.
5888
5889 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
5890 (x_activate_menubar): Set popup_activated_flag for Xt also.
5891 Remove setting of pending_menu_activation.
cf28cebc
J
5892 (set_frame_menubar): Remove check of pending_menu_activation.
5893 Declare menubar_size before code. Correct spelling in comment.
5894
f6c1c771
KH
58952010-07-14 Kenichi Handa <handa@m17n.org>
5896
5897 * font.c (font_open_entity): Cancel previous change.
5898 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
5899
20477505
EZ
59002010-07-13 Eli Zaretskii <eliz@gnu.org>
5901
77defa9a
EZ
5902 Remove subprocesses #ifdefs.
5903 * process.c <inhibit_sentinels>: Move to the common part.
5904 (Fwaiting_for_user_input_p): Move to the common part; return nil
5905 if async subprocesses aren't supported.
5906 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
5907 MS-DOS. Remove "#ifdef subprocesses".
5908 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
5909 (gettimeofday): Remove "#ifdef subprocesses".
5910 (wait_without_blocking): Remove function.
5911 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
5912 Remove "#ifdef subprocesses".
5913 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
5914 compiled on MS-DOS.
5915 * callproc.c (Fcall_process) [!MSDOS]: Don't call
5916 wait_for_termination on MS-DOS.
5917 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
5918 initialization of inhibit_sentinels.
5919 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
5920 subprocesses" conditional.
5921 * callproc.c (Fcall_process) [!subprocesses]: Don't call
5922 wait_for_termination, since `buffer' cannot be an integer when
5923 async subprocesses are not supported
5924 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
5925 for ifdefing away the call to Fprocess_status.
5926
20477505
EZ
5927 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
5928 away the entire body of the function.
5929
b3ffc17c
DN
59302010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5931
01faa934
DN
5932 Remove subprocesses #ifdefs from term.c.
5933 * process.c (add_keyboard_wait_descriptor)
5934 (delete_keyboard_wait_descriptor): Move to common section, do
5935 nothing when subprocesses is not defined.
a628ad9d
JB
5936 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
5937 Remove subprocesses #ifdefs.
01faa934 5938
b3ffc17c
DN
5939 Convert maybe_fatal to standard C.
5940 * lisp.h (verror): Declare.
5941 * eval.c (verror): New function containing the code from ...
5942 (error): ... this. Call verror.
5943 * term.c (vfatal): New function containing the code from ...
5944 (fatal): ... this. Call vfatal.
5945 (maybe_fatal): Convert to standard C, use variable number of
5946 arguments. Declare as non-return.
5947 (init_tty): Fix maybe_fatal call.
5948
0521f580
DN
59492010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5950
5951 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
5952 (_scroll_bar_note_movement): Convert definitions to standard C.
5953 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
5954 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
5955
ebd15611
DN
59562010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5957
5958 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
5959 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
5960 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
5961 (xaw_jump_callback, xaw_scroll_callback)
5962 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
5963 (x_wm_set_size_hint, x_activate_timeout_atimer):
5964 Convert definitions to standard C.
ebd15611
DN
5965 * xmenu.c (menubar_id_to_frame, popup_get_selection)
5966 (popup_activate_callback, popup_deactivate_callback)
5967 (menu_highlight_callback, menubar_selection_callback)
5968 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
5969 (free_frame_menubar, popup_selection_callback, as)
5970 (create_and_show_popup_menu, dialog_selection_callback)
5971 (create_and_show_dialog):
5972 * xfns.c (hack_wm_protocols, x_window):
5973 * xfaces.c (x_update_menu_appearance):
5974 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
5975 (char_to_pixel_size, round_size_to_char, get_wm_shell)
5976 (set_frame_size, update_wm_hints, setup_frame_gcs)
5977 (update_various_frame_slots, update_from_various_frame_slots)
5978 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
5979 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
5980 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
5981
de06a2dd
AS
59822010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5983
a628ad9d 5984 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 5985
fc549af9
EZ
59862010-07-12 Eli Zaretskii <eliz@gnu.org>
5987
5988 * process.c (setup_process_coding_systems): Move to the part
5989 shared by non-subprocesses systems, and make its body empty when
5990 subprocesses is not defined.
5991 (close_process_descs): Move to the part shared by non-subprocesses
5992 systems.
1408902e
EZ
5993 (wait_reading_process_output) [!subprocesses]: Convert arg list to
5994 ANSI C.
fc549af9 5995
d5a3eaaf
AS
59962010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5997
5998 * editfns.c (transpose_markers): Convert old-style definition.
5999 * emacs.c (abort, shut_down_emacs, fixup_locale)
6000 (synchronize_system_time_locale)
6001 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
6002 * floatfns.c (extract_float, matherr, init_floatfns)
6003 (syms_of_floatfns): Likewise.
6004 * fns.c (make_hash_table): Likewise.
6005 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
6006 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
6007 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
6008 (ftfont_variation_glyphs): Likewise.
6009 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
6010 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
6011 * lread.c (read_filtered_event): Likewise.
6012 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
6013 * process.c (wait_reading_process_output): Likewise.
6014 * scroll.c (do_line_insertion_deletion_costs): Likewise.
6015 * search.c (search_buffer, boyer_moore): Likewise.
6016 * syntax.c (scan_sexps_forward): Likewise.
6017 * xdisp.c (try_scrolling): Likewise.
6018 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
6019 (face_at_string_position): Likewise.
6020 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
6021 * xselect.c (x_get_window_property, receive_incremental_selection)
6022 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
6023 Likewise.
6024 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
6025
6f704c76
DN
60262010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6027
ded80a25
DN
6028 * callproc.c (child_setup): Remove subprocesses conditional.
6029 Remove code dealing with SET_EMACS_PRIORITY, unused.
6030
49d937f4 6031 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
6032 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
6033
6034 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
6035 (__do_global_dtors, __main): Use void in definition.
6036 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
6037 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
6038 the only users from ...
6039 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
6040 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
6041 (HAVE_VOLATILE): Remove, unused.
6042
6f704c76
DN
6043 Convert more function definitions to standard C.
6044 * xdisp.c (window_box_edges, handle_single_display_spec)
6045 (display_string): Convert definition to standard C.
6046 * scroll.c (do_direct_scrolling, scrolling_1):
6047 * dispnew.c (allocate_matrices_for_frame_redisplay)
6048 (mirrored_line_dance):
6049 * coding.c (code_convert_string):
6050 * charset.c (map_charset_chars):
6051 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
6052 (Fregister_ccl_program, Fregister_code_conversion_map):
6053 * keyboard.c (kbd_buffer_nr_stored): Likewise.
6054 (head_table): Make static and const.
6055
e6cfa7c3
AS
60562010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6057
6058 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
6059 (PROFILING_LDFLAGS): Set from substitution.
6060 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
6061 CFLAGS last.
6062
892dd565
KH
60632010-07-12 Kenichi Handa <handa@m17n.org>
6064
6f2cdcd1
KH
6065 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
6066 (shortlisp): Likewise.
6067
892dd565
KH
6068 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
6069
6070 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
6071 of FONT_ENTITY_INDEX.
6072 (Ffont_get): If KEY is :otf and the font-object doesn't have the
6073 property, get the property value dynamically.
6074 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 6075 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 6076 return value changed.
bba3e508 6077 (syms_of_font): Adjust for the above change.
892dd565 6078
ae96d47a
AS
60792010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6080
c8fc18ee
AS
6081 * blockinput.h: Remove obsolete comment.
6082
89887d67
AS
6083 * lisp.h: Include <stddef.h>.
6084 (OFFSETOF): Don't define.
6085 (VECSIZE): Use offsetof instead of OFFSETOF.
6086 (PSEUDOVECSIZE): Likewise.
6087 * process.c (conv_sockaddr_to_lisp): Likewise.
6088 * alloc.c: Don't include <stddef.h>.
6089 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
6090
ae96d47a
AS
6091 * process.c: Remove obsolete comment.
6092
635c0aa1
CY
60932010-07-11 Chong Yidong <cyd@stupidchicken.com>
6094
6095 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
6096
a64df650
AS
60972010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6098
8966b757
AS
6099 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
6100 index, rindex.
6101 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
6102 * editfns.c (Fuser_full_name, Fformat): Likewise.
6103 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
6104 * fileio.c (Ffile_symlink_p): Likewise.
6105 * filelock.c (current_lock_owner): Likewise.
6106 * font.c (font_parse_name, font_parse_family_registry): Likewise.
6107 * fontset.c (fontset_pattern_regexp): Likewise.
6108 * lread.c (read1): Likewise.
6109 * sysdep.c (init_system_name): Likewise.
6110 * xfns.c (select_visual): Likewise.
6111 * s/hpux10-20.h (index, rindex): Don't define.
6112 * s/ms-w32.h (index): Likewise.
6113 * s/usg5-4.h: Likewise.
6114
cf237e27
AS
6115 * callproc.c (relocate_fd): Use F_DUPFD if defined.
6116
a8fe7202
AS
6117 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
6118 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
6119 (egetenv): Likewise.
6120 * doprnt.c (doprnt): Likewise.
6121 * editfns.c (set_time_zone_rule, format2): Likewise.
6122 * emacs.c (decode_env_path): Likewise.
6123 * eval.c (signal_error, error): Likewise.
6124 * insdel.c (replace_range_2): Likewise.
6125 * keyboard.c (cmd_error_internal): Likewise.
6126 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
6127 * print.c (write_string, write_string_1, print_error_message):
6128 Likewise.
6129 * vm-limit.c (warn_function, memory_warnings): Likewise.
6130 * xdisp.c (message1, message1_nolog, message_with_string)
6131 (vmessage, message, message_nolog): Likewise.
6132 * emacs.c: Remove duplicate declaration.
6133 * keyboard.h: Likewise.
6134 * lisp.h: Update prototypes.
6135
bb8e180f
AS
6136 * eval.c: Fix indentation problem.
6137
83380e65
AS
6138 * keyboard.c: Include "process.h"
6139
a64df650
AS
6140 * eval.c: Remove obsolete noinline declaration.
6141 * fns.c: Likewise.
6142
6a8033e1
KR
61432010-07-11 Ken Raeburn <raeburn@raeburn.org>
6144
6145 * doprnt.c (doprnt): Take a va_list argument instead of count and
6146 pointer.
6147 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 6148 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
6149 changed to take a va_list argument.
6150 (message): New variadic wrapper.
6151 (message_nolog): Now a variadic function, calling vmessage.
6152 * lisp.h: Include stdarg.h for va_list.
6153 (doprnt, error, message, message_nolog): Decls updated.
6154
462aa963
EZ
61552010-07-11 Eli Zaretskii <eliz@gnu.org>
6156
6157 * process.c (syms_of_process) <delete-exited-processes>: Define
6158 even if !subprocesses.
6159 (delete_exited_processes): Ditto.
6160
6161 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
6162 (delete_exited_processes): Don't define.
6163
48104462
CY
61642010-07-10 Chong Yidong <cyd@stupidchicken.com>
6165
6166 * frame.c (make_frame): Initialize menu_bar_lines and
6167 tool_bar_lines members.
bba3e508
SM
6168 (make_initial_frame, make_terminal_frame):
6169 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
6170
6171 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
6172
f388c88a
EZ
61732010-07-10 Eli Zaretskii <eliz@gnu.org>
6174
6175 * process.c: Reshuffle #include's. Condition some of the global
6176 and static variables on `subprocesses'.
6177 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
6178 Leave only one implementation.
6179 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
6180 (kill_buffer_processes, Flist_system_processes)
6181 (Fprocess_attributes, init_process, syms_of_process): Unify the
6182 implementations for with subprocesses and without them.
6183
723f5a07
J
61842010-07-09 Jan Djärv <jan.h.d@swipnet.se>
6185
6186 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
6187 correct size for Motif.
6188 (free_frame_menubar): Call x_set_window_size to update frame size.
6189
6190 * xfns.c (x_window): Set borderWidth to 0 for pane and
6191 EmacsFrame. Frame size calculation is wrong otherwise.
6192
2536a4b7
MA
61932010-07-09 Michael Albinus <michael.albinus@gmx.de>
6194
6195 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
6196 allows to suppress errors when polling in Emacs' main loop.
6197 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
6198 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
6199 (Fdbus_method_error_internal, Fdbus_send_signal)
6200 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
6201 (Fdbus_register_method): Use it. (Bug#6579)
6202
5842a27b
DN
62032010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6204
6205 * alloc.c: Convert DEFUNs to standard C.
6206 * buffer.c:
6207 * bytecode.c:
6208 * callint.c:
6209 * callproc.c:
6210 * casefiddle.c:
6211 * casetab.c:
6212 * category.c:
6213 * character.c:
6214 * charset.c:
6215 * chartab.c:
6216 * cmds.c:
6217 * coding.c:
6218 * composite.c:
6219 * data.c:
6220 * dbusbind.c:
6221 * dired.c:
6222 * dispnew.c:
6223 * doc.c:
6224 * dosfns.c:
6225 * editfns.c:
6226 * emacs.c:
6227 * eval.c:
6228 * fileio.c:
6229 * filelock.c:
6230 * floatfns.c:
6231 * fns.c:
6232 * font.c:
6233 * fontset.c:
6234 * frame.c:
6235 * fringe.c:
6236 * image.c:
6237 * indent.c:
6238 * insdel.c:
6239 * keyboard.c:
6240 * keymap.c:
6241 * lread.c:
6242 * macros.c:
6243 * marker.c:
6244 * menu.c:
6245 * minibuf.c:
6246 * msdos.c:
6247 * nsfns.m:
6248 * nsmenu.m:
6249 * nsselect.m:
6250 * print.c:
6251 * process.c:
6252 * search.c:
6253 * sound.c:
6254 * syntax.c:
6255 * term.c:
6256 * terminal.c:
6257 * textprop.c:
6258 * undo.c:
6259 * w16select.c:
6260 * w32console.c:
6261 * w32fns.c:
6262 * w32font.c:
6263 * w32menu.c:
6264 * w32proc.c:
6265 * w32select.c:
6266 * window.c:
6267 * xdisp.c:
6268 * xfaces.c:
6269 * xfns.c:
6270 * xmenu.c:
6271 * xselect.c:
6272 * xsettings.c:
6273 * xsmfns.c: Likewise.
6274
d568829b
EZ
62752010-07-08 Eli Zaretskii <eliz@gnu.org>
6276
6277 * process.c (kbd_is_on_hold, hold_keyboard_input)
6278 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
6279
52214050
J
62802010-07-08 Jan Djärv <jan.h.d@swipnet.se>
6281
6282 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
6283 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
6284 unless USE_LUCID.
6285
313d9eb2
DN
62862010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6287
a628ad9d
JB
6288 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
6289 declaration.
d8825aa3 6290
295d0d8f
DN
6291 Clean up include guards.
6292 * tparam.c: Remove include guards for config.h, string.h and code
6293 that assumes #ifndef emacs.
6294 * termcap.c:
6295 * unexalpha.c:
6296 * sysdep.c:
6297 * filemode.c:
6298 * filelock.c:
6299 * bidi.c: Likewise.
6300
49d9e6b0
DN
6301 Remove prefix-args.c
6302 * prefix-args.c: Remove file.
6303 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
6304 * Makefile.in (temacs${EXEEXT}): Remove references to
6305 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
6306 (mostlyclean): Remove reference to prefix-args.
6307 (prefix-args): Remove.
6308
313d9eb2
DN
6309 Simplify cstart_of_data, start_of_code and related code.
6310 * mem-limits.h: Remove !emacs and _LIBC conditional code.
6311 (start_of_data): Merge into start_of_data function.
6312 * sysdep.c (start_of_text): Remove. Move simplified versions of
6313 it in the only users: unexaix.c and unexec.c.
6314 (read_input_waiting): Remove local declaration of quit_char.
6315 (start, etext): Remove declarations.
6316 (start_of_data): Merge with the version in mem-limits.h and move
6317 to vm-limits.c.
6318 * vm-limit.c (start_of_data): Merged and simplified version of the
6319 code formerly in mem-limits.h and sysdep.c.
6320 * unexec.c (start): New declaration, moved from sysdep.c.
6321 (start_of_text): Simplified version of the code formerly in sysdep.c.
6322 * unexaix.c (start_of_text): Simplified version of the code
6323 formerly in sysdep.c.
6324 * m/alpha.h (HAVE_TEXT_START): Remove.
6325 (TEXT_START): Move ...
6326 * unexalpha.c (TEXT_START): ... here.
6327 * s/hpux10-20.h (TEXT_START): Remove.
6328 * s/darwin.h (TEXT_START):
6329 * m/mips.h (TEXT_START):
6330 * m/macppc.h (HAVE_TEXT_START):
6331 * m/m68k.h (TEXT_START):
6332 * m/iris4d.h (TEXT_START):
6333 * m/intel386.h (TEXT_START):
6334 * m/ibmrs6000.h (TEXT_START):
6335 * m/ia64.h (HAVE_TEXT_START):
6336 * s/msdos.h (TEXT_START): Likewise.
6337
72af86bd
AS
63382010-07-07 Andreas Schwab <schwab@linux-m68k.org>
6339
6340 * alloc.c (overrun_check_malloc, overrun_check_realloc)
6341 (overrun_check_free, xstrdup, allocate_string)
6342 (allocate_string_data, compact_small_strings, Fmake_string)
6343 (make_unibyte_string, make_multibyte_string)
6344 (make_string_from_bytes, make_specified_string, make_float)
6345 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
6346 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
6347 memcpy, memmove, memset, memcmp.
6348 * atimer.c (start_atimer, set_alarm): Likewise.
6349 * buffer.c (clone_per_buffer_values, report_overlay_modification)
6350 (mmap_realloc, init_buffer_once): Likewise.
6351 * callint.c (Fcall_interactively): Likewise.
6352 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
6353 (getenv_internal_1): Likewise.
6354 * casefiddle.c (casify_object): Likewise.
6355 * ccl.c (ccl_driver): Likewise.
6356 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
6357 * charset.c (load_charset_map_from_file)
6358 (load_charset_map_from_file, load_charset_map_from_vector)
6359 (Fdefine_charset_internal): Likewise.
6360 * cm.c (Wcm_clear): Likewise.
6361 * coding.c (decode_eol, decode_coding_object)
6362 (Fset_coding_system_priority, make_subsidiaries): Likewise.
6363 * data.c (Faset): Likewise.
6364 * dired.c (directory_files_internal, file_name_completion_stat):
6365 Likewise.
6366 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
6367 (clear_glyph_row, copy_row_except_pointers)
6368 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
6369 (save_current_matrix, restore_current_matrix)
6370 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
6371 (mirror_line_dance, scrolling_window): Likewise.
6372 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
6373 Likewise.
6374 * doprnt.c (doprnt): Likewise.
6375 * editfns.c (Fuser_full_name, make_buffer_string_both)
6376 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
6377 * emacs.c (sort_args): Likewise.
6378 * eval.c (Fapply, Ffuncall): Likewise.
6379 * fileio.c (Ffile_name_directory, make_temp_name)
6380 (Fexpand_file_name, search_embedded_absfilename)
6381 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
6382 (auto_save_error): Likewise.
6383 * fns.c (Fstring_equal, Fcopy_sequence, concat)
6384 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
6385 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
6386 (Fmake_hash_table): Likewise.
6387 * fringe.c (Fdefine_fringe_bitmap): Likewise.
6388 * ftfont.c (ftfont_text_extents): Likewise.
6389 * getloadavg.c (getloadavg): Likewise.
6390 * image.c (define_image_type, make_image, make_image_cache)
6391 (x_create_x_image_and_pixmap, xbm_image_p)
6392 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
6393 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
6394 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
6395 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
6396 (tiff_image_p, tiff_read_from_memory, gif_image_p)
6397 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
6398 Likewise.
6399 * indent.c (scan_for_column, compute_motion): Likewise.
6400 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
6401 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
6402 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
6403 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
6404 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
6405 (store_user_signal_events, menu_bar_items, tool_bar_items)
6406 (process_tool_bar_item, append_tool_bar_item)
6407 (read_char_minibuf_menu_prompt, read_key_sequence)
6408 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
6409 Likewise.
6410 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
6411 Likewise.
6412 * lisp.h (STRING_COPYIN): Likewise.
6413 * lread.c (Fload, read1, oblookup): Likewise.
6414 * msdos.c (Frecent_doskeys): Likewise.
6415 * nsfns.m (Fx_create_frame): Likewise.
6416 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
6417 Likewise.
6418 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
6419 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
6420 Likewise.
6421 * nsmenu.m (ns_update_menubar): Likewise.
6422 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
6423 * print.c (print_unwind, printchar, strout, print_string)
6424 (print_error_message): Likewise.
6425 * process.c (conv_lisp_to_sockaddr, set_socket_option)
6426 (Fmake_network_process, Fnetwork_interface_list)
6427 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
6428 (init_process): Likewise.
6429 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
6430 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
6431 Likewise.
6432 * scroll.c (do_scrolling, do_direct_scrolling)
6433 (scrolling_max_lines_saved): Likewise.
6434 * search.c (search_buffer, wordify, Freplace_match): Likewise.
6435 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
6436 * syntax.c (skip_chars, skip_syntaxes): Likewise.
6437 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
6438 (emacs_set_tty): Likewise.
6439 * term.c (encode_terminal_code, calculate_costs)
6440 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
6441 Likewise.
6442 * termcap.c (tgetst1, gobble_line): Likewise.
6443 * termhooks.h (EVENT_INIT): Likewise.
6444 * tparam.c (tparam1): Likewise.
6445 * unexalpha.c (unexec): Likewise.
6446 * unexec.c (write_segment): Likewise.
6447 * unexmacosx.c (unexec_write_zero): Likewise.
6448 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
6449 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
6450 * w32font.c (w32font_list_family, w32font_text_extents)
6451 (w32font_list_internal, w32font_match_internal)
6452 (w32font_open_internal, compute_metrics, Fx_select_font):
6453 Likewise.
6454 * w32menu.c (set_frame_menubar, add_menu_item)
6455 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
6456 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
6457 * w32uniscribe.c (uniscribe_list_family): Likewise.
6458 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
6459 * window.c (make_window, replace_window, set_window_buffer)
6460 (Fsplit_window): Likewise.
6461 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
6462 (add_to_log, message3, x_consider_frame_title)
6463 (append_space_for_newline, extend_face_to_end_of_line)
6464 (decode_mode_spec_coding, init_glyph_string): Likewise.
6465 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
6466 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
6467 (face_attr_equal_p, make_realized_face, make_face_cache)
6468 (free_realized_faces, lookup_named_face, smaller_face)
6469 (face_with_height, lookup_derived_face)
6470 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
6471 (Finternal_set_font_selection_order, realize_default_face)
6472 (compute_char_face, face_at_buffer_position)
6473 (face_for_overlay_string, face_at_string_position, merge_faces):
6474 Likewise.
6475 * xfns.c (xic_create_fontsetname, Fx_create_frame)
6476 (Fx_window_property, x_create_tip_frame)
6477 (Fx_backspace_delete_keys_p): Likewise.
6478 * xfont.c (xfont_list, xfont_match, xfont_list_family)
6479 (xfont_text_extents): Likewise.
6480 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
6481 * xrdb.c (magic_file_p, x_get_resource): Likewise.
6482 * xselect.c (x_queue_event, x_get_window_property)
6483 (receive_incremental_selection): Likewise.
6484 * xsmfns.c (x_session_check_input): Likewise.
6485 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
6486 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
6487 Likewise.
6488 * character.h (BCOPY_SHORT): Removed.
6489 * config.in: Regenerate.
6490 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
6491 * emacs.c (main) [PROFILING]: Don't declare
6492 dump_opcode_frequencies.
6493 * lisp.h (safe_bcopy): Remove declaration.
6494 (memset) [!HAVE_MEMSET]: Declare.
6495 (memcpy) [!HAVE_MEMCPY]: Likewise.
6496 (memmove) [!HAVE_MEMMOVE]: Likewise.
6497 (memcmp) [!HAVE_MEMCMP]: Likewise.
6498 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
6499 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
6500 Don't define.
6501 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
6502 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
6503 (BCOPY_DOWNWARD_SAFE): Don't define.
6504 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
6505 (memcpy) [!HAVE_MEMCPY]: Define.
6506 (memmove) [!HAVE_MEMMOVE]: Define.
6507 (memcmp) [!HAVE_MEMCMP]: Define.
6508
cb768704
J
65092010-07-07 Jan Djärv <jan.h.d@swipnet.se>
6510
6511 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
6512 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
6513 New functions.
cb768704
J
6514 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
6515 select on empty input mask.
6516 (init_process): Initialize kbd_is_on_hold to 0.
6517
6518 * process.h (hold_keyboard_input, unhold_keyboard_input)
6519 (kbd_on_hold_p): Declare.
6520
6521 * keyboard.c (input_available_signal): Declare.
6522 (kbd_buffer_nr_stored): New function.
6523 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
6524 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
6525 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
6526 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
6527 (tty_read_avail_input): If input is on hold, return.
6528 Don't read more that free slots in kbd_buffer (Bug#6571).
6529
3a8ce822
EZ
65302010-07-07 Eli Zaretskii <eliz@gnu.org>
6531
6532 * msdos.h:
6533 * msdos.c:
6534 * dosfns.c:
6535 * w16select.c: Convert function definitions to ANSI C.
6536
a628ad9d
JB
6537 * msdos.h (ctrl_break_func, install_ctrl_break_check):
6538 Remove unused prototypes.
3a8ce822 6539
cf84bb53
JB
65402010-07-07 Juanma Barranquero <lekktu@gmail.com>
6541
6542 * coding.c, sysdep.c: Convert some more functions to standard C.
6543
1a4990fb
JB
65442010-07-07 Juanma Barranquero <lekktu@gmail.com>
6545
6546 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
6547 (encode_coding_object): Use SPECPDL_INDEX.
6548 (syms_of_coding): Use DOS_NT.
6549
c0f2f16b
DN
65502010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
6551
48fb6855
DN
6552 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
6553
c0f2f16b
DN
6554 Make the function member of Lisp_Subr use standard C prototypes.
6555 * lisp.h (struct Lisp_Subr): Use a union for the function member.
6556 (DECL_ALIGN): Add a cast for the function.
6557 * eval.c (Feval, Ffuncall): Use the proper type for each type
6558 function call.
6559
67aecef9
CY
65602010-07-06 Chong Yidong <cyd@stupidchicken.com>
6561
6562 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
6563 fringe face id, so face-remapping-alist works (Bug#6091).
6564
b56ceb92
JB
65652010-07-06 Juanma Barranquero <lekktu@gmail.com>
6566
6567 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
6568 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
6569 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
6570
7af07b96
AS
65712010-07-06 Andreas Schwab <schwab@linux-m68k.org>
6572
6573 * xterm.c (x_get_keysym_name): Change type of parameter to int.
6574 * lisp.h: Declare x_get_keysym_name.
6575 * keyboard.c (modify_event_symbol): Don't declare
6576 x_get_keysym_name here.
6577
69e24e34
DN
65782010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
6579
6580 * ecrt0.c: Revert conversion to standard C.
6581
d3da34e0 65822010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
6583
6584 * vm-limit.c (memory_warnings):
6585 * keyboard.c (modify_event_symbol):
6586 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
6587 (round2, emacs_rint):
6588 * process.c (send_process, old_sigpipe): Convert function
6589 definitions and declarations to standard C.
6590
65912010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
6592
6593 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
6594 * xdisp.c: Convert function definitions to standard C.
6595
6596 * cm.c (cmputc): Arg C is now int, not char.
6597 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
6598
00be444c
J
65992010-07-05 James Cloos <cloos@jhcloos.com>
6600
6601 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
6602
6603 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
6604 _NET_WM_ICON_NAME atoms.
6605
6606 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
6607 and _NET_WM_ICON_NAME properties, too, matching what is
6608 done in the Gtk+ case.
6609
e4c8d29a
J
66102010-07-05 Jan Djärv <jan.h.d@swipnet.se>
6611
ff919460
J
6612 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
6613
e4c8d29a
J
6614 * xsmfns.c (SSDATA): New macro.
6615 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
6616 passed to strlen/strcpy/strcat.
bba3e508
SM
6617 (create_client_leader_window): Surround with #ifndef USE_GTK.
6618 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
6619
6620 * xsettings.c (something_changedCB, parse_settings)
6621 (apply_xft_settings): Reformat prototype.
6622 (something_changedCB, init_gconf): Remove unused variable i.
6623 (read_settings): Remove unused variable long_len.
6624
6625 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
6626 (xg_get_image_for_pixmap, create_dialog)
6627 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
6628 (menuitem_highlight_callback, make_menu_item)
6629 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
6630 (xg_create_scroll_bar, xg_update_scrollbar_pos)
6631 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
6632 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
6633 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
6634 (xg_tool_bar_item_expose_callback): Reformat prototype.
6635 (xg_update_menubar): GList *group => GSList *group.
6636 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
6637 before use.
6638 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
6639 to GTK_IMAGE (wimage).
6640
dd4c5104
DN
66412010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
6642
898b4c5c
DN
6643 * atimer.c: Use "" instead of <> for local includes for
6644 consistency with the rest of the code.
6645
dd4c5104
DN
6646 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
6647 * xrdb.c (get_system_name):
6648 * window.c (shrink_windows):
6649 * syntax.c (forw_comment):
6650 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
6651 (ins_del_costs):
6652 * mem-limits.h (start_of_data):
6653 * lread.c (readevalloop):
6654 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
6655 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
6656 * frame.c (x_get_focus_frame):
6657 * floatfns.c (fmod_float):
6658 * fileio.c (choose_write_coding_system):
6659 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
6660 (malloc_initialize_hook, sort_args, synchronize_locale):
6661 * doprnt.c (doprnt):
6662 * dired.c (compile_pattern):
6663 * data.c (fmod_float):
6664 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
6665 (map_char_table_for_charset):
6666 * charset.c (define_charset_internal):
6667 * alloc.c (Fgarbage_collect): Convert declarations or definitions
6668 to standard C.
6669
9a39b306 66702010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 6671 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
6672
6673 * lread.c (read1): Fix up last change to not mess up `c'.
6674
e6cb2cbb
JB
66752010-07-04 Juanma Barranquero <lekktu@gmail.com>
6676
6677 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
6678
438105ed
JB
66792010-07-04 Juanma Barranquero <lekktu@gmail.com>
6680
6681 Fix prototypes.
6682
e5447b22 6683 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 6684 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
6685 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
6686 arg, as required by internal_condition_case_1.
dcc7404b 6687 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
6688 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
6689 (analyse_first): Fix "const const".
e5447b22 6690 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 6691 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 6692 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 6693
971de7fb
DN
66942010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
6695
6696 * alloc.c: Convert function definitions to standard C.
6697 * atimer.c:
6698 * bidi.c:
6699 * bytecode.c:
6700 * callint.c:
6701 * callproc.c:
6702 * casefiddle.c:
6703 * casetab.c:
6704 * category.c:
6705 * ccl.c:
6706 * character.c:
6707 * charset.c:
6708 * chartab.c:
6709 * cmds.c:
6710 * coding.c:
6711 * composite.c:
6712 * data.c:
6713 * dbusbind.c:
6714 * dired.c:
6715 * dispnew.c:
6716 * doc.c:
6717 * doprnt.c:
6718 * ecrt0.c:
6719 * editfns.c:
6720 * fileio.c:
6721 * filelock.c:
6722 * filemode.c:
6723 * fns.c:
6724 * font.c:
6725 * fontset.c:
6726 * frame.c:
6727 * fringe.c:
6728 * ftfont.c:
6729 * ftxfont.c:
6730 * gtkutil.c:
6731 * indent.c:
6732 * insdel.c:
6733 * intervals.c:
6734 * keymap.c:
6735 * lread.c:
6736 * macros.c:
6737 * marker.c:
6738 * md5.c:
6739 * menu.c:
6740 * minibuf.c:
6741 * prefix-args.c:
6742 * print.c:
6743 * ralloc.c:
6744 * regex.c:
6745 * region-cache.c:
6746 * scroll.c:
6747 * search.c:
6748 * sound.c:
6749 * strftime.c:
6750 * syntax.c:
6751 * sysdep.c:
6752 * termcap.c:
6753 * terminal.c:
6754 * terminfo.c:
6755 * textprop.c:
6756 * tparam.c:
6757 * undo.c:
6758 * unexelf.c:
6759 * window.c:
6760 * xfaces.c:
6761 * xfns.c:
6762 * xfont.c:
6763 * xftfont.c:
6764 * xgselect.c:
6765 * xmenu.c:
6766 * xrdb.c:
6767 * xselect.c:
6768 * xsettings.c:
6769 * xsmfns.c:
6770 * xterm.c: Likewise.
6771
ae492bec
EZ
67722010-07-03 Eli Zaretskii <eliz@gnu.org>
6773
76ea4cc9
EZ
6774 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
6775 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
6776 `reverse' is specified in the frame parameters.
6777 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
6778 internal-set-lisp-face-attribute. Initialize screen colors from
6779 initial_screen_colors[] when f->default_face_done_p is zero,
6780 instead of depending on being called with default-frame-alist as
6781 the alist argument.
6782
6783 * xfaces.c (update_face_from_frame_parameter): Move out of
6784 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
6785 with HAVE_WINDOW_SYSTEM.
6786
1e6255ae
EZ
6787 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
6788 to menu-bar-mode, if not set in the frame parameters or in
6789 default-frame-alist.
6790
ae492bec
EZ
6791 * w32console.c (sys_tputs): Adjust argument list to prototype in
6792 term.c.
6793
3a35a84c
JB
67942010-07-03 Juanma Barranquero <lekktu@gmail.com>
6795
6796 * lisp.h (memory_warnings): Fix prototype.
6797
6798 * cm.h (evalcost): Fix prototype.
6799
6800 * cm.c (evalcost): Fix arg type.
6801
c532d349
DN
68022010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6803
6804 * term.c (term_clear_mouse_face, Fidentity):
6805 * syssignal.h (signal_handler_t):
6806 * lisp.h (memory_warnings):
6807 * coding.h (preferred_coding_system):
6808 * cm.h (evalcost):
6809 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
6810
c0b36d46
EZ
68112010-07-02 Eli Zaretskii <eliz@gnu.org>
6812
6813 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
6814 from prototypes.
6815
6816 * msdos.h (load_pixmap): Don't define away.
6817
383e0970
J
68182010-07-02 Jan Djärv <jan.h.d@swipnet.se>
6819
f57e2426
J
6820 * lisp.h:
6821 * atimer.h: Remove define for P_.
6822
6823 * alloc.c: Remove __P and P_ from .c and .m files.
6824 * atimer.c:
6825 * buffer.c:
6826 * callint.c:
6827 * category.c:
6828 * charset.c:
6829 * chartab.c:
6830 * cm.c:
6831 * coding.c:
6832 * composite.c:
6833 * data.c:
6834 * dired.c:
6835 * dispnew.c:
6836 * doc.c:
6837 * editfns.c:
6838 * emacs.c:
6839 * eval.c:
6840 * fileio.c:
6841 * filelock.c:
6842 * fns.c:
6843 * font.c:
6844 * fontset.c:
6845 * frame.c:
6846 * ftfont.c:
6847 * ftxfont.c:
6848 * gmalloc.c:
6849 * gtkutil.c:
6850 * image.c:
6851 * indent.c:
6852 * intervals.c:
6853 * keyboard.c:
6854 * keymap.c:
6855 * lread.c:
6856 * marker.c:
6857 * menu.c:
6858 * minibuf.c:
6859 * print.c:
6860 * process.c:
6861 * scroll.c:
6862 * search.c:
6863 * sound.c:
6864 * strftime.c:
6865 * syntax.c:
6866 * sysdep.c:
6867 * term.c:
6868 * terminal.c:
6869 * textprop.c:
6870 * unexalpha.c:
6871 * w32console.c:
6872 * w32fns.c:
6873 * w32font.c:
6874 * w32menu.c:
6875 * w32term.c:
6876 * w32uniscribe.c:
6877 * window.c:
6878 * xdisp.c:
6879 * xfaces.c:
6880 * xfns.c:
6881 * xfont.c:
6882 * xftfont.c:
6883 * xmenu.c:
6884 * xselect.c:
6885 * xterm.c: Likewise.
6886
383e0970 6887 Remove P_ and __P macros.
f57e2426
J
6888 * atimer.h: Remove P_ and __P macros.
6889 * buffer.h:
383e0970
J
6890 * category.h:
6891 * ccl.h:
6892 * character.h:
6893 * charset.h:
6894 * cm.h:
6895 * coding.h:
6896 * composite.h:
6897 * dispextern.h:
6898 * disptab.h:
9e892c8d 6899 * dosfns.h:
383e0970
J
6900 * font.h:
6901 * fontset.h:
6902 * frame.h:
6903 * gtkutil.h:
6904 * indent.h:
6905 * intervals.h:
6906 * keyboard.h:
6907 * keymap.h:
6908 * lisp.h:
6909 * macros.h:
6910 * md5.h:
6911 * menu.h:
6912 * msdos.h:
6913 * nsterm.h:
6914 * puresize.h:
6915 * region-cache.h:
6916 * syntax.h:
6917 * syssignal.h:
6918 * systime.h:
6919 * termhooks.h:
9e892c8d 6920 * w32font.h:
383e0970
J
6921 * w32term.h:
6922 * widget.h:
6923 * window.h:
6924 * xgselect.h:
6925 * xsettings.h:
6926 * xterm.h: Likewise.
6927
98601119
DN
69282010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6929
d9170db5
DN
6930 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6931
98601119
DN
6932 Cleanup old code.
6933 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
6934 * syssignal.h: Remove code for Lynx, not supported anymore.
6935 * vm-limit.c: Remove unused code the depends on emacs not being
6936 defined and NO_LIM_DATA being defined.
6937 * mem-limits.h: Remove dead code.
6938
1f984e12
J
69392010-07-01 Jan Djärv <jan.h.d@swipnet.se>
6940
c49d071a
J
6941 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
6942
9d5405ec
J
6943 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
6944 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
6945
7a18115b
J
6946 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
6947 parameters, they are already absolute.
6948
a628ad9d
JB
6949 * nsterm.m (x_set_window_size, initFrameFromEmacs):
6950 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 6951
a628ad9d 6952 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 6953
a628ad9d
JB
6954 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
6955 Update FRAME_TOOLBAR_HEIGHT.
581a8100 6956
a628ad9d
JB
6957 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
6958 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 6959
c1ef4455
CY
69602010-06-30 Chong Yidong <cyd@stupidchicken.com>
6961
bba3e508
SM
6962 * frame.c (get_future_frame_param, Fmake_terminal_frame):
6963 Don't check default-frame-alist.
c1ef4455 6964
ce8f5a9a
AS
69652010-06-30 Andreas Schwab <schwab@linux-m68k.org>
6966
6967 * process.c (create_process): Avoid using invalid file descriptors.
6968
6969 * callproc.c (child_setup): Avoid closing a file descriptor twice.
6970
bf935339
J
69712010-06-30 Jan Djärv <jan.h.d@swipnet.se>
6972
6973 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
6974 Improve documentation. Return font regardless of use_system_font.
6975 (syms_of_xsettings): Improve documentation for font-use-system-font.
6976
7c33a057
CY
69772010-07-10 Chong Yidong <cyd@stupidchicken.com>
6978
2ec1b5ee
CY
6979 * xfaces.c (realize_face): Garbage the frame if a face is removed
6980 (Bug#6593).
6981
69822010-07-05 Andreas Schwab <schwab@linux-m68k.org>
6983
6984 * keyboard.c: Remove duplicate <setjmp.h>.
6985 (read_key_sequence): Remove volatile qualifiers.
6986
69872010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6988
6989 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
6990 (struct glyph_row): New members left_fringe_offset and
6991 right_fringe_offset.
6992
6993 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
6994 specially.
6995 * w32term.c (w32_draw_fringe_bitmap): Likewise.
6996 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
6997
6998 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 6999 Take account of bitmap offset.
2ec1b5ee
CY
7000 (draw_window_fringes): Take account of window vscroll.
7001 (update_window_fringes): Likewise. Extend top-aligned top indicator
7002 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
7003 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
7004 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
7005
70062010-07-04 Juanma Barranquero <lekktu@gmail.com>
7007
7008 * w32fns.c (Qtooltip): Declare.
7009 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
7010
70112010-07-03 Jan Djärv <jan.h.d@swipnet.se>
7012
7013 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
7014 grab on just Press (Bug#6499).
7015
70162010-07-02 Chong Yidong <cyd@stupidchicken.com>
7017
7018 * frame.c (Qtooltip): New var.
7019 (delete_frame): Use it. Fix faulty if statement. Don't update
7020 mode line for tooltip frames. Suggested by Martin Rudalics.
7021
7022 * xfns.c (x_create_tip_frame):
7023 * w32fns.c (x_create_tip_frame): Use it.
7024
70252010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
7026
7027 * xftfont.c (xftfont_open): Check font width one by one also when
7028 spacing is dual.
7029
7030 * ftfont.c (ftfont_open): Ditto.
7031
6259c2ec
GM
70322010-06-30 Glenn Morris <rgm@gnu.org>
7033
a46007e9
GM
7034 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
7035
6259c2ec
GM
7036 * Makefile.in (CANNOT_DUMP): Update for configure name change.
7037
7038 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
7039 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
7040 * s/darwin.h (SYSTEM_MALLOC):
7041 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
7042
5d1d3d04
J
70432010-06-29 Jan Djärv <jan.h.d@swipnet.se>
7044
7045 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
7046 (ns_get_screen): Don't assign integer to f.
7047 (Fx_display_color_cells): Declarations before statements.
7048
e547b051
J
70492010-06-28 Jan Djärv <jan.h.d@swipnet.se>
7050
5fc8e5bc
J
7051 * xfns.c (x_default_font_parameter): Remove got_from_system
7052 (Bug#6526).
7053
e547b051 7054 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
7055 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
7056 New defines based on what configure finds.
e547b051
J
7057
7058 * xterm.c (XTflash): Use gtk_widget_get_window.
7059 (xg_scroll_callback): Use gtk_adjustment_get_upper and
7060 gtk_adjustment_get_page_size.
7061 (handle_one_xevent): Use gtk_widget_get_mapped.
7062 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
7063 messages.
7064
7065 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
7066
7067 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
7068 HAVE_GTK_FILE_SELECTION_NEW.
7069
bba3e508
SM
7070 * gtkutil.c (xg_display_open, xg_display_close):
7071 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
7072 (xg_display_open): Return type is void.
7073 (gtk_widget_set_has_window)
7074 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
7075 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
7076 (gtk_adjustment_set_page_increment)
7077 (gtk_adjustment_get_step_increment): #define these if not found
7078 by configure.
7079 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
7080 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
7081 Use gtk_widget_get_window.
e547b051
J
7082 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
7083 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
7084 (create_dialog): Use gtk_dialog_get_action_area and
7085 gtk_dialog_get_content_area.
7086 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
7087 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
7088 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
7089 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
7090 Use g_object_ref and g_object_unref.
7091 (xg_update_menu_item, xg_tool_bar_menu_proxy):
7092 Use gtk_widget_get_sensitive.
e547b051
J
7093 (xg_update_submenu): Use remove_submenu.
7094 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
7095 properties instead to get old x and y position.
7096 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
7097 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 7098 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
7099 (xg_get_tool_bar_widgets): New function.
7100 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
7101 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
7102 (toolbar_set_orientation): New #define based on if configure
7103 finds gtk_orientable_set_orientation.
7104 (xg_create_tool_bar): Call toolbar_set_orientation.
7105 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
7106 instead of gtk_box_pack_start_defaults.
7107
b9229673
CY
71082010-06-28 Chong Yidong <cyd@stupidchicken.com>
7109
7110 * cmds.c (Fdelete_backward_char): Move into Lisp.
7111
bbc803b0
DN
71122010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7113
7114 * s/freebsd.h (BSD4_2): Remove redundant definition.
7115 bsd-common.h defines it already.
7116
6431f2e6
CY
71172010-06-27 Chong Yidong <cyd@stupidchicken.com>
7118
7119 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
7120 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
7121 tool-bar-mode, which are now set using these X resources at
7122 startup, to determine the defaults (Bug#2249).
7123
7124 * w32fns.c (Fx_create_frame):
7125 * nsfns.m (Fx_create_frame): Likewise.
7126
7127 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
7128
8c079ebb
JB
71292010-06-24 Juanma Barranquero <lekktu@gmail.com>
7130
7131 * gtkutil.c (xg_update_scrollbar_pos):
7132 Avoid C99 mid-block variable declaration.
7133
e9b7ab96
JD
71342010-06-22 Jan Djärv <jan.h.d@swipnet.se>
7135
bc869eca
JD
7136 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
7137
2b7e356a 7138 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
7139
7140 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
7141 if height is less than scroll bar min size.
7142 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
7143
e9b7ab96
JD
7144 * xfns.c (x_default_font_parameter): Try to open font from system
7145 before using it (bug#6478). Rename got_from_gconf to got_from_system.
7146
a628ad9d 71472010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
7148
7149 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
7150
70c4cfbb
EZ
71512010-06-20 Eli Zaretskii <eliz@gnu.org>
7152
7153 * xdisp.c (try_scrolling): When scroll-conservatively is set to
7154 most-positive-fixnum, be extra accurate when scrolling window
7155 start, to avoid missing the cursor line.
7156
ad5a12b5
EZ
71572010-06-19 Eli Zaretskii <eliz@gnu.org>
7158
7159 * xdisp.c (try_scrolling): Compute the limit for searching point
7160 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
7161 of 10 screen lines.
7162 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
7163 and
7164 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
7165 for details.
7166
2a64315a 71672010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
7168
7169 * editfns.c (Fbyte_to_string): Pacify compiler.
7170
288cf4e9
SM
71712010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
7172
7173 * lread.c (read1): Phase out old-style backquotes a bit more.
7174
6e6e5760
EZ
71752010-06-12 Eli Zaretskii <eliz@gnu.org>
7176
cbc4fd20
EZ
7177 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
7178 bidimirror.h.
7179
7180 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
7181
317fbf33
EZ
7182 * bidi.c (bidi_initialize): Remove explicit initialization of
7183 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 7184 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 7185 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
7186
7187 * biditype.h: New file.
7188
cbc4fd20
EZ
7189 * bidimirror.h: New file.
7190
6e6e5760
EZ
7191 * window.c (syms_of_window): Doc fix (bug#6409).
7192
4176cba2
RF
71932010-06-12 Romain Francoise <romain@orebokech.com>
7194
7195 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
7196 ediff-hook.
7197
cb4bfcb5
GM
71982010-06-10 Glenn Morris <rgm@gnu.org>
7199
64c60c2f
GM
7200 * editfns.c (Fbyte_to_string): Pacify compiler.
7201
cb4bfcb5
GM
7202 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
7203
2ec1b5ee
CY
72042010-06-26 Andreas Schwab <schwab@linux-m68k.org>
7205
7206 * alloc.c (Fmake_byte_code): Don't access undefined argument
7207 (Bug#6517).
7208
72092010-06-25 Chong Yidong <cyd@stupidchicken.com>
7210
7211 * xdisp.c (next_element_from_image): Ensure that after-strings are
7212 read the next time we hit handle_stop (Bug#1336).
7213
72142010-06-23 Andreas Schwab <schwab@linux-m68k.org>
7215
7216 * lread.c (read1): Signal error if #s is not followed by paren.
7217
72182010-06-19 Chong Yidong <cyd@stupidchicken.com>
7219
7220 * image.c (free_image): Mark frame as garbaged (Bug#6426).
7221
7222 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
7223
72242010-06-15 Glenn Morris <rgm@gnu.org>
7225
7226 * editfns.c (Fbyte_to_string): Pacify compiler.
7227
e454a4a3
SM
72282010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
7229
7230 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
7231 Check `object's type before accessing its guts.
7232
c1b1acc2
DN
72332010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
7234
7235 * s/usg5-4.h: Fix previous change.
7236 Suggested by Lawrence Mitchell <wence@gmx.li>
7237
657d4c0b
AS
72382010-06-08 Andreas Schwab <schwab@linux-m68k.org>
7239
7240 * minibuf.c (Fall_completions): Add more checks.
7241
9b27fd9f
JB
72422010-06-08 Juanma Barranquero <lekktu@gmail.com>
7243
7244 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
7245
a99ebb40
DN
72462010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
7247
d7c5d87d
DN
7248 * lread.c (X_OK): Remove, unused.
7249
0263a941
DN
7250 * dispnew.c: Remove obsolete comment.
7251
a99ebb40
DN
7252 Remove INCLUDED_FCNTL.
7253 * xterm.c (INCLUDED_FCNTL):
7254 * callproc.c (INCLUDED_FCNTL):
7255 * alloc.c (INCLUDED_FCNTL):
7256 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
7257 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
7258
13b5221f
MR
72592010-06-07 Martin Rudalics <rudalics@gmx.at>
7260
7261 * window.c (Fselect_window): Move `record_buffer' up to the
7262 beginning of this function, so the buffer gets recorded
7263 even if the selected window does not change.
7264 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
7265
5220357f
JB
72662010-06-07 Juanma Barranquero <lekktu@gmail.com>
7267
7268 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
7269 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
7270
3085237c
DN
72712010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
7272
7273 Remove BSTRING related code, all platforms define it.
7274 * s/usg5-4.h (BSTRING): Remove definition.
7275 * s/template.h (BSTRING):
7276 * s/msdos.h (BSTRING):
7277 * s/ms-w32.h (BSTRING):
7278 * s/hpux10-20.h (BSTRING):
7279 * s/gnu-linux.h (BSTRING):
7280 * s/darwin.h (BSTRING):
7281 * s/cygwin.h (BSTRING):
7282 * s/bsd-common.h (BSTRING):
7283 * s/aix4-2.h (BSTRING): Likewise.
7284 * sysdep.c: Remove code depending on BSTRING not being defined.
7285
409f2919
JB
72862010-06-05 Juanma Barranquero <lekktu@gmail.com>
7287
7288 Remove obsolete macro BASE_LEADING_CODE_P.
7289 * character.h (BASE_LEADING_CODE_P): Remove.
7290 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
7291 * buffer.c (Fset_buffer_multibyte):
7292 * indent.c (scan_for_column, compute_motion):
7293 * insdel.c (count_combining_before, count_combining_after):
7294 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
7295
087fc47a
JB
72962010-06-04 Juanma Barranquero <lekktu@gmail.com>
7297
7298 Turn `directory-sep-char' into a noop.
7299
7300 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
7301 (DIRECTORY_SEP): Define unconditionally.
7302
7303 * s/ms-w32.h (DIRECTORY_SEP): Remove.
7304
7305 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
7306 call dostounix_filename directly.
7307
7308 * fileio.c (CORRECT_DIR_SEPS): Remove.
7309 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
7310 (Fsubstitute_in_file_name): Use dostounix_filename instead.
7311 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
7312 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
7313
7314 * w32proc.c (CORRECT_DIR_SEPS): Remove.
7315 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
7316
0eb7675e
AS
73172010-06-03 Andreas Schwab <schwab@linux-m68k.org>
7318
a628ad9d
JB
7319 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
7320 (Bug#6346)
0eb7675e 7321
78edd3b7
JB
73222010-06-03 Juanma Barranquero <lekktu@gmail.com>
7323
7324 * ccl.c (Fccl_program_p): Fix typo in docstring.
7325
eb697db5
DN
73262010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
7327
7328 Move UNEXEC definition to autoconf.
7329 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
7330 * s/sol2-10.h (UNEXEC):
7331 * s/irix6-5.h (UNEXEC):
7332 * s/hpux10-20.h (UNEXEC):
7333 * s/gnu-linux.h (UNEXEC):
7334 * s/darwin.h (UNEXEC):
7335 * s/cygwin.h (UNEXEC):
7336 * s/bsd-common.h (UNEXEC):
7337 * s/aix4-2.h (UNEXEC):
7338 * m/alpha.h (UNEXEC): Likewise.
7339 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
7340
aa3830c4
JB
73412010-06-03 Juanma Barranquero <lekktu@gmail.com>
7342
7343 Remove obsolete pre-unicode2 macros.
7344 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
7345 * composite.c (composition_reseat_it):
7346 * data.c (Faset):
7347 * fns.c (Ffillarray):
7348 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
7349 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
7350
d234d13e
JL
73512010-06-03 Juri Linkov <juri@jurta.org>
7352
7353 * buffer.c (Fother_buffer): Add CHECK_FRAME.
7354 (Fswitch_to_buffer): Remove unused variable `err'.
7355
0d4bcf4d
GM
73562010-06-03 Glenn Morris <rgm@gnu.org>
7357
e23dc1e2
GM
7358 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
7359
05b09564
GM
7360 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
7361 now that AH_BOTTOM does it.
7362
824e2978
GM
7363 * m/hp800.h (HAVE_ALLOCA):
7364 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
7365
0d4bcf4d
GM
7366 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
7367 Remove NOT_C_CODE tests, it is always true now.
7368
c55d2abf
DN
73692010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
7370
08a494a3
DN
7371 Fix config.h includes.
7372 * xsettings.c:
7373 * xgselect.c:
7374 * nsterm.m:
7375 * nsselect.m:
7376 * nsimage.m:
7377 * nsfont.m:
7378 * nsfns.m:
7379 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
7380 other files do.
7381
75934b1d
DN
7382 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
7383
9f32a766
DN
7384 * s/sol2-6.h: Remove obsolete comments.
7385
c55d2abf
DN
7386 Remove unnecessary alloca.h includes.
7387 * keymap.c: Do not include alloca.h, config.h does that.
7388 * sysdep.c: Likewise. Do not define fwrite, not used.
7389
06ac62b4
SM
73902010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
7391
7392 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
7393 the HAVE_TERMIO where it belongs (bug#6149).
7394
1ab8293c
SM
73952010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
7396
7397 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
7398 of bug#6305).
7399
6dcfd253
EZ
74002010-05-30 Eli Zaretskii <eliz@gnu.org>
7401
7402 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
7403 state is always cached (bug#6306).
7404
6d26bbb2
EZ
74052010-05-29 Eli Zaretskii <eliz@gnu.org>
7406
06fa4a23
EZ
7407 Fix cursor motion in bidi-reordered continued lines.
7408 * xdisp.c (try_cursor_movement): Backup to non-continuation line
7409 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
7410 over continuation lines in bidi-reordered buffers.
7411 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
7412 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
7413
f5783df3
MA
74142010-05-28 Michael Albinus <michael.albinus@gmx.de>
7415
7416 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
7417
7d56b2dd
KH
74182010-05-28 Kenichi Handa <handa@m17n.org>
7419
7420 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
7421 Don't sheck SPEC if it is nil.
7422 (font_list_entities): Call font_delete_unmatched if
b925d231 7423 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 7424
e58d4ff7
GM
74252010-05-28 Glenn Morris <rgm@gnu.org>
7426
7427 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
7428
f1a5d776
CY
74292010-05-27 Chong Yidong <cyd@stupidchicken.com>
7430
7431 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
7432 whether to trash.
7433 (internal_delete_file, Frename_file): Callers changed.
7434 (delete_by_moving_to_trash): Doc fix.
7435 (Fdelete_directory_internal): Don't move to trash.
7436
7437 * callproc.c (delete_temp_file):
7438 * buffer.c (Fkill_buffer): Callers changed.
7439
7440 * lisp.h: Update prototype.
7441
f44a59e6
CY
74422010-05-27 Chong Yidong <cyd@stupidchicken.com>
7443
7444 * xdisp.c (redisplay_window): After redisplay, check if point is
7445 still valid before setting it (Bug#6177).
7446
81ac4f35
GM
74472010-05-27 Glenn Morris <rgm@gnu.org>
7448
7449 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
7450 Convert comments to Makefile format.
7451
7452 * Makefile.in (bootstrap-clean): No more Makefile.c.
7453
ccd89fb3
GM
74542010-05-26 Glenn Morris <rgm@gnu.org>
7455
90278cb6
GM
7456 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
7457 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
7458
ccd89fb3
GM
7459 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
7460 Remove.
7461 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7462
b7050583
KH
74632010-05-26 Kenichi Handa <handa@m17n.org>
7464
7465 * composite.c (composition_compute_stop_pos): Fix condition for
7466 backward scanning.
7467
e5458003
GM
74682010-05-25 Glenn Morris <rgm@gnu.org>
7469
c345fe90
GM
7470 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
7471 Move before TEMACS_LDFLAGS.
7472 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7473 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7474
2e0689ab
GM
7475 * Makefile.in (NOT_C_CODE): No longer define.
7476 (config.h): No longer include.
7477
8009a5e8
GM
7478 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
7479 variables it may reference.
7480
e5458003
GM
7481 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
7482 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
7483
10f72a37
KH
74842010-05-25 Kenichi Handa <handa@m17n.org>
7485
7486 * dispextern.h (struct composition_it): New members rule_idx and
7487 charpos.
7488
7489 * xdisp.c (set_iterator_to_next): While scanning backward, assume
7490 that the character positions of IT point the last character of the
7491 current grapheme cluster.
7492 (next_element_from_composition): Don't change character positions
7493 of IT.
7494 (append_composite_glyph): Set glyph->charpos to
7495 it->cmp_it.charpos.
7496
7497 * composite.c (autocmp_chars): Change the first argument to RULE,
7498 and try composition with RULE only.
7499 (composition_compute_stop_pos): Record the index number of the
7500 composition rule in CMP_IT->rule_idx.
7501 (composition_reseat_it): Call autocmp_chars repeatedly until the
7502 correct rule of the composition is found.
7503 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
7504 is at the last character of the current grapheme cluster when
7505 CMP_IT->reversed_p is nonzero.
7506
171eda53 75072010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 7508
171eda53
SM
7509 * editfns.c (Fbyte_to_string): New function.
7510
66a9f7f4
SM
75112010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
7512
7513 * process.c (Fmake_network_process): Set :host to nil if it's not used.
7514 Suggested by Masatake YAMATO <yamato@redhat.com>.
7515
d8c315d1
EZ
75162010-05-23 Eli Zaretskii <eliz@gnu.org>
7517
171eda53 7518 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 7519
f5b416d2 75202010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
7521
7522 * s/netbsd.h: If terminfo is found, use it in preference to
7523 termcap. (Bug#6190) [Backport from trunk]
7524
0416466c
EZ
75252010-05-19 Eli Zaretskii <eliz@gnu.org>
7526
11117830 7527 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
7528
7529 * dispextern.h (struct glyph_row): New members minpos and maxpos.
7530 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
7531 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
7532 and maxpos members instead of start.pos and end.pos, respectively.
7533
7534 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
7535 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
7536 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
7537 (try_window_reusing_current_matrix, try_window_id):
7538 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
7539 (init_from_display_pos, init_iterator): Use EMACS_INT for
7540 character and byte positions.
66a9f7f4 7541 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
7542 arguments for minimum and maximum buffer positions seen by
7543 display_line for this row. Don't use iterator to find the
7544 position following the maximum one; instead, increment the
11117830
EZ
7545 position found by display_line directly. Fix logic; eol_pos
7546 should be tested before the rest. Handle the case of characters
7547 delivered from display vector (bug#6036). Fix tests related to
7548 it->method. Handle the truncated_on_right_p rows.
7549 (RECORD_MAX_MIN_POS): New macro.
7550 (display_line): Use it to record the minimum and maximum buffer
7551 positions for glyphs in the row being assembled. Record the
7552 position of the newline that terminates the line. If word wrap is
7553 in effect, restore minimum and maximum positions seen up to the
7554 wrap point, when iterator returns to it.
7555 (try_window_reusing_current_matrix): Give up if in bidi-reordered
7556 row and cursor not already at point. Restore original pre-bidi
7557 code for unidirectional buffers.
d36fe237
EZ
7558
7559 * dispnew.c (increment_row_positions, check_matrix_invariants):
7560 Increment and check row->start.pos and row->end.pos, in addition
7561 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
7562
11117830
EZ
7563 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
7564 Display truncated_on_left_p and truncated_on_right_p flags.
7565 Formatting fixes.
7566 (pmtxrows): Display the ordinal number of each row. Don't display
7567 rows beyond the last one.
7568
7569 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
7570 it is not copied by bidi_copy_it.
7571
6e83d800
EZ
75722010-05-22 Eli Zaretskii <eliz@gnu.org>
7573
7574 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
7575 (Bug#6237)
7576
110683ad
CY
75772010-05-22 Chong Yidong <cyd@stupidchicken.com>
7578
7579 * image.c (Fimage_flush): Rename from image-refresh.
7580
98fe5161
CY
75812010-05-21 Chong Yidong <cyd@stupidchicken.com>
7582
7583 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
7584 just one window.
7585
7586 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
7587 (clear_image_cache): If the number of cached images is unusually
7588 large, decrease the cache eviction delay (Bug#6230).
7589
e8752c66
GM
75902010-05-21 Glenn Morris <rgm@gnu.org>
7591
66dbf213
GM
7592 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
7593 Move these rules to ns.mk.
7594 * ns.mk: New file.
7595
04384b2d
GM
7596 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
7597
e8752c66
GM
7598 * Makefile.in (CANNOT_DUMP): New, set by configure.
7599 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
7600
2e2bbddb
JL
76012010-05-20 Juri Linkov <juri@jurta.org>
7602
7603 * fileio.c (Fdelete_file): Change interative spec to use
7604 `read-file-name' like in `find-file-read-args' where the default
7605 value is `default-directory' instead of `buffer-file-name'.
7606 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
7607
31c4aaf6
KR
76082010-05-20 Kevin Ryde <user42@zip.com.au>
7609
7610 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
7611 (Voverriding_terminal_local_map, Vsystem_key_alist)
7612 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
7613
9d5cf9b6
GM
76142010-05-20 Glenn Morris <rgm@gnu.org>
7615
7616 * Makefile.in (DEPDIR): New constant.
7617 (DEPFLAGS): Set with configure, not cpp.
7618 (MKDEPDIR): New, set by configure.
7619 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
7620 (clean): Use $DEPDIR.
7621 (deps_frag): Include from configure.
7622 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
7623 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
7624
bba3e508
SM
7625 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
7626 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 7627
7f34aec3
GM
76282010-05-19 Glenn Morris <rgm@gnu.org>
7629
d494e8f2
GM
7630 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
7631
c1d0dcfd
GM
7632 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
7633 (GNULIB_VAR): Remove.
7634 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
7635
7636 * m/ibms390x.h (LINKER):
7637 * m/macppc.h (LINKER) [GNU_LINUX]:
7638 * s/aix4-2.h (ORDINARY_LINK):
7639 * s/cygwin.h (LINKER):
7640 * s/darwin.h (ORDINARY_LINK):
7641 * s/gnu.h (ORDINARY_LINK):
7642 * s/netbsd.h (LINKER):
7643 * s/usg5-4.h (ORDINARY_LINK):
7644 Move to configure.
7645
7f34aec3
GM
7646 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
7647
754790b6
CY
76482010-05-18 Chong Yidong <cyd@stupidchicken.com>
7649
7650 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
7651 prevent stack overflow if number of arguments is too large
7652 (Bug#6214).
7653
161e44d1
JB
76542010-05-18 Juanma Barranquero <lekktu@gmail.com>
7655
7656 * charset.c (load_charset_map_from_file): Don't call close after fclose.
7657
be4ff9da
GM
76582010-05-18 Glenn Morris <rgm@gnu.org>
7659
9539dc5d
GM
7660 * s/gnu-linux.h: Combine two conditionals.
7661
7662 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
7663 $(POST_ALLOC_OBJ).
7664
40dc6bf4
GM
7665 * Makefile.in (RALLOC_OBJ): New, set by configure.
7666 (rallocobj): Replace with the previous variable.
7667 (otherobj): Use $RALLOC_OBJ.
7668
7669 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
7670 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
7671
be4ff9da
GM
7672 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
7673 (gmallocobj, vmlimitobj): Replace with previous two variables.
7674 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
7675
16455a85
GM
76762010-05-17 Glenn Morris <rgm@gnu.org>
7677
7678 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
7679 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
7680
5fdb7468
GM
76812010-05-16 Glenn Morris <rgm@gnu.org>
7682
7ca1f3f9
GM
7683 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
7684
7541dad5
GM
7685 * Makefile.in (clean): Get rid of HAVE_NS conditional.
7686
da53fab9
GM
7687 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
7688 trailing "/".
7689
b02a6645
GM
7690 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
7691 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
7692
8877ca0f
GM
7693 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
7694 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
7695 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
7696 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
7697 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
7698
5fdb7468
GM
7699 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
7700 Remove ${STARTFLAGS}, nothing ever sets it.
7701
95adb4b1
DN
77022010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
7703
7704 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
7705
676b6304
GM
77062010-05-16 Glenn Morris <rgm@gnu.org>
7707
9beab9ce
GM
7708 * Makefile.in (LIBX_BASE): Always define.
7709
8a95f0e7
GM
7710 * Makefile.in (LIBX_OTHER): Move out of cpp section.
7711
676b6304
GM
7712 * Makefile.in (LIBXT): Always define.
7713
6e546d18
GM
77142010-05-15 Glenn Morris <rgm@gnu.org>
7715
4235ca47 7716 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 7717
6e546d18
GM
7718 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
7719 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
7720
8c5ff6dd
KR
77212010-05-15 Ken Raeburn <raeburn@raeburn.org>
7722
560bb7ae 7723 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
7724 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
7725
8b4eb796
KR
7726 * emacs.c (main): Initialize initial-environment and
7727 process-environment before generating from env, not after.
7728
8c5ff6dd
KR
7729 Handle --version reasonably in CANNOT_DUMP configuration.
7730 * emacs.c (emacs_version, emacs_copyright): New string variables.
7731 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
7732 (syms_of_emacs): Defvar them, and initialize them from the C
7733 string variables.
7734 (main): If initialization hasn't been done, print initial version
7735 info from the C strings, instead of starting an interactive session.
7736
dbd3f723
EZ
77372010-05-15 Eli Zaretskii <eliz@gnu.org>
7738
d20e1419
EZ
7739 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
7740 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
7741 (bidi_paragraph_init): Remove redundant assertion that we are at
7742 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
7743
7744 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
7745 (syms_of_xdisp): Defsubr it.
7746
d36fe237
EZ
7747 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
7748
dbd3f723
EZ
7749 * Makefile.in: Fix MSDOS-related comments.
7750
02be533b
GM
77512010-05-15 Glenn Morris <rgm@gnu.org>
7752
1a82cca9
GM
7753 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
7754 (really-lwlib, really-oldXMenu): Always define.
7755 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
7756
3df7b338
GM
7757 * Makefile.in: Simplify cpp conditional.
7758
2b5f541b
GM
7759 * Makefile.in (${ns_appdir}): Simplify using umask.
7760
02be533b
GM
7761 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
7762
4e2db1fe
SM
77632010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
7764
7765 * eval.c (specbind): Remove left-over duplicate test.
7766 Disallow let-binding frame-local vars. Add comment.
7767
4b292a22
EZ
77682010-05-14 Eli Zaretskii <eliz@gnu.org>
7769
2fe72643 7770 Make the cache of bidi iterator states dynamically allocated.
1edbd309 7771 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
7772 (bidi_init_it): Call it.
7773 (bidi_cache_iterator_state): Enlarge the cache if needed.
7774
4e2db1fe 7775 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
7776 bidi_get_next_char_visually. All callers changed.
7777
82ebc97b
KH
77782010-05-14 Kenichi Handa <handa@m17n.org>
7779
7780 * dispextern.h (struct composition_it): New member reversed_p.
7781
7782 * composite.c (composition_compute_stop_pos): Search backward if
7783 ENDPOS < CHARPOS.
7784 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
7785 Set CMP_IT->reversed_p.
b4b6e17e 7786 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 7787
4e2db1fe
SM
7788 * xdisp.c (set_iterator_to_next):
7789 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
7790 scanning backward. Call composition_compute_stop_pos if scan
7791 direction is changed.
7792 (next_element_from_buffer): Call composition_compute_stop_pos with
7793 negative ENDPOS if we are scanning backward.
7794 (next_element_from_composition): Pay attention to
7795 IT->cmp_it.reversed_p.
7796
0e5d7800
KH
77972010-05-14 Kenichi Handa <handa@m17n.org>
7798
560bb7ae 7799 * font.c (font_range): Return the range for the font found at first.
0e5d7800 7800
cb027b32
GM
78012010-05-14 Glenn Morris <rgm@gnu.org>
7802
177b0288
GM
7803 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
7804
fbc00890
GM
7805 * Makefile.in (mktime, X11, register): Move undefs to configure.
7806
f14d1dfd
GM
7807 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
7808 (MSDOS_X_OBJ): New variable.
7809 (MSDOS_SUPPORT_REAL): New constant.
7810 (MSDOS_SUPPORT): Set as a variable, not with cpp.
7811 (obj): Use MSDOS_X_OBJ.
7812 (lisp): Use MSDOS_SUPPORT as a variable.
7813
11842bd8
GM
7814 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
7815 (GPM_MOUSE_SUPPORT): Now it's a constant.
7816 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
7817 not cpp.
7818
489d31a4 7819 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 7820 (ns_appresdir): Remove, unused.
e20f1f07 7821
489d31a4
GM
7822 * Makefile.in (SHELL): Move outside cpp section.
7823
cb027b32
GM
7824 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
7825
5a903aa9
GM
78262010-05-13 Glenn Morris <rgm@gnu.org>
7827
3369c79f
GM
7828 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
7829 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
7830
d5e982a6
GM
7831 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
7832 HAVE_WINDOW_SYSTEM must be too.
7833
6192e163
GM
7834 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
7835 (lisp): Remove WINNT_SUPPORT.
7836
472c5d6b
GM
7837 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
7838 Let configure set these variables (to empty) in this case as well.
7839
0116466b
GM
7840 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
7841 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
7842
5a903aa9
GM
7843 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
7844 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
7845 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
7846 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
7847 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 7848 the values output by configure.
5a903aa9
GM
7849 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
7850
1a0d7c06
GM
78512010-05-12 Glenn Morris <rgm@gnu.org>
7852
b5457f14
GM
7853 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
7854 (LINKER_WAS_SPECIFIED): Remove.
7855
1a0d7c06
GM
7856 * Makefile.in (LIB_GCC): Set using configure, not cpp.
7857 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
7858 * m/arm.h (LIB_GCC) [GNU_LINUX]:
7859 * s/cygwin.h (LIB_GCC):
7860 * s/freebsd.h (LIB_GCC):
7861 * s/gnu-linux.h (LIB_GCC):
7862 * s/msdos.h (LIB_GCC):
7863 * s/netbsd.h (LIB_GCC):
7864 Move to configure.
7865
d1ddd1d0 78662010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
7867
7868 * ftfont.c: Fix incorrect parentheses of #if condition for
7869 definining M17N_FLT_USE_NEW_FEATURE.
7870
acddf8ae
GM
78712010-05-11 Glenn Morris <rgm@gnu.org>
7872
7873 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
7874 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
7875
ae5e04fa
EZ
78762010-05-10 Eli Zaretskii <eliz@gnu.org>
7877
7878 * xdisp.c (init_iterator): Don't turn on bidi reordering in
7879 unibyte buffers. See
7880 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
7881
7490175b
GM
78822010-05-10 Glenn Morris <rgm@gnu.org>
7883
97efb629
GM
7884 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
7885 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
7886 (LIBES): Use LIBS_SYSTEM as a variable.
7887 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
7888 * s/aix4-2.h (LIBS_SYSTEM):
7889 * s/freebsd.h (LIBS_SYSTEM):
7890 * s/hpux10-20.h (LIBS_SYSTEM):
7891 * s/sol2-6.h (LIBS_SYSTEM):
7892 * s/unixware.h (LIBS_SYSTEM):
7893 Move to configure.
7894
7490175b
GM
7895 * s/aix4-2.h (MAIL_USE_LOCKF):
7896 * s/bsd-common.h (MAIL_USE_FLOCK):
7897 * s/darwin.h (MAIL_USE_FLOCK):
7898 * s/gnu-linux.h (MAIL_USE_FLOCK):
7899 * s/irix6-5.h (MAIL_USE_FLOCK):
7900 * s/template.h (MAIL_USE_FLOCK):
7901 Move to configure.
7902
0235128c 79032010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
7904
7905 * Version 23.2 released.
7906
0235128c 79072010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
7908
7909 * composite.c (autocmp_chars): Save point as marker before calling
7910 auto-composition-function (Bug#5984).
7911
7912 * lisp.h (restore_point_unwind): Add prototype.
7913
7914 * fileio.c (restore_point_unwind): Remove static attribute.
7915
0235128c 79162010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
7917
7918 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
7919 new feature of libotf and m17n-flt.
0235128c
SM
7920 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
7921 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
7922 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
7923 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
7924 that OUT is NULL. Use OTF_drive_gsub_with_log and
7925 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
7926 OTF_drive_gpos.
7927 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
7928 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
7929 Setup mflt_enable_new_feature and mflt_try_otf.
7930
4721152c
J
79312010-05-08 Jan Djärv <jan.h.d@swipnet.se>
7932
7933 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
7934
7935 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
7936 box and toolbar (Bug #6139).
7937 (xg_create_tool_bar): Remove comment (Bug #6139).
7938 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
7939 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
7940
ee0a16cf
JB
79412010-05-08 Juanma Barranquero <lekktu@gmail.com>
7942
7943 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
7944 Update dependencies.
7945
96d79611
EZ
79462010-05-08 Eli Zaretskii <eliz@gnu.org>
7947
7948 * fringe.c (update_window_fringes): Set up truncation bitmaps for
7949 R2L lines.
7950
40c17879
GM
79512010-05-08 Glenn Morris <rgm@gnu.org>
7952
7b42b29f
GM
7953 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
7954
40c17879
GM
7955 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
7956 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
7957 (termcapobj): Replace with TERMCAP_OBJ.
7958 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7959 (LIBES): Use LIBS_TERMCAP as a variable.
7960
7961 * s/freebsd.h (osreldate.h): No longer include, since this file
7962 does not use __FreeBSD_version any more.
7963
7964 * s/aix4-2.h (TERMINFO):
7965 * s/cygwin.h (TERMINFO):
7966 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7967 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
7968 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7969 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7970 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
7971 * s/irix6-5.h (TERMINFO):
7972 * s/netbsd.h (LIBS_TERMCAP):
7973 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
7974 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
7975 * s/usg5-4.h (TERMINFO):
7976 Move to configure.
7977
94b612ad
SM
79782010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
7979
7980 * eval.c (unbind_to): Don't unbind a local binding into the global
7981 binding when the local binding disappeared. Inversely, don't unbind
7982 a global binding into a newly created local binding.
7983 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
7984 can specify the frame to use, when applicable. Adjust callers.
7985
15e12598 79862010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 7987 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
7988
7989 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
7990
f724825e
EZ
79912010-05-07 Eli Zaretskii <eliz@gnu.org>
7992
5cba3209
EZ
7993 * w32fns.c: Include w32.h.
7994 (Fw32_shell_execute): Decode the error message before passing it
7995 to `error'. (Bug#6126)
7996
d16bdfc3
EZ
7997 * msdos.c (dos_set_window_size):
7998 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
7999 instead of `XSYMBOL (foo)->value'.
8000
59d93e87
EZ
80012010-05-07 Eli Zaretskii <eliz@gnu.org>
8002
9fdec8bc
EZ
8003 Fix the MS-DOS build, broken by autoconfiscation.
8004
8005 * Makefile.in: Don't use Make-style comments past the "start of
8006 cpp stuff" line.
8007 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
8008
8009 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
8010 edited directly by msdos/sed1v2.inp).
f724825e 8011
2f86b22b
GM
80122010-05-07 Glenn Morris <rgm@gnu.org>
8013
8014 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
8015 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
8016 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
8017 move out of cpp section.
8018 * s/freebsd.h (LD_SWITCH_SYSTEM):
8019 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
8020 * s/netbsd.h (LD_SWITCH_SYSTEM):
8021 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
8022
49ebbd65
DN
80232010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8024
8025 Define LIB_STANDARD and START_FILES using autoconf.
8026 * s/usg5-4.h (LIB_STANDARD):
8027 * s/netbsd.h (START_FILES):
8028 * s/irix6-5.h (LIB_STANDARD):
8029 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
8030 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
8031 * s/freebsd.h (START_FILES):
8032 * s/darwin.h (START_FILES):
8033 * s/cygwin.h (START_FILES):
8034 * s/aix4-2.h (LIB_STANDARD):
8035 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
8036 * Makefile.in (STARTFILES): Rename to START_FILES, define using
8037 autoconf, not cpp.
8038
d43c06d6
DN
80392010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
8040
28823648
DN
8041 Remove NEED_BSDTTY and NEED_UNISTD_H.
8042 * s/hpux10-20.h (NEED_BSDTTY): Remove.
8043 * s/aix4-2.h (NEED_UNISTD_H): Remove.
8044 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
8045 <sys/ptyio.h> and <unistd.h>.
8046
aca00430
DN
8047 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
8048
d43c06d6
DN
8049 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
8050 * s/gnu.h (START_FILES): Remove empty definition.
8051
3e56b11d
JD
80522010-05-06 Jan Djärv <jan.h.d@swipnet.se>
8053
8054 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
8055
e3cf0cde
GM
80562010-05-06 Glenn Morris <rgm@gnu.org>
8057
8058 * Makefile.in (CPP, LN_S): Remove unused variables.
8059
774b9a60
SM
80602010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8061
8062 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
8063
4ab92842
LM
80642010-05-05 Lawrence Mitchell <wence@gmx.li>
8065
8066 * m/sparc.h: Fix typo in earlier change.
8067
178f2507
SM
80682010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8069
8070 Misc tweaks.
8071 * eval.c (Fdefvaralias): Remove unintended nested if.
8072 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
8073
80f00217 80742010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
8075
8076 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
8077
ef03a4e6
DN
80782010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
8079
58eb6cf0
DN
8080 Remove BSD_PGRPS.
8081 * s/bsd-common.h (BSD_PGRPS): Remove undef.
8082 * s/gnu-linux.h (BSD_PGRPS): Remove.
8083 * term.c (dissociate_if_controlling_tty):
8084 * sysdep.c (narrow_foreground_group, widen_foreground_group)
8085 (init_sys_modes, reset_sys_modes):
8086 * emacs.c (main):
8087 * callproc.c (Fcall_process, child_setup): Remove code depending
8088 on BSD_PGRPS.
8089
ef03a4e6
DN
8090 Remove POSIX_SIGNALS.
8091 * s/usg5-4.h (POSIX_SIGNALS):
8092 * s/netbsd.h (POSIX_SIGNALS):
8093 * s/msdos.h (POSIX_SIGNALS):
8094 * s/ms-w32.h (POSIX_SIGNALS):
8095 * s/hpux11.h (POSIX_SIGNALS):
8096 * s/gnu.h (POSIX_SIGNALS):
8097 * s/gnu-linux.h (POSIX_SIGNALS):
8098 * s/freebsd.h (POSIX_SIGNALS):
8099 * s/darwin.h (POSIX_SIGNALS):
8100 * s/cygwin.h (POSIX_SIGNALS):
8101 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
8102 * s/unixware.h:
8103 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
8104 * process.c (create_process):
8105 * syssignal.h:
8106 * sysdep.c (wait_for_termination, init_signals):
8107 * process.c (create_process):
8108 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
8109 remove all code that assumes the contrary.
8110
49628785
GM
81112010-05-04 Glenn Morris <rgm@gnu.org>
8112
27a2cdfc
GM
8113 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
8114 variable.
8115 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8116 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
8117 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8118 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
8119 LD_SWITCH_SYSTEM_tmp.
8120 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
8121 New variables, set by configure.
8122
eb21eab5
GM
8123 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8124 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
8125 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8126 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
8127 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
8128
49628785
GM
8129 * s/aix4-2.h (C_SWITCH_SYSTEM):
8130 * m/alpha.h (C_SWITCH_MACHINE):
8131 Move to configure.in.
8132 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
8133 New variables, set by configure.
8134 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
8135 $c_switch_machine and $c_switch_system.
8136
7dff330b
DN
81372010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
8138
8139 * s/hpux10-20.h (LIB_STANDARD): New definition.
8140 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
8141 on it, not used anymore.
8142
53967e09
CY
81432010-05-03 Chong Yidong <cyd@stupidchicken.com>
8144
8145 * eval.c (internal_condition_case_n): Rename from
8146 internal_condition_case_2.
8147 (internal_condition_case_2): New function.
8148
8149 * xdisp.c (safe_call): Use internal_condition_case_n.
8150
8151 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
8152 (internal_delete_file, Frename_file): Callers changed.
8153
8154 * buffer.c (Fkill_buffer):
8155 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
8156
8157 * lisp.h: Update prototypes.
8158
3dee6fdb
GM
81592010-05-03 Glenn Morris <rgm@gnu.org>
8160
8161 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
8162 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
8163 (LIBXT): Set with configure, not cpp.
8164 (LIBX): Remove.
8165 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
8166
a101e0fb
DN
81672010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8168
8169 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
8170 The FreeBSD is not needed, the default works, Solaris version is
8171 not needed, and the remaining case is not supported by configure.
8172
f63d0028
JD
81732010-05-02 Jan Djärv <jan.h.d@swipnet.se>
8174
8175 * xsmfns.c (CHDIR_OPT): New define.
8176 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
8177 restarting emacs.
8178
8179 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
8180 shut_down_emacs.
8181
8182 * emacs.c (USAGE1): Mention --chdir.
8183 (main): Handle --chdir.
8184 (standard_args): Add --chdir.
8185 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
8186 #5552).
8187
e4814a9f
DN
81882010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
8189
cd03c74a
DN
8190 Remove LD_SWITCH_MACHINE.
8191 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
8192 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
8193
c3a398a1
DN
8194 Clean up IRIX code.
8195 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
8196 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
8197
87e7285c
DN
8198 Clean up AIX code.
8199 * m/ibmrs6000.inp: Remove file, unused.
8200 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
8201 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
8202 definition ...
8203 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
8204
80f00217
JB
8205 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
8206 unused.
e4814a9f 8207
59ca28de
EZ
82082010-05-01 Eli Zaretskii <eliz@gnu.org>
8209
197daef4
EZ
8210 Emulate POSIX_SIGNALS on MS-Windows.
8211
8212 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
8213 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
8214
8215 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
8216 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
8217 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
8218
80f00217
JB
8219 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
8220 New stubs.
197daef4 8221
af7c7572
EZ
8222 Miscellaneous fixes of bidi display.
8223
59ca28de
EZ
8224 * xdisp.c (find_row_end): New function, refactored from display_line.
8225 (display_line): Use it.
017ea819
EZ
8226 (extend_face_to_end_of_line): In almost-filled rows, extend only
8227 if the row is R2L and not continued.
166e930d 8228 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 8229 Preserve overlay and string info in row->end.
166e930d
EZ
8230 (insert_left_trunc_glyphs): Support addition of left truncation
8231 glyphs to R2L rows.
b47e0dcf 8232 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
8233 glyph between adjacent windows. Fix a crash when a display string
8234 is continued to the next line. Don't return zero if cursor was
8235 found by `cursor' property of a display string.
b47e0dcf
EZ
8236 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
8237 test for that explicitly.
59ca28de 8238
7acac9f4
GM
82392010-05-01 Glenn Morris <rgm@gnu.org>
8240
8241 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
8242 for clarity.
8243 (OTHER_OBJ): Remove.
8244 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
8245 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
8246
45841e65
KK
82472010-05-01 Karel Klíč <kklic@redhat.com>
8248
8249 * fileio.c (Ffile_selinux_context): Context functions may return null.
8250
afc61943
DN
82512010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
8252
80f00217 8253 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 8254
5a1bb006
GM
82552010-04-30 Glenn Morris <rgm@gnu.org>
8256
8257 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
8258 (OTHER_OBJ): Define as a separate variable, for clarity.
8259
210af043
J
82602010-04-30 Jan Djärv <jan.h.d@swipnet.se>
8261
2f8f196d 8262 * xsettings.c: Include limits.h and update file comment.
210af043 8263
0a7df391
GM
82642010-04-30 Glenn Morris <rgm@gnu.org>
8265
d5096f16
GM
8266 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
8267 Set with configure, not cpp.
8268 (LIBW): Remove, replace with $TOOLKIT_LIBW.
8269
7eb1ac33
GM
8270 * Makefile.in (mallocobj): Remove.
8271 (otherobj): Simplify using @OTHER_OBJ@.
8272
517d086b
GM
8273 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
8274 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
8275 Don't bother making nsgui.h dependency platform-specific.
8276
0a7df391
GM
8277 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
8278
d6d23852
SM
82792010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
8280
d2630aef
SM
8281 * process.c (read_process_output, exec_sentinel): Don't burp if the
8282 sentinel/filter kills the current buffer (bug#6060).
8283
f9dddf52 8284 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
8285 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
8286 Remove unused var `args'.
8287 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
8288 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
8289 * doc.c (store_function_docstring): Use XSETCAR.
8290
f1e3642a
GM
82912010-04-28 Glenn Morris <rgm@gnu.org>
8292
faf535f8
GM
8293 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
8294 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
8295
c40f9449
GM
8296 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
8297
658f86ca
GM
8298 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
8299 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
8300
bc0b5f61
GM
8301 * Makefile.in (FONT_OBJ): New, set by configure.
8302 (FONT_DRIVERS): Use $FONT_OBJ.
8303
294c50a0
GM
8304 * Makefile.in (LIBXMU): Set with configure, not cpp.
8305 * s/aix4-2.h (LIBXMU):
8306 * s/hpux10-20.h (LIBXMU):
8307 Remove definition, now set in configure.
8308
e6ec4e99
GM
8309 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
8310
f1e3642a
GM
8311 * m/amdx86-64.h [i386]: Move this test to configure.in.
8312
c6ea2936
GM
83132010-04-27 Glenn Morris <rgm@gnu.org>
8314
8fdac2c3
GM
8315 * Makefile.in (LIBXTR6): Set with configure, not cpp.
8316 * s/unixware.h (NEED_LIBW): Remove definition.
8317
986fb647
GM
8318 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
8319 (TOOLKIT_LIBW): New, set by configure.
8320 (@X_TOOLKIT_TYPE@): No longer define it.
8321
c6ea2936
GM
8322 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
8323 (MOTIF_LIBW): Set with configure, not cpp.
8324 * s/aix4-2.h (LIB_MOTIF):
8325 * s/gnu-linux.h (LIB_MOTIF):
8326 * s/unixware.h (LIB_MOTIF): Move to configure.in.
8327
aaa36002
DN
83282010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
8329
8330 Reduce CPP usage.
8331 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
8332 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
8333 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
8334 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 8335 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 8336
b678dd8b
GM
83372010-04-27 Glenn Morris <rgm@gnu.org>
8338
76cda504
GM
8339 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
8340 since the defaults (set by the system file) are fine in most cases.
8341 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
8342 * m/ibms390x.h (START_FILES, LIB_STANDARD):
8343 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
8344 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
8345 Remove definitions, since they are set correctly in s/gnu-linux.h.
8346 * s/freebsd.h (START_FILES, LIB_STANDARD):
8347 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
8348 * s/hpux10-20.h (START_FILES):
8349 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
8350 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
8351
b678dd8b
GM
8352 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
8353 (MOTIF_LIBW): Use $LIBXP.
8354 (otherobj): Use $WIDGET_OBJ.
8355
9452ded1
DN
83562010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
8357
7e10844c
DN
8358 * Makefile.in (LIBS_MACHINE): Remove, unused.
8359
9452ded1
DN
8360 Use autoconf instead of cpp for LIB_MATH.
8361 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
8362 * s/cygwin.h (LIB_MATH): Likewise.
8363 * Makefile.in (LIB_MATH): Do not define with cpp.
8364 (LIBES): Use autoconf for LIB_MATH.
8365
fcebfc6a
KH
83662010-04-26 Kenichi Handa <handa@m17n.org>
8367
8368 * composite.c (Ffind_composition_internal): Fix the return value
8369 for an automatic composition.
8370
39e2ad1b
DN
83712010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
8372
8373 Remove all NO_ARG_ARRAY uses.
8374 * fns.c (concat2, concat3, nconc2):
8375 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
8376 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
8377 * m/xtensa.h (NO_ARG_ARRAY):
8378 * m/template.h (NO_ARG_ARRAY):
8379 * m/sparc.h (NO_ARG_ARRAY):
8380 * m/sh3.h (NO_ARG_ARRAY):
8381 * m/mips.h (NO_ARG_ARRAY):
8382 * m/macppc.h (NO_ARG_ARRAY):
8383 * m/iris4d.h (NO_ARG_ARRAY):
8384 * m/intel386.h (NO_ARG_ARRAY):
8385 * m/ibms390x.h (NO_ARG_ARRAY):
8386 * m/ibms390.h (NO_ARG_ARRAY):
8387 * m/ibmrs6000.h (NO_ARG_ARRAY):
8388 * m/ia64.h (NO_ARG_ARRAY):
8389 * m/hp800.h (NO_ARG_ARRAY):
8390 * m/arm.h (NO_ARG_ARRAY):
8391 * m/amdx86-64.h (NO_ARG_ARRAY):
8392 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
8393
adf4f59c
EZ
83942010-04-25 Eli Zaretskii <eliz@gnu.org>
8395
6bdf5d65
EZ
8396 * xdisp.c (display_line): Don't assume 2nd call to
8397 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
8398 (iterate_out_of_display_property): New function, body from pop_it.
8399 (pop_it): Use it.
adf4f59c 8400
dfbbda83
GM
84012010-04-24 Glenn Morris <rgm@gnu.org>
8402
8403 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
8404 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
8405 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
8406 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
8407
2d4018aa
EZ
84082010-04-24 Eli Zaretskii <eliz@gnu.org>
8409
a49884a6
EZ
8410 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
8411 use `get_next_display_element' and `set_iterator_to_next' to
8412 advance to the next character, when looking for the character that
8413 begins the next row.
8414
76db6fcc 8415 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
8416 definition of "struct Lisp_Symbol".
8417
70eab5c1
GM
84182010-04-24 Glenn Morris <rgm@gnu.org>
8419
8420 * Makefile.in (CRT_DIR): New variable, set by configure.
8421 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
8422 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
8423
1ad4cc3d
DN
84242010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8425
e769f484
DN
8426 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
8427
4196ff33
DN
8428 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
8429
879b0ee4
DN
8430 Remove redundant flags.
8431 * s/freebsd.h (C_SWITCH_SYSTEM):
8432 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
8433 * s/netbsd.h (C_SWITCH_SYSTEM):
8434 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
8435 of these.
8436
03cbbcb8
DN
8437 Simplify m/intel386.h.
8438 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
8439 user: ecrt0.c.
8440 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
8441 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
8442 the only user: s/unixware.h.
8443 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
8444 from m/intel386.h.
bba3e508
SM
8445 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
8446 Definitions moved here from m/intel386.h.
03cbbcb8 8447
1ad4cc3d
DN
8448 * m/mips.h: Remove #if 0 code.
8449
8785b888
EZ
84502010-04-23 Eli Zaretskii <eliz@gnu.org>
8451
728588cc
EZ
8452 Fix display of composed characters from L2R scripts in bidi buffers.
8453 * xdisp.c (set_iterator_to_next, next_element_from_composition):
8454 After advancing IT past the composition, resync the bidi iterator
8455 with IT's position. (Bug#5977)
8456
a63f80b4
DN
84572010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8458
8459 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
8460 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
8461
ff5dec5c
SM
84622010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
8463
8464 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
8465
8785b888
EZ
84662010-04-23 Eli Zaretskii <eliz@gnu.org>
8467
58ccf243 8468 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
8469 * xdisp.c (pop_it): When the stack is popped after displaying
8470 from a string, bidi-iterate to exit from the text portion covered
8471 by the `display' property or overlay. (Bug#5988, bug#5920)
8472
feeb1604
DN
84732010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8474
8e324eb6
DN
8475 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
8476 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
8477
809fcaba
DN
8478 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
8479 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
8480
ed710380
DN
8481 Simplify STARTFILES definition.
8482 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
8483 relying on Makefile.in to define it.
8484 * s/cygwin.h (START_FILES): Likewise.
8485 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
8486
feeb1604
DN
8487 Clean up Solaris code.
8488 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
8489 (LIB_MOTIF): Remove, configure takes care of this.
8490 (NOT_USING_MOTIF): Remove, unused.
8491 * xrdb.c: Remove #if 0-ed #include.
8492 (SYSV): Remove conditional for old SysV.
8493 * sysdep.c (closedir): Remove conditional code for Solaris,
8494 Solaris has closedir.
8495
a0d0b563
JD
84962010-04-22 Jan Djärv <jan.h.d@swipnet.se>
8497
8498 * xsettings.c (read_and_apply_settings): Check if current_font is
8499 NULL before strcmp (Bug#6001).
8500
56bae7c7
DN
85012010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
8502
8503 Clean up HP-UX files.
8504 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
8505 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
8506 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
8507 * s/hpux10-20.h: ... to the only user, here.
8508
372b7a95
EZ
85092010-04-21 Eli Zaretskii <eliz@gnu.org>
8510
8511 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
8512 use buffer-local values of paragraph-start and paragraph-separate.
8513 <paragraph_start_re, paragraph_separate_re>: Rename from
8514 fallback_paragraph_start_re and fallback_paragraph_separate_re.
8515 (Bug#5992)
8516
f904c0f9
JD
85172010-04-21 Jan Djärv <jan.h.d@swipnet.se>
8518
8519 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
8520 current_tool_bar_style are new.
8521 (store_config_changed_event): Rename from store_font_changed_event.
8522 (XSETTINGS_TOOL_BAR_STYLE): New define.
8523 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
8524 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
8525 HAVE_XFT.
8526 (something_changedCB): store_font_changed_event is now
c4cc8b9a 8527 store_config_changed_event.
bba3e508
SM
8528 (parse_settings): Rename from parse_xft_settings.
8529 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 8530 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
8531 (apply_xft_settings): Take current settings as parameter. Do not
8532 call read_(xft)_settings.
8533 (read_and_apply_settings): New function.
bba3e508
SM
8534 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
8535 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 8536 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
8537 Call read_and_apply_settings unconditionally.
8538 (xsettings_initialize): Call init_xsettings.
8539 (Ftool_bar_get_system_style): New function.
8540 (syms_of_xsettings): Define Qmonospace_font_name and
8541 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 8542 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 8543 dynamic-setting.
31a01b90 8544 Move misplaced HAVE_GCONF
f904c0f9
JD
8545
8546 * xsettings.h (Ftool_bar_get_system_style): Declare.
8547
8548 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
8549 Qtext, Qboth, Qboth_horiz are new.
8550 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
8551 Vtool_bar_style, tool_bar_max_label_size.
8552
8553 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
8554
8555 * keyboard.c: QClabel is new.
8556 (parse_tool_bar_item): Take out QClabel from tool bar items.
8557 Try to construct a label if ther is no QClabel.
8558 (syms_of_keyboard): Intern :label as QClabel.
8559
8560 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
8561 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
8562 New.
8563
8564 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
8565 dynamic-setting.el.
8566
8567 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
8568 (xg_make_tool_item, xg_show_toolbar_item): New function.
8569 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
8570 Call xg_make_tool_item to make a tool bar item.
8571 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
8572
8573 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
8574 into account for toolbars.
8575
c632dfda
JD
85762010-04-21 Jan Djärv <jan.h.d@swipnet.se>
8577
8578 * data.c (make_blv): Declarations before code (Bug#5993).
8579
10efe302
GM
85802010-04-21 Glenn Morris <rgm@gnu.org>
8581
8582 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
8583 Define using autoconf, not cpp.
8584 (LIBXSM): New variable, set by autoconf.
8585 (LIBXT): Use $LIBXSM.
8586
4285ac5a
DN
85872010-04-21 Dan Nicolaescu <local_user@dannlt>
8588
3ec759e7
DN
8589 Remove NOMULTIPLEJOBS, unused.
8590 * s/template.h (NOMULTIPLEJOBS):
8591 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
8592
4285ac5a
DN
8593 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
8594 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
8595 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
8596 detects -znocombreloc and passes it to the linker
8597 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
8598
2807228d
GM
85992010-04-21 Glenn Morris <rgm@gnu.org>
8600
8601 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
8602
574c05e2
KK
86032010-04-21 Karel Klíč <kklic@redhat.com>
8604
8605 * Makefile.in (LIBSELINUX_LIBS): New.
8606 (LIBES): Add $LIBSELINUX_LIBS.
8607 * eval.c, lisp.h (call7): New function.
8608 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
8609 (Ffile_selinux_context, Fset_file_selinux_context):
8610 New functions.
8611 (Fcopy_file): New parameter preserve-selinux-context.
8612 (Frename_file): Preserve selinux context when renaming by copy-file.
8613
91eac4bb 86142010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 8615 Eli Zaretskii <eliz@gnu.org>
91eac4bb 8616
50426a04
JB
8617 Don't depend on cm.c or termcap.c on Windows, use stubs.
8618 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
8619 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
8620 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
8621 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
8622 (sys_tputs, sys_tgetstr): New stubs.
8623 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
8624 (tputs, tgetstr): New; define to sys_*.
91eac4bb 8625
938efb77
JB
86262010-04-20 Juanma Barranquero <lekktu@gmail.com>
8627
8628 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
8629
b4bf28b7
SM
86302010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8631
8b1e1112
SM
8632 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
8633 Just signal a warning rather than an error when inside a let.
8634 (Fmake_variable_frame_local): Add the same test.
8635
933ac235
SM
8636 * font.c (syms_of_font): Make the style table vars read-only.
8637
b4bf28b7
SM
8638 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
8639 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
8640
8641 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
8642
93d68d0c
EZ
86432010-04-20 Eli Zaretskii <eliz@gnu.org>
8644
8645 Fix R2L paragraph display on TTY.
8646
8647 * xdisp.c (unproduce_glyphs): New function.
8648 (display_line): Use it when produced glyphs are discarded from R2L
8649 glyph rows.
8650 (append_composite_glyph): In R2L rows, prepend the glyph rather
8651 than appending it.
8652
8653 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
8654 rather than append it. Set up the resolved_level and bidi_type
8655 attributes of the appended glyph.
283ccc18
EZ
8656 (produce_special_glyphs): Mirror the backslash continuation
8657 character in R2L lines.
93d68d0c 8658
283ccc18 8659 Implement display of R2L paragraphs in GUI sessions.
26cdf528 8660
283ccc18
EZ
8661 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
8662 append_stretch_glyph.
bba3e508
SM
8663 (set_cursor_from_row) <cursor_x>: Remove unused variable.
8664 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
8665 (append_stretch_glyph): In reversed row, prepend the glyph rather
8666 than append it. Set resolved_level and bidi_type of the glyph.
8667 (extend_face_to_end_of_line): If the row is reversed, prepend a
8668 stretch glyph whose width is such that the rightmost glyph will be
8669 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
8670 TTY frames in testing whether a line needs face extension.
8671 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
8672 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
8673 region face.
bba3e508
SM
8674 (set_cursor_from_row, display_line):
8675 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 8676 row->continuation_lines_width.
283ccc18
EZ
8677 (next_element_from_buffer): Don't call bidi_paragraph_init if we
8678 are at ZV. Fixes a crash when reseated to ZV by
8679 try_window_reusing_current_matrix.
45903529
EZ
8680 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
8681 which happens with R2L glyph rows. Fixes a crash when inserting a
8682 character at end of an R2L line.
283ccc18
EZ
8683 (set_cursor_from_row): Don't be fooled by truncated rows: don't
8684 treat them as having zero-width characters. Improve comments.
8685 Don't reverse pos_before and pos_after for reversed glyph rows.
8686 Set cursor.x to negative value when the cursor might be on the
8687 left fringe.
8688 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
8689 left fringe, not the right one.
f951a506
EZ
8690 (notice_overwritten_cursor, draw_phys_cursor_glyph)
8691 (erase_phys_cursor): For reversed cursor_row, support cursor on
8692 the left fringe.
8693
283ccc18
EZ
8694 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
8695 of continuation indicators on the fringes.
8696 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
8697 left fringe.
8698
f951a506
EZ
8699 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
8700 draw cursor on the left fringe.
8701
8702 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
8703 cursor on the left fringe.
8704
f951a506
EZ
8705 * dispnew.c (update_text_area): Handle reversed desired rows when
8706 the cursor is on the left fringe.
8707 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
8708 below, not by 0, for when the cursor is on the left fringe.
8709
3bb49aaf
JD
87102010-04-20 Jan Djärv <jan.h.d@swipnet.se>
8711
8712 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
8713 widget is a scrollbar.
8714
c0be27fd
KH
87152010-04-20 Kenichi Handa <handa@m17n.org>
8716
8717 * charset.c (char_charset): Consider Vcharset_non_preferred_head
8718 only when the arg CHARSET_LIST is nil.
8719
ce5b453a
SM
87202010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8721
8722 Make variable forwarding explicit rather the using special values.
8723 Basically, this makes the structure of buffer-local values and object
8724 forwarding explicit in the type of Lisp_Symbols rather than use
8725 special Lisp_Objects for that. This tends to lead to slightly more
8726 verbose code, but is more C-like, simpler, and makes it easier to make
8727 sure we handled all cases, among other things by letting the compiler
8728 help us check it.
8729 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
8730 Removing forwarding objects.
8731 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
8732 (struct Lisp_Symbol): Make the various forms of variable-forwarding
8733 explicit rather than hiding them inside Lisp_Object "values".
8734 (XFWDTYPE): New macro.
8735 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
8736 (XBUFFER_LOCAL_VALUE): Remove.
8737 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
8738 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
8739 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
8740 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
8741 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
8742 Remove the Lisp_Misc_* header.
8743 (struct Lisp_Buffer_Local_Value): Redefine.
8744 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
8745 (struct Lisp_Misc_Any): Add filler to get the right size.
8746 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
8747 Lisp_Intfwd.
8748 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
8749 (DEFVAR_KBOARD): Allocate a forwarding object.
8750 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
8751 (let_shadows_global_binding_p): New function.
8752 (union Lisp_Val_Fwd): New type.
8753 (make_blv): New function.
8754 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
8755 (store_symval_forwarding, swap_in_global_binding, Fboundp)
8756 (swap_in_symval_forwarding, find_symbol_value, Fset)
8757 (let_shadows_buffer_binding_p, set_internal, default_value)
8758 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
8759 (Fkill_local_variable, Fmake_variable_frame_local)
8760 (Flocal_variable_p, Flocal_variable_if_set_p)
8761 (Fvariable_binding_locus):
8762 * xdisp.c (select_frame_for_redisplay):
8763 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
8764 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
8765 * frame.c (store_frame_param):
8766 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
8767 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
8768 value structure.
8769 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
8770 (clone_per_buffer_values): Only adjust markers into the current buffer.
8771 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
8772 (Fbuffer_local_value, set_buffer_internal_1)
8773 (swap_out_buffer_local_variables):
8774 Adapt to the new symbol value structure.
8775 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
8776 (defvar_per_buffer): Take a new arg for the fwd object.
8777 (buffer_lisp_local_variables): Return a proper alist (different fix
8778 for bug#4138).
8779 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
8780 (Fgarbage_collect): Don't handle buffer_defaults specially.
8781 (mark_object): Handle new symbol value structure rather than the old
8782 special Lisp_Misc_* objects.
8783 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
8784 * term.c (set_tty_color_mode):
8785 * bidi.c (bidi_initialize): Don't access the ->value field directly.
8786 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
8787 a buffer_local_flags.
8788 * print.c (print_object): Get rid of impossible forwarding objects.
8789
fd3998ff
EZ
87902010-04-19 Eli Zaretskii <eliz@gnu.org>
8791
8792 * bidi.c (bidi_get_type, bidi_get_category)
8793 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
8794 (bidi_type_of_next_char, bidi_level_of_next_char):
8795 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 8796
e42cd1a7
JB
87972010-04-19 Juanma Barranquero <lekktu@gmail.com>
8798
8799 * dired.c (Ffile_attributes): Fix typo in docstring.
8800
6e104790 88012010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
8802
8803 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
8804 NSInteger (Bug#5811).
8805
6e104790 88062010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
8807
8808 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
8809 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
8810
6e104790 88112010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
8812
8813 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
8814
6e104790
SM
88152010-04-19 Chong Yidong <cyd@stupidchicken.com>
8816
8817 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
8818 terminal frames (Bug#5837).
8819
37dcfea0
EZ
88202010-04-19 Eli Zaretskii <eliz@gnu.org>
8821
d1da276f
EZ
8822 * .gdbinit (xsubchartable): New command.
8823
37dcfea0
EZ
88242010-04-19 Eli Zaretskii <eliz@gnu.org>
8825
8826 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 8827 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
8828 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
8829 and
8830 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
8831
e9515805
SM
88322010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8833
8834 * alloc.c (Fpurecopy): Hash-cons if requested.
8835 (syms_of_alloc): Update purify-flag docstring.
8836
22aa44a8
JD
88372010-04-18 Jan Djärv <jan.h.d@swipnet.se>
8838
8839 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
8840 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
8841
ebb5722e
EZ
88422010-04-17 Eli Zaretskii <eliz@gnu.org>
8843
8844 Fix a crash when an NSM character is inserted at BEGV.
8845
8846 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
8847 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
8848 NEUTRAL_B or UNKNOWN_BT.
8849
0f4442ef
EZ
88502010-04-16 Eli Zaretskii <eliz@gnu.org>
8851
8852 * xdisp.c (set_cursor_from_row): Don't consider possibility of
8853 other rows with cursor unless they are different from this row and
8854 this row is part of a continued line. (Bug#5943)
8855
7d4e45f8
DN
88562010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8857
8858 * s/freebsd.h: Restore osreldate.h include.
8859 Suggested by Naohiro Aota.
8860
5ba5ec85
J
88612010-04-16 Jan Djärv <jan.h.d@swipnet.se>
8862
8863 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
8864
20af301d
CY
88652010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
8866
8867 * s/cygwin.h: Avoid linking against static libgcc.
8868
a4b000fb
JL
88692010-04-15 Juri Linkov <juri@jurta.org>
8870
8871 * window.c: Add Qscroll_command.
8872 Remove Vscroll_preserve_screen_position_commands.
8873 (window_scroll_pixel_based, window_scroll_line_based): Check the
8874 `scroll-command' property on the last command instead of searching
8875 the last command in Vscroll_preserve_screen_position_commands.
8876 (syms_of_window): Initialize and staticpro `Qscroll_command'.
8877 Put Qscroll_command property on Qscroll_up and Qscroll_down.
8878 (scroll-preserve-screen-position): Doc fix.
8879 (Vscroll_preserve_screen_position_commands): Remove variable.
8880
bc319ba4
DN
88812010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8882
6bb24457
DN
8883 * xdisp.c (message): Do not use NO_ARG_ARRAY.
8884
19d4c244
DN
88852010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
8886
8887 Reduce cpp use in Makefile.in.
8888 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
8889 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
8890 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
8891 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8892 (CRT0_COMPILE): Remove, inline it in the only user.
8893
32129746
JL
88942010-04-14 Juri Linkov <juri@jurta.org>
8895
8896 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
8897 `scroll-up-command' and `M-v' from `scroll-down' to
8898 `scroll-down-command'.
8899
9013a7f8
JL
89002010-04-14 Juri Linkov <juri@jurta.org>
8901
8902 * window.c (Vscroll_preserve_screen_position_commands): New variable
8903 with the default value as the list of Qscroll_down and Qscroll_up.
8904 (window_scroll_pixel_based, window_scroll_line_based): Search the
8905 last command in the list Vscroll_preserve_screen_position_commands
8906 instead of comparing with Qscroll_up and Qscroll_down.
8907
4bef8d26
JD
89082010-04-13 Jan Djärv <jan.h.d@swipnet.se>
8909
92848133
JD
8910 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
8911 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
8912 does that.
8913
4bef8d26
JD
8914 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
8915 to zero.
8916
58b963f7
SM
89172010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8918
84164a0d
SM
8919 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
8920
2b0a91e7
SM
8921 Try to solve the problem of spurious EOF chars in long lines of text
8922 sent to interactive subprocesses.
8923 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
8924 (system_process_attributes): Remove unused var `ttotal'.
8925 * process.c (send_process): Don't bother breaking long line with EOF
8926 chars when talking to ttys any more.
8927 (wait_reading_process_output): Output a warning when called in such
8928 a way that it could block without being interruptible.
8929
58b963f7
SM
8930 Try to detect file modification within the same second.
8931 * buffer.h (struct buffer): New field modtime_size.
8932 * buffer.c (reset_buffer): Initialize it.
8933 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
8934 (Fverify_visited_file_modtime): Check it.
8935 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
8936 (Fset_visited_file_modtime): Set (or clear) it.
8937
01f5787b
SM
89382010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8939
8940 * process.c (status_notify): Remove unused var `ro'.
8941
83725342
JD
89422010-04-12 Jan Djärv <jan.h.d@swipnet.se>
8943
8944 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
8945 more than one visual (Bug#5938).
8946
b9465836
DN
89472010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8948
50426a04
JB
8949 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
8950 Undefine.
b9465836 8951
8d9c8ece
DN
89522010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
8953
b1f52161
DN
8954 Remove C_SWITCH_SYSTEM_TEMACS.
8955 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
8956 (malloc, realloc, free): Use emacs, not temacs for conditional
8957 definition.
8958
8959 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
8960 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
8961
8d9c8ece
DN
8962 Use autoconf, not cpp for some variables.
8963 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
8964 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
8965 (ALL_CFLAGS): Use them as make variables.
8966 (really-lwlib, really-oldXMenu): Do not pass them.
8967
1ecb2d3f
JD
89682010-04-11 Jan Djärv <jan.h.d@swipnet.se>
8969
8970 * xmenu.c (apply_systemfont_to_dialog): New.
8971 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
8972
3a4fa2f2
SM
89732010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8974
97e53006
SM
8975 * process.c (exec_sentinel): Preserve current-buffer.
8976
3a4fa2f2
SM
8977 * process.c (read_process_output): Move the save-current-buffer to
8978 apply to both the filter and the non-filter branches.
8979
88df7221
DN
89802010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
8981
8982 * s/msdos.h (UNEXEC): New definition.
8983
5634ff85
YM
89842010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8985
6eff5c3d
YM
8986 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
8987 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
8988
8989 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
8990 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
8991 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
8992 TRY_WINDOW_CHECK_MARGINS.
8993
8994 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
8995 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
8996 width only when it is for padding.
5634ff85 8997
b13aef54
J
89982010-04-09 Jan Djärv <jan.h.d@swipnet.se>
8999
9000 * xfns.c (Fx_show_tip): Call try_window in a loop until
9001 fonts_changed_p is zero (Bug#2423).
9002
21d28484
EZ
90032010-04-08 Eli Zaretskii <eliz@gnu.org>
9004
9005 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
9006 the end of TEXT_AREA. (Bug#5856)
9007
0269ef77
JD
90082010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9009
9010 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
9011 HAVE_GCONF.
9012
5930fe97
EZ
90132010-04-08 Eli Zaretskii <eliz@gnu.org>
9014
9015 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
9016 prev.orig_type, for resolving type of NSM. (Bug#5858)
9017
99852628
JD
90182010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9019
9020 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
9021 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
9022 in current_font.
9023 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
9024 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
9025 New functions.
9026 (syms_of_xsettings): Initialize current_font.
9027 defsubr Sfont_get_system_normal_font.
99852628 9028
686b968e
JB
9029 * xsettings.h (Ffont_get_system_normal_font)
9030 (xsettings_get_system_normal_font): Declare.
99852628
JD
9031
9032 * xfns.c (extern xlwmenu_default_font): Remove.
9033 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
9034 to xlwmenu.c.
9035
9036 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
9037 menu items in UTF-8.
9038
2f8f196d 9039 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
99852628 9040 (apply_systemfont_to_menu): New function.
bba3e508
SM
9041 (set_frame_menubar, create_and_show_popup_menu):
9042 Call apply_systemfont_to_menu.
99852628 9043
7fc874c4
J
90442010-04-07 Jan Djärv <jan.h.d@swipnet.se>
9045
9046 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
9047 FRAME_LINE_TO_PIXEL_Y.
9048
9049 * xterm.c (x_set_window_size_1): Don't add border_width/height to
9050 pixelwidth/height.
9051
863bf481
DN
90522010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
9053
5e5a3b92
DN
9054 Simplify code for HP machines.
9055 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
9056 for GNU_LINUX, not needed.
9057 (UNEXEC, NEED_BSDTTY): Move definitions...
9058 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
9059
863bf481
DN
9060 * m/iris4d.h (UNEXEC): Move definition ...
9061 * s/irix6-5.h (UNEXEC): ... here.
9062
3e6bec3b
JD
90632010-04-04 Jan Djärv <jan.h.d@swipnet.se>
9064
9065 * xfns.c (set_machine_and_pid_properties): New function.
9066 (Fx_create_frame): Call set_machine_and_pid_properties.
9067
2912322b
SM
90682010-04-03 Eli Zaretskii <eliz@gnu.org>
9069
bba3e508
SM
9070 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
9071 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
9072 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
9073
2912322b
SM
9074 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
9075 in this function. (Bug#5703)
9076
90772010-04-03 Chong Yidong <cyd@stupidchicken.com>
9078
9079 * nsterm.h: Fix last change.
9080
c435b432
DN
90812010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
9082
a568f507
DN
9083 * m/intel386.h (NO_REMAP): Move definition ...
9084 * s/msdos.h (NO_REMAP): ... here.
9085
4cd9f6c2
DN
9086 * m/vax.h (CRT0_DUMMIES): Remove, unused.
9087
c435b432
DN
9088 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
9089 used on those platforms.
9090
42a2c622
DN
90912010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
9092
9093 Remove extern errno declarations.
9094 * xterm.c:
9095 * xrdb.c:
9096 * w32term.c:
9097 * unexec.c:
9098 * unexaix.c:
9099 * sysdep.c:
9100 * process.c:
9101 * lread.c:
9102 * keyboard.c:
9103 * floatfns.c:
9104 * filelock.c:
9105 * fileio.c:
9106 * emacs.c (main):
9107 * ecrt0.c:
9108 * dispnew.c:
9109 * callproc.c:
9110 * buffer.c: Remove errno extern declarations.
9111 * s/netbsd.h (NEED_ERRNO): Remove.
9112
8224f93d
DN
91132010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
9114
9115 Remove all uses of LIBX11_SYSTEM.
9116 * Makefile.in (LIBX11_SYSTEM): Remove.
9117 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
9118 instead.
9119
814062c7
EZ
91202010-04-01 Eli Zaretskii <eliz@gnu.org>
9121
ed68db4d
EZ
9122 Remove support for DJGPP v1.x (bug#5813).
9123
9124 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
9125 * s/msdos.h:
9126 * unexec.c (make_hdr, copy_text_and_data):
9127 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 9128 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
9129 (IT_set_terminal_modes, __write, _rename, gethostname)
9130 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
9131 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
9132 the value of __DJGPP__.
ed68db4d
EZ
9133 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
9134 compatibility code.
8224f93d
DN
9135 * lread.c:
9136 * gmalloc.c (memalign):
9137 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
9138 * emacs.c (main):
9139 * dosfns.c (init_dosfns):
ed68db4d
EZ
9140 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
9141
52f4d8d5
EZ
91422010-04-01 Eli Zaretskii <eliz@gnu.org>
9143
814062c7
EZ
9144 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
9145 string with `cursor' property comes from an `after-string'
9146 overlay. (Bug#5816)
9147
0dc2e11d
GM
91482010-04-01 Glenn Morris <rgm@gnu.org>
9149
9150 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
9151 Define as Makefile variables.
9152 (LIBX): Use above variables rather than directly using autoconf.
9153
1d29df59
DN
91542010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
9155
9156 Clean up BSD_SYSTEM use.
9157 * xterm.c:
9158 * process.c:
9159 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
9160 for including <sys/ioctl.h>.
9161 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
9162 code is only used for MSDOS.
9163
1546c559
JL
91642010-03-31 Juri Linkov <juri@jurta.org>
9165
9166 * image.c: Add `Qextension_data'.
9167 (syms_of_image): Initialize and staticpro `Qextension_data'.
9168 (Fimage_metadata): Rename from `Fimage_extension_data'.
9169 (gif_load): Put GIF extension data to the property
9170 `Qextension_data'.
9171
6521c534
CY
91722010-03-31 Chong Yidong <cyd@stupidchicken.com>
9173
9174 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
9175 * nsterm.h: Fix prototype.
9176
52c30783
EZ
91772010-03-31 Eli Zaretskii <eliz@gnu.org>
9178
9179 * xdisp.c (highlight_trailing_whitespace): Support highlight of
9180 trailing whitespace in right-to-left rows.
9181
855a0da7
SM
91822010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9183
9184 Get rid of the direct_output optimizations.
9185 * keyboard.c (nonundocount): Remove extern declaration.
9186 (command_loop_1): Remove brittle optimisation for cheap and
9187 common operations.
9188 * xdisp.c (redisplay_internal): Don't bother checking
9189 redisplay_performed_directly_p any more.
9190 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
9191 any more.
9192 * dispnew.c (redisplay_performed_directly_p)
9193 (direct_output_for_insert, direct_output_forward_char):
9194 * dispextern.h (redisplay_performed_directly_p)
9195 (direct_output_for_insert, direct_output_forward_char): Remove.
9196 * cmds.c (nonundocount): Make it static.
9197
85738751 91982010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
9199
9200 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
9201
85738751 92022010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
9203
9204 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
9205 invisible (Bug#5766).
9206
85738751 92072010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 9208
855a0da7
SM
9209 * xdisp.c (x_consider_frame_title, update_window_cursor):
9210 Remove HAVE_NS conditionals.
194d44e7 9211 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
9212
9213 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
9214 filename for the title.
9215 (ns_set_doc_edited): Do nothing if the selected window is a
9216 minibuffer window.
9217
9218 * nsterm.h: Add prototypes for ns_set_name_as_filename and
9219 ns_set_doc_edited.
9220
9221 * nsterm.m: Remove unneeded prototype.
9222
85738751 92232010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
9224
9225 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
9226 in the DOC file. (Bug#5336)
9227
85738751 92282010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
9229
9230 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
9231
75d1428c
SM
92322010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9233
9234 * window.c (keys_of_window): Remove redundant/overridden bindings.
9235
82043cfb
EZ
92362010-03-30 Eli Zaretskii <eliz@gnu.org>
9237
9238 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
9239 Restore original behavior when the iterator is not bidi_p.
9240
b5dd0ae7
DN
92412010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9242
9243 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
9244
bd924a5d
EZ
92452010-03-30 Eli Zaretskii <eliz@gnu.org>
9246
9247 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
9248 are outside the range of cached character positions.
9249
3580374b
JB
92502010-03-30 Juanma Barranquero <lekktu@gmail.com>
9251
9252 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
9253
a7b02820
EZ
92542010-03-30 Eli Zaretskii <eliz@gnu.org>
9255
9256 Initial support for bidirectional editing.
9257
9258 * Makefile.in (obj): Include bidi.o.
9259 (bidi.o): New target.
9260
9261 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
9262 ($(BLD)/bidi.$(O)): New target.
9263
9264 * bidi.c: New file.
9265
9266 * buffer.h (struct buffer): New members bidi_display_reordering
9267 and bidi_paragraph_direction.
9268
9269 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
9270 and bidi_paragraph_direction.
9271 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
9272 and bidi-paragraph-direction.
9273 (Fbuffer_swap_text): Swap the values of
9274 bidi_display_reordering and bidi_paragraph_direction.
9275
9276 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
9277 (bidi_type_t, bidi_dir_t): New types.
9278 (bidi_saved_info, bidi_stack, bidi_it): New structures.
9279 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
9280 prev_stop, base_level_stop, and eol_pos.
9281 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
9282 (IT_STACK_SIZE): Enlarge to 5.
9283 (struct glyph_row): New member reversed_p.
9284 <string_buffer_position>: Update prototype.
9285 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
9286 glyph_row if bidi_it.paragraph_dir == R2L.
9287 (struct glyph): New members resolved_level and bidi_type.
9288
9289 * dispnew.c (direct_output_forward_char): Give up if we need bidi
9290 processing or buffer's direction is right-to-left.
9291 (prepare_desired_row): Preserve the reversed_p flag.
9292 (row_equal_p): Compare the reversed_p attributes as well.
9293
bba3e508
SM
9294 * xdisp.c (init_iterator): Initialize it->bidi_p.
9295 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
9296 buffer's value of bidi_paragraph_direction.
9297 (reseat_1): Initialize bidi_it.first_elt.
9298 (set_iterator_to_next, next_element_from_buffer): Use the value of
9299 paragraph_embedding to determine the paragraph direction.
9300 (set_iterator_to_next): Under bidi reordering, call
9301 bidi_get_next_char_visually. Call bidi_paragraph_init if the
9302 new_paragraph flag is set in the bidi iterator.
9303 (next_element_from_buffer): If bidi_it.first_elt is set,
9304 initialize paragraph direction and find the first character to
9305 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
9306 prime the bidi iterator starting at the line's beginning.
9307 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
9308 non-linearity of the bidi iteration. Likewise for when we back up
9309 beyond the previous stop_charpos. When moving across stop_charpos,
9310 record it in prev_stop.
9311 (display_line): Set row->end and it->start for the next row to the
9312 next character in logical order. Always extend reversed_p rows to
9313 the end of line, even if they end at ZV. Copy the reversed_p flag
9314 to the next glyph row. Keep calling set_cursor_from_row for
9315 bidi-reordered rows even if we already have a possible candidate
9316 for cursor position. Set row_end after all the row's glyphs have
9317 been produced, by looping over the glyphs. Record the position
9318 after EOL in it->eol_pos, and use it to set end_pos of the last
9319 row produced for a continued line.
9320 <Qright_to_left, Qleft_to_right>: New variables.
9321 (syms_of_xdisp): Initialize and staticpro them.
9322 (string_buffer_position_lim): New function.
9323 (string_buffer_position): Most of code moved to
9324 string_buffer_position_lim. Last argument and return value are
9325 now EMACS_INT; all callers changed.
9326 (set_cursor_from_row): Rewritten to support bidirectional text and
9327 reversed glyph rows.
bba3e508
SM
9328 (text_outside_line_unchanged_p, try_window_id):
9329 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
9330 paragraph direction can be affected by the change.
9331 (append_glyph, append_composite_glyph)
9332 (produce_image_glyph, append_stretch_glyph): Set the
9333 resolved_level and bidi_type members of each glyph.
9334 (append_glyph): If the glyph row is reversed, prepend the glyph
9335 rather than appending it.
9336 (handle_stop_backwards): New function.
9337 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2f8f196d 9338 (reseat): Call handle_stop_backwards to recompute prev_stop and
a7b02820
EZ
9339 base_level_stop for the new position.
9340 (handle_invisible_prop): Under bidi iteration, skip invisible text
9341 using bidi_get_next_char_visually. If we are `reseat'ed, init the
9342 paragraph direction. Update IT->prev_stop after skipping
9343 invisible text.
9344 (move_it_in_display_line_to): New variables prev_method
9345 and prev_pos. Compare for strict equality in
9346 BUFFER_POS_REACHED_P.
9347 (try_cursor_movement): Examine all the candidate rows that occlude
9348 point, to return the best match. If rows are bidi-reordered
9349 and point moved backwards, back up to the row that is not a
9350 continuation line, and start looking for a suitable row from
9351 there.
9352
9353 * term.c (append_glyph): Reverse glyphs by pre-pending them,
9354 rather than appending, if the glyph_row's reversed_p flag is set.
9355 Set the resolved_level and bidi_type members of each glyph.
9356
9357 * .gdbinit (pbiditype): New command.
9358 (pgx): Use it to display bidi level and type of the glyph.
9359 (pitx): Display some bidi information about the iterator.
9360 (prowlims, pmtxrows): New commands.
9361
32a8894e
DN
93622010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9363
9364 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
9365 * s/usg5-4.h (LIBS_DEBUG):
9366 * s/irix6-5.h (C_DEBUG_SWITCH):
9367 * s/gnu-linux.h (LIBS_DEBUG):
9368 * s/darwin.h (LIBS_DEBUG):
9369 * s/bsd-common.h (LIBS_DEBUG):
9370 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
9371 * m/iris4d.h (LIBS_DEBUG):
9372 * m/hp800.h (LIBS_DEBUG): Remove definitions.
9373
9374 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
9375 (LIBS_DEBUG): Remove definition.
9376
649dbf36
CY
93772010-03-27 Chong Yidong <cyd@stupidchicken.com>
9378
9379 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
9380 Windows.
9381
cad4261f
YM
93822010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9383
9384 * process.c (Fmake_network_process): Don't call turn_on_atimers around
9385 `connect' (Bug#5723).
9386
cd591dbc
HE
93872010-03-25 Helmut Eller <eller.helmut@gmail.com>
9388
9389 * process.c (Fmake_network_process): Call `select' for interrupted
9390 `connect' rather than creating new socket (Bug#5173).
9391
e867cb5d 93922010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
9393
9394 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
9395
9396 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
9397
9398 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
9399
e867cb5d 94002010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
9401
9402 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
9403 XLoadQueryFont.
9404
e867cb5d 94052010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
9406
9407 * coding.c (decode_coding_ccl): Fix previous change for the
9408 multibyte case.
fb608df3
KH
9409 (encode_coding_ccl): Don't setup ccl program here. Fix for the
9410 case that the output buffer is fullfilled.
9411 (encode_coding): Setup ccl program here.
fbdc1721 9412
5845f0ed
DN
94132010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
9414
814fb708
DN
9415 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
9416
5845f0ed
DN
9417 Simplify LIBS_MACHINE definitions.
9418 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
9419 * m/iris4d.h (LIBS_MACHINE): Likewise.
9420 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
9421 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 9422 * s/netbsd.h: Remove commented out code.
5845f0ed 9423
b7064064
DN
94242010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
9425
df7734b2
DN
9426 Remove dead code dealing with POSIX_SIGNALS.
9427 * atimer.c (set_alarm): Remove dead code, all USG systems define
9428 POSIX_SIGNALS.
9429 * data.c (arith_error): Likewise.
9430 * keyboard.c (input_available_signal, handle_user_signal)
9431 (interrupt_signal): Likewise.
9432 * process.c (sigchld_handler): Likewise.
9433 (create_process): Remove if 0 code. Remove HPUX conditional when
9434 !defined (POSIX_SIGNALS), it cannot be true.
9435 * syssignal.h: Remove USG5_4 and USG conditionals when
9436 !POSIX_SIGNALS, they cannot be true.
9437
b7064064
DN
9438 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
9439 NO_SOCK_SIGIO, not used anymore.
9440
55da5ee3
DN
94412010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
9442
0be96e3a
DN
9443 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
9444 support vax on BSDs.
9445
55da5ee3
DN
9446 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
9447 * s/aix4-2.h (ORDINARY_LINK): ... here.
9448
c0282183
AS
94492010-03-21 Andreas Schwab <schwab@linux-m68k.org>
9450
82c3d67a
AS
9451 * Makefile.in (abs_builddir): Define.
9452 (bootstrap_exe): Use it.
9453 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 9454
3613edce
SM
94552010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9456
9457 * Makefile.in (bootstrap_exe): Use an absolute name.
9458
7f110ddc
DN
94592010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9460
22e87574
DN
9461 Remove support for old GNU/Linux using libc version 5.
9462 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
9463 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
9464
05a670e6
DN
9465 Consolidate redundant definitions in s/bsd-common.h.
9466 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9467 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9468 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
9469 doing it in all files that include this one.
9470 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9471 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9472 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9473 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9474 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9475 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9476 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9477 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9478 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9479
2968f561
DN
9480 Consolidate redundant definitions.
9481 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
9482 it's undefined in all files that include this one.
9483 (POSIX_SIGNALS): Define here instead of doing it in all files that
9484 include this one.
9485 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9486 (POSIX_SIGNALS): Do not define.
9487 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9488 (POSIX_SIGNALS): Do not define.
9489 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9490 (POSIX_SIGNALS): Do not define.
9491
15d25dc0
DN
9492 Remove support for old UNIX System V systems.
9493 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
9494 * s/usg-5-4-2.h: Remove.
9495
07e339e4
DN
9496 Remove support for Solaris on PPC and for old versions.
9497 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
9498 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
9499 that cancel each other.
9500 * s/sol2-3.h:
9501 * s/sol2-4.h:
9502 * s/sol2-5.h: Remove.
9503 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
9504 (NO_REMAP): Remove, unused.
9505 (UNEXEC): Move definition ...
9506 * s/aix4-2.h (UNEXEC): ... here.
9507
7f110ddc
DN
9508 * s/openbsd.h: Remove support for non-ELF and for systems that do
9509 not support shared libraries.
9510 * s/netbsd.h:
9511 * s/freebsd.h: Likewise.
9512
605f35cd
DN
95132010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9514
9515 Remove non-working support for lynxos 3.0.
9516 * s/lynxos.h: Remove file.
9517
9518 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
9519 COFF_BSD_SYMBOLS, nothing defines it anymore.
9520
aed71cf4
DN
95212010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9522
9523 Remove obsolete uses of HAVE_SHM.
9524 * emacs.c (standard_args):
9525 (Fdump_emacs):
9526 (syms_of_emacs): Remove code depending on HAVE_SHM.
9527
9528 * alloc.c: Remove HAVE_SHM dependent definition.
9529
9530 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
9531
aded53ff
GM
95322010-03-18 Glenn Morris <rgm@gnu.org>
9533
17284745
GM
9534 * emacs.c (USAGE4): Hard-code bug address.
9535 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
9536 (bug_reporting_address): Remove.
9537 (main): Don't call bug_reporting_address.
9538
aded53ff
GM
9539 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
9540 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
9541
303500aa
CY
95422010-03-15 Chong Yidong <cyd@stupidchicken.com>
9543
9544 * xfns.c (Fx_create_frame):
9545 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
9546 on left.
9547
cef3058f
CY
95482010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
9549
9550 * editfns.c (Fformat): Account for string precision when computing
9551 field width (Bug#5710).
9552
a647d59d
CY
95532010-03-12 Chong Yidong <cyd@stupidchicken.com>
9554
4fa42018
CY
9555 * xfns.c (Fx_create_frame): Set default to Qright.
9556
a647d59d
CY
9557 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
9558 all window systems.
9559
6da23aaa
EZ
95602010-03-12 Eli Zaretskii <eliz@gnu.org>
9561
a96f6398 9562 These changes remove termcap.c from the build on Posix platforms.
83d02def 9563 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
9564 (MSDOS_OBJ): ...to here.
9565 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
9566 now identical to when LIBS_TERMCAP is defined.
9567
9568 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
9569
9570 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
9571
a96f6398 9572 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 9573
288f9fc0
CY
95742010-03-10 Chong Yidong <cyd@stupidchicken.com>
9575
9576 * Branch for 23.2.
9577
d48cd3f4
SM
95782010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9579
9580 Cleanup setup of gl_state in various parts of the code.
9581 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
9582 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
9583 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
9584 (skip_chars):
9585 * regex.c (regex_compile): Use it.
9586 (re_compile_pattern): Don't set gl_state.current_syntax_table since
9587 it's now set in regex_compile when/if we need it.
9588
618db430
SM
95892010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
9590
c0335e02
SM
9591 Make it possible to C-g in a tight bytecode loop again (bug#5680).
9592 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
9593 (QUIT): Use it to consolidate code and remove redundancy.
9594 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
9595
254c06a8
SM
9596 * regex.c (regex_compile): Setup gl_state as well.
9597
618db430
SM
9598 * syntax.c (skip_chars): Setup gl_state (bug#3823).
9599 (in_classes): Use CONSP before XCAR/XCDR.
9600
233f0c9f
CY
96012010-03-03 Chong Yidong <cyd@stupidchicken.com>
9602
9603 * keymap.c (Fwhere_is_internal): Use Fequal to compare
9604 definitions, so that keyboard macros are correctly handled
9605 (Bug#5481).
9606
75f80e63
EZ
96072010-03-02 Eli Zaretskii <eliz@gnu.org>
9608
9609 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
9610 text that could be relocated inside the call to emacs_mule_char.
9611 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
9612 (CODING_DECODE_CHAR): Add a comment describing its purpose.
9613
dcfb9bc4
KH
96142010-03-02 Kenichi Handa <handa@m17n.org>
9615
fc9a17bc
KH
9616 * character.c (parse_str_as_multibyte): Fix handling of the
9617 multibyte form of raw-bytes.
9618 (str_as_multibyte): Likewise.
9619
dcfb9bc4
KH
9620 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
9621 form of raw-bytes.
9622
412c01b6
CY
96232010-02-28 Chong Yidong <cyd@stupidchicken.com>
9624
9625 * charset.c (load_charset_map_from_file)
9626 (load_charset_map_from_vector): Zero out allocated
9627 charset_map_entries before using them.
9628
df7e1ea0
AS
96292010-02-27 Andreas Schwab <schwab@linux-m68k.org>
9630
9631 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
9632
fe69a722
CY
96332010-02-27 Chong Yidong <cyd@stupidchicken.com>
9634
4ed28cf4
CY
9635 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
9636 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 9637
7379cfce
KH
96382010-02-26 Kenichi Handa <handa@m17n.org>
9639
f88cc4d6
KH
9640 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
9641
7379cfce
KH
9642 * xdisp.c (reseat_to_string): Fix previous change.
9643
cf2fdcfb
CY
96442010-02-26 David Reitter <david.reitter@gmail.com>
9645
9646 * nsfont.m (nsfont_draw): ns_antialias_text should be a
9647 Lisp_Object (Bug#4736).
9648
cc6c7c75
KH
96492010-02-25 Kenichi Handa <handa@m17n.org>
9650
9651 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
9652
32e737d7
JD
96532010-02-24 Jan Djärv <jan.h.d@swipnet.se>
9654
9655 * xterm.c (XTflash): Move declarations before statements.
9656
9657 * gtkutil.c (xg_get_gdk_display): Remove (unused).
9658 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
9659 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
9660 (xg_create_tool_bar): Remove unused variables.
9661 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 9662 (xg_create_frame_widgets): Remove variable grav.
32e737d7 9663
676cae9f
CY
96642010-02-21 Chong Yidong <cyd@stupidchicken.com>
9665
9666 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
9667
886cc2b8
SM
96682010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9669
9670 * term.c (fatal): Add a final \n if needed (bug#5596).
9671
ddb2d8e2
CY
96722010-02-18 Chong Yidong <cyd@stupidchicken.com>
9673
9674 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
9675
2a4f8d3d
GM
96762010-02-18 Glenn Morris <rgm@gnu.org>
9677
9678 * callint.c (Finteractive): Doc fix.
9679
ebaf11b6
KH
96802010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
9681
886cc2b8
SM
9682 * coding.c (record_conversion_result):
9683 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
9684 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
9685 memory allocation error.
9686
d0396581
KH
96872010-02-17 Kenichi Handa <handa@m17n.org>
9688
886cc2b8
SM
9689 * coding.c (decode_coding_ccl): Don't setup ccl program here.
9690 Fix for the case that the output buffer is fullfilled.
d0396581
KH
9691 (decode_coding): Setup ccl program here. Keep looping when the
9692 decoder stopped because the output buffer is
9693 fullfilled (bug#5534).
9694
9695 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
9696
98599f74
JD
96972010-02-13 Jan Djärv <jan.h.d@swipnet.se>
9698
471e4f04 9699 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 9700 bug #5571.
886cc2b8 9701 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 9702 overdrawn.
98599f74 9703
182659ae
JD
97042010-02-10 Jan Djärv <jan.h.d@swipnet.se>
9705
9706 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
9707 doing_interact here.
9708 (ice_connection_closed): New function.
9709 (x_session_check_input, smc_die_CB, ice_io_error_handler)
9710 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
9711 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
9712 returns I/O error.
9713 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
9714 bug #5512.
9715
9be32c4e 97162010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
9717
9718 * nsfont.m (nsfont_open): The system's value for the font descent
9719 is negative, so round it down to avoid clipping.
9720
a2f3eb19
CY
97212010-02-06 Chong Yidong <cyd@stupidchicken.com>
9722
9723 * charset.c (load_charset_map_from_file)
9724 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 9725 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 9726
3088147c
CY
97272010-02-05 Chong Yidong <cyd@stupidchicken.com>
9728
9729 * charset.c (load_charset_map_from_file): Allocate large
9730 charset_map_entries structure on the heap rather than the stack.
9731 (Bug#5526).
9732
b57d9029
KH
97332010-01-31 Kenichi Handa <handa@m17n.org>
9734
9735 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 9736 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 9737
c67d885b
CY
97382010-01-31 Chong Yidong <cyd@stupidchicken.com>
9739
9740 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
9741 <deactivated@gmail.com> (Bug#3605).
9742
8fab2362
CY
97432010-01-31 David De La Harpe Golden <david@harpegolden.net>
9744
9745 * fileio.c (Frename_file): Correctly rename symlinks to
9746 directories (Bug#5496).
9747
cb2a62f2
CY
97482010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
9749
9750 * nsterm.m (ns_ring_bell): Handle visible bell like X.
9751
944c7a26
AS
97522010-01-30 Andreas Schwab <schwab@linux-m68k.org>
9753
9754 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
9755
c024ac08
CY
97562010-01-29 Chong Yidong <cyd@stupidchicken.com>
9757
9758 * frame.c (DEFAULT_ROWS): Change default to 35.
9759
9760 * xfns.c (x_default_font_parameter): Change default XFT font to
9761 monospace-10 (Bug#3643).
9762
af93af83
EZ
97632010-01-29 Eli Zaretskii <eliz@gnu.org>
9764
9765 * w32inevt.c (key_event): Remove unnecessary comparison of
9766 event->uChar.AsciiChar with 128.
9767
ca0eb708
CY
97682010-01-28 Chong Yidong <cyd@stupidchicken.com>
9769
b242dbfc
CY
9770 * fileio.c (Frename_file): Fix last change (Bug#5487).
9771
ca0eb708
CY
9772 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
9773
9774 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
9775
45d45af5
JD
97762010-01-28 Jan Djärv <jan.h.d@swipnet.se>
9777
9778 * xfns.c (Fx_create_frame): Remove window size matching code from
9779 2010-01-15.
a73f9c9d 9780 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 9781
7e233730
JR
97822010-01-27 Jason Rumney <jasonr@gnu.org>
9783
9784 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 9785 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 9786
86e893e3
KH
97872010-01-27 Kenichi Handa <handa@m17n.org>
9788
9789 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 9790 pattern string (Bug#4209).
86e893e3 9791
8719abec
CY
97922010-01-27 David De La Harpe Golden <david@harpegolden.net>
9793
9794 * fileio.c (Frename_file): Call copy-directory and
9795 delete-directory for directories, in order to handle cross-device
9796 renaming (Bug#3353).
9797
844794c8
JD
97982010-01-25 Jan Djärv <jan.h.d@swipnet.se>
9799
aa3e13b5 9800 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 9801 sizes 24 and 10. Bug #3643.
844794c8 9802
bd4b5750
SM
98032010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
9804
8dc1adf6 9805 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
9806 * keymap.c (shadow_lookup): Add `remap' arg.
9807 (describe_map, describe_vector): Update calls to shadow_lookup.
9808 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
9809 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
9810 perform remapping during shadow_lookup check of remapped_sequences.
9811
285d07e2
CY
98122010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
9813
9814 * image.c (png_load): Use png_sig_cmp instead of the obsolete
9815 png_check_sig, which has been removed in libpng 1.4.
9816
c6d09b8d
CY
98172010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9818
9819 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
9820 lacks this header file).
9821
3d782998
YM
98222010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9823
9824 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
9825 as in Emacs 22.
9826
2aff7c53
YM
98272010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9828
9829 * lisp.h (make_pure_string): String pointer arg now points to const.
9830
9831 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
9832 args now point to const.
9833
74327f7a
EZ
98342010-01-22 Eli Zaretskii <eliz@gnu.org>
9835
9836 * lread.c (Fload): Don't treat files without .elc extension as
9837 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
9838 them. (bug#5303)
9839
4d1e6632
KH
98402010-01-20 Kenichi Handa <handa@m17n.org>
9841
9842 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
9843 treat the source as actual byte sequence.
9844
1fdede8f
AM
98452010-01-19 Alan Mackenzie <acm@muc.de>
9846
9847 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 9848 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
9849 `signal_after_change_p' to `coherent_change_p', and make the
9850 invocation of `modify_region' conditional on it.
9851
67477f30
JD
98522010-01-19 Jan Djärv <jan.h.d@swipnet.se>
9853
9854 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
9855 for debug purpose.
9856 (syms_of_xsettings): Declare xft-settings.
9857
244b023e
CY
98582010-01-18 Chong Yidong <cyd@stupidchicken.com>
9859
9860 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
9861
617364fe
CY
98622010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9863
9864 * xterm.c (event_handler_gdk): Block input (Bug#5037).
9865
4fe22cdf
CY
98662010-01-16 Chong Yidong <cyd@stupidchicken.com>
9867
9868 * emacs.c (standard_args): Adjust arg priorities to reflect how
9869 they are processed in startup.el.
9870
e118d2be
AS
98712010-01-16 Andreas Schwab <schwab@linux-m68k.org>
9872
9873 * Makefile.in (lisp, shortlisp): Update.
9874
523ae620
SM
98752010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9876
9877 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
9878 code, link the new kboard into all_kboard before running Lisp code,
9879 and protect the new terminal with GCPRO (Bug#5365).
9880 (x_term_init): Remove unused var `atom'.
9881 (x_delete_display, x_delete_terminal): Remove unused var `i'.
9882
f0d13888
JD
98832010-01-15 Jan Djärv <jan.h.d@swipnet.se>
9884
9885 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
9886 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
9887 to find out usable size of the desktop. Don't make frames larger than
ac146f82 9888 this. Bug #3643.
f0d13888 9889
cc320f07
KH
98902010-01-15 Kenichi Handa <handa@m17n.org>
9891
9892 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
9893
7ffdf101
CY
98942010-01-15 Chong Yidong <cyd@stupidchicken.com>
9895
9896 * nsterm.m (Qnone): Define.
9897
9898 * nsfns.m (Qnone): Move definition to nsterm.m.
9899
d12bd917
KH
99002010-01-14 Kenichi Handa <handa@m17n.org>
9901
9902 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
9903 systems.
9904
d9a7c140
KH
99052010-01-14 Kenichi Handa <handa@m17n.org>
9906
9907 Make auto-composition work on all buffers even if they are
9908 fundamental mode.
9909
9910 * composite.c (Vauto_composition_mode): New variable.
9911 (composition_compute_stop_pos): Check Vauto_composition_mode
9912 instead of Vauto_composition_function.
9913 (composition_adjust_point, Ffind_composition_internal): Likewise.
9914 (syms_of_composite): Declare Lisp variable
9915 "auto-composition-mode" here.
9916
63286bb2
CY
99172010-01-13 Chong Yidong <cyd@stupidchicken.com>
9918
9919 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
9920 during call to vendor-specific-keysyms (Bug#5365).
9921
c2623ee7
YM
99222010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9923
9924 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9925 Call SIGNAL_THREAD_CHECK (Bug#5333).
9926
9927 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
9928 Call SIGNAL_THREAD_CHECK.
9929
0b5397c2
SM
99302010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
9931
9932 Try to fix bug#5314. This is probably not the final word, tho.
9933 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
9934 recent-auto-save-p as a side-effect.
9935 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
9936 * buffer.c (Fkill_buffer, reset_buffer):
9937 * editfns.c (Fsubst_char_in_region):
9938 * fileio.c (Finsert_file_contents, Fdo_auto_save)
9939 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
9940
dc954cb2
KH
99412010-01-13 Kenichi Handa <handa@m17n.org>
9942
9943 Display buffer name, etc. in mode line by composing correctly.
9944
9945 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
9946 STRING is not nil.
0b5397c2 9947 (display_mode_element): Adjust for the change of
dc954cb2
KH
9948 decode_mode_spec and display_line.
9949 (decode_mode_spec): Change arg MULTIBYTE to STRING.
9950 (display_string): Handle the case that STRING is non-null and
9951 LISP_STRING is not nil.
9952
0b5397c2
SM
9953 * xterm.c (x_draw_composite_glyph_string_foreground):
9954 Pay attention to s->face->overstrike.
dc954cb2
KH
9955
9956 * composite.c (composition_reseat_it): Don't check PT if STRING is
9957 non nil.
9958
4a00eaca
YM
99592010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9960
9961 * keyboard.c (read_char): Don't apply previous change when current
9962 buffer is unchanged by command execution.
9963
60abb287
JD
99642010-01-12 Jan Djärv <jan.h.d@swipnet.se>
9965
9966 * keyboard.c (read_char): Return after executing from special map.
9967
893db5bc
GM
99682010-01-12 Glenn Morris <rgm@gnu.org>
9969
9970 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
9971 bug-gnu-emacs rather than emacs-pretest-bug.
9972
4d03ece0
CY
99732010-01-11 Chong Yidong <cyd@stupidchicken.com>
9974
9975 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
9976 initializing the Lisp variables that depend on them.
9977
1df47e38
YM
99782010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9979
9980 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
9981 Clear areas that will not be updated after change of menu bar lines.
9982 Clear the menu bar window's current matrix when the window gets empty.
9983
2f1c6384
CY
99842010-01-09 Chong Yidong <cyd@stupidchicken.com>
9985
e398c61c
CY
9986 * intervals.h, textprop.c (extend_property_ranges): Return value
9987 and args changed. Discard properties that begin at or after the
9988 new end (Bug#5306).
9989
9990 * editfns.c (Fformat): Caller changed.
9991
e5a29a10
CY
9992 * nsterm.m (ns_set_default_prefs): Delete function.
9993 (syms_of_nsterm): Initialize ns_command_modifier,
9994 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
9995 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
9996
2f1c6384
CY
9997 * xdisp.c (pos_visible_p): Check for invisible text at the correct
9998 position (Bug#4040).
9999
d427a9fa
EZ
100002010-01-09 Eli Zaretskii <eliz@gnu.org>
10001
10002 * editfns.c (Ffloat_time): Doc fix.
10003
21b9df2f
JD
100042010-01-09 Jan Djärv <jan.h.d@swipnet.se>
10005
10006 * xfns.c (Fx_create_frame): Don't create frame larger than display
10007 by default bug#3643.
10008
4b00d3b1
YM
100092010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10010
10011 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
10012 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
10013 windows above internal border.
10014
10015 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
10016 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
10017 windows above internal border.
10018
10019 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
10020 tool bar windows specially.
10021
10022 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
10023
10024 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
10025 specially.
10026 (XTflash): Take account of menu bar height.
10027
10028 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
10029 specially.
10030
5075d853
JD
100312010-01-08 Jan Djärv <jan.h.d@swipnet.se>
10032
ac146f82 10033 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
10034 also be true before we can return early (bug #5339).
10035
474217c8
CY
100362010-01-06 David Reitter <david.reitter@gmail.com>
10037
10038 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
10039 (Fns_display_usable_bounds): Rewrite, computing bounds properly
10040 (Bug#3233).
10041
c0e6d47d
JD
100422010-01-06 Jan Djärv <jan.h.d@swipnet.se>
10043
d0cf45b7
JD
10044 * font.c (font_open_entity): Enable chache and call cached_font_ok
10045 for the driver if defined.
10046 (QCuser_spec): New symbol.
10047 (font_spec_from_name): Save name as user-spec.
10048 (font_load_for_lface): Keep user-spec instead of name.
10049 (font_open_by_name): Save name as user-spec.
10050 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 10051 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
10052
10053 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
10054 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
10055 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
10056
10057 * font.h (struct font_driver): Add cached_font_ok.
10058
c0e6d47d
JD
10059 * xterm.c (x_clear_frame): Queue draw for scroll bars.
10060
7c583cd8
JD
100612010-01-05 Jan Djärv <jan.h.d@swipnet.se>
10062
10063 * xterm.c (x_new_font): Move code for setting rows/cols before
10064 resizing ...
ac146f82 10065 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
10066
10067 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
10068 (xg_frame_resized, xg_frame_set_char_size):
10069 Call xg_clear_under_internal_border.
7c583cd8 10070 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 10071
03f77f0a
CY
100722010-01-05 Chong Yidong <cyd@stupidchicken.com>
10073
10074 * keyboard.c (read_key_sequence): Catch keyboard switch after
10075 making a new tty frame (Bug#5095).
10076
2a1ef5be
KH
100772010-01-05 Kenichi Handa <handa@m17n.org>
10078
10079 * fontset.c (fontset_find_font): Fix getting the frame pointer.
10080
e3eb1dae
SM
100812010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
10082
10083 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
10084 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
10085 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
10086
777013f2
MA
100872010-01-03 Michael Albinus <michael.albinus@gmx.de>
10088
10089 * dbusbind.c (xd_add_watch): Improve debug message.
10090 (xd_remove_watch): Improve debug message. If DATA is the session
10091 bus, unset D-Bus session environment.
10092 (Fdbus_init_bus): Pass the bus as argument to
10093 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 10094
8932b1c2
CY
100952010-01-01 Chong Yidong <cyd@stupidchicken.com>
10096
87231e2c
CY
10097 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
10098
4801c5fa
CY
10099 * lread.c (syms_of_lread): Make it clearer that these are the
10100 names of loaded files (Bug#5068).
10101
8932b1c2
CY
10102 * eval.c (run_hook_with_args): Handle the case where the global
10103 value has the obsolete single-function form (Bug#5026).
10104
11e3c684
CY
101052009-12-27 Chong Yidong <cyd@stupidchicken.com>
10106
10107 * minibuf.c (Fall_completions): Minor optimization.
10108
5b28ce35
EZ
101092009-12-26 Eli Zaretskii <eliz@gnu.org>
10110
5ce6e4f4
JB
10111 * .gdbinit (pgx): Fix display of composite glyphs.
10112 Display cmp.from and cmp.to as well.
10113 (pitx): Fix last change.
5b28ce35 10114
bcffff46
KH
101152009-12-25 Kenichi Handa <handa@m17n.org>
10116
10117 * composite.h (composition_adjust_point): Update prototype.
10118
10119 * composite.c (composition_reseat_it): Don't make a composition
10120 spanning over point.
10121 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
10122 composable characters.
10123 (composition_adjust_point): New arg NEW_PT. Callers changed.
10124
10125 * keyboard.c (command_loop_1): Force redisplay if the last point
10126 was within a composition.
10127 (adjust_point_for_property): Don't adjust point for automatic
10128 composition when called after buffer modification.
10129
3f670e9a
EZ
101302009-12-19 Eli Zaretskii <eliz@gnu.org>
10131
5ce6e4f4
JB
10132 * .gdbinit (pitx): Don't use enum names, use their values.
10133 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
10134 (pgx): Don't use enum names, use their values.
10135 (pitmethod): New helper command.
10136 (pitx): Use it to display iteration method.
10137 (pgrowit): New command.
10138
ad903955
EZ
10139 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
10140
3f670e9a
EZ
10141 Update dependencies in Makefile.in.
10142
10143 * Makefile.in (alloc.o): Depend on termhooks.h.
10144 (atimer.o): Depend on blockinput.h.
10145 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
10146 and frame.h.
10147 (callint.o): Depend on systime.h, coding.h, and composite.h.
10148 (callproc.o): Depend on buffer.h.
10149 (casefiddle.o): Don't depend on charset.h.
10150 (casetab.o): Depend on character.h.
10151 (ccl.o): Depend on composite.h.
10152 (chartab.o): Depend on ccl.h.
10153 (cm.o): Depend on dispextern.h.
10154 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
10155 (coding.o): Don't depend on $(INTERVALS_H).
10156 (composite.o): Don't depend on dispextern.h explicitly (it's in
10157 $(INTERVALS_H)). Depend on ccl.h.
10158 (data.o): Depend on systime.h, coding.h, composite.h,
10159 dispextern.h, font.h, and ccl.h.
10160 (dired.o): Depend on composite.h.
10161 (dispnew.o): Depend on coding.h. Don't depend explicitly on
10162 composite.h (it's in $(INTERVALS_H)).
10163 (doc.o): Depend on systime.h, coding.h, and composite.h.
10164 (editfns.o): Don't depend explicitly on dispextern.h.
10165 (emacs.o): Depend on frame.h and coding.h.
10166 (eval.o): Depend on coding.h, composite.h, and xterm.h.
10167 (fileio.o): Depend on frame.h and commands.h. Don't depend
10168 explicitly on dispextern.h.
10169 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
10170 composite.h.
10171 (fns.o): Don't depend on termhooks.h.
10172 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
10173 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
10174 coding.h, $(INTERVALS_H), window.h, xterm.h.
10175 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
10176 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
10177 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
10178 fontset.h, ccl.h, and ftfont.h.
10179 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
10180 (gtkutil.o): Depend on dispextern.h and composite.h.
10181 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
10182 termhooks.h, and ccl.h.
10183 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
10184 (intervals.o): Depend on systime.h and coding.h.
10185 (keyboard.o): Depend on composite.h and coding.h.
10186 (keymap.o): Depend on coding.h and frame.h.
10187 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
10188 (macros.o): Depend on systime.h, coding.h, and composite.h.
10189 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
10190 and atimer.h.
10191 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
10192 dispextern.h explicitly.
0b5397c2
SM
10193 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
10194 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
10195 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
10196 (regex.o): Don't depend on charset.h.
10197 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
10198 (search.o): Don't depend explicitly on composite.h.
10199 (sound.o): Depend on atimer.h and systime.h.
10200 (syntax.o): Don't depend explicitly on composite.h.
10201 (sysdep.o): Depend on coding.h and composite.h.
10202 (term.o): Depend on xterm.h and buffer.h.
10203 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
10204 (textprop.o): Don't depend on dispextern.h explicitly.
10205 (undo.o): Depend on dispextern.h.
10206 (window.o): Depend on coding.h and termhooks.h. Don't depend on
10207 dispextern.h and composite.h explicitly.
10208 (xdisp.o): Depend on ccl.h.
10209 (xfaces.o): Depend on coding.h and ccl.h.
10210 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
10211 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
10212 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
10213 ftfont.h.
10214 (xgselect.o): New dependency.
10215 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
10216 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
10217 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
10218 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
10219 (xsmfns.o): Depend on frame.h and dispextern.h.
10220 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
10221 sysselect.h.
10222
7a6f7fea
AS
102232009-12-19 Andreas Schwab <schwab@linux-m68k.org>
10224
10225 * font.c (Fclear_font_cache): Pass correct cache argument to
10226 font_clear_cache.
10227
f4c21026
AS
102282009-12-16 Andreas Schwab <schwab@linux-m68k.org>
10229
10230 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
10231 twice.
10232
f7ab0997
CY
102332009-12-15 Chong Yidong <cyd@stupidchicken.com>
10234
10235 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
10236 calling file-remote-p. Reported by Jim Meyering.
10237
fa8e045a
MA
102382009-12-15 Michael Albinus <michael.albinus@gmx.de>
10239
10240 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 10241 avoid compiler warnings. (Bug #5217)
fa8e045a 10242
a63dba42
KH
102432009-12-14 Kenichi Handa <handa@m17n.org>
10244
10245 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
10246 in 8-bit encoding.
10247
5ce6e4f4 102482009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
10249
10250 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
10251 tooltip windows.
10252
223e5fc6
JD
102532009-12-13 Jan Djärv <jan.h.d@swipnet.se>
10254
36acb2a7
JD
10255 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
10256 Xatom_net_window_type.
10257
10258 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
10259 Xatom_net_window_type.
10260
b8f00677
JD
10261 * xterm.c (my_log_handler): New function.
10262 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 10263 so we can filter out buggy messages. (Bug #5120).
b8f00677 10264
e5f0bc9a
JD
10265 * xterm.c (xg_scroll_callback): Parameter list changed,
10266 use parameter GtkScrollType to determine scroll/line/page.
10267 Only allow dragging if a button < 4 is grabbed (bug #5177).
10268 (xg_end_scroll_callback): New function.
10269 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
10270 xg_create_scroll_bar.
10271
10272 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
10273 (scroll_end_callback): Remove.
10274 (xg_create_scroll_bar): Add parameter end_callback, bind it to
10275 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 10276 bug #5177.
e5f0bc9a
JD
10277 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
10278 bug #5177.
10279
10280 * gtkutil.h (XG_LAST_SB_DATA): Remove.
10281 (xg_create_scroll_bar): Add GCallback end_callback.
10282
223e5fc6
JD
10283 * xftfont.c (QClcdfilter): New variable.
10284 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
10285 (syms_of_xftfont): Initialize QClcdfilter.
10286
3c055b77
JD
102872009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10288
10289 * xsettings.c (struct xsettings): Add member seen.
10290 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 10291 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
10292 (apply_xft_settings): Only update Xft settings with what member seen
10293 indicates as new.
10294
05fe33ff
EZ
102952009-12-12 Eli Zaretskii <eliz@gnu.org>
10296
c4cc8b9a 10297 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
10298 (struct glyph): Use EMACS_INT for charpos.
10299 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
10300 region_beg_charpos, region_end_charpos,
10301 redisplay_end_trigger_charpos, and also for
10302 iterator_stack_entry.end_charpos and
10303 iterator_stack_entry.stop_charpos.
10304
e8d7886a
JD
103052009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10306
5ce6e4f4 10307 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
10308 (xg_create_scroll_bar): Call scroll_end_callback on button release
10309 event (bug #5177).
10310 (xg_event_is_for_scrollbar): != replaced with ==.
10311
d0db2ec8
KH
103122009-12-12 Kenichi Handa <handa@m17n.org>
10313
10314 * ftfont.c (struct ftfont_info): New member matrix.
10315 (ftfont_open): Setup xftfont_info->matrix.
10316 (MFLTFontFT): New member matrix.
10317 (FLOOR, CEIL, ROUND): New macros.
10318 (ftfont_get_metrics): Handle matrix transformation.
10319 (ftfont_shape_by_flt): New arg matrix. Callers changed.
10320
10321 * xftfont.c (struct xftfont_info): New member matrix.
10322 (xftfont_open): Setup xftfont_info->matrix.
10323
103242009-12-10 Kenichi Handa <handa@m17n.org>
10325
10326 * xdisp.c (append_space_for_newline): Consider face-remapping.
10327
2cc7b62f
AS
103282009-12-09 Andreas Schwab <schwab@linux-m68k.org>
10329
b87dd913
AS
10330 * xsettings.c: Include "keyboard.h".
10331
eba5eb94
AS
10332 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
10333
2cc7b62f
AS
10334 Fix implicit function declarations.
10335 * cmds.c: Include "frame.h".
10336 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
10337 * frame.h: Move declaration of delete_frame outside of
10338 HAVE_WINDOW_SYSTEM.
10339
a4ef73c8
CY
103402009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
10341
10342 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
10343
10344 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
10345 GTK builds.
10346
944a300c
AS
103472009-12-07 Andreas Schwab <schwab@linux-m68k.org>
10348
10349 * unexelf.c (unexec): Don't search for .data twice.
10350
022eef62
CY
103512009-12-05 Chong Yidong <cyd@stupidchicken.com>
10352
426ac949
CY
10353 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
10354 if push failed.
10355 (handle_line_prefix): Set avoid_cursor_p here. Check return value
10356 of push_display_prop (Bug#5000).
10357
022eef62
CY
10358 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
10359 value of font_list_entities (Bug#5085).
10360
be95bee9
JB
103612009-12-04 Juanma Barranquero <lekktu@gmail.com>
10362
10363 Fix `string-to-number' to deal consistently with integers and floats.
10364 * lread.c (isfloat_string): New argument ignore_trailing to accept all
10365 trailing characters, not just whitespace.
10366 (read1): Pass new arg 0 to keep old behavior.
10367 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
10368 trailing chars, as it is already done for integers. Doc fixes.
10369 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
10370
24c2d7ce
EZ
103712009-12-04 Eli Zaretskii <eliz@gnu.org>
10372
0b5397c2
SM
10373 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
10374 Delete unused enumeration value.
24c2d7ce 10375
7e694795
EZ
103762009-12-03 Eli Zaretskii <eliz@gnu.org>
10377
10378 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
10379
84b31826
SM
103802009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
10381
10382 * process.c (Fmake_network_process): Fix up the tests for
10383 "connectionless socket", so they DTRT for seqpacket sockets as well.
10384
f00c449b
SM
103852009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
10386
10387 * process.c (Qseqpacket): New symbol.
10388 (HAVE_SEQPACKET): New macro.
10389 (Fmake_network_process): Accept new :type `seqpacket'.
10390 (init_process): Add `seqpacket' feature when applicable.
10391 (syms_of_process): Initialize Qseqpacket.
10392
8096a0ff
YM
103932009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10394
10395 * font.c (font_load_for_lface, font_open_by_name): Don't store name
10396 if entity is Qnil.
10397
3e0de07f
SM
103982009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
10399
10400 * print.c (print_preprocess): Preprocess the key_and_value table of
10401 hashtables, even tho they're "hidden" (bug#5082).
10402
abeafb2a
JD
104032009-11-29 Jan Djärv <jan.h.d@swipnet.se>
10404
10405 * frame.c (frame_make_pointer_invisible)
10406 (frame_make_pointer_visible): Declare f before statements.
10407
4bf47195
EZ
104082009-11-28 Eli Zaretskii <eliz@gnu.org>
10409
10410 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
10411 omitted dependencies on lisp.h.
10412
c525b3f2
JD
104132009-11-27 Jan Djärv <jan.h.d@swipnet.se>
10414
ece2d4ed
JD
10415 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
10416 is NULL.
10417
10418 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
10419
10420 * frame.c (frame_make_pointer_invisible)
3e0de07f 10421 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
10422 frame.
10423
c525b3f2
JD
10424 * search.c (simple_search): Remove warning by making *p const.
10425
2f00e299
DN
104262009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
10427
10428 * xdisp.c (power_letter): Remove duplicate const.
10429
084b049b
JD
104302009-11-25 Jan Djärv <jan.h.d@swipnet.se>
10431
a1fadc6f
JD
10432 * term.c (delete_tty): Remove check for last terminal (bug#4970).
10433
5ce6e4f4 10434 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
10435 defaults (bug #5025).
10436
28259cac
SM
104372009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
10438
10439 * insdel.c (adjust_markers_for_delete): Move it in the
10440 right direction! (bug#4803)
10441
e8e14166
YM
104422009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10443
10444 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
10445
10446 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
10447
86677b58
GM
104482009-11-24 Glenn Morris <rgm@gnu.org>
10449
10450 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
10451
581e51e8
JD
104522009-11-23 Jan Djärv <jan.h.d@swipnet.se>
10453
cfc86c7a
JD
10454 * Makefile.in: Must create deps for ecrt0.o in its rule.
10455
581e51e8
JD
10456 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
10457 because that is what Gtk+ font dialog understands.
10458
10459 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
10460 of Fcopy_sequence.
10461 (font_open_by_name): Put name given into QCname for font-object returned.
10462
10463 * frame.c (x_set_font): Save original font name as frame parameter
10464 font-parameter.
10465
10466 * xsettings.c (set_default_xft_settings): New function.
10467 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
10468 is found.
10469
8b264ecb
AS
104702009-11-22 Andreas Schwab <schwab@linux-m68k.org>
10471
10472 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
10473 searching backwards through multibyte buffer.
10474
872870b2
JD
104752009-11-21 Jan Djärv <jan.h.d@swipnet.se>
10476
10477 * xterm.c: #include xgselect.h.
10478 (x_initialize): Call xgselect_initialize.
10479
10480 * xsettings.c (something_changedCB): C++ comments => C comments.
10481 (init_gconf): Do not deal with any GLib file descriptors, xg_select
10482 does that now.
10483
10484 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
10485 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
10486 (scroll_bar_button_cb): Remove.
5ce6e4f4 10487 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
10488 event.
10489 (xg_create_scroll_bar): Don't bind button-press-event and
10490 button-release-event.
10491
10492 * process.c: Include xgselect.h if defined (USE_GTK) ||
10493 defined (HAVE_GCONF).
10494 (wait_reading_process_output): Call xg_select for the same condition.
10495
10496 * xgselect.c (xg_select): New function to better integrate with
10497 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
10498
10499 * xgselect.h: New file, declare xg_select, xgselect_initialize.
10500
10501 * Makefile.in (XOBJ): Add xgselect.o.
10502
62a6e103
AS
105032009-11-21 Andreas Schwab <schwab@linux-m68k.org>
10504
0b5397c2
SM
10505 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
10506 Remove ignored second argument. All callers changed.
62a6e103
AS
10507 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
10508 (RE_STRING_CHAR_AND_LENGTH): Likewise.
10509 * xdisp.c (string_char_and_length): Likewise.
10510
b0ca0f33
DN
105112009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
10512
10513 * xterm.c (x_new_font):
10514 * print.c (print_object):
10515 * cmds.c (Fself_insert_command): Move declarations before statements.
10516
dd5a6279
CY
105172009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
10518
10519 * s/cygwin.h: Remove unneeded linker flags.
10520
4a8e097d
JD
105212009-11-20 Jan Djärv <jan.h.d@swipnet.se>
10522
0d1d0d26
JD
10523 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
10524
10525 * xsettings.h: Declare xsettings_get_system_font.
10526
10527 * xsettings.c (xsettings_get_system_font): New function.
10528 (init_gconf): No use initiating gconf unless we have Xft also.
10529 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
10530 HAVE_GCONF.
10531
4a8e097d
JD
10532 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
10533 add a blank entry so it doesn't collapse into nothing.
10534
8ab1650e
SM
105352009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10536
10537 * lread.c (Funintern): Comment out last change.
10538
82c602f0
RS
105392009-11-19 Richard Stallman <rms@gnu.org>
10540
10541 * lread.c (Funintern): Error if symbol is t or nil.
10542
87e32266
SM
105432009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10544
10545 * insdel.c (make_gap_larger): Don't make as many assumptions about the
10546 representation of Lisp integers.
10547 Reported by MJ Chan <mjchan.inbox@gmail.com>.
10548
1b9ac145
AS
105492009-11-17 Andreas Schwab <schwab@linux-m68k.org>
10550
10551 * lisp.h: Remove declaration of Ffont_get_system_font.
10552 * xfns.c: Move include of "xsettings.h".
10553 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
10554
dfb3c4c6
JD
105552009-11-17 Jan Djärv <jan.h.d@swipnet.se>
10556
87e32266
SM
10557 * xsettings.c (something_changedCB, Ffont_get_system_font):
10558 Check use_system_font.
dfb3c4c6
JD
10559 (syms_of_xsettings): DEFVAR font-use-system-font.
10560
9370c1d8
AS
105612009-11-17 Andreas Schwab <schwab@linux-m68k.org>
10562
25fe851a
AS
10563 * xfns.c (x_default_font_parameter): Remove dead assignment.
10564
9370c1d8
AS
10565 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
10566
637fa988
JD
105672009-11-17 Jan Djärv <jan.h.d@swipnet.se>
10568
87e32266 10569 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 10570 not have FC_LCD_*. #define them if not there.
a6eb20d8 10571
87e32266 10572 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 10573
637fa988
JD
10574 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
10575
10576 * xterm.c (handle_one_xevent): Call xft_settings_event for
10577 ClientMessage, PropertyNotify and DestroyNotify.
10578 (x_term_init): If we have XFT, get DPI from Xft.dpi.
10579 Call xsettings_initialize.
10580
10581 * xftfont.c (xftfont_fix_match): New function.
10582 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
10583 Call xftfont_fix_match after XftFontMatch.
10584
10585 * xfont.c (xfont_driver): Initialize all members.
10586
87e32266
SM
10587 * xfns.c (x_default_font_parameter):
10588 Try font from Ffont_get_system_font.
637fa988
JD
10589 Do not get font from x_default_parameter if we got one from
10590 Ffont_get_system_font.
87e32266 10591 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
10592
10593 * w32font.c (w32font_driver): Initialize all members.
10594
10595 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
10596
10597 * lisp.h: Declare syms_of_xsettings.
10598
87e32266
SM
10599 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
10600 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
10601
10602 * ftfont.c (ftfont_filter_properties): New function.
10603
10604 * frame.c (x_set_font): Remove unused variable lval.
10605
87e32266 10606 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
10607
10608 * font.c (font_put_extra): Don't return if val is nil, it means
10609 boolean option is off.
10610 (font_parse_fcname): Collect all extra properties in extra_props
10611 and call filter_properties for all drivers with extra_props and
10612 font as parameter.
87e32266
SM
10613 (font_open_entity): Do not use cache, it does not pick up new
10614 fontconfig settings like hinting.
637fa988
JD
10615 (font_load_for_lface): If spec had a name in it, store it in entity.
10616
a73f9c9d 10617 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
10618
10619 * config.in: HAVE_GCONF is new.
10620
10621 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
10622 xsettings.o is new.
10623
5a942932
KH
106242009-11-17 Kenichi Handa <handa@m17n.org>
10625
10626 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
10627 back to the default font in case that no suitable font is found.
10628
b7c7a4d1
SM
106292009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
10630
10631 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
10632 Suggested by Chad Brown <yandros@mit.edu>.
10633 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
10634
072f1e39
JD
106352009-11-16 Jan Djärv <jan.h.d@swipnet.se>
10636
10637 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
10638
5d1e70a2
AS
106392009-11-14 Andreas Schwab <schwab@linux-m68k.org>
10640
87e32266 10641 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 10642
a53cfbe5
JD
106432009-11-14 Jan Djärv <jan.h.d@swipnet.se>
10644
473a99b7
JD
10645 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
10646 has a parent.
10647
a53cfbe5 10648 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 10649 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
10650
10651 * config.in: Generated (AUTO_DEPEND).
10652
f04bb9b2
MA
106532009-11-13 Michael Albinus <michael.albinus@gmx.de>
10654
b7c7a4d1 10655 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
10656 Vdbus_registered_functions_table, because it contains also
10657 properties. Fix docstring.
b7c7a4d1 10658 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 10659
8f11f7ec
SM
106602009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
10661
10662 * alloc.c (mark_object): Don't reprocess marked strings.
10663 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
10664 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
10665
8a605fe8
KH
106662009-11-13 Kenichi Handa <handa@m17n.org>
10667
8f11f7ec 10668 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
10669 semantics of Vword_combining_categories.
10670 (Vword_combining_categories): Describe the slight change of the
10671 semantics.
10672
241c4680
EZ
106732009-11-13 Eli Zaretskii <eliz@gnu.org>
10674
10675 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
10676
10677 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
10678
5d58e44c
SM
106792009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
10680
10681 * xdisp.c (syms_of_xdisp): Fix typo in last change.
10682
5e13f9d3
JB
106832009-11-12 Juanma Barranquero <lekktu@gmail.com>
10684
10685 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
10686
cf54c754
DR
106872009-11-11 David Reitter <david.reitter@gmail.com>
10688
10689 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
10690 variables to fix 2009-11-09 change.
10691
a4ada374
DN
106922009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
10693
91433552
DN
10694 * process.c (ifflag_def): Make flag_sym constant.
10695 (Fnetwork_interface_info): Use a constant pointer.
10696 (ifflag_table):
10697 * xfns.c (cursor_bits):
10698 * xdisp.c (power_letter):
10699 * termcap.c (speeds, esctab):
10700 * sysdep.c (baud_convert):
10701 * keyboard.c (lispy_accent_codes, modifier_names):
10702 * image.c (xbm_format, xpm_format, pbm_format, png_format)
10703 (jpeg_format, tiff_format, gif_format, svg_format)
10704 (interlace_start, interlace_increment, gs_format):
10705 * gtkutil.c (separator_names):
10706 * fringe.c (swap_nibble):
10707 * fns.c (base64_value_to_char, base64_char_to_value):
10708 * fileio.c (make_temp_name_tbl):
10709 * coding.c (suffixes): Make constant.
10710
f4265f6c
DN
10711 * frame.c (make_initial_frame):
10712 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
10713 build_string.
10714 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
10715
04420943
DN
10716 * s/freebsd.h:
10717 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
10718
0a5d24ae
DN
10719 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
10720 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
10721
a4ada374
DN
10722 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
10723 * xterm.c (syms_of_xterm):
10724 * xfaces.c (syms_of_xfaces):
10725 * xdisp.c (syms_of_xdisp):
10726 * lread.c (syms_of_lread):
10727 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
10728 build_string.
91433552 10729
a4ada374
DN
10730 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
10731
af98fc7f
SM
107322009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10733
8ab1650e 10734 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 10735
e90292a9
JD
107362009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10737
10738 * keyboard.h: Declare timer_check.
10739
10740 * keyboard.c (timer_check_2): New function that does what the old
10741 timer_check did.
10742 (timer_check): Call timer_check_2 until -1 or a non-zero time is
10743 returned, i.e. don't return -1 with timers pending.
10744
10745 * process.c: Remove extern declaration of timer_check.
10746
10747 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
10748 even if timer_check returned -1.
10749
af98fc7f
SM
10750 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
10751 xg_dialog_data.
e90292a9
JD
10752 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
10753 the event loop.
10754 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
10755 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
10756 Destroy the dialog after xg_dialog_run.
10757
045b83c0
SM
107582009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10759
10760 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
10761
1fb99a3a
JD
107622009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10763
10764 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
10765
04e452cb
JB
107662009-11-09 Juanma Barranquero <lekktu@gmail.com>
10767
10768 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
10769
ef7417fd
SM
107702009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
10771
10772 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
10773 w32menu.c, and nsmenu.m.
10774 Simplify the obsolete case where position is nil.
10775 (cleanup_popup_menu): New function, moved from nsmenu.m.
10776 (struct skp): Remove slot `notreal'.
10777 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
10778 adjust callers.
10779 (single_menu_item): Adjust call to parse_menu_item.
10780 (syms_of_menu): Defsubr x-popup-menu.
10781 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
10782 (keymap_panes): Don't export any more.
10783 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
10784 (xmenu_show): Declare.
10785 * keyboard.c (parse_menu_item): Remove arg `notreal'.
10786 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
10787 * keyboard.h (parse_menu_item): Update declaration.
10788 * xmenu.c (Fx_popup_menu): Remove.
10789 (syms_of_xmenu): Don't defsubr x-popup-menu.
10790 * w32menu.c (Fx_popup_menu): Remove.
10791 (syms_of_w32menu): Don't defsubr x-popup-menu.
10792 * nsmenu.m (cleanup_popup_menu): Remove.
10793 (ns_menu_show): Rename from ns_popup_menu and remove all the code
10794 moved to menu.c's Fx_popup_menu.
10795 (Fx_popup_menu): Remove.
10796 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
10797 menu_items (it's done in menu.c already).
10798
424d6179
SM
107992009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
10800
10801 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
10802 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
10803
c0df13a6 108042009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
10805
10806 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 10807 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
10808 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
10809 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
10810
2de9f71c
SM
108112009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10812
10813 Let integers use up 2 tags to give them one extra bit and thus double
10814 their range.
10815 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
10816 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
10817 New macros.
10818 (enum Lisp_Type): Use them. Give explicit values.
10819 (Lisp_Type_Limit): Remove.
10820 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
10821 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
10822 Pay attention to USE_2_TAGS_FOR_INTS.
10823 (INTEGERP): Use LISP_INT_TAG_P.
10824 * fns.c (internal_equal): Simplify the default case.
10825 (sxhash): Use case_Lisp_Int.
10826 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
10827 any more.
10828 (Ftype_of): Use case_Lisp_Int.
10829 (store_symval_forwarding): Take into account the fact that Ints can
10830 now have more than one tag.
10831 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 10832 (buffer_slot_type_mismatch):
2de9f71c
SM
10833 * xfaces.c (face_attr_equal_p):
10834 * print.c (print_object):
10835 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
10836 Use case_Lisp_Int.
10837
323637a2
EZ
108382009-11-06 Eli Zaretskii <eliz@gnu.org>
10839
7ac65b38
EZ
10840 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
10841
323637a2
EZ
10842 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
10843 warning.
10844
e511451f
JD
108452009-11-06 Jan Djärv <jan.h.d@swipnet.se>
10846
10847 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
10848
10849 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
10850
10851 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
10852 ButtonPressRelease and MotionNotify (bug#4870).
10853
5e2327cf
DN
108542009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
10855
5adc433e
DN
10856 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
10857
d67b4f80
DN
10858 * xterm.c (syms_of_xterm):
10859 * xselect.c (syms_of_xselect):
10860 * xmenu.c (syms_of_xmenu):
10861 * xfns.c (syms_of_xfns):
10862 * xfaces.c (syms_of_xfaces):
10863 * xdisp.c (syms_of_xdisp):
10864 * window.c (syms_of_window):
10865 * w32fns.c (syms_of_w32fns):
10866 * undo.c (syms_of_undo):
10867 * textprop.c (syms_of_textprop):
10868 * terminal.c (syms_of_terminal):
10869 * syntax.c (syms_of_syntax):
10870 * sound.c (syms_of_sound):
10871 * search.c (syms_of_search):
10872 * print.c (syms_of_print):
10873 * minibuf.c (syms_of_minibuf):
10874 * macros.c (syms_of_macros):
10875 * keymap.c (syms_of_keymap, initial_define_key)
10876 (initial_define_lispy_key):
10877 * keyboard.c (syms_of_keyboard):
10878 * insdel.c (syms_of_insdel):
10879 * image.c (syms_of_image):
10880 * fringe.c (syms_of_fringe):
10881 * frame.c (syms_of_frame):
10882 * fontset.c (syms_of_fontset):
10883 * fns.c (syms_of_fns):
10884 * fns.c (syms_of_fns):
10885 * fileio.c (syms_of_fileio):
10886 * fileio.c (syms_of_fileio):
10887 * eval.c (syms_of_eval):
10888 * doc.c (syms_of_doc):
10889 * dispnew.c (syms_of_display):
10890 * dired.c (syms_of_dired):
10891 * dbusbind.c (syms_of_dbusbind):
10892 * data.c (syms_of_data):
10893 * composite.c (syms_of_composite):
10894 * coding.c (syms_of_coding):
10895 * cmds.c (syms_of_cmds):
10896 * charset.c (define_charset_internal, syms_of_character):
10897 * ccl.c (syms_of_ccl):
10898 * category.c (syms_of_category, init_category_once):
10899 * casetab.c (syms_of_casetab):
10900 * casefiddle.c (syms_of_casefiddle):
10901 * callint.c (syms_of_callint):
10902 * bytecode.c (syms_of_bytecode):
10903 * buffer.c (keys_of_buffer, syms_of_buffer):
10904 * alloc.c (syms_of_alloc):
10905 * process.c (syms_of_process, init_process):
10906 * lread.c (syms_of_lread, init_obarray):
10907 * font.c (build_style_table):
10908 * emacs.c (syms_of_emacs, main): Replace calls to intern with
10909 intern_c_string, calls to make_pure_string with
10910 make_pure_c_string. Use pure_cons instead of Fcons.
10911
5e2327cf
DN
10912 * process.c (socket_options): Make it const.
10913 (set_socket_option, init_process): Use a const pointer.
10914
10915 * lread.c (intern_c_string): New function.
10916 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10917 (defvar_int): Uset it. Make the name const char*.
10918
10919 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10920 (defvar_int): Update prototypes.
10921 (DEFUN, EXFUN): Support for prototypes is now required.
10922 (intern_c_string): New prototype.
10923 (struct Lisp_Subr): Make symbol_name constant.
10924
10925 * font.c (struct table_entry): Remove unused member. Make NAMES
10926 constant.
10927 (weight_table, slant_table, width_table): Make constant.
10928
10929 * emacs.c (struct standard_args): Make name and longname constant.
10930
10931 * character.h (DEFSYM): Use intern_c_string.
10932
a56eaaef
DN
109332009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10934
10935 * alloc.c (make_pure_c_string): New function.
10936
10937 * eval.c (Fautoload): Purecopy all arguments.
10938
f6a07420
KH
109392009-11-05 Kenichi Handa <handa@m17n.org>
10940
10941 * fileio.c (Finsert_file_contents): Be sure set coding-system of
10942 the buffer in case of replace.
10943
5d28d4b1
DN
109442009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
10945
10946 * puresize.h (BASE_PURESIZE): Increase to 1620000.
10947
b349d111
SM
109482009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
10949
d528b1ce
SM
10950 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
10951 when applicable (bug#4851).
10952
b349d111
SM
10953 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
10954 (P_): Support for prototypes is now required.
10955
c38eb027
CY
109562009-10-31 Chong Yidong <cyd@stupidchicken.com>
10957
10958 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
10959 (Bug#4827).
10960
0405f8d9
EZ
109612009-10-30 Eli Zaretskii <eliz@gnu.org>
10962
d528b1ce 10963 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 10964
ca0a881a
DN
109652009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
10966
10967 * puresize.h (BASE_PURESIZE): Increase to 1470000.
10968
d528b1ce
SM
10969 * lread.c (Fload): Purecopy the file name when building
10970 Vpreloaded_file_list.
ca0a881a 10971
47e0e0e4
JR
109722009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
10973
10974 * w32fns.c (syms_of_w32fns): Change default value of
10975 w32-scroll-lock-modifier to nil. (Bug#2827)
10976
057bce6f
JB
109772009-10-26 Juanma Barranquero <lekktu@gmail.com>
10978
782a943e 10979 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 10980
242bc74c
AS
109812009-10-26 Andreas Schwab <schwab@redhat.com>
10982
10983 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
10984
522d013a
JB
109852009-10-26 Juanma Barranquero <lekktu@gmail.com>
10986
10987 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
10988 For delta < 0, skip check that only makes sense when the mini-window
10989 is going to be enlarged. (Bug#4534)
10990
18060980
CY
109912009-10-25 Chong Yidong <cyd@stupidchicken.com>
10992
10993 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
10994 string in menu maps (Bug#4471).
10995
fec8f0fe
CY
109962009-10-24 Chong Yidong <cyd@stupidchicken.com>
10997
10998 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
10999 FRAME_NS_VIEW on terminal frames (Bug#4765).
11000
10d66ec0
AS
110012009-10-24 Andreas Schwab <schwab@linux-m68k.org>
11002
1cae01f7
AS
11003 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
11004 DBUS_TYPE_UINTnn separately to get proper sign extension.
11005
58a12889
AS
11006 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
11007 can properly handle unsigned types.
d528b1ce 11008 (make_uid, make_gid): Remove.
58a12889 11009
987c9327
AS
11010 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
11011 types again.
11012
522d013a 11013 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
11014 (system_process_attributes): Likewise.
11015
905a9ed3
DN
110162009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
11017
11018 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
11019
11020 * eval.c (Fautoload): Purecopy the filename. Simplify.
11021
11022 * category.c (Fdefine_category): Purecopy docstring.
11023
a599b3e8
AS
110242009-10-23 Andreas Schwab <schwab@linux-m68k.org>
11025
7b792fc9
AS
11026 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
11027
a599b3e8
AS
11028 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
11029
b35ac83e
CY
110302009-10-23 Chong Yidong <cyd@stupidchicken.com>
11031
11032 * window.c (Fwindow_edges, Fwindow_pixel_edges)
11033 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
11034 (Bug#4775).
11035
e8903e00
SM
110362009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
11037
11038 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
11039 (init_fileio_once):
11040 * lisp.h (init_fileio_once): Remove.
11041 * emacs.c (main): Don't call init_fileio_once.
11042
8f43cbf3
DN
110432009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
11044
11045 * puresize.h (BASE_PURESIZE): Increase to 1430000.
11046
26898943
AS
110472009-10-21 Andreas Schwab <schwab@linux-m68k.org>
11048
11049 * doprnt.c (doprnt): Fix overflow check.
11050
5c646d5a
JD
110512009-10-21 Jan Djärv <jan.h.d@swipnet.se>
11052
3132a7ea
JD
11053 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
11054
5c646d5a
JD
11055 * xterm.h (x_wait_for_event): Declare it.
11056
11057 * xterm.c (pending_event_wait): New variable.
11058 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
11059 see pending_event_wait.eventtype.
11060 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
11061 (x_new_font): Call change_frame_size with new rows/columns before we
11062 try to resize the frame.
5c646d5a 11063 (x_wait_for_event): New function.
d528b1ce
SM
11064 (x_set_window_size_1): Don't change gravity unless change_gravity
11065 is set.
5c646d5a
JD
11066 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
11067 don't change frame size, instead wait for the ConfigureNotify.
11068 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
11069 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
11070 (x_initialize): Initialize pending_event_wait.
11071
11072 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
11073 size.
11074
11075 * widget.c (EmacsFrameSetValues): Add comment.
11076 (EmacsFrameSetCharSize): Just call x_set_window_size.
11077
11078 * gtkutil.c (xg_frame_set_char_size): Flush events and call
11079 x_wait_for_event.
d528b1ce 11080 (flush_and_sync): Remove again.
5c646d5a
JD
11081 (xg_get_font_name): Suggest monospace if no previous font is known.
11082
e9c1637d
SM
110832009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
11084
11085 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 11086 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 11087
5a72cccb
YM
110882009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11089
11090 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
11091 processing pending events when event is filtered for input method.
ab04798f 11092 (Bug#3681)
5a72cccb 11093
2629aa37
JB
110942009-10-20 Juanma Barranquero <lekktu@gmail.com>
11095
11096 * fns.c: Add #endif accidentally removed in previous change.
11097
c3417a74
DN
110982009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11099
11100 * fns.c: Remove code for unsupported system: MAC_OS.
11101 * image.c: Likewise. Include setjmp.h.
11102
9685cef2
JD
111032009-10-19 Jan Djärv <jan.h.d@swipnet.se>
11104
11105 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
11106 pixel -1 (bug #4742).
11107
d7306fe6
DN
111082009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11109
019d2c4c
DN
11110 * process.c (create_pty): Remove conditionals for no longer
11111 supported systems: UNIPLUS and RTU.
11112
ee6bacd4
DN
11113 * xterm.c:
11114 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
11115
d7306fe6
DN
11116 * alloc.c: Do not define struct catchtag.
11117 * eval.c: Move struct catchtag definition ...
11118 * lisp.h: ... here.
11119
11120 * image.c: Move png.h #include earlier to avoid warnings.
11121
11122 * xterm.c:
11123 * xsmfns.c:
11124 * xselect.c:
11125 * xrdb.c:
11126 * xmenu.c:
11127 * xftfont.c:
11128 * xfont.c:
11129 * xfns.c:
11130 * xfaces.c:
11131 * xdisp.c:
11132 * window.c:
11133 * widget.c:
11134 * w32xfns.c:
11135 * w32uniscribe.c:
11136 * w32term.c:
11137 * w32select.c:
11138 * w32reg.c:
11139 * w32proc.c:
11140 * w32menu.c:
11141 * w32inevt.c:
11142 * w32heap.c:
11143 * w32font.c:
11144 * w32fns.c:
11145 * w32console.c:
11146 * w32.c:
11147 * w16select.c:
11148 * vm-limit.c:
11149 * unexsol.c:
11150 * unexec.c:
11151 * unexcw.c:
11152 * unexaix.c:
11153 * undo.c:
11154 * tparam.c:
11155 * textprop.c:
11156 * terminfo.c:
11157 * terminal.c:
11158 * termcap.c:
11159 * term.c:
11160 * syntax.c:
11161 * sound.c:
11162 * sheap.c:
11163 * search.c:
11164 * scroll.c:
11165 * region-cache.c:
11166 * regex.c:
11167 * ralloc.c:
11168 * process.c:
11169 * print.c:
b024548b
DN
11170 * nsterm.m:
11171 * nsselect.m:
11172 * nsmenu.m:
11173 * nsimage.m:
11174 * nsfont.m:
11175 * nsfns.m:
d7306fe6
DN
11176 * msdos.c:
11177 * minibuf.c:
11178 * menu.c:
11179 * marker.c:
11180 * macros.c:
11181 * keymap.c:
11182 * keyboard.c:
11183 * intervals.c:
11184 * insdel.c:
11185 * indent.c:
11186 * gtkutil.c:
11187 * ftxfont.c:
11188 * ftfont.c:
11189 * fringe.c:
11190 * frame.c:
11191 * fontset.c:
11192 * font.c:
11193 * fns.c:
11194 * floatfns.c:
11195 * filelock.c:
11196 * fileio.c:
11197 * emacs.c:
11198 * editfns.c:
11199 * dosfns.c:
11200 * doprnt.c:
11201 * doc.c:
11202 * dispnew.c:
11203 * dired.c:
11204 * dbusbind.c:
11205 * data.c:
11206 * composite.c:
11207 * coding.c:
11208 * cmds.c:
11209 * cm.c:
11210 * chartab.c:
11211 * charset.c:
11212 * character.c:
11213 * ccl.c:
11214 * category.c:
11215 * casetab.c:
11216 * casefiddle.c:
11217 * callproc.c:
11218 * callint.c:
11219 * bytecode.c:
11220 * buffer.c:
11221 * atimer.c: Include setjmp.h. (Bug#4643)
11222
fd5f21e6
SM
112232009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
11224
4c0354d7
SM
11225 Remove leftover table unibyte_to_multibyte_table.
11226 * character.c (unibyte_to_multibyte_table): Remove.
11227 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
11228 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
11229 * character.h (UNIBYTE_TO_CHAR): New macro.
11230 (MAKE_CHAR_MULTIBYTE): Use it.
11231 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
11232 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
11233 (message_dolog, set_message_1):
11234 * search.c (Freplace_match):
11235 * editfns.c (Fcompare_buffer_substrings):
11236 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
11237 (concat):
11238 * insdel.c (copy_text, count_size_as_multibyte):
11239 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
11240 * term.c (produce_glyphs):
11241 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
11242 * regex.c (RE_CHAR_TO_MULTIBYTE):
11243 * cmds.c (internal_self_insert):
11244 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
11245
fd5f21e6
SM
11246 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
11247
4418646e
DN
112482009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
11249
11250 * puresize.h (BASE_PURESIZE): Increase to 1310000.
11251
35f5c1d2
JB
112522009-10-16 Juanma Barranquero <lekktu@gmail.com>
11253
11254 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
11255
a0cd8f6b
AR
112562009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11257
11258 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
11259 still needed under Tiger.
11260
11261 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
11262
11263 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
11264 __Apple__.
11265
11266 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
11267
01a8d3fa
KH
112682009-10-15 Kenichi Handa <handa@m17n.org>
11269
11270 * print.c (print_object): Escape a symbol like "2E10" too.
11271
bf6c75c9 112722009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
11273
11274 Cleanups and changes for 64-bit compile under Snow Leopard.
11275 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
11276
11277 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
11278
c5959062 11279 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
11280 (ns_findfonts, nsfont_list_family): Use long format in printf, and
11281 cast argument.
11282 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 11283 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
11284
11285 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
11286
11287 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
11288 where appropriate.
11289
11290 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
11291 where appropriate.
6e4780c5
JB
11292 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
11293 Use stringWithUTF8String.
bf6c75c9
AR
11294 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
11295
6e4780c5
JB
11296 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
11297 Add formal protocol mention to inheritance.
bf6c75c9
AR
11298 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
11299
6e4780c5
JB
11300 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
11301 Fix printf format.
bf6c75c9
AR
11302 (ns_query_color): Use CGFloat where appropriate.
11303 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 11304 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
11305 argument.
11306
3d87f118
AR
11307 * config.in (NS_HAVE_NSINTEGER): Drop.
11308
a95c8102
AR
11309 * dbusbind.c (dbus-method-return-internal)
11310 (dbus-method-error-internal): Use long format in printf, and cast
11311 argument.
11312
11313 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
11314 in printf, and cast argument.
11315
6873acca 11316 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
11317 cast argument.
11318
9ec6f100
GM
113192009-10-11 Glenn Morris <rgm@gnu.org>
11320
11321 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
11322
5be883cd
JD
113232009-10-08 Jan Djärv <jan.h.d@swipnet.se>
11324
11325 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
11326 menu bar with a small width so it doesn't enlarge the frame.
11327
d7a39b51
JB
113282009-10-08 Juanma Barranquero <lekktu@gmail.com>
11329
11330 * fontset.c (Fset_fontset_font): Fix typos in error messages.
11331
0c2b6f8e
GM
113322009-10-06 Glenn Morris <rgm@gnu.org>
11333
11334 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
11335 SOME_MACHINE_LISP (this enters indirectly via DOC).
11336
e02131a2
EZ
113372009-10-05 Eli Zaretskii <eliz@gnu.org>
11338
11339 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
11340
b4744254
EZ
113412009-10-04 Eli Zaretskii <eliz@gnu.org>
11342
11343 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
11344 Doc fix.
11345
dbf64827
JB
113462009-10-03 Martin Rudalics <rudalics@gmx.at>
11347
11348 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
11349
e9a0aef8
MA
113502009-10-02 Michael Albinus <michael.albinus@gmx.de>
11351
d528b1ce 11352 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
11353 used anymore outside fileio.c.
11354
11355 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
11356
64eb2b56
JB
113572009-10-01 Juanma Barranquero <lekktu@gmail.com>
11358
11359 * lisp.h (Qdelete_directory_internal):
11360 Declare, instead of Qdelete_directory.
11361
11362 * w32fns.c (Fsystem_move_file_to_trash): Use it.
11363
9d28c33e
SM
113642009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
11365
11366 * eval.c (Fcalled_interactively_p): Add `kind' argument.
11367
9d8f3bd9
MA
113682009-10-01 Michael Albinus <michael.albinus@gmx.de>
11369
9d28c33e 11370 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
11371 Fdelete_directory. It is not a command anymore. It has no file
11372 name handler.
11373
9694740b
SM
113742009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
11375
11376 * xdisp.c (get_next_display_element): Use an enum in last change.
11377
748e162f
KH
113782009-09-28 Kenichi Handa <handa@m17n.org>
11379
9694740b 11380 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
11381 unibyte_display_via_language_environment in handling
11382 Vnobreak_char_display.
11383
17efd58d
AR
113842009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11385
11386 * nsterm.h (ns_app_name): New extern variable.
11387
11388 * nsterm.m (ns_app_name): New variable.
11389 (ns_term_init): Set and use it.
11390 (ns_term_shutdown): Use it.
11391
11392 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
11393 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
11394
11395 * nsfns.m (ns_set_name_iconic, ns_set_name)
11396 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
11397 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
11398
9694740b
SM
11399 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
11400 Remove double-casting in client_data comparison.
31c2d412 11401
3208cb35
YM
114022009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11403
11404 * keyboard.c (make_lispy_event): Remember last wheel direction.
11405 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
11406
b7d552d6
GM
114072009-09-26 Glenn Morris <rgm@gnu.org>
11408
11409 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
11410 internal.elc. Add term/pc-win.elc.
11411 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
11412 term/x-win.elc.
11413 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
11414 term/w32-win.elc.
11415 (NS_SUPPORT): New.
11416 (lisp): Add NS_SUPPORT.
11417 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
11418
4ff670a8
DR
114192009-09-25 David Reitter <david.reitter@gmail.com>
11420
11421 * nsmenu.m (EmacsMenu-clear): Recognize application menu
11422 on Mac OS X 10.6+ (bug#4513).
11423
feabfb6c
JB
114242009-09-24 Juanma Barranquero <lekktu@gmail.com>
11425
11426 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
11427 some parts of Emacs code (like font selection) don't grok them.
11428 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 11429
de59072a
AS
114302009-09-24 Andreas Schwab <schwab@redhat.com>
11431
11432 * coding.c (decode_coding_iso_2022): Fix operator precedence.
11433
a489517b
JB
114342009-09-24 Juanma Barranquero <lekktu@gmail.com>
11435
11436 * dired.c (Fdirectory_files): Fix typo in docstring.
11437
0592970c
AR
114382009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11439
11440 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
11441 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
11442 (EmacsScroller-setPosition:portion:whole:): Remove -display call
11443 under GNUstep.
11444 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
11445
11446 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
11447 glyph advancement.
11448
48e8a88b
AR
114492009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11450
11451 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 11452 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
11453
11454 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
11455 deleted (bug #4492).
11456
e14f0a78
AR
11457 * nsfont.m (Vns_reg_to_script): New lisp variable.
11458 (syms_of_nsfont): Declare it.
11459 (ns_registry_to_script): New function.
11460 (ns_get_req_script): Call it.
11461 (ns_findfonts): Don't give up on non-unicode registry.
11462
11463 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
11464
5b650faa
SM
114652009-09-20 Tom Tromey <tromey@redhat.com>
11466
11467 * eval.c (find_handler_clause): Make stack-trace-on-error work in
11468 batch mode (bug#4228).
11469
a489517b 114702009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
11471
11472 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 11473 carefully. (Bug #4339)
0bae4e09 11474
fcfe06f3
CY
114752009-09-18 Chong Yidong <cyd@stupidchicken.com>
11476
d798ba87 11477 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 11478
31642728
AR
114792009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
11480
11481 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
11482 (main) [HAVE_NS]: Don't process --no-init-file option.
11483 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
11484
11485 * nsterm.h (ns_no_defaults): Remove.
11486
11487 * nsterm.m (ns_no_defaults): Remove.
11488 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
11489 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
11490 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
11491 don't update the NSWindow itself.
bba3e508
SM
11492 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
11493 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
11494
11495 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
11496 ns_use_qd_smoothing.
11497
11498 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
11499 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 11500 (x-close-connection): Drop PSFlush() under OS X.
a489517b 11501 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 11502
8686ac71
JB
115032009-09-17 Juanma Barranquero <lekktu@gmail.com>
11504
11505 * emacs.c (inhibit_x_resources): New variable.
11506 (main) [HAVE_NS]: Don't process --quick command line option.
11507 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
11508
11509 * lisp.h (inhibit_x_resources): Declare it extern.
11510
11511 * w32reg.c (x_get_string_resource):
11512 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
11513
e227ba05
EZ
115142009-09-17 Eli Zaretskii <eliz@gnu.org>
11515
362654a6
JB
11516 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
11517 Add lisp/term/internal.elc.
e227ba05 11518
742d40e8
SM
115192009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11520
11521 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
11522 (bug#4461).
11523
005bd5a2
DN
115242009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
11525
11526 * puresize.h (BASE_PURESIZE): Increase to 1290000.
11527
11528 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
11529 (OBJECTS_MACHINE): Remove, unused.
11530
f9af9719
SM
115312009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
11532
11533 * frame.c (x_get_resource_string): Remove unused.
11534
0307c7d2
JD
115352009-09-15 Jan Djärv <jan.h.d@swipnet.se>
11536
11537 * xterm.c (x_new_font): Call change_frame_size before calling
11538 x_set_window_size, in case frame size won't change.
11539
11540 * frame.c (x_set_font): Remove dead code.
11541
428b13d6
SM
115422009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
11543
11544 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
11545
5766c380
SM
115462009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11547
11548 * lread.c (Fload): Don't output a message after loading an obsolete
11549 package any more (done in Lisp now).
11550
2fd0161b
CY
115512009-09-12 Chong Yidong <cyd@stupidchicken.com>
11552
11553 * fns.c (syms_of_fns): Doc fix (Bug#4227).
11554
bc5e75b6
SM
115552009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11556
11557 * keymap.c (Fwhere_is_internal): Use nconc2.
11558
c31c985e
AM
115592009-09-11 Alan Mackenzie <acm@muc.de>
11560
11561 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
11562 batch mode.
11563
78012bd2
AS
115642009-09-11 Andreas Schwab <schwab@linux-m68k.org>
11565
11566 * xdisp.c (display_mode_element): Detect cycles.
11567
9d889332
SM
115682009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11569
11570 * keymap.c (where_is_internal): Don't erroneously return nil right after
11571 filling the cache.
11572 (where_is_internal_1): Fix up typo.
11573
7ab5d780
GM
115742009-09-11 Glenn Morris <rgm@gnu.org>
11575
11576 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
11577 share a common doc-string.
11578
5238a749
SM
115792009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11580
66d77eda
SM
11581 * keymap.c (get_keymap): Return the actual keymap symbol rather than
11582 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
11583
5238a749
SM
11584 * keymap.c (QCadvertised_binding): New constant.
11585 (syms_of_keymap): Initialize it.
11586 (Fwhere_is_internal): Try and use bindings from :advertised-binding
11587 if applicable.
11588
19f48442
SM
115892009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
11590
50d4ba39
SM
11591 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
11592 (parse_menu_item): Streamline since bindings are recomputed all the
11593 time anyway. Don't bother checking Vdefine_key_rebound_commands any
11594 more and don't support lmenu's menu-alias any more either.
11595
a88a5372
SM
11596 * keymap.c (where_is_internal_data): Make noindirect a boolean.
11597 (where_is_internal): Strip it down to only traverse the keymaps.
11598 Move the cache handling from Fwhere_is_internal to here.
11599 (Fwhere_is_internal): Move the handling of remapping and the choice of
11600 the best binding from where_is_internal to here.
11601 Unify the cached/noncached paths, so remapping is also handled
11602 correctly when the cache is used, and so the cache can be used to
11603 speed up remap-handling when applicable.
11604 Give preference to non-remapped bindings.
11605 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
11606 non-remapped bindings.
11607 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
11608 command remapping.
11609
19f48442
SM
11610 * xdisp.c (display_mode_element): Move list length limit from 50 to
11611 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
11612
599498c3 116132009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
11614
11615 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
11616
f9b7b5ac
SM
116172009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
11618
a53af587
JB
11619 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
11620 (Bug#4334)
11621
f9b7b5ac
SM
11622 * keymap.c (where_is_internal): Filter out shadowed remappings.
11623 Assume that where_is_internal returns unshadowed bindings to simplify
11624 the code and get rid of the gotos. Use ASIZE.
11625
04f4b72d
JD
116262009-09-04 Jan Djärv <jan.h.d@swipnet.se>
11627
4da146f2
JD
11628 * xterm.c (x_focus_changed): If we get a focusout and pointer
11629 is invisible, make it visible.
11630
04f4b72d
JD
11631 * xterm.h: Remove condition for declaration of
11632 x_*_window_to_frame.
11633
7cef7ce3
SM
116342009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
11635
11636 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
11637 initial terminal as well.
11638
a54fa5b7
JD
116392009-09-02 Jan Djärv <jan.h.d@swipnet.se>
11640
11641 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 11642 x_menubar_window_to_frame.
a54fa5b7 11643
50426a04 11644 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
11645 (XTmouse_position): Do not return valid positions
11646 for clicks in the menubar and the toolbar for Gtk+.
11647
11648 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
11649 if the widget for the event has the same top level as a frame,
11650 return the frame.
11651 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
11652 internal windows, bug #4122.
11653 (x_non_menubar_window_to_frame): Remove.
11654
5a021dd0
GM
116552009-09-02 Glenn Morris <rgm@gnu.org>
11656
11657 * buffer.c (default-major-mode): Move most of the doc from here...
11658 (major-mode): ... to here.
11659
548fe2f3
NR
116602009-08-30 Nick Roberts <nickrob@snap.net.nz>
11661
11662 * process.c (wait_reading_process_output): Keep the descriptor
11663 when pty is used by a non-child process, e.g., in I/O buffer of
11664 GDB this allows inferior to be restarted.
11665
e0840eef
EZ
116662009-08-29 Eli Zaretskii <eliz@gnu.org>
11667
11668 * xdisp.c (redisplay_internal): Remove redundant test and collapse
11669 both branches into one.
11670
82e98df4
SM
116712009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
11672
11673 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
11674 (main): Use enable-multibyte-characters rather than
11675 default-enable-multibyte-characters. Output a warning message when
11676 running a unibyte session.
11677
890617cb
YM
116782009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11679
11680 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
11681 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
11682 (copy_data_segment): Also copy __program_vars section.
11683 (copy_dyld_info) [LC_DYLD_INFO]: New function.
11684 (dump_it) [LC_DYLD_INFO]: Use it.
11685
11686 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
11687
e7adeadc
EZ
116882009-08-28 Eli Zaretskii <eliz@gnu.org>
11689
11690 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
11691 $(SRC)/buildobj.h.
ef1b0ba7 11692 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
11693 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
11694 $(SRC)/buildobj.h.
11695 (clean): Add buildobj.h.
11696
3ed8bbdc
TZ
116972009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
11698
11699 * print.c (print_object): Set escapeflag to 1 when printing
11700 hashtable keys and values.
11701
155a6764
SM
117022009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
11703
11704 * lread.c (read_integer): Use doubles (and potentially return a float
11705 number) as we do in string-to-number.
11706 (read1): Use strtol to read integers, signal errors on strtol's
11707 overflow and use floats if strtol's output is too large for
11708 Elisp integers.
11709
877610de
EZ
117102009-08-27 Eli Zaretskii <eliz@gnu.org>
11711
11712 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
11713 (make-buildobj-SH): Fix last change.
11714 (SRC): Move to before where it's first used.
11715
ef73e7be
KH
117162009-08-27 Kenichi Handa <handa@m17n.org>
11717
550c8289
KH
11718 * process.c (send_process): Use encode_coding_object instead of
11719 encode_coding_string to perform eol-conversion even if the string
11720 is unibyte.
11721
60afa08d
KH
11722 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
11723 character.
11724
ef73e7be 11725 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 11726 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 11727
7b3a82d7
DN
117282009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
11729
5654bf63
DN
11730 * callproc.c (Fcall_process): Remove always true #if.
11731
7b3a82d7
DN
11732 * lisp.h: Replace #if 0 code for checking with text pointing to
11733 the --enable-checking configure flag.
11734
11735 * emacs.c (main): Mention the --enable-profiling configure flag
11736 instead of using CFLAGS.
11737
878bde49
KR
117382009-08-26 Ken Raeburn <raeburn@raeburn.org>
11739
11740 * Makefile.in (buildobj.h): New target.
11741 (doc.o): Depend on it.
11742 (temacs${EXEEXT}): Don't generate buildobj.lst.
11743 (mostlyclean): Delete buildobj.h, not buildobj.lst.
11744 * makefile.w32-in ($(SRC)/buildobj.h): New target.
11745 ($(BLD)/doc.$(O)): Depend on it.
11746 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
11747 provided by Eli Zaretskii.)
11748 ($(TEMACS)): Don't generate buildobj.lst.
11749 * doc.c: Include buildobj.h.
11750 (buildobj): New static variable.
11751 (Fsnarf_documentation): Use it, instead of opening and reading
11752 buildobj.lst.
11753
1574224c
MA
117542009-08-25 Michael Albinus <michael.albinus@gmx.de>
11755
11756 * dbusbind.c (Fdbus_call_method)
11757 (Fdbus_call_method_asynchronously): Use English numeric format for
11758 timeout values in doc string.
11759
d9da2f45
KH
117602009-08-25 Kenichi Handa <handa@m17n.org>
11761
ef73e7be
KH
11762 * alloc.c (mark_char_table): New function.
11763 (mark_object): Use mark_char_table for a char-table.
11764
d9da2f45
KH
11765 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
11766 (CHAR_TABLE_REF): Use it.
11767
c8edcc01
KR
117682009-08-23 Ken Raeburn <raeburn@raeburn.org>
11769
11770 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
11771 before invoking the newly build emacs to check for load-path
11772 shadowing.
11773
7763401b
GM
117742009-08-22 Glenn Morris <rgm@gnu.org>
11775
11776 * Makefile.in (bootstrap_exe): New variable.
11777 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
11778 Use ${bootstrap_exe}.
11779
729eadda
EZ
117802009-08-22 Eli Zaretskii <eliz@gnu.org>
11781
11782 * coding.h (encode_coding_string): Don't encode unibyte strings.
11783 (Bug#4047)
11784
eb4c6ace
MA
117852009-08-22 Michael Albinus <michael.albinus@gmx.de>
11786
11787 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
11788
11789 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
11790 intended as hotfix only.
11791 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
11792
36e34d1b
AR
117932009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11794
11795 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
11796 change, and clean up loose ends in the code left by it.
11797 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
11798 yet another X11 format (rgb:r/g/b) for compatibility.
11799 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
11800 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
11801
f983eb8a
SM
118022009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
11803
11804 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
11805
3f56d3c6
MA
118062009-08-20 Michael Albinus <michael.albinus@gmx.de>
11807
11808 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
11809 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
11810 (xd_initialize, xd_pending_messages): Check, whether
11811 $DBUS_SESSION_BUS_ADDRESS is set.
11812
fb641d68
YM
118132009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11814
11815 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
11816
11817 * nsterm.m (ns_get_color): Remove incompatible color formats again.
11818
cf59a374
GM
118192009-08-20 Glenn Morris <rgm@gnu.org>
11820
11821 * emacs.c (system-type): Doc fix.
11822
1373f3be
SM
118232009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11824
11825 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
11826 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
11827
058ed861
MA
118282009-08-18 Michael Albinus <michael.albinus@gmx.de>
11829
1373f3be
SM
11830 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
11831 New functions.
058ed861
MA
11832 (xd_initialize): Revert change from 2009-08-16.
11833
563a866e 118342009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
11835
11836 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 11837 font-group vector, return nil.
5fc05db0 11838
e42bdf01
CY
118392009-08-17 Chong Yidong <cyd@stupidchicken.com>
11840
11841 * process.c (status_notify): Don't perform redisplay.
11842 (Fdelete_process, list_processes_1, process_send_signal):
11843 Expliticly perform redisplay.
11844 (wait_reading_process_output): Always check process status, but
11845 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
11846
4230ab74
KR
118472009-08-17 Ken Raeburn <raeburn@raeburn.org>
11848
1373f3be 11849 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
11850 (XFLOAT_INIT): New macro for storing a float value.
11851 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
11852 * fns.c (sxhash): Copy out the value of a float in order to
11853 examine its bytes.
11854 * dbusbind.c (xd_append_arg): Likewise.
11855
4230ab74
KR
11856 * emacs.c (main): Don't call syms_of_data twice.
11857
a0645cdd
MA
118582009-08-16 Michael Albinus <michael.albinus@gmx.de>
11859
11860 * dbusbind.c (xd_initialize): Add connection file descriptor to
11861 input_wait_mask, in order to let select() detect, whether a new
11862 message has been arrived.
ca4f31ea 11863 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 11864
485db0ba
MA
118652009-08-15 Michael Albinus <michael.albinus@gmx.de>
11866
1373f3be
SM
11867 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
11868 New functions.
485db0ba
MA
11869
11870 * lisp.h (xd_pending_messages): Declare.
11871
11872 * keyboard.c (readable_events): Call xd_pending_messages.
11873
b5b98ff4
CY
118742009-08-15 Chong Yidong <cyd@stupidchicken.com>
11875
1373f3be 11876 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 11877
f8354c6e
CY
11878 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
11879
b5b98ff4
CY
11880 * buffer.c (set_buffer_internal_1)
11881 (swap_out_buffer_local_variables): Check for unbound local
11882 variables (Bug#4138).
11883
8b9fc636
EZ
118842009-08-14 Eli Zaretskii <eliz@gnu.org>
11885
11886 * process.c (create_pty): Fix last change.
11887
ce959360
CY
118882009-08-13 Chong Yidong <cyd@stupidchicken.com>
11889
11890 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
11891 (xbm_load_image): Caller changed.
64b807c9 11892 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 11893
c7baf7e9
NR
118942009-08-13 Nick Roberts <nickrob@snap.net.nz>
11895
11896 * process.c (create_pty): New function.
11897 (Fstart_process): Use it to allow Emacs to just associate a pty
11898 with the buffer. See associated change in gdb-mi.el.
11899 (list_processes_1): Deal with no program name.
11900 (start_process_unwind): Use pid == -2 to mean no process.
11901
1ac9108a
SM
119022009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
11903
11904 * cmds.c (nonundocount): New global variable.
11905 (keys_of_cmds): Initialize it.
11906 (Fself_insert_command): Use it to combine upto 20 sequential chars
11907 into a single undo entry, just like the Qself_insert_command code in
11908 keyboard.c does.
11909 Call frame_make_pointer_invisible, also like the Qself_insert_command
11910 code in keyboard.c does.
11911 * keyboard.c (command_loop_1): Use the new global nonundocount rather
11912 than its own local replacement for it.
11913
e267324c
KR
119142009-08-10 Ken Raeburn <raeburn@raeburn.org>
11915
1ac9108a 11916 * fns.c (concat): Don't re-set string length to its current value.
77437343 11917
1ac9108a
SM
11918 * coding.h (decode_coding_string, encode_coding_string):
11919 Use SBYTES macro.
f0bed503 11920
1ac9108a 11921 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
11922 (doprnt): Merge with doprnt1, discarding lispstrings code.
11923 * lisp.h (doprnt_lisp): Don't declare.
11924
416e006d
JL
119252009-08-07 Juri Linkov <juri@jurta.org>
11926
11927 * puresize.h (BASE_PURESIZE): Increase to 1270000.
11928
6f7d5780
DN
119292009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11930
11931 * print.c (syms_of_print): Undo previous change.
11932
f19a0f5b
TZ
119332009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
11934
11935 * lread.c (read1, syms_of_lread): Read hashtables back from the
11936 readable format.
11937
11938 * print.c (print_preprocess, print_object): Print hashtables fully
11939 and readably.
11940 (syms_of_print): Provide 'hashtable-print-readable.
11941
b9173dc2
AR
119422009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11943
11944 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
11945 no family set.
11946 (nsfont_open): Handle case when entity has no family.
11947
1586503c
AR
119482009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11949
11950 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
11951 element, not a list, for match case.
11952
087048cd
KH
119532009-07-28 Kenichi Handa <handa@m17n.org>
11954
11955 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
11956 rigidly.
11957
11958 * xfont.c (xfont_list_pattern): Don't ignore the return value of
11959 font_parse_xlfd. Check font properties more rigidly.
11960
780c2506
DN
119612009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11962
31fd7c5c
JB
11963 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
11964 bsd-common.h.
780c2506 11965
a8c0cc18
KH
119662009-07-27 Kenichi Handa <handa@m17n.org>
11967
11968 * xfaces.c (face_with_height): Call font_clear_prop.
11969
4fbe2306
CY
119702009-07-26 Chong Yidong <cyd@stupidchicken.com>
11971
111d9af3
CY
11972 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
11973
11974 * xterm.c (x_term_init): Use Qx.
11975
4fbe2306
CY
11976 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
11977
1ac9108a 11978 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
11979 (ns_get_color): Revert 2009-07-16 change.
11980
beb0b7f9
EZ
119812009-07-25 Eli Zaretskii <eliz@gnu.org>
11982
11983 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 11984 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 11985
2baf5e76
KR
119862009-07-25 Ken Raeburn <raeburn@raeburn.org>
11987
1ac9108a
SM
11988 * coding.h (decode_coding_string, encode_coding_string):
11989 Use SCHARS macro.
8890e5f5 11990
2baf5e76 11991 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 11992 (load_depth): Delete.
2baf5e76
KR
11993 (Qload_in_progress): New variable.
11994 (load_unwind): Don't reference load_depth or load_in_progress.
11995 (Fload): Likewise; specbind Qload_in_progress instead.
11996 (init_lread): Don't initialize load_depth.
11997 (syms_of_lread): Initialize and protect Qload_in_progress.
11998
1395c6f5
AR
119992009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12000
12001 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
12002
4e2f36cf
AR
120032009-07-23 Yavor Doganov <yavor@gnu.org>
12004
12005 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
12006
5dd9a6f7
AR
120072009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12008
12009 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
12010 Bugs 3792, 3720, 2402.
12011 (ns_lookup_indexed_color): Check for bad index.
12012 (ns_index_color): Init unused slot to 0.
12013 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
12014 Bug 3714, possibly 3082.
5dd9a6f7 12015
c902b920
JR
120162009-07-22 Jason Rumney <jasonr@gnu.org>
12017
1ac9108a
SM
12018 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
12019 Position IME window at cursor (Bug#2570).
c902b920
JR
12020 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
12021 (globals_of_w32fns): Dynamically load functions required above.
12022
12023 * w32term.c (w32_draw_window_cursor): Send message to reposition
12024 any IME window.
12025
090101cf
CY
120262009-07-21 Chong Yidong <cyd@stupidchicken.com>
12027
12028 * fileio.c: Revert 2009-07-16 changes.
12029 (Vauto_save_include_big_deletions): New variable.
12030 (Fdo_auto_save): Disable auto-save only if
12031 auto-save-include-big-deletions is nil.
12032
e6583e3d
CY
120332009-07-21 Chong Yidong <cyd@stupidchicken.com>
12034
12035 * xdisp.c (move_it_to): For continued lines ending in a tab, take
12036 the overflowed pixels into account (Bug#3879).
12037
ece435a5
KR
120382009-07-21 Ken Raeburn <raeburn@raeburn.org>
12039
12040 * lread.c (load_depth): New variable.
12041 (Fload, load_unwind, init_lread): Set it to the load recursion
12042 depth; set load_in_progress as a simple boolean based on the
12043 current load_depth. (Bug#3892)
12044
40b2d973
AR
120452009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12046
12047 * nsfont.m (ns_has_attribute): Remove.
12048 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
12049
10be7e0d
JL
120502009-07-18 Juri Linkov <juri@jurta.org>
12051
12052 * process.c (Fset_process_query_on_exit_flag): Mention killing
12053 a buffer in docstring.
12054
fa055055
KH
120552009-07-17 Kenichi Handa <handa@m17n.org>
12056
12057 * casetab.c (shuffle): Fix the logic of setting up the cycle.
12058
042f7b69
YM
120592009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12060
12061 * nsfns.m (Fns_set_alpha): Remove function.
12062 (syms_of_nsfns): Don't defsubr it.
12063
12064 * nsterm.m (ns_get_color): Remove incompatible color formats.
12065 (ns_color_to_lisp): Generate #rrggbb color format string.
12066
4be941e3
RS
120672009-07-16 Richard Stallman <rms@gnu.org>
12068
12069 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
12070 (Fset_buffer_auto_saved): Handle save_length = -2.
12071
4e6b227d
CY
120722009-07-16 Chong Yidong <cyd@stupidchicken.com>
12073
12074 * xterm.c (Qx_gtk_map_stock): New var.
12075
12076 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
12077 of calling intern each time.
12078
a1856973
YM
120792009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12080
12081 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
12082 does tiling.
12083
12084 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
12085
497e54d8
KH
120862009-07-14 Kenichi Handa <handa@m17n.org>
12087
72d36834
KH
12088 * font.c (font_vconcat_entity_vectors): New function.
12089 (struct font_sort_data): New member font_driver_preference.
12090 (font_compare): Check font_driver_preference.
12091 (font_sort_entities): The format of the first argument changed.
12092 (font_delete_unmatched): Likewise.
12093 (font_list_entities): The return type changed.
12094 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
12095 (font_find_for_lface): Adjuste for the above changes.
12096 Don't suppress the checking of C even if the repertory supports it.
12097 (Flist_fonts): Adjust for the above changes.
72d36834 12098
1ac9108a
SM
12099 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
12100 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
12101 Reject a font who has adstyle property that is different from a
12102 langname derived from registry property.
1ac9108a 12103 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 12104
b6046155
EZ
121052009-07-13 Eli Zaretskii <eliz@gnu.org>
12106
12107 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
12108 local copy of dirfilename.
12109
fb6b6049
KH
121102009-07-13 Kenichi Handa <handa@m17n.org>
12111
e2402a5e
KH
12112 * chartab.c (sub_char_table_ref_and_range): Fix the range check
12113 against max_char.
12114
fb6b6049
KH
12115 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
12116 calling XSYMBOL (sym).
12117
65156807
EZ
121182009-07-11 Eli Zaretskii <eliz@gnu.org>
12119
1ac9108a
SM
12120 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
12121 New function.
12122 (directory_files_internal) [WINDOWSNT]:
12123 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
12124 the filesystem of the directory is fast or slow.
12125
12126 * w32.c (logon_network_drive): Don't assume PATH is an absolute
12127 file name.
12128 (is_slow_fs): New function.
12129 (stat): Use it to determine whether to issue more system calls to
12130 get accurate file attributes, when w32-get-true-file-attributes is
12131 `local'.
12132
e0ab5fcf
JD
121332009-07-10 Jan Djärv <jan.h.d@swipnet.se>
12134
12135 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 12136 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
12137 parameter font-parameter as default to the font dialog.
12138
784ceded
KH
121392009-07-10 Kenichi Handa <handa@m17n.org>
12140
12141 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
12142
fb8edc0b
EZ
121432009-07-09 Eli Zaretskii <eliz@gnu.org>
12144
1ac9108a 12145 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 12146
fb8edc0b
EZ
12147 * w32.c (stat): Treat UNC file names as residing on remote
12148 drives. (Bug#3542)
12149
635c75b1
KH
121502009-07-09 Kenichi Handa <handa@m17n.org>
12151
12152 * fontset.c (fontset_find_font): Fix previous change.
12153
c1d5ce94
MA
121542009-07-08 Michael Albinus <michael.albinus@gmx.de>
12155
12156 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
12157 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
12158 error flag.
12159
edb61b39
KH
121602009-07-08 Kenichi Handa <handa@m17n.org>
12161
374bf7e4
KH
12162 * fontset.c (fontset_find_font): Fix the logic of handling
12163 charset_matched.
12164 (font_for_char): Delete unused var.
12165 (generate_ascii_font_name): Delete it.
12166
edb61b39
KH
12167 * coding.h (JIS_TO_SJIS2): Fix the code range check.
12168
12169 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
12170 (encode_coding_sjis): Fix the code range check.
12171
0f3f018c
CY
121722009-07-07 Chong Yidong <cyd@stupidchicken.com>
12173
12174 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
12175 (Fexpand_file_name): Copy string data properly (Bug#3772).
12176
fcaf6f3a
JD
121772009-07-07 Jan Djärv <jan.h.d@swipnet.se>
12178
12179 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
12180 first MapNotify.
12181
6809ca75
KH
121822009-07-07 Kenichi Handa <handa@m17n.org>
12183
12184 * character.h (unibyte_has_multibyte_table): Delete extern.
12185 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
12186
12187 * charset.c (Fset_charset_priority): Update charset_unibyte.
12188 (syms_of_charset): Initialize charset_unibyte.
12189
12190 * character.c (unibyte_has_multibyte_table): Delete it.
12191 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
12192 charset_unibyte.
12193 (multibyte_char_to_unibyte_safe): Likewise.
12194 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
12195
1ac9108a 12196 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
12197 (x_produce_glyphs): Likewise.
12198
12199 * .gdbinit (xcharset): Fix the treating $arg0.
12200
ad9e2d54
EZ
122012009-07-04 Eli Zaretskii <eliz@gnu.org>
12202
12203 Emulation of `getloadavg' on MS-Windows.
50426a04 12204 * w32.c: Include float.h.
ad9e2d54
EZ
12205 (g_b_init_get_native_system_info, g_b_init_get_system_times)
12206 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
12207 (get_native_system_info, get_system_times): New functions.
12208 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
12209 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
12210 (globals_of_w32): Initialize g_b_init_get_native_system_info,
12211 g_b_init_get_system_times, and num_of_processors.
12212
0a3472c7
JR
122132009-07-03 Jason Rumney <jasonr@gnu.org>
12214
12215 * w32term.c (w32_initialize): Use standard types.
12216
80904120
EZ
122172009-07-03 Eli Zaretskii <eliz@gnu.org>
12218
12219 * dired.c (Ffile_attributes): Decode user and group names by the
12220 locale's encoding. (Bug#3443)
12221
6978862d
DN
122222009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
12223
f8d23104
DN
12224 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
12225 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
12226
12227 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
12228
12229 * term.c (init_tty): Remove spurious #ifdef.
12230
6978862d
DN
12231 * m/mips.h: Mention this file is also used for netbsd.
12232 * m/pmax.h: Remove file.
12233
e044e4fc
JD
122342009-07-03 Jan Djärv <jan.h.d@swipnet.se>
12235
12236 * xterm.h (struct x_display_info): Add invisible_cursor.
12237 (struct x_output): Add current_cursor.
12238
12239 * xterm.c (XTtoggle_invisible_pointer): New function.
12240 (x_define_frame_cursor): Don't define cursor if invisible or the
12241 same as before. Set current_cursor.
12242 (x_create_terminal): Set toggle_invisible_pointer_hook.
12243
12244 * xfns.c (make_invisible_cursor): New function.
12245 (x_set_mouse_color): Call make_invisible_cursor.
12246 Set current_cursor.
12247 (x_window): Set current_cursor.
12248
12249 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
12250
12251 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
12252 inserting a character.
12253 (read_avail_input): Call frame_make_pointer_visible.
12254
12255 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
12256 (frame_make_pointer_invisible, frame_make_pointer_visible):
12257 New functions.
e044e4fc
JD
12258 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
12259
12260 * frame.h: Declare frame_make_pointer_invisible and
12261 frame_make_pointer_visible.
12262 (struct frame): Add pointer_invisible.
12263
574c8efa
JD
122642009-07-02 Jan Djärv <jan.h.d@swipnet.se>
12265
7b507248
JD
12266 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
12267 frame isn't visible.
12268 (xg_frame_resized): If width/height is -1, get size of window
12269 from X server.
12270
12271 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
12272 for MapNotify.
12273
835bdaa7 12274 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 12275 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 12276 (flush_and_sync): Reintroduce.
574c8efa 12277
3f1c6666 122782009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 12279
31fd7c5c 12280 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
12281
12282 * xterm.c (x_handle_net_wm_state): Also look for sticky.
12283 (x_term_init): Initialize Xatom_net_wm_state_sticky.
12284
12285 * frame.h: Declare Qsticky.
12286
cad9ef74
JD
12287 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
12288
12289 * nsfns.m (ns_frame_parm_handlers): Ditto.
12290
12291 * frame.c: Declare Qsticky.
12292 (frame_parms): Add sticky.
12293
12294 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
12295
12296 * xterm.h: Declare x_set_sticky.
12297
12298 * xterm.c (x_set_sticky): New function.
12299
69b16610
JD
12300 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
12301 (xg_tool_bar_menu_proxy): Attach enter/leave events to
12302 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
12303
12304 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
12305
12306 * frame.c: Qmaximized is new.
12307 (x_set_frame_parameters): Do not handle fullscreen specially.
12308 Only set width and height if explicitly set.
12309 (x_set_fullscreen): Handle Qmaximized.
12310 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
12311 (syms_of_frame): Initialize Qmaximized.
12312
1ac9108a
SM
12313 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
12314 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
12315
12316 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
12317 for Expose event. Add call to x_check_fullscreen for MapNotify event.
12318 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
12319 set gravity to NorthWestGravity when USE_GTK.
12320 (set_wm_state): New function.
31fd7c5c 12321 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
12322 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
12323 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 12324 or the case when no window manager is running. That means remove calls
3f1c6666
JD
12325 to x_real_positions and x_fullscreen_adjust.
12326
12327 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
12328 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
12329 flush_and_sync.
12330 (xg_height_changed): New function.
12331 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
12332 and gtk_window_set_policy. Set frame gravity after parsing the
12333 geometry string.
3f1c6666
JD
12334 (xg_update_frame_menubar, free_frame_menubar)
12335 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12336 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
12337 Remove calls to xg_frame_set_char_size.
12338
fd503d99
KH
123392009-07-01 Kenichi Handa <handa@m17n.org>
12340
12341 * keyboard.c (decode_keyboard_code): New function.
12342 (tty_read_avail_input): Decode the input bytes if necessary.
12343
1ac9108a
SM
12344 * coding.c (setup_coding_system):
12345 Initialize coding->carryover_bytes to 0.
fd503d99
KH
12346 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
12347 use Qno_conversion.
12348
24ed93fb
YM
123492009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12350
12351 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
12352
99061dfc
CY
123532009-06-30 Chong Yidong <cyd@stupidchicken.com>
12354
1ac9108a 12355 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 12356
ff90fbde
JR
123572009-06-30 Jason Rumney <jasonr@gnu.org>
12358
12359 * w32term.c (w32_initialize): Use GetModuleHandle for library that
12360 is already loaded.
12361 Set user model ID if supported (bug#1849).
12362
5f445726
JM
123632009-06-29 Jim Meyering <meyering@redhat.com>
12364
12365 Remove useless if-before-xfree test.
12366 * nsfont.m (nsfont_close): Remove useless test.
12367 * term.c (delete_tty): Likewise.
12368 * w32.c (system_process_attributes): Likewise.
12369 * w32font.c (w32font_close): Likewise.
12370 * xfaces.c (x_free_gc): Likewise.
12371 * xselect.c (buffer): Likewise.
12372
b9607587
AS
123732009-06-28 Andreas Schwab <schwab@linux-m68k.org>
12374
12375 * process.c (send_process): Keep decoded string in a local
12376 variable and protect it from GC. (Bug#3521)
12377
89ba96f4
EZ
123782009-06-28 Eli Zaretskii <eliz@gnu.org>
12379
12380 * term.c (create_tty_output) [MSDOS]: #ifdef away.
12381 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
12382
098a1589
CY
123832009-06-28 Chong Yidong <cyd@stupidchicken.com>
12384
485422be
CY
12385 * xdisp.c (start_display, handle_face_prop)
12386 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
12387 (redisplay_window, try_window_id, produce_image_glyph):
12388 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 12389
098a1589
CY
12390 * xterm.c (x_update_window_begin, x_new_focus_frame)
12391 (x_scroll_bar_handle_click, handle_one_xevent)
12392 (handle_one_xevent, XTread_socket, x_focus_on_frame)
12393 (x_make_frame_visible, x_make_frame_invisible)
12394 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
12395 code chunks that are now obsolete.
12396
78c38319
MA
123972009-06-28 Michael Albinus <michael.albinus@gmx.de>
12398
12399 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
12400 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
12401 for hours, when optimzation is enabled.
12402 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
12403 (xd_read_message): Make them static.
12404
4189ed40
CY
124052009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
12406
12407 * term.c (turn_on_face): Allow simultaneously bold and dim
12408 terminal faces (Bug#3530).
12409
cd9b5e16
CY
124102009-06-27 Chong Yidong <cyd@stupidchicken.com>
12411
4e23bedb
CY
12412 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
12413
cd9b5e16
CY
12414 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
12415 truncation glyphs (Bug#3686).
12416
07cc3c35
GM
124172009-06-27 Glenn Morris <rgm@gnu.org>
12418
12419 * m/pmax.h: Restore file, with only netbsd portions.
12420
31fd7c5c 124212009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 12422
cd9b5e16 12423 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 12424
42d4a64f
KH
124252009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
12426
12427 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
12428 the arg FORCE_SYMBOL.
12429
930fe55b 124302009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
12431
12432 * fontset.c (fontset_find_font): When a usable rfont_def is found
12433 in a fallback font-group, make it the first element of the group.
12434
57ebc3fd
CY
124352009-06-24 Chong Yidong <cyd@stupidchicken.com>
12436
12437 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
12438
f084f942
KH
124392009-06-24 Kenichi Handa <handa@m17n.org>
12440
12441 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
12442 set for C.
12443 (fontset_font): Record the availability of a font for C both in
12444 the realized fontsets of the current one and the default one.
12445
2f686c87
DN
124462009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
12447
12448 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
12449 conditional, it is always defined on AIX.
12450
666e158e
MB
124512009-06-23 Miles Bader <miles@gnu.org>
12452
12453 * window.c (Vrecenter_redisplay): New variable.
12454 (syms_of_window): Initialize it.
12455 (Qtty): New extern declaration.
12456 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
12457
c6da7cd2
JM
124582009-06-23 Jim Meyering <meyering@redhat.com>
12459
1ac9108a
SM
12460 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
12461 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 12462 pointer dereferences are guaranteed to be valid.
c6da7cd2 12463
678dca3d
KH
124642009-06-23 Kenichi Handa <handa@m17n.org>
12465
74d75424
KH
12466 * emacs.c (main): Call init_font ().
12467
12468 * font.h (Vfont_log): Extern it.
12469 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
12470
12471 * font.c (font_sort_entities, font_list_entities)
12472 (font_matching_entity, font_open_entity)
12473 (font_close_object): Change font_add_log to FONT_ADD_LOG.
12474 (Vfont_log): Delete static.
12475 (font_log_env_checked): Delete this variable.
12476 (font_add_log): Don't check font_log_env_checked.
12477 (font_deferred_log): Check Vfont_log.
12478 (init_font): New function.
12479
678dca3d
KH
12480 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
12481
12482 * w32font.c: Change font_add_log to FONT_ADD_LOG.
12483
12484 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
12485
12486 * xfont.c: Change font_add_log to FONT_ADD_LOG.
12487
12488 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
12489 (face_for_char): Don't call font_deferred_log here.
12490 (font_for_char): Likewise.
12491
8a668709
CY
124922009-06-22 Chong Yidong <cyd@stupidchicken.com>
12493
9a01ee33
CY
12494 * w32term.c (x_draw_glyph_string): Use the glyph string's width
12495 rather than its background_width for drawing the overline and
12496 underline (Bug#489).
12497
12498 * xterm.c (x_draw_glyph_string): Use the glyph string's width
12499 rather than its background_width for drawing the overline and
12500 underline (Bug#489).
ec7c9926
CY
12501 (xg_default_icon_file): New variable.
12502 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
12503 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 12504
8a668709
CY
12505 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
12506 (load_overlay_strings): Remove externs.
12507 (fast_find_position): Function deleted.
12508 (mouse_face_from_buffer_pos): New function, based on
12509 fast_find_position. Correctly handle before-strings,
12510 display-strings, and after-strings (Bug#1220).
12511 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
12512
4d4c02d8
CY
125132009-06-21 Chong Yidong <cyd@stupidchicken.com>
12514
1ac9108a 12515 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
12516 (move_it_in_display_line_to, move_it_in_display_line_to)
12517 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
12518
70243478
CY
125192009-06-21 Chong Yidong <cyd@stupidchicken.com>
12520
12521 * Branch for 23.1.
12522
13087e59
JR
125232009-06-21 Jason Rumney <jasonr@gnu.org>
12524
12525 * w32term.c (keyboard_codepage): New static variable.
12526 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
12527 (w32_read_socket) [WM_CHAR]: Use it to decode character
12528 input (bug#3237).
12529 (w32_initialize): Initialize it.
12530 (codepage_for_locale): New function.
12531
4735b74e
KR
125322009-06-20 Ken Raeburn <raeburn@raeburn.org>
12533
12534 * process.c (status_message): Pass Faset index argument as a lisp
12535 object, so as to work with USE_LISP_UNION_TYPE.
12536
0e727afa
YM
125372009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12538
12539 * coding.c (Ffind_coding_systems_region_internal):
12540 Cache checked characters.
12541
cf299835
KH
125422009-06-18 Kenichi Handa <handa@m17n.org>
12543
1ac9108a 12544 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 12545
90f20d94
AS
125462009-06-18 Andreas Schwab <aschwab@redhat.com>
12547
12548 * xdisp.c (redisplay_internal): Check that the frame is still
12549 live after redisplay of its windows.
12550 (redisplay_windows): Check that the window is still live.
12551
7f1faf1c
KH
125522009-06-17 Andreas Schwab <schwab@linux-m68k.org>
12553
12554 * coding.c (detect_coding_utf_16): Fix previous change.
12555
cc13543e
KH
125562009-06-16 Kenichi Handa <handa@m17n.org>
12557
12558 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
12559 UTF-16 by checking the dispersion of Eth and Oth bytes.
12560
977b85f4
AS
125612009-06-15 Andreas Schwab <schwab@linux-m68k.org>
12562
12563 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
12564
66bd43d1
KH
125652009-06-15 Kenichi Handa <handa@m17n.org>
12566
12567 * process.c (status_message): Fix previous change. Be sure to
12568 decode a localized string.
12569
cb5ca9c5
YM
125702009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12571
12572 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
12573 add comment explaining why.
12574
ec7709ba 125752009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 12576
ec7709ba 12577 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 12578
4b7f335c
AR
125792009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
12580
12581 * nsfont.m (ns_attribute_value): Remove.
12582 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
12583 (ns_has_attribute): Shrink the normal range.
12584 (ns_findfonts): Don't worry about requested spec in determining
12585 need for synthItal.
e41820ee 12586 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 12587
73b26103
SZ
125882009-06-14 Seiji Zenitani <zenitani@mac.com>
12589
12590 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
12591
5753e4da
KH
125922009-06-11 Kenichi Handa <handa@m17n.org>
12593
12594 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
12595 overhang for the static composition case.
12596
3561b671
KH
125972009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12598
5753e4da
KH
12599 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
12600 overhang for the automatic composition case.
12601
3561b671
KH
12602 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
12603 composition case.
12604
852bbd41
CY
126052009-06-10 Chong Yidong <cyd@stupidchicken.com>
12606
12607 * xdisp.c (get_next_display_element): When handling wrap-prefix
12608 and line-prefix, treat \n as a control character (bug#3502).
12609
9903d1e6
KH
126102009-06-10 Kenichi Handa <handa@m17n.org>
12611
12612 * font.c (font_parse_family_registry): Fix for one-char foundry.
12613 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
12614
0bcbaaaa
CY
126152009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
12616
12617 * process.c (status_message): Fix handling of multibyte signal
12618 string (Bug#3499).
12619
40aa3f13
JM
126202009-06-09 Jim Meyering <meyering@redhat.com>
12621
1f80c7e2
CY
12622 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
12623 color name is missing.
40aa3f13 12624
72d51285
KH
126252009-06-09 Kenichi Handa <handa@m17n.org>
12626
12627 * charset.c (Fmap_charset_chars): In docstring, state clearly that
12628 FROM-CODE and TO-CODE are codepoints of CHARSET.
12629
c1d04d84
AR
126302009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
12631
12632 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
12633
126342009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
12635
12636 Changes to support :script/:lang/:otf in NS font driver.
12637 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
12638 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
12639 indicate not part of font driver interface, and change callers.
12640 (ns_get_family): Remove pointless null check.
12641 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
12642 ns_spec_to_descriptor, ns_descriptor_to_entity.
12643 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
12644 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
12645 (ns_spec_to_descriptor, ns_descriptor_to_entity)
12646 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
12647 (ns_get_req_script, ns_accumulate_script_ranges)
12648 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
12649 New functions.
12650 (nsfont_list, nsfont_match): Use ns_findfonts.
12651 (nsfont_open): Use font descriptor instead of traits.
12652 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
12653 (dump_glyphstring): Rename to ns_dump_glyphstring.
12654
c7eb9816
AR
12655 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
12656
c1d04d84
AR
12657 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
12658
12659 * fontset.c (fontset_from_font): Remove NS-specific code.
12660
ec7709ba 126612009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
12662
12663 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
12664 nonactive windows.
12665
31fd7c5c 126662009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 12667
1ac9108a 12668 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 12669
68852c13 126702009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
12671
12672 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
12673
6756cd1d
CY
126742009-06-07 Chong Yidong <cyd@stupidchicken.com>
12675
12676 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
12677 account for the overflowing of newlines into the last glyph on the
12678 display line (Bug#3482).
12679
28bf482a
DR
126802009-06-05 David Reitter <david.reitter@gmail.com>
12681
ec7709ba
JB
12682 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
12683 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
12684 Fns_selection_exists_p, Fns_selection_owner_p.
12685
fdb55376
JR
126862009-06-03 Jason Rumney <jasonr@gnu.org>
12687
12688 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
12689 available. (Bug#3379)
12690
05129fbe
KH
126912009-05-29 Kenichi Handa <handa@m17n.org>
12692
1ac9108a
SM
12693 * coding.c (get_translation_table):
12694 Check Venable_character_translation.
05129fbe 12695
ec7709ba 126962009-05-26 David Reitter <david.reitter@gmail.com>
15891144 12697
ec7709ba
JB
12698 * nsterm.m (ns_raise_frame): Only raise frame if visible.
12699 (x_make_frame_visible): Move frame to front rather than calling
15891144 12700 ns_raise_frame().
ec7709ba 12701 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 12702 isn't key window.
ec7709ba 12703 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
12704 drawRect may be called by NSView even if the frame is hidden.
12705
ec7709ba
JB
12706 * nsfns.m (Fx_create_frame): Follow other ports in
12707 determining visibility; default to t. Ensure async_visible is set.
15891144 12708
21f73755
EZ
127092009-05-23 Eli Zaretskii <eliz@gnu.org>
12710
12711 * dired.c (Ffile_attributes): Doc fix.
12712
34001e41
CY
127132009-05-22 Chong Yidong <cyd@stupidchicken.com>
12714
12715 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
12716
46306a17
SM
127172009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
12718
12719 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
12720 and xfont_scratch_props.
12721 (syms_of_xfont): Do it here instead.
12722 (xfont_find_ccl_program): Delete, unused.
12723 (xfont_open): Delete unused var `i'.
12724
ef6e0694
KH
127252009-05-21 Kenichi Handa <handa@m17n.org>
12726
12727 * fontset.c (Qlatin): Don't make it static.
12728
46306a17
SM
12729 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
12730 New functions.
ef6e0694
KH
12731 (xfont_scripts_cache, xfont_scratch_props): New variables.
12732 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
12733 (xfont_list_pattern): Argument changed. Callers changed.
12734 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
12735 (xfont_list): Don't reject a font spec with :script property.
12736 (xfont_has_char): Fix setting of encoding.
12737 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
12738 xfont_scratch_props.
12739
127402009-05-19 Kenichi Handa <handa@m17n.org>
12741
46306a17 12742 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
12743 Callers changed.
12744
127452009-05-18 Kenichi Handa <handa@m17n.org>
12746
12747 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
12748
ac71ced7
SM
127492009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12750
12751 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
12752 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
12753
1c6d1051
YM
127542009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12755
12756 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
12757 (x_delete_terminal): Dissociate resource database from display and
12758 then call XrmDestroyDatabase before closing display.
12759
9b9b779c
AR
127602009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12761
12762 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
12763 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
12764 whether selected frame is viable before raising it (based on patch
12765 by David Reitter), and improve commentary.
12766 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 12767
cccd42d5
KH
127682009-05-15 Kenichi Handa <handa@m17n.org>
12769
12770 * font.c (Ffont_spec): Check arguments.
12771
337fbd17
CY
127722009-05-14 Chong Yidong <cyd@stupidchicken.com>
12773
12774 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
12775 weight when testing attributes (Bug#3282).
12776
47a6002f
JD
127772009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12778
12779 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
12780 what we expect to get in the next ConfigureNotify event.
12781
9cb363db
YM
12782 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
12783 before Xft one (Bug#1696).
12784
b9126609
CY
127852009-05-07 David Reitter <david.reitter@gmail.com>
12786
12787 * nsfns.m (Fx_display_planes): Compute bitplanes using
12788 NSBitsPerPixelFromDepth (Bug#3207).
12789
27a69fd9
CY
127902009-05-10 Chong Yidong <cyd@stupidchicken.com>
12791
12792 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
12793
00f37552
TTN
127942009-05-10 Ulrich Mueller <ulm@gentoo.org>
12795
12796 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
12797
2d82a920
DR
127982009-05-07 David Reitter <david.reitter@gmail.com>
12799
ec7709ba
JB
12800 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
12801 Respect mouse face background.
2d82a920 12802
46b0d52d
DR
128032009-05-07 David Reitter <david.reitter@gmail.com>
12804
ec7709ba
JB
12805 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
12806 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
12807 in ns_update_begin and ns_update_end.
12808
ce1b23bb
SM
128092009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12810
5996e1b7
SM
12811 * nsfns.m (ns_get_screen): Rewrite.
12812 Don't presume selected-frame is of type `ns'.
12813
ba98e3a0
SM
12814 * font.c (font_update_drivers): Sanity fallback to avoid disabling
12815 all drivers.
12816
ce1b23bb
SM
12817 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
12818
bcda200f
YM
128192009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12820
12821 * keyboard.h (add_user_signal): Fix typo in extern.
12822
12823 * lisp.h (add_user_signal): Remove extern.
12824
12825 * unexelf.c (unexec): Consider a section to precede the .bss section
12826 if its addresses overlap that of .bss.
12827 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
12828 instead of dumping process.
12829
864660a2
SM
128302009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12831
12832 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
12833
50da4e56
SM
128342009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
12835
12836 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
12837
51520a1a
DN
128382009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
12839
12840 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
12841 any statements.
12842
409ea3a1
AS
128432009-05-02 Andreas Schwab <schwab@linux-m68k.org>
12844
59c4c60f
AS
12845 * process.c (read_process_output): Make sure the current buffer is
12846 always restored.
12847
409ea3a1
AS
12848 * coding.c (record_conversion_result): Don't modify
12849 Vlast_code_conversion_error for successful result.
12850 (alloc_destination): Don't clobber conversion result. (Bug#1650)
12851
56f00ed2
KH
128522009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12853
12854 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 12855 (load_charset_map): Remove unnecessary code.
56f00ed2 12856
4491c9d2
DR
128572009-04-30 David Reitter <david.reitter@gmail.com>
12858
35f5b128 12859 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
12860 through f24.
12861
6970f632
CY
128622009-04-30 Chong Yidong <cyd@stupidchicken.com>
12863
12864 * xfaces.c (face_at_buffer_position): New arg base_face_id.
12865
12866 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
12867 face_at_buffer_position.
12868 (face_before_or_after_it_pos, get_next_display_element)
12869 (note_mouse_highlight): Update face_at_buffer_position call.
12870
12871 * term.c (term_mouse_highlight):
12872 * msdos.c (IT_note_mouse_highlight):
12873 * fontset.c (Finternal_char_font):
35f5b128 12874 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
12875
12876 * dispextern.h (face_at_buffer_position): Update prototype.
12877
0c616f63
KH
128782009-04-30 Kenichi Handa <handa@m17n.org>
12879
35f5b128 12880 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 12881
ad3aaf33
AS
128822009-04-29 Andreas Schwab <schwab@linux-m68k.org>
12883
12884 * callproc.c (Fcall_process): Fix GC protection. Make sure
12885 current buffer is always restored.
12886
c3c963a0
YM
128872009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12888
12889 * atimer.c (init_atimer): Also clear stopped_atimers.
12890
12891 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
12892
7e3386cb
YM
12893 * process.c (create_process): Clean up merger residues of
12894 2008-07-17 change.
12895
91f68422
CY
128962009-04-29 Ulrich Mueller <ulm@gentoo.org>
12897
12898 * lread.c (Vread_circle): New variable.
12899 (read1): Disable recursive read if Vread_circle is nil.
12900
24b34550
KH
129012009-04-29 Kenichi Handa <handa@m17n.org>
12902
12903 * fontset.h (set_default_ascii_font): Delete extern.
12904
12905 * fontset.c (set_default_ascii_font): Delete this unused function.
12906
12907 * frame.c (x_set_font): When ARG is a font-object, check if the
12908 font-object matches with the ASCII font-spec of the frame's
9c358bda 12909 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 12910
77bf07e1
AS
129112009-04-28 Andreas Schwab <schwab@linux-m68k.org>
12912
12913 * fns.c (Flocale_info): Protect vector from GC during decoding.
12914
12915 * process.c (Fstart_process): Protect argv strings from GC during
12916 encoding.
12917
2c55aacf
AS
129182009-04-27 Andreas Schwab <schwab@linux-m68k.org>
12919
12920 * sysdep.c: Include <ctype.h>.
12921
b892d3c9
DR
129222009-04-27 David Reitter <david.reitter@gmail.com>
12923
35f5b128 12924 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
12925 Remove commented-out code.
12926
9d0644c4
JB
129272009-04-26 Johan Bockgård <bojohan@gnu.org>
12928
12929 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12930
b7053016
JR
129312009-04-25 Jason Rumney <jasonr@gnu.org>
12932
12933 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
12934
4e8231f3
YM
129352009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12936
12937 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
12938 Swap bytes in short integer if fringe bitmap width > 8.
12939
493dcf2c
KH
129402009-04-23 Kenichi Handa <handa@m17n.org>
12941
12942 * xfaces.c (Fx_list_fonts): If a font size is specified in
12943 PATTERN, set it in returned scalable fonts.
12944
401e9e57
CY
129452009-04-22 Chong Yidong <cyd@stupidchicken.com>
12946
708e05dc
CY
12947 * keyboard.c (Fset_input_meta_mode): Doc fix.
12948
12949 * dispnew.c (Fsend_string_to_terminal): Doc fix.
12950
1ac9108a 12951 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
12952
12953 * coding.c (Fterminal_coding_system): Doc fix.
12954
12955 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
12956 (Fx_display_pixel_height, Fx_display_planes)
12957 (Fx_display_color_cells, Fx_server_max_request_size)
12958 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12959 (Fx_display_mm_height, Fx_display_mm_width)
12960 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
12961 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
12962 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
12963 (check_x_display_info): Handle terminal objects instead of
12964 terminal ids.
12965
401e9e57
CY
12966 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
12967 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
12968 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
12969 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 12970
df80c7f0
KH
129712009-04-21 Kenichi Handa <handa@m17n.org>
12972
5a8f12af 12973 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 12974 (font_score): Check AVGWIDTH too.
908567ef 12975
df80c7f0
KH
12976 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
12977 worst case.
1ac9108a
SM
12978 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
12979 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 12980
705af33f
JR
129812009-04-19 Jason Rumney <jasonr@gnu.org>
12982
12983 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 12984 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
12985
12986 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
12987 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
12988 get_phys_cursor_geometry.
12989
b71ac3dd 12990 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
12991 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
12992 using get_phys_cursor_geometry.
12993
12994 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
12995 correctly calculated.
12996
dc2933eb
JD
129972009-04-19 Jan Djärv <jan.h.d@swipnet.se>
12998
1ac9108a
SM
12999 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
13000 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
13001 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
13002 is deprecated.
13003
973e7849
AS
130042009-04-18 Andreas Schwab <schwab@linux-m68k.org>
13005
13006 * font.c (font_put_frame_data): Use xfree instead of free.
13007
314d66f4
JB
130082009-04-17 Juanma Barranquero <lekktu@gmail.com>
13009
13010 * w32font.c (Qja, Qko): Remove declarations.
13011 (syms_of_w32font): Don't DEFSYM them.
13012
cf702558
CY
130132009-04-17 Chong Yidong <cyd@stupidchicken.com>
13014
13015 * font.c (Qja, Qko): Move definitions here from ftfont.c.
13016
13017 * font.h (Qja, Qko): Extern them.
13018
13019 * ftfont.c (Qja, Qko): Remove declarations.
13020
13021 * xfont.c (Qja, Qko): Remove declarations.
13022
b50504f5
KH
130232009-04-17 Kenichi Handa <handa@m17n.org>
13024
bde25748
KH
13025 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
13026 string from a vector to handle Latin-1 characters correctly.
13027
b50504f5
KH
13028 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
13029 entity even if the cache hits.
13030
f4646fff
AS
130312009-04-16 Andreas Schwab <schwab@linux-m68k.org>
13032
13033 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 13034 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 13035
e7deaab0
AS
13036 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
13037 * lisp.h: Adjust prototypes.
13038
0a0e7d49
CY
130392009-04-16 Chong Yidong <cyd@stupidchicken.com>
13040
13041 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
13042 change (Bug#3003).
13043
3c908a57
KH
130442009-04-16 Kenichi Handa <handa@m17n.org>
13045
1ac9108a 13046 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
13047
13048 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
13049 adstyle.
13050
13051 * ftfont.c (Qja, Qko): Don't make them static.
13052 (enum ftfont_cache_for): New enum.
13053 (fc_charset_table): Undo the previous change.
13054 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
13055 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
13056 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
13057 non-scarable font, try to get AVERAGE_WIDTH.
13058 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
13059 Change ft_face_cache from a list of a hash-table. Don't check
13060 `ja' and `ko' adstyle here.
13061 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
13062 FTFONT_CACHE_FOR_CHARET.
13063 (ftfont_get_charset): Undo the previous change.
1ac9108a 13064 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
13065 (ftfont_close): Likewise.
13066 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
13067
13068 * font.c (font_sort_entites): Change the meaning of the arg
13069 BEST-ONLY. Don't optimize for VEC of lenght 1.
13070 (font_select_entity): Just return the value of font_sort_entites.
13071
13072 * xfaces.c (merge_face_vectors): Reflect font properties in
13073 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
13074 font_clear_prop if a face attribute doesn't change.
13075
3c908a57
KH
13076 * charset.h (charset_ksc5601): Extern it.
13077
13078 * charset.c (charset_ksc5601): New variable.
13079 (Fdefine_charset_internal): Set charset_ksc5601.
13080 (init_charset_once): Initialize charset_ksc5601 to -1.
13081
d65859c3
DN
130822009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
13083
13084 * fileio.c (history_delete_duplicates): Remove unused declaration.
13085
13086 * callint.c (history_delete_duplicates): New declaration.
13087 (Fcall_interactively): Remove command history duplicates when
13088 history_delete_duplicates is true.
13089
3ba010e5
EZ
130902009-04-14 Eli Zaretskii <eliz@gnu.org>
13091
13092 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
13093
06f19b91
KH
130942009-04-14 Kenichi Handa <handa@m17n.org>
13095
13096 * font.c (Ffont_info): Fix docstring. Fix the second element of
13097 the returned value (bug#2949).
13098
2cce8bfc
CY
130992009-04-14 Chong Yidong <cyd@stupidchicken.com>
13100
13101 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
13102
d156542d
KH
131032009-04-14 Kenichi Handa <handa@m17n.org>
13104
13105 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
13106 encoding charset is ascii_compatible.
13107
13108 * charset.c (Fdefine_charset_internal): Make charset
13109 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
13110 code_offset is 0, and covers all ASCII characters.
13111
86fa089e
SM
131122009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
13113
13114 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
13115 (ns_string_to_pasteboard_internal):
13116 * nsmenu.m (process_dialog):
13117 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
13118 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
13119 * lisp.h (Fx_load_color_file): Declare.
13120
a8a3728b
KH
131212009-04-13 Kenichi Handa <handa@m17n.org>
13122
1ac9108a 13123 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
13124 (font_select_entity): Suppress the code to optimize for the same
13125 kind of fonts.
13126 (font_load_for_lface): Get a font that supports at least ASCII
13127 characters.
13128
13129 * ftfont.c (Qja, Qko): New variables.
13130 (fc_charset_table): Delete uniquifier data for iso8859-1.
13131 (ftfont_get_latin1_charset): New function.
13132 (get_adstyle_property): New function.
13133 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
13134 bitmap fonts.
13135 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
13136 Delete iso-8859-1 range from the charset of fonts whose adstyle is
13137 `ko' or `ja'.
13138 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 13139 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
13140 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
13141 property.
13142 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
13143 (syms_of_ftfont): DEFSYM Qja and Qko.
13144
483670b5
KH
131452009-04-09 Kenichi Handa <handa@m17n.org>
13146
12b55765
KH
13147 * charset.c (map_charset_chars): For a charset of `superset'
13148 method, fix calculation of code range.
13149
483670b5
KH
13150 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
13151 from the list of extra properties.
13152 (font_clear_prop): Be sure to delete `:name' font property.
13153
57d3b93b
KH
131542009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13155
b4b2c2ca
YM
13156 * dispnew.c (redraw_overlapping_rows): Fix detection of
13157 overlapping for topmost and bottommost rows.
13158
1ac9108a 13159 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 13160
472c3609
JR
131612009-04-06 Jason Rumney <jasonr@gnu.org>
13162
13163 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
13164
ab193662
KH
131652009-04-06 Kenichi Handa <handa@m17n.org>
13166
13167 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
13168
13169 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
13170
0c26f026
KH
131712009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13172
13173 * ftfont.c (ftfont_open): Fix checking of the return value of
13174 FT_Load_Char. Fix setting font->underline_thickness.
13175
e173bbce
CY
131762009-04-04 Chong Yidong <cyd@stupidchicken.com>
13177
13178 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
13179 (Fterminal_parameters, Fterminal_parameter)
13180 (Fset_terminal_parameter): In doc string, refer to terminal
13181 objects rather than terminal ids.
13182
693a2698
EZ
131832009-04-04 Eli Zaretskii <eliz@gnu.org>
13184
13185 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
13186 ret_lim_data. (Bug#2867)
13187
d5221487
CY
131882009-04-03 Chong Yidong <cyd@stupidchicken.com>
13189
13190 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
13191 so they don't get wider than the window, matching 2006-01-23
13192 change to the partner function in xdisp.c (Bug#2800).
13193
223509a3
KH
131942009-04-03 Kenichi Handa <handa@m17n.org>
13195
13196 * print.c (print_object): Make each lowest sub_char_table start a
13197 new line (Bug#2866).
13198
74fcd0b1
KH
131992009-04-02 Kenichi Handa <handa@m17n.org>
13200
13201 * fontset.c (fontset_font): Record no-font when a fontset
13202 explicitly tells not to try another font-specs.
13203
c542407d
SM
132042009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
13205
13206 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
13207
e3869731
KH
132082009-03-30 Kenichi Handa <handa@m17n.org>
13209
d8d2f142
KH
13210 * fontset.c (fontset_from_font): Specify only registry in a
13211 font-spec for all characters supported by that registry.
13212
e3869731
KH
13213 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
13214 even if HAVE_M17N_FLT is not defined.
13215
5da5f805
CY
132162009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
13217
13218 * ftfont.c: Conditionalize prototyping and use of
13219 ftfont_variation_glyphs.
13220
ab226c50
SM
132212009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
13222
9628fed7
SM
13223 * frame.c (delete_frame): Work around compiler bug.
13224
13225 * editfns.c (general_insert_function): Adjust to insdel.c changes.
13226 * insdel.c (prepare_to_modify_buffer, signal_before_change):
13227 Some more EMACS_INT.
13228 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
13229
13230 * xdisp.c (dump_glyph): Fix typo.
13231
ae19ba7c
SM
13232 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
13233 (adjust_markers_gap_motion, adjust_markers_for_delete)
13234 (adjust_markers_for_insert, adjust_point)
13235 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
13236 (make_gap, copy_text, count_size_as_multibyte, insert)
13237 (insert_and_inherit, insert_before_markers)
13238 (insert_before_markers_and_inherit, insert_1)
13239 (count_combining_before, count_combining_after, insert_1_both)
13240 (insert_from_string, insert_from_string_before_markers)
13241 (insert_from_string_1, insert_from_gap, insert_from_buffer)
13242 (insert_from_buffer_1, adjust_after_replace)
13243 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
13244 (replace_range_2, del_range, del_range_1, del_range_byte)
13245 (del_range_both, del_range_2, modify_region)
13246 (prepare_to_modify_buffer, signal_before_change)
13247 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
13248 for buffer positions and sizes.
13249 * lisp.h: Adjust prototypes accordingly.
13250
13251 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
13252 (non_regular_inserted, non_regular_nbytes, read_non_regular)
13253 (Finsert_file_contents): Use EMACS_INT for buffer positions.
13254
ab226c50
SM
13255 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
13256
46dfb8fb
JD
132572009-03-27 Jan Djärv <jan.h.d@swipnet.se>
13258
13259 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
13260 lines and columns so we keep the same pixel height and width.
13261
13262 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
13263 the property _NET_WM_STATE has changed.
46dfb8fb
JD
13264 (x_handle_net_wm_state): New function to update frame parameter
13265 fullscreen.
13266 (x_term_init): Initialize atoms for _NET_WM_STATE.
13267
13268 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
13269
d347e494
SM
132702009-03-27 Kevin Ryde <user42@zip.com.au>
13271
13272 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
13273 Gpm_GetEvent as an error that justifies closing the filedescriptor.
13274 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
13275 (Fgpm_mouse_stop): Pass that new parameter.
13276 * termhooks.h (close_gpm): Adjust prototype.
13277
84db11d6
SM
132782009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13279
c95a5008
SM
13280 * lisp.h (Fx_focus_frame): Declare.
13281
84db11d6
SM
13282 * callint.c (Fcall_interactively): For '^' just delegate the work to
13283 handle-shift-selection.
13284 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
13285
0a1958d6
CY
132862009-03-24 Chong Yidong <cyd@stupidchicken.com>
13287
0bfdff23
CY
13288 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
13289
0a1958d6
CY
13290 * data.c (Qinteractive_form): New variable.
13291 (Finteractive_form): Use it.
13292
13293 * eval.c (Fcommandp): Use Qinteractive_form.
13294
58aec0d6
JR
132952009-03-24 Jason Rumney <jasonr@gnu.org>
13296
13297 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
13298 Calculate total size precisely. Decode environment variables
13299 before substituting. (Bug#38)
13300
553dd618
KH
133012009-03-24 Kenichi Handa <handa@m17n.org>
13302
13303 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 13304 encoding (Bug#2722).
553dd618 13305
c39ea606
JD
133062009-03-23 Jan Djärv <jan.h.d@swipnet.se>
13307
13308 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
13309 that gdpy is set.
13310
bc9b2b5e
AM
133112009-03-22 Alan Mackenzie <acm@muc.de>
13312
13313 * callint.c (Finteractive): Clarify the doc string - even
13314 promptless elements need \n separators.
13315
9f995a76
JR
133162009-03-22 Jason Rumney <jasonr@gnu.org>
13317
13318 * w32term.c (syms_of_w32term): Doc fix for
13319 x-use-underline-position-properties.
13320
22749e9a
EZ
133212009-03-21 Eli Zaretskii <eliz@gnu.org>
13322
13323 * w32.c (getpwuid): Change argument type to unsigned.
13324 (struct w32_id): Change type of `rid' member to unsigned.
13325 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
13326 argument ID to unsigned. All callers changed.
13327 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
13328
e00553bf
EZ
133292009-03-20 Eli Zaretskii <eliz@gnu.org>
13330
13331 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
13332 negative, produce a float value.
13333
13334 * dired.c (make_uid, make_gid): New functions.
13335 (Ffile_attributes): Use them to avoid negative UID and GID.
13336
f761d6b6
JB
133372009-03-20 Juanma Barranquero <lekktu@gmail.com>
13338
13339 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
13340 (syms_of_keyboard) <command-hook-internal, input-method-function>:
13341 Fix typos in docstrings.
13342
d507f8d7
KH
133432009-03-19 Kenichi Handa <handa@m17n.org>
13344
13345 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
13346 changed, use font_load_for_lface to get a new font object.
13347 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
13348
13349 * frame.c (x_set_font): Handle the case that ARG is a cons.
13350
c68845e0
GM
133512009-03-19 Glenn Morris <rgm@gnu.org>
13352
13353 * fileio.c (Fsubstitute_in_file_name): Doc fix.
13354
bfa49dd1
CY
133552009-03-19 Chong Yidong <cyd@stupidchicken.com>
13356
13357 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
13358
8458d4c1
KH
133592009-03-19 Kenichi Handa <handa@m17n.org>
13360
13361 * charset.c (load_charset_map_from_file): When a mapfile can't be
13362 loaded, signal an error.
13363
78e7d1fe
EZ
133642009-03-18 Eli Zaretskii <eliz@gnu.org>
13365
13366 * dired.c (Ffile_attributes): Make sure UID and GID are always
13367 positive, even if the value is too large for a positive EMACS_INT.
13368 Doc fix.
13369
13370 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
13371
5da9fdfa
YM
133722009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13373
13374 * xmenu.c (xdialog_show): Move Fredisplay call ...
13375 (Fx_popup_dialog): ... here.
13376
7519c40d
SM
133772009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
13378
13379 * dired.c (file_name_completion): Disable the first optimization just
13380 installed, since it is not implemented correctly.
13381
2cd298e2
SM
133822009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13383
13384 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 13385 only if the entry can affect bestmatch.
2cd298e2
SM
13386 Stop the search early, as Ftry_completion already does.
13387
48d37adf
CY
133882009-03-17 Chong Yidong <cyd@stupidchicken.com>
13389
e10c9c93 13390 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 13391
9286b16a
CY
133922009-03-15 Chong Yidong <cyd@stupidchicken.com>
13393
13394 * keyboard.c (parse_menu_item): Don't display remappings as menu
13395 equivalent bindings (Bug#788).
13396
f7b146dc
JR
133972009-03-15 Jason Rumney <jasonr@gnu.org>
13398
13399 * w32term.h (WM_EMACS_PAINT): New message.
13400 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
13401 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
13402 before passing to lisp thread. (Bug#950)
13403
f761d6b6 134042009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 13405
d93f9575
CY
13406 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
13407 variable as it was never reset.
13408 (ns_term_init): Remove initialization of Lisp-settable defaults
13409 and ns_expand_space.
13410 (-setPanelFromDefaultValues): Remove ns_expand_space.
13411 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
13412 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
13413 i.e. no additional spacing, similar to Carbon port.
13414
d93f9575
CY
13415 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
13416 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 13417
305018ec
JD
134182009-03-14 Jan Djärv <jan.h.d@swipnet.se>
13419
13420 * sound.c (alsa_configure): Remove call to deprecated
13421 snd_pcm_sw_params_set_xfer_align.
13422
f761d6b6 134232009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
13424
13425 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
13426 after clicking in a detached tool bar.
13427 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
13428
46e722a9
SM
134292009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
13430
348db3dd
SM
13431 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
13432 int/Lisp_Object mixup).
46e722a9 13433
a3d16f39
KH
134342009-03-13 Kenichi Handa <handa@m17n.org>
13435
13436 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 13437 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
13438 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
13439 (set_fontset_font): Change ARG to a vector. Handle range_list in
13440 ARG correctly.
13441 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 13442 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
13443 the above change.
13444 (fontset_from_font): Fix previous change.
fe24f56a 13445 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
13446 entry. If FONTSET is the default fontset, don't set the extra
13447 slot of the returning char-table.
13448
b066e6b6
JB
134492009-03-12 Juanma Barranquero <lekktu@gmail.com>
13450
13451 * nsfns.m (Fx_close_connection): Doc fix.
13452 (Fns_do_applescript): Reflow docstring.
13453 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
13454 (Fx_display_pixel_width, Fx_display_pixel_height)
13455 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
13456 Fix typos in docstrings.
13457 (Fns_set_alpha): Fix typos in error messages.
13458
d472514e 134592009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 13460
d472514e 13461 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
13462 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
13463 were used for such events.
13464
d472514e
JB
13465 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
13466 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 13467
d472514e 13468 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
13469 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
13470
fb930676
KH
134712009-03-11 Kenichi Handa <handa@m17n.org>
13472
ff85581a
KH
13473 * font.h (font_open_by_spec): Extern it.
13474
c50b7e98
KH
13475 * font.c (font_open_by_spec): New function.
13476 (font_open_by_name): Use font_open_by_spec.
13477
fb930676
KH
13478 * frame.c (x_set_font): When ARG is a font-object, don't alter the
13479 fontset of the frame.
13480
13481 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
13482 modify the default font of frames that use this fontset.
13483 (num_auto_fontsets): New variable.
13484 (fontset_from_font): Use num_auto_fontsets to decide a fontset
13485 name. Be sure to set FONTSET_ASCII to the correct font name.
13486 (update_auto_fontset_alist): New function.
13487
df4e8455
JB
134882009-03-11 Juanma Barranquero <lekktu@gmail.com>
13489
13490 * makefile.w32-in: Update dependencies.
13491
0a375797
AR
134922009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13493
13494 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
13495
61313fa3
SM
134962009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13497
13498 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
13499
b55103fb
CY
135002009-03-10 Chong Yidong <cyd@stupidchicken.com>
13501
13502 * lread.c (Feval_buffer): Doc fix.
13503
dde2559c
KH
135042009-03-09 Kenichi Handa <handa@m17n.org>
13505
13506 * charset.c (Qfile_name_handler_alist): Extern it.
13507 (load_charset_map_from_file): Temporarily bind
13508 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
13509
df4e8455 135102009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 13511
47f588bb
GM
13512 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
13513 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 13514
4ddf94bd
AR
135152009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13516
4c9bdfc2
AR
13517 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
13518 (x_set_window_size): Change back to calculated method of setting
13519 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
13520 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
13521 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
13522
fe41ae9e
AR
13523 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
13524
4c9bdfc2
AR
13525 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
13526 accelerator in parens under GNUstep.
13527
825d0875
KH
135282009-03-06 Kenichi Handa <handa@m17n.org>
13529
13530 These changes are to detect incorrect composition sequence without
f3b3be74 13531 looking ahead the source. (Bug#2370)
825d0875
KH
13532
13533 * coding.h: Include "composite.h".
13534 (enum compisition_state): New enum.
13535 (struct compisition_status): New struct.
13536 (struct iso_2022_spec): New member cmp_status.
13537 (struct emacs_mule_spec): New struct.
13538 (struct coding_system): New members ctext_extended_segment_len and
13539 embedded_utf_8. Change the union member
13540 spec.emacs_mule_full_support to spec.emacs_mule.
13541
13542 * coding.c (CODING_ISO_CMP_STATUS): New macro.
13543 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 13544 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
13545 (ADD_COMPOSITION_DATA): New arg nbytes.
13546 (emacs_mule_char): New arg cmp_status.
13547 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
13548 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
13549 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
13550 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
13551 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
13552 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
13553 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
13554 (EMACS_MULE_COMPOSITION_END): New macro.
13555 (emacs_mule_finish_composition): New function.
13556 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
13557 (decode_coding_emacs_mule): Avoid long looking ahead while
13558 handling composition.
13559 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
13560 (ENCODE_COMPOSITION_RULE): New macro.
13561 (finish_composition): New function.
13562 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
13563 (DECODE_COMPOSITION_START): New implementation.
13564 (DECODE_COMPOSITION_END): Likewise.
13565 (STORE_COMPOSITION_RULE): New macro.
13566 (decode_coding_iso_2022): Avoid long looking ahead while handling
13567 composition, CTEXT extended segment, and embedded UTF-8.
13568 (setup_coding_system): For a coding of type iso-2022, reset
13569 CODING_ISO_EXTSEGMENT_LEN (coding) and
13570 CODING_ISO_EMBEDDED_UTF_8 (coding).
13571 (get_translation): Delete arguments last_block, from_nchars,
13572 to_nchars. Callers changed.
13573 (produce_chars): Don't modify charbuf. Adjusted for the change of
13574 get_translation.
98a326f7 13575 (produce_composition): Adjust for the new annotation sequence.
825d0875 13576 (handle_composition_annotation): Likewise.
98a326f7 13577 (consume_chars): Adjust for the change of get_translation.
825d0875 13578
ccbc4452
AR
135792009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
13580
4ddf94bd 13581 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 13582
988a7ddb
KH
135832009-03-05 Kenichi Handa <handa@m17n.org>
13584
13585 * font.c (font_select_entity): New function.
13586 (font_find_for_lface): Use font_select_entity to select a font.
13587
13588 * fontset.c (fontset_find_font): If a font found without
a8a3728b 13589 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
13590 font with C restriction.
13591
98a326f7 135922009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 13593
be1bce46 13594 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 13595
10ea2b82
JR
135962009-03-04 Jason Rumney <jasonr@gnu.org>
13597
2c93b248 13598 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 13599 characters that have already been read. (Bug#2569)
2c93b248 13600
10ea2b82
JR
13601 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
13602 Log an error message if check_image_size failed.
13603 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 13604 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 13605
71a0c011
EZ
136062009-03-02 Eli Zaretskii <eliz@gnu.org>
13607
13608 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
13609 when decoding process output.
13610
2f63bba8
RS
136112009-03-01 Richard M Stallman <rms@gnu.org>
13612
13613 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
13614
13615 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
13616
0a9564cb
EZ
136172009-02-28 Eli Zaretskii <eliz@gnu.org>
13618
13619 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
13620 (decode_coding_emacs_mule, decode_coding_iso_2022)
13621 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13622 (decode_coding_raw_text, decode_coding_charset)
13623 (setup_coding_system, decode_eol, decode_coding, consume_chars):
13624 Honor inhibit-eol-conversion. (Bug #2186)
13625
449148b3
JR
136262009-02-28 Jason Rumney <jasonr@gnu.org>
13627
13628 * coding.c (detect_coding_charset): If not checking latin extra,
13629 fail on characters between 0x80 and 0xA0. (Bug#2354)
13630
a4aee864
EZ
136312009-02-28 Eli Zaretskii <eliz@gnu.org>
13632
13633 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 13634 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 13635
d88bee5a
GM
136362009-02-27 Glenn Morris <rgm@gnu.org>
13637
13638 * callint.c (Finteractive): Doc fix.
13639
a808f22d
KH
136402009-02-27 Kenichi Handa <handa@m17n.org>
13641
13642 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
13643
caf8d60c
CY
136442009-02-27 Chong Yidong <cyd@stupidchicken.com>
13645
13646 * font.c (font_style_to_value): Set value for unknown symbols to
13647 100 instead of 255.
b61137ea
CY
13648 (weight_table, slant_table, width_table): Treat "unspecified" as
13649 the default value.
caf8d60c 13650
1a0de25c
JB
136512009-02-26 Juanma Barranquero <lekktu@gmail.com>
13652
13653 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
13654
8fc45744
JB
136552009-02-25 Juanma Barranquero <lekktu@gmail.com>
13656
107bd7d1
JB
13657 * lread.c (Fload): Stop checking Vloads_in_progress and signal
13658 error as soon as a recursive load is detected.
8fc45744 13659
f097e223
AR
136602009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13661
13662 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
13663 before caching.
13664
8810a12f
KH
136652009-02-24 Kenichi Handa <handa@m17n.org>
13666
13667 * fontset.c (fontset_find_font): Fix the condition for checking
13668 unavailable font.
13669
2c7d1565
GM
136702009-02-24 Glenn Morris <rgm@gnu.org>
13671
13672 * xfaces.c (Finternal_set_font_selection_order): Remove leading
13673 whitespace that confuses documentation.
13674
a20878b6
MB
136752009-02-23 Miles Bader <miles@gnu.org>
13676
13677 * process.c (Flist_system_processes, Fprocess_attributes)
13678 (syms_of_process): Rename `system-process-attributes' to
13679 `process-attributes'.
13680
b3b58c01
AS
136812009-02-22 Andreas Schwab <schwab@linux-m68k.org>
13682
1b3b981b
AS
13683 * coding.h (struct coding_system): Make safe_charsets a pointer to
13684 unsigned char.
13685 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
13686 being 255.
13687 (SAFE_CHARSET_P): Likewise.
13688 (setup_iso_safe_charsets): Properly setup safe_charsets.
13689 (Fdefine_coding_system_internal): Likewise.
13690 (setup_coding_system): Likewise. Remove unneeded casts.
13691 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
13692 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
13693 Remove unneeded casts.
1b3b981b 13694
b3b58c01
AS
13695 * insdel.c (del_range_2): Don't modify gap contents when called
13696 from decode_coding_object. (Bug#1809)
13697
0b6f228c
CY
136982009-02-21 Chong Yidong <cyd@stupidchicken.com>
13699
13700 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
13701 Qfont_object.
13702 (Ftype_of): Recognize font objects.
13703
13704 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
13705
bba3e508
SM
13706 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
13707 Definitions moved to data.c.
0b6f228c 13708
52f8870b
AR
137092009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13710
13711 * nsterm.m (x_make_frame_invisible): Unset async_visible,
13712 async_iconified. Based on a patch by Christian Lynbech
13713 <christian.lynbech@tieto.com>.
13714 (EmacsView-windowDidMiniaturize:): Unset async_visible.
13715
7087d5e9
GM
137162009-02-20 Glenn Morris <rgm@gnu.org>
13717
13718 * syntax.c (Fskip_chars_forward): Fix doc typo.
13719
41d2ceef
CY
137202009-02-20 Chong Yidong <cyd@stupidchicken.com>
13721
13722 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
13723
1a3b7ca6
CY
137242009-02-19 Chong Yidong <cyd@stupidchicken.com>
13725
13726 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
13727
73cce38d
KH
137282009-02-19 Kenichi Handa <handa@m17n.org>
13729
13730 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 13731 Don't overflow coding->carryover. (Bug#2370)
73cce38d 13732
a51092ee
DN
137332009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
13734
13735 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
13736
c423ecca
KH
137372009-02-18 Kenichi Handa <handa@m17n.org>
13738
13739 * font.c (font_check_otf_features): Fix handling of `nil' element.
13740 (Ffont_spec): Describe :lang and :otf in the docstring.
13741
4c1958f4
AS
137422009-02-16 Andreas Schwab <schwab@suse.de>
13743
13744 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
13745 string.
13746
5704f39a
KH
137472009-02-16 Kenichi Handa <handa@m17n.org>
13748
13749 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 13750 (Bug#1723)
5704f39a 13751
8f0085aa
CY
137522009-02-14 Chong Yidong <cyd@stupidchicken.com>
13753
a057d86a 13754 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
13755
13756 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
13757 (handle_line_prefix): Suppress wrapping of wrap prefixes.
13758
aff01dd9
EZ
137592009-02-14 Eli Zaretskii <eliz@gnu.org>
13760
13761 * msdos.c (MAX_SCREEN_BUF): New macro.
13762 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
13763 Encode the entire run of glyphs sharing the same face, instead of
13764 doing that one glyph at a time (fixes a bug with displaying
13765 double-size characters).
13766
ba301db3
AR
137672009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
13768
13769 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
13770
13771 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
13772 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 13773 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
13774
13775 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 13776 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 13777
51d861de
SM
137782009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13779
ac146f82 13780 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
13781 invisible areas.
13782
7fed8996
JR
137832009-02-12 Jason Rumney <jasonr@gnu.org>
13784
631ea4fb
JR
13785 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
13786 (add_font_entity_to_list): Call check_face_name even when family
13787 is unspecified.
13788
cb4a3e42
JR
13789 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13790 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 13791 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 13792
7fed8996 13793 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 13794 raster fonts. (Bug#2219)
7fed8996 13795
895416e3
KH
137962009-02-12 Kenichi Handa <handa@m17n.org>
13797
13798 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
13799 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
13800 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 13801 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13802 (find_automatic_composition): While looking forward and backward,
13803 check static composition. Fix where to stop looking forward.
13804 (composition_adjust_point): Fix checking of static composition.
13805 (Fcomposition_get_gstring): Pay attention to
1dacf998 13806 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13807
13808 * lisp.h (fast_looking_at): Extern it.
13809
13810 * search.c (fast_looking_at): New function.
13811
51d861de 13812 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
13813 <struct glyph>.u.cmp.to.
13814 (append_composite_glyph): Likewise.
13815
51d861de 13816 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
13817 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
13818 composition.
51d861de 13819 (append_composite_glyph): Adjust for the change of
895416e3
KH
13820 <strcut glyph>.u.cmp.to.
13821
8510724d
JB
138222009-02-11 Juanma Barranquero <lekktu@gmail.com>
13823
13824 * casetab.c (init_casetab_once):
13825 * coding.c (ALLOC_CONVERSION_WORK_AREA):
13826 * font.c (font_update_lface):
13827 * fontset.c (Fnew_fontset):
13828 * ftfont.c (ftfont_drive_otf):
13829 * xfont.c (xfont_open):
13830 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
13831
294fa707
SM
138322009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13833
13834 * fileio.c (Fwrite_region): !NILP -> CONSP.
13835
b5bfebec
AS
138362009-02-10 Andreas Schwab <schwab@suse.de>
13837
13838 * process.c (send_process): Properly relocate pointer into data
adab88bd 13839 when using encoded data. (Bug#2272)
b5bfebec 13840
cb84a2be
KH
138412009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
13842
13843 * coding.c (detect_coding_charset): Fix previous change.
13844
89e09428
JR
138452009-02-08 Jason Rumney <jasonr@gnu.org>
13846
13847 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 13848 disappeared while hourglass was displayed. (Bug #2193)
89e09428 13849
4470a277
AS
138502009-02-07 Andreas Schwab <schwab@suse.de>
13851
13852 * unexelf.c (unexec): Fix error message.
13853
3175b12a
AR
138542009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
13855
13856 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 13857 when modal window is active. (Bug #2152)
3175b12a
AR
13858 (applicationShouldTerminate:): Remove now-unneeded while loop
13859 around NSRunAlertPanel.
13860
13861 * nsmenu.m (popupSession): New file-global variable.
13862 (pop_down_menu): End the popupSession before closing dialog.
13863 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
13864 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
13865 don't query NSApp for events (just sleep instead).
13866
8434d0b8
EZ
138672009-02-07 Eli Zaretskii <eliz@gnu.org>
13868
51d861de
SM
13869 * coding.c (syms_of_coding) <translation-table-for-input>:
13870 Modify doc string to discourage use for character code unification.
8434d0b8 13871
aa82edfd
CY
138722009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13873
13874 * atimer.c (run_timers): Update pending_atimers.
13875
2d283c7c
CY
138762009-02-06 Chong Yidong <cyd@stupidchicken.com>
13877
eb306cab
CY
13878 * image.c (svg_load_image): Fix last change.
13879
2d283c7c
CY
13880 * xfns.c (Fx_create_frame): Signal an error if no font is
13881 found (Bug#2147).
13882
4d8e170e
JB
138832009-02-05 Juanma Barranquero <lekktu@gmail.com>
13884
13885 * character.c (syms_of_character) <script-representative-chars>:
13886 Fix typo in docstring.
13887
c96169a0
AR
138882009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13889
13890 * nsmenu.m (pop_down_menu): New function.
13891 (ns_popup_dialog): Call it on unwind.
13892 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
13893 call timer_check() (Bug#2154).
13894 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
13895 handling_signal is set.
13896 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
13897
31fd7c5c 13898 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
13899
13900 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
13901
13902 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
13903
51d861de
SM
13904 * keyboard.c (poll_for_input_1, handle_async_input):
13905 Set handling_signal under HAVE_NS.
c96169a0 13906
aacd8ba1
GM
139072009-02-04 Glenn Morris <rgm@gnu.org>
13908
13909 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
13910
4cb75c4b
KH
139112009-02-04 Kenichi Handa <handa@m17n.org>
13912
13913 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
13914
13915 * charset.c (Fchar_charset): New optional arg restriction.
13916
13917 * coding.h (coding_system_charset_list): Extern it.
13918
13919 * coding.c (coding_system_charset_list): New function.
13920
13921 * composite.c: Include coding.h and termhooks.h.
13922 (composition_gstring_p): Fix for the terminal case.
13923 (composition_gstring_width): Likewise.
13924 (fill_gstring_body): Likewise.
13925 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
13926 the frame.
13927 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
13928 is within a composition.
867d4bb3 13929 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
13930
13931 * term.c (encode_terminal_code): Fix handling of composition.
13932 (produce_composite_glyph): For static composition, get pixel_width
13933 from struct composition.
13934
826ba17e
AS
139352009-02-02 Andreas Schwab <schwab@suse.de>
13936
13937 * unexelf.c (unexec): Handle unaligned bss offset.
13938
8ad093db
AR
139392009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13940
13941 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
13942 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 13943
8ad093db
AR
13944 * keyboard.c (handle_interrupt): Don't call
13945 quit_throw_to_read_char() under NS.
d0a76a6e 13946
8ad093db
AR
13947 * blockinput.h: Remove NS-specific code.
13948
4d18a7a2
DN
139492009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
13950
db878925
DN
13951 * dispnew.c (window_change_signal): Don't try to get the size of a
13952 suspended tty frame.
13953 * term.c (Fresume_tty): Resize if the size has changed while the
13954 tty was suspended.
13955
4d18a7a2
DN
13956 * alloc.c (mark_stack): Properly conditionalize previous change.
13957
8984df7c
JB
139582009-01-30 Juanma Barranquero <lekktu@gmail.com>
13959
13960 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
13961 * w32term.c (w32_read_socket) [SYNC_INPUT]:
13962 Remove; this code is not used on Windows.
13963
75f4f1ac
EZ
139642009-01-30 Eli Zaretskii <eliz@gnu.org>
13965
13966 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
13967 EOLs that also has stray ^M characters.
13968
07a1e794
JB
139692009-01-30 Juanma Barranquero <lekktu@gmail.com>
13970
13971 * atimer.c (run_timers, alarm_signal_handler):
13972 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
13973 * w32inevt.c (w32_console_read_socket):
13974 * w32term.c (w32_read_socket):
13975 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
13976
a8b11cc9
CY
139772009-01-30 Chong Yidong <cyd@stupidchicken.com>
13978
13979 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
13980 Initialize it as a relative filename pattern.
13981 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
13982 (Fcall_process_region): Simplify temp file creation using
13983 temporary-file-directory.
13984
c279587b
EZ
139852009-01-29 Eli Zaretskii <eliz@gnu.org>
13986
13987 * msdos.c: Rename pending_signals to msdos_pending_signals.
13988 (sig_suspender, sigprocmask): Adjust.
13989
a8fe3242
CY
139902009-01-29 Chong Yidong <cyd@stupidchicken.com>
13991
13992 * keyboard.c (pending_signals): New var.
13993 (poll_for_input, input_available_signal, init_keyboard): Set it.
13994 (process_pending_signals): New function.
13995
13996 * lisp.h (QUIT): Check pending_signals instead of
13997 interrupt_input_pending. Use process_pending_signals.
13998
51d861de 13999 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 14000
51d861de 14001 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
14002
14003 * sysdep.c (emacs_write): Use process_pending_signals.
14004
14005 * xterm.c (XTread_socket): Update pending_signals.
14006
14007 * w32term.c (w32_read_socket): Update pending_signals.
14008
14009 * w32inevt.c (w32_console_read_socket): Update pending_signals.
14010
6570a1c4
KH
140112009-01-29 Kenichi Handa <handa@m17n.org>
14012
14013 * xftfont.c (xftfont_has_char): New function.
14014 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
14015
d72a4afa
AR
140162009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14017
14018 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
14019 under GNUstep.
14020 (ns_query_color): New declaration.
14021
14022 * nsterm.m (ns_confirm_quit): New variable.
14023 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
14024 (EmacsApp-applicationShouldTerminate:): Use it.
14025 (EmacsPrefsController): Let user set it.
14026 (ns_query_color): New function.
14027 (ns_defined_color): Use it.
14028 (ns_initialize): Drop.
14029 (ns_term_init): Add two lines from ns_initialize(), and set
14030 input_interrupt_mode to nil.
14031
14032 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 14033 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 14034
9fe78804
KH
140352009-01-28 Kenichi Handa <handa@m17n.org>
14036
14037 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
14038 (fontset_get_font_group): Remember that no font-group is specified
14039 for C.
9fe78804 14040
fa57de36
CY
140412009-01-27 Chong Yidong <cyd@stupidchicken.com>
14042
930600e9
CY
14043 * fns.c (concat): Check for string overflow (bug#1787).
14044
fa57de36
CY
14045 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
14046 Quadruple undo limits (bug#1501).
14047
7179ce7b
KH
140482009-01-27 Kenichi Handa <handa@m17n.org>
14049
14050 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
14051 directly use GT_Get_Char_index.
14052
14053 * xftfont.c (struct xftfont_info): New member `index'.
14054
14055 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 14056 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 14057
5be8fcc0
CY
140582009-01-26 Kenichi Handa <handa@m17n.org>
14059
14060 * fontset.c (fontset_find_font): Fix handling of non-cons return
14061 value of fontset_get_font_group.
14062 (fontset_font): Revert last change.
14063
19ae3e61
JR
140642009-01-26 Jason Rumney <jasonr@gnu.org>
14065
14066 * w32font.c (w32font_list_internal): Return quickly if registry is
14067 unknown. Simplify final return.
14068 (add_font_entity_to_list): Break complex logic down into more
14069 manageable chunks. Move unknown registry check to
14070 w32font_list_internal.
14071
8612b71a
AR
140722009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
14073
14074 Changes to remove Feval calls from GUI under NS.
14075
d8038940
JB
14076 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
14077 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
14078 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
14079
14080 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
14081 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
14082 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
14083 instead of NON_ASCII_KEYSTROKE_EVENT.
14084 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
14085 (EmacsApp-applicationShouldTerminate:): Query user.
14086 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
14087 instead of Feval.
14088
14089 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
14090
14091 * keyboard.c (kbd_buffer_get_event): Check for it.
14092 (keys_of_keyboard): Define lispy keys for
14093 ns-put/unput-working-text.
14094
14095 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
14096 versions.
14097 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
14098
6288ae55
CY
140992009-01-25 Chong Yidong <cyd@stupidchicken.com>
14100
14101 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 14102 setting current_buffer directly. (Bug#2044)
6288ae55 14103
289e7f8f
CY
141042009-01-24 Chong Yidong <cyd@stupidchicken.com>
14105
5ce87308 14106 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 14107 any work. (Bug#1952, bug#1990).
5ce87308 14108
64cc3cf6 14109 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 14110
b3243e6f
AR
141112009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
14112
14113 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
14114 (ns_no_defaults): New declaration.
14115 (main): Use it.
e0d2e69a 14116
d900b2af 14117 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 14118
d900b2af 14119 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 14120
d900b2af
AR
14121 * nsterm.m (ns_no_defaults): New variable.
14122 (ns_initialize): Don't read defaults when ns_no_defaults.
14123 (EmacsView-readSelectionFromPasteboard:)
14124 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 14125 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
14126 (ns_dumpglyphs_stretch): New function.
14127 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 14128 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 14129
e0d2e69a
AR
14130 * nsimage.m (setPixmapData:): Set to ignore image DPI.
14131
3ac71f5d
CY
141322009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
14133
14134 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
14135 call for Sparc64.
14136
3fe53a83
AR
141372009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14138
14139 * nsfns.m:
14140 * nsgui.h:
14141 * nsmenu.m:
14142 * nsselect.m:
14143 * nsterm.h:
14144 * nsterm.m: Remove '23' comments that indicated code added during
14145 update from emacs-20 -> emacs-23.
14146
10f87c6f 141472009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
14148
14149 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 14150 ns_alternate_modifier. (Bug#1217)
a3b53a85 14151
c7cef62d
AR
14152 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
14153 Display all shortcuts, including those w/o super modifier.
14154
575fb8bd
AR
14155 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
14156
918b848b
CY
141572009-01-22 Chong Yidong <cyd@stupidchicken.com>
14158
14159 * fileio.c (Vwrite_region_post_annotation_function)
14160 (Vwrite_region_annotation_buffers): New vars.
14161 (build_annotations_unwind): Just reset
14162 Vwrite_region_annotation_buffers.
14163 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
14164 Call write-region-post-annotation-function.
14165 (build_annotations): Add to Vwrite_region_annotation_buffers if
14166 buffer changes.
14167
a39e2539
AR
141682009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14169
14170 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
14171 Tiger.
51d861de
SM
14172 * nsfns.m (ns_do_applescript):
14173 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 14174
35ed44db
AR
141752009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14176
14177 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
14178
cbe0b5bf
AR
141792009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14180
14181 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 14182
6049d3a0
AR
14183 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
14184
14185 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
14186 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
14187 handle Ctrl-tab. (Bug#1841)
14188 (ns_get_color): Use unsigned long long for scanned hex string value.
14189 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 14190 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 14191 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 14192 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 14193 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 14194 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 14195 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 14196
d3810c21 14197 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 14198 DPI. (Bug#1316)
d3810c21
AR
14199 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
14200 values in onTiger section.
4c7077c3 14201
e301e634
CY
142022009-01-19 Chong Yidong <cyd@stupidchicken.com>
14203
7f82490b
CY
14204 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
14205 Check return value of font_spec_from_name.
64cc3cf6 14206 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
14207
14208 * font.c (font_spec_from_name): Return Qnil if font name could not
14209 be parsed.
14210 (font_parse_name): Treat a `?' character as part of an XLFD.
14211
e301e634
CY
14212 * fns.c (Fsubstring): Doc fix.
14213
1c0db158
KH
142142009-01-19 Kenichi Handa <handa@m17n.org>
14215
51d861de 14216 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
14217 (ftfont_list): Likewise.
14218
acf20901
JB
142192009-01-18 Juanma Barranquero <lekktu@gmail.com>
14220
fff4e459
JB
14221 * dbusbind.c (Fdbus_register_signal):
14222 * process.c (conv_sockaddr_to_lisp):
14223 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
14224
acf20901
JB
14225 * callproc.c (Fgetenv_internal): Doc fix.
14226
e7abcdfb
CY
142272009-01-16 Chong Yidong <cyd@stupidchicken.com>
14228
14229 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
14230 it is not even used.
14231
b60861e6
GM
142322009-01-16 Glenn Morris <rgm@gnu.org>
14233
14234 * font.c (Ffont_variation_glyphs): Silence compiler.
14235
8db52afe
JB
142362009-01-15 Juanma Barranquero <lekktu@gmail.com>
14237
14238 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
14239 Reported by David Robinow <drobinow@gmail.com>.
14240
4cddb209
KH
142412009-01-15 Kenichi Handa <handa@m17n.org>
14242
51d861de 14243 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 14244
f247f67b
JR
142452009-01-14 Jason Rumney <jasonr@gnu.org>
14246
14247 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 14248 never a fontset. (Bug#1562)
f247f67b 14249
f56a4450
KH
142502009-01-14 Kenichi Handa <handa@m17n.org>
14251
14252 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 14253 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 14254
4e99855e
CY
142552009-01-13 Chong Yidong <cyd@stupidchicken.com>
14256
14257 * font.c (font_clear_prop): If clearing the family, clear the font
14258 width index too.
14259
fff4e459 14260 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 14261
24f01470
JB
142622009-01-12 Juanma Barranquero <lekktu@gmail.com>
14263
14264 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
14265 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
14266 functions, use sizeof.
14267
a41240a3
MR
142682009-01-12 Martin Rudalics <rudalics@gmx.at>
14269
14270 * keyboard.c (read_char): Fix case where last_nonmenu_event
14271 returned a bad value with submenus. (Bug#447)
14272
944636b8
CY
142732009-01-12 Chong Yidong <cyd@stupidchicken.com>
14274
14275 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
14276 family, clear the font width index too.
14277
0dad7c6f
JR
142782009-01-11 Jason Rumney <jasonr@gnu.org>
14279
14280 * keyboard.c (cmd_error_internal): Exit when errors occur before
14281 frame creation and not in daemon mode. (Bug#1836)
14282
7c2363af
CY
142832009-01-10 Chong Yidong <cyd@stupidchicken.com>
14284
14285 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
14286 of a display vector, backtrack.
14287 (try_window_reusing_current_matrix): Check glyph type before
14288 referencing charpos member.
14289
97b1b294
EZ
142902009-01-10 Eli Zaretskii <eliz@gnu.org>
14291
14292 Fix Bug #876:
14293
14294 * coding.c (inhibit_null_byte_detection): New variable.
14295 (detect_coding, detect_coding_system): Don't pay attention to null
14296 bytes if inhibit_null_byte_detection is non-zero.
51d861de 14297 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
14298 <inhibit-iso-escape-detection>: Doc fix.
14299
4624b6e3
JR
143002009-01-09 Jason Rumney <jasonr@gnu.org>
14301
14302 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 14303 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
14304 Only report Unicode Plane 2 fonts as unicode-sip.
14305
323b840c
CY
143062009-01-09 Chong Yidong <cyd@stupidchicken.com>
14307
51d861de
SM
14308 * xfaces.c (Fx_font_family_list): Delete function.
14309 Move compatibility version to faces.el.
323b840c 14310
51d861de 14311 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 14312
eba7400d
MR
143132009-01-09 Martin Rudalics <rudalics@gmx.at>
14314
14315 * frame.c (x_set_frame_parameters): Remember requested value for
14316 fullscreen before it's reset by the parameter handler.
14317
4b09796d
GM
143182009-01-09 Glenn Morris <rgm@gnu.org>
14319
14320 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 14321 (last_command_event): ... and update all users.
4b09796d
GM
14322 (last_input_char): For clarity, rename to...
14323 (last_input_event): ... and update all users.
14324 (last-command-char, last-input-char): Move to subr.el as aliases.
14325 * cmds.c, commands.h: Update for last_command_char rename.
14326
14ccea62
CY
143272009-01-08 Chong Yidong <cyd@stupidchicken.com>
14328
51d861de 14329 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 14330
5f004711
JR
143312009-01-08 Jason Rumney <jasonr@gnu.org>
14332
14333 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
14334 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
14335 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
14336 Don't declare.
fff4e459 14337 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
14338 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
14339
b71f6f73
KH
143402009-01-07 Kenichi Handa <handa@m17n.org>
14341
50b06221 14342 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 14343 remember the coding system used for decoding in
50b06221
KH
14344 coding_system (Bug#1039).
14345
b71f6f73 14346 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 14347 breaking the loop. (Bug#870)
b71f6f73
KH
14348 (decode_coding_utf_16, decode_coding_emacs_mule)
14349 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14350 (decode_coding_charset): Likewise.
14351
56f668f7
MR
143522009-01-05 Martin Rudalics <rudalics@gmx.at>
14353
14354 * frame.c (x_set_frame_parameters): Make sure height (width) get
14355 applied when fullwidth (fullheight) is set. (Bug#1522)
14356
5da9424d
JB
143572009-01-04 Juanma Barranquero <lekktu@gmail.com>
14358
14359 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
14360 (utc_base): Declare as ULONGLONG, not long double.
14361 (convert_time_raw): Delete.
14362 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
14363 (initialize_utc_base): New function.
14364 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
14365 (convert_from_time_t): Use initialize_utc_base; compute result with
14366 64-bit arithmetic.
14367 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
14368
c4605e09
EZ
143692009-01-03 Eli Zaretskii <eliz@gnu.org>
14370
9acef61c 14371 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
14372 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
14373 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
14374 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
14375 [!subprocesses]: Define.
14376 (syms_of_process) [!subprocesses]: Intern and staticpro them.
14377 (Flist_system_processes, Fsystem_process_attributes)
14378 [!subprocesses]: Call list_system_processes and
14379 system_process_attributes instead of returning Qnil.
14380
9acef61c
JB
14381 * dosfns.c (system_process_attributes, list_system_processes):
14382 New functions.
c4605e09
EZ
14383
14384 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
14385
14386 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
14387 Don't use the default (no-op) implementation.
14388
8b7d0a16
JR
143892009-01-03 Jason Rumney <jasonr@gnu.org>
14390
a6d46bc1
JR
14391 * keyboard.c (parse_modifiers_uncached): Wheel events are
14392 clicks (bug#687).
14393
8b7d0a16
JR
14394 * w32term.c (x_query_colors, x_query_color): New functions.
14395
14396 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
14397 (svg_load_image): Cast returned pointers from dynamically loaded
14398 functions. Eliminate W32 specific code.
14399
bfe11752
DN
144002009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
14401
89e2438a
DN
14402 * nsfns.m (x_set_foreground_color, x_set_background_color)
14403 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
14404 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
14405 x_ prefix instead of ns_. Update references.
14406 (syms_of_nsfns): Add a FIXME comment.
14407
14408 * nsterm.m (x_set_cursor_type): New prototype.
14409 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
14410
bfe11752
DN
14411 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
14412 for Solaris instead of incorrectly providing Qutime and Qcutime.
14413
031da700
EZ
144142009-01-02 Eli Zaretskii <eliz@gnu.org>
14415
14416 * w32.c (process_times): Compute sum of utime and stime.
14417 (system_process_attributes): Add Qtime to the alist.
14418
14419 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
14420 and add them to the alist.
14421
14422 * process.c (top level) <Qtime, Qctime>: New variables.
14423 (syms_of_process): staticpro them.
14424 (Fsystem_process_attributes): Add their documentation to the doc
14425 string.
14426
14427 * process.h: Declare Qtime and Qctime.
14428
df23bf08
JR
144292009-01-02 Jason Rumney <jasonr@gnu.org>
14430
9acef61c 14431 * image.c (Qgobject): New symbol.
df23bf08
JR
14432 (syms_of_image): Initialize it.
14433 (init_svg_functions): Load some functions from gobject library.
14434
5bbdf7aa
DN
144352009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
14436
14437 * frame.c (make_terminal_frame): Remove redundant code and useless
14438 block.
14439
63136da6
AS
144402009-01-01 Andreas Schwab <schwab@suse.de>
14441
14442 * process.c (conv_sockaddr_to_lisp): Add workaround for
14443 getsockname bug on BSD.
14444
9ef69046
CY
144452009-01-01 Chong Yidong <cyd@stupidchicken.com>
14446
d6fafbe0
CY
14447 * xfns.c (x_create_tip_frame): Set border width of the X window.
14448
51d861de 14449 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 14450
f9c34147
JR
144512009-01-01 Jason Rumney <jasonr@gnu.org>
14452
9acef61c 14453 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
14454 Don't block input, as per earlier xterm.c changes.
14455
f5497e45
AR
144562008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
14457
14458 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
14459 (ns_appkit_version_int): New function.
14460 (x-server-version): Use ns_appkit_version_int and follow 21+
14461 convention of returning 3 integers.
14462
c19cab20
KH
144632008-12-30 Kenichi Handa <handa@m17n.org>
14464
14465 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
14466 (CHAR_SURROGATE_PAIR_P): New macro.
14467
14468 * font.h (struct font_driver): New member get_variation_glyphs.
14469
9acef61c 14470 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
14471 (Ffont_variation_glyphs): New function.
14472 (syms_of_font): Defsubr it.
14473
14474 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
14475 ftfont_variation_glyphs.
14476 (setup_otf_gstring): New function.
14477 (ftfont_drive_otf): Use it.
14478 (ftfont_shape_by_flt): Handle variation selector.
14479 (ftfont_variation_glyphs): New function.
14480
28cd591f
MR
144812008-12-30 Martin Rudalics <rudalics@gmx.at>
14482
14483 * frame.c (Vemacs_iconified): Remove.
14484
7f714baf
JR
144852008-12-30 Jason Rumney <jasonr@gnu.org>
14486
14487 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 14488 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 14489
9d2d22ab
CY
144902008-12-30 Chong Yidong <cyd@stupidchicken.com>
14491
14492 * indent.c (Fvertical_motion): Don't advance iterator if we have
14493 reseated to the desired position.
14494
14495 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
14496 checking for pos match.
14497
545312c2
KH
144982008-12-30 Kenichi Handa <handa@m17n.org>
14499
1ede3eb6
KH
14500 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
14501 just get the low 8-bit of the code.
14502
545312c2
KH
14503 * font.c (font_intern_prop): Validate str as multibyte.
14504
bd7bbf29
DN
145052008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
14506
31e0750e
DN
14507 * dispextern.h (struct face): Move lface and hash from the middle
14508 of bitfields.
14509
bd7bbf29
DN
14510 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
14511
b5672e7c
DN
145122008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
14513
14514 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
14515 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
14516 instead of intervals.h.
14517
d704470f
AS
145182008-12-26 Andreas Schwab <schwab@suse.de>
14519
14520 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
14521 cons.
14522
54b33868
MR
145232008-12-26 Martin Rudalics <rudalics@gmx.at>
14524
14525 * textprop.c (Qminibuffer_prompt): New variable.
14526 (syms_of_textprop): Initialize it.
14527 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
14528 in minibuffer-prompt face. (Bug#1662)
14529
40b615d6
JR
145302008-12-25 Jason Rumney <jasonr@gnu.org>
14531
14532 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
14533
baae5c2d
JR
145342008-12-24 Jason Rumney <jasonr@gnu.org>
14535
14536 * ralloc.c (r_alloc_reset_variable): New function.
14537
14538 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 14539 record of what points where. (Bug#716)
baae5c2d 14540
a9051c88
DN
145412008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
14542
14543 * minibuf.c (read_minibuf): Follow the non-interactive case when
14544 running as a daemon, before detaching.
14545
8b146312
AS
145462008-12-22 Andreas Schwab <schwab@suse.de>
14547
14548 * buffer.c (init_buffer): Use realloc instead of xrealloc.
14549 * gtkutil.c (free_widget_value): Use xfree instead of free.
14550
56f2de10
MR
145512008-12-22 Martin Rudalics <rudalics@gmx.at>
14552
14553 * frame.c (delete_frame): New function derived from
14554 Fdelete_frame to handle Qnoelisp value for FORCE argument.
14555 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
14556 (Fdelete_frame): Call delete_frame. Remove line from doc-string
14557 saying that FORCE non-nil doesn't run `delete-frame-functions'.
14558 * frame.h: Extern delete_frame.
14559 * window.c (window_loop):
14560 * terminal.c (delete_terminal):
14561 * xterm.c (x_connection_closed):
14562 * xfns.c (Fx_hide_tip):
9acef61c 14563 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 14564
1fc200d6
JR
145652008-12-21 Jason Rumney <jasonr@gnu.org>
14566
14567 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
14568 when character maps to .notdef character.
14569
5e252df2
SM
145702008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
14571
14572 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
14573
99b72cc4
JR
145742008-12-20 Jason Rumney <jasonr@gnu.org>
14575
14576 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 14577 a graphical frame on Windows. (Bug#1325)
99b72cc4 14578
acc49a52
JD
145792008-12-20 Jan Djärv <jan.h.d@swipnet.se>
14580
14581 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
14582
6ea15123
CY
145832008-12-20 Chong Yidong <cyd@stupidchicken.com>
14584
14585 * minibuf.c (Fread_buffer): Doc fix.
14586
b2dab6c8
JR
145872008-12-20 Jason Rumney <jasonr@gnu.org>
14588
54ea0c87 14589 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 14590 server name in UNC paths. (Bug#719)
54ea0c87 14591
b2dab6c8 14592 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 14593 charbuf. (Bug#1035)
b2dab6c8 14594
6d1921be
DN
145952008-12-19 Daniel Engeler <engeler@gmail.com>
14596
14597 * sysdep.c (serial_configure): Fix typo.
14598
53934c98
DN
145992008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
14600
14601 * sysdep.c: Include alloca.h.
f4f634e8
DN
14602 (system_process_attributes): Add implementation for Solaris.
14603
14604 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 14605
06e111a6
DN
146062008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
14607
14608 Reorganize implementation of Flist_system_processes and
14609 Fsystem_process_attributes. No functional changes.
14610 * process.c: Don't #include pwd.h, grp.h and limits.h.
14611 (Flist_system_processes): Just call list_system_processes.
14612 (Fsystem_process_attributes): Just call system_process_attributes.
14613 (procfs_list_system_processes, time_from_jiffies)
14614 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
14615 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
14616
14617 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
14618 (list_system_processes): Rename from
14619 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
14620 Provide a do nothing implementation.
14621 (system_process_attributes): Rename from
14622 procfs_list_system_processes.
14623 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 14624 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
14625
14626 * w32.c (list_system_processes): Rename from
14627 w32_list_system_processes.
14628 (system_process_attributes): Rename from
14629 w32_system_process_attributes.
14630
14631 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
14632
14633 * process.h (w32_list_system_processes)
14634 (w32_system_process_attributes): Remove.
362654a6
JB
14635 (list_system_processes, system_process_attributes):
14636 New prototypes.
06e111a6 14637
6a705b23
KH
146382008-12-19 Kenichi Handa <handa@m17n.org>
14639
14640 * xfont.c (xfont_decode_coding_xlfd): New function.
14641 (xfont_encode_coding_xlfd): New function.
14642 (xfont_list_pattern): Decode XLFD by iso-8859-1.
14643 (xfont_list): Decode and encode XLFD by iso-8859-1.
14644 (xfont_match): Likewise.
14645 (xfont_list_family): Likewise.
14646 (xfont_open): Likewise.
14647
d66c0241 14648 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
14649 names are utf-8.
14650
d66c0241 14651 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
14652 names are utf-8.
14653
5a130941
JD
146542008-12-18 Jan Djärv <jan.h.d@swipnet.se>
14655
14656 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
14657 changed.
bfd20325
JD
14658 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
14659 clicked on a detached tool bar button.
5a130941 14660
fd95644b
DN
146612008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
14662
14663 * emacs.c (main): Print and error and exit when no data is read
14664 from the pipe.
14665
e6eee6ae
JR
146662008-12-17 Jason Rumney <jasonr@gnu.org>
14667
14668 * w32font.c (w32font_has_char): Always return -1.
14669
a35dd56b
KH
146702008-12-16 Kenichi Handa <handa@m17n.org>
14671
14672 * font.c (font_open_entity): Fix previous change.
14673
0e3635c2
DN
146742008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
14675
14676 * process.c: Include <limits.h>.
14677
d4835507 146782008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
14679
14680 * font.c (font_update_drivers): Fix mistake in reconstructing the
14681 driver list.
14682
146832008-12-16 Chong Yidong <cyd@stupidchicken.com>
14684
14685 * font.c (font_clear_cache): Fix format of font cache data.
14686
e2cbc401
CY
146872008-12-15 Chong Yidong <cyd@stupidchicken.com>
14688
14689 * xftfont.c (xftfont_open): Free Xft font pattern if
14690 XftFontOpenPattern fails.
14691
14692 * xterm.c (x_free_frame_resources): Remove extraneous call to
14693 free_frame_faces.
14694
b131d535
CY
146952008-12-13 Chong Yidong <cyd@stupidchicken.com>
14696
14697 * xterm.c (x_delete_display): Move xim_close_dpy call to
14698 x_delete_terminal.
14699 (x_delete_terminal): Call xim_close_dpy.
14700
e6df5336
JR
147012008-12-13 Jason Rumney <jasonr@gnu.org>
14702
14703 * w32font.c (intern_font_name): New function.
14704 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
14705 (w32font_open_internal, Fx_select_font): Decode font name.
14706 (fill_in_logfont, list_all_matching_fonts): Encode font name.
14707
14708 * w32font.h (intern_font_name): Declare new function.
14709
14710 * w32uniscribe.c (add_opentype_font_name_to_list):
14711 Use intern_font_name.
14712
20d68145
CY
147132008-12-13 Chong Yidong <cyd@stupidchicken.com>
14714
9f2554de
CY
14715 * frame.c (Fdelete_frame): Call free_font_driver_list.
14716
3d9bec9a
CY
14717 * font.c (free_font_driver_list): Implement missing function.
14718
20d68145
CY
14719 * w32term.c (w32_term_init): Don't initialize the image cache
14720 here; it will be done in init_frame_faces.
14721
14722 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
14723 (struct x_display_info): Remove unused member null_pixel.
14724 New member xim_callback_data.
20d68145
CY
14725
14726 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
14727 (xim_initialize): Save pointer to callback function data.
14728 (xim_close_dpy): Free callback function data. Call XCloseIM,
14729 reverting 2008-11-04 change by David Smith.
14730 (x_term_init): Don't initialize the image cache here; it will be
14731 done in init_frame_faces. Remove ancient "null_pixel" cruft.
14732 (x_delete_display): Free x_dnd_atoms member.
14733
96f9306b
KH
147342008-12-13 Kenichi Handa <handa@m17n.org>
14735
ef1b0ba7 14736 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 14737 Argument type changed. Handle a font-spec too.
96f9306b 14738 (font_score): Check Vface_font_rescale_alist.
6dec9044 14739 (font_open_entity): Likewise. (Bug#1547)
96f9306b 14740
ef1b0ba7 14741 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 14742
8d5b4964
CY
147432008-12-13 Chong Yidong <cyd@stupidchicken.com>
14744
14745 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
14746
e6df5336
JR
147472008-12-12 Jason Rumney <jasonr@gnu.org>
14748
bba3e508
SM
14749 * w32fns.c (x_display_info_for_name, Fx_open_connection):
14750 Set Vwindow_system_version to the real w32 major version.
e6df5336 14751
97c6058a
DN
147522008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
14753
14754 * term.c (init_tty): Move setting the terminal name before the
14755 potential user: maybe_fatal.
14756
ec4e88d7
CY
147572008-12-11 Chong Yidong <cyd@stupidchicken.com>
14758
ef1b0ba7 14759 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 14760 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 14761
b4233ec9
JR
147622008-12-11 Jason Rumney <jasonr@gnu.org>
14763
8ec71e23 14764 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 14765 SYMBOL_CHARSET. (Bug#547)
8ec71e23 14766
b4233ec9 14767 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 14768 size for surrogates. (Bug#1096, bug#872)
b4233ec9 14769
011a0143
JB
147702008-12-11 Juanma Barranquero <lekktu@gmail.com>
14771
14772 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
14773
3c309f34
JB
147742008-12-11 Juanma Barranquero <lekktu@gmail.com>
14775
14776 * process.c (Fsystem_process_attributes, syms_of_process):
14777 Fix typo in name of Ssystem_process_attributes.
14778 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
14779
fedc6ab5
JB
147802008-12-11 Juanma Barranquero <lekktu@gmail.com>
14781
14782 * syntax.c (Fmodify_syntax_entry): Doc fix.
14783
ba3de0e8
JB
147842008-12-10 Juanma Barranquero <lekktu@gmail.com>
14785
14786 * font.c (Ffont_spec): Move usage to end of docstring.
14787
174f1c74
JR
147882008-12-10 Jason Rumney <jasonr@gnu.org>
14789
14790 * w32font.c (Qcham): New symbol.
14791 (font_supported_scripts): Add cham, and comments for other new
14792 scripts in bitfield from OpenType spec.
9d32f818
JR
14793 (add_font_entity_to_list): Limit unicode-sip fonts to those that
14794 contain characters beyond the bmp.
174f1c74 14795
7b649478
KH
147962008-12-10 Kenichi Handa <handa@m17n.org>
14797
14798 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 14799 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
14800 Qunicode_sip.
14801
2133e2d1
JB
148022008-12-10 Juanma Barranquero <lekktu@gmail.com>
14803
14804 * coding.c (QCdefault_char): Rename from QCdefalut_char.
14805 (Fcoding_system_put): Use QCdefault_char.
14806 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
14807
9af886ee
CY
148082008-12-09 Chong Yidong <cyd@stupidchicken.com>
14809
74d819eb
CY
14810 * xftfont.c (syms_of_xftfont): Fix typo.
14811
4ccfa1c0 14812 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 14813
7c19d3ae
DN
148142008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
14815
14816 * emacs.c (main): Close daemon_pipe on exec.
14817
567826bb
CY
148182008-12-08 Chong Yidong <cyd@stupidchicken.com>
14819
14820 * termchar.h (struct tty): New members termcap_term_buffer and
14821 termcap_strings_buffer.
14822
14823 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 14824 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
14825 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
14826 All callers changed.
14827 (init_tty): Store termcap data and string buffers in new struct
14828 tty members termcap_term_buffer and termcap_strings_buffer.
14829 (delete_tty): Free them.
4ccfa1c0 14830 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 14831
aa96c42b
SZ
148322008-12-07 Seiji Zenitani <zenitani@mac.com>
14833
14834 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 14835 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 14836
b7e1d896
CY
148372008-12-06 Chong Yidong <cyd@stupidchicken.com>
14838
14839 * coding.c (make_conversion_work_buffer): Disable buffer
14840 modification hooks in the work buffer.
14841
b5ec91a5
EZ
148422008-12-05 Eli Zaretskii <eliz@gnu.org>
14843
14844 * process.c (procfs_system_process_attributes): If `nread' has a
14845 negative value, assign zero to it.
14846
a5d2a52b
CY
148472008-12-05 Chong Yidong <cyd@stupidchicken.com>
14848
68c5540b 14849 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 14850
7bf1bb21
KH
148512008-12-05 Kenichi Handa <handa@m17n.org>
14852
14853 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
14854 second character is a combining character.
14855
2fdc7d00
EZ
148562008-12-05 Eli Zaretskii <eliz@gnu.org>
14857
14858 * process.c (procfs_system_process_attributes): Don't use cmd,
14859 cmdsize, and q without initializing them first.
14860
bf6bfba8
JR
148612008-12-04 Jason Rumney <jasonr@gnu.org>
14862
14863 * w32font.c (w32font_draw): Initialize orig_clip before getting
14864 it, and delete it when finished.
14865
a3b1a468
DN
148662008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
14867
14868 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
14869 case when running as a daemon before detaching.
14870
8b8be8eb
JB
148712008-12-03 Juanma Barranquero <lekktu@gmail.com>
14872
805f2638 14873 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 14874
b1bde622
KH
148752008-12-03 Kenichi Handa <handa@m17n.org>
14876
e500c47d
KH
14877 * font.c (font_at): Set `multibyte' at first.
14878
ca516334
KH
14879 * coding.c (decode_coding_charset): Check type of an element of
14880 vector VALIDS.
7bf1bb21 14881 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 14882
4ccfa1c0 14883 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
14884 (font_for_char): Likewise.
14885
1e5ecd37
CY
148862008-12-03 Chong Yidong <cyd@stupidchicken.com>
14887
d5b01609 14888 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
14889 (font_update_lface): Handle fonts with corrupted size specs,
14890 i.e. non-int and non-float.
d5b01609 14891
11e3a6e4 14892 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 14893 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 14894 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 14895
ab06788b
CY
14896 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
14897
1e5ecd37 14898 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 14899 underline_minimum_offset for underline position.
1e5ecd37 14900
63c125ab
DN
149012008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
14902
14903 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
14904
14905 * character.c (c_string_width): Specify the type for LEN.
14906
3a8406e1
KH
149072008-12-03 Kenichi Handa <handa@m17n.org>
14908
4ccfa1c0 14909 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 14910 (decode_coding_utf_8): Likewise.
4ccfa1c0 14911 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 14912 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 14913
651df7d9
CY
149142008-12-02 Chong Yidong <cyd@stupidchicken.com>
14915
14916 * keyboard.c (make_lispy_position): Only use PT if the selected
14917 window is current.
14918
1f625c6c
AS
149192008-12-02 Andreas Schwab <schwab@suse.de>
14920
f7741ce9
AS
14921 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
14922
1f625c6c
AS
14923 * doprnt.c (doprnt1): Fix size of charbuf.
14924
92bc2678
CY
149252008-12-02 Chong Yidong <cyd@stupidchicken.com>
14926
14927 * keyboard.c (timer_check): Revert last change.
14928
93b9e8cc
JB
149292008-12-02 Juanma Barranquero <lekktu@gmail.com>
14930
14931 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
14932
fd7a37d5
JB
149332008-12-01 Juanma Barranquero <lekktu@gmail.com>
14934
14935 * makefile.w32-in: Update dependencies.
14936 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
14937
c115043b
AS
149382008-12-01 Andreas Schwab <schwab@suse.de>
14939
14940 * font.c (register_font_driver): Use xmalloc.
14941 (font_put_frame_data): Likewise.
14942
f5668d2a
CY
149432008-12-01 Chong Yidong <cyd@stupidchicken.com>
14944
860d96be
CY
14945 * xfaces.c (realize_x_face): Make abort condition clearer.
14946
f5668d2a
CY
14947 * gtkutil.c (update_frame_tool_bar): Initialize variable.
14948
379c17e7
CY
149492008-11-30 Chong Yidong <cyd@stupidchicken.com>
14950
14951 * keyboard.c (timer_check): After a timer runs, ensure that the
14952 selected window's buffer is current.
14953
35f36d65
JB
149542008-11-30 Juanma Barranquero <lekktu@gmail.com>
14955
f952c61c
JB
14956 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
14957 It was accidentally restored by the Unicode merge.
14958
35f36d65
JB
14959 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
14960
b23077df
JB
149612008-11-29 Juanma Barranquero <lekktu@gmail.com>
14962
14963 * w32proc.c: Include "coding.h".
14964 (Fw32_short_file_name): Encode filename passed to Windows API.
14965 (Fw32_long_file_name): Encode filename passed to Windows API and
14966 decode back the result. (Bug#1433)
14967
b8ebe9dd
KH
149682008-11-29 Kenichi Handa <handa@m17n.org>
14969
8cc53f96
KH
14970 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
14971 not before accessing it.
14972
b8ebe9dd
KH
14973 * charset.c (Fdefine_charset_internal): After calculating
14974 min_char, max_char, and fastmap, copy the charset structure again.
14975 (encode_char): Fix the previous change.
14976
59bc82c0
SZ
149772008-11-28 Seiji Zenitani <zenitani@mac.com>
14978
14979 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
14980
14981 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
14982
14983 * nsterm.m (x_set_frame_alpha): New function.
14984
32247e3d
EZ
149852008-11-27 Eli Zaretskii <eliz@gnu.org>
14986
14987 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
14988
b003e5ff
JB
149892008-11-27 Juanma Barranquero <lekktu@gmail.com>
14990
14991 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
14992 pointer to check_face_name.
14993
708550f5
KH
149942008-11-27 Kenichi Handa <handa@m17n.org>
14995
14996 * category.h (SET_CATEGORY_SET): Call set_category_set.
14997 (set_category_set): Extern it.
14998
14999 * category.c (hash_get_category_set): New function.
bba3e508 15000 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
15001 char_table_ref_and_range. Call hash_get_category_set to get a
15002 category set to store in the table.
15003
15004 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
15005 Funify_charset.
15006
2ae37cf0 15007 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
15008 (DECODE_CHAR): Check if the decoder vector is ready.
15009 (ENCODE_CHAR): Check if the encoder char-table is ready.
15010 (maybe_unify_char): Extern it.
15011
15012 * charset.c (Vchar_unified_charset_table): Delete it.
15013 (inhibit_load_charset_map): New variable.
15014 (temp_charset_work): New variable.
15015 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
15016 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
15017 New macros.
bba3e508
SM
15018 (load_charset_map): Meaning of control_flag changed.
15019 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
15020 temp_charset_work.
15021 (load_charset): New argument control_flag.
15022 (map_charset_for_dump): New function.
15023 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
15024 map_charset_for_dump.
15025 (Fdefine_charset_internal): If the charset method is MAP, load
15026 mapping tables by calling load_charset.
15027 (Funify_charset): Don't load a mapping table but directly set
15028 Vchar_unify_table.
15029 (maybe_unify_char): New function.
15030 (decode_char): Don't handle the deleted method MAP_DEFERRED.
15031 Handle the case of inhibit_load_charset_map being nonzero.
15032 (encode_char): Don't handle the deleted method MAP_DEFERRED.
15033 Handle the case of inhibit_load_charset_map being nonzero.
15034 (Fclear_charset_maps): Just free temp_charset_work.
15035 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
15036 variable.
15037
bba3e508 15038 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
15039 change of char_table_ref_and_range.
15040 (char_table_ref_and_range): Change the meaning of argument FROM
15041 and TO. Now the caller must provide initial values for *FROM
15042 and *TO.
15043
bba3e508 15044 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
15045 char_table_ref_and_range.
15046 (fontset_get_font_group): Likewise.
15047 (Ffontset_info): Likewise.
15048
bba3e508 15049 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
15050 char_table_ref_and_range. For char-table, put boundary between
15051 non-ASCII and 8-bit characters.
15052
15053 * print.c (print_object): For bool-vector, delete unnecessary
15054 check of ASCII_BYTE_P.
15055
9196133b
JR
150562008-11-26 Jason Rumney <jasonr@gnu.org>
15057
15058 * w32font.c (w32font_open_internal): Don't include external
9acef61c 15059 leading in font height. (Bug#879)
9196133b 15060
9f688acf
GM
150612008-11-26 Glenn Morris <rgm@gnu.org>
15062
15063 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
15064 redefinition with ifdef. (Bug#1383)
15065
90d19aff
AR
150662008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15067
15068 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
15069
4ccfa1c0 150702008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
15071
15072 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
15073 New EmacsView methods.
15074 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
15075 Fixes bug #1048,1357,1414.
15076
150772008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15078
15079 Fix bug #1362.
15080 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
15081 is not an indexed color.
15082 * nsterm.m (free_indexed_color): Add argument checking.
15083 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
15084
e7d5ecb3
CY
150852008-11-24 Chong Yidong <cyd@stupidchicken.com>
15086
15087 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
15088 Document confirm-after-completion value for
15089 minibuffer-completion-confirm.
15090
c285743c
JR
150912008-11-24 Jason Rumney <jasonr@gnu.org>
15092
15093 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
15094 warning.
15095
b0857706
JR
150962008-11-23 Jason Rumney <jasonr@gnu.org>
15097
15098 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
15099 restored before returning.
15100
15101 * w32font.c (check_face_name): New function.
15102 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 15103 fonts. (Bug#642)
b0857706 15104
ee50ff07
MR
151052008-11-22 Martin Rudalics <rudalics@gmx.at>
15106
15107 * buffer.c (Fswitch_to_buffer): Reword and mention new option
15108 confirm-nonexistent-file-or-buffer in doc-string.
15109
b8ff72fa
SM
151102008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15111
15112 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
15113 Fix copy/paste typo. Add checks.
15114
cee53ed4
KH
151152008-11-21 Kenichi Handa <handa@m17n.org>
15116
15117 * coding.c (detect_coding_iso_2022): Reject invalid composition
15118 sequence.
15119 (DECODE_COMPOSITION_START): If the current source is the last
15120 block, and the current composition doesn't end, regard this
15121 sequence as invalid.
15122 (decode_coding_iso_2022): Handle invalid composition sequence.
15123
f6ef1e65
MR
151242008-11-20 Martin Rudalics <rudalics@gmx.at>
15125
15126 * window.c (coordinates_in_window): Don't return
15127 ON_VERTICAL_BORDER for the rightmost position of a mode/header
15128 line when the window is not the rightmost one. (Bug#1372)
15129
e08b1705
MR
151302008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
15131
15132 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
15133
ad98e89f
EZ
151342008-11-15 Eli Zaretskii <eliz@gnu.org>
15135
15136 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
15137 and bright_bg if noninteractive is non-zero.
15138
fb098a4b
CY
151392008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15140
15141 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
15142 x_draw_glyph_string_background.
15143
15144 * w32term.c (x_draw_glyph_string): Likewise.
15145
ce952b6e
CY
151462008-11-15 Chong Yidong <cyd@stupidchicken.com>
15147
15148 * xterm.c (x_draw_glyph_string): Stop drawing the background of
15149 the next glyph string once past the overhang width.
15150
15151 * nsterm.m (ns_draw_glyph_string): Likewise.
15152
15153 * w32term.c (x_draw_glyph_string): Likewise.
15154
26ea7079
CY
151552008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
15156
15157 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
15158 double file close.
15159
1c33c906
MR
151602008-11-14 Martin Rudalics <rudalics@gmx.at>
15161
15162 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
15163 dedicated status of window before attempting to display another
15164 buffer in it.
15165
8fc29035
JB
151662008-11-14 Juanma Barranquero <lekktu@gmail.com>
15167
15168 * msdos.c (Fmsdos_long_file_names):
15169 (syms_of_msdos) <dos-unsupported-char-glyph>:
15170 * dosfns.c (Fint86): Fix typos in docstrings.
15171
55fb4286
EZ
151722008-11-14 Eli Zaretskii <eliz@gnu.org>
15173
15174 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
15175
3fda0315
KY
151762008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
15177
15178 * puresize.h (BASE_PURESIZE): Increase to 1260000.
15179
7e849c17
CY
151802008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
15181
15182 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
15183
15184 * frame.h: Negative alpha means "don't touch".
15185
15186 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
15187
15188 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
15189
b9fd67bd
DN
151902008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
15191
15192 * hftctl.c:
15193 * chpdef.h:
15194 * acldef.h: Remove files used only for systems no longer supported.
15195
15196 * Makefile.in: Fix .o alphabetical ordering.
15197 (hftctl.o): Remove dependency, file removed.
15198 (keymap.o, print.o): Depend on charset.h.
15199
d5998e03
KH
152002008-11-10 Kenichi Handa <handa@m17n.org>
15201
2ae37cf0 15202 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 15203
be70e183
CY
152042008-11-08 Chong Yidong <cyd@stupidchicken.com>
15205
15206 * dired.c (file_name_completion): If completion_ignore_case is
15207 enabled, ignore case when checking completion-regexp-list.
15208
7cf94eac
EZ
152092008-11-08 Eli Zaretskii <eliz@gnu.org>
15210
15211 * vm-limit.c (get_lim_data): Fix last change.
15212
ee107a89
KH
152132008-11-08 Kenichi Handa <handa@m17n.org>
15214
15215 * character.c (Fget_byte): New function.
15216 (syms_of_character): Defsubr Fget_byte.
15217
5fd15622
CY
152182008-11-07 Chong Yidong <cyd@stupidchicken.com>
15219
15220 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
15221 cursor position is valid after scrolling.
15222
13d62fad
JB
152232008-11-06 Juanma Barranquero <lekktu@gmail.com>
15224
15225 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
15226
a1dd2936
GM
152272008-11-06 Glenn Morris <rgm@gnu.org>
15228
15229 * xterm.c (handle_one_xevent): Don't let popup menus cause
15230 mouse-autoselect-window related window switching. (Bug#1261)
15231
860cd236
CY
152322008-11-04 David Smith <davidsmith@acm.org> (tiny change)
15233
15234 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
15235
653a3150
AS
152362008-11-04 Andreas Schwab <schwab@suse.de>
15237
15238 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
15239
870f5cac
CY
152402008-11-03 Chong Yidong <cyd@stupidchicken.com>
15241
15242 * xfns.c (Fx_wm_set_size_hint): New function.
15243
1e02f3cb
MR
152442008-11-03 Martin Rudalics <rudalics@gmx.at>
15245
15246 * textprop.c (Fprevious_single_char_property_change): Return 0
15247 when there's no change in a string. (Bug#1301)
15248
e630dfc6
MR
152492008-11-02 Martin Rudalics <rudalics@gmx.at>
15250
15251 * frame.c (do_switch_frame): New argument NORECORD passed to
15252 Fselect_window.
15253 (Fselect_frame): New argument NORECORD passed to
15254 do_switch_frame.
15255 (Fset_frame_selected_window): New argument NORECORD passed to
15256 Fselect_frame.
15257 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
15258 in call of do_switch_frame.
15259 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
15260 Handle NORECORD argument in call of Fselect_frame.
15261 * lisp.h (do_switch_frame, Fselect_frame)
15262 (Fset_frame_selected_window): Adjust declarations.
15263 * window.c (select_frame_norecord): New function.
15264 (run_window_configuration_change_hook): Use it and call
15265 Fselect_frame with NORECORD set.
15266 (Fselect_window): Pass NORECORD to Fselect_frame.
15267 (Fset_window_configuration): Handle NORECORD argument in call of
15268 do_switch_frame.
15269 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
15270 Fset_frame_selected_window.
15271 * keyboard.c (command_loop_1): Handle NORECORD in call of
15272 Fselect_frame (currently ifdefd).
15273
9020b223
GM
152742008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
15275
15276 * emacs.c (USAGE2): Untabify.
15277
793ffee8
SM
152782008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
15279
15280 * composite.c (fill_gstring_header): Fix copy/paste typo.
15281
ab6d1131
MR
152822008-10-31 Martin Rudalics <rudalics@gmx.at>
15283
15284 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
15285 (Fother_window): Rename argument and rewrite doc-string.
15286 (select_window_norecord): Fix return value. (Bug#1276)
15287
601a9cf1
JB
152882008-10-30 Juanma Barranquero <lekktu@gmail.com>
15289
15290 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
15291 new frames overriding foreground for tooltips. Based on similar patch
15292 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
15293
813b0652
CY
152942008-10-29 Chong Yidong <cyd@stupidchicken.com>
15295
15296 * emacs.c (Fdaemon_initialized): Initialize nfd.
15297
4414f58f
MR
152982008-10-29 Martin Rudalics <rudalics@gmx.at>
15299
15300 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
15301 (Fwindow_text_height): Clarify doc-strings.
15302 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
15303 doc-string of window-scroll-functions.
15304
ecdcaa09
RS
153052008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
15306
15307 * category.c (syms_of_category): Fix typo in docstring.
15308
23fe745a
JB
153092008-10-28 Juanma Barranquero <lekktu@gmail.com>
15310
15311 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
15312 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
15313 Fix typos in docstrings.
15314
ff808935
DN
153152008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
15316
15317 * emacs.c (daemon_pipe): Make non-static.
15318 (IS_DAEMON): Move definition ...
15319 * lisp.h (IS_DAEMON): ... here.
15320 (daemon_pipe): Declare.
15321 (is_daemon): Remove.
15322 * dispnew.c (init_display): Use IS_DAEMON.
15323
fc012771
SM
153242008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
15325
15326 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
15327 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
15328
15329 * emacs.c (is_daemon): Remove.
15330 (main): Don't set is_daemon.
15331 (IS_DAEMON): New macro.
15332 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 15333 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
15334 parent exits.
15335 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
15336
d8bdbe6f
CY
153372008-10-27 Chong Yidong <cyd@stupidchicken.com>
15338
d1a072bf
CY
15339 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
15340 over-sized glyph, draw it with the default glyph width.
15341
e2e325aa
CY
15342 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
15343 glyph, draw it with the default glyph width.
15344
15345 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
15346 glyph, draw it with the default glyph width.
15347
d8bdbe6f
CY
15348 * xdisp.c (try_scrolling): When computing the distance from the
15349 scroll margin to PT, try moving some distance past the window
15350 bottom before giving up.
15351
7bfac547
MR
153522008-10-27 Martin Rudalics <rudalics@gmx.at>
15353
15354 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
15355 (Fset_window_buffer): Explain in doc-string that a window can be
15356 "strongly" dedicated to its buffer.
15357
4ff029f6
DN
153582008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
15359
15360 * emacs.c (daemon_name): New variable.
15361 (main): Deal with --daemon=SERVER_NAME.
15362 (Fdaemonp): Return a name if one was passed to --daemon.
15363
5790ef40
DN
153642008-10-26 Romain Francoise <romain@orebokech.com>
15365
f9bd0df9 15366 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
15367 (main): Create a pipe before forking, make the parent exit only after
15368 the child has closed its end of the pipe. Move closing the
15369 descriptors ...
15370 (Fdaemon_initialized): ... here. New function.
15371
f5385255
SM
153722008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
15373
4d632321
SM
15374 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
15375 the previous unoptimized table.
15376
f5385255
SM
15377 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
15378 the distinction between non-nil and non-t value of `dedicated'.
15379
6c56a0f3
CY
153802008-10-25 Chong Yidong <cyd@stupidchicken.com>
15381
15382 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 15383 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 15384
fec89261
MR
153852008-10-25 Martin Rudalics <rudalics@gmx.at>
15386
15387 * window.c (Fget_buffer_window, Fdelete_windows_on)
15388 (Freplace_buffer_in_windows): Make buffer argument optional and
15389 rename to buffer_or_name.
15390
34fcddd0
CY
153912008-10-24 Chong Yidong <cyd@stupidchicken.com>
15392
f5385255
SM
15393 * xdisp.c (handle_single_display_spec, handle_display_prop):
15394 Undo 2005-05-16 change.
34fcddd0
CY
15395 (handle_stop): Pop iterator if it's loaded with an empty string.
15396 (get_overlay_strings_1): Don't save iterator if it's loaded with
15397 an empty string (bug#1201).
15398
064766f2
KH
153992008-10-24 Kenichi Handa <handa@m17n.org>
15400
15401 * ftfont.c (ftfont_otf_features): Fix previous change.
15402 (ftfont_otf_capability): Check FeatureList.FeatureCount before
15403 calling ftfont_otf_features.
15404
f9bd0df9 154052008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
15406
15407 * font.c (font_match_p): Fix for the case that a vector of
15408 characters is in script-representative-chars.
15409
1dae9197
MA
154102008-10-24 Michael Albinus <michael.albinus@gmx.de>
15411
15412 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 15413 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
15414 (xd_read_queued_messages): Catch Qdbus_error from the macros.
15415 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 15416 macro. (Bug#1186)
1dae9197 15417
f9bd0df9 154182008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
15419
15420 * s/sol2-10.h: New file.
15421
878a4584
JB
154222008-10-23 Juanma Barranquero <lekktu@gmail.com>
15423
15424 * xdisp.c (fill_glyph_string): Fix typo in source (though the
15425 poor beast has survived 9+ years and the jump from xterm.c!).
15426
cd265ca6
MR
154272008-10-23 Martin Rudalics <rudalics@gmx.at>
15428
15429 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
15430 Reword doc-string.
f5385255 15431 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 15432
472a4dc9
JB
154332008-10-23 Juanma Barranquero <lekktu@gmail.com>
15434
15435 * character.c (syms_of_character) <script-representative-chars>:
15436 <unicode-category-table>: Doc fixes.
15437
159bd5a2
NF
154382008-10-23 Noah Friedman <friedman@splode.com>
15439
15440 * coding.c (make_conversion_work_buffer): Check that
15441 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
15442 Fget_buffer_create.
15443
49f9c344
KH
154442008-10-23 Kenichi Handa <handa@m17n.org>
15445
15446 * font.c (font_add_log): Check the values of extra properties.
15447
12bb3111
MR
154482008-10-22 Martin Rudalics <rudalics@gmx.at>
15449
15450 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
15451 Reword doc-string.
15452 (Fset_window_parameter): Use NILP.
15453 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 15454 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 15455
bbeb4e99
JB
154562008-10-22 Juanma Barranquero <lekktu@gmail.com>
15457
15458 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
15459
154602008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
15461
15462 * nsfns.m (ns_appkit_version): New function.
15463 (x-server-version): Use it.
15464 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
15465 (x-server-vendor): Don't check_ns().
15466
15467 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
15468
a9b555d3
JB
154692008-10-22 Juanma Barranquero <lekktu@gmail.com>
15470
15471 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
15472 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
15473
4626499f
KH
154742008-10-22 Kenichi Handa <handa@m17n.org>
15475
e3681952
KH
15476 * syntax.c (scan_words): Call word_boundary_p instead of comparing
15477 scripts.
15478
4626499f
KH
15479 * category.c (word_boundary_p): Check scripts instead of charset.
15480 Handle nil value in word-separating-categories and
15481 word-combining-categories.
15482 (syms_of_category): Fix docstrings of word-separating-categories
15483 and word-combining-categories.
15484
1560f91a
EZ
154852008-10-21 Eli Zaretskii <eliz@gnu.org>
15486
15487 * coding.c (Fencode_coding_region, Fdecode_coding_region)
15488 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
15489
f4668441
MR
154902008-10-21 Martin Rudalics <rudalics@gmx.at>
15491
15492 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
15493 Rename arg "buffer" to "buffer_or_name".
15494 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
15495 it optional.
15496 (no_switch_window): Remove since the return value is not used.
a9b555d3 15497 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
15498 Consider window as dedicated when Fwindow_dedicated_p returns a
15499 non-nil value.
15500 * lisp.h: Remove prototype for no_switch_window.
15501
fd75ddb2
JD
155022008-10-21 Jan Djärv <jan.h.d@swipnet.se>
15503
15504 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 15505 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 15506
07295713
KH
155072008-10-21 Kenichi Handa <handa@m17n.org>
15508
15509 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
15510 check Vlatin_extra_code_table.
15511
712adc82
EZ
155122008-10-20 Eli Zaretskii <eliz@gnu.org>
15513
15514 * fileio.c (Fset_file_modes): Doc fix.
15515
f549eb0b
MA
155162008-10-19 Michael Albinus <michael.albinus@gmx.de>
15517
15518 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
15519 in arrays.
15520
aac0c6e3
MR
155212008-10-19 Martin Rudalics <rudalics@gmx.at>
15522
15523 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
15524 Mention kill-buffer in doc-string.
15525 (Fset_window_buffer): Reinsert tem check removed in last commit.
15526 (Fenlarge_window, Fshrink_window): Have argument names and
15527 doc-string follow Elisp manual more closely.
15528
155292008-10-18 Eli Zaretskii <eliz@gnu.org>
15530
15531 * fileio.c (Fset_file_modes): Doc fix.
15532
155332008-10-18 Martin Rudalics <rudalics@gmx.at>
15534
15535 * window.c (Fwindow_width, Fset_window_start)
15536 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
15537 (Fdelete_windows_on, Freplace_buffer_in_windows):
15538 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
15539 (Fwindow_dedicated_p): Make window argument optional.
15540 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
15541 (Fset_window_buffer): Respect any non-nil dedicated value for
15542 window. Rename "buffer" argument to "buffer_or_name".
15543
155442008-10-18 Ulrich Mueller <ulm@gentoo.org>
15545
15546 * m/sh3.h: New file, machine description for SuperH.
15547
155482008-10-17 Martin Rudalics <rudalics@gmx.at>
15549
15550 * window.c (Fsplit_window): Rename arg horflag to horizontal.
15551
155522008-10-17 Kenichi Handa <handa@m17n.org>
15553
15554 * ftfont.c (ftfont_otf_features): Fix indexing
15555 gsub_gpos->FeatureList.Feature. Check the validity of indices.
15556
155572008-10-16 Magnus Henoch <mange@freemail.hu>
15558
15559 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
15560 (Fdbus_call_method_asynchronously): Ditto.
15561 This change makes C-h f display the argument list.
15562
155632008-10-16 Chong Yidong <cyd@stupidchicken.com>
15564
15565 * fileio.c (Fexpand_file_name): Doc fix.
15566
15567 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
15568 of :foreground and :background equivalent to unspecified (20.x
15569 compatibility).
15570
155712008-10-15 Eli Zaretskii <eliz@gnu.org>
15572
15573 * buffer.c (syms_of_buffer): Doc fix.
15574
155752008-10-14 Kenichi Handa <handa@m17n.org>
15576
15577 * font.c (font_clear_prop): When clearing font width, clear the
15578 average width field too.
15579
155802008-10-12 Andreas Schwab <schwab@suse.de>
15581
15582 * ftfont.c (ftfont_shape_by_flt): Make static.
15583 * ftfont.h (ftfont_shape_by_flt): Don't declare.
15584
15585 * font.c: Don't include <m17n-flt.h>.
15586
155872008-10-10 Eli Zaretskii <eliz@gnu.org>
15588
15589 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
15590
155912008-10-09 Eli Zaretskii <eliz@gnu.org>
15592
15593 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
15594 away code.
15595
155962008-10-09 Chong Yidong <cyd@stupidchicken.com>
15597
15598 * dispnew.c (update_text_area): Avoid looping due to large glyph
15599 overhangs (bug#1070).
15600
156012008-10-09 Kenichi Handa <handa@m17n.org>
15602
15603 * fontset.c (face_for_char): If face->fontset is negative, just
15604 return ascii_face.
15605
f5385255
SM
15606 * font.c (font_delete_unmatched): Fix previous change.
15607 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
15608
156092008-10-09 Martin Rudalics <rudalics@gmx.at>
15610
15611 * frame.c (Fraise_frame): On text-only terminals select frame in
15612 order to make it visible. (Bug#1061)
15613
156142008-10-08 Chong Yidong <cyd@stupidchicken.com>
15615
15616 * fontset.c (fontset_find_font): Check frame validity.
15617
156182008-10-07 Chong Yidong <cyd@stupidchicken.com>
15619
a9b555d3 15620 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
15621 (xg_display_close): Allow Emacs to close all displays (bug#985).
15622
156232008-10-06 Andreas Schwab <schwab@suse.de>
15624
f5385255 15625 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
15626
156272008-10-06 Chong Yidong <cyd@stupidchicken.com>
15628
f5385255 15629 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 15630
a9b555d3 15631 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
15632
15633 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
15634 during initialization.
15635
156362008-10-04 Eli Zaretskii <eliz@gnu.org>
15637
15638 * xdisp.c (redisplay_internal): If frame switched, redisplay the
15639 whole thing on MSDOS frames as well as on a TTY.
15640
15641 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
15642 well as for TTY.
15643 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
15644 well as on a TTY.
15645
15646 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
15647 as well as for TTY.
15648
15649 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
15650
15651 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
15652 MSDOS frames as well.
15653
156542008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
15655
15656 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
15657 correct arguments.
b71ac3dd 15658 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
15659
156602008-10-03 Glenn Morris <rgm@gnu.org>
15661
15662 * emacs.c (USAGE1): Add --daemon.
15663
156642008-10-02 Eli Zaretskii <eliz@gnu.org>
15665
15666 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
15667 100, so it's in percents as advertised.
15668
156692008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
15670
15671 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
15672 (ns_output.current_cursor, ns_output.desired_cursor)
15673 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
15674 (FRAME_NEW_CURSOR_COLOR): Remove.
15675
15676 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 15677 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
15678 enumeration (HOLLOW_BOX_CURSOR, etc.).
15679
15680 * nsterm.m (ns_frame_rehighlight): Remove commented code.
15681 (draw_window_cursor): Simplify code.
f5385255
SM
15682 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
15683 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 15684 updates manually.
a9b555d3
JB
15685 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
15686 Use core Emacs cursor types.
aac0c6e3 15687
b8ff72fa 15688 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
15689
156902008-10-02 Martin Rudalics <rudalics@gmx.at>
15691
15692 * process.c (Faccept_process_output): Fix doc-string.
15693
156942008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
15695
15696 * gmalloc.c (__sbrk): Also define for uClibc.
15697
15698 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
15699 for uClibc.
15700
157012008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15702
15703 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
15704 styles.
15705 (nsfont_open): Reenable the cache.
15706
157072008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15708
15709 * font.c (font_matching_entity): Reflect ATTRS in font selection.
15710 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
15711
157122008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
15713
15714 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
15715 a suspended terminal.
15716
157172008-09-30 Michael Albinus <michael.albinus@gmx.de>
15718
15719 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
15720
157212008-09-30 Eli Zaretskii <eliz@gnu.org>
15722
15723 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
15724
157252008-09-30 Chong Yidong <cyd@stupidchicken.com>
15726
15727 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
15728 in a continued line coincides with a line beginning.
15729
157302008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15731
15732 * nsfont.m (nsfont_trait_distance): Fix bug.
15733 (nsfont_list): Return a list rather than a vector (syncs with Handa
15734 changes of 2008-05-14).
15735 (nsfont_open): Improve logging.
15736
157372008-09-29 Andreas Schwab <schwab@suse.de>
15738
15739 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
15740
157412008-09-28 Martin Rudalics <rudalics@gmx.at>
15742
15743 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
15744 name as char-resolve-modifiers.
15745 Reported by: Markus Triska <markus.triska@gmx.at>
15746
157472008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
15748
15749 * dispnew.c (init_display): Return earlier when running as a daemon.
15750
157512008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
15752
15753 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
15754
157552008-09-27 Eli Zaretskii <eliz@gnu.org>
15756
15757 * composite.c (Fcomposition_get_gstring)
15758 (Fcompose_region_internal, Fcompose_string_internal)
15759 (Ffind_composition_internal): Doc fix.
15760 (syms_of_composite) <compose-chars-after-function>: Doc fix.
15761 (syms_of_composite) <auto-composition-function>: Doc fix.
15762 (syms_of_composite) <composition-function-table>: Doc fix.
15763
157642008-09-25 Chong Yidong <cyd@stupidchicken.com>
15765
15766 * search.c (wordify): New argument for lax word-ends.
15767 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
15768
157692008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
15770
15771 * lisp.h (is_daemon): Declare.
15772 * dispnew.c (init_display): Do not try to initialize the terminal
15773 when running as a daemon.
15774
157752008-09-22 Chong Yidong <cyd@stupidchicken.com>
15776
15777 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
15778 x_display_pixel_height.
15779
157802008-09-22 Martin Rudalics <rudalics@gmx.at>
15781
15782 * undo.c (record_point): Don't call Fundo_boundary for first
15783 change. (Bug#731)
15784
157852008-09-22 Juanma Barranquero <lekktu@gmail.com>
15786
15787 * emacs.c (Fdaemonp): Doc fix.
15788
157892008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
15790
15791 * emacs.c (main): Place #ifdef in the proper place.
15792
157932008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15794
15795 * emacs.c (standard_args): Add --daemon.
15796 (main): Disconnect from the terminal when --daemon is passed.
15797 (is_daemon): New variable.
15798 (Fdaemonp): New function.
15799 (syms_of_emacs): Defsubr it.
15800
158012008-09-20 Chong Yidong <cyd@stupidchicken.com>
15802
15803 * xdisp.c (get_next_display_element): Handle string display
15804 correctly when checking for the end of a box run.
15805
158062008-09-20 Glenn Morris <rgm@gnu.org>
15807
15808 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
15809 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
15810 (Frename_file): Avoid copying to trash if a rename involves
15811 a delete. (Bug#964).
15812
158132008-09-20 Eli Zaretskii <eliz@gnu.org>
15814
15815 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
15816 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
15817 frames as well as termcap frames.
15818 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
15819 get_named_tty.
15820
158212008-09-19 Eli Zaretskii <eliz@gnu.org>
15822
15823 * process.c (procfs_system_process_attributes): Fix cmdline in
15824 case /proc/PID/cmdline is empty.
15825
15826 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
15827 x_display_pixel_height.
15828
158292008-09-19 Juanma Barranquero <lekktu@gmail.com>
15830
15831 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
15832
15833 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15834 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
15835
158362008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
15837
15838 * dispextern.h (struct it): Move line_wrap away from the middle of
15839 bitfields. Move voffset in struct iterator_stack_entry after the
15840 bitfields. Move tab_width near after another short.
15841
158422008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
15843
15844 * frame.h (struct frame): Move alpha from the middle of bitfields.
15845
15846 * window.h (struct window): Move frozen_window_start_p after the
15847 rest of the bitfields to reduce padding.
15848
158492008-09-18 Chong Yidong <cyd@stupidchicken.com>
15850
15851 * xterm.h (x_display_info): Remove `height' and `width' members.
15852
15853 * nsterm.h (ns_display_info): Remove `height' and `width' members.
15854
15855 * w32term.h (w32_display_info): Remove `height', `width',
15856 `height_in', and `width_in' members.
15857
b8ff72fa
SM
15858 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15859 New functions.
aac0c6e3
MR
15860 (x_calc_absolute_position): Use them.
15861 (x_term_init): Omit removed `height' and `width' members.
15862
b8ff72fa
SM
15863 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15864 New functions.
aac0c6e3
MR
15865 (w32_read_socket, x_calc_absolute_position): Use them.
15866 (w32_initialize_display_info, w32_term_init): Omit removed members
15867 of w32_display_info.
15868
b8ff72fa
SM
15869 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
15870 New functions.
15871 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 15872
b8ff72fa
SM
15873 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15874 New functions.
aac0c6e3
MR
15875 (x_calc_absolute_position): Use them.
15876 (x_term_init): Omit removed `height' and `width' members.
15877
15878 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
15879 (compute_tip_xy):
15880 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
15881 * xmenu.c (menu_position_func): Use x_display_pixel_height and
15882 x_display_pixel_width.
15883
158842008-09-18 Kenichi Handa <handa@m17n.org>
15885
15886 * composite.c (fill_gstring_header): Don't check FROM and TO here.
15887 (composition_compute_stop_pos): Fix handling of static composition.
15888 (Fcomposition_get_gstring): Check FROM and TO at first.
15889
158902008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
15891
46e722a9 15892 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
15893 mixup (YAILOM).
15894
158952008-09-17 Chong Yidong <cyd@stupidchicken.com>
15896
15897 * indent.c (Fvertical_motion): Use position reported by iterator
15898 instead of PT for determining screen motion (bug#943).
15899
159002008-09-17 Romain Francoise <romain@orebokech.com>
15901
15902 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
15903
159042008-09-17 Kenichi Handa <handa@m17n.org>
15905
15906 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
15907
15908 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
15909 if necessary.
15910
159112008-09-16 Kenichi Handa <handa@m17n.org>
15912
15913 * coding.c (make_conversion_work_buffer): Avoid calling
15914 Fget_buffer_create if it is not necessary.
15915
159162008-09-15 Martin Rudalics <rudalics@gmx.at>
15917
15918 * window.c (Fselect_window): Don't update window_select_count and
15919 use_time when norecord is not nil.
15920
159212008-09-14 Kenichi Handa <handa@m17n.org>
15922
15923 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
15924 specpdl_ptr.
15925
159262008-09-12 Kenichi Handa <handa@m17n.org>
15927
15928 * indent.c (scan_for_column): Don't handle automatic composition
15929 if the current buffer is not associated with a window.
15930
15931 * composite.c (composition_reseat_it): If the current buffer is
15932 not associated with a window, ignore the automatic composition.
15933 (find_automatic_composition): Likewise.
15934
159352008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15936
15937 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
15938 (Fgpm_mouse_stop): Use it.
15939 * termhooks.h (close_gpm): Declare.
15940 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
15941 connection if Gpm_GetEvent fails.
15942
15943 * window.c (set_window_buffer): Always preserve current-buffer.
15944
159452008-09-12 Glenn Morris <rgm@gnu.org>
15946
15947 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
15948
159492008-09-11 Glenn Morris <rgm@gnu.org>
15950
15951 * charset.c (charset-map-path): Doc fix.
15952
159532008-09-10 Kenichi Handa <handa@m17n.org>
15954
15955 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
15956
15957 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
15958 compose a grapheme cluster with the preceding base glyph.
15959
15960 * composite.c (composition_compute_stop_pos): Fix previous change.
15961 Reset cmp_it->id to -1 at first.
15962
159632008-09-10 Glenn Morris <rgm@gnu.org>
15964
15965 * Makefile.in (character.o, chartab.o): Fix config.h typo.
15966
159672008-09-09 Chong Yidong <cyd@stupidchicken.com>
15968
15969 * keyboard.c (read_key_sequence): Reapply translation maps when
15970 switching keyboards.
15971
159722008-09-09 Kenichi Handa <handa@m17n.org>
15973
15974 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
15975 characters.
15976
15977 * composite.c (FORWARD_CHAR): Fix calculation
15978 of (POSITION).pos_byte.
15979 (composition_compute_stop_pos): Limit the search of composition to
15980 at most 500 characters ahead. If we reach the limit or find a
15981 newline, set cmp_it->ch to -2 and return 0.
15982 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
15983
159842008-09-08 Kenichi Handa <handa@m17n.org>
15985
15986 * indent.c (Fvertical_motion): Be sure to set
15987 it_overshoot_expected if it.cmp_it.id is non-negative.
15988
159892008-09-07 Andreas Schwab <schwab@suse.de>
15990
15991 * callproc.c (Fcall_process): Don't hold references to string data
15992 across garbage collection. Move initialisation of new_argv down
15993 to avoid compiler bug.
15994
159952008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15996
15997 * process.c (Fsystem_process_attributes): Doc fix.
15998
159992008-09-07 Chong Yidong <cyd@stupidchicken.com>
16000
16001 * callproc.c (Fcall_process): Canonicalize current directory name.
16002
16003 * xdisp.c (move_it_to): When moving by vpos, ensure that the
16004 iterator advances to the next line if the current line ends in a
16005 continued tab.
16006
160072008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
16008
16009 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
16010 member to point to cmp_from.
16011
16012 * xdisp.c: Doc fix for references to gidx data member.
16013
160142008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16015
16016 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
16017
160182008-09-07 Kenichi Handa <handa@m17n.org>
16019
16020 * composite.c (FORWARD_CHAR): Check STOP after
16021 incrementing (POSITION).pos.
16022
160232008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16024
16025 * process.c (Fsystem_process_attributes): Doc fix.
16026
160272008-09-06 Chong Yidong <cyd@stupidchicken.com>
16028
16029 * keyboard.c (Ftop_level): Doc fix.
16030
160312008-09-06 Eli Zaretskii <eliz@gnu.org>
16032
16033 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
16034 minibuffer, don't let lower part of menu invade the echo area.
16035
16036 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
16037 "char *q" to access menu text and advance through it. Revert the
16038 change that displayed ">" instead of ASCII character 0x10.
16039
160402008-09-05 Eli Zaretskii <eliz@gnu.org>
16041
16042 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
16043 toggle boxes and radio buttons on MS-DOS as well.
16044
160452008-09-05 Kenichi Handa <handa@m17n.org>
16046
16047 * composite.c (autocmp_chars): Check lookback count.
16048 (composition_compute_stop_pos): Set cmp_it->lookback.
16049 (composition_reseat_it): Check lookback count.
16050 (struct position_record): New struct.
16051 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
16052 (find_automatic_composition): New function.
16053 (composition_adjust_point): Use find_automatic_composition.
16054
16055 * dispextern.h (struct composition_it): New member lookback.
16056
160572008-09-02 Chong Yidong <cyd@stupidchicken.com>
16058
16059 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
16060 if moving by a single line.
16061
160622008-09-02 Andreas Schwab <schwab@suse.de>
16063
16064 * xterm.c (x_delete_display): Fix merge error.
16065
16066 * fileio.c (Fexpand_file_name): Remove unused variables.
16067
160682008-09-02 Eli Zaretskii <eliz@gnu.org>
16069
16070 * fileio.c (Fexpand_file_name): Copy argument `name' into local
16071 storage on all platforms, not just on DOS_NT.
16072
160732008-09-02 Jason Rumney <jasonr@gnu.org>
16074
b8ff72fa
SM
16075 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
16076 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
16077
160782008-09-01 Chong Yidong <cyd@stupidchicken.com>
16079
16080 * xfaces.c (Finternal_set_alternative_font_family_alist)
16081 (Finternal_set_alternative_font_registry_alist): Properly copy
16082 entire alist structure.
16083
160842008-09-01 Kenichi Handa <handa@m17n.org>
16085
d66c0241 16086 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 16087 representative chars of the script is a vector.
d66c0241
JB
16088 (ftfont_list): Handle the case where the representative chars of
16089 the script is a vector.
aac0c6e3
MR
16090
16091 * character.c (syms_of_character): Docstring of
16092 script-representative-chars fixed.
16093
160942008-08-31 Eli Zaretskii <eliz@gnu.org>
16095
16096 * msdos.c (BUILD_CHAR_GLYPH): New macro.
16097 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
16098 the menu. Allocate larger buffer for `text', to account for
16099 possible ^C characters.
16100
161012008-08-31 Martin Rudalics <rudalics@gmx.at>
16102
16103 * xdisp.c (prepare_menu_bars): Don't call
16104 Vwindow_size_change_functions with arg Qt.
16105
161062008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16107
16108 * font.h (font_range):
16109 * fileio.c (report_file_error):
46e722a9
SM
16110 * composite.c (composition_update_it): Yet another int/Lisp_Object
16111 mixup (YAILOM).
aac0c6e3
MR
16112
161132008-08-30 Glenn Morris <rgm@gnu.org>
16114
16115 * data.c (Fmake_variable_frame_local): Doc fix.
16116
16117 * frame.c (Fmodify_frame_parameters): Doc fix.
16118
161192008-08-30 Eli Zaretskii <eliz@gnu.org>
16120
16121 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
16122 needed by GetTokenInformation.
16123 (w32_system_process_attributes): Check return values of all system
16124 APIs.
16125
16126 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
16127 only when the state changes.
16128 (IT_update_begin, IT_update_end): Add termscript trace.
16129
16130 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
16131 clipboard is unavailable. Set dst to NULL if it doesn't point to
16132 malloc'ed data.
16133 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
16134 passing random values to xfree.
16135
16136 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 16137 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
16138
161392008-08-29 Jason Rumney <jasonr@gnu.org>
16140
16141 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
16142
161432008-08-29 Eli Zaretskii <eliz@gnu.org>
16144
16145 * composite.c (fill_gstring_body): Avoid compiler warnings.
16146
16147 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
16148 LGLYPH_SET_CODE to avoid compiler warnings.
16149
2ae37cf0 16150 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
16151
16152 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
16153
16154 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
16155 LGLYPH_SET_CODE.
16156
161572008-08-29 Kenichi Handa <handa@m17n.org>
16158
16159 * fileio.c (report_file_error): Don't downcase the first character
16160 of errstring if it is still unibyte.
16161
161622008-08-29 Kenichi Handa <handa@m17n.org>
16163
16164 These changes are to re-implement the automatic composition so
16165 that it doesn't use text properties.
16166
16167 * Makefile.in (ftfont.o): Depend on composite.h.
16168 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
16169
16170 * character.h (Vunicode_category_table): Extern it.
16171
16172 * character.c (Vunicode_category_table): New variable.
16173 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
16174
16175 * chartab.c (optimize_sub_char_table): Perform more greedy
16176 optimization.
16177
b8ff72fa
SM
16178 * composite.h (enum composition_method):
16179 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
16180 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
16181 (Vcomposition_function_table): Extern it.
16182 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
16183 (composition_gstring_put_cache, composition_gstring_from_id)
16184 (composition_gstring_p, composition_gstring_width)
16185 (composition_compute_stop_pos, composition_reseat_it)
16186 (composition_update_it, composition_adjust_point): Extern them.
16187 (Fcomposition_get_gstring): EXFUN it.
16188
d66c0241 16189 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
16190 (Vcomposition_function_table)
16191 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
16192 (gstring_hash_table, gstring_work, gstring_work_headers):
16193 New variables.
aac0c6e3
MR
16194 (gstring_lookup_cache, composition_gstring_put_cache)
16195 (composition_gstring_from_id, composition_gstring_p)
16196 (composition_gstring_width, fill_gstring_header)
16197 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
16198 (composition_reseat_it, composition_update_it)
b8ff72fa 16199 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
16200 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
16201 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 16202 Defsubr composition_get_gstring.
aac0c6e3
MR
16203
16204 * dispextern.h (struct glyph): New union u.cmp. Delete the member
16205 cmp_id.
16206 (struct glyph_string): Delete the member gidx. New members
16207 cmp_id, cmp_from, and cmp_to.
16208 (enum it_method): Delete GET_FROM_COMPOSITION.
16209 (struct composition_it): New struct.
16210 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
16211 Delete c, len, cmp_id, cmp_len in u.comp.
16212
16213 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 16214 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 16215 (enum lglyph_indices): Likewise.
b8ff72fa 16216 (font_range): Adjust extern.
aac0c6e3
MR
16217 (font_fill_lglyph_metrics): Extern it.
16218
16219 * font.c (QCf): New variable.
16220 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16221 (font_prepare_composition): Delete this function.
16222 (font_range): Type and arguments changed.
16223 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
16224 (font_fill_lglyph_metrics): New function.
b8ff72fa 16225 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 16226 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
16227 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
16228 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
16229
16230 * fontset.h (font_for_char): Extern it.
16231
16232 * fontset.c (font_for_char): New function.
16233
16234 * ftfont.c: Include composite.h.
16235 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 16236 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
16237
16238 * indent.c: Include composite.h and dispextern.h.
16239 (check_composition): Delete this function.
16240 (scan_for_column): Handle composition by
16241 composition_compute_stop_pos, composition_reseat_it, and
16242 composition_update_it.
16243 (compute_motion): Likewise.
16244 (Fvertical_motion): Fix checking of composition.
16245
16246 * keyboard.c (adjust_point_for_property): Check composition by
16247 composition_adjust_point.
16248
b8ff72fa 16249 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
16250 struct glyph_string.
16251
b8ff72fa
SM
16252 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
16253 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
16254 struct glyph.
16255 (produce_composite_glyph): Likewise.
16256
b8ff72fa
SM
16257 * w32term.c (x_draw_composite_glyph_string_foreground):
16258 Adjust for the change of struct glyph_string.
aac0c6e3
MR
16259 (x_draw_glyph_string): Likewise.
16260
16261 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
16262 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16263
16264 * xdisp.c: Include font.h.
16265 (it_props): Delete the entry for Qauto_composed.
16266 (init_iterator): Initialize it->cmp_it.id to -1.
16267 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 16268 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
16269 (handle_auto_composed_prop): Delete it.
16270 (handle_composition_prop): Handle only static composition.
16271 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
16272 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 16273 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
16274 (pop_it): Likewise.
16275 (get_next_element): Delete next_element_from_composition.
16276 (CHAR_COMPOSED_P): New macro.
16277 (get_next_display_element): For automatic composition, get a face
16278 from the font in the glyph-string.
16279 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 16280 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
16281 (next_element_from_string): Check if the character at the current
16282 position is composed by CHAR_COMPOSED_P.
16283 (next_element_from_buffer): Likewise.
d66c0241
JB
16284 (next_element_from_composition): Adjust for the change of struct it.
16285 Update it->cmp_it.
b8ff72fa
SM
16286 (dump_glyph): Adjust for the change of struct glyph.
16287 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
16288 it and struct glyph. Don't handle automatic composition here.
16289 (fill_gstring_glyph_string): New function.
16290 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 16291 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
16292 (BUILD_GSTRING_GLYPH_STRING): New macro.
16293 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
16294 automatic composition.
b8ff72fa 16295 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 16296 struct glyph.
b8ff72fa 16297 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 16298
b8ff72fa 16299 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
16300 the change of struct glyph_string.
16301 (x_draw_glyph_string): Likewise.
16302
163032008-08-29 Glenn Morris <rgm@gnu.org>
16304
16305 * buffer.c (word-wrap): Doc fix.
16306 * xdisp.c (truncate-partial-width-windows): Doc fix.
16307 Increase default to 50.
16308
163092008-08-29 Chong Yidong <cyd@stupidchicken.com>
16310
16311 * xdisp.c (update_tool_bar_unwind): New function.
16312 (update_tool_bar): Temporarily set selected frame before building
16313 tool-bar items.
16314
163152008-08-28 Michael Albinus <michael.albinus@gmx.de>
16316
16317 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
16318 snprintf, respectively.
16319 (xd_append_arg): Convert strings with Fstring_make_unibyte.
16320
163212008-08-28 Chong Yidong <cyd@stupidchicken.com>
16322
16323 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
16324 LDFLAGS to GNUstep CC invocation.
16325
163262008-08-27 Chong Yidong <cyd@stupidchicken.com>
16327
16328 * indent.c (Fvertical_motion): Revert last change. Handle the
16329 general case where we are moving forward, and PT spans multiple
16330 screen lines.
16331
16332 * eval.c (find_handler_clause): Temporarily increase
16333 max-lisp-eval-depth while printing the backtrace buffer, to
16334 guarantee that help-mode code can run.
16335
163362008-08-27 Eli Zaretskii <eliz@gnu.org>
16337
16338 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
16339 colors under -rv.
16340 (IT_set_frame_parameters): Don't swap foreground and background
16341 colors if `(reverse . t)' is present in the frame properties.
16342 (internal_terminal_init): Call init_frame_faces only for the
16343 initial frame.
16344
163452008-08-27 Andreas Schwab <schwab@suse.de>
16346
16347 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
16348
163492008-08-27 Andreas Schwab <schwab@suse.de>
16350
16351 * search.c (search_buffer): Set char_base to zero only at the end.
16352
163532008-08-27 Kenichi Handa <handa@m17n.org>
16354
b8ff72fa 16355 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
16356
163572008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
16358
16359 * xterm.c (x_term_init): Temporarily hide the partially
16360 initialized terminal while calling vendor-specific-keysyms.
16361
163622008-08-26 Eli Zaretskii <eliz@gnu.org>
16363
16364 * msdos.c (internal_terminal_init): Most initializations done only
16365 once, especially initial_screen_colors[] and termscript open.
16366
163672008-08-26 Chong Yidong <cyd@stupidchicken.com>
16368
16369 * eval.c (Fcondition_case): Doc fix.
16370
16371 * widgetprv.h (EmacsFramePart): Change font member to the new font
16372 struct.
16373
16374 * widget.c: Include character.h and font.h for XSETFONT.
16375 (setup_frame_gcs): Compute X font id from font struct, just once.
16376
163772008-08-26 Eli Zaretskii <eliz@gnu.org>
16378
16379 * term.c (get_named_tty): Fix last change.
16380
163812008-08-26 Chong Yidong <cyd@stupidchicken.com>
16382
16383 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 16384 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
16385
163862008-08-25 Eli Zaretskii <eliz@gnu.org>
16387
16388 * frame.c (do_switch_frame): Mark previously displayed frame as
16389 obscured for FRAME_MSDOS_P frames as well.
16390
163912008-08-24 Eli Zaretskii <eliz@gnu.org>
16392
16393 * frame.c (make_terminal_frame): Initialize f->terminal,
16394 f->terminal->reference_count, and scroll bars on MS-DOS as well.
16395 Set the top frame to newly created frame.
16396 (Fmake_terminal_frame): Reuse the_only_display_info.
16397
16398 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
16399 estimating available memory.
16400
b97439ce 164012008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
16402
16403 * nsterm.m (ns_draw_window_cursor): Don't call
16404 NSDisableScreenUpdates and NSEnableScreenUpdates on
16405 non-NS_IMPL_COCOA systems.
16406
164072008-08-23 Andreas Schwab <schwab@suse.de>
16408
16409 * process.c (procfs_system_process_attributes): Fix use of
16410 uninitialized variables.
16411
164122008-08-23 Eli Zaretskii <eliz@gnu.org>
16413
16414 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
16415
16416 * dispnew.c (init_display): Remove MS-DOS specific conditions for
16417 calling tty-set-up-initial-frame-faces.
16418
b8ff72fa
SM
16419 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
16420 Allow MSDOS frames along with X frames.
aac0c6e3
MR
16421
16422 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
16423 addition to output_termcap.
16424
16425 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
16426
16427 * termchar.h (FRAME_TTY): Support output_msdos_raw.
16428 (struct tty_display_info) [MSDOS]: Add fields related to mouse
16429 highlight.
16430
16431 * process.c [!subprocesses]: Define QCname.
16432 (syms_of_process): Intern and staticpro it.
16433
16434 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
16435 Adjust for changes in encoding/decoding routines.
16436 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
16437 encode_coding and decode_coding.
16438
b8ff72fa 16439 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
16440
16441 * dosfns.c: Include frame.h before termhooks.h.
16442 (dos_cleanup): Use CURTTY ()->termscript instead of a global
16443 variable termscript.
16444
16445 * s/msdos.h (USER_FULL_NAME): Define.
16446 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
16447
16448 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
16449 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
16450 pw->pw_gecos.
16451
16452 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
16453 SELECTED_FRAME as additional (1st) argument.
16454 (tty_read_avail_input): Handle output_msdos_raw in
16455 addition to output_termcap.
16456
16457 * msdos.c: Include frame.h before termhooks.h.
16458 (mouse_on, mouse_off, mouse_moveto, mouse_init)
16459 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
16460 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
16461 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
16462 (IT_set_terminal_modes, IT_reset_terminal_modes)
16463 (IT_set_frame_parameters): Use tty->termscript instead of a global
16464 variable termscript.
16465 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
16466 global variable terminal_coding. Don't refer to
16467 Vnonascii_translation_table.
16468 (internal_terminal_init): Set Vwindow_system in current_kboard.
16469 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
16470 Announce date and time of session start, if termscript is open.
16471 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
16472 term.c:init_tty). Open termscript only of not already open.
16473 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
16474 here instead of dos_ttraw. Don't initialize display if this is an
16475 initial tty. Don't set FRAME_FONT.
16476 (Vwindow_system_version): Bump to 23.
16477 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
16478 is available, set up mouse_position_hook.
16479 (dos_ttraw, IT_set_terminal_modes): If called with initial
16480 terminal, do nothing.
16481 (IT_set_frame_parameters): Handle the Qtty_type frame
16482 parameter by calling internal_terminal_init.
16483 (dos_set_window_size, show_mouse_face)
16484 (clear_mouse_face, IT_note_mode_line_highlight)
16485 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
16486 (dos_rawgetc): Use tty_display_info instead of x_display_info.
16487 (initialize_msdos_display): New function.
16488 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
16489 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
16490 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
16491 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 16492 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
16493 (request_sigio, unrequest_sigio): Don't define, now defined on
16494 sysdep.c.
16495 (IT_write_glyphs): Rewrite to use encode_terminal_code.
16496
16497 * term.c [MSDOS]: Include msdos.h.
16498 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
16499 conditional to DOS_NT. Allow only one call to this function in a
16500 session. Don't allocate a new struct tty_display_info; instead,
16501 reuse the_only_display_info. Call get_tty_size to get screen
16502 dimensions. Call init_baud_rate to set bad_rate.
16503 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
16504 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 16505 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
16506 (get_tty_terminal, get_named_tty, Ftty_type)
16507 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
16508 output_termcap.
b8ff72fa
SM
16509 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
16510 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 16511 only when subprocesses are supported.
aac0c6e3
MR
16512
16513 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
16514 f->output_data.x.
16515 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
16516 terminal devices.
16517
5582fbc7 16518 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
16519 x_output.
16520 (FRAME_FONT): Use output_data.tty.
16521 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
16522 (struct x_display_info): Rename from display_info. Update all users in
16523 msdos.c.
aac0c6e3 16524 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 16525 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
16526 (dos_ttraw): Update prototype.
16527
16528 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
16529 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
16530
165312008-08-23 Jason Rumney <jasonr@gnu.org>
16532
16533 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
16534 (fn_TIFFSetDirectory): New library function used.
16535 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
16536 (tiff_load): Use :index to select among multiple images. Set count
16537 property when multiple images exist.
16538 (gif_format): Use :index, not :image.
16539
165402008-08-23 Chong Yidong <cyd@stupidchicken.com>
16541
16542 * xdisp.c (try_scrolling): Check INT_MAX instead of
16543 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
16544 to obtain INT_MAX.
16545
165462008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
16547
16548 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
16549
165502008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
16551
16552 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
16553 GNUstep library location.
16554
165552008-08-21 Chong Yidong <cyd@stupidchicken.com>
16556
16557 * xfaces.c (x_update_menu_appearance): Check validity of menu font
16558 before using it.
16559
16560 * puresize.h (BASE_PURESIZE): Increase to 1250000.
16561
165622008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16563
16564 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
16565 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
16566 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
16567 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
16568 (EmacsApp-cursor_blink_handler): Remove declaration.
16569 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
16570 match 01 Feb 2008 changes in xterm.c.
16571 (ns_read_socket): Add cast to avoid warning.
16572 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
16573 GNUstep.
16574
165752008-08-20 Chong Yidong <cyd@stupidchicken.com>
16576
16577 * xselect.c (x_get_foreign_selection): Return nil if desired
16578 selection could not be obtained, instead of signalling an error.
16579
165802008-08-20 David Reitter <david.reitter@gmail.com>
16581
16582 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
16583 * nsterm.m: Remove ns-specific code for cursor blinking.
16584 (ns_draw_window_cursor): Clear cursor properly rather than
16585 redrawing the area. Respect width of bar cursors.
16586 These changes enable the use of generic blink-cursor-mode and
16587 generic cursor types in NS and support smooth cursor movements (do
16588 not blink off after command).
16589 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
16590 Nextstep, too.
16591
165922008-08-19 Kenichi Handa <handa@m17n.org>
16593
16594 * font.c (Vfont_log_deferred): New variable.
16595 (font_add_log): Check Vfont_log_deferred.
16596 (font_deferred_log): New function.
16597
16598 * font.h (font_deferred_log): Extern it.
16599
16600 * fontset.c (reorder_font_vector): Use encoding charset of fonts
16601 for sorting.
16602 (face_for_char): Use deferred log.
16603
166042008-08-18 Kenichi Handa <handa@m17n.org>
16605
16606 * fontset.c (face_for_char): Add font log.
16607
16608 * font.c (font_add_log): Add the font properties :script, :lang,
16609 and :otf in the log.
16610
166112008-08-17 Chong Yidong <cyd@stupidchicken.com>
16612
16613 * xdisp.c: Remove dead code.
16614 (handle_invisible_prop, next_overlay_string): Defer call to
16615 setup_for_ellipsis.
16616 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
16617
166182008-08-15 Chong Yidong <cyd@stupidchicken.com>
16619
16620 * xfaces.c (lookup_derived_face): Properly handle possible zero
16621 return value of get_lface_attributes.
16622 (merge_faces): Don't tell lookup_derived_face to signal an error
16623 if face is not found.
16624
16625 * dired.c (Fdirectory_files): Doc fix.
16626
16627 * process.c (make_process): Initialize kill_without_query struct
16628 member.
16629
166302008-08-15 Eli Zaretskii <eliz@gnu.org>
16631
16632 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
16633 Alternative calculation of totphys for Visual Studio 6.
16634
16635 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
16636
16637 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
16638 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
16639 All users changed.
16640 (stat): Only root directory passed to GetDriveType. Allow RAM
16641 disk as well as local fixed disk when w32-get-true-file-attributes
16642 is set to `local'.
16643 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
16644 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
16645 (w32_cached_id, w32_add_to_cache): New functions.
16646 (get_name_and_id): Look account names in the cache before calling
16647 lookup_account_sid.
16648 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
16649 New initialization flags.
16650 (globals_of_w32): Initialize them to zero.
16651 (w32_system_process_attributes): Use w32_cached_id and
16652 w32_add_to_cache.
16653
166542008-08-14 Lawrence Mitchell <wence@gmx.li>
16655
16656 * lread.c (Fread_char, Fread_char_exclusive): If no character
16657 event is read before timeout is reached, return nil, rather than
16658 converting to a number.
16659
166602008-08-14 Chong Yidong <cyd@stupidchicken.com>
16661
16662 * fns.c (use_dialog_box): Doc fix.
16663
16664 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
16665 on OS X.
16666
166672008-08-13 Chong Yidong <cyd@stupidchicken.com>
16668
16669 * frame.c (Qns_parse_geometry): New var.
16670 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
16671
166722008-08-11 Chong Yidong <cyd@stupidchicken.com>
16673
16674 * xdisp.c (x_produce_glyphs): Handle the case when font has no
16675 space character in calculating tabs.
16676
166772008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
16678
16679 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
16680
166812008-08-10 Glenn Morris <rgm@gnu.org>
16682
16683 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
16684 silence gcc "limited range of data type" warnings in some
16685 make_fixnum_or_float calls.
16686
166872008-08-09 Eli Zaretskii <eliz@gnu.org>
16688
16689 * w32.c (w32_system_process_attributes): If the process does not
16690 exist, return nil.
16691
16692 * w32.c: Include thelp32.h, psapi.h and coding.h.
16693 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
16694 declarations.
16695 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
16696 (Process32Next_Proc): New typedefs.
16697 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
16698 (g_b_init_process32_next, g_b_init_open_thread_token)
16699 (g_b_init_impersonate_self, g_b_init_revert_to_self)
16700 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
16701 (g_b_init_get_process_working_set_size)
16702 (g_b_init_global_memory_status_ex): New static variables.
16703 (globals_of_w32): Initialize them.
16704 (create_toolhelp32_snapshot, process32_first, process32_next)
16705 (open_thread_token, impersonate_self, revert_to_self)
16706 (get_process_memory_info, get_process_working_set_size)
16707 (global_memory_status, global_memory_status_ex): New wrapper
16708 functions.
16709 (w32_list_system_processes, w32_system_process_attributes)
16710 (enable_privilege, restore_privilege, ltime, process_times):
16711 New functions.
16712 (convert_time_raw): New function.
16713 (convert_time): Remove conversion of FILETIME into time in 100
16714 nsec units, call convert_time_raw instead.
16715
16716 * process.h (w32_list_system_processes, w32_system_process_attributes):
16717 Add prototypes.
16718 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
16719 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
16720 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
16721 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
16722
16723 * process.c (Fsystem_process_attributes): Doc fix.
16724
167252008-08-08 Chong Yidong <cyd@stupidchicken.com>
16726
16727 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
16728 a continued multi-char glyph; if so, advance to the actual glyph.
16729
167302008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
16731
16732 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
16733
16734 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
16735 (.m.o): Use it.
16736 * config.in: Regenerate.
16737
167382008-08-07 Chong Yidong <cyd@stupidchicken.com>
16739
16740 * xdisp.c (redisplay_window): Revert last change.
16741 (try_window): Check bottom scroll margin too.
16742
167432008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16744
16745 * config.in: Regenerate.
16746
16747 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
16748 -list-load-path-shadows'.
16749 (nsgui.h): Reduce number of things depending on it.
16750
167512008-08-06 Chong Yidong <cyd@stupidchicken.com>
16752
16753 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
16754 instead of window-end which does the wrong thing at eob.
16755 (try_cursor_movement): Minor optimization.
16756 (redisplay_window): If scroll margin is defined, don't assume
16757 window doesn't need scrolling.
16758
167592008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16760
16761 * config.in: Regenerate.
16762
16763 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
16764 (mostlyclean): Don't delete *.d under NS.
16765
16766 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
16767
167682008-08-06 Kenichi Handa <handa@m17n.org>
16769
16770 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
16771
167722008-08-06 Andreas Schwab <schwab@suse.de>
16773
16774 * config.in: Regenerate.
16775
167762008-08-05 Chong Yidong <cyd@stupidchicken.com>
16777
16778 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
16779 forcing a window start.
16780
16781 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
16782 (auto_save_1): Update modtime when auto-save-list-file-name is on.
16783
167842008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16785
16786 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
16787 argument.
16788
167892008-08-05 Juanma Barranquero <lekktu@gmail.com>
16790
16791 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
16792 <scroll-down-aggressively, before-change-functions>:
16793 <after-change-functions>: Reflow docstrings.
16794
167952008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 16796 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
16797
16798 Dock menu customization, based on a patch by Ken Raeburn, plus some
16799 other fixes.
16800 * nsmenu.m (dockMenu): New variable.
16801 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
16802
16803 * nsterm.h (dockMenu): Declare.
16804
16805 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
16806 (ns_term_init): Initialize dockMenu.
16807 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
16808 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
16809 left.
16810
16811 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
16812
168132008-08-04 Chong Yidong <cyd@stupidchicken.com>
16814
16815 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
16816
16817 * config.in: Regenerate.
16818
168192008-08-04 Seiji Zenitani <zenitani@mac.com>
16820
16821 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
16822
168232008-08-04 Chong Yidong <cyd@stupidchicken.com>
16824
16825 * nsterm.h (find_and_call_menu_selection): Fix prototype.
16826
168272008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16828
16829 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
16830
16831 * keyboard.h: Comment an #endif.
16832
16833 * lisp.h (have_menus_p): Adjust comment.
16834
16835 * menu.c (find_and_return_menu_selection): Fix comparison with
16836 client_data.
16837
16838 * nsmenu.m (popup_activated_flag): New variable.
16839 (popup_activated): New function.
16840 (menu-or-popup-active-p): New exported lisp definition.
16841 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
16842 when popup done.
16843 (ns_popup_dialog): Set popup_activated_flag.
16844
16845 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
16846 version for GNUstep (handled by conditional typedef in nsterm.m).
16847 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
16848 in rgb.txt).
16849
16850 * process.c (init_process): Use DARWIN_OS, not DARWIN.
16851
16852 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
16853
16854 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
16855
16856 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
16857 shortcircuit if popup_activated like GTK and X toolkit.
16858
16859 * m/inter386.h: Change DARWIN to DARWIN_OS.
16860
16861 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
16862 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
16863 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
16864 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
16865
168662008-08-03 Chong Yidong <cyd@stupidchicken.com>
16867
16868 * nsterm.m (windowDidResize): Remove stopModal call.
16869
168702008-08-03 Andreas Schwab <schwab@suse.de>
16871
16872 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
16873 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
16874
168752008-08-02 Chong Yidong <cyd@stupidchicken.com>
16876
16877 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
16878 Don't use uninitialized pointer variable when using getrlimit.
16879
168802008-08-02 Jason Rumney <jasonr@gnu.org>
16881
16882 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
16883
168842008-08-02 Eli Zaretskii <eliz@gnu.org>
16885
16886 * alloc.c (NSTATICS): Bump to 0x640.
16887
16888 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
16889
16890 * lisp.h: Add prototype for directory_files_internal.
16891
16892 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
16893 New functions.
16894 (syms_of_process): Defsubr them. Add initializations for various
16895 Q* symbols used in procfs_system_process_attributes.
16896 (procfs_list_system_processes, procfs_system_process_attributes)
16897 [HAVE_PROCFS]: New functions.
16898 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
16899 (procfs_get_total_memory): New functions.
16900
169012008-08-01 Juanma Barranquero <lekktu@gmail.com>
16902
16903 * xfaces.c (Fx_load_color_file): Fix previous change;
16904 it is #ifdef WINDOWSNT, not WINDOWS_NT.
16905
169062008-08-01 Michael Albinus <michael.albinus@gmx.de>
16907
16908 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
16909
169102008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16911
16912 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
16913
169142008-08-01 Chong Yidong <cyd@stupidchicken.com>
16915
16916 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
16917
16918 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
16919 define NSApplicationDelegateReplySuccess.
16920 (EmacsView -converstationIdentifier): Use long instead of
16921 NSInteger for GNUstep, since it doesn't have NSInteger.
16922
16923 * xmenu.c: Revert last change.
16924
16925 * keyboard.h: Fix last change.
16926
169272008-08-01 Juanma Barranquero <lekktu@gmail.com>
16928
16929 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
16930 on Windows.
16931
169322008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16933
16934 Warning clearing and clean-up in NS port.
16935 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
16936 Add prototypes.
16937 * nsgui.h (FACE_DEFAULT): Remove, unused.
16938 (XGCValues): Change colors to unsigned long.
16939 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
16940 nsterm.m.
16941 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
16942 (ns_list_fonts): Remove, unused.
16943 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
16944 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
16945 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
16946 (nsfont_draw): Compare face colors to 0, not nil.
16947 * nsmenu.m (struct widget_value): Drop unneeded declaration.
16948 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
16949 (-addSubmenuWithTitle:): Use NSMenuItem class.
16950 (ns_popup_menu): Use NO, not NULL, for enabled setting.
16951 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
16952 (ns_clip_to_row): Make gc arg a BOOL.
16953 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
16954 ns_clip_to_row() call.
16955 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
16956 used). Cast FRAME_FONT assignments.
16957 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
16958 (ns_string_to_lispmod): Change arg to const char.
16959 (ns_term_init): Use NSMenuItem class.
16960 (EmacsApp -openFile:): Move to different section of file.
16961 (EmacsApp -application:openFiles:): Don't return a value, call
16962 -replyToOpenOrPrint:.
16963 (EmacsView -keyDown:): Fix up cast.
16964 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
16965 (EmacsView -menuDown:): Cast tag in call to
16966 find_and_call_menu_selection().
16967 (ns_list_fonts): Remove, unused.
16968 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
16969 (ns_fontname_to_xlfd): Make static.
16970 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
16971 Remove prototypes (now in keyboard.h).
16972 (next_menubar_widget_id): Remove, unused.
16973 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
16974 Remove prototypes (now in keyboard.h).
16975 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
16976
169772008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
16978
16979 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
16980 (floatfns.o): Depend on syssignal.h.
16981 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
16982
16983 * systty.h: Fix previous change that removed BSD_TERMIOS.
16984 Add comments to #ifdefs.
16985
169862008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16987
16988 * w32fns.c (w32-load-color-file): Remove.
16989 (x-open-connection): Use renamed Fx_load_color_file.
16990 * xfaces.c (x-load-color-file): Add.
16991 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
16992 Emacs.clr.
16993 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
16994
169952008-07-31 Michael Albinus <michael.albinus@gmx.de>
16996
16997 * dbusbind.c (Fdbus_call_method_asynchronously)
16998 (Fdbus_method_error_internal): New defuns.
16999 (xd_read_message): Handle also reply messages.
17000 (Vdbus_registered_functions_table): Extend docstring.
17001
170022008-07-31 Juanma Barranquero <lekktu@gmail.com>
17003
17004 * keyboard.c (gobble_input): Fix previous change.
17005
170062008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17007
17008 * bitmaps/README:
17009 * xfns.c:
17010 * termcap.c:
17011 * term.c:
17012 * syswait.h:
17013 * systty.h:
17014 * systime.h:
17015 * syssignal.h:
17016 * sysdep.c:
17017 * process.h:
17018 * process.c:
17019 * print.c:
17020 * ndir.h:
17021 * lread.c:
17022 * keyboard.c:
17023 * getpagesize.h:
17024 * floatfns.c:
17025 * fileio.c:
17026 * emacs.c:
17027 * doc.c:
17028 * dispnew.c:
17029 * dired.c:
17030 * data.c:
17031 * callproc.c:
17032 * buffer.c:
17033 * README:
17034 * Makefile.in:
17035 * s/template.h:
17036 * s/msdos.h:
17037 * m/vax.h: Remove VMS support.
17038 * s/vms.h:
17039 * vlimit.h:
17040 * uaf.h:
17041 * temacs.opt:
17042 * param.h:
17043 * ioctl.h: Remove file.
17044
170452008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17046
17047 * s/ms-w32.h (MULTI_KBOARD): Remove.
17048 * xterm.c:
17049 * xselect.c:
17050 * xfns.c:
17051 * window.c:
17052 * w32term.c:
17053 * w32fns.c:
17054 * terminal.c:
17055 * termhooks.h:
17056 * term.c:
17057 * sysdep.c:
17058 * keyboard.h:
17059 * keyboard.c:
17060 * frame.h:
17061 * frame.c:
17062 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
17063 * config.in: Regenerate.
17064
170652008-07-30 Jason Rumney <jasonr@gnu.org>
17066
17067 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
17068
17069 * w32font.c (w32font_encode_char): Leave as unicode if in range.
17070 (w32font_open_internal): Get unicode version of textmetrics.
17071 Don't enable or disable glyph indices here.
17072 (w32font_open): Disable use of glyph indices.
17073
17074 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
17075
170762008-07-30 Chong Yidong <cyd@stupidchicken.com>
17077
17078 * minibuf.c (Vread_buffer_function): Doc fix.
17079
170802008-07-30 John Paul Wallington <jpw@pobox.com>
17081
17082 * minibuf.c (read_buffer_completion_ignore_case): New var.
17083 (Fread_buffer): Use it.
17084
170852008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
17086
17087 * systty.h (sensemode): Remove empty #if. Remove reference to
17088 BSD_TERMIOS, unused.
17089
17090 * sysdep.c: Remove reference to DGUX.
17091 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
17092
17093 * config.in: Regenerate.
17094
170952008-07-30 Jason Rumney <jasonr@gnu.org>
17096
17097 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
17098
170992008-07-29 Jason Rumney <jasonr@gnu.org>
17100
17101 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
17102 is populated.
17103 (uniscribe_encode_char): Always use uniscribe.
17104 Avoid using context if cache is populated.
17105
171062008-07-29 Jan Djärv <jan.h.d@swipnet.se>
17107
17108 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
17109 open menu.
17110
17111 * gtkutil.c (menu_nav_ended): Remove.
17112 (create_menus): Remove signal connect for menu_nav_ended.
17113
171142008-07-28 Chong Yidong <cyd@stupidchicken.com>
17115
17116 * xdisp.c (redisplay_window): Check return value of
17117 compute_window_start_on_continuation_line before forcing a window
17118 start.
17119
171202008-07-28 Jason Rumney <jasonr@gnu.org>
17121
17122 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
17123
17124 * w32term.c (w32_enable_unicode_output, cleartype_active):
17125 Remove obsolete display options.
17126 (x_draw_glyph_string_background): Don't use old cleartype_active
17127 workaround.
17128 (w32_initialize): Remove cleartype_active initialization.
17129 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
17130
171312008-07-28 Andreas Schwab <schwab@suse.de>
17132
17133 * lisp.h (init_weak_hash_tables, syms_of_font)
17134 (xd_read_queued_messages, syms_of_dbusbind): Declare.
17135 (remove_hash_entry): Don't declare.
17136 * eval.c (maybe_call_debugger): Make static and move before use.
17137 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
17138 * xdisp.c: Include "gtkutil.h" if USE_GTK.
17139 * xterm.h (x_set_frame_alpha): Declare.
17140
171412008-07-28 Jan Djärv <jan.h.d@swipnet.se>
17142
17143 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
17144 (create_menus): Connect selection-done to menu_nav_ended.
17145
171462008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17147
17148 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
17149 Set Vx_resource_name to a fallback. Replace read of 'buffered'
17150 parameter with read of 'alpha' one.
17151 (Qns_frame_parameter): Remove.
5582fbc7 17152 * nsselect.m (selection-coding-system)
aac0c6e3
MR
17153 (next-selection-coding-system, Vselection_coding_system)
17154 (Vnext_selection_coding_system): Drop.
17155
171562008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17157
17158 * nsfns.m (do-applescript, do_applescript): Rename to
17159 ns-do-applescript, ns_do_applescript, and move within file.
17160
171612008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
17162
17163 Remove support for Mac Carbon.
17164 * mactoolbox.c:
17165 * macterm.h:
17166 * macterm.c:
17167 * macselect.c:
17168 * macmenu.c:
17169 * macgui.h:
17170 * macfns.c:
17171 * mac.c: Remove file.
17172 * s/darwin.h:
17173 * m/intel386.h:
17174 * xfaces.c:
17175 * xdisp.c:
17176 * window.c:
17177 * tparam.c:
17178 * termhooks.h:
17179 * termcap.c:
17180 * term.c:
17181 * syssignal.h:
17182 * sysselect.h:
17183 * sysdep.c:
17184 * process.c:
17185 * lread.c:
17186 * lisp.h:
17187 * keyboard.c:
17188 * image.c:
17189 * fringe.c:
17190 * frame.h:
17191 * frame.c:
17192 * fontset.c:
17193 * font.h:
17194 * font.c:
17195 * fns.c:
17196 * fileio.c:
17197 * emacs.c:
17198 * dispnew.c:
17199 * dispextern.h:
17200 * config.in:
17201 * atimer.c:
2ae37cf0 17202 * Makefile.in: Remove code for Carbon.
aac0c6e3 17203
f0131492 172042008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
17205
17206 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
17207
172082008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17209
17210 * macterm.h (kCGBitmapByteOrder32Host): New define for
17211 non-universal SDKs.
17212
17213 * image.c (mac_create_cg_image_from_image, image_load_image_io)
17214 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17215
17216 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
17217 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17218
172192008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
17220
17221 * w32inevt.c: Include dispextern.h.
17222
172232008-07-26 Andreas Schwab <schwab@suse.de>
17224
17225 * print.c (print_object): Fix off-by-one in last change.
17226
172272008-07-25 Juanma Barranquero <lekktu@gmail.com>
17228
17229 * term.c (syms_of_term): Don't initialize default_orig_pair,
17230 default_set_foreground and default_set_background on Windows.
17231
172322008-07-25 Jason Rumney <jasonr@gnu.org>
17233
17234 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
17235 ScriptItemize. Clean up return value checking. Remove unused
17236 variables.
17237 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
17238 shaping engine.
17239
17240 * w32font.c (w32font_has_char): Handle the case where we can't
17241 determine the script for a character.
17242
172432008-07-25 Chong Yidong <cyd@stupidchicken.com>
17244
17245 * term.c (syms_of_term): Initialize default_orig_pair,
17246 default_set_foreground, and default_set_background.
17247
17248 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17249 clash (bug#86).
17250 (getloadavg): Callers changed.
17251
17252 * image.c (svg_load_image): Fix last change.
17253 (svg_load_image): Use rsvg_handle_get_dimensions to check that
17254 image size is valid. Use g_object_unref instead of deprecated
17255 rsvg_handle_free to free rsvg handle.
17256 (x_from_xcolors): Don't initialize pixmap (silence compiler).
17257
172582008-07-25 Jason Rumney <jasonr@gnu.org>
17259
17260 * w32font.c (w32font_encode_char): Encode characters outside BMP as
17261 surrogates before looking up glyph index.
17262 (w32font_text_extents): Encode as surrogates if falling back to
17263 functions that need UTF-16 wide chars.
17264
17265 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
17266 BMP as surrogates before looking up glyph index.
17267
172682008-07-25 Chong Yidong <cyd@stupidchicken.com>
17269
17270 * image.c (svg_load_image): Check for failure in return value of
17271 rsvg_handle_get_pixbuf. Free rsvg handle when done.
17272
172732008-07-25 Jason Rumney <jasonr@gnu.org>
17274
17275 * w32font.c (Fx_select_font): Reverse sense of second arg.
17276
172772008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
17278
17279 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
17280 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
17281
17282 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
17283 (PURESIZE): Use it.
17284
172852008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
17286
17287 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
17288 * m/alpha.h (TEXT_END):
17289 * m/ibmrs6000.h (TEXT_END):
17290 * m/macppc.h (TEXT_END):
17291 * s/darwin.h (TEXT_END):
17292 * s/msdos.h (TEXT_END): Remove, unused.
17293 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
17294 * s/cygwin.h: Remove comment.
17295
17296 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
17297 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
17298 * m/intel386.h (DOT_GLOBAL_START):
17299 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
17300 (USG): Remove, file not used on USG platforms.
17301
17302 * Makefile.in (HAVE_X11): Remove empty #else.
17303
173042008-07-24 Andreas Schwab <schwab@suse.de>
17305
17306 * fileio.c (Finsert_file_contents): Properly adjust undo list
17307 after format conversion.
17308
173092008-07-24 Jan Djärv <jan.h.d@swipnet.se>
17310
17311 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
17312 (menu_nav_ended): Remove.
17313 (create_menus): Remove signal connect for menu_nav_ended.
17314 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
17315 create_menus.
17316 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
17317
173182008-07-23 Jason Rumney <jasonr@gnu.org>
17319
17320 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
17321 with opened font.
17322 (w32font_open): Set font type to gdi.
17323
17324 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
17325
173262008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
17327
17328 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
17329 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
17330 defines it.
17331 * unexec.c (ADDR_CORRECT): Define unconditionally.
17332
17333 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
17334
17335 * unexec.c: Remove code depending on !COFF and USG, the file is
17336 not used for such systems.
17337
17338 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
17339 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
17340 (LD_SWITCH_SYSTEM_1): Remove, update users.
17341
17342 * s/darwin.h (DATA_END):
17343 * m/intel386.h (DATA_END):
17344 * m/ibmrs6000.h (DATA_END):
17345 * m/alpha.h (DATA_END): Remove, unused.
17346
17347 * config.in: Regenerate.
17348 * s/ms-w32.h (subprocesses): Define unconditionally.
17349 * s/template.h (subprocesses): Update comment.
17350 * s/vms.h (subprocesses):
17351 * s/usg5-4.h (subprocesses):
17352 * s/hpux10-20.h (subprocesses):
17353 * s/gnu-linux.h (subprocesses):
17354 * s/cygwin.h (subprocesses):
17355 * s/bsd-common.h (subprocesses):
17356 * s/aix4-2.h (subprocesses):
17357 * s/darwin.h (subprocesses): Do not define, defined by default now.
17358
17359 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
17360 Remove all references.
17361 (temacs): Add GNUstep specific ld flags.
17362
17363 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
17364 similarly to what X does.
17365
173662008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
17367
17368 * nsfns.m (x-list-fonts): Remove.
17369 (syms_of_nsfns): Drop the x-list-fonts declaration.
17370 * nsterm.m: Get rid of remaining "//" comments.
17371
173722008-07-22 Chong Yidong <cyd@stupidchicken.com>
17373
17374 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
17375
17376 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
17377 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
17378 (Fns_own_selection_internal, Fx_disown_selection_internal)
17379 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
17380
17381 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
17382 ... */' style of docstrings. Doc fixes.
17383
173842008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
17385
17386 * terminfo.c (UP, BC, PC): Undo previous change.
17387
17388 * nsfns.m: Rename ns prefixed functions/variables to the
17389 corresponding x versions. Update references.
17390
173912008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
17392
17393 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
17394
173952008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
17396
17397 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
17398 Remove forwarding functions.
17399 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
17400 non-static.
17401 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
17402 non-static.
17403 (ns_frame_parm_handlers): Use the new names.
17404 (syms_of_nsfns): Move to the end of file.
17405
17406 * nsterm.m (syms_of_nsterm): Move to the end of file.
17407
17408 * dispnew.c (init_display): Remove code for X10.
17409
174102008-07-22 Jason Rumney <jasonr@gnu.org>
17411
17412 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
17413 bare drive.
17414
174152008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
17416
17417 * nsterm.m (syms_of_nsterm): Remove debugging println.
17418
174192008-07-22 David Reitter <david.reitter@gmail.com>
17420
17421 * nsfns.m (do_applescript, F_do_applescript): NS version of the
17422 Carbon implementation of the same functionality: execute arbitrary
17423 AppleScript code.
17424
174252008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
17426
17427 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
17428 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
17429 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17430 (Fx_display_mm_height, Fx_display_mm_width)
17431 (Fx_display_backing_store, Fx_display_visual_class)
17432 (Fx_display_save_under, Fx_open_connection)
17433 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
17434 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
17435 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
17436 (Fx_display_pixel_width, Fx_display_pixel_height)
17437 (Fx_display_usable_bounds, Fx_display_planes)
17438 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
17439 ... */' style of docstrings.
17440
174412008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
17442
17443 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
17444 on this platform.
17445 (mips):
17446 * m/iris4d.h (mips): Do not define.
17447 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
17448
17449 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
17450
17451 * image.c:
17452 * nsfns.m:
17453 * nsselect.m:
17454 * nsterm.h:
17455 * nsterm.m: Rename ns prefixed functions/variables to the
17456 corresponding x versions. Update references.
17457
17458 * m/ibms390x.h (NO_REMAP): Do not undefine.
17459
17460 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
17461
174622008-07-21 Chong Yidong <cyd@stupidchicken.com>
17463
17464 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
17465 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
17466 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
17467 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
17468 (Fns_display_mm_height, Fns_display_mm_width)
17469 (Fns_display_backing_store, Fns_display_visual_class)
17470 (Fns_display_save_under, Fns_open_connection)
17471 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
17472 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
17473 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
17474 (Fns_display_pixel_width, Fns_display_pixel_height)
17475 (Fns_display_usable_bounds, Fx_display_planes)
17476 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
17477
174782008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
17479
17480 * print.c (print_object): Check print_depth before searching for
17481 circularities.
17482
174832008-07-21 Michael Albinus <michael.albinus@gmx.de>
17484
17485 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
17486 only sprintf.
17487
174882008-07-21 Kenichi Handa <handa@m17n.org>
17489
17490 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
17491
174922008-07-20 Andreas Schwab <schwab@suse.de>
17493
17494 * syntax.c (find_start_pos, find_start_value)
17495 (find_start_value_byte, find_start_begv, find_defun_start)
17496 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
17497
174982008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
17499
17500 * s/sol2-3.h: Insert contents of s/sol2.h.
17501 (LD_SWITCH_SYSTEM): Remove redundant definition.
17502 * s/sol2.h: Remove, unused.
17503
175042008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17505
17506 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
17507
175082008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17509
17510 * Makefile.in (ns_appdir): Fix typo in find command.
17511
175122008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
17513
17514 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
17515
17516 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
17517 added not supported anymore.
17518
17519 * s/usg5-4-2.h (LIBS_SYSTEM):
17520 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
17521
17522 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
17523 * s/lynxos.h (GETPGRP_NO_ARG):
17524 * s/hpux10-20.h (NO_SIOCTL_H):
17525 * s/gnu.h (GETPGRP_NO_ARG):
17526 * s/gnu-linux.h (NO_SIOCTL_H):
17527 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
17528 * s/cygwin.h (GETPGRP_NO_ARG):
17529 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
17530 (C_DEBUG_SWITCH): Remove duplicate definition.
17531
17532 * m/ibms390.h: Remove boilerplate comments.
17533
17534 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
17535
17536 * process.c (HAVE_SERIAL): Consolidate ifdefs.
17537 (wait_reading_process_output): Remove code for SunOS, platform not
17538 supported anymore. Use SOLARIS2 instead of sun.
17539
175402008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17541
17542 * font.c (font_open_by_name): Under NS, default lface height to zero.
17543 (font_open_for_lface): Under NS, set size based on frame fontsize.
17544 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
17545 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
17546
175472008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17548
17549 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
17550 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
17551 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
17552 YES/NO.
17553 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
17554 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
17555 * Makefile.in (clean): Clear out build destination dir.
17556
175572008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17558
17559 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
17560 xterm, xselect.
17561 * lisp.h: Remove declaration of hash_remove.
17562 * nsgui.h: Remove redefinitions of hash_remove.
17563 * fns.c (hash_remove): Rename to hash_remove_from_table.
17564
175652008-07-19 Seiji Zenitani <zenitani@mac.com>
17566
17567 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
17568 strdup() the family UTF8String before modifying it.
17569
175702008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17571
17572 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
17573 NS_FACE_BACKGROUND with 0 instead of nil.
17574 * nsfont.m (nsfont_draw): Same.
17575
175762008-07-19 Chong Yidong <cyd@stupidchicken.com>
17577
17578 * nsfns.m (ns_set_background_color): Fix crash.
17579
175802008-07-18 Chong Yidong <cyd@stupidchicken.com>
17581
17582 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
17583
175842008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
17585
17586 * puresize.h (BASE_PURESIZE): Increase to 1240000.
17587
175882008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17589
17590 * gtkutil.c: Include <config.h> instead of "config.h".
17591
17592 * lisp.h (Foverlay_buffer): Add EXFUN.
17593
17594 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
17595 child process to complete child_setup. Undo 2005-09-21 change.
17596
17597 * s/darwin.h: Mention setsid after vfork.
17598
175992008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17600
17601 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
17602 Depend on macgui.h.
17603
17604 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
17605 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
17606
17607 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
17608 and f19.
17609 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
17610
17611 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
17612 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
17613 Remove enumerators.
17614
17615 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
17616 Check if FACE_FROM_ID returns NULL.
17617
176182008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
17619
17620 * w32inevt.c (change_frame_size): Remove extern declaration.
17621 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
17622 change_frame_size.
17623
176242008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
17625
17626 * getloadavg.c: Revert last change (2008-07-15).
17627
176282008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
17629
17630 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 17631 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
17632 from configure.
17633
176342008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
17635
17636 * s/sol2.h:
17637 * s/sol2-4.h: Reorganize conditionals.
17638
17639 * ecrt0.c: Remove code depending on m68000, not used anymore.
17640
17641 * fns.c (hash_remove): Make static.
17642 * lisp.h (hash_remove): Don't prototype.
17643
17644 * m/ibmrs6000.h:
17645 * m/ibms390x.h:
17646 * m/macppc.h: Remove boilerplate comments.
17647
17648 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
17649 Solaris, which does not need them.
17650
17651 * m/vax.h: Remove comments about unsupported systems.
17652
17653 * s/darwin.h: Reorganize ifdefs.
17654
176552008-07-17 Andreas Schwab <schwab@suse.de>
17656
17657 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
17658
176592008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
17660
17661 Use SDATA. Follow coding convention of placing operators at
17662 beginning of next line rather than end of previous line, and placing
17663 spaces around infix operators.
17664
17665 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
17666 in case it was defined already.
17667 USE @GNUSTEP_MAKEFILES@ rather than envvars.
17668 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
17669 ns_default.
17670 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
17671 Lisp_Objects.
17672 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
17673 (ns_defined_color, ns_color_to_lisp): Declare.
17674 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
17675 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
17676 it's accepted even with USE_LISP_UNION_TYPE.
17677 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
17678 (update_frame_tool_bar): Remove apparently obsolete tests for
17679 non-integerness of f->tool_bar_lines.
17680 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
17681 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
17682 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
17683 (nsfont_open): Don't confuse NULL for Qnil.
17684 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
17685 * menu.h (find_and_call_menu_selection):
17686 * menu.c (find_and_call_menu_selection): Use just int for vector size.
17687 (find_and_return_menu_selection): Always return something.
17688 * frame.h: Include dispextern.h for Display_Info.
17689 (display_x_get_resource): Declare.
17690
176912008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
17692
17693 * syntax.c: Remove stdio.h include accidentally introduced in
17694 Emacs.app commit.
17695 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
17696 NS_IMPL_COCOA.
17697 * keyboard.c (handle_async_input, input_available_signal): Remove
17698 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
17699
177002008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17701
17702 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
17703 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
17704 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
17705 Use SDATA.
17706
17707 * keymap.c: Remove all NS-specific code.
17708 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
17709 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
17710 where_is_preferred_modifier, return a different value depending on how
17711 preferred is the binding.
17712 (where_is_internal): Adjust accordingly.
17713 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
17714 Adjust to new preferred_sequence_p.
17715 (syms_of_keymap): Declare `where-is-preferred-modifier'.
17716 * keyboard.c (parse_solitary_modifier): Not static any more.
17717 * keyboard.h (parse_solitary_modifier): Declare.
17718
177192008-07-16 Andreas Schwab <schwab@suse.de>
17720
17721 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
17722 of easymenu.
17723
177242008-07-16 Chong Yidong <cyd@stupidchicken.com>
17725
17726 * xdisp.c (move_it_in_display_line): Account for word wrap, so
17727 that we don't move off the line.
17728
177292008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17730
17731 * keyboard.c (Qsuper): Remove.
17732 (parse_menu_item): Don't call where_is_internal specially for NS.
17733
177342008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17735
17736 * s/gnu-linux.h: Remove boilerplate comments.
17737
17738 * m/alpha.h (__ELF__): Consolidate conditions.
17739
17740 * m/m68k.h (linux): Use GNU_LINUX instead.
17741 Remove boilerplate comments.
17742
17743 * m/intel386.h: Undo refactoring from previous change.
17744 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
17745 too, remove dead code.
17746 (linux): Use GNU_LINUX instead.
17747
177482008-07-16 Jason Rumney <jasonr@gnu.org>
17749
17750 * w32gui.h: Repeat 26 June changes lost by last change.
17751
177522008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17753
17754 * systty.h: Remove code for Aix on 386, unsupported platform.
17755
17756 * s/ms-w32.h: Remove boilerplate comments.
17757 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
17758
17759 * s/gnu-linux.h (TERM): Remove support.
17760 (HAVE_SYSVIPC): Remove, unused.
17761 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
17762 for this system.
17763
17764 * process.c: Remove support for IRIS, unused.
17765 Remove support for TERM, not relevant anymore.
17766
17767 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
17768 used with the definition.
17769
17770 * s/aix4-2.h (static): Do not undef.
17771
17772 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
17773 only used on Aix.
17774 (HAVE_SYSVIPC): Remove, unused.
17775
17776 * m/hp800.h (CANNOT_DUMP): Do not undef.
17777
17778 * m/alpha.h: Fix comment.
17779
17780 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
17781 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
17782 used by this configuration.
17783 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
17784 * unexec.c: Remove code depending on HPUX and
17785 USG_SHARED_LIBRARIES, not used with this file. Remove code
17786 depending on IRIS, unused. Remove if 0-ed code.
17787
17788 * s/template.h: Remove comments about static.
17789
17790 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
17791 Remove if 0-ed code.
17792 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
17793 were the same as the default.
17794 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
17795 Remove boilerplate comments.
17796 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
17797 (HAVE_SYSVIPC): Remove, unused.
17798 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
17799
17800 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17801 Remove boilerplate comments.
17802 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17803 Remove boilerplate comments.
17804 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17805 Remove boilerplate comments.
17806 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
17807
17808 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
17809 USG systems which do not use DATA_SEG_BITS.
17810 Refactor code. Remove boilerplate comments.
17811
17812 * m/ibms390.h:
17813 * m/m68k.h:
17814 * s/bsd-common.h:
17815 * s/cygwin.h:
17816 * s/darwin.h:
17817 * s/freebsd.h:
17818 * s/gnu.h:
17819 * s/msdos.h: Remove boilerplate comments.
17820
17821 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 17822 do not use this file.
aac0c6e3
MR
17823 (IRIS_4D): Remove, unused.
17824
17825 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 17826 do not use this file.
aac0c6e3
MR
17827 (SIGN_EXTEND_CHAR):
17828 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
17829 * unexmips.c: Remove file, unused.
17830
17831 * editfns.c (Fuser_full_name): Replace the only use of
17832 USER_FULL_NAME with its value.
17833 * config.in: Regenerate.
17834
178352008-07-16 David Reitter <david.reitter@gmail.com>
17836
17837 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
17838 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
17839
178402008-07-16 Glenn Morris <rgm@gnu.org>
17841
17842 * emacs.c (system-type): Doc fix.
17843
178442008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
17845
17846 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
17847 If the cache doesn't work, let's fix it, rather than work around it.
17848
178492008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17850
17851 * Makefile.in: Correct additions for nsfont.o in last commit.
17852 * nsfont.m: New file (forgot last commit).
17853
178542008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17855
bba3e508
SM
17856 * callproc.c (set_initial_environment):
17857 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
17858 batch-compiling for bootstrap).
17859
178602008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 17861 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 17862
c4cc8b9a
JB
17863 * frame.c (make_initial_frame): Call init_frame_faces(f) in
17864 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
17865
178662008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17867
17868 Changes and additions for NeXTstep windowing system (Cocoa and
17869 GNUstep) support.
17870
17871 * Makefile.in:
17872 * config.in: Support defines and build commands for NS port.
17873 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
17874 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
17875 * dispextern.h: Include nsgui.h and add needed typedefs under NS
17876 windowing.
17877 (struct face): Add synth_ital field.
17878 * dispnew.c: Include nsterm.h when compiling under NS windowing.
17879 (init_display): Initialize Vinitial_window_system to "ns" when so
17880 compiled.
17881 * emacs.c: Include GSConfig.h when compiling under GNUstep.
17882 (display_arg): Use under NS.
17883 (main): Under NS, allocate autorelease pool and handle command line
17884 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
17885 (standard_args): Add NS-specific args.
17886 (shut_down_emacs): Shut down NS terminal if compiled under NS.
17887 * font.c (DEFAULT_ENCODING): New variable.
17888 (font_find_for_lface): Use it.
17889 (syms_of_font): Load syms_of_nsfont under NS.
17890 * font.h: Declare nsfont_driver when compiled under NS.
17891 * fontset.c: When compiling under NS, include nsterm.h.
17892 (fontset_from_font): Autoconstruct fontset under NS.
17893 * frame.c (various): Under NS, include nsterm.h, add Qns window system
17894 symbol, document and use it.
17895 (do_switch_frame): When for_deletion under Cocoa, add
17896 Fraise_frame(Qnil).
17897 (x_set_frame_parameters): Ensure font attribute changes are picked up.
17898 (x_get_arg): Allow "yes" and "no" as boolean values.
17899 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
17900 Qright under Cocoa.
17901 (focus-follows-mouse): Default to 0 under NS.
17902 * frame.h (enum output_method): Add output_ns.
17903 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
17904 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
17905 (FRAME_WINDOW_P): NS-specific definition.
17906 * fringe.c (max_used_fringe_bitmap): Make public.
17907 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
17908 (getloadavg): Use NeXT code under descendant OS's.
17909 * image.c (includes and header section, x_create_bitmap_from_data)
17910 (x_create_bitmap_from_file, free_bitmap_record, image_background)
17911 (image_background_transparent, x_clear_image_1)
17912 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17913 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
17914 (x_to_xcolors, x_from_xcolors, x_disable_image)
17915 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
17916 other GUIs, including XPM support using code originally written for
17917 Carbon GUI.
17918 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
17919 using NS API.
17920 (image_ascent): Use font metrics macros instead of direct struct field
17921 access.
17922 * keyboard.c (includes): Add nsterm.h when compiling under NS.
17923 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
17924 Also, handle NS as GTK for menu bar purposes.
17925 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
17926 toolkit where they differ.
17927 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
17928 use cachelist, still needed under NS.
17929 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
17930 (struct widget_value): Define it here for menu.c.
17931 * keymap.c (includes): Include modifier internals.
17932 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
17933 NS.
17934 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
17935 support for preferring sequences using certain modifiers, specified by
17936 the FIRSTONLY argument.
17937 * lisp.h (hash_remove): Rename to avoid name clash when compiling
17938 under NS GNUstep implementation.
17939 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
17940 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
17941 * menu.c: Include nsterm.h under NS.
17942 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
17943 (free_menubar_widget_tree_value, update_submenu_strings)
17944 (find_and_call_menu_selection): Treat NS as X and NT.
17945 (find_and_return_menu_selection): New function, used for popup menus.
17946 * nsgui.h:
17947 * nsterm.h:
17948 * nsfns.m:
17949 * nsimage.m:
17950 * nsmenu.m:
17951 * nsselect.m:
17952 * nsterm.m: New files.
17953 * process.c (wait_reading_process_output): Under NS, call ns_select()
17954 instead of plain select().
17955 * syntax.c (char_quoted): Under NS, avoid a crash when called near
17956 beginning of buffer.
17957 * sysselect.h (init_process): Rename when compiling under Cocoa to
17958 avoid name conflict.
17959 * termhooks.h (display_info): Add ns_display_info to union.
17960 * terminal.c (Fterminal_live_p): Add ns to terminal types.
17961 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
17962 COCOA environment.
17963 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
17964 unexec() signature. (Note, this will dump, but the resulting file
17965 crashes; unexosx is used instead; keeping around for reference and
17966 possible aid in getting dump working under GNUstep.)
17967 * w32gui.h (button_type, widget_value): Remove definitions (now in
17968 keyboard.h).
17969 * window.c: Include nsterm.h when compiling under NS.
17970 * xdisp.c (includes): Include nsterm.h when compiling under NS.
17971 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
17972 other GUI windowing systems.
17973 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
17974 GTK.
17975 (x_consider_frame_title): Under NS, set icon type and frame
17976 modified-state indicator; use ns_set_name_as_filename() when using
17977 formatted title.
17978 (update_window_cursor): Make public when compiling under NS.
17979 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
17980 (hourglass_atimer, Vhourglass_delay
17981 * xfaces.c (header section, init_frame_faces, clear_font_table)
17982 (defined_color, unload_color, x_face_list_fonts)
17983 (prepare_face_for_display): Add NS support parallel to other GUIs.
17984 Emulate GCs like other non-X GUIs.
17985 (split_font_name): Don't lowercase font name under NS.
17986 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
17987 under NS.
17988 * s/darwin.h: Add support for compilation under NS.
17989
179902008-07-15 Jason Rumney <jasonr@gnu.org>
17991
17992 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
17993 (w32_show_hourglass): Rename from show_hourglass.
17994 (w32_hide_hourglass): Rename from hide_hourglass.
17995 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
17996 (Vhourglass_delay): Declare extern.
17997 (hourglass_started): Remove.
17998
17999 * xdisp.c (Vhourglass_delay): Remove static.
18000 (hourglass_started, start_hourglass, cancel_hourglass):
18001 Don't include these versions on WINDOWSNT.
18002
180032008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18004
18005 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
18006 variables (formerly in xfns.c).
18007 (show_hourglass, hide_hourglass): New prototypes (same).
18008 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
18009 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
18010 in xfns.c).
18011 (syms_of_xdisp): Declare/initialize display-hourglass,
18012 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
18013 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
18014 formerly in xfns.c.
18015 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18016 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18017 (start_hourglass, cancel_hourglass): Remove.
18018 (show_hourglass, hide_hourglass): Remove prototypes and static
18019 modifiers.
18020 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
18021 hourglass_atimer, hourglass_shown_p declaration/initialization.
18022 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18023 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18024 (start_hourglass, cancel_hourglass): Remove.
18025 (show_hourglass, hide_hourglass): Remove prototypes and static
18026 modifiers.
18027 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
18028 hourglass_atimer, hourglass_shown_p declaration/initialization.
18029 * w32fns.c (display_hourglass_p, Vhourglass_delay)
18030 (DEFAULT_HOURGLASS_DELAY): Remove.
18031 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
18032 hourglass_shown_p declaration/initialization.
18033
180342008-07-14 Jason Rumney <jasonr@gnu.org>
18035
18036 * w32fns.c (w32_get_arg): Remove wrapper function.
18037 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
18038 directly.
18039 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
18040
180412008-07-14 Kenichi Handa <handa@m17n.org>
18042
18043 * xfont.c (xfont_open): Add workaround for X's bug.
18044
180452008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18046
18047 * fontset.c: Include <stdio.h> unconditionally.
18048
180492008-07-13 Michael Albinus <michael.albinus@gmx.de>
18050
18051 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
18052 for filtering.
18053
180542008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
18055
18056 * s/vms.h: Use __GNUC__ instead of _GNUC_.
18057
18058 * m/macppc.h:
18059 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
18060
c4cc8b9a 18061 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
18062 (SPECIAL_EMACS_INT):
18063 * m/ia64.h (SPECIAL_EMACS_INT):
18064 * m/amdx86-64.h (SPECIAL_EMACS_INT):
18065 * s/gnu.h (NLIST_STRUCT):
18066 * s/aix4-2.h (X11R5_INHIBIT_I18N):
18067 * s/gnu-linux.h (LINUX):
18068 * s/msdos.h (HAVE_FACES):
18069 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
18070
18071 * systty.h:
18072 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
18073 anymore.
18074
180752008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
18076
18077 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
18078 always defined as int.
18079
18080 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
18081 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
18082 * s/gnu-linux.h (HAVE_WAIT_HEADER):
18083 * s/freebsd.h (HAVE_WAIT_HEADER):
18084 * s/bsd-common.h (HAVE_UNION_WAIT):
18085 * s/aix4-2.h (HAVE_WAIT_HEADER):
18086 * m/mips.h (HAVE_UNION_WAIT):
18087 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
18088 (COFF, static): Do not define, they are undefined later in the file.
18089
18090 * process.c (update_status): Don't use a union.
18091 (status_convert):
18092 (sigchld_handler): Use int instead of WAITTYPE.
18093
180942008-07-12 Chong Yidong <cyd@stupidchicken.com>
18095
18096 * indent.c (Fvertical_motion): Restore hscroll before moving to
18097 goal column.
18098
180992008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18100
18101 * lisp.h: Remove left over code.
18102
181032008-07-11 Andreas Schwab <schwab@suse.de>
18104
18105 * lisp.h: Fix logic in last change.
18106
18107 * menu.h: New file.
18108 * menu.c: Include it.
18109 * xmenu.c: Likewise.
18110 * Makefile.in: Update dependencies.
18111
181122008-07-11 Kenichi Handa <handa@m17n.org>
18113
18114 * fontset.c (fontset_from_font): Cancel the previous change.
18115
181162008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18117
18118 * lisp.h:
18119 * w32heap.c:
18120 * emacs.c:
18121 * alloc.c: Replace all references of NO_UNION_TYPE with
18122 USE_LISP_UNION_TYPE.
18123
18124 * m/xtensa.h (NO_UNION_TYPE):
18125 * m/vax.h (NO_UNION_TYPE):
18126 * m/template.h (NO_UNION_TYPE):
18127 * m/sparc.h (NO_UNION_TYPE):
18128 * m/mips.h (NO_UNION_TYPE):
18129 * m/macppc.h (NO_UNION_TYPE):
18130 * m/m68k.h (NO_UNION_TYPE):
18131 * m/iris4d.h (NO_UNION_TYPE):
18132 * m/intel386.h (NO_UNION_TYPE):
18133 * m/ibms390x.h (NO_UNION_TYPE):
18134 * m/ibms390.h (NO_UNION_TYPE):
18135 * m/ibmrs6000.h (NO_UNION_TYPE):
18136 * m/ia64.h (NO_UNION_TYPE):
18137 * m/hp800.h (NO_UNION_TYPE):
18138 * m/arm.h (NO_UNION_TYPE):
18139 * m/amdx86-64.h (NO_UNION_TYPE):
18140 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
18141 defining it the same.
18142
181432008-07-10 Chong Yidong <cyd@stupidchicken.com>
18144
18145 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
18146
181472008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
18148
18149 * fileio.c:
50426a04 18150 * sysdep.c:
aac0c6e3
MR
18151 * systty.h:
18152 * m/ibmrs6000.h:
18153 * m/iris4d.h:
18154 * s/aix4-2.h:
18155 * s/freebsd.h:
18156 * s/gnu-linux.h:
18157 * s/hpux10-20.h:
18158 * s/hpux11.h:
18159 * s/netbsd.h:
18160 * s/sol2-3.h:
18161 * s/sol2-4.h:
18162 * s/sol2.h:
18163 * s/usg5-4.h:
18164 * s/vms.h: Remove references to unused variables.
18165
181662008-07-10 Andreas Schwab <schwab@suse.de>
18167
18168 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
18169 pattern before matching the generic family.
18170
181712008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
18172
18173 * unexec.c:
18174 * s/vms.h:
18175 * s/usg5-4-2.h:
18176 * s/sol2-5.h:
18177 * s/freebsd.h:
18178 * s/darwin.h: Remove dead code.
18179
18180 * m/template.h:
18181 * m/sparc.h:
18182 * m/mips.h:
18183 * m/m68k.h:
18184 * m/iris4d.h:
18185 * m/intel386.h:
18186 * m/ibms390x.h:
18187 * m/ibms390.h:
18188 * m/ia64.h:
18189 * m/hp800.h:
18190 * m/arm.h:
18191 * m/amdx86-64.h: Remove dead code and references to unused
18192 and compiler defined symbols.
18193
18194 * unexmips.c:
18195 * unexelf.c: Remove references to desupported systems.
18196
18197 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
18198
18199 * m/powermac.h: Remove boilerplate comments.
18200 (NO_REMAP): Remove unused definition.
18201
18202 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
18203 define them.
18204
182052008-07-10 Kenichi Handa <handa@m17n.org>
18206
18207 * xfont.c (xfont_open): Log the reason of failure.
18208
182092008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
18210
18211 * fontset.c (fontset_get_font_group):
18212 * font.c (font_check_otf): Specify argument types.
18213
182142008-07-09 Kenichi Handa <handa@m17n.org>
18215
18216 * coding.c (detect_coding_utf_8): Set detect_info->found only when
18217 non-ASCII char is found.
18218
18219 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
18220 (reorder_font_vector): Change the arg preferred_family to font.
18221 Prefer the spec matching with font.
18222 (fontset_get_font_group): New function.
18223 (fontset_find_font): Change the format of an element of a realized
18224 fontset. Use fontset_get_font_group.
18225 (fontset_font): Try the current fontset, the default fontset, the
18226 fallbacks of the current fontset, and the fallbacks of the default
18227 fontset in this order.
18228 (face_for_char): Delete the shortcut to use the current font.
18229 (fontset_from_font): Don't set fonts for Latin in the fontset.
18230
18231 * font.h (font_make_object, font_match_p): Adjust prototypes.
18232
18233 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
18234
18235 * font.c (font_make_object): New arg entity and pixelsize.
18236 (font_check_otf_features, font_check_otf): New functions.
18237 (font_match_p): Check :lang, :script, and :otf properties.
18238
18239 * xfont.c (xfont_open): Adjust it for the change of
18240 font_make_object.
18241 (xfont_text_extents): Fix initial setting of metrics.
18242
18243 * ftfont.c (struct ftfont_info): New member index, delete member
18244 fc_charset_idx. Make the member order compatible with struct
18245 xftfont_info.
18246 (fc_charset_table): Change charset names to registry names.
18247 (ftfont_pattern_entity): Delete the args registry and
18248 fc_charset_idx. Change the value of :font-entity property
18249 to (FONTNAME . INDEX). Always set :registry property to
18250 `iso10646-1'.
18251 (struct ftfont_cache_data): New struct.
18252 (ftfont_lookup_cache): New arg for_face.
18253 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
18254 (ftfont_driver): Set the member otf_capability.
18255 (ftfont_get_charset): Adjust it for the change of
18256 fc_charset_table.
18257 (OTF_TAG_SYM): New macro.
18258 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
18259 for the change of fc_charset_table.
18260 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
18261 ftfont_pattern_entity. Add FC_INDEX to objset.
18262 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
18263 and ftfont_pattern_entity.
18264 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
18265 font_make_object, struct ftfont_info.
18266 (ftfont_has_char): Use ftfont_get_fc_charset.
18267 (ftfont_otf_features, ftfont_otf_capability): New functions.
18268 (ftfont_shape): Use ftfont_get_otf.
18269 (ftfont_text_extents): Fix initial setting of metrics.
18270
18271 * xftfont.c (struct xftfont_info): New member ft_size. Make the
18272 member order compatible with struct ftfont_info.
bba3e508
SM
18273 (xftfont_open): Add FC_CHARSET to the pattern.
18274 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
18275 properties if appropriate.
18276 (xftfont_close): Unlock the face.
18277 (xftfont_anchor_point, xftfont_shape): Deleted.
18278 (syms_of_xftfont): Don't set members anchor_point and shape of
18279 xftfont_driver.
18280
18281 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
18282 font_make_object.
18283
18284 * w32font.c (w32font_open): Adjust it for the change of
18285 font_make_object.
18286 (w32font_open_internal): Don't set properties of font_object here.
18287
182882008-07-08 Chong Yidong <cyd@stupidchicken.com>
18289
18290 * macfns.c (x_create_tip_frame):
18291 * w32fns.c (x_create_tip_frame):
18292 * xfns.c (x_create_tip_frame): Pass parameter argument to
18293 face-set-after-frame-default.
18294
18295 * xfaces.c (Finternal_merge_in_global_face): Save merged
18296 attributes for the default face back into the face vector.
18297
182982008-07-08 Andreas Schwab <schwab@suse.de>
18299
18300 * fontset.h: Declare fontset_from_font. Don't declare
18301 new_fontset_from_font and fontset_from_font_name.
18302 * xterm.c: Include "fontset.h".
18303 * Makefile.in (xterm.o): Update dependencies.
18304
183052008-07-08 Glenn Morris <rgm@gnu.org>
18306
18307 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
18308 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
18309
183102008-07-07 Chong Yidong <cyd@stupidchicken.com>
18311
18312 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
18313 (x_set_frame_parameters): Don't bind it.
18314
183152008-07-07 Juanma Barranquero <lekktu@gmail.com>
18316
18317 * w32fns.c (map_w32_filename): Declare extern.
18318
183192008-07-07 Jason Rumney <jasonr@gnu.org>
18320
18321 * w32term.c (WS_EX_LAYERED): Define if not already.
18322
183232008-07-06 Chong Yidong <cyd@stupidchicken.com>
18324
18325 * xfaces.c (set_font_frame_param): Don't try to set the font
18326 parameter if it is still unspecified in the lface.
18327
183282008-07-05 Chong Yidong <cyd@stupidchicken.com>
18329
18330 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
18331 face if it didn't already exist.
18332
18333 * xdisp.c (try_window_id): Give up if word-wrapping is on.
18334
183352008-07-05 Andreas Schwab <schwab@suse.de>
18336
18337 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
18338
183392008-07-05 Chong Yidong <cyd@stupidchicken.com>
18340
18341 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
18342 word-wrapping.
18343 (IT_DISPLAYING_WHITESPACE): New macro.
18344 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
18345 when word-wrapping. Simplify word-wrapping logic. Use correct
18346 pixel positions when saving copies of the iterator.
18347 (display_line): Use proper wrap point if the last character on a
18348 line was preceded by whitespace.
18349
183502008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
18351
18352 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
18353
183542008-07-04 Kenichi Handa <handa@m17n.org>
18355
18356 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
18357
18358 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
18359
183602008-07-02 Jason Rumney <jasonr@gnu.org>
18361
18362 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 18363 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
18364
18365 * xdisp.c (next_element_from_display_vector): Move assignment out
18366 of if statement.
18367
183682008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
18369
18370 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
18371
18372 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
18373 (syms_of_fileio): Initialize and export them.
18374 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
18375
18376 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
18377 (Fsystem_move_file_to_trash): New function.
18378 (syms_of_w32fns): Export it to lisp.
18379
183802008-07-01 Jason Rumney <jasonr@gnu.org>
18381
18382 * w32font.c (w32font_text_extents): Don't count overhang as part
18383 of width.
18384
183852008-06-30 Miles Bader <miles@gnu.org>
18386
18387 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
18388 Add `avoid_cursor_p' field.
18389
18390 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
18391 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
18392 (append_glyph, append_composite_glyph, produce_image_glyph)
18393 (append_stretch_glyph): Initialize avoid_cursor_p.
18394 (get_it_property): Rename from `get_line_height_property'.
18395 (x_produce_glyphs): Use get_it_property.
18396 (handle_line_prefix, push_display_prop): New functions.
18397 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
18398 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
18399 New variables.
18400 (syms_of_xdisp): Initialize them.
18401
184022008-06-30 Kenichi Handa <handa@m17n.org>
18403
18404 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
18405 XftDefaultSubstitute (they are called in XftFontMatch).
18406 (xftfont_open): Fix args to ftfont_font_format.
18407
18408 * ftfont.c (fc_charset_table): New member lang.
18409 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 18410 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
18411 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
18412 (ftfont_open): Fix args to ftfont_font_format.
18413 (ftfont_font_format): New arg filename.
18414
184152008-06-30 Chong Yidong <cyd@stupidchicken.com>
18416
18417 * xfaces.c (Finternal_merge_in_global_face): If default face was
18418 modified, realize it again. Update the font face attribute.
18419
184202008-06-29 Jason Rumney <jasonr@gnu.org>
18421
18422 * w32term.c (x_set_frame_alpha): Fix logic.
18423
184242008-06-29 Kenichi Handa <handa@m17n.org>
18425
18426 * fontset.c (Finternal_char_font): Return font-object instead of
18427 font-name.
18428
18429 * composite.c (get_composition_id): Fix the width calculation for TAB.
18430
184312008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
18432
18433 * indent.c (Fvertical_motion): Properly handle float column arg.
18434
184352008-06-28 Jason Rumney <jasonr@gnu.org>
18436
18437 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
18438 (pfnSetLayeredWindowAttributes): New function pointer.
18439 (w32_initialize): Initialize it when supported.
18440 (x_set_frame_alpha): New function.
18441
18442 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
18443 (w32_frame_parm_handlers): Set alpha handler.
18444
18445 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
18446
184472008-06-27 Jason Rumney <jasonr@gnu.org>
18448
18449 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
18450 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
18451 (w32_to_x_charset, x_to_w32_charset)
18452 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
18453 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
18454 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
18455 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
18456 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
18457 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
18458 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
18459 (Qw32_charset_unicode): Remove.
18460 (syms_of_w32fns): Update for above changes.
18461
18462 * w32font.c (w32_to_x_charset, x_to_w32_charset)
18463 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
18464 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
18465 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
18466 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
18467 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
18468 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
18469 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
18470 (syms_of_w32font): Update for above changes.
18471
184722008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
18473
18474 * s/usg5-4.h: Fix previous change: keep the correct branch of a
18475 removed #if.
18476 (USG_SHARED_LIBRARIES): Remove duplicate definition.
18477
184782008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 18479 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
18480
18481 * makefile.w32-in (LOCAL_FLAGS):
18482 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
18483
18484 * sysdep.c (_spawnlp, _getpid):
18485 Declare with explicit _cdecl instead of _CRTAPI1.
18486
18487 * editfns.c (Fget_internal_run_time):
18488 Check for WINDOWSNT with #ifdef, not #if.
18489
184902008-06-26 Jason Rumney <jasonr@gnu.org>
18491
18492 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
18493
18494 * w32term.c (x_draw_glyph_string_foreground)
18495 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
18496 Use FONT_HANDLE macro.
18497 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
18498
18499 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
18500 (uniscribe_encode_char): Use FONT_HANDLE macro.
18501
18502 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
18503 (w32font_text_extents): Use precast w32_font.
18504 (w32font_close): Free cached metrics.
18505 (w32font_open_internal): Allocate space for name on stack.
18506
185072008-06-26 Chong Yidong <cyd@stupidchicken.com>
18508
18509 * xdisp.c (extend_face_to_end_of_line): Fix last change.
18510
185112008-06-26 Jason Rumney <jasonr@gnu.org>
18512
18513 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
18514 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
18515
185162008-06-26 Juanma Barranquero <lekktu@gmail.com>
18517
18518 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
18519
185202008-06-26 Jason Rumney <jasonr@gnu.org>
18521
18522 * w32bdf.c, w32bdf.h: Remove obsolete files.
18523
18524 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
18525
18526 * w32gui.h: Don't include w32bdf.h.
18527 (XCharStruct, enum w32_char_font_type, W32FontStruct):
18528 Remove obsolete font support.
18529
18530 * w32font.h (struct w32font_info): Remove compat_w32_font.
18531 Add hfont member.
18532 (FONT_COMPAT): Remove obsolete macro.
18533
18534 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
18535 (w32font_encode_char, w32font_text_extents): Use new hfont member.
18536 (w32font_open_internal): Remove compat code. Set new hfont member.
18537 (Fx_select_font): Use new hfont member.
18538
18539 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
18540 (uniscribe_encode_char): Use new hfont member.
18541
18542 * w32term.c (x_draw_glyph_string_foreground)
18543 (x_draw_composite_glyph_string_foreground): Use new hfont member.
18544 (x_draw_glyph_string): Use metrics in w32font_info.
18545
185462008-06-26 Kenichi Handa <handa@m17n.org>
18547
18548 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
18549
185502008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
18551
18552 * unexnext.c:
18553 * m/ews4800.h:
18554 * m/hp9000s300.h:
18555 * m/ibm370aix.h:
18556 * m/mips-siemens.h:
18557 * m/ncr386.h:
18558 * m/next.h:
18559 * m/pmax.h:
18560 * m/powerpcle.h:
18561 * m/tandem-s2.h:
18562 * s/386bsd.h:
18563 * s/bsd386.h:
18564 * s/bsd4-1.h:
18565 * s/bsd4-2.h:
18566 * s/bsdos2-1.h:
18567 * s/bsdos2.h:
18568 * s/bsdos3.h:
18569 * s/bsdos4.h:
18570 * s/nextstep.h:
18571 * s/ultrix4-3.h:
18572 * s/usg5-0.h:
18573 * s/usg5-2-2.h:
18574 * s/usg5-2.h:
18575 * s/usg5-4-3.h:
18576 * s/ux4800.h:
18577 * s/uxpds.h:
18578 * s/uxpv.h: Remove support for obsolete systems.
18579 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 18580 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
18581 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
18582 Remove, insert contents in s/aix4-2.h.
18583 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
18584 * s/bsd4-3.h: Rename to ...
18585 * s/bsd-common.h: ... this.
18586 * data.c:
18587 * doc.c:
18588 * ecrt0.c:
18589 * emacs.c:
18590 * fileio.c:
18591 * floatfns.c:
18592 * keyboard.c:
18593 * mem-limits.h:
18594 * print.c:
18595 * process.c:
18596 * sysdep.c:
18597 * syssignal.h:
18598 * systty.h:
18599 * syswait.h:
18600 * term.c:
18601 * unexec.c:
18602 * unexelf.c:
18603 * unexhp9k800.c:
18604 * m/hp800.h:
18605 * m/ibmrs6000.h:
18606 * m/mips.h:
18607 * m/vax.h:
18608 * s/darwin.h:
18609 * s/freebsd.h:
18610 * s/gnu.h:
18611 * s/ms-w32.h:
18612 * s/msdos.h:
18613 * s/netbsd.h:
18614 * s/template.h: Remove references to obsolete variables.
18615
18616 * Makefile.in: Add dependencies for all unexec files.
18617 (admindir): Remove unused variable.
18618 (UNEXEC_SRC): Remove references.
18619
186202008-06-25 Chong Yidong <cyd@stupidchicken.com>
18621
18622 * xfns.c (x_default_font_parameter): If Xft is available, first
18623 try Monospace-12 for the default font.
18624
186252008-06-25 Jason Rumney <jasonr@gnu.org>
18626
18627 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
18628
186292008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
18630
18631 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
18632
18633 * buffer.c (syms_of_buffer): Remove default-word-wrap.
18634
186352008-06-25 Juanma Barranquero <lekktu@gmail.com>
18636
18637 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
18638 <scroll-conservatively>: Fix typo in docstring.
18639
18640 * xselect.c (Fx_send_client_event): Doc fix.
18641
186422008-06-25 Kenichi Handa <handa@m17n.org>
18643
18644 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
18645
18646 * font.c (font_parse_fcname): Remove unused variables.
18647 (font_sort_entites): Delete the arg SPEC. Caller changed.
18648 Fix for the case of ! best_only.
18649 (font_delete_unmatched): Check DPI and AVGWIDTH too.
18650
18651 * lisp.h (Fstring_to_unibyte): EXFUN it.
18652
18653 * character.h (str_to_unibyte): Extern it.
18654
18655 * character.c (str_to_unibyte): New function.
18656
18657 * fns.c (Fstring_to_unibyte): New function.
18658 (syms_of_fns): Defsubr it.
18659
186602008-06-24 Kenichi Handa <handa@m17n.org>
18661
18662 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
18663 DPI too.
18664 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
18665
186662008-06-24 Andreas Schwab <schwab@suse.de>
18667
18668 * Makefile.in (${lispsource}loaddefs.el): Rename from
18669 ../lisp/loaddefs.el.
18670 (bootstrap-clean): Do what distclean does but don't remove
18671 Makefile.
18672 (distclean): Depend on bootstrap-clean and remove Makefile.
18673
186742008-06-24 Chong Yidong <cyd@stupidchicken.com>
18675
18676 * buffer.h (struct buffer): New member word_wrap.
18677
18678 * buffer.c (syms_of_buffer): New variables default-word-wrap and
18679 word-wrap.
18680 (init_buffer_once): Initialize them.
18681
18682 * dispextern.h (struct it): Replace bool truncate_lines_p with a
18683 line_wrap enum possessing three possible values.
18684
18685 * termopts.h: Replace truncate_partial_width_windows with
18686 Vtruncate_partial_width_windows.
18687
18688 * dispnew.c (direct_output_for_insert): Avoid direct output when
18689 inserting a space with word wrap on.
18690
18691 * indent.c (compute_motion): Obey integer values of
18692 truncate-partial-width-windows.
18693
18694 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
18695 replacing truncate_partial_width_windows.
18696 (init_iterator): If Vtruncate_partial_width_windows is an integer,
18697 truncate only if the window width is below that integer.
18698 (start_display, resize_mini_window, produce_stretch_glyph)
18699 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
18700 (back_to_previous_visible_line_start, reseat_1):
18701 Reset string_from_display_prop_p.
aac0c6e3
MR
18702 (display_line): Extend default face to end of line when wrapping.
18703
187042008-06-24 Kim F. Storm <storm@cua.dk>
18705
18706 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
18707 to wrap continued lines at word boundaries.
18708
187092008-06-24 Jason Rumney <jasonr@gnu.org>
18710
18711 * font.c (Ffont_face_attributes): Multiply pixel size before point
18712 conversion to avoid multiplying rounding error.
18713
187142008-06-23 Jason Rumney <jasonr@gnu.org>
18715
18716 * w32term.c (x_draw_glyph_string_background)
18717 (x_draw_glyph_string): Remove old bdf font code.
18718
18719 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
18720
187212008-06-22 Kenichi Handa <handa@m17n.org>
18722
18723 * font.c (font_find_for_lface): Try the adstyle specified in
18724 the property of LFACE_FONT of LFACE (if any).
18725
187262008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 18727 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
18728
18729 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
18730
187312008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
18732
18733 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
18734 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
18735 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
18736 (witness-emacs): Remove.
18737 (lisp, shortlisp): Move loaddefs.el earlier.
18738 (mostlyclean): Forget about witness-emacs.
18739
187402008-06-22 Glenn Morris <rgm@gnu.org>
18741
18742 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
18743 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
18744
187452008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18746
18747 * Makefile.in (PRECOMP): Remove.
18748 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
18749 (witness-emacs): Run `compile-first'.
18750 (.el.elc): Use the new compile-onefile target.
18751
187522008-06-21 Kenichi Handa <handa@m17n.org>
18753
18754 * xftfont.c (xftfont_open): Handle QCembolden only when
18755 FC_EMBOLDEN is defined.
18756
187572008-06-21 Andreas Schwab <schwab@suse.de>
18758
18759 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
18760 (.el.elc): Likewise.
18761
187622008-06-21 Miles Bader <miles@gnu.org>
18763
18764 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
18765 build dir, not the lisp source dir.
18766
187672008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18768
18769 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
18770 (bootstrapclean): Remove.
18771 (.el.elc): New rule.
18772 (PRECOMP): New var.
18773 (../lisp/subdirs.el): Remove.
18774 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
18775 (witness-emacs): New target.
18776 (mostlyclean): Remove witness-emacs as well.
18777 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
18778 Add witness-emacs dependency.
18779
187802008-06-20 Chong Yidong <cyd@stupidchicken.com>
18781
18782 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
18783 defined by the font.
18784
187852008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18786
18787 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
18788 (bootstrap-clean): New target that keeps TAGS around.
18789 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
18790 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
18791
187922008-06-20 Jason Rumney <jasonr@gnu.org>
18793
18794 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
18795 Remove obsolete font code.
18796
18797 * w32font.c (font_matches_spec): Use csb bitfield from font signature
18798 to determine language support.
18799
188002008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18801
18802 * sysdep.c (cfsetspeed): New fun extracted from the code.
18803 (cfmakeraw): Move before first use.
18804
188052008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
18806
18807 * sysdep.c (cfmakeraw): Provide fallback implementation.
18808 (serial_configure): Provide fallback implementation of cfsetspeed.
18809
188102008-06-20 Kenichi Handa <handa@m17n.org>
18811
18812 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
18813 the pattern.
18814
18815 * fontset.c (fontset_from_font): Copy font_spec before changing
18816 the elements.
18817
18818 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
18819
188202008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18821
18822 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
18823 for explicit `font' parameters.
18824
18825 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
18826
188272008-06-19 Kenichi Handa <handa@m17n.org>
18828
18829 * frame.c: Include <ctype.h>.
18830 (x_set_font_backend): Allow spacing characters in the X resource
18831 for FontBackend.
18832
188332008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
18834
18835 * w32fns.c, xfns.c (Qfont_param): New var.
18836 (syms_of_w32fns): Initialize it.
18837 (x_default_font_parameter): Record explicit `font' into
18838 `font-parameter'.
18839
188402008-06-18 Kenichi Handa <handa@m17n.org>
18841
18842 * font.c (font_parse_xlfd): Fix previous change.
18843 (font_parse_fcname): Don't use :fc-unknown-spec.
18844 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
18845 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
18846 (font_add_log): Prepend the driver name to the resulting fonts.
18847
18848 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
18849 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
18850 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
18851
18852 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
18853 (QCembolden): New variables.
18854 (syms_of_xftfont): DEFSYM them.
18855 (xftfont_open): Call XftFontMatch. Don't trust the result of
18856 XftTextExtents8 if the pixel_size is less than 5.
18857
188582008-06-18 Andreas Schwab <schwab@suse.de>
18859
18860 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
18861 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
18862
188632008-06-18 Jason Rumney <jasonr@gnu.org>
18864
18865 * w32font.c (w32font_list, w32font_match): Add logging.
18866
18867 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
18868
188692008-06-17 Chong Yidong <cyd@stupidchicken.com>
18870
18871 * font.c (font_parse_fcname): Store divider characters for
18872 unknown-spec list. For known key symbols, intern using correct
18873 symbol name.
18874
188752008-06-17 Kenichi Handa <handa@m17n.org>
18876
18877 * xfaces.c (realize_default_face): If the frame is not on window
18878 system, set the fontset of face to nil.
18879
188802008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18881
18882 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
18883
188842008-06-16 Juanma Barranquero <lekktu@gmail.com>
18885
18886 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
18887 (build_font_name_from_vector): Delete externs.
18888
18889 * xfaces.c (struct font_name): Don't declare.
18890
188912008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
18892
18893 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
18894
188952008-06-16 Chong Yidong <cyd@stupidchicken.com>
18896
18897 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
18898
188992008-06-16 Juanma Barranquero <lekktu@gmail.com>
18900
18901 * font.c (Ffont_spec): Fix usage in docstring.
18902 (Ffont_face_attributes): Doc fix.
18903
189042008-06-16 Andreas Schwab <schwab@suse.de>
18905
18906 * font.c (Ffont_face_attributes): Fix definition.
18907
189082008-06-16 Jason Rumney <jasonr@gnu.org>
18909
18910 * font.h (font_style_symbolic_from_value): Remove.
18911
18912 * font.c (font_style_symbolic_from_value): Remove.
18913 (font_style_symbolic): Revert to pre 2008-06-13 version.
18914
18915 * w32font.c (w32_to_fc_weight): New function.
18916 (w32font_full_name, logfont_to_fcname): Use it.
18917
189182008-06-16 Kenichi Handa <handa@m17n.org>
18919
18920 * font.c (font_check_object): Delete it.
18921 (font_clear_cache): Check if a font-object is alive.
18922 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
18923 font-object to nil.
18924 (font_close_object): Don't check FONT_CLOSE_OBJECT.
18925 (font_at): Don't call font_check_object.
18926 (Ffont_get): Return a symbol for :weight, :slant, and :width.
18927
189282008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
18929
18930 * puresize.h (BASE_PURESIZE): Increase to 1230000.
18931
189322008-06-16 Chong Yidong <cyd@stupidchicken.com>
18933
18934 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
18935
189362008-06-15 Chong Yidong <cyd@stupidchicken.com>
18937
18938 * font.c (font_parse_fcname): Only one decimal point.
18939 (font_unparse_fcname): Handle data in family and foundry indices
18940 as symbols, not strings.
18941 (font_unparse_gtkname, Ffont_face_attributes): New functions.
18942
18943 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
18944
18945 * font.h (font_unparse_gtkname): Add prototype.
18946
189472008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18948
18949 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
18950
189512008-06-15 Andreas Schwab <schwab@suse.de>
18952
18953 * font.c (font_update_drivers): Fix crash when no drivers match.
18954
189552008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
18956
18957 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
18958 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
18959
189602008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
18961
18962 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
18963
189642008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
18965
18966 * process.c (Fserial_process_configure, Fprocess_send_eof):
18967 Use EQ to compare Lisp_Objects.
18968
189692008-06-13 Jason Rumney <jasonr@gnu.org>
18970
18971 * w32fns.c (Fw32_select_font): Remove old font API function.
18972
18973 * w32font.c (logfont_to_fcname): New function.
18974 (Fx_select_font): New font dialog function compatible with
18975 GTK/fontconfig version.
18976
18977 * font.c (font_style_symbolic_from_value): New function.
18978 (font_style_symbolic): Use it.
18979
18980 * font.h (font_style_symbolic_from_value): Declare new function.
18981
189822008-06-13 Juanma Barranquero <lekktu@gmail.com>
18983
18984 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
18985 <font-width-table>: Fix typos in docstrings.
18986
189872008-06-13 Daniel Engeler <engeler@gmail.com>
18988
18989 These changes add serial port access.
18990 * process.c: Add HAVE_SERIAL.
18991 (Fdelete_process, Fprocess_status, Fset_process_buffer)
18992 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
18993 (list_processes_1, select_wrapper, Fstop_process)
18994 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
18995 (status_notify): Modify to handle serial processes.
18996 [HAVE_SERIAL] (Fserial_process_configure)
18997 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
18998 New functions.
18999 * process.h (struct Lisp_Process): Add `type'.
19000 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
19001 New functions.
19002 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
19003 serial ports.
b71ac3dd 19004 (serial_open, serial_configure): New functions.
aac0c6e3
MR
19005 * w32.h: Add FILE_SERIAL.
19006 (struct _child_process): Add ovl_read, ovl_write.
19007
190082008-06-13 Kenichi Handa <handa@m17n.org>
19009
19010 * dispextern.h (enum lface_attribute_index): New member
19011 LFACE_FOUNDRY_INDEX.
19012
19013 * font.c (font_score): Delete arg alternate_families. Check only
19014 weight, slant, width, and size. Ignore the difference of alias
19015 style symbols.
19016 (font_sort_entites): Adjust for the above change. Reflect the
19017 order of font-driver to scores.
19018 (font_list_entities): Don't check alternate_familes here.
19019 (font_clear_prop): Handle foundry.
19020 (font_update_lface): Don't parse "foundry-family" form here.
19021 Handle FONT_FOUNDRY_INDEX.
19022 (font_find_for_lface): Likewise. Handle alternate families here.
19023 If registry is nil, try iso8859-1 and ascii-0.
19024 (font_open_for_lface): Pay attention to size in ENTITY.
19025 (font_open_by_name): Simplify by calling font_load_for_lface.
19026 (free_font_driver_list): Delete it.
19027 (font_update_drivers): Preserve the order of backends.
19028 (syms_of_font): Setting of sort_shift_bits adjusted for the change
19029 of font_score and font_sort_entites.
19030 (font_update_sort_order): Likewise.
19031
19032 * xfaces.c (LFACE_FOUNDRY): New macro.
19033 (check_lface_attrs): Check foundry.
19034 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
19035 (merge_face_vectors): Check foundry.
19036 (merge_face_ref): Likewise.
19037 (Finternal_set_lisp_face_attribute): Likewise.
19038 (x_update_menu_appearance): Likewise.
19039 (Finternal_get_lisp_face_attribute): Likewise.
19040 (lface_hash): Likewise.
19041 (lface_same_font_attributes_p): Likewise.
19042 (x_supports_face_attributes_p): Likewise.
19043 (tty_supports_face_attributes_p): Likewise.
19044 (Finternal_set_alternative_font_family_alist): Intern strings.
19045 (Finternal_set_alternative_font_registry_alist): Downcase strings.
19046 (realize_default_face): Set LFACE_FOUNDRY (lface).
19047
19048 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
19049 font-driver at first.
19050
19051 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
19052
190532008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19054
19055 * lread.c (Fload): Use xfree, not free on saved_doc_string.
19056
190572008-06-12 Jim Meyering <meyering@redhat.com>
19058
19059 Make unexec_free handle NULL the same way free does.
19060 * unexmacosx.c (unexec_free): Ignore a NULL argument.
19061
190622008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
19063
19064 * character.h (CHAR_TO_BYTE_SAFE): New macro.
19065 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
19066 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
19067 (WEAK_ALIAS): Simplify.
19068 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
19069 when searching a unibyte buffer.
19070
190712008-06-12 Chong Yidong <cyd@stupidchicken.com>
19072
19073 * xfns.c (Fx_select_font): Rename from x-font-dialog.
19074
190752008-06-12 Juanma Barranquero <lekktu@gmail.com>
19076
19077 * w32font.c: Include ctype.h.
19078
190792008-06-11 Jason Rumney <jasonr@gnu.org>
19080
19081 * w32font.c (w32font_encode_char): Detect missing glyphs that are
19082 misreported as space.
19083 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
19084 as aliases for registry iso10646-1.
19085
190862008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
19087
19088 * buffer.c (clone_per_buffer_values): Skip `name'.
19089
190902008-06-11 Chong Yidong <cyd@stupidchicken.com>
19091
19092 * font.c (font_parse_fcname): Fix last change; accept decimal
19093 points in font size.
19094
190952008-06-10 Jason Rumney <jasonr@gnu.org>
19096
19097 * w32uniscribe.c (add_opentype_font_name_to_list):
19098 Skip non unicode fonts.
19099
191002008-06-10 Chong Yidong <cyd@stupidchicken.com>
19101
19102 * xfns.c (Fx_font_dialog): New function.
19103
19104 * gtkutil.c (xg_dialog_response_cb): Rename from
19105 xg_file_response_callback.
19106 (pop_down_dialog): Rename from pop_down_file_dialog.
19107 (xg_get_file_name): Callers changed.
19108 (xg_get_font_name): New function.
19109
19110 * gtkutil.h (xg_get_font_name): Insert prototype.
19111
191122008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19113
19114 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
19115 x_underline_minimum_display_offset.
19116 (syms_of_xdisp): Declare it here rather than in xterm.c.
19117 * dispextern.h (underline_minimum_offset): Declare it.
19118 * w32term.c (x_draw_glyph_string): Use it.
19119 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
19120 (syms_of_xterm): Don't declare it any more.
19121 (x_draw_glyph_string): Adjust to the new name.
19122
8719abec 191232008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
19124
19125 * xterm.c (x_underline_minimum_display_offset): New var.
19126 (x_draw_glyph_string): Use it.
19127 (syms_of_xterm): Declare it.
19128
191292008-06-10 Chong Yidong <cyd@stupidchicken.com>
19130
19131 * font.c (font_parse_fcname): Accept GTK-style font names too.
19132
191332008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19134
19135 * dired.c (file_name_completion): Don't return t if the match is exact
19136 but with different capitalization.
19137 * minibuf.c (Ftry_completion): Simplify.
19138
19139 * window.c (Vwindow_point_insertion_type): New var.
19140 (set_window_buffer): Use it.
19141 (syms_of_window): Init and export it to Lisp.
19142
191432008-06-10 Kenichi Handa <handa@m17n.org>
19144
19145 * font.h (font_intern_prop): Prototype adjusted.
19146
19147 * font.c (font_intern_prop): New arg force_symbol.
19148 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
19149 Adjust for the change of font_intern_prop.
19150
19151 * ftfont.c (ftfont_pattern_entity):
19152 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
19153 (w32_registry):
19154 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
19155 the change of font_intern_prop.
19156
191572008-06-09 Juanma Barranquero <lekktu@gmail.com>
19158
19159 * w32menu.c (digest_single_submenu): Declare extern.
19160
191612008-06-09 Jason Rumney <jasonr@gnu.org>
19162
19163 * w32term.c (x_make_frame_visible): Use alternate restore flags.
19164
19165 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
19166 (parse_single_submenu): Remove.
19167 (digest_single_submenu): Remove.
19168 (syms_of_w32menu): Don't initialise variables that have moved
19169 to menu.c.
19170 (set_frame_menubar): Sync with version in xmenu.c.
19171 (w32_menu_show): Sync with xmenu_show in xmenu.c.
19172
19173 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
19174 Make static again.
19175
191762008-06-09 Jason Rumney <jasonr@gnu.org>
19177
19178 Changes to w32 files related to the move of common menu code
19179 to menu.c on 2008-06-08 by Chong Yidong.
19180
19181 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
19182 defs to w32gui.h.
19183 (single_keymap_panes, push_menu_item, push_menu_pane):
19184 Make globally visible.
19185
19186 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
19187 (local_free, malloc_widget_value, free_widget_value)
19188 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
19189 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
19190 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
19191 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
19192 (menu_items, menu_items_allocated, menu_items_used)
19193 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
19194 (init_menu_items, finish_menu_items, discard_menu_items)
19195 (grow_menu_items, push_submenu_start, push_submenu_end)
19196 (push_left_right_boundary, push_menu_pane, push_menu_item)
19197 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
19198 (free_menubar_widget_tree_value, parse_single_submenu)
19199 (update_submenu_strings): Remove functions.
19200 (xmalloc_widget_value): Remove and declare extern.
19201
19202 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
19203 (OBJ1): Build it.
19204
19205 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
19206 (local_heap, local_alloc, local_free, malloc_widget_value)
19207 (free_widget_value): Define here.
19208
192092008-06-09 Kenichi Handa <handa@m17n.org>
19210
19211 * font.h (Qascii_0): Extern it.
19212
19213 * font.c (Qascii_0): New variable.
19214 (syms_of_font): DEFSYM it.
19215 (font_open_by_name): If the registry "iso8859-1" fails, try also
19216 "ascii-0".
19217
19218 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
19219
192202008-06-08 Kenichi Handa <handa@m17n.org>
19221
19222 * .gdbinit (xfont): New command.
19223
192242008-06-08 Andreas Schwab <schwab@suse.de>
19225
19226 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
19227 * Makefile.in (menu.o): Update dependencies.
19228
19229 * Makefile.in (obj): Always add menu.o.
19230 * emacs.c (main): Always call syms_of_menu.
19231 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
19232
192332008-06-08 Chong Yidong <cyd@stupidchicken.com>
19234
19235 * Makefile.in: Compile menu.c.
19236
19237 * lisp.h: Declare syms_of_menu.
19238
19239 * emacs.c (main): Call syms_of_menu.
19240
19241 * keyboard.h: Relocate platform-independent menu definitions from
19242 xmenu.c.
19243
19244 * menu.c: New file. Relocate platform-independent menu
19245 definitions from xmenu.c. Suggested by Adrian Robert.
19246
19247 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 19248 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
19249 (menu_items_used, menu_items_n_panes)
19250 (menu_items_submenu_depth): Move to keyboard.h.
19251 (init_menu_items, finish_menu_items, unuse_menu_items)
19252 (discard_menu_items, restore_menu_items, save_menu_items)
19253 (grow_menu_items, push_submenu_start, push_submenu_end)
19254 (push_left_right_boundary, push_menu_pane, push_menu_item)
19255 (keymap_panes, single_keymap_panes, single_menu_item)
19256 (list_of_panes, list_of_items, find_and_call_menu_selection)
19257 (xmalloc_widget_value, free_menubar_widget_value_tree)
19258 (parse_single_submenu, digest_single_submenu)
19259 (update_submenu_strings): Move to menu.c.
19260
192612008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
19262
19263 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
19264
192652008-06-06 Miles Bader <miles@gnu.org>
19266
19267 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
19268 face, not frame default.
19269
192702008-06-05 Martin Rudalics <rudalics@gmx.at>
19271
19272 * window.c (pop_up_windows, pop_up_frames)
19273 (display_buffer_reuse_frames, Vpop_up_frame_function)
19274 (Vdisplay_buffer_function, Veven_window_heights)
19275 (Vspecial_display_buffer_names, Vspecial_display_regexps)
19276 (Vspecial_display_function, Vsame_window_buffer_names)
19277 (Vsame_window_regexps, split_height_threshold)
19278 (Vsplit_window_preferred_function): Move those vars to window.el.
19279 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
19280 (Fdisplay_buffer): Move those functions to window.el.
19281 (syms_of_window): Remove corresponding declarations.
19282 (display_buffer): New function.
19283 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
19284 * dispnew.c (Flast_nonminibuf_frame): New function.
19285 * buffer.c (Fpop_to_buffer): Move to window.el.
19286
192872008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19288
19289 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
19290
192912008-06-05 Kenichi Handa <handa@m17n.org>
19292
19293 * coding.c (detect_coding): Fix previous change.
19294 (detect_coding_system): Likewise.
19295
192962008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19297
19298 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
19299
19300 * keymap.c (Vminibuffer_local_filename_must_match_map):
19301 Rename from Vminibuffer_local_must_match_filename_map.
19302 (syms_of_keymap):
19303 * minibuf.c (Fcompleting_read): Adjust accordingly.
19304 * commands.h: Rename declaration as well.
19305
193062008-06-05 Kenichi Handa <handa@m17n.org>
19307
19308 * font.c (Ffont_spec): Don't use font_parse_family_registry for
19309 family name.
19310 (Ffont_put): Likewise.
19311
19312 * fontset.c (fontset_find_font): Call font_open_for_lface with the
19313 current font-spec.
19314
19315 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
19316 is unspecified.
19317
19318 * xfaces.c (realize_x_face): If the font-related face attributes
19319 are the same as those of default face, realize a new fontset from
19320 default->fontset.
19321 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
19322
193232008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19324
19325 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
19326 (move_it_in_display_line): New wrapper.
19327
19328 * window.c (window_scroll_pixel_based_preserve_x)
19329 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
19330 (window_scroll_pixel_based, window_scroll_line_based):
19331 Use them to preserve column positions.
19332 (syms_of_window): Initialize them.
19333
19334 * indent.c (Fvertical_motion): Extend first arg to allow passing an
19335 (HPOS . VPOS) pair.
19336
19337 * dispextern.h (move_it_in_display_line): Declare.
19338
193392008-06-05 Juanma Barranquero <lekktu@gmail.com>
19340
19341 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
19342 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
19343 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
19344
193452008-06-04 Juanma Barranquero <lekktu@gmail.com>
19346
19347 * window.c (Fset_window_parameter): Doc fix.
19348 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
19349
193502008-06-04 Joakim Verona <joakim@verona.se>
19351
19352 * window.h (struct window): Add new member window_parameters.
19353
19354 * window.c (Fwindow_parameters, Fwindow_parameter)
19355 (Fset_window_parameter): New defuns.
19356 (syms_of_window): Defsubr the new defuns.
19357 (make_window): Initialize window_parameters to nil.
19358
193592008-06-04 John Paul Wallington <jpw@pobox.com>
19360
19361 * eval.c (Fdefmacro): Doc fix.
19362
193632008-06-04 Kenichi Handa <handa@m17n.org>
19364
19365 * coding.c (detect_coding): Fix handling of coding->head_ascii.
19366 Be sure to call setup_coding_system when we find a proper coding system.
19367 (detect_coding_system): Fix handling of coding->head_ascii.
19368
193692008-06-03 Andreas Schwab <schwab@suse.de>
19370
19371 * font.c (font_prop_validate_spacing): Fix last change.
19372
193732008-06-03 Kenichi Handa <handa@m17n.org>
19374
19375 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
19376 (font_parse_fcname): Fix handling of unknown key.
19377
19378 * xfont.c (xfont_list): Try an alias.
19379
19380 * charset.c (char_charset): Return NULL if the arg charset_list is
19381 specified and C doesn't belong to any of them.
19382
193832008-06-02 Chip Coldwell <coldwell@redhat.com>
19384
19385 * font.c (font_pixel_size): Don't take cdr of an integer.
19386
193872008-06-02 Jim Meyering <meyering@redhat.com>
19388
19389 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
19390 * alloc.c (xfree): Return right away for a NULL arg.
19391 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
19392 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
19393 * mac.c (create_apple_event_from_event_ref): Likewise.
19394 (create_apple_event_from_drag_ref, cfstring_create_normalized):
19395 Likewise.
19396 * doprnt.c (doprnt1): Likewise.
19397 * frame.c (frame): Likewise.
19398 * keyboard.c (wipe_kboard): Likewise.
19399 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
19400 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
19401 * term.c (tty_default_color_capabilities, maybe_fatal)
19402 (delete_tty): Likewise.
19403 * w16select.c (string): Likewise.
19404 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
19405 * w32bdf.c (w32_free_bdf_font): Likewise.
19406 * w32fns.c (w32_unload_font): Likewise.
19407 * w32font.c (w32font_close): Likewise.
19408 * window.c (size_window): Likewise.
19409 * xselect.c (receive_incremental_selection): Likewise.
19410 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
19411 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
19412 * w32.c (stat): Likewise.
19413
19414 Remove useless if-before-free tests.
19415 * editfns.c (Fset_time_zone_rule): Likewise.
19416 * lread.c (nosuffix): Likewise.
19417 * ralloc.c (get_bloc): Likewise.
19418 * regex.c (reg_free): Likewise.
19419 * xftfont.c (xftfont_open, xftfont_close): Likewise.
19420 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
19421 * xsmfns.c (smc_save_yourself_CB): Likewise.
19422
194232008-06-02 Kenichi Handa <handa@m17n.org>
19424
19425 * font.c (font_find_for_lface): Handle float font size.
19426 (font_open_for_lface): Likewise.
19427
19428 * xfaces.c (x_supports_face_attributes_p): Check face->font before
19429 comparing the properties.
19430
194312008-06-01 Jason Rumney <jasonr@gnu.org>
19432
19433 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
19434 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
19435 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
19436 Don't add empty script list.
19437 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
19438
194392008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
19440
19441 * Makefile.in (dot, dotdot): Remove, update users.
19442 ".." has been used elsewhere in the file for a long time.
19443 (LIBXT_STATIC): Remove conditional based on unused variable.
19444
194452008-06-01 Miles Bader <miles@gnu.org>
19446
19447 * xfaces.c (Vface_remapping_alist): New variable.
19448 (syms_of_xfaces): Initialize it.
19449 (enum named_merge_point_kind): New type.
19450 (struct named_merge_point): Add `named_merge_point_kind' field.
19451 (push_named_merge_point): Make cycle detection respect different
19452 named-merge-point kinds.
19453 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
19454 Remove face-name alias resolution.
19455 (lface_from_face_name): New definition using
19456 `lface_from_face_name_no_resolve'.
19457 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
19458 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
19459 (get_lface_attributes): New definition that layers face-remapping on
19460 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
19461 (lookup_basic_face): New function.
19462 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
19463 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
19464 `get_lface_attributes'.
19465 (face_at_buffer_position): Use `lookup_basic_face' to lookup
19466 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
19467 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
19468
19469 * xdisp.c (init_iterator): Pass base_face_id through
19470 `lookup_basic_face' when we actually use it as a face-id.
19471 (handle_single_display_prop): Use `lookup_basic_face' to lookup
19472 DEFAULT_FACE_ID.
19473
19474 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
19475 lookup the initial face-id.
19476
19477 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
19478
194792008-06-01 Juanma Barranquero <lekktu@gmail.com>
19480
19481 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
19482 (Fremove_text_properties): Fix typos in docstrings.
19483
194842008-05-31 Kenichi Handa <handa@m17n.org>
19485
19486 * font.c (font_list_entities): Fix the car part of data to be
19487 stored in the cache.
19488
19489 * ftfont.c (ftfont_font_format): Don't use strcasestr.
19490
194912008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
19492
19493 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
19494 Add a `test' argument so another predicate than `equal' can be used.
19495 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
19496 (map_char_table): Remove unused vars `c' and `i'.
19497 * lisp.h (Foptimize_char_table): Adjust declaration.
19498 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
19499
195002008-05-30 Kenichi Handa <handa@m17n.org>
19501
19502 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
19503 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
19504 defined.
19505
195062008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
19507
19508 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19509 (Fmake_variable_frame_local): Disallow mixing buffer-local and
19510 frame-local settings for the same variable.
19511
195122008-05-30 Kenichi Handa <handa@m17n.org>
19513
19514 * fontset.c (Ffont_info): Move to font.c.
19515 (syms_of_fontset): Delete defsubr of Sfont_info.
19516
19517 * font.c (font_style_to_value, font_score): Delete casting of the
19518 args to xstcasecmp.
19519 (register_font_driver): Increment num_font_drivers only when
19520 registering the driver globally.
19521 (Ffont_info): Move from fontset.c. Handle a font object too.
19522 (syms_of_font): Defsubr Sfont_info.
19523
195242008-05-29 Kenichi Handa <handa@m17n.org>
19525
19526 * coding.h (enum define_coding_utf8_arg_index): New enum.
19527 (enum coding_attr_index): Change coding_attr_utf_16_bom to
19528 coding_attr_utf_bom.
19529 (enum utf_bom_type): Rename from utf_16_bom_type.
19530 (struct utf_16_spec): Adjust for the above change.
19531 (struct coding_system): Add utf_8_bom in `spec' union.
19532
19533 * coding.c (CODING_UTF_8_BOM): New macro.
19534 (enum coding_category): Delete coding_category_utf_8, add
19535 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
19536 coding_category_utf_8_sig.
19537 (CATEGORY_MASK_UTF_8): Delete it.
19538 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
19539 (CATEGORY_MASK_UTF_8_SIG): New macros.
19540 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
19541 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
19542 CATEGORY_MASK_UTF_8_SIG.
19543 (CATEGORY_MASK_UTF_8): New macro.
19544 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
19545 (detect_coding_utf_8): Check BOM.
19546 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
19547 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
19548 (encode_coding_utf_16): Likewise.
19549 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
19550 (detect_coding, detect_coding_system): Handle utf-8-auto.
19551 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
19552 (syms_of_coding): Fix setting up of Vcoding_category_table.
19553
195542008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
19555
19556 * process.c (Faccept_process_output): If `millisec' is non-nil,
19557 `seconds' default to 0.
19558 (wait_reading_process_output): Also return non-nil if we read output
19559 from a non-running process.
19560
195612008-05-29 Jason Rumney <jasonr@gnu.org>
19562
19563 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
19564 `raster' specified.
19565 (add_font_entity_to_list): Allow non-opentype truetype fonts back
19566 in the uniscribe backend, but disallow any font that has no
19567 unicode subrange support.
19568
195692008-05-29 Juanma Barranquero <lekktu@gmail.com>
19570
19571 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
19572 Fix typos in docstrings.
19573
195742008-05-29 Kenichi Handa <handa@m17n.org>
19575
19576 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
19577 (Fx_family_fonts): Set frame correctly.
19578
195792008-05-28 Jason Rumney <jasonr@gnu.org>
19580
19581 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
19582
195832008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
19584
19585 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
19586 calling build_annotations.
19587
195882008-05-28 Juanma Barranquero <lekktu@gmail.com>
19589
19590 * coding.c (Fdecode_coding_region, Fencode_coding_region)
19591 (Fencode_coding_string):
19592 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
19593 <latin-extra-code-table>: Fix typos in docstrings.
19594 (syms_of_coding) <coding-system-alist>: Doc fix.
19595 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
19596
195972008-05-28 Kenichi Handa <handa@m17n.org>
19598
19599 * fontset.c (Ffont_info): Don't call font_close_object.
19600
19601 * font.c (font_parse_family_registry): Use Ffont_put to validate
19602 foundry and family.
19603 (font_delete_unmatched): Don't check spacing.
19604 (font_list_entities): Add spacing to the spec to list fonts.
19605
19606 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
19607 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
19608
19609 * coding.c (encode_coding_raw_text): Fix previous change.
19610 (encode_coding_object): When the dst_object is a buffer and is
19611 different from src_object, move gap to PT.
19612
196132008-05-27 Chong Yidong <cyd@stupidchicken.com>
19614
19615 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
19616
196172008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
19618
19619 * coding.c (encode_coding_raw_text): Set coding->produced_char for
19620 all branches. Compute it differently.
19621
19622 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
19623
196242008-05-27 Juanma Barranquero <lekktu@gmail.com>
19625
19626 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
19627 into "else if () ... else ...".
19628
196292008-05-27 Jason Rumney <jasonr@gnu.org>
19630
19631 * w32font.c (w32font_open_internal): Determine if glyph indices
19632 are likely to work here.
19633
196342008-05-27 Chong Yidong <cyd@stupidchicken.com>
19635
19636 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
19637 draw overlap glyphs with appropriate highlighting.
19638
196392008-05-27 Kenichi Handa <handa@m17n.org>
19640
19641 * xfont.c (xfont_open): Fix calculation of font->average_width.
19642
196432008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
19644
19645 * casefiddle.c (casify_object): Try to guess better whether the
19646 argument is a byte or a char.
19647
196482008-05-26 Andreas Schwab <schwab@suse.de>
19649
19650 * xselect.c (x_reply_selection_request): Properly handle format == 32.
19651 Always send multiples of format size.
19652
19653 * xterm.c (x_set_frame_alpha): Fix type mismatch.
19654
196552008-05-26 Jason Rumney <jasonr@gnu.org>
19656
19657 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
19658 (compute_metrics): Don't set failure if we just cleared the cache.
19659 (w32_weight_table): Remove unused variable.
19660 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
19661 backwards compatibility.
19662
196632008-05-25 Kenichi Handa <handa@m17n.org>
19664
19665 * w32term.c (x_draw_glyph_string):
19666 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
19667
19668 * xfaces.c: Delete unused function prototypes.
19669 (xstrlwr, font_frame): Delete them.
19670 (clear_face_cache): Delete unused variable.
19671
19672 * xftfont.c (xftfont_open): Delete unused variable.
19673 If underline_thickness is not 1, adjust underline_position.
19674
19675 * ftxfont.c (ftxfont_open): Delete unused variable.
19676
19677 * fontset.c (face_for_char): Optimize for the case of no charset
19678 property.
19679
19680 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
19681 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
19682 (otf_open, font_otf_capability, generate_otf_features)
19683 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19684 Comment out by surrounding "#if 0" and "#endif" for the moment.
19685 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
19686 (syms_of_font): Codes for accessing above commented out.
19687
196882008-05-24 Eli Zaretskii <eliz@gnu.org>
19689
19690 * w32proc.c: Include dispextern.h.
19691
19692 * w32.c: Include dispextern.h.
19693
196942008-05-23 Juanma Barranquero <lekktu@gmail.com>
19695
19696 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
19697 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
19698 Fix typos in docstrings.
19699
197002008-05-23 Jason Rumney <jasonr@gnu.org>
19701
19702 * xsmfns.c: Remove includes that are already included by config.h.
19703
197042008-05-23 Kenichi Handa <handa@m17n.org>
19705
19706 * charset.c (Qemacs, charset_emacs): New variables.
19707 (char_charset): Fix for non-Unicode characters.
19708 (syms_of_charset): Define charset_emacs.
19709
19710 * w32term.c (x_draw_glyph_string): Be sure to update
19711 s->underline_thickness and s->underline_position. Be sure to draw
19712 underline within the current line area.
19713
19714 * xterm.c (x_draw_glyph_string): Be sure to update
19715 s->underline_thickness and s->underline_position. Be sure to draw
19716 underline within the current line area.
19717
19718 * fontset.c: Delete unused variables and add casting for char *
19719 throughout the file.
19720 (fontset_font): Try the fallback fonts of the current fontset
19721 before consulting the default fontset.
19722
19723 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
19724
19725 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
19726
197272008-05-22 Jason Rumney <jasonr@gnu.org>
19728
19729 * font.c: Don't include strings.h.
19730
19731 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
19732
19733 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
19734 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
19735 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
19736 to call xstrcasecmp.
19737
19738 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
19739
19740 * fontset.c (fs_query_fontset): Use xstrcasecmp.
19741
19742 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
19743
19744 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
19745
197462008-05-22 Kenichi Handa <handa@m17n.org>
19747
19748 * puresize.h (BASE_PURESIZE): Increase to 1220000.
19749
19750 * font.c (font_prop_validate_style): Adjust for the format
19751 change of font_style_table.
19752
19753 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
19754 two args.
19755
19756 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
19757 two args.
19758
197592008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
19760
19761 * minibuf.c (keys_of_minibuf): Delete.
19762 * lisp.h (keys_of_minibuf): Delete.
19763 * emacs.c (main): Don't call keys_of_minibuf.
19764
197652008-05-22 Kenichi Handa <handa@m17n.org>
19766
19767 * ftfont.c (ftfont_resolve_generic_family): Rename from
19768 ftfont_list_generic_family. Return a single family for each
19769 generic family.
19770 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
19771 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
19772 Call font_add_log.
19773 (ftfont_match): Call font_add_log.
19774
19775 * font.h (Ffont_xlfd_name): EXFUN adjusted.
19776 (FONT_DEBUG): Define it.
19777 (font_add_log): Extern it.
19778 (font_assert): Rename from xassert.
19779
19780 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
19781 (xfont_list_family): Call font_add_log.
19782 (xfont_match): Likewise.
19783 (memq_no_quit): Delete.
19784
19785 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
19786 call of Ffont_xlfd_name.
19787
19788 * xfaces.c (struct table_entry, slant_table, weight_table)
19789 (swidth_table): Move to font.c.
19790
19791 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
19792 xassert are changed to font_assert. Delete many unused variables.
19793 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
19794 New variables.
19795 (struct table_entry): Move from xfaces.c and modified.
19796 (weight_table, slant_table, width_table): Move from xfaces.c and
19797 contents adjusted for the change of struct table_entry.
19798 (font_style_to_value, font_style_symbolic): Adjust for the
19799 format change of font_style_table.
19800 (font_parse_family_registry): Don't overwrite existing foundry and
19801 family of font_spec.
19802 (font_score): Fix calculation of diff for sizes.
19803 (font_sort_entites): Call font_add_log.
19804 (font_delete_unmatched): Return a newly created list.
19805 (font_list_entities): Fix previous change. Call font_add_log.
19806 (font_matching_entity, font_open_entity, font_close_entity):
19807 Call font_add_log.
19808 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
19809 (Finternal_set_font_style_table): Delete.
19810 (BUILD_STYLE_TABLE): New macro.
19811 (build_style_table): New function.
19812 (Vfont_log, font_log_env_checked): New variables.
19813 (font_add_log): New function.
19814 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
19815 Declare Lisp variables "font-weight-table", "font-slant-table",
19816 "font-width-table", and "font-log". Initialize font_style_table.
19817
198182008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
19819
19820 * xterm.c (x_set_frame_alpha): Move declarations before statements.
19821
198222008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 19823 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
19824
19825 * frame.c (Qalpha): Add a new frame parameter `alpha'.
19826 (Vframe_alpha_lower_limit): New variable.
19827 (x_set_alpha): New function.
19828
19829 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
19830
19831 * xfns.c (x-create-frame, Qalpha):
19832 Initialize the frame parameter `alpha'.
19833 * xterm.c (OPAQUE, OPACITY): New.
19834 (x_set_frame_alpha): New function.
19835 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
19836
19837 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
19838 * w32fns.c (w32_frame_parm_handlers): Likewise.
19839
198402008-05-20 Jason Rumney <jasonr@gnu.org>
19841
19842 * w32font.c (add_font_entity_to_list): Don't add non-opentype
19843 truetype fonts to opentype list.
19844
198452008-05-20 Juanma Barranquero <lekktu@gmail.com>
19846
19847 * fontset.c (Ffontset_info): Doc fix.
19848 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
19849 <ignore-relative-composition>: Fix typos in docstrings.
19850
19851 * font.c (syms-of-font) <font-encoding-alist>:
19852 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
19853 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
19854 (Ffont_otf_alternates): Doc fixes.
19855
198562008-05-20 Kenichi Handa <handa@m17n.org>
19857
19858 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
19859 font.h through out the file.
19860 (FONT_DRIVERS): Rename from FONTOBJ.
19861 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
19862 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
19863
19864 * emacs.c (main): Call syms_of_font unconditionally.
19865
19866 * font.h (find_font_encoding): Extern it.
19867
19868 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
19869 fontset.c.
194d44e7 19870 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
19871 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
19872 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
19873 only when HAVE_WINDOW_SYSTEM is defined.
19874 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
19875 when HAVE_WINDOW_SYSTEM is defined.
19876
19877 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
19878 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
19879
19880 * xfaces.c: Include font.h unconditionally.
19881 (merge_face_ref, merge_face_vectors)
19882 (Finternal_set_lisp_face_attribute): Cancel the previous change.
19883
198842008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
19885
19886 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
19887 indirect_variable.
19888 * eval.c (lisp_indirect_variable): New fun.
19889 (Fuser_variable_p): Use it.
19890
198912008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19892
19893 * lisp.h (indirect_variable):
19894 * data.c (indirect_variable, let_shadows_buffer_binding_p):
19895 Use Lisp_Symbol pointers rather than Lisp_Object.
19896 Adjust callers.
19897 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
19898 To this end, change calling-convention.
19899
19900 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
19901 if some non-hidden buffers are selected by string&pred.
19902
199032008-05-19 Chong Yidong <cyd@stupidchicken.com>
19904
19905 * process.c (wait_reading_process_output): Always check status
19906 when in batch mode.
19907
199082008-05-19 Kenichi Handa <handa@m17n.org>
19909
19910 * font.c (font_list_entities): Fix handling of cache.
19911 (font_matching_entity): Likewise.
19912
19913 * ftfont.c (cs_iso8859_1): Delete.
19914 (ft_face_cache): New variable.
19915 (struct ftfont_info): New member fc_charset_idx.
19916 (ftfont_build_basic_charsets): Delete.
19917 (fc_charset_table): New variable.
19918 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
19919 . FC_CHARSET_IDX) as :font-entity property in the font entity.
19920 Callers changed.
19921 (ftfont_lookup_cache, ftfont_get_charset): New functions.
19922 (ftfont_spec_pattern): New argument fc_charset_idx.
19923 Check registry more rigidly. Change callers.
19924 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
19925 change of :font-entity property of the font.
19926
19927 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
19928 property of the font.
19929
199302008-05-18 Juanma Barranquero <lekktu@gmail.com>
19931
19932 * coding.c (Fcoding_system_p): Rename argument to match docstring.
19933 (Funencodable_char_position, Fcheck_coding_systems_region)
19934 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
19935 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
19936 (Ffind_operation_coding_system, Fset_coding_system_priority)
19937 (Fcoding_system_eol_type): Doc fixes.
19938
199392008-05-17 Glenn Morris <rgm@gnu.org>
19940
19941 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
19942
199432008-05-16 Eli Zaretskii <eliz@gnu.org>
19944
19945 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
19946 and st_gid.
19947
19948 * frame.c (Fdelete_frame): Don't call font_update_drivers if
19949 HAVE_WINDOW_SYSTEM is not defined.
19950
19951 * xfaces.c (merge_face_ref, merge_face_vectors)
19952 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
19953 HAVE_WINDOW_SYSTEM is defined.
19954 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
19955
199562008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19957
19958 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
19959
199602008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19961
19962 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
19963
199642008-05-15 Kenichi Handa <handa@m17n.org>
19965
19966 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
19967 preference.
19968
199692008-05-15 Glenn Morris <rgm@gnu.org>
19970
19971 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
19972
199732008-05-15 Chong Yidong <cyd@stupidchicken.com>
19974
19975 * fns.c (init_fns): Don't initialize weak_hash_tables here.
19976 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
19977
19978 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
19979
199802008-05-15 Kenichi Handa <handa@m17n.org>
19981
19982 * ftfont.c (ftfont_list): Downcase family name to check generic
19983 families.
19984
19985 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
19986 font-spec for QCfont value.
19987
19988 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
19989 buffer. Check the return value of it.
19990
199912008-05-14 Jason Rumney <jasonr@gnu.org>
19992
19993 * w32term.c (w32_get_glyph_overhangs): Remove.
19994 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
19995
199962008-05-14 Kenichi Handa <handa@m17n.org>
19997
19998 * font.c (font_prop_validate): Make nil a valid value.
19999 (font_clear_cache): Check if the cached vector of entities is nil
20000 or not.
20001
200022008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20003
20004 * emacs.c (main_thread): Conditionalize on
20005 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20006 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
20007
20008 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
20009 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
20010 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20011
200122008-05-14 Kenichi Handa <handa@m17n.org>
20013
20014 * coding.c (detect_coding_iso_2022): Ignore a coding category that
20015 has no corresponding coding system.
20016
200172008-05-14 Jason Rumney <jasonr@gnu.org>
20018
20019 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
20020
20021 * w32font.h (w32font_open_internal): Update declaration.
20022
20023 * w32font.c (w32font_open_internal): Change last argument from
20024 w32font_info struct to font object. Fill in font object from
20025 font_entity. Get Outline metrics if possible. Use them to
20026 calculate underline position and thickness. Use xlfd name as name
20027 property. Don't set codepage.
20028 (w32font_open): Pass font_object to w32font_open_internal. Don't
20029 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
20030 (w32font_draw): Use s->font.
20031 (clear_cached_metrics): Don't clear non-existent blocks.
20032
20033 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
20034 font was not found.
20035 (x_draw_glyph_string): Use underline position and thickness from font.
20036
20037 * w32uniscribe.c (uniscribe_open): Pass font_object to
20038 w32font_open_internal.
20039
200402008-05-14 Kenichi Handa <handa@m17n.org>
20041
20042 These changes are to delete all legacy font-handling codes, and
20043 make Emacs use only font-backends.
20044
20045 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
20046 (frame.o, image.o, print.o): Depend on $(FONTSRC).
20047
20048 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
20049
20050 * charset.h (Vcharset_non_preferred_head)
20051 (Vcurrent_iso639_language): Extern them.
20052
20053 * charset.c (Vcharset_non_preferred_head): New variable.
20054 (Vcurrent_iso639_language): New variable.
20055 (syms_of_charset): Declare it as a Lisp variable.
20056 (char_charset): Don't check non preferred charsets. As a last
20057 resort, return charset_unicode.
20058 (Fset_charset_priority): Update Vcharset_non_preferred_head.
20059
20060 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
20061 conditionals. Don't check enable_font_backend. Delete all codes
20062 used only when USE_FONT_BACKEND is not defined.
20063
20064 * dispextern.h (struct glyph_string): Change type of `font' to
20065 `struct font *'.
20066 (struct glyph_string): New member underline_position and
20067 underline_thickness.
20068 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
20069 (struct face): Change type of `font' to `struct font *'.
20070 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
20071 (per_char_metric, encode_char): Delete externs.
20072 (calc_pixel_width_or_height): Adjust the prototype.
20073
20074 * emacs.c (enable_font_backend): Delete extern.
20075 (main): Don't set enable_font_backend. Don't check the command
20076 line argument "-disable-font-backend".
20077
20078 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
20079 (enum font_property_index): New members FONT_DPI_INDEX,
20080 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
20081 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
20082 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
20083 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
20084 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
20085 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
20086 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
20087 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
20088 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 20089 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
20090 (struct font): Many members from old "struct font_info" moved to
20091 here. Members font and entity deleted.
20092 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
20093 the new font-related objects.
20094 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
20095 (CHECK_FONT_GET_OBJECT): Likewise.
20096 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 20097 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
20098 (struct font_driver): New members case_sensitive anc check.
20099 Type of the member list and open changed.
aac0c6e3
MR
20100 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
20101 (font_symbolic_width, font_find_object, font_get_spec)
20102 (font_set_lface_from_name): Delete extern.
20103 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
20104
20105 * font.c: Include <strings.h>.
20106 (enable_font_backend): Delete it.
20107 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
20108 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 20109 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
20110 (null_string): Delete it.
20111 (null_vector): Make it static.
20112 (font_family_alist): Delete it.
20113 (Qnormal): Extern it.
20114 (QCextra, QClanguage): Delete it.
20115 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
20116 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 20117 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 20118 the string. Callers changed.
bba3e508 20119 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
20120 objects.
20121 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
20122 (font_style_to_value, font_style_symbolic): New function.
20123 (build_font_family_alist): Delete it.
20124 (font_registry_charsets): Use Fassoc_string instead of
20125 assq_no_quit.
20126 (font_prop_validate_symbol): Don't return null_string.
bba3e508 20127 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
20128 style-related values in a font vector.
20129 (font_property_table): Delete entries for QClanguage and
20130 QCantialias, add entries for QCavgwidth.
20131 (get_font_prop_index): Delete the 2nd argument FROM.
20132 (font_prop_validate): Arguments changed.
bba3e508 20133 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
20134 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
20135 (font_parse_fcname, font_unparse_fcname)
20136 (font_prepare_composition): Likewise.
ef1b0ba7 20137 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 20138 (otf_open): Delete the 1st arg entity.
bba3e508 20139 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
20140 (font_score): New arg alternate_families. Adjusted for the change
20141 of font-related objects.
20142 (font_sort_entites): New arg best_only.
20143 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
20144 Delete them.
20145 (font_match_p): Check alternate families.
20146 (font_find_object): Delete it.
20147 (font_check_object): New function.
bba3e508 20148 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
20149 (font_delete_unmatched): New arg.
20150 (font_list_entities): Call font_driver->list with a spec that
20151 doesn't specify style-related properties.
20152 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 20153 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
20154 (font_close_object, font_has_char, font_encode_char)
20155 (font_get_name, font_get_spec): Likewise.
20156 (font_spec_from_name, font_clear_prop, font_update_lface):
20157 New functions.
20158 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
20159 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 20160 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
20161 (font_range): New function.
20162 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 20163 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 20164 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 20165 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
20166 (Finternal_set_font_style_table): Arguments changed.
20167 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 20168 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
20169 change of font-related objects.
20170 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
20171
20172 * fontset.h (struct font_info): Delete it. Most members go to
20173 struct font.
ef1b0ba7 20174 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
20175 (enum FONT_SPEC_INDEX): Delete it.
20176 (font_info, list_fonts_func, load_font_func, query_font_func)
20177 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
20178 (get_font_repertory_func, new_fontset_from_font_name):
20179 Delete externs.
aac0c6e3
MR
20180 (fontset_from_font_name): Extern it.
20181 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
20182 (FONT_INFO_FROM_FACE): Deleted.
20183 (face_for_font): Adjust prototype.
20184
20185 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
20186 conditionals. Don't check enable_font_backend. Delete all codes
20187 used only when USE_FONT_BACKEND is not defined.
20188 (get_font_info_func, list_font_func, load_font_func)
20189 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
20190 (get_font_repertory_func): Delete them.
20191 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
20192 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
20193 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
20194 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
20195 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
20196 (fontset_compare_rfontdef): New function.
20197 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
20198 rfont-defs by qsort. Adjusted for the change of font-group vector.
20199 (load_font_get_repertory): Deleted.
20200 (fontset_find_font): Use new macros to ref/set elements of
20201 font-def and rfont-def.
20202 (fontset_font): Fix the timing of remembering that no font for C.
20203 (free_face_fontset): Do nothing if the face has no fontset.
20204 (face_suitable_for_char_p): Use new macros to ref/set elements of
20205 rfont-def.
20206 (face_for_char): Likewise. Call face_for_char with font_object.
20207 (fs_load_font): Delete. Delete #pragma surrounding it.
20208 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 20209 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
20210 font-spec.
20211 (Fset_fontset_font): Likewise. Use new macros to set elements of
20212 font-def.
20213 (Fnew_fontset): Use font_unparse_xlfd to generate
20214 FONTSET_ASCII (fontset).
20215 (new_fontset_from_font_name): Deleted.
ef1b0ba7 20216 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
20217 a fontset is already created for the font. FIx updating of
20218 Vfontset_alias_alist.
20219 (fontset_ascii_font): Deleted.
bba3e508 20220 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
20221 (Finternal_char_font): Likewise.
20222 (Ffontset_info): Likewise.
20223 (syms_of_fontset): Don't check load_font_func.
20224
20225 * fns.c (internal_equal): Handle PREV_FONT.
20226
20227 * frame.h: Delete USE_FONT_BACKEND conditional.
20228
20229 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
20230 conditionals. Don't check enable_font_backend. Delete all codes
20231 used only when USE_FONT_BACKEND is not defined.
20232 (x_set_font): Call x_new_font, not x_new_fontset2.
20233 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
20234 already set for the frame.
20235
bba3e508
SM
20236 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
20237 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
20238 of intern_downcase. Use FONT_SET_STYLE to set a style-related
20239 font property. If a font is scalable, set avgwidth property to 0.
20240 Set font-entity property by font_put_extra.
20241 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 20242 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
20243 (ftfont_spec_pattern): New function.
20244 (ftfont_list): Return a list, not vector.
20245 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
20246 (ftfont_list_family): Don't downcase names.
20247 (ftfont_free_entity): Deleted.
20248 (ftfont_open): Return a font-object. Adjusted for the change of
20249 struct font. Get underline_thickness and underline_position from
20250 font property. Don't update dpyinfo->smallest_font_height and
20251 dpyinfo->smallest_char_width.
20252 (ftfont_close): Don't free `struct font'.
bba3e508 20253 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
20254 (ftfont_encode_char, ftfont_text_extents): Likewise.
20255
20256 * ftxfont.c (ftxfont_list): Return a list, not vector.
20257 (ftxfont_open): Return a font-object. Adjusted for the change of
20258 struct font. Get underline_thickness and underline_position from
20259 font property. Don't update dpyinfo->smallest_font_height and
20260 dpyinfo->smallest_char_width.
20261 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 20262 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 20263
bba3e508
SM
20264 * image.c (image_ascent): Don't include "charset.h".
20265 Include "character.h" and "font.h".
aac0c6e3
MR
20266
20267 * lisp.h (enum pvec_type): New member PREV_FONT.
20268 (Fassoc_string): EXFUN it.
20269
20270 * print.c: Include font.h.
20271 (print_object): Handle font-related objects.
20272
20273 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
20274 conditionals. Don't check enable_font_backend. Delete all codes
20275 used only when USE_FONT_BACKEND is not defined.
20276 (handle_auto_composed_prop): Do nothing if it->f is not on a
20277 window system. Check how many following characters can be
20278 displayed by the same font.
20279 (calc_pixel_width_or_height): Type of the 4th arg is changed to
20280 'struct font *'.
20281 (get_char_face_and_encoding): Assign the whole encoding task to
20282 the `encode-char' method of a font driver.
bba3e508 20283 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
20284 face' and `struct glyph_string'.
20285 (fill_glyph_string): Likewise.
20286 (get_per_char_metric): Arguments changed.
bba3e508 20287 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
20288 and `struct glyph_string'.
20289 (produce_stretch_glyph, calc_line_height_property)
20290 (x_produce_glyphs): Likewise.
20291
20292 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
20293 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
20294 used only when USE_FONT_BACKEND is not defined.
20295 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
20296 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
20297 (Qp): Extern them.
20298 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
20299 Deleted.
20300 (struct font_name): Deleted.
20301 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
20302 (compare_fonts_by_sort_order): New function.
20303 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
20304 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
20305 Deleted.
20306 (Fx_family_fonts): Use font_list_entities, and sort fonts by
20307 compare_fonts_by_sort_order.
20308 (Fx_font_family_list): Call Ffont_family_list.
20309 (face_numeric_value, face_numeric_weight, face_numeric_slant)
20310 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
20311 (face_symbolic_slant, face_symbolic_swidth)
20312 (split_font_name_into_vector, build_font_name_from_vector)
20313 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
20314 (font_rescale_ratio, split_font_name, build_font_name)
20315 (free_font_names, sort_fonts, x_face_list_fonts)
20316 (face_font_available_p, sorted_font_list, cmp_font_names)
20317 (font_list_1, concat_font_list, font_list, remove_duplicates):
20318 Deleted.
20319 (Fx_list_fonts): Use Ffont_list.
20320 (LFACE_AVGWIDTH): Deleted.
20321 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
20322 by FONTP.
20323 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
20324 (set_lface_from_font_name): Delete it.
ef1b0ba7 20325 (set_lface_from_font): Rename from
aac0c6e3
MR
20326 set_lface_from_font_and_fontset. Caller changed. Don't set
20327 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
20328 for face.
20329 (merge_face_vectors): Copy font-spec if necessary.
20330 Clear properties of the font-spec if necessary.
20331 (merge_face_ref): Clear properties of the font-spec if necessary.
20332 (Finternal_set_lisp_face_attribute): Likewise.
20333 (set_font_frame_param): Use font_load_for_lface to load a
20334 font-object, and call Fmodify_frame_parameters with it.
20335 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
20336 font name by Ffont_xlfd_name.
20337 (Finternal_lisp_face_attribute_values): Don't check QCweight,
20338 QCslant, and QCwidth.
20339 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
20340 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
20341 Compare fonts by EQ.
20342 (lookup_non_ascii_face): Deleted.
20343 (face_for_font): The 2nd argument changed.
20344 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
20345 Check atomic font properties by case insensitive.
20346 (realize_non_ascii_face): Set face->overstrike correctly.
20347 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
20348 (dump_realized_face): Get font name from
20349 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
20350
20351 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
20352 conditionals. Don't check enable_font_backend. Delete all codes
20353 used only when USE_FONT_BACKEND is not defined.
20354 (xic_create_xfontset): Original code deleted and renamed from
20355 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
20356 (x_make_gc): Don't set GCFont in GCs.
20357 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
20358 opened by "fixed".
20359 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
20360 find_ccl_program_func, query_font_func, set_frame_fontset_func,
20361 get_font_repertory_func.
20362
20363 * xfont.c: Include <stdlib.h> and "ccl.h".
20364 (struct xfont_info): New structure.
20365 (xfont_query_font): Deleted.
ef1b0ba7 20366 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 20367 moved from xterm.c.
bba3e508 20368 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 20369 (compare_font_names): New function.
ef1b0ba7
SM
20370 (xfont_list_pattern): Sort font names case insensitively.
20371 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
20372 (xfont_list): Return a list, not vector.
20373 (xfont_match): If the font doesn't have QCname property, generate
20374 a name from the other font properties.
20375 (xfont_open): Return a font-object. Adjusted for the change of
20376 struct font. Get underline_thickness and underline_position from
20377 font property. Don't update dpyinfo->smallest_font_height and
20378 dpyinfo->smallest_char_width.
20379 (xfont_close): Don't free struct font.
bba3e508 20380 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 20381 (xfont_done_face): Deleted.
bba3e508 20382 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
20383 (xfont_encode_char, xfont_draw): Likewise.
20384 (xfont_check): New function.
20385
bba3e508 20386 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 20387 callback function.
bba3e508
SM
20388 (xftfont_match): Adjust for the format change of font-entity.
20389 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
20390 font-object. Adjusted for the change of struct font. Return a
20391 font-object. Don't update dpyinfo->smallest_font_height and
20392 dpyinfo->smallest_char_width.
20393 (xftfont_close): Block input while calling XftFontClose.
20394 (xftfont_prepare_face): Don't block input while calling
20395 xftfont_get_colors. Adjusted for the change of struct font.
20396 (xftfont_shape): Return value of error case fixed.
20397
20398 * xrdb.c (x_load_resources): Don't setup a fontset resource.
20399
20400 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
20401 conditionals.
20402 (FONT_WIDTH): Return (f)->max_width.
20403 (struct x_display_info): Delete member `font'.
20404 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
20405 (x_find_ccl_program, x_get_font_repertory): Delete externs.
20406 (struct x_output): Change type of `font' to `struct font *'.
20407
20408 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
20409 conditionals. Don't check enable_font_backend. Delete all codes
20410 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
20411 (x_per_char_metric, x_encode_char): Deleted.
20412 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 20413 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
20414 `struct face'.
20415 (x_draw_glyph_string_foreground)
20416 (x_draw_composite_glyph_string_foreground): Likewise.
20417 (x_draw_glyph_string): Likewise. Use font->underline_position and
20418 font->underline_thickness.
ef1b0ba7 20419 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
20420 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
20421 (x_check_font): Call `check' method of a font driver.
20422 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
20423 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 20424 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 20425 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
20426 redisplay_interface'.
20427
20428 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
20429 conditionals. Don't check enable_font_backend. Delete all codes
20430 used only when USE_FONT_BACKEND is not defined. Surround non-used
20431 code by "#ifdef OLD_FONT" and "endif".
20432 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
20433
20434 * w32font.h (struct w32font_info): New member.
20435 (FONT_COMPAT): New macro.
20436 (w32font_open_internal): Prototype adjusted.
20437
20438 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
20439 OLD_FONT" and "endif".
20440
20441 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
20442 conditionals. Don't check enable_font_backend. Delete all codes
20443 used only when USE_FONT_BACKEND is not defined.
20444 (w32font_open): Return a font-object. Make a font-object by
20445 font_make_object. Adjusted for the change of struct w32font_info.
20446 (w32font_close): Don't free struct font. Adjusted for the change
20447 of struct w32font_info.
20448 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 20449 Adjust for the change of struct w32font_info.
aac0c6e3
MR
20450 (w32font_draw): Likewise.
20451 (w32font_list_internal): Return a list, not vector.
20452 (w32font_open_internal): Change the 4th arg to font-object.
20453 Adjusted for the change of struct w32font_info and font-object format.
20454 (add_font_name_to_list): Don't downcase names.
20455 (w32_enumfont_pattern_entity): Make a font-entity by
20456 font_make_entity. Adjusted for the format change of font-entity.
20457 Use FONT_SET_STYLE to set a style-related font property. If a
20458 font is scalable, set avgwidth property to 0. Set font-entity
20459 property by font_put_extra.
bba3e508 20460 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
20461 (w32_weight_table, w32_decode_weight): New variables.
20462 (w32_encode_weight): New function.
bba3e508 20463 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
20464 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
20465 weight value.
bba3e508 20466 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
20467
20468 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
20469 conditionals. Don't check enable_font_backend. Surround non-used
20470 code by "#ifdef OLD_FONT" and "endif".
20471 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 20472 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
20473
20474 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
20475 conditionals. Don't check enable_font_backend. Delete all codes
20476 used only when USE_FONT_BACKEND is not defined. Surround non-used
20477 code by "#ifdef OLD_FONT" and "endif".
20478
20479 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
20480 (uniscribe_open): Return value changed to font-object.
20481 Adjusted for the format change of font-object.
bba3e508 20482 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 20483 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 20484 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
20485 font_driver.
20486
204872008-05-13 Chong Yidong <cyd@stupidchicken.com>
20488
20489 * dispnew.c (update_frame_1): Check if tty output is still valid
20490 before flushing it.
20491
204922008-05-13 Jan Djärv <jan.h.d@swipnet.se>
20493
20494 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
20495 to Gtk+ menus.
20496
204972008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
20498
20499 * dired.c (file_name_completion): Tweak the code so as to always do it
20500 in a single pass. Tighten the scope of some variables.
20501
20502 * dired.c (Qdefault_directory): New var.
20503 (file_name_completion): Use it instead of Fexpand_file_name.
20504 (syms_of_dired): Initialize it.
20505
205062008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
20507
20508 * fileio.c (double_dollars): Remove dead code.
20509
205102008-05-10 Eli Zaretskii <eliz@gnu.org>
20511
20512 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
20513 Mention w32-get-true-file-attributes in doc string.
20514
20515 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
20516
205172008-05-09 Glenn Morris <rgm@gnu.org>
20518
20519 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
20520 2008-04-23.
20521
205222008-05-09 Eli Zaretskii <eliz@gnu.org>
20523
20524 Support for reporting owner and group of each file on MS-Windows:
20525 * dired.c (stat_uname, stat_gname): New functions, with special
20526 implementation for w32.
20527 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
20528
20529 * w32.c: Rename the_passwd_* to dflt_passwd_*.
20530 (dflt_group_name): New static variable.
20531 (dflt_group): Rename from the_group.
20532 (init_user_info): Init dflt_group fields. Get user's group name
20533 from LookupAccountSid.
20534 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
20535 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
20536 New initialization states.
20537 (globals_of_w32): Initialize them to zero. Initialize the default
20538 group name to "None".
20539 (GetFileSecurity_Name): New global var, the name of the function
20540 to call for GetFileSecurity.
20541 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
20542 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
20543 (get_file_security, get_security_descriptor_owner)
20544 (get_security_descriptor_group, is_valid_sid)
20545 (get_file_security_desc, get_rid, get_name_and_id)
20546 (get_file_owner_and_group): New functions.
20547 (stat): Use get_file_security_desc and get_file_owner_and_group to
20548 report the owner and primary group of each file. Don't ignore the
20549 high 32 bits of file's size, now that st_size is 64-bit wide.
20550 Fix test when to get true file attributes.
20551 (init_user_info): Use get_rid instead of equivalent inline code.
20552 (fstat): Don't ignore the high 32 bits of file's size.
20553
205542008-05-09 Chong Yidong <cyd@stupidchicken.com>
20555
20556 * image.c (png_load): Use correct bit-depth for setting background
20557 color.
20558
205592008-05-08 Eli Zaretskii <eliz@gnu.org>
20560
20561 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
20562 epa-hook.elc.
20563
205642008-05-08 Juanma Barranquero <lekktu@gmail.com>
20565
20566 * font.c (Ffont_match_p): Don't use `iff' in docstring.
20567
205682008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
20569
20570 * macfns.c (Fx_create_frame): Make a copy of frame parameters
20571 because the original parameters are in pure storage now.
20572 (mac_window): Remove unused params. Update callers.
20573
205742008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
20575
20576 * lread.c (substitute_object_recurse): Use lower-level primitives.
20577 Don't signal errors when traversing sub-char-tables.
20578 Don't loop over all the possible characters when traversing char-tables.
20579
20580 * print.c (print_preprocess): Add sub-char-tables to the print-table,
20581 just like we do in print.c.
20582
205832008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
20584
20585 * minibuf.c (Ftry_completion): Remove code left over from when we used
20586 scmp instead of Fcompare_strings.
20587
205882008-05-04 Juanma Barranquero <lekktu@gmail.com>
20589
20590 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
20591
205922008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20593
20594 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
20595 Create bitmap context in native byte order.
20596
20597 * macterm.c (XDrawLine)
20598 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
20599 context in native byte order.
20600
206012008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20602
20603 * config.in: Regenerate.
20604
20605 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
20606 New definitions for Image I/O support.
20607 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
20608 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
20609 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
20610 (mac_data_provider_release_data, image_load_image_io)
20611 [USE_MAC_IMAGE_IO]: New functions.
20612 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
20613 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
20614 (init_image_func_pointer) [MAC_OSX]: Remove function.
20615 (image_load_quartz2d) [MAC_OSX]: Check availability of
20616 CGImageCreateWithPNGDataProvider at compile time.
20617 Use lowercase `false' for boolean constant.
20618 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
20619 Use image_load_image_io.
20620 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
20621 Don't check MyCGImageCreateWithPNGDataProvider.
20622 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
20623 Don't call init_image_func_pointer.
20624
20625 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
20626
20627 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
20628 Make variable non-static.
20629 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
20630 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
20631
20632 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
20633 (RED_FROM_ULONG): Mask off higher bits.
20634 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
20635
20636 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
20637 Include AvailabilityMacros.h.
20638 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
20639 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
20640
206412008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
20642
20643 * chartab.c (Fset_char_table_range): If range is t, really set all
20644 chars to that value.
20645
206462008-05-03 Eli Zaretskii <eliz@gnu.org>
20647
20648 * dired.c (Ffile_attributes): Don't allow the device number become
20649 negative.
20650
206512008-05-02 Daiki Ueno <ueno@unixuser.org>
20652
20653 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
20654
206552008-05-02 Juri Linkov <juri@jurta.org>
20656
20657 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
20658 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
20659 DEFAULT argument as a list of default values in docstrings.
20660
206612008-05-01 Chong Yidong <cyd@stupidchicken.com>
20662
20663 * puresize.h (BASE_PURESIZE): Increase to 1210000.
20664
206652008-05-01 Martin Rudalics <rudalics@gmx.at>
20666
20667 * dispnew.c (change_frame_size_1): Preserve small windows when
20668 shrinking frames by calling set_window_height|width with third
20669 arg 2.
20670
20671 * window.h (struct window): Replace field too_small_ok by field
20672 resize_proportionally.
20673
20674 * window.c (make_window): Initialize resize_proportionally.
20675 (enlarge_window): Temporarily set resize_proportionally to make
20676 sure that shrink_windows does scale the window proportionally.
20677 (shrink_windows): When window has resize_proportionally set try
20678 to shrink it proportionally by stealing from other windows.
20679 (struct saved_window, Fset_window_configuration)
20680 (compare_window_configurations): Handle resize_proportionally.
20681 (WINDOW_TOTAL_SIZE): New macro.
20682 (window_min_size, shrink_windows, size_window): Use it.
20683 (check_min_window_sizes): Remove. Invalid values of
20684 window-min-height|width are handled by window_min_size_2 now.
20685 (size_window, Fsplit_window, enlarge_window)
20686 (adjust_window_trailing_edge, grow_mini_window): Don't call
20687 check_min_window_sizes.
20688 (window_min_size_2, window_min_size_1, window_min_size):
20689 New argument safe_p for retrieving "safe" minimum sizes.
20690 (Fdisplay_buffer, Fsplit_window, enlarge_window)
20691 (adjust_window_trailing_edge, grow_mini_window):
20692 Adjust arguments of window_min_size... functions.
20693 (shrink_windows): Argument min_size removed. New argument
20694 safe_p allows shrinking windows to their safe minimum sizes.
20695 Calculate minimum size and decide whether a window shall be
20696 deleted for each window individually.
20697 (size_window): When nodelete_p equals 2, tell shrink_windows to
20698 delete windows only if their new minimum size is no more safe.
20699 (shrink_window_lowest_first): Call window_min_size_1 to make
20700 sure to preserve modeline of bottom-most window when resizing
20701 the minibuffer.
20702 (Fset_window_configuration, Fcurrent_window_configuration)
20703 (compare_window_configurations): Do not handle
20704 window-min-height|width any more.
20705 (syms_of_window): Clarify window-min-height|width doc-strings.
20706
207072008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
20708
20709 * dired.c (file_name_completion): Fix up the encoding/decoding issue
20710 some more. Copy some of the code from Ftry_completions.
20711 Remove special case code that dates back to initial revision when the
20712 slash was only added when necessary and that can't trigger nowadays.
20713
207142008-04-27 Kenichi Handa <handa@m17n.org>
20715
20716 * font.c (font_prop_validate): Signal `error' instead of `font'.
20717
207182008-04-29 Jason Rumney <jasonr@gnu.org>
20719
20720 * w32fns.c (Fw32_battery_status): New defun.
20721 (syms_of_w32fns): Defsubr it.
20722
207232008-04-28 Andreas Schwab <schwab@suse.de>
20724
20725 * dired.c (file_name_completion): Fix another mixing of encoded
20726 and decoded names.
20727
207282008-04-28 Juanma Barranquero <lekktu@gmail.com>
20729
20730 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
20731
207322008-04-27 Juanma Barranquero <lekktu@gmail.com>
20733
20734 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
20735
207362008-04-27 Andreas Schwab <schwab@suse.de>
20737
20738 * dired.c (file_name_completion): Fix inappropriate mixing of
20739 encoded and decoded names.
20740
20741 * xterm.c (XTread_socket): Fix use of uninitialized variable.
20742
20743 * puresize.h (BASE_PURESIZE): Increase to 1200000.
20744
207452008-04-26 Eli Zaretskii <eliz@gnu.org>
20746
20747 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
20748 2008-03-31, it's not needed anymore with `struct stat' definition
20749 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
20750 for the same reasons.
20751
207522008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
20753
20754 * m/sparc.h: Additional redefinitions for GNU/Linux.
20755
207562008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20757
20758 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
20759 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
20760 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
20761 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
20762 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20763 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
20764 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20765 Likewise.
20766
20767 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
20768 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
20769 (mac_ax_number_of_characters): Add externs.
20770 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20771 [USE_MAC_TSM]: Likewise.
20772 (mac_handle_text_input_event) [MAC_OSX]:
20773 Handle kEventTextInputOffsetToPos for no active input area case.
20774 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20775 (mac_handle_document_access_event)
20776 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
20777 (install_application_handler) [MAC_OSX]: Register handlers for
20778 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20779 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20780 Register mac_handle_document_access_event.
20781
20782 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
20783 Make functions non-static.
20784
207852008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
20786
20787 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
20788 (read_file_name_completion_ignore_case, insert_default_directory)
20789 (Qdefault_directory): Move to minibuffer.el.
20790 (Fread_file_name): Call the new `read-file-name' instead.
20791
207922008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20793
20794 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
20795 Make function non-static.
20796 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
20797 Remove function.
20798 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20799 Move to mactoolbox.c.
20800 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
20801
20802 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
20803 (mac_rect_make): New macro.
20804
20805 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
20806 instead of float.
20807 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20808 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
20809 (XSetBackground) [USE_CG_DRAWING]: Likewise.
20810 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
20811 CGRectMake.
20812 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20813 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
20814 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
20815 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20816 instead of WindowRef in argument type.
20817 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
20818 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
20819 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
20820 instead of DISPLAY. All uses changed.
20821 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
20822 (x_calc_absolute_position): Simplify so as not to use
20823 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
20824
20825 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20826 instead of WindowRef in argument type.
20827 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
20828 [TARGET_API_MAC_CARBON]: Remove externs.
20829 (create_apple_event, mac_event_parameters_to_lisp)
20830 [TARGET_API_MAC_CARBON]: Add externs.
20831
20832 * mactoolbox.c (Vmac_ts_script_language_on_focus)
20833 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
20834 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
20835 is clicked.
20836 (x_activate_menubar): Remove extern for saved_menu_event_location.
20837 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20838 Move from mac.c.
20839
208402008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20841
20842 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
20843 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
20844
208452008-04-23 Jason Rumney <jasonr@gnu.org>
20846
20847 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
20848 attributes only for local files.
20849
20850 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
20851 default to Qlocal.
20852
208532008-04-22 Juri Linkov <juri@jurta.org>
20854
20855 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
20856 read-buffer-to-switch instead of using the letter "B".
20857
208582008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20859
20860 * fileio.c (Qdefault_directory): New variable.
20861 (Fread_file_name): Use it to pass `dir' to the completion functions.
20862
208632008-04-20 Chong Yidong <cyd@stupidchicken.com>
20864
20865 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
20866
208672008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
20868
20869 * keyboard.c (Vpre_help_message): Remove.
20870 (show_help_echo): Remove default C code.
20871
20872 * dired.c (directory_files_internal, file_name_completion):
20873 Only call ENCODE_FILE if the string is indeed decoded.
20874
208752008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20876
20877 * Makefile.in (TOOLKIT_DEFINES): Remove.
20878 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
20879
208802008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20881
20882 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
20883 (mactoolbox.o): New target.
20884
20885 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
20886 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
20887
20888 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
20889 Use mac_set_frame_window_background instead of XSetWindowBackground.
20890 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
20891 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
20892 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
20893 instead of SetWindowTitleWithCFString.
20894 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
20895 Move function to mactoolbox.c.
20896 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
20897 Use mac_set_window_modified instead of SetWindowModified.
20898 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20899 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
20900 (Fx_focus_frame): Use mac_front_non_floating_window instead of
20901 FrontNonFloatingWindow. Use mac_activate_window instead of
20902 ActivateWindow. Use mac_active_non_floating_window instead of
20903 ActiveNonFloatingWindow.
20904 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
20905 Use mac_show_hourglass and mac_hide_hourglass.
20906 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
20907 instead of GetGlobalMouse.
20908 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
20909 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
20910 Use mac_bring_window_to_front instead of BringToFront.
20911 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
20912 mactoolbox.c.
20913 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
20914 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
20915 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
20916 mactoolbox.c.
20917
20918 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
20919 (XtPointer): Move typedef from macmenu.c.
20920 (enum button_type): Move enum from macmenu.c.
20921 (widget_value): Move typedef from macmenu.c.
20922 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
20923 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20924 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20925 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20926 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20927 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20928 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20929 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
20930 (Selection): Move typedef from macselect.c.
20931 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
20932 macterm.c.
20933 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
20934 (mac_is_window_collapsed, mac_bring_window_to_front)
20935 (mac_send_window_behind, mac_hide_window, mac_show_window)
20936 (mac_collapse_window, mac_front_non_floating_window)
20937 (mac_active_non_floating_window, mac_activate_window)
20938 (mac_move_window_structure, mac_move_window, mac_size_window)
20939 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
20940
20941 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
20942 (enum mac_menu_kind): Move enum to mactoolbox.c.
20943 (min_menu_id): Move variable to mactoolbox.c.
20944 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
20945 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
20946 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20947 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20948 [TARGET_API_MAC_CARBON]: Likewise.
20949 (XtPointer): Move typedef to macgui.h.
20950 (enum button_type): Move enum to macgui.h.
20951 (widget_value): Move typedef to macgui.h.
20952 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20953 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20954 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20955 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20956 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20957 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20958 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
20959 (popup_activated_flag): Make variable non-static.
20960 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
20961 (add_menu_item, fill_menu, dispose_menus):
20962 Move functions to mactoolbox.c.
20963 (restore_show_help_function, menu_target_item_handler)
20964 (install_menu_target_item_handler, mac_handle_dialog_event)
20965 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
20966 [TARGET_API_MAC_CARBON]: Likewise.
20967 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
20968 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20969 (find_and_call_menu_selection, name_is_separator): Make function
20970 non-static.
20971 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
20972 to mactoolbox.c.
20973 (set_frame_menubar): Don't call install_menu_quit_handler.
20974 (menu_item_selection): New variable.
20975 (mac_menu_show): Use create_and_show_popup_menu.
20976 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
20977 selection but set variable menu_item_selection. All uses changed.
20978 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
20979 Call install_menu_quit_handler. Move to mactoolbox.c.
20980
20981 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
20982 (Selection): Move typedef to macgui.h.
20983 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
20984 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
20985 Make variables non-static.
20986 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20987 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
20988 Make functions non-static.
20989 (Vmac_service_selection) [MAC_OSX]: Likewise.
20990 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
20991 (mac_valid_selection_target_p, mac_clear_selection)
20992 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20993 (mac_put_selection_value, mac_selection_has_target_p)
20994 (mac_get_selection_value, mac_get_selection_target_list)
20995 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
20996 Move functions to mactoolbox.c.
20997 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
20998 Likewise.
20999 (copy_scrap_flavor_data, mac_handle_service_event)
21000 (install_service_handler) [MAC_OSX]: Likewise.
21001 (syms_of_macselect) <Vmac_dnd_known_types>:
21002 Use mac_dnd_default_known_types.
21003
21004 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
21005 Move to mactoolbox.c.
21006 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
21007 (Fx_selection_owner_p): Add EXFUN.
21008 (install_window_handler, remove_window_handler, XSetWindowBackground):
21009 Remove externs.
21010 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
21011 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
21012 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
21013 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
21014 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
21015 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
21016 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
21017 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
21018 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
21019 (create_and_show_popup_menu, mac_get_selection_from_symbol)
21020 (mac_valid_selection_target_p, mac_clear_selection)
21021 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21022 (mac_put_selection_value, mac_selection_has_target_p)
21023 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
21024 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
21025 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
21026 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21027 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
21028 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21029 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
21030 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21031 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21032
21033 * mactoolbox.c: New file.
21034
210352008-04-18 Jason Rumney <jasonr@gnu.org>
21036
21037 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
21038
210392008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21040
21041 * character.c (Fmultibyte_char_to_unibyte):
21042 Return latin1 chars unchanged.
21043
21044 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
21045 relocated if it points to `name'.
21046
210472008-04-17 Kenichi Handa <handa@m17n.org>
21048
21049 * data.c (Faset): Allow setting a multibyte character in an
21050 ASCII-only unibyte string.
21051
21052 * lisp.h (STRING_SET_MULTIBYTE): New macro.
21053
210542008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
21055
21056 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
21057 done in config.h.
21058
210592008-04-16 Juanma Barranquero <lekktu@gmail.com>
21060
21061 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
21062 (Fchar_direction): Add usage in the docstring.
21063
210642008-04-15 Chong Yidong <cyd@stupidchicken.com>
21065
21066 * keyboard.c (read_key_sequence): Remove always-true checks.
21067
210682008-04-14 Jason Rumney <jasonr@gnu.org>
21069
21070 * w32font.c (w32font_open_internal): Set max_bounds.descent in
21071 compatibility struct, for better underline positioning.
21072
210732008-04-13 David Hansen <david.hansen@gmx.net>
21074
21075 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
21076 string.
21077
210782008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
21079
21080 * m/hp800.h (XUINT, XSET): Remove.
21081
210822008-04-12 Juanma Barranquero <lekktu@gmail.com>
21083
21084 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
21085 previous change.
21086
210872008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
21088
21089 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
21090 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
21091
210922008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21093
21094 * keymap.h (map_keymap_canonical): Declare.
21095 * xmenu.c (single_keymap_panes): Use it.
21096
210972008-04-11 Glenn Morris <rgm@gnu.org>
21098
21099 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
21100 set the target's value to that of the alias.
21101
211022008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21103
21104 * term.c (set_tty_color_mode): Left over typo.
21105
211062008-04-10 Michael Albinus <michael.albinus@gmx.de>
21107
21108 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
21109 only after check for file name handler functions. Signal, when
21110 native functionality is not supported.
21111 (syms_of_fileio): Declare it unconditionally.
21112
211132008-04-10 Jason Rumney <jasonr@gnu.org>
21114
21115 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
21116 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
21117
21118 * w32.c (logon_network_drive): Also logon to remote drives that
21119 are mapped to drive letters.
21120
211212008-04-10 Glenn Morris <rgm@gnu.org>
21122
21123 * xdisp.c (truncate-partial-width-windows): Doc fix.
21124
211252008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
21126
21127 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
21128 Move functions to minibuffer.el.
21129 (syms_of_fileio): Don't declare them.
21130
211312008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
21132
21133 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
21134 (syms_of_minibuf): Remove its initialization.
21135
21136 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
21137
211382008-04-09 Juanma Barranquero <lekktu@gmail.com>
21139
21140 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
21141
211422008-04-09 Jason Rumney <jasonr@gnu.org>
21143
21144 * makefile.w32-in (distclean): Delete makefile too.
21145 (maintainer-clean): New target.
21146
21147 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
21148
21149 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
21150 for new font backend and composite cases.
21151
211522008-04-09 Jan Djärv <jan.h.d@swipnet.se>
21153
21154 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
21155 Most of the code moved to run_timers.
21156 (do_pending_atimers): Call run_timers.
21157 (run_timers): New function.
21158
21159 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
21160 run atimers.
21161
21162 * process.c (wait_reading_process_output): The same as above.
21163
211642008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
21165
21166 * minibuf.c (last_exact_completion): Remove variable.
21167 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
21168 (complete_and_exit_1, complete_and_exit_2)
21169 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
21170 (Fdisplay_completion_list, display_completion_list_1)
21171 (Fminibuffer_completion_help, Fself_insert_and_exit)
21172 (Fexit_minibuffer, Fminibuffer_message): Move functions to
21173 minibuffer.el.
21174 (syms_of_minibuf): Remove corresponding initializations.
21175
21176 * keyboard.c (Qdeactivate_mark): New var.
21177 (command_loop_1): Use it to call `deactivate-mark'.
21178 (syms_of_keyboard): Initialize it.
21179
21180 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
21181 to another frame.
21182 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
21183 Don't call set_tty_color_mode.
21184 (store_frame_param): Reset previous_frame rather than call
21185 set_tty_color_mode.
21186 * term.c (set_tty_color_mode): Rewrite.
21187 * dispextern.h (set_tty_color_mode): New type.
21188 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
21189
211902008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
21191
21192 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
21193 for generic chars, which do not exist any more in emacs-unicode.
21194
211952008-04-08 Michael Albinus <michael.albinus@gmx.de>
21196
21197 * coding.c (detect_coding_emacs_mule)
21198 (Ffind_operation_coding_system): Fix typo.
21199
212002008-04-08 Jason Rumney <jasonr@gnu.org>
21201
21202 * w32uniscribe.c (SNAME): Extract only symbol name.
21203
21204 * w32font.h (struct w32_metric_cache): New struct.
21205 (w32font_info): Use it.
21206 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
21207 (CACHE_BLOCKSIZE): New constants.
21208
21209 * w32font.c (Qja, Qko, Qzh): New symbols.
21210 (syms_of_w32font): Initialise them.
21211 (font_matches_spec): Use them to filter by language.
21212 (recompute_cached_metrics): Remove function.
21213 (compute_metrics, clear_cached_metrics): New functions.
21214 (w32font_encode_char): Use them to manage metric cache.
21215 (w32font_text_extents): Cache metrics for all glyphs on demand.
21216 Delay converting glyph indices to WORD until needed.
21217 (w32font_open_internal): Initialize metric cache to empty.
21218 (registry_to_w32_charset): Charset should always be a symbol.
21219 (fill_in_logfont, list_all_matching_fonts): Family should
21220 always be a symbol.
21221
212222008-04-06 Jason Rumney <jasonr@gnu.org>
21223
21224 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
21225 Give up if glyph indices not supported. Use uniscribe obtained
21226 ABC widths for individual metrics. Map glyph clusters back to
21227 characters using fClusterStart flag. Return number of glyphs
21228 produced, not chars processed.
21229 (uniscribe_shape): Map char at FROM to current glyph.
21230
212312008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21232
21233 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
21234 Use SetMenuItemHierarchicalMenu.
21235
212362008-04-05 Jason Rumney <jasonr@gnu.org>
21237
21238 * image.c (pbm_load): Allow color values up to 65535.
21239 Throw an error if max_color_idx is outside the supported range.
21240 Report an error when image size is invalid.
21241 Read two bytes at a time when raw images have max_color_idx above 255.
21242
aac0c6e3
MR
212432008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
21244
21245 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
21246 append "CCL: Quitted" when the CCL program is quitted.
21247 (setup_ccl_program): Initialize ccl->quit_silently to zero.
21248
21249 * ccl.h (struct ccl_program): New member quit_silently.
21250
212512008-04-05 Chong Yidong <cyd@stupidchicken.com>
21252
21253 * search.c (compile_pattern_1): Treat non-nil and non-string of
21254 search-spaces-regexp as nil.
21255
21256 * minibuf.c (Fassoc_string): Tweak docstring.
21257
212582008-04-05 Eli Zaretskii <eliz@gnu.org>
21259
21260 * dired.c (Ffile_attributes): Support inode numbers wider than 32
21261 bits. Remove ugly WINDOWSNT-specific kludge introduced on
21262 2008-03-14 to force inode be positive.
21263
21264 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
21265 _S_* ones, since we now use our own sys/stat.h.
21266 (stat, fstat): Don't mangle the inode number.
21267 (init_user_info): Don't restrict UID and GID to 0-60000 range.
21268
212692008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
21270
21271 * frame.h (struct frame): Give one more bit to `visible' since we use
21272 values larger than 1 to indicate obscured frames on ttys.
21273
21274 * keymap.c (Qkeymap_canonicalize): New var.
21275 (Fmap_keymap_internal): New fun.
21276 (describe_map): Use keymap-canonicalize.
21277
21278 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
21279 (Fundo_boundary): Set them.
21280 (syms_of_undo): Initialize them.
21281 (record_point): Use them instead of last_point_position*.
21282 (last_undo_buffer): Change type.
21283
212842008-04-04 Jason Rumney <jasonr@gnu.org>
21285
21286 * w32font.c (w32font_text_extents): Use font's ascent and descent.
21287 (recompute_cached_metrics): Don't set ascent and descent per char.
21288
21289 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
21290 (uniscribe_check_otf): Add GC protection before consing.
21291 Rearrange loop for counting features.
21292
212932008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
21294
21295 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
21296 buffer with byte-size of source buffer.
21297
212982008-04-03 Chong Yidong <cyd@stupidchicken.com>
21299
21300 * callint.c (Fcall_interactively): Handle temporary region even
21301 when shift-select-mode is off.
21302
213032008-04-03 Jason Rumney <jasonr@gnu.org>
21304
21305 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
21306
213072008-04-03 Kenichi Handa <handa@m17n.org>
21308
21309 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
21310 (CATEGORY_MASK_UTF_16): Likewise.
21311 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
21312 binary file.
21313 (detect_coding): Add null-byte detection for a binary file.
21314 (detect_coding_system): Likewise.
21315
213162008-04-03 Jason Rumney <jasonr@gnu.org>
21317
21318 * w32uniscribe.c: New file.
21319
21320 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
21321
21322 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
21323
21324 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
21325 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
21326 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
21327 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
21328 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
21329 (Qphonetic): New symbols.
21330 (syms_of_w32font): Initialize them.
21331 (font_supported_scripts): Use them.
21332 (w32font_list_family): List all charsets.
21333 (w32font_text_extents, recompute_cached_metrics): Fix metric
21334 calculations.
21335 (w32_enumfont_pattern_entity): Make full_type a DWORD.
21336 Give opentype fonts their own format.
21337 (font_matches_spec): New arguments backend and logfont.
21338 Handle :otf spec for uniscribe backend.
21339 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
21340 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
21341
21342 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
21343 font backend.
21344 (globals_of_w32fns): Initialize uniscribe font backend.
21345
21346 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
21347 dependencies.
21348 (w32uniscribe.$(O)): New file to build.
21349 (FONT_OBJ): Include w32uniscribe.$(O).
21350 (LIBS): Add uniscribe libraries.
21351
21352 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
21353
213542008-04-02 Chong Yidong <cyd@stupidchicken.com>
21355
21356 * callint.c (Vshift_select_mode): New var.
21357 (Finteractive): Document new ^ spec.
21358 (Fcall_interactively): Call handle-shift-selection if the ^ spec
21359 is present.
21360
21361 * keyboard.c (Vthis_command_keys_shift_translated): New var.
21362 (command_loop_1): Avoid running the direct display versions of
21363 forward-char and backward-char if shift-selection may occur.
21364 (read_key_sequence): Set Vthis_command_keys_shift_translated if
21365 shift-translation takes place.
21366
21367 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
21368 avoid clobbering by define-minor-mode.
21369
21370 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
21371 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
21372
21373 * syntax.c (Fforward_word): Add ^ interactive spec.
21374
21375 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
21376 (Fscroll_right): Add ^ interactive spec.
21377
213782008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
21379
21380 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
21381
21382 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
21383
21384 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
21385
213862008-03-31 Juri Linkov <juri@jurta.org>
21387
21388 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
21389
213902008-03-30 Jan Djärv <jan.h.d@swipnet.se>
21391
21392 * gtkutil.c (xg_set_geometry): Fix indentation.
21393 (xg_resize_outer_widget): Remove.
21394 (x_wm_size_hint_off): Fix indentation.
21395 (xg_frame_set_char_size): Call flush_and_sync after
21396 gtk_window_resize.
21397 (x_wm_set_size_hint): Pass NULL as geometry window to
21398 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
21399 Add menu bar and tool bar height to base height.
21400 (xg_update_frame_menubar, free_frame_menubar)
21401 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
21402 (update_frame_tool_bar, free_frame_tool_bar):
21403 Change xg_resize_outer_widget to xg_frame_set_char_size.
21404
214052008-03-30 Michael Albinus <michael.albinus@gmx.de>
21406
21407 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
21408 (Fdbus_call_method): New parameter TIMEOUT.
21409 (dbus-send-signal): Optimize UNGCPRO call.
21410
214112008-03-29 Juri Linkov <juri@jurta.org>
21412
21413 * window.c (Fdisplay_buffer): Move call to
21414 Vsplit_window_preferred_function out of conditions that check
21415 if window is eligible for vertical splitting.
21416 When Vsplit_window_preferred_function is non-nil, call it and use
21417 its non-nil return value as window. Otherwise, continue doing
21418 vertical splitting using Fsplit_window with arg horflag=nil.
21419 (syms_of_window) <Vsplit_window_preferred_function>: Change the
21420 default value from `split-window' to nil.
21421
214222008-03-29 Juri Linkov <juri@jurta.org>
21423
21424 * callint.c (Fcall_interactively): Revert 2008-03-16 change
21425 for interactive code letters 'b' and 'B'.
21426
214272008-03-29 Eli Zaretskii <eliz@gnu.org>
21428
21429 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
21430 multibyte string.
21431
214322008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
21433
21434 * keyboard.c (pending_funcalls): New var.
21435 (timer_check): Run it.
21436 (syms_of_keyboard): Initialize it.
21437 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
21438 (Vdelete_terminal_functions): New vars.
21439 (syms_of_terminal): Initialize them.
21440 (Fdelete_terminal): Run delete-terminal-functions.
21441 * xdisp.c (safe_eval): Rewrite.
21442 (safe_call2): New fun.
21443 * frame.c (Qdelete_frame_functions): New var.
21444 (syms_of_frame): Initialize it.
21445 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
21446 * lisp.h (safe_call2, pending_funcalls): Declare.
21447
214482008-03-28 Andreas Schwab <schwab@suse.de>
21449
21450 * indent.c (Fmove_to_column): Move declaration before statements.
21451
214522008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
21453
21454 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
21455 (struct frame): Use bit fields for boolean vars.
21456
21457 * process.c (server_accept_connection): Simplify naming.
21458 (emacs_get_tty_pgrp): Use SDATA.
21459
21460 * coding.c (decode_coding_object): Fix last change.
21461
214622008-03-27 Jason Rumney <jasonr@gnu.org>
21463
21464 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
21465
214662008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
21467
21468 * charset.c (Fdefine_charset_internal): Change the way of
21469 registering charsets in Vcharset_order_list.
21470 (syms_of_charset): Make the charset `eight-bit' supplementary.
21471
214722008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
21473
21474 * regex.c (EXTEND_BUFFER): Change order of pointer addition
21475 operations, to avoid having the difference between pointers
21476 overflow.
21477
214782008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
21479
21480 * indent.c (check_display_width): New fun.
21481 (scan_for_column): Use it.
21482
21483 * data.c (syms_of_data): Mark most-positive-fixnum and
21484 most-negative-fixnum as constants.
21485
21486 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
21487
21488 * indent.c (scan_for_column): Extract from current_column_1.
21489 Merge with the same code from Fmove_to_column.
21490 (current_column_1, Fmove_to_column): Use it.
21491
214922008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
21493
21494 * keymap.c (map_keymap_internal): New fun.
21495 (map_keymap): Use it.
21496 (Fmap_keymap_internal): New fun.
21497 (Fmap_keymap): Remove left-out test from before make_save_value.
21498
21499 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
21500
21501 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
21502 Use XCAR/XCDR.
21503
21504 * process.h (struct Lisp_Process): Remove filter_multibyte.
21505 * process.c (QCfilter_multibyte): Remove.
21506 (setup_process_coding_systems): Don't use filter_multibyte.
21507 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
21508 (read_process_output): Don't adjust multibyteness to filter_multibyte.
21509 (Fset_process_filter_multibyte): Change the coding-system to
21510 approximate the previous behavior.
21511 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
21512 coding-system.
21513
21514 * coding.c (decode_coding_object): When not decoding into a buffer,
21515 obey the coding system's preference of (uni|multi)byte.
21516
215172008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
21518
21519 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
21520 every char is changed and has a different byte-length.
21521 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
21522 Fix int -> EMACS_INT.
21523
215242008-03-23 David Hansen <david.hansen@gmx.net>
21525
21526 * dbusbind.c (xd_read_message): Remove extra copying of message
21527 strings. Check for NULL `interface' or `member'.
21528
215292008-03-22 Eli Zaretskii <eliz@gnu.org>
21530
21531 * w32.c (readdir): If FindFirstFile/FindNextFile return in
21532 cFileName a file name that includes `?' characters, use the 8+3
21533 alias in cAlternateFileName instead.
21534
215352008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
21536
21537 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
21538
215392008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
21540
21541 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
21542 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
21543 work on current_buffer only instead (that was already the case
21544 for some of the code anyway).
21545 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
21546 (temp_set_point, temp_set_point_both): Use EMACS_INT.
21547 (SET_PT, SET_PT_BOTH): Adjust.
21548 * intervals.h (set_point, temp_set_point, set_point_both)
21549 (temp_set_point_both): Remove redundant declarations.
21550
215512008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
21552
21553 * fileio.c (Finsert_file_contents):
21554 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
21555 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
21556 when buffer != current_buffer anyway.
21557
215582008-03-20 Andreas Schwab <schwab@suse.de>
21559
21560 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
21561 as default.
21562
215632008-03-19 Jason Rumney <jasonr@gnu.org>
21564
21565 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
21566 (syms_of_w32fns): Initialize them.
21567 (HOURGLASS_ID): New constant.
21568 (x_window_to_frame): Don't check hourglass_window.
21569 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
21570 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
21571 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
21572 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
21573 Only change the cursor if hourglass is not active.
21574 (Fx_create_frame): Initialize frame's current_cursor.
21575 (hourglass_atimer): Remove.
21576 (hourglass_started): New function.
21577 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
21578 (show_hourglass): Adapt to w32, changing argument to frame.
21579
21580 * w32term.h (struct w32_output): Remove hourglass_window.
21581 Add current_cursor.
21582
21583 * eval.c (call_debugger, Fsignal):
21584 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
21585 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
21586 (Fexecute_extended_command, cancel_hourglass_unwind):
21587 * minibuf.c (read_minibuf):
21588 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
21589
215902008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
21591
21592 * window.c (run_funs): New fun.
21593 (run_window_configuration_change_hook): Use it to run the buffer-local
21594 and the global part of the hook.
21595
21596 * xdisp.c (format_mode_line_unwind_data): Add window argument.
21597 (unwind_format_mode_line): Restore selected window.
21598 (x_consider_frame_title, Fformat_mode_line): Set selected window.
21599
216002008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
21601
21602 * editfns.c (Fchar_equal): Check they are valid characters.
21603
21604 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
21605
216062008-03-17 Andreas Schwab <schwab@suse.de>
21607
21608 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
21609 against a charset.
21610
21611 * lisp.h (Fbuffer_list): Declare.
21612
216132008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 21614
aac0c6e3
MR
21615 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
21616 handlebox_widget is != 0.
21617
216182008-03-16 Juri Linkov <juri@jurta.org>
21619
21620 * callint.c (Fcall_interactively): For interactive code letters
21621 'b' and 'B' put the buffer list into the list of default "future"
21622 values of the minibuffer.
21623
216242008-03-16 Andreas Schwab <schwab@suse.de>
21625
21626 * keyboard.c (read_key_sequence): Fix downcasing of letters with
21627 modifiers.
21628
21629 * regex.c (re_match_2_internal): Correct matching of a charset
21630 against latin-1 characters.
21631
216322008-03-16 Kenichi Handa <handa@m17n.org>
21633
21634 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
21635 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
21636 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
21637 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
21638 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
21639 CHAR_STRING_ADVANCE.
21640 (produce_chars): Fix for the case that the source and the
21641 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
21642 instead of CHAR_STRING_ADVANCE.
21643 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
21644 STRING_CHAR_ADVANCE.
21645
216462008-03-15 Andreas Schwab <schwab@suse.de>
21647
21648 * regex.c (re_match_2_internal): Correct matching of eight bit
21649 characters in unibyte strings.
21650
216512008-03-15 Martin Rudalics <rudalics@gmx.at>
21652
21653 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
21654 at end of range when it coincides with the end of the buffer.
21655
216562008-03-14 Eli Zaretskii <eliz@gnu.org>
21657
21658 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
21659
21660 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
21661
216622008-03-14 Jason Rumney <jasonr@gnu.org>
21663
21664 * editfns.c (initial_tz): New variable.
21665 (syms_of_editfns): Initialize it.
21666 (Fset_time_zone_rule): Set it when first called.
21667 Use it when TZSTRING is nil.
21668
21669 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
21670 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
21671 (monitor_from_point_fn, get_monitor_info_fn): New globals.
21672 (globals_of_w32fns): Initialize them.
21673 (compute_tip_xy): Use them to position tooltips.
21674
216752008-03-14 Glenn Morris <rgm@gnu.org>
21676
21677 * emacs.c (main): Revert previous change.
21678 (standard_args): Revert -internal-script back to -scriptload,
21679 and remove the long-option form.
21680
216812008-03-13 Glenn Morris <rgm@gnu.org>
21682
21683 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
21684 Remove option -enable-font-backend.
21685
216862008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
21687
21688 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
21689
216902008-03-11 Jan Djärv <jan.h.d@swipnet.se>
21691
21692 * xterm.c (x_connection_closed): For GTK: If this is the last
21693 terminal just exit without closing the display.
21694
216952008-03-11 Jason Rumney <jasonr@gnu.org>
21696
21697 * w32font.c (w32font_full_name): Use floor to round.
21698
f0131492 216992008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
21700
21701 * sound.c (alsa_configure): Declare vol at beginning of block.
21702
21703 * fontset.c (Ffontset_info): Remove extra semicolon.
21704
217052008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
21706
21707 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
21708 size of resulting string.
21709
217102008-03-10 Jason Rumney <jasonr@gnu.org>
21711
21712 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
21713
217142008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21715
21716 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
21717 Don't pretend as if characters with display property haven't been
21718 consumed for string-replacing-string case.
21719
217202008-03-08 Kim F. Storm <storm@cua.dk>
21721
21722 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
21723 (get_next_display_element, next_element_from_string)
21724 (next_element_from_ellipsis, next_element_from_buffer): Use it.
21725
217262008-03-08 Andreas Schwab <schwab@suse.de>
21727
21728 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
21729
217302008-03-06 Jason Rumney <jasonr@gnu.org>
21731
21732 * w32font.c (w32_registry): Take font_type argument. Use ANSI
21733 when charset not specified. Only translate ANSI to unicode when
21734 font_type is truetype.
21735 (w32font_coverage_ok): New function.
21736 (add_font_entity_to_list): Use it to filter unsuitable fonts.
21737
217382008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
21739
21740 * lread.c (Fread_char): Resolve modifiers.
21741 (Fread_char_exclusive): Likewise.
21742
21743 * character.c (char_resolve_modifier_mask): New function.
21744 (char_string): Use char_resolve_modifier_mask.
21745 (Fchar_resolve_modifiers): New function.
21746 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
21747 function.
21748
217492008-03-04 Jason Rumney <jasonr@gnu.org>
21750
21751 * makefile.w32-in: Always include w32font.c in the build.
21752 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
21753
217542008-03-04 Andreas Schwab <schwab@suse.de>
21755
21756 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
21757 (versionclean): Likewise.
21758
217592008-03-04 Juanma Barranquero <lekktu@gmail.com>
21760
21761 * .cvsignore: Add oo.
21762
217632008-03-03 Andreas Schwab <schwab@suse.de>
21764
21765 * coding.c (decode_coding_object): Inhibit gap shrinking while
21766 decoding in place.
21767
217682008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
21769
21770 * w32term.c: Remove unused include "gnu.h".
21771 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
21772
21773 * gnu.h: Rename to ...
21774 * emacs-icon.h: ... this.
21775 * xterm.c: Use emacs-icon.h instead of gnu.h.
21776 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
21777
217782008-03-03 Juanma Barranquero <lekktu@gmail.com>
21779
21780 * w32font.c: Include math.h.
21781
217822008-03-03 Jason Rumney <jasonr@gnu.org>
21783
21784 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
21785 Compute options separately.
21786 (w32font_open_internal): Set glyph_idx before caching metrics.
21787
21788 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
21789 Define if system headers don't.
21790 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
21791 (w32font_encode_char): Don't declare here.
21792
21793 * w32font.c (Quniscribe, QCformat): New symbols.
21794 (syms_of_w32font): Define them.
21795 (w32font_has_char): Indicate uncertainty.
21796 (w32font_encode_char): Encode as glyph point. Make static.
21797 (recompute_cached_metrics): New function.
21798 (w32font_open_internal): Use it. Set font to use glyph points
21799 initially. Set format based on type of font.
21800 (w32font_text_extents, w32font_draw): Optionally use glyph points.
21801 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
21802 on it. Set format based on information available here.
21803 (add_font_entity_to_list): Identify backend based on opentype_only.
21804
218052008-03-02 Andreas Schwab <schwab@suse.de>
21806
21807 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
21808
21809 * coding.c (decode_coding_big5, produce_chars):
21810 Fix typos in last change.
21811
218122008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
21813
21814 * gnu.h: New icon.
21815
218162008-03-02 Kenichi Handa <handa@m17n.org>
21817
21818 * coding.c (decode_coding_utf_8): When eol-type of CODING is
21819 `dos', don't decode '\r' if that is the last in the source.
21820 (decode_coding_utf_16, decode_coding_emacs_mule)
21821 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21822 (decode_coding_raw_text, decode_coding_charset): Likewise.
21823 (produce_chars): Don't decode EOL here. Use EMACS_INT.
21824
218252008-03-01 Jason Rumney <jasonr@gnu.org>
21826
21827 * w32font.c (w32font_full_name): Report point size for scalable fonts.
21828
218292008-03-01 Kim F. Storm <storm@cua.dk>
21830
21831 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
21832
218332008-03-01 Jason Rumney <jasonr@gnu.org>
21834
21835 * w32font.c (w32font_full_name): New function.
21836 (w32font_open_internal): Use it.
21837
218382008-03-01 Kim F. Storm <storm@cua.dk>
21839
21840 * dispnew.c (line_draw_cost): Fix invalid glyph check.
21841
218422008-03-01 Jason Rumney <jasonr@gnu.org>
21843
21844 * font.c (font_unparse_fcname): Increase len when style is a symbol.
21845
218462008-03-01 Jan Djärv <jan.h.d@swipnet.se>
21847
21848 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
21849 xg_frame_resized when the event is for the edit widget.
21850
ef1b0ba7 21851 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
21852
21853 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
21854 set_char_size.
ef1b0ba7 21855 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
21856 operations on widgets here. Just set frame size if needed.
21857 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
21858 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
21859 (x_wm_set_size_hint): Set size hints on the edit widget only, not
21860 the whole frame.
21861 (xg_create_tool_bar): Move attachment of the tool bar to
21862 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
21863 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
21864
218652008-03-01 Jason Rumney <jasonr@gnu.org>
21866
21867 * w32fns.c (w32_msg_pump): Disable debug code.
21868
218692008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21870
21871 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
21872
218732008-02-29 Chong Yidong <cyd@stupidchicken.com>
21874
21875 * xdisp.c (next_overlay_string): Don't set
21876 overlay_strings_at_end_processed_p if we're currently reading from
21877 a display string.
21878
218792008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
21880
21881 * xdisp.c (get_overlay_strings_1): Fix typo.
21882
218832008-02-29 Chong Yidong <cyd@stupidchicken.com>
21884
21885 * xdisp.c (get_overlay_strings_1): Add missing argument type.
21886
218872008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
21888
21889 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
21890
21891 * xdisp.c (display_mode_element): Cancel the previous change.
21892 (decode_mode_spec): Likewise.
21893 (handle_auto_composed_prop): Don't make composition if it->string
21894 is a string.
21895
218962008-02-27 Kim F. Storm <storm@cua.dk>
21897
21898 * lisp.h (GLYPH): Change type from int to struct with separate char
21899 and face_id members.
21900 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
21901 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
21902 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
21903 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
21904 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
21905 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
21906 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
21907 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
21908 handle new Lisp glyph code encoding, either an integer or a cons.
21909
21910 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
21911 (GLYPH_ALIAS): Delete.
21912 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
21913 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
21914 (GLYPH_FROM_CHAR): Replace macro by ...
21915 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
21916
21917 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
21918 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
21919 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
21920 (GLYPH_INVALID_P): New macro.
21921 (spec_glyph_lookup_face): Update prototype.
21922
21923 * dispnew.c (line_draw_cost): Adapt to new glyph type.
21924 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
21925 new glyph code encoding.
21926 (spec_glyph_lookup_face): No return value; update passed glyph instead.
21927 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
21928
21929 * xdisp.c (get_next_display_element, next_element_from_display_vector):
21930 Adapt to new glyph type and new glyph code encoding.
21931
21932 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
21933
21934 * indent.c (current_column, current_column_1, Fmove_to_column)
21935 (compute_motion): Adapt to new glyph code encoding.
21936
21937 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
21938
219392008-02-27 Chong Yidong <cyd@stupidchicken.com>
21940
21941 * process.c (wait_reading_process_output): Check for window
21942 changes caused by timers.
21943 Suggested by Johan Bockgård.
21944
219452008-02-27 Glenn Morris <rgm@gnu.org>
21946
21947 * emacs.c (USAGE1): Add `--disable-font-backend'.
21948
219492008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
21950
21951 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
21952 is made to the buffer.
21953
219542008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
21955
21956 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
21957 (face_at_string_position):
21958 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
21959 (face_at_string_position):
21960 * xdisp.c (display_string, next_overlay_change):
21961 * buffer.h (overlays_at):
21962 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
21963 Update callers.
21964
219652008-02-26 Chong Yidong <cyd@stupidchicken.com>
21966
21967 * editfns.c (Fformat): Doc fix.
21968
219692008-02-26 Juanma Barranquero <lekktu@gmail.com>
21970
21971 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
21972 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
21973 (Ffont_otf_alternates, Fquery_font): Doc fixes.
21974
219752008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21976
21977 * buffer.c (Fbuffer_swap_text): New function.
21978 (syms_of_buffer): Defsubr it.
21979
219802008-02-25 Chong Yidong <cyd@stupidchicken.com>
21981
21982 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
21983
219842008-02-25 Jason Rumney <jasonr@gnu.org>
21985
21986 * w32font.c (w32font_draw): Draw one character at a time when padding.
21987
219882008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21989
21990 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
21991 Handle a nil arg. Use run_window_configuration_change_hook.
21992 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
21993 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
21994 Use run_window_configuration_change_hook.
21995
219962008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21997
21998 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
21999 1-pixel width.
22000
220012008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22002
22003 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
22004 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
22005 if the glyph in the font is zero pixel with.
22006
22007 * dispextern.h (struct glyph_string): New member padding_p.
22008
22009 * w32font.c (w32font_draw): Pay attention to s->padding_p.
22010
22011 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
22012
22013 * xfont.c (xfont_draw): Pay attention to s->padding_p.
22014
22015 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
22016
22017 * font.c: If the font driver doesn't have `shape' function, return Qnil.
22018
220192008-02-25 Jason Rumney <jasonr@gnu.org>
22020
22021 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
22022
220232008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
22024
22025 Allow fine-grained image-cache flushing.
22026 * dispextern.h (struct image): Add `dependencies' field.
22027 (clear_image_caches): Change arg to Lisp_Object.
22028 * image.c (make_image): Initialize `dependencies' field.
22029 (clear_image_cache): Change arg to allow fine-grained flushing.
22030 Perform the flush even if image-cache-eviction-delay is nil.
22031 (clear_image_caches): Change arg to Lisp_Object.
22032 (Fclear_image_cache): Expand meaning of the argument.
22033 (mark_image): Mark `dependencies' field.
22034 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
22035 (lface_hash): Use XHASH rather than XFASTINT.
22036 (face_at_buffer_position): Fix int -> EMACS_INT position.
22037 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
22038 (select_frame_for_redisplay): Remove code duplication.
22039 (redisplay_internal): Adapt arg to call to clear_image_caches.
22040
220412008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
22042
22043 * s/vms4-0.h:
22044 * s/vms4-2.h:
22045 * s/vms4-4.h:
22046 * s/vms5-5.h: Remove, unused.
22047
22048 * s/irix5-2.h:
22049 * s/irix6-0.h:
22050 * s/riscos5.h:
22051 * s/mach-bsd4-3.h:
22052 * m/mips4.h: Remove files for obsolete systems.
22053
22054 * Makefile.in:
22055 * filelock.c:
22056 * unexmips.c:
22057 * m/hp9000s300.h:
22058 * m/iris4d.h:
22059 * s/aix3-1.h:
22060 * s/hpux.h:
22061 * s/msdos.h:
22062 * s/usg5-0.h:
22063 * s/usg5-2-2.h:
22064 * s/usg5-2.h:
22065 * s/usg5-3.h: Remove references to obsolete variables.
22066
22067 * s/irix5-0.h: Remove, move all the contents ...
22068 * s/irix6-5.h: ... here. Simplify.
22069 * config.in: Regenerate.
22070
220712008-02-24 Jason Rumney <jasonr@gnu.org>
22072
22073 * w32term.c (x_draw_glyph_string_background): Clear the background
22074 manually when cleartype is in use.
22075 (x_draw_glyph_string_foreground): Draw text transparently when
22076 cleartype is in use.
22077
22078 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
22079 a font into it unless we have to.
22080
220812008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
22082
22083 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
22084 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 22085
aac0c6e3
MR
220862008-02-18 Jason Rumney <jasonr@gnu.org>
22087
22088 * w32fns.c (Fw32_shell_execute): Encode parameters.
22089
220902008-02-09 Eli Zaretskii <eliz@gnu.org>
22091
22092 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
22093
220942008-02-05 Juanma Barranquero <lekktu@gmail.com>
22095
22096 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
22097
220982008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
22099
22100 * xterm.c (x_set_offset): Don't change the gravity if
22101 CHANGE_GRAVITY is -1.
22102
221032008-02-23 Chong Yidong <cyd@stupidchicken.com>
22104
22105 * fileio.c (auto_save_error_occurred): New var.
22106 (auto_save_error): Set it.
22107 (Fdo_auto_save): Don't overwrite the error message if an auto-save
22108 error occurred.
22109
221102008-02-23 Eli Zaretskii <eliz@gnu.org>
22111
22112 * w32.c (globals_of_w32): Add initializations for
22113 g_b_init_get_sid_sub_authority and
22114 g_b_init_get_sid_sub_authority_count.
22115
221162008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
22117
22118 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
22119 (font_parse_xlfd): Use them for sanity check.
22120 (Finternal_set_font_style_table): Make sure the table is bijective.
22121
22122 Consolidate the image_cache to the terminal struct.
22123 * termhooks.h (P_): Remove redundant def.
22124 (struct terminal): New field `image_cache'.
22125 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
22126 of FRAME_X_IMAGE_CACHE.
22127 * xterm.h (struct x_display_info): Remove image_cache field.
22128 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22129 * w32term.h (struct w32_display_info): Remove image_cache field.
22130 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22131 * macterm.h (struct mac_display_info): Remove image_cache field.
22132 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22133 * xterm.c (x_term_init):
22134 * w32term.c (w32_term_init):
22135 * macterm.c (mac_term_init): Set the image_cache in the terminal.
22136 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
22137 Remove declarations.
22138 (clear_image_caches, mark_image_cache): New declarations.
22139 * xfaces.c (clear_face_cache):
22140 * xdisp.c (redisplay_internal): Use clear_image_caches.
22141 * image.c (clear_image_cache): Don't check that a frame is on
22142 a window-system before checking if it shares the same cache.
22143 (clear_image_caches): New function.
22144 (Fclear_image_cache): Use it.
22145 (mark_image): Move from allo.c.
22146 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
22147 * alloc.c (mark_image, mark_image_cache): Move to image.c.
22148 (mark_object): Don't call mark_image_cache for frames.
22149 (mark_terminals): Call mark_image_cache.
22150
22151 * lisp.h (Fdelete_terminal): Declare.
22152
22153 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
22154 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
22155 wrong_type_argument.
22156
221572008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
22158
22159 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
22160 malayalam.el, and tamil.el. Add sinhala.el.
22161
221622008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
22163
22164 * xterm.c (x_connection_closed): Consolidate identical tests.
22165 (x_delete_terminal): Don't crash if called via x_connection_closed.
22166
221672008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
22168
22169 * xdisp.c (decode_mode_spec): New arg string.
22170 (display_mode_element): Adjust for the above change.
22171
221722008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
22173
22174 * callint.c (Fcall_interactively): Use AREF.
22175
221762008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
22177
22178 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
22179
221802008-02-18 Jan Djärv <jan.h.d@swipnet.se>
22181
22182 * xfns.c (Fx_show_tip): Set string to " " if empty.
22183
221842008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
22185
22186 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
22187 with Qt.
22188
221892008-02-17 Kenichi Handa <handa@m17n.org>
22190
22191 * ftfont.c (ftfont_shape): Return Lispy number.
22192
22193 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
22194 for GCs.
22195 (Finternal_set_font_selection_order): Call font_update_sort_order
22196 only when enable_font_backend is set.
22197 (realize_x_face): Set face->font_info to that of default face only
22198 when enable_font_backend is set.
22199
22200 * xdisp.c (handle_composition_prop): Set it->c to the fist
22201 character of the composed region.
22202 (fill_composite_glyph_string): Set base_face->font_info to
22203 s->font_info. Get a face for ascii from base_face->ascii_face.
22204 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
22205 with a face already decided.
22206 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
22207 non-negative.
22208 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
22209 call font_prepare_composition unconditionally.
22210
22211 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
22212
22213 * xterm.h (struct x_display_info): New member font.
22214
22215 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
22216 (x_set_mouse_face_gc, x_new_font): Likewise.
22217 (x_term_init): Setup display_info->font.
22218 (x_delete_terminal): Free display_info->font.
22219
22220 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
22221
22222 * ftxfont.c (ftxfont_default_fid): Delete it.
22223 (ftxfont_open): Set xfont->fid to 0.
22224 (ftxfont_end_for_frame): Clear data specific to the frame and the
22225 font-driver.
22226
22227 * xftfont.c (xftfont_default_fid): Delete it.
22228 (xftfont_open): Set xfont->fid to 0.
22229
22230 * fontset.c (FONTSET_OBJLIST): New macro.
22231 (fontset_find_font): Update font-object list of the fontset.
22232 (free_realized_fontset): New function.
22233 (free_face_fontset): Call free_realized_fontset.
22234 (Ffont_info): Call font_close_object only when enable_font_backend
22235 is set.
22236
22237 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
22238 [HAVE_NTGUI]: Include w32term.h.
22239 [MAC_OS]: Include macterm.ch.
22240 (font_otf_ValueRecord): Use make_number.
22241 (font_finish_cache): Fix handling of reference count.
22242 (font_clear_cache): Update num_fonts.
22243 (font_open_entity): Update smallest_char_width and
22244 smallest_font_height of the frame.
22245 (font_close_object): Update num_fonts.
22246 (Fclear_font_cache): Fix finding the target cache data.
22247
222482008-02-16 Glenn Morris <rgm@gnu.org>
22249
22250 * fontset.c (Finternal_char_font): Fix compilation warning.
22251
222522008-02-16 Eli Zaretskii <eliz@gnu.org>
22253
22254 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
22255 instead of char arrays. Enlarge the size of array passed to
22256 get_token_information.
22257
22258 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
22259 warnings.
22260
222612008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
22262
22263 * .gdbinit: Don't set `args', it breaks gdb --args.
22264
222652008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
22266
22267 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
22268 within a narrowed buffer.
22269
222702008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
22271
22272 * coding.c (decode_coding_object, encode_coding_object):
22273 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
22274
222752008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
22276
22277 * coding.c (coding_set_destination): Use BEG_BYTE rather than
22278 hardcoding 1.
22279 (detect_coding_system):
22280 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
22281 (string_char_to_byte, string_byte_to_char, insert_from_gap):
22282 * insdel.c (insert_from_gap):
22283 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
22284 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
22285 (string_to_multibyte):
22286 * character.c (chars_in_text, multibyte_chars_in_text):
22287 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
22288
22289 * character.h (FETCH_STRING_CHAR_ADVANCE)
22290 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
22291 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
22292 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
22293
22294 * casefiddle.c (casify_region): Only call after-change and composition
22295 functions on the part of the region that was changed.
22296
22297 * keyboard.c (read_avail_input):
22298 * frame.c (Fdelete_frame): Call Fdelete_terminal.
22299
223002008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22301
22302 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
22303 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
22304
223052008-02-11 Juanma Barranquero <lekktu@gmail.com>
22306
22307 * w32menu.c (push_submenu_start, push_submenu_end)
22308 (push_left_right_boundary, push_menu_pane, push_menu_item):
22309 * keyboard.c (read_key_sequence): Don't pass args with side effects
22310 to AREF, it fails when compiling with -DENABLE_CHECKING.
22311
223122008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
22313
22314 * Makefile.in (${lispsource}international/charprop.el):
22315 Delete this target.
22316
22317 * search.c (boyer_moore): Fix incorrect synching of the trunk and
22318 emacs-unicode-2.
22319
223202008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22321
22322 * terminal.c (Fdelete_terminal): Clean up the `force' path.
22323
223242008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
22325
22326 * frame.c (Qnoelisp): New symbol.
22327 (syms_of_frame): Initialize it.
22328 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
22329 harmless Elisp code, from a strong `force' from x_connection_closed.
22330 * frame.h (Qnoelisp): Declare.
22331 * xterm.c (x_connection_closed): Pass `noelisp'.
22332
22333 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
22334 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
22335 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
22336 rather than `int' for the type of `type'.
22337
223382008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
22339
22340 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
22341
22342 * Makefile.in (GNUC): Remove support for gcc-1.x.
22343
223442008-02-10 Richard Stallman <rms@gnu.org>
22345
22346 * lisp.h (ASET): Use AREF, not ASLOT.
22347
223482008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
22349
22350 * lisp.h (ASET): Check bounds.
22351
223522008-02-10 Glenn Morris <rgm@gnu.org>
22353
22354 * buffer.c (mode-name): Doc fix.
22355
223562008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
22357
22358 * Makefile.in:
22359 * emacs.c:
22360 * gmalloc.c:
22361 * keyboard.c:
22362 * lisp.h:
22363 * m/ibm370aix.h:
22364 * process.c:
22365 * regex.c:
22366 * s/hpux.h:
22367 * sysdep.c:
22368 * sysselect.h:
22369 * systty.h:
22370 * unexec.c:
22371 * w32term.c:
22372 * xsmfns.c:
22373 * xterm.c: Remove code that deals with obsolete variables.
22374
22375 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
22376
22377 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
22378 nothing else needs it anymore.
22379
223802008-02-09 Eli Zaretskii <eliz@gnu.org>
22381
22382 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
22383 instead of unibyte_char_to_multibyte.
22384
223852008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
22386
22387 * s/gnu-linux.h: Remove commented out code.
22388
22389 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
22390
22391 * Makefile.in: Update what RMS says about using autoconf.
22392 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
22393 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
22394 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
22395 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
22396
223972008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
22398
22399 * keymap.c (Fkey_description): Move side effect outside of macro call.
22400
22401 * xfaces.c (Finternal_make_lisp_face):
22402 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
22403
22404 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
22405 (syms_of_fontset): Use ASET.
22406
22407 * fns.c (concat): Move side effect outside of macro call.
22408 (hash_clear): Use ASET.
22409
224102008-02-08 Richard Stallman <rms@gnu.org>
22411
22412 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
22413 If FORCE, and frame has a surrogate minibuffer for another frame,
22414 delete the other frame first.
22415
224162008-02-07 Timo Savola <timo.savola@iki.fi>
22417
22418 * xterm.c (x_detect_focus_change): Handle embed client message.
22419 (handle_one_xevent): Ditto.
22420 (handle_one_xevent): If embedded and we get a button press/release,
22421 request focus.
22422 (xembed_set_info, xembed_send_message): New functions.
22423 (x_make_frame_visible): Call xembed_set_info if embedded.
22424 (x_make_frame_invisible): Call xembed_set_info if embedded.
22425 (x_term_init): Initialize Xatom_XEMBED.
22426 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
22427 (x_iconify_frame): Ditto.
22428
22429 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
22430 (enum xembed_info, enum xembed_message, enum xembed_focus)
22431 (enum xembed_modifier, enum xembed_accelerator): New.
22432 (xembed_set_info, xembed_send_message): Declare.
22433 (FRAME_X_EMBEDDED_P): New.
22434
22435 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
22436 gtk_plug_new.
22437
22438 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
22439 window ID of a frame.
22440 (x_window): Reparent frame if embedded.
22441 (Fx_create_frame): Don't set border width if embedded.
22442
22443 * emacs.c (USAGE3): Add --parent-id.
22444 (standard_args): Ditto.
22445
224462008-02-07 Jan Djärv <jan.h.d@swipnet.se>
22447
22448 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
22449
224502008-02-07 Jim Meyering <meyering@redhat.com>
22451
22452 Use "do...while (0)", not "if (1)...else" in macro definitions.
22453 The latter provokes a warning from gcc about the empty else, when
22454 followed by ";". Also, without that trailing semicolon, it would
22455 silently swallow up any following statement.
22456 * syntax.h (SETUP_SYNTAX_TABLE)
22457 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
22458 * buffer.h (DECODE_POSITION): Likewise.
22459 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
22460 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
22461 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
22462 (FETCH_CHAR_ADVANCE): Likewise.
22463 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
22464
224652008-02-07 Jim Meyering <meyering@redhat.com>
22466
22467 * lread.c [lint]: Don't include <sys/inode.h>.
22468
224692008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
22470
22471 * xselect.c (x_handle_dnd_message):
22472 * xmenu.c (digest_single_submenu, xmenu_show):
22473 * xdisp.c (with_echo_area_buffer_unwind_data)
22474 (format_mode_line_unwind_data, unwind_format_mode_line)
22475 (display_menu_bar):
22476 * eval.c (Ffetch_bytecode):
22477 * doc.c (store_function_docstring):
22478 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
22479 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
22480 * buffer.c (add_overlay_mod_hooklist): Use ASET.
22481
224822008-02-07 Kenichi Handa <handa@m17n.org>
22483
22484 * ftxfont.c (ftxfont_open): Don't set
22485 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
22486
22487 * ftfont.c (ftfont_open): Fix previous change.
22488
224892008-02-06 Jason Rumney <jasonr@gnu.org>
22490
22491 * w32font.c (w32font_text_extents): Fill in lbearing metric.
22492 Use cached metrics for ASCII characters.
22493 (w32font_open_internal): Don't set font's owning_frame.
22494 Cache metrics for ASCII characters.
22495
22496 * w32font.h (struct w32font_info): Add ascii_metrics.
22497 Remove owning_frame.
22498
224992008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
22500
22501 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
22502 to negative value.
22503
22504 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
22505
22506 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
22507
22508 * charset.c (syms_of_charset): Set QCtest and Qeq.
22509
225102008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
22511
22512 * process.c (Fstart_process):
22513 * callproc.c (Fcall_process): Handle the case where
22514 Funhandled_file_name_directory returns nil.
22515
22516 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
22517 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
22518 * font.c (check_gstring): Use them and AREF to access the vector before
22519 we know it's really a gstring.
22520 (Ffont_shape_text): Fix typo.
46e722a9 22521 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
22522
22523 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
22524 Declare.
22525
22526 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
22527
225282008-02-05 Jason Rumney <jasonr@gnu.org>
22529
22530 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
22531 Set smallest_font_height and smallest_char_width in display info.
22532
225332008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
22534
22535 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
22536
225372008-02-05 Miles Bader <miles@gnu.org>
22538
22539 * xfaces.c (get_lface_attributes, merge_named_face)
22540 (lookup_named_face, lookup_derived_face, realize_named_face):
22541 Revert 2008-02-01 change by cyd@stupidchicken.com.
22542
225432008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
22544
22545 * fontset.c (Ffontset_info): Handle the case of inhibitting the
22546 fallback fonts.
22547 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
22548
225492008-02-04 Jason Rumney <jasonr@gnu.org>
22550
22551 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
22552 set full_name.
22553 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
22554
225552008-02-03 Jason Rumney <jasonr@gnu.org>
22556
22557 * makefile.w32-in (OBJ1): Include font.o here.
22558 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
22559
225602008-02-02 Jason Rumney <jasonr@gnu.org>
22561
22562 * makefile.w32-in (temacs): Bump EMHEAP to 21.
22563
225642008-02-01 Jason Rumney <jasonr@gnu.org>
22565
22566 * s/cygwin.h: Define VIRT_ADDR_VARIES.
22567
22568 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
22569
225702008-02-01 Andreas Schwab <schwab@suse.de>
22571
22572 * Makefile.in (shortlisp, lisp): Update for rename of
22573 ../lisp/language/myanmar.el.
22574
225752008-02-01 Chong Yidong <cyd@stupidchicken.com>
22576
22577 * xfaces.c (get_lface_attributes): Delete function.
22578 (merge_named_face, lookup_named_face, lookup_derived_face)
22579 (realize_named_face): Call lface_from_face_name directly, and use
22580 the fact that merge_face_vectors does not alter its FROM argument.
22581
225822008-02-01 Jason Rumney <jasonr@gnu.org>
22583
22584 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
22585 input in the default locale. Handle non-Unicode multibyte input.
22586
225872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22588
22589 * fontset.c (reorder_font_vector): Exclude nil elements from the
22590 font group. Don't try multiple fonts.
22591 (fontset_font): Adjust for the above change.
22592 (Finternal_char_font): Return nil if the found font doesn't
22593 contain the character ch.
22594
22595 * Makefile.in (lisp, shortlisp): Add cham.el.
22596
225972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22598
22599 * font.h (FONTP): Make it return 1 also for a font-object.
22600
22601 * .gdbinit (xfontset): New function.
22602
22603 * font.c (font_find_for_lface): Check if the character C is
22604 supported or not only for the first font.
22605
22606 * fontset.c (reorder_font_vector): Fix typo.
22607 (fontset_find_font): Don't add a font-spec specifying a script.
22608 Use 0 (not Qt) for the indication of empty font-group. Change the
22609 format of RFONT-DEF. Return Qt if no font in the font-group
22610 support the character.
22611 (fontset_font): Adjust for the above change. If no font was
22612 found the character, remember that.
22613 (face_for_char): Adjust for the change of RFONT-DEF.
22614 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
22615 no font for the target.
22616 (Finternal_char_font): Adjust for the change of RFONT-DEF.
22617
226182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22619
22620 * font.c (font_load_for_face): Handle the case that the font in
22621 face->lface is a string.
22622
226232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22624
22625 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
22626
226272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22628
22629 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
22630 Fix previous change. If the frame is not on a window system,
22631 signal an error.
22632
226332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22634
bba3e508
SM
22635 * coding.c (decode_coding_object, encode_coding_object):
22636 Adjust marker positions after conversion.
aac0c6e3
MR
22637
22638 * lisp.h (struct Lisp_Marker): New member need_adjustment.
22639
226402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22641
22642 * font.c (font_find_for_lface): Fix the handling of the return
22643 value of font_has_char.
22644 (Ffont_shape_text): Fix previous change.
22645
22646 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
22647 (fontset_ref_and_range): Delete it.
22648 (fontset_find_font): Call char_table_ref_and_range instead of
22649 FONTSET_REF_AND_RANGE.
22650 (make_fontset): Don't setup font groups of Latin here.
22651 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
22652 (new_fontset_from_font): Make the specified font the default for
22653 all Latin characters.
22654
226552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22656
22657 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
22658 is on a window system before accessing the fontset of the frame.
22659
226602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22661
22662 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
22663
22664 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
22665 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
22666
22667 * font.c (Ffont_shape_text): If the font driver doesn't have a
22668 shaper function, make zero-width glyphs to have at least one-pixel
22669 width. Fix setting of `to' field of glyphs.
22670
226712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22672
22673 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
22674 glyphs.
22675
22676 * font.h (struct font_driver): Improve docstring of member `shape'.
22677
226782008-02-01 Kenichi Handa <handa@m17n.org>
22679
22680 * composite.c (syms_of_composite): Fix docstring of
22681 auto-composition-function.
22682
22683 * font.h (LGLYPH_SIZE): New macro.
22684
22685 * font.c (Ffont_fill_gstring): Stop filling when a character not
22686 supported by the font is found.
22687 (Ffont_shape_text): When a shape callback function returns nil,
22688 try at most two more times with larger gstring.
22689 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
22690
22691 * xdisp.c (handle_auto_composed_prop): Change the argument to
22692 auto-composition-function.
22693
22694 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
22695 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
22696 Lispy glyph and store it in the lgstring.
22697
22698 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
22699
22700 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
22701
227022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22703
22704 * font.c (Ffont_shape_text): Avoid unnecessary composition.
22705
22706 * fontset.c (Vfont_encoding_charset_alist): New variable.
22707 (syms_of_fontset): DEFVAR it.
22708 (reorder_font_vector, fontset_find_font): Optimize for the case of
22709 no need of reordering.
22710 (face_for_char): Map the charset property by
22711 Vfont_encoding_charset_alist.
22712
227132008-02-01 Jason Rumney <jasonr@gnu.org>
22714
22715 * w32font.c (logfonts_match): Don't check adstyle here.
22716 (font_matches_spec): Check here against physical font instead.
22717 (add_font_entity_to_list): Avoid some substitutions.
22718
22719 * font.c (font_parse_fcname): Default weight and slant to normal.
22720 (font_score): Prefer normal fonts if weight or slant unspecified.
22721 (font_score) [WINDOWSNT]: Scale weight difference down to closer
22722 match freetype scores.
22723
227242008-02-01 Jason Rumney <jasonr@gnu.org>
22725
22726 * w32font.c (w32font_text_extents): Don't use the frame stored in the
22727 font, as it may have been deleted.
22728 (w32_enumfont_pattern_entity): Map generic family to adstyle using
22729 most common hyphenless variation.
22730 (logfonts_match): Check generic family.
22731 (font_matches_spec): Don't check generic family here.
22732 (fill_in_logfont): Set generic family based on adstyle.
22733
22734 * w32font.h (w32font_get_cache): Update declaration.
22735
227362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22737
22738 * ftfont.c (ftfont_get_cache): Adjust the argument type.
22739
22740 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
22741 If none of the new drivers are available, call font_update_drivers
22742 with the old drivers.
22743
22744 * w32font.c (w32font_get_cache): Adjust the argument type.
22745
22746 * xfont.c (xfont_get_cache): Adjust the argument type.
22747
22748 * font.h (struct font_driver): Change argument type of get_cache.
22749
22750 * xftfont.c (xftfont_start_for_frame): Delete prototype.
22751
22752 * font.c (Ffont_get): Fix arguments to Fassoc.
22753 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
22754 (font_clear_cache): New function.
22755 (font_list_entities, font_matching_entity): Use font_get_cache.
22756 (font_update_drivers): Call font_clear_cache when finishing a driver.
22757
22758 * fontset.c (fontset_find_font): Fix previous change.
22759
227602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22761
22762 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
22763 dpyinfo->font_table.
22764 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
22765 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
22766
22767 * font.c (font_at): Handle the case that the arg C is negative.
22768 Handle the unibyte case.
22769 (Ffont_at): Call font_at with the arg C -1.
22770
22771 * xdisp.c (handle_auto_composed_prop): Don't get a character at
22772 the position here, and call font_at with the arg C -1.
22773 Don't check the range of the existing composition at the point.
22774
227752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22776
22777 * fontset.c (fontset_add): New args charset_id and family.
22778 Change caller.
22779 (load_font_get_repertory, fontset_find_font): Assume that
22780 font_spec is always a font-spec object.
22781 (Fset_fontset_font): Always store a font-spec object in a fontset.
22782
22783 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
22784 instead of get_property_and_range.
22785
227862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22787
22788 * xftfont.c (struct xftfont_info): Delete the member ft_face.
22789 (xftfont_open): Don't keep locking face.
22790 (xftfont_close): Don't unlock face.
22791 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
22792
22793 * fontset.c (fontset_find_font): Don't prefer a font of
22794 supplementary charset.
22795
227962008-02-01 Kenichi Handa <handa@m17n.org>
22797
22798 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
22799 script, langsys_tag to langsys, new member script.
22800 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 22801 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
22802 listing to the script specified in that property. Fix arg to
22803 OTF_check_features.
22804
228052008-02-01 Jason Rumney <jasonr@gnu.org>
22806
22807 * w32font.h: New file.
22808
22809 * w32font.c: Include it.
22810 (struct w32font_info): Add owning_frame field. Move to w32font.h.
22811 (w32font_open): Set owning_frame.
22812 (w32font_text_extents): Use owning_frame.
22813 (struct font_callback_data): Add opentype_only field.
22814 (add_font_entity_to_list): Use it to filter fonts.
22815 Don't check against full name.
22816 (w32font_list_internal): New function.
22817 (w32font_list): Use it.
22818 (w32font_match_internal): New function.
22819 (w32font_match): Use it.
22820 (w32font_open_internal): New function.
22821 (w32font_open): Use it.
22822 (w32font_get_cache, w32font_close, w32font_has_char)
22823 (w32font_encode_char, w32font_text_extents, w32font_draw):
22824 Make non-static.
22825
22826 * makefile.w32-in (w32font.o): Depend on w32font.h.
22827
228282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22829
22830 * charset.c (Fdefine_charset_internal): Record a supplementary
22831 charset at the tail of Vcharset_order_list.
22832
22833 * font.c (Ffont_shape_text): Fix the return value.
22834
22835 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
22836
22837 * xdisp.c (handle_auto_composed_prop): Fix previous change.
22838
228392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22840
22841 * ftfont.c (struct OpenTypeSpec): New struct.
22842 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
22843 (ftfont_get_open_type_spec): New function.
22844 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
22845
22846 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
22847
228482008-02-01 Jason Rumney <jasonr@gnu.org>
22849
22850 * w32font.c (add_font_entity_to_list): Compare only the beginning
22851 of full name.
22852
228532008-02-01 Kenichi Handa <handa@m17n.org>
22854
22855 * xdisp.c (handle_auto_composed_prop): Simplify the code.
22856 Never return HANDLED_RECOMPUTE_PROPS.
22857
228582008-02-01 Kenichi Handa <handa@m17n.org>
22859
22860 * font.c (font_gstring_produce): Delete it.
22861
22862 * composite.h (COMPOSITION_METHOD):
22863 Handle COMPOSITION_WITH_GLYPH_STRING.
22864
228652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22866
22867 * xfont.c (Qx): Delete.
22868 (syms_of_xfont): Don't initialize Qx.
22869
22870 * composite.h (enum composition_method):
22871 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
22872
228732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22874
22875 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
22876 (choose_face_font): Accept new form of font-spec.
22877
22878 * frame.h (font_driver_list): Declare it unconditionally.
22879 (struct frame): Define members font_driver_list and font_data_list
22880 unconditionally.
22881
22882 * fontset.c: Include "font.h" unconditionally.
22883 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
22884 (Fset_fontset_font): Accept a font-spec object.
22885
22886 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
22887 PIXEL_SIZE part a wild card.
22888
22889 * dispextern.h (struct glyph_string): Define members clip and
22890 num_clips unconditionally.
22891 (struct face): Define members font_info and extra unconditionally.
22892
22893 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
22894 ftfont_info only when HAVE_LIBOTF is defined.
22895
228962008-02-01 Andreas Schwab <schwab@suse.de>
22897
22898 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
22899 and end.
22900
229012008-02-01 Jason Rumney <jasonr@gnu.org>
22902
22903 * w32font.c (w32font_driver): Add new fields.
22904
229052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22906
22907 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
22908 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
22909 (LIBES): Add @M17N_FLT_CFLAGS@.
22910
22911 * composite.c (compose_text): Don't treat the new style
22912 composition specially.
22913
22914 * emacs.c (main): Call syms_of_font unconditionally.
22915
22916 * font.h (FONT_ENTITY_NOT_LOADABLE)
22917 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
22918 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
22919 (struct font_driver): New member shape.
22920 (font_registry_charsets): Extern it.
22921 (font_find_for_lface, font_prepare_composition): Adjust prototype.
22922 (font_otf_capability, font_drive_otf): Delete their externs.
22923
22924 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
22925 (font_charset_alist, font_registry_charsets): Move from xfont.c
22926 and rename.
22927 (font_prop_validate_otf): New function.
22928 (font_property_table): Register it for QCotf.
22929 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
22930 (font_drive_otf): Delete.
22931 (font_prepare_composition): New arg F. Adjust for the change of
22932 lispy gstring.
22933 (font_find_for_lface): New arg C.
22934 (font_load_for_face): Adjust for the change of font_find_for_lface.
22935 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
22936 lispy gstring.
22937 (Ffont_shape_text): New function.
22938 (Fopen_font): If the font size is not given, use 12-pixel.
22939 (Ffont_at): New arg STRING.
40b1a3a9 22940 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
22941 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
22942 conditionally.
22943
22944 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
22945 fonts of the same font-spec. Change the format of RFONT-DEF.
22946 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
22947 Adjust for the change of RFONT-DEF.
22948 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
22949
22950 * ftfont.h: New file.
22951
22952 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
22953 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22954 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22955 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
22956 font_otf_capability and font_drive_otf, set ftfont_shape.
22957 (ftfont_list): Adjust for the change of :otf property value.
22958 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
22959 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
22960 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
22961 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22962 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
22963 (otf_gstring, gstring, m17n_flt_initialized): New variables.
22964
22965 * w32term.c (x_draw_composite_glyph_string_foreground):
22966 Adjust for the change of lispy gstring.
22967
22968 * xdisp.c (handle_composition_prop): Adjust for the change of
22969 lispy gstring. Call a function for auto-composition with the
22970 third arg it->window.
22971 (fill_composite_glyph_string): Adjust for the change of lispy string.
22972 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
22973
22974 * xfaces.c (set_font_frame_param): Adjust for the change of
22975 font_find_for_lface.
22976
22977 * xfont.c (x_font_charset_alist): Move to font.c and rename.
22978 (xfont_registry_charsets): Likewise. Change caller.
22979 (syms_of_xfont): Don't handle x_font_charset_alist.
22980
22981 * xftfont.c: Include "ftfont.h".
22982 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22983 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22984 (xftfont_close) [HAVE_LIBOTF]: Close otf.
22985 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22986 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
22987 Set xftfont_driver.shape to xftfont_shape.
22988
22989 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22990 the change of lispy gstring.
22991
229922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22993
22994 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
22995
229962008-02-01 Jason Rumney <jasonr@gnu.org>
22997
22998 * w32font.c (w32font_draw): Fill background manually.
22999
230002008-02-01 Jason Rumney <jasonr@gnu.org>
23001
23002 * font.c (Qfontp): Remove unused symbol.
23003 (QCantialias): New symbol.
23004 (syms_of_font): Define it.
23005 (font_property_table): Set a validator for QCantialias.
23006
23007 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
23008 Define if not already.
23009 (QCfamily): Share with xfaces.c.
23010 (Qstandard, Qsubpixel, Qnatural): New symbols.
23011 (syms_of_w32font): Define them. Don't define QCfamily here.
23012 (w32_antialias_type, lispy_antialias_type): New functions.
23013 (w32_enumfont_pattern_entity): New arg requested_font.
23014 Set antialias parameter if non-default was requested.
23015 (fill_in_logfont): Fill in lfQuality if :antialias specified.
23016
230172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23018
23019 * lread.c (read1): Undo the previous change.
23020
230212008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
23022
23023 * frame.c (Fdelete_frame): Call font_update_drivers only when
23024 USE_FONT_BACKEND is defined.
23025
230262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23027
23028 * font.h (struct font_bitmap): New member bits_per_pixel.
23029 (struct font_driver): New members start_for_frame and end_for_frame.
23030 (struct font_data_list): New struct.
23031 (font_put_frame_data, font_get_frame_data): Extern them.
23032
23033 * frame.h (struct frame): New member font_data_list.
23034
23035 * font.c (font_update_drivers): Call driver->start_for_frame and
23036 driver->end_for_frame at proper timings.
23037 (font_put_frame_data, font_get_frame_data): New functions.
23038 (Ffont_spec): Add usage in the docstring.
23039
23040 * frame.c (make_frame): Initialize f->font_data_list to NULL.
23041 (Fdelete_frame): Call font_update_drivers.
23042
23043 * xftfont.c (struct xftface_info): Delete the member xft_draw.
23044 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
23045 (xftfont_get_xft_draw): New function.
23046 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
23047 (xftfont_end_for_frame): New function.
23048 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
23049
23050 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
23051 Change argument. Cache GCs in the per-frame data.
23052 (struct ftxfont_frame_data): New struct.
23053 (ftxfont_draw_bitmap): New arg gc_fore and flush.
23054 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
23055 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
23056 (ftxfont_end_for_frame): New function.
23057 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
23058
23059 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
23060
230612008-02-01 Kenichi Handa <handa@m17n.org>
23062
23063 * xselect.c (Vselection_coding_system)
23064 (Vnext_selection_coding_system): Delete them.
23065 (syms_of_xselect): Don't declare selection-coding-system and
23066 next-selection-coding-system. They are declared in select.el.
23067
230682008-02-01 Jason Rumney <jasonr@gnu.org>
23069
23070 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
23071
23072 * w32fns.c: Include imm.h.
23073 (get_composition_string_fn, get_ime_context_fn): New optional
23074 system functions.
23075 (globals_of_w32fns): Load them from imm32.dll.
23076 (ignore_ime_char): New flag.
23077 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
23078 WM_IME_ENDCOMPOSITION messages.
23079
23080 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
23081 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
23082
230832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23084
23085 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
23086 (READCHAR_REPORT_MULTIBYTE): New macro.
23087 (readchar): New 2nd arg MULTIBYTE.
23088 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
23089 Make symbol's name multibyte according to the multibyteness of the
23090 source.
23091
230922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23093
23094 * xfaces.c (face_for_overlay_string): Call lookup_face with
23095 correct arguments (fix of synching with the trunk).
23096
230972008-02-01 Kenichi Handa <handa@m17n.org>
23098
23099 * font.c (font_prop_validate_symbol, font_prop_validate_style)
23100 (font_prop_validate_non_neg, font_prop_validate_spacing):
23101 Delete argument prop_index.
23102 (font_property_table): Change arguments to validater. Change Callers.
23103 (font_lispy_object): Delete.
23104 (font_at): Use font_find_object instead fo font_lispy_object.
23105
231062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23107
23108 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
23109 and file names.
23110
231112008-02-01 Jason Rumney <jasonr@gnu.org>
23112
23113 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
23114 (font_matches_spec): Remove debug output.
23115 (add_font_entity_to_list): Avoid using substituted fonts.
23116
231172008-02-01 Jason Rumney <jasonr@gnu.org>
23118
23119 * doc.c (Fsnarf_documentation):
23120 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
23121
231222008-02-01 Miles Bader <miles@gnu.org>
23123
23124 * dispextern.h (struct glyph_row): Only define "clip" field if
23125 HAVE_WINDOW_SYSTEM is defined.
23126
231272008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23128
23129 Fix up multi-tty merge.
23130
23131 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
23132 and indentation.
23133
23134 * xfaces.c (free_realized_face, clear_face_gcs):
23135 Include font_done_for_face in the input_blocked section, just in case.
23136
23137 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
23138 (get_char_face_and_encoding): Undo last change and remove the *other*
23139 duplicate definition (i.e. keep the one that's better scoped and that
23140 includes code for the font-backend).
23141
23142 * terminal.c (create_terminal): Default keyboard_coding to
23143 `no-conversion' and terminal_coding to `undecided'.
23144
23145 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
23146
23147 * fontset.c (free_realized_fontsets): Check that the table entry does
23148 contain a fontset before trying to compare it to `base'.
23149
23150 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
23151 syms_of_charset, and syms_of_coding earlier because init_window_once
23152 now needs Vcoding_system_hash_table to be setup.
23153
23154 * coding.h (default_buffer_file_coding): Remove.
23155
23156 * coding.c (default_buffer_file_coding): Remove.
23157 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
23158 than ->symbol, and use the terminal-local coding system.
23159 (syms_of_coding): Don't setup the coding-systems that are not
23160 terminal-local.
23161 (Fdefine_coding_system_internal): Use XCAR/XCDR.
23162
23163 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
23164 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
23165
23166 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
23167 in chartab.c and were re-added here by mistake.
23168 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
23169
23170 * doc.c (Fsnarf_documentation):
23171 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
23172 src to etc.
23173
23174 * ChangeLog.10: Add mistakenly removed entry.
23175
231762008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
23177
23178 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
23179
231802008-02-01 Miles Bader <miles@gnu.org>
23181
23182 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
23183 Add extra args to FACE_FOR_CHAR.
23184
231852008-02-01 Kenichi Handa <handa@m17n.org>
23186
23187 * keymap.c (where_is_internal_1): If key is a cons, store the copy
23188 in sequence.
23189
23190 * chartab.c (map_sub_char_table, map_char_table): If the range
23191 contains just one character, call the function with that character
23192 even if the depth is not 3.
23193
231942008-02-01 Jason Rumney <jasonr@gnu.org>
23195
23196 * w32font.c (w32font_text_extents): Calculate metrics for the
23197 whole string.
23198
231992008-02-01 Jason Rumney <jasonr@gnu.org>
23200
23201 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
23202
232032008-02-01 Jason Rumney <jasonr@gnu.org>
23204
bba3e508
SM
23205 * w32term.c (x_set_glyph_string_clipping):
23206 Use get_glyph_string_clip_rects.
aac0c6e3
MR
23207 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23208 Adjust for the change of struct glyph_string.
23209
23210 * w32font.c (w32font_draw): Do clipping here.
23211
232122008-02-01 Kenichi Handa <handa@m17n.org>
23213
23214 * xftfont.c (xftfont_draw): Adjust for the change of struct
23215 glyph_string.
23216
bba3e508
SM
23217 * xterm.c (x_set_glyph_string_clipping):
23218 Use get_glyph_string_clip_rects.
aac0c6e3
MR
23219 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23220 Adjust for the change of struct glyph_string.
23221
23222 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
23223 the resulting clip(s}.
23224 (expose_overlaps): Add arg r. Change callers. Set it to
23225 row->clip temporarily.
23226 (expose_window): Redraw rows overlapping the exposed area.
23227
23228 * dispextern.h (struct glyph_row): New member clip.
23229 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
23230 clip_height, new member clip, and num_clips.
23231
232322008-02-01 Kenichi Handa <handa@m17n.org>
23233
23234 * data.c (Fchar_or_string_p): Fix docstring.
23235
232362008-02-01 Kenichi Handa <handa@m17n.org>
23237
23238 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
23239 create a temporary XftDraw object.
23240
232412008-02-01 Kenichi Handa <handa@m17n.org>
23242
23243 * font.c (Ffontp): Fix docstring.
23244
23245 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
23246 strong evidence of ISO-2022.
23247
232482008-02-01 Kenichi Handa <handa@m17n.org>
23249
23250 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
23251 SYNTAX_ENTRY_FOLLOW_PARENT.
23252
232532008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23254
23255 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
23256 its type.
23257 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23258 Update to the new type of weak_hash_tables and next_weak.
23259
23260 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
23261 a plain C pointer to Lisp_Hash_Table.
23262
23263 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
23264 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
23265 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
23266 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
23267 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
23268 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
23269 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
23270 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
23271 (GC_EQ): Remove since they've been identical to their non-GC_
23272 alter-egos ever since the markbit was eradicated.
23273
23274 * alloc.c:
23275 * buffer.c:
23276 * buffer.h:
23277 * data.c:
23278 * fileio.c:
23279 * filelock.c:
23280 * fns.c:
23281 * frame.h:
23282 * lisp.h:
23283 * macterm.c:
23284 * print.c:
23285 * process.c:
23286 * w32fns.c:
23287 * w32menu.c:
23288 * w32term.c:
23289 * xfns.c:
23290 * xmenu.c:
23291 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
23292
232932008-02-01 Kenichi Handa <handa@m17n.org>
23294
23295 * chartab.c (map_sub_char_table): Make it work for the top-level
23296 char-table. Fix handling of parent char-table.
23297 (map_char_table): Adjust for the above change.
23298
232992008-02-01 Jason Rumney <jasonr@gnu.org>
23300
23301 * w32font.c (Qgdi): Rename from Qw32.
23302
233032008-02-01 Jason Rumney <jasonr@gnu.org>
23304
23305 * w32bdf.c (get_quoted_string): Make function static.
23306
233072008-02-01 Kenichi Handa <handa@m17n.org>
23308
23309 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
23310 bigger ascent and descent than those of the font, use them as
23311 font's ascent and descent.
23312
233132008-02-01 Kenichi Handa <handa@m17n.org>
23314
23315 * Makefile.in (${lispsource}international/charprop.el): Move this
23316 target within "#ifdef HAVE_UNIDATA" and "#endif".
23317
233182008-02-01 Kenichi Handa <handa@m17n.org>
23319
23320 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
23321 (shortlisp): Add ../lisp/language/tai-viet.el.
23322
233232008-02-01 Ulrich Mueller <ulm@gentoo.org>
23324
23325 * Makefile.in (${lispsource}international/charprop.el): Depend on
23326 temacs${EXEEXT}.
23327
233282008-02-01 Jason Rumney <jasonr@gnu.org>
23329
23330 * w32font.c (w32font_close): Delete the GDI font object.
23331
23332 * w32menu.c: Include character.h.
23333
23334 * w32proc.c: Likewise.
23335
23336 * w32select.c: Likewise.
23337
23338 * makefile.w32-in (w32proc.o): Depend on character.h.
23339
233402008-02-01 Jason Rumney <jasonr@gnu.org>
23341
23342 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
23343
23344 * w32menu.c (syms_of_w32menu): Likewise.
23345
23346 * w32proc.c (syms_of_ntproc): Likewise.
23347
23348 * w32select.c (syms_of_w32select): Likewise.
23349
23350 * w32term.c (syms_of_w32term): Likewise.
23351
233522008-02-01 Jason Rumney <jasonr@gnu.org>
23353
23354 * w32font.c (w32font_draw): Delete brush after using it.
23355
233562008-02-01 Jason Rumney <jasonr@gnu.org>
23357
23358 * w32font.c (w32font_open): Don't set font_idx.
23359 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
23360 to font settings.
23361 (w32font_draw): Fill background explicitly.
23362
233632008-02-01 Jason Rumney <jasonr@gnu.org>
23364
23365 * w32term.c (w32_initialize): Don't call w32font_initialize.
23366
23367 * w32font.c (w32font_info): Remove subranges.
23368 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
23369 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
23370 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
23371 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
23372 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
23373 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
23374 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
23375 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
23376 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
23377 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
23378 New symbols.
23379 (font_callback_data): New struct.
23380 (w32font_list, w32font_match): Use it.
23381 (w32font_open): Don't populate subranges.
23382 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
23383 (w32font_encode_char): Always return unicode code-point as-is.
23384 (w32font_text_extents): Supply a transformation matrix to
23385 GetGlyphOutline. Never look up by glyph index. Avoid looping
23386 twice. Use unicode version of GetTexExtentPoint32 instead of
23387 glyph index version.
23388 (set_fonts_frame): Remove.
23389 (w32_enumfont_pattern_entity): Add frame parameter, use it to
23390 set frame parameter. Use backward compatible fake foundries.
23391 Save generic family in extra slot under QCfamily. Make width slot
23392 constant. Save QCspacing value. Save list of scripts instead of
23393 binary subranges.
23394 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
23395 (add_font_entity_to_list): Use font_callback_data struct.
23396 Filter unwanted fonts.
aac0c6e3
MR
23397 (add_one_font_entity_to_list): Use font_callback_data struct.
23398 (w32_registry): Default to iso10646_1.
23399 (fill_in_logfont): Use dpi from extra slot. Don't bother with
23400 string font registries. Don't fill in font name if it is a generic
23401 family name, fill family instead. Use spacing, family and script
23402 extra info to fill pitch, family and charset fields.
23403 (list_all_matching_fonts): Use font_callback_data struct.
23404 (unicode_range_for_char): Remove.
23405 (font_supported_scripts): New function.
23406 (w32font_initialize): Remove.
23407 (syms_of_w32font): Update which symbols are defined.
23408
234092008-02-01 Jason Rumney <jasonr@gnu.org>
23410
23411 * font.c (font_pixel_size): Reverse assq_no_quit args.
23412
23413 * w32term.h (FONT_WIDTH): Report max width, not average.
23414 (FONT_MAX_WIDTH): Remove.
23415 (FONT_AVG_WIDTH): New macro.
23416
23417 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
23418 redefinition of FONT_WIDTH.
23419
23420 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
23421 (w32_cache_char_metrics): Use FONT_WIDTH.
23422
23423 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
23424
234252008-02-01 Jason Rumney <jasonr@gnu.org>
23426
23427 * w32font.c (w32font_open): Make lfHeight negative.
23428
23429 * w32fns.c (x_default_font_parameter): Use new style font name.
23430 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
23431
234322008-02-01 Jason Rumney <jasonr@gnu.org>
23433
23434 * w32font.c (QCsubranges): New symbol.
23435 (w32font_open, w32font_has_char): Get subranges from subproperty
23436 of extra.
23437 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
23438 (syms_of_w32font): Define :subranges symbol.
23439
23440 * font.c (font_put_extra): Expose externally.
23441
23442 * font.h (font_put_extra): Move declaration from font.c.
23443
23444 * font.c (Ffont_get): Use font driver to determine otf capability.
23445 (adjust_anchor): Check if driver defines anchor_point before using.
23446
23447 * w32font.c (w32font_open): Handle size, height and pixel_size better.
23448 (w32font_draw): Use options.
23449 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
23450 Fix detection of truetype fonts.
23451 (registry_to_w32_charset): Handle charsets other than iso8859-1
23452 expressed as lisp symbols.
23453 (w32_registry): Express charset as lisp symbol.
23454 (fill_in_logfont): Reverse pixel and point height logic.
23455 Don't set width here. Set quality to default.
23456
23457 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
23458 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
23459
23460 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
23461 Remove redundant loop and allocation.
23462
23463 * makefile.w32-in (font.o, w32font.o): New objects.
23464 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
23465 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
23466
23467 * xdisp.c (fill_composite_glyph_string): Make the first arg to
23468 STORE_XCHARB a valid l-value.
23469
23470 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
23471 calculations for non-Truetype fonts.
23472 (x_draw_glyph_string): Sync with xterm.c.
23473 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
23474 Remove redundant code.
23475 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
23476
23477 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
23478 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
23479
23480 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
23481 (x_to_w32_charset, w32_to_x_charset): Expose externally.
23482
23483 * w32font.c: New file for w32 font backend.
23484
234852008-02-01 Kenichi Handa <handa@m17n.org>
23486
23487 * term.c: Don't include "buffer.h" twice.
23488
234892008-02-01 Kenichi Handa <handa@m17n.org>
23490
23491 * character.c (Funibyte_string): New function.
23492 (syms_of_character): Defsubr it.
23493
234942008-02-01 Jason Rumney <jasonr@gnu.org>
23495
23496 * w32term.c [USE_FONT_BACKEND]:
23497 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
23498 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
23499 (x_draw_glyph_string, x_draw_glyph_string_foreground)
23500 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
23501 (x_free_frame_resources): Sync with xterm.c.
23502
235032008-02-01 Andreas Schwab <schwab@suse.de>
23504
23505 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
23506 char-table size.
23507
235082008-02-01 Kenichi Handa <handa@m17n.org>
23509
23510 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
23511
235122008-02-01 Kenichi Handa <handa@m17n.org>
23513
23514 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
23515 font_otf_gpos, add font_drive_otf.
23516
23517 * fontset.c (fontset_find_font): Pay attention to font size
23518 specified for a font.
23519 (reorder_font_vector): Check contents of font_def.
23520
23521 * font.c (struct otf_list): Delete it.
23522 (otf_list): Make it a lisp variable.
23523 (otf_open): Use lispy otf_list.
23524 (generate_otf_features): Rename from parse_gsub_gpos_spec.
23525 (check_otf_features): New function.
23526 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
23527 New functions.
23528 (font_drive_otf): New function merging font_otf_gsub and
23529 font_otf_gpos.
23530 (font_open_for_lface): New arg spec. Change argument order.
23531 (font_load_for_face): Adjust for the change of font_open_for_lface.
23532 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
23533 Ffont_otf_gpos.
23534 (syms_of_font): Staticpro otf_list. Delete defsubr of
23535 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
23536
23537 * xfaces.c (set_font_frame_param): Adjust for the change of
23538 font_open_for_lface.
23539
23540 * font.h (font_open_for_lface): Adjust prototype.
23541 (struct font_driver): Delete members otf_gsub and otf_gpos, add
23542 member otf_drive.
23543 (font_otf_gsub, font_otf_gpos): Delete externs.
23544 (font_drive_otf): Extern it.
23545
235462008-02-01 Kenichi Handa <handa@m17n.org>
23547
23548 * font.c (font_at): If the window W is not on a window system,
23549 return Qnil.
23550
23551 * coding.c (produce_chars, encode_coding): Don't call
23552 insert_from_gap if no characters to produce.
23553
235542008-02-01 Kenichi Handa <handa@m17n.org>
23555
23556 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
23557 Fclear_face_cache.
23558
23559 * xfaces.c (face_for_font): Check also face->font==font->font.font.
23560
235612008-02-01 Miles Bader <miles@gnu.org>
23562
23563 * emacs.c (main): Change default value of `enable_font_backend' to 1.
23564 Parse "--disable-font-backend" option.
23565 (standard_args): Add "--disable-font-backend" option.
23566
235672008-02-01 Kenichi Handa <handa@m17n.org>
23568
23569 * fontset.c (fontset_find_font): New function.
23570 (fontset_font): Use fontset_find_font.
23571 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
23572 Register the specified font for all Latin characters.
23573 (new_fontset_from_font): Register the specified font for all Latin
23574 characters.
23575 (dump_fontset): For a realized fontset, include the base fontset
23576 name in the returned vector.
23577
235782008-02-01 Kenichi Handa <handa@m17n.org>
23579
23580 * character.h (CHAR_STRING): Cast C to unsigned on calling
23581 char_string.
23582
23583 * character.c (char_string): Type of arg C changed to unsigned.
23584 Signal an error if C is an invalid character code.
23585
23586 * editfns.c (general_insert_function, Fchar_to_string):
23587 Use CHARACTERP, not INTEGERP.
23588
235892008-02-01 Kenichi Handa <handa@m17n.org>
23590
23591 * character.h (MIN_MULTIBYTE_LEADING_CODE)
23592 (MAX_MULTIBYTE_LEADING_CODE): New macros.
23593
23594 * regex.c (analyse_first): Fix for multibyte characters in "case
23595 charset:" and "case categoryspec:".
23596
235972008-02-01 Andreas Schwab <schwab@suse.de>
23598
23599 * Makefile.in (LIBES): Move standard libraries to the end.
23600
236012008-02-01 Kenichi Handa <handa@m17n.org>
23602
23603 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
23604 nonzero, don't shrink the buffer nextb.
23605
23606 * buffer.h (struct buffer_text): New member inhibit_shrinking.
23607
23608 * coding.c (coding_alloc_by_making_gap): New arg offset.
23609 (alloc_destination): Call coding_alloc_by_making_gap with the arg
23610 offset.
23611 (decode_coding_iso_2022): Update coding->safe_charsets.
23612 (decode_coding_gap): Temporarily set
23613 current_buffer->text->inhibit_shrinking to 1.
23614
236152008-02-01 Kenichi Handa <handa@m17n.org>
23616
bba3e508
SM
23617 * xterm.c (x_draw_composite_glyph_string_foreground):
23618 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
23619
236202008-02-01 Juanma Barranquero <lekktu@gmail.com>
23621
23622 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
23623
236242008-02-01 Kenichi Handa <handa@m17n.org>
23625
23626 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
23627 target_multibyte instead of multibyte.
23628 (re_match_2_internal): Call bcmp_translate with target_multibyte.
23629 (bcmp_translate): Change the argument name from multibyte to
23630 target_multibyte.
23631
236322008-02-01 Kenichi Handa <handa@m17n.org>
23633
23634 These changes are to compile a regexp into a pattern that can be
23635 used both for multibyte and unibyte targets.
23636
23637 * Makefile.in (search.o): Depend on charset.h.
23638
23639 * character.c (multibyte_char_to_unibyte_safe): New function.
23640
23641 * search.c: Include "charset.h".
23642 (compile_pattern_1): Delete argument multibyte. Don't set
23643 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
23644 (compile_pattern): Don't compare cp->buf.target_multibyte.
23645 Compare cp->buf.charset_unibyte.
23646 (compile_pattern): Set cp->buf.target_multibyte.
23647
23648 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
23649
23650 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
23651
23652 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
23653 multibyte. Change callers.
23654 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
23655 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
23656 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
23657 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
23658 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
23659 (regex_compile): Make the compiled pattern usable both for
23660 multibyte and unibyte targets.
23661 (analyse_first): Make the fastmap usable both for multibyte and
23662 unibyte targets.
23663 (TRANSLATE_VIA_MULTIBYTE): Delete.
23664 (re_match_2_internal): Pay attention to the case that the
23665 multibyteness of bufp and target may be different.
23666
236672008-02-01 Kenichi Handa <handa@m17n.org>
23668
23669 * xdisp.c (x_produce_glyphs): When a font is not found, make the
23670 empty box occupy at least one column width.
23671
236722008-02-01 Miles Bader <miles@gnu.org>
23673
23674 * Makefile.in: Remove redundant HAVE_XFT clause.
23675
236762008-02-01 Kenichi Handa <handa@m17n.org>
23677
23678 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
23679
236802008-02-01 Kenichi Handa <handa@m17n.org>
23681
23682 * fontset.c (Finternal_char_font): Fix for the case of POSITION
23683 being nil.
23684
236852008-02-01 Kenichi Handa <handa@m17n.org>
23686
23687 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
23688
236892008-02-01 Kenichi Handa <handa@m17n.org>
23690
23691 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
23692
236932008-02-01 Kenichi Handa <handa@m17n.org>
23694
23695 * search.c (simple_search): Fix previous change.
23696
236972008-02-01 Kenichi Handa <handa@m17n.org>
23698
23699 * xftfont.c (ftfont_font_format): Extern declaration.
23700
23701 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
23702
23703 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
23704 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
23705
23706 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
23707 (ftfont_font_format): Fix previous change.
23708
23709 * font.h (Ffont_xlfd_name): EXFUN it.
23710
23711 * font.c (font_parse_xlfd): Fix the array size of `f'.
23712 (register_font_driver): Use EQ to compare driver->type.
23713
23714 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
23715 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
23716 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
23717
237182008-02-01 Kenichi Handa <handa@m17n.org>
23719
23720 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
23721 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
23722
237232008-02-01 Kenichi Handa <handa@m17n.org>
23724
23725 * xfont.c (xfont_open): Set font->format.
23726
23727 * xftfont.c (xftfont_open): Set font->format.
23728
23729 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
23730 (ftfont_list): Include FC_FONTFORMAT in FcObject.
23731 (ftfont_open): Set font->format.
23732 (ftfont_font_format): New function.
23733
23734 * font.h (struct font): New member format.
23735
23736 * font.c (Qopentype): New variable.
23737 (syms_of_font): Defsym it.
23738 (Fquery_font): Change the format of the last element of the return
23739 value.
23740
237412008-02-01 Kenichi Handa <handa@m17n.org>
23742
23743 * xfns.c (xic_create_xfontset): Try the default fontset name as a
23744 last resort.
23745
237462008-02-01 Kenichi Handa <handa@m17n.org>
23747
23748 * coding.c (detect_coding_charset): Fix detection of multi-byte
23749 charset.
23750
237512008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
23752
23753 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
23754
237552008-02-01 Kenichi Handa <handa@m17n.org>
23756
23757 * xdisp.c (get_next_display_element): Set it->face_id for the
23758 first component of a composition.
23759 (x_produce_glyphs): Check if the font is changed or not for composition.
23760
237612008-02-01 Kenichi Handa <handa@m17n.org>
23762
23763 * fontset.c (Qlatin): New variable.
23764 (syms_of_fontset): Define it as a lisp symbol.
23765 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
23766
237672008-02-01 Kenichi Handa <handa@m17n.org>
23768
23769 * font.c (font_unparse_fcname): Pay attention to the case that
23770 some of font property is a null string.
23771
237722008-02-01 Kenichi Handa <handa@m17n.org>
23773
23774 * term.c: Include "composite.h".
23775 (encode_terminal_code): Output all components of composition.
23776 Check the size of encode_terminal_src.
23777 (produce_glyphs): For composition, call produce_composite_glyph.
23778 (append_composite_glyph, produce_composite_glyph): New functions.
23779
23780 * xdisp.c (x_produce_glyphs): In handling composition, if a font
23781 is not found, get font_info from the current ascii face.
23782
237832008-02-01 Kenichi Handa <handa@m17n.org>
23784
23785 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
23786 buffer-file-name to Qnil before calling insert_from_buffer.
23787
23788 * font.c (font_unparse_fcname): Pay attention to the case that
23789 foundry is a null string.
23790
237912008-02-01 Kenichi Handa <handa@m17n.org>
23792
23793 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
23794
23795 * font.c (Qunicode_sip): New variable.
23796 (syms_of_font): Declare it as a Lisp symbol.
23797
23798 * font.h (Qunicode_sip): Extern it.
23799
238002008-02-01 Kenichi Handa <handa@m17n.org>
23801
23802 * composite.c (get_composition_id): Pay attention to TAB component.
23803
23804 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
23805 TAB. Adjust for the change of s->char2b which always points to
23806 the first element of allocated memory.
23807
23808 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
23809
23810 * xdisp.c (handle_composition_prop): Set it->c to the first
23811 non-TAB component.
23812 (fill_composite_glyph_string): Change argument.
23813 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
23814 (x_produce_glyphs): Fix handling of left/right padding.
23815
238162008-02-01 Kenichi Handa <handa@m17n.org>
23817
23818 * coding.c (detect_coding_system): Fix for handling off
23819 inhibit_iso_escape_detection. Fix for the case that no coding
23820 system is defined for a specific coding category.
23821
238222008-02-01 Kenichi Handa <handa@m17n.org>
23823
23824 * font.c (font_matching_entity): Delete unused local var.
23825
23826 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
23827 opening a font.
23828
23829 * fileio.c (Finsert_file_contents): On recovering a file, assume
23830 Unix-like eol.
23831 (choose_write_coding_system): On auto-saving a file, force
23832 Unix-like eol.
23833
23834 * coding.c (setup_coding_system): Fix setting of
23835 coding->common_flags based on eol_type.
23836 (coding_inherit_eol_type): If PARENT is not nil, be sure to
23837 inherit from it.
23838
238392008-02-01 Kenichi Handa <handa@m17n.org>
23840
23841 * alloc.c (NSTATICS): Increas to 0x600.
23842
238432008-02-01 Kenichi Handa <handa@m17n.org>
23844
23845 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
23846 (ftfont_list): Don't check :name property.
23847 (ftfont_match): New function.
23848 (ftfont_pattern_entity): If the pattern doesn't contain
23849 FC_SPACING, don't assume FC_MONO.
23850
23851 * font.h (struct font_driver): New member `match'.
23852 (font_update_drivers): Adjust prototype.
23853
23854 * font.c (font_parse_fcname, font_parse_name): Don't change :name
23855 property of FONT.
bba3e508
SM
23856 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
23857 Define them unconditionally.
aac0c6e3
MR
23858 (font_matching_entity): New function.
23859 (font_open_by_name): Try font_matching_entity if exact match is
23860 not found.
23861 (font_update_drivers): Delete the arg FONT. Return a list of
23862 actually used backends. Don't free faces, font caches here.
23863 Don't store data in frame parameters. Don't call x_set_font.
23864 (Ffont_spec): Store :name property as is.
23865 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
23866 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
23867 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
23868 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
23869 Call font->driver->otf_gsub instead of font_otf_gsub.
23870
23871 * frame.c (x_set_font_backend): Do more works that were done in
23872 font_update_drivers before.
23873
23874 * xfont.c (xfont_match): New function.
23875 (xfont_driver): Set xfont_driver.match to xfont_match.
23876 (xfont_draw): Set font in GC if necessary.
23877
23878 * ftxfont.c (ftxfont_match): New function.
23879 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
23880
23881 * xftfont.c (xftfont_match): New function.
23882 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
23883
238842008-02-01 Kenichi Handa <handa@m17n.org>
23885
23886 * font.h (struct font): New member scalable.
23887 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
23888 (font_otf_gsub): Adjust prototype.
23889
23890 * font.c (font_otf_capability): Fix handling of the default langsys.
23891 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
23892 Check the contents of SPEC.
23893 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
23894 (check_gstring): New function.
23895 (REPLACEMENT_CHARACTER): New macro.
23896 (font_otf_gsub): New arg alternate_subst. Be sure to set all
23897 glyph codes of GSTRING.
23898 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
23899 (font_prepare_composition): Set cmp->glyph_len.
23900 (font_open_entity): Set font->scalable.
23901 (Ffont_get): Handle :otf property.
bba3e508
SM
23902 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
23903 New functions.
aac0c6e3
MR
23904 (Fquery_font): Use font->font.full_name.
23905 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
23906 Sfont_otf_alternates.
23907
23908 * ftfont.c (ftfont_open): Set font->font.full_name and
23909 font->font.name properly. Fix calculation of font->font.height
23910 and font->min_width.
23911
23912 * ftxfont.c (ftxfont_create_gcs): New function.
23913 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
23914 (ftxfont_draw_backgrond): Fix filling region.
23915 (ftxfont_default_fid): New function.
23916 (ftxfont_open): Set xfont->fid to the return value of
23917 ftxfont_default_fid.
23918 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
23919 (ftxfont_done_face): Free only GCs that are created by
23920 ftxfont_create_gcs.
23921 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
23922
23923 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
23924 Clip to src->width, etc (not src->clip_XXX).
23925
23926 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
23927 FontBackend frame parameter.
23928
239292008-02-01 Kenichi Handa <handa@m17n.org>
23930
23931 * font.h (struct font_driver_list): New member `on'.
23932 (Fclear_font_cache): EXFUN it.
23933 (font_update_drivers): Extern it.
23934
23935 * font.c (font_unparse_fcname): Fix typo (swidth->width).
23936 (font_list_entities): Check driver_list->on.
40b1a3a9 23937 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
23938 (font_update_drivers): New function.
23939 (Fclear_font_cache): Check driver_list->on.
23940
23941 * frame.h (Qfont_backend): Extern it.
23942 (x_set_font_backend): Extern it.
23943
23944 * frame.c (Qfont_backend): New variable.
23945 (frame_parms): New element for font-backend.
23946 (x_set_font_backend): New function.
23947
23948 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
23949 FontBackend frame parameter.
23950 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
23951 x_set_font_backend.
23952
23953 * xfont.c (xfont_list): Don't try listing by :name property if the
23954 name is not for XLFD.
23955
239562008-02-01 Kenichi Handa <handa@m17n.org>
23957
23958 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
23959 (LGLYPH_SET_TO): New macros.
23960 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
23961 element of G is vector or not.
23962 (font_at): Extern it.
23963
23964 * font.c: Include window.h.
23965 (font_lispy_object): New function.
23966 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
23967 end of valid glyph.
23968 (font_close_object): Fix getting (struct font *).
23969 (font_at): New function.
23970 (Ffont_get): If FONT is a font-object, get entity from it.
23971 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
23972 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
23973 Fix range check.
aac0c6e3
MR
23974 (Ffont_at): New function.
23975 (syms_of_font): Defsubr Sfont_at.
23976
23977 * xdisp.c (it_props): Move the entry for Qauto_composed to just
23978 before the entry for Qcomposition.
23979 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
23980 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
23981 the font in gstring.
23982 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
23983 LGLYPH_FORM (g) to detect the end of valid glyph.
23984 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
23985 we are composing with gstring.
23986
23987 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
23988 Check if adjustment is vector or not.
23989
23990 * Makefile.in (font.o): Make it depends on window.h.
23991
239922008-02-01 Kenichi Handa <handa@m17n.org>
23993
23994 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
23995 adjustment is vector or not.
23996
239972008-02-01 Miles Bader <miles@gnu.org>
23998
23999 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
24000
240012008-02-01 Kenichi Handa <handa@m17n.org>
24002
24003 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 24004 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
24005 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
24006
24007 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
24008 (DEVICE_DELTA): Fix typo.
24009 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
24010 LGLYPH format.
24011
24012 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24013 the change of LGLYPH format.
24014
240152008-02-01 Kenichi Handa <handa@m17n.org>
24016
24017 * ftfont.c (ftfont_list): Fix typo.
24018 (ftfont_build_basic_charsets): Don't include letters with diacritics.
24019
240202008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24021
24022 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
24023
24024 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
24025 xftface_info is non-NULL.
24026
240272008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24028
24029 * ftfont.c (ftfont_list): Move misplaced #endif.
24030
240312008-02-01 Kenichi Handa <handa@m17n.org>
24032
24033 * ftfont.c (ftfont_list): Pay attention to the case that
24034 FC_CAPABILITY is not defined.
24035
240362008-02-01 Kenichi Handa <handa@m17n.org>
24037
24038 * xftfont.c (xftfont_open): Set charset related members to -1.
24039
24040 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
24041 QCname.
24042 (ftfont_open): Set charset related members to -1.
24043
24044 * fontset.c (Votf_script_alist): New variable.
24045 (syms_of_fontset): Initialize it.
24046 (fontset_font): Delete unused variable.
24047
24048 * fontset.h (Votf_script_alist): Extern it.
24049
24050 * font.c (font_find_for_lface): Optimize code.
24051
24052 * font.h (font_close_object, font_merge_old_spec): Extern them.
24053
240542008-02-01 Kenichi Handa <handa@m17n.org>
24055
24056 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
24057 (syms_of_font): Initialize them.
24058 (font_pixel_size): Allow float value in dpi.
24059 (font_prop_validate_type): Delete.
24060 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
24061 Change caller.
24062 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
24063 (font_prop_validate_extra): Delete.
24064 (font_prop_validate_spacing): New function.
24065 (font_property_table): Add elements for all known properties.
bba3e508
SM
24066 (get_font_prop_index): Rename from check_font_prop_name.
24067 New argument FROM. Change caller.
aac0c6e3
MR
24068 (font_prop_validate): Validate all known properties.
24069 (font_put_extra): Delete argument force. Change caller.
24070 (font_expand_wildcards): Make it static. Fix the way of shrinking
24071 the possible range.
24072 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
24073 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
24074 Change caller.
24075 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
24076 (font_parse_fcname): Delete argument merge. Fix parsing of point
24077 size. Don't validate properties values here. Change caller.
24078 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
24079 (font_open_by_name): Delete unused variable.
24080 (Ffont_spec): Likewise. Validate property values.
24081 (Ffont_match_p): New function.
24082
24083 * font.h (QCscalable): Extern it.
24084 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
24085
24086 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
24087
24088 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
24089 (xfont_list_pattern): New function.
24090 (xfont_list): Use xfont_list_pattern.
24091
240922008-02-01 Kenichi Handa <handa@m17n.org>
24093
24094 * font.h (Flist_fonts): EXFUN it.
24095
240962008-02-01 Jason Rumney <jasonr@gnu.org>
24097
24098 * w32term.c (w32_initialize): Add back smoothing_type and
24099 smoothing_enabled definitions.
24100
241012008-02-01 Kenichi Handa <handa@m17n.org>
24102
24103 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
24104 s->face->font on determining underline position.
24105
241062008-02-01 Kenichi Handa <handa@m17n.org>
24107
24108 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
24109 (font_has_char): Accept font-object too.
24110 (font_find_for_lface): Try at first with a size specified in face.
24111
241122008-02-01 Kenichi Handa <handa@m17n.org>
24113
24114 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
24115 font_open_by_name.
24116
241172008-02-01 Kenichi Handa <handa@m17n.org>
24118
24119 * font.h (QCspacing, QCdpi): Extern them.
24120 (enum font_spacing): New enum.
24121 (FONT_PIXEL_SIZE_QUANTUM): New macro.
24122
24123 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
24124 (QCspacing, QCdpi): New variables.
24125 (syms_of_font): Initialize them.
24126 (font_pixel_size): New function.
24127 (font_put_extra): New function.
24128 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
24129 in FONT_EXTRA.
24130 (font_parse_fcname): Handle enumerated values (e.g. bold).
24131 Fix handling font size. Add QCname property that contains only
24132 unknown properties.
24133 (font_score): Change argument. Change caller. Pay attention to
24134 FONT_PIXEL_SIZE_QUANTUM.
24135 (font_sort_entites, font_list_entities, font_find_for_lface)
24136 (font_open_for_lface, font_open_by_name): Fix handling of font size.
24137 (Ffont_spec): Add QCname property that contains only unknown properties.
24138
bba3e508
SM
24139 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
24140 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
24141 listed font. Don't include scalable in pattern. Pay attention to
24142 FONT_PIXEL_SIZE_QUANTUM.
24143
241442008-02-01 Kenichi Handa <handa@m17n.org>
24145
24146 * font.c (font_parse_fcname): Fix parsing of point-size.
24147 (font_unparse_fcname): Produce symbolic names for style properties.
24148 (font_list_entities): Handle float size correctly.
24149 (font_open_by_name): Prefer `normal' property values if the name
24150 doesn't specify them.
24151
24152 * fontset.c (Finternal_char_font): Use font_get_name, not
24153 Ffont_xlfd_name.
24154
24155 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
24156 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
24157 pattern. Don't force scalable.
24158
24159 * xftfont.c (xftfont_open): For generating a name, start from
24160 96-byte buffer.
24161
241622008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24163
24164 * frame.h (x_new_fontset2): Fix prototype.
24165
241662008-02-01 Kenichi Handa <handa@m17n.org>
24167
24168 * font.h (struct font_driver): Delete member parse_name.
24169 (font_match_p, font_get_spec, font_parse_fcname)
24170 (font_unparse_fcname): Extern them.
24171 (font_get_name): Adjust prototype.
24172
24173 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
24174 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
24175 (font_expand_wildcards): Fix handling ENCODING field.
24176 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
24177 (font_parse_fcname): New function.
24178 (font_unparse_fcname): New function.
24179 (font_parse_name): New function.
24180 (font_match_p): New function.
24181 (font_get_name): Change return value to Lisp string.
24182 (font_get_spec): New function.
24183 (Qunspecified, Qignore_defface): Don't extern them.
24184 (font_find_for_lface): Assume that LFACE is fully specified.
24185 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
24186 object, use it for FACE.
24187 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
24188 driver->parse_name.
24189 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
24190
24191 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
24192 prototype.
24193
24194 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
24195 argument F. Don't call Fnew_fontset. Instead, directly call
24196 make_fontset.
24197
24198 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
24199
24200 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
24201 of x_new_fontset2.
24202
24203 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
24204 (Qsans__serif): New variables.
24205 (ftfont_generic_family_list): New variable.
24206 (syms_of_ftfont): Initialize the above variables.
24207 (ftfont_pattern_entity): Delete argument NAME.
24208 (ftfont_list_generic_family): New function.
24209 (ftfont_parse_name): Delete this function.
24210 (ftfont_list): Try generic family only when FcFontList found no font.
24211 (ftfont_list_family): Fix args to FcObjectSetBuild.
24212
24213 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
24214 object in attrs[LFACE_FONT_INDEX].
24215 (set_lface_from_font_name): Cancel all changes for font-backend.
24216 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
24217 function.
24218 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
24219 font object in QCfont attribute.
24220 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
24221 (realize_default_face) [USE_FONT_BACKEND]: Call
24222 set_lface_from_font_and_fontset.
24223
24224 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
24225 "fixed", and signal error here if no suitable font was found.
24226
24227 * xfont.c (xfont_parse_name): Delete this function.
24228
24229 * xftfont.c (xftfont_open): Change coding style of error
24230 handling. Generate fontconfig's fontname pattern.
24231
24232 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
24233 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
24234
24235 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
24236 Both args FONTSET and FONT_OBJECT must be existing ones.
24237
242382008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24239
24240 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
24241
242422008-02-01 Kenichi Handa <handa@m17n.org>
24243
24244 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
24245
24246 * font.h (struct font): Fix typo.
24247
24248 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
24249 XLFD_XXX_INDEX.
24250 (enum xlfd_field_mask): New enum.
ef1b0ba7 24251 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
24252 are followed by non-digits, return a symbol.
24253 (font_expand_wildcards): New function.
24254 (font_parse_xlfd): Fix wildcard handling.
24255 (Ffont_spec): If :name is specified, reflect the info in the other
24256 properties.
24257
24258 * ftfont.c (ftfont_pattern_entity): Fix typo.
24259 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
24260 locale.
24261
242622008-02-01 Kenichi Handa <handa@m17n.org>
24263
24264 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
24265
24266 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
24267 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
24268 registry doesn't specify encoding part.
24269 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
24270 (font_open_by_name): At first try parsing the name.
24271 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
24272 as Lisp symbols.
24273
24274 * fontset.c (reorder_font_vector): Pay attention to the case that
24275 the 3rd element of font_def is nil.
24276 (fontset_font): For the default fontset, append one more fontset
24277 elements for a script-based font specification. Don't add script
24278 attribute on finding a font.
24279 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
24280 font name.
24281 (fontset_ascii_font): If a font can't be opened, return nil.
24282
24283 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
24284 (ftfont_pattern_entity): New function.
24285 (ftfont_get_cache): Assume that freetype_font_cache is already
24286 initialized.
24287 (ftfont_list): Handle the case that a file is specified in font
24288 name. Use ftfont_pattern_entity to generate entities.
24289 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
24290 (syms_of_ftfont): Initialize freetype_font_cache.
24291
24292 * xftfont.c (xftfont_open): Make the font name fontconfig's
24293 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
24294 (xftfont_close): Free font->font.name if not NULL.
24295
24296 * xfont.c (xfont_list): If script is specified for a font, return
24297 null_vector.
24298 (xfont_list_family): Declare argument type.
24299
24300 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
24301 name, set LFACE_FONT (lface) to nil.
24302
24303 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
24304 return Qnil.
24305
243062008-02-01 Kenichi Handa <handa@m17n.org>
24307
24308 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
24309 (standard_args): Add "-enable-font-backend".
24310
243112008-02-01 Kenichi Handa <handa@m17n.org>
24312
24313 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
24314 (struct xftdraw_list, xftdraw_list): Delete them.
24315 (register_xftdraw, check_xftdraw): Delete them.
24316 (xftfont_prepare_face): Don't call register_xftdraw.
24317 (xftfont_done_face): Don't call check_xftdraw.
24318 (xftfont_draw): Get background color only when with_background is
24319 nonzero.
24320
24321 * xfont.c (xfont_encode_char): Fix calculation of char2b.
24322
243232008-02-01 Kenichi Handa <handa@m17n.org>
24324
24325 These changes are for the new font handling codes.
24326
24327 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
24328 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
24329 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
24330 (FONTSRC, FONTOBJ): New variables.
24331 (obj): Add $(FONTOBJ).
24332 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
24333 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
24334 @LIBOTF_LIBS@.
24335 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
24336 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
24337
24338 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
24339
24340 * character.h (Vscript_representative_chars): Extern it.
24341
24342 * character.c (Vscript_representative_chars): New variable.
24343 (syms_of_character): Declare it as a Lisp variable.
24344
24345 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
24346 enable_font_backend is nonzero, accept the composition method
24347 COMPOSITION_WITH_GLYPH_STRING.
24348
24349 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
24350 enumeration COMPOSITION_WITH_GLYPH_STRING.
24351
24352 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
24353 members clip_x, clip_y, clip_width, and clip_height.
24354 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
24355
24356 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
24357 --enable-font-backend. Call syms_of_font.
24358
24359 * fns.c (assoc_no_quit): New function.
24360
24361 * fontset.h (FONT_INFO_FROM_FACE): New macro.
24362 (face_for_font, new_fontset_from_font)
24363 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
24364
24365 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
24366 (fontset_font, fontset_ascii, face_for_char)
24367 (make_fontset_for_ascii_face, Ffont_info)
24368 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
24369 is nonzero, use font-backend mechanism.
24370 (find_font_encoding): Make it non-static.
24371 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
24372 New functions.
24373
24374 * frame.h (struct frame): New members resx and resy.
24375 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
24376 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
24377
24378 * frame.c [USE_FONT_BACKEND]: Include "font.h".
24379 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
24380
24381 * lisp.h (assoc_no_quit): Extern it.
24382
24383 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
24384 Through out the file, use FONT_INFO_FROM_FACE instead of
24385 FONT_INFO_FROM_ID, use get_per_char_metric instead of
24386 rif->per_char_metric.
24387 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
24388 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
24389 (get_glyph_face_and_encoding, fill_composite_glyph_string)
24390 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24391 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
24392 nonzero, use font-backend mechanism.
24393 (get_per_char_metric): New function.
24394
24395 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
24396 (set_lface_from_font_name)
24397 (set_font_frame_param, free_realized_face)
24398 (prepare_face_for_display, clear_face_gcs)
24399 (Finternal_set_font_selection_order, realize_x_face)
24400 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
24401 font-backend mechanism.
24402 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
24403 (load_face_font) [USE_FONT_BACKEND]: Abort.
24404 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
24405 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
24406
24407 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
24408 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
24409 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
24410 nonzero, register all available font drivers.
24411 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
24412 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
24413
24414 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
24415 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
24416 (x_set_glyph_string_clipping_exactly)
24417 (x_compute_glyph_string_overhangs)
24418 (x_draw_glyph_string_foreground)
24419 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
24420 (x_free_frame_resources) [USE_FONT_BACKEND]: If
24421 enable_font_backend is nonzero, use font-backend mechanism.
24422 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
24423
244242008-02-01 Kenichi Handa <handa@m17n.org>
24425
24426 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
24427 system_eol_type.
24428 (syms_of_coding): Initialize system_eol_type.
24429
24430 * process.c (Fset_process_coding_system): Inherit system's eol
24431 format if necessary.
24432
244332008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24434
24435 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
24436
244372008-02-01 Kenichi Handa <handa@m17n.org>
24438
24439 * coding.c (decode_eol): Pay attention to buffer relocation in
24440 del_range_2.
24441 (decode_coding): Call decode_eol before restoring undo_list.
24442
244432008-02-01 Kenichi Handa <handa@m17n.org>
24444
24445 * charset.c (Fdefine_charset_internal): Fix setting of
24446 emacs_mule_bytes.
24447
244482008-02-01 Kenichi Handa <handa@m17n.org>
24449
24450 * keyboard.c (read_char): Check if C is a character or not before
24451 looking up Vkeyboard_translate_table.
24452
244532008-02-01 Kenichi Handa <handa@m17n.org>
24454
bba3e508
SM
24455 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
24456 Fix condition to terminate the loop.
aac0c6e3
MR
24457
244582008-02-01 Kenichi Handa <handa@m17n.org>
24459
24460 * coding.c (produce_composition): Compare charbuf[i] instead of
24461 args[i] against 0.
24462 (Fterminal_coding_system): Use EQ to compare Lisp objects.
24463
244642008-02-01 Kenichi Handa <handa@m17n.org>
24465
24466 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
24467 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
24468 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
24469 detect_coding.
24470 (emacs_mule_char): Handle old style (Emacs 20) component character
24471 of a composition.
24472 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
24473 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
24474 composition rule.
24475 (decode_coding_emacs_mule): Handle invalid bytes correctly.
24476
244772008-02-01 Kenichi Handa <handa@m17n.org>
24478
24479 * coding.c (encode_coding_ccl): Allocate destination dynamically
24480 when necessary.
24481
244822008-02-01 Kenichi Handa <handa@m17n.org>
24483
24484 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
24485 the loop. When quitted, show a proper error message.
24486
244872008-02-01 Kenichi Handa <handa@m17n.org>
24488
bba3e508
SM
24489 * xterm.c (x_set_glyph_string_clipping_exactly):
24490 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
24491
24492 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
24493 character sequence.
24494 (Fccl_execute_on_string): Use ASET, not XSET.
24495
244962008-02-01 Kenichi Handa <handa@m17n.org>
24497
24498 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
24499
245002008-02-01 Kenichi Handa <handa@m17n.org>
24501
24502 * coding.c (decode_coding): Fix the condition of terminating the
24503 decoding loop.
24504
245052008-02-01 Kenichi Handa <handa@m17n.org>
24506
24507 * data.c (Faset): On setting a character bigger than 255 in a
24508 unibyte string, signal an error instead of make the string multibyte.
24509
245102008-02-01 Kenichi Handa <handa@m17n.org>
24511
24512 * charset.c (map_charset_chars): Fix for ascii-compatible charset
24513 made by a mapping table.
24514
245152008-02-01 Kenichi Handa <handa@m17n.org>
24516
24517 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
24518 not.
24519 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
24520 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
24521
bba3e508
SM
24522 * xterm.c (x_draw_composite_glyph_string_foreground):
24523 Check s->face is NULL or not.
aac0c6e3
MR
24524
245252008-02-01 Kenichi Handa <handa@m17n.org>
24526
24527 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
24528 (x_draw_glyph_string): Fix drawing of right_overhang and
24529 left_overhang around/on cursor.
24530
24531 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
24532
245332008-02-01 Kenichi Handa <handa@m17n.org>
24534
24535 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
24536
245372008-02-01 Kenichi Handa <handa@m17n.org>
24538
24539 * coding.c (Fdefine_coding_system_internal)
24540 (Fdefine_coding_system_alias): Avoid a duplicated element in
24541 Vcoding_system_alist.
24542
245432008-02-01 Kenichi Handa <handa@m17n.org>
24544
24545 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
24546
24547 * coding.c (Qcoding_system_define_form): New variable.
24548 (syms_of_coding): Intern and staticpro it.
24549 (Fcoding_system_p): Check Qcoding_system_define_form.
24550 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
24551
24552 * coding.h (CODING_SYSTEM_P): If ID is not available, call
24553 Fcoding_system_p.
24554 (CHECK_CODING_SYSTEM): If ID is not available, call
24555 Fcheck_coding_system.
24556 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
24557 Try also Fcheck_coding_system.
24558
245592008-02-01 Kenichi Handa <handa@m17n.org>
24560
24561 * coding.c (code_conversion_restore): GCPRO arg.
24562
245632008-02-01 Kenichi Handa <handa@m17n.org>
24564
24565 * character.c (lisp_string_width): Check multibyteness of STRING.
24566
245672008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24568
24569 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
24570 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
24571 (decode_mac_font_name): Use decode_coding_c_string instead of
24572 decode_coding.
bba3e508
SM
24573 (x_load_font): Initialize fontp->fontset to -1.
24574 Set fontp->encoding_type.
aac0c6e3
MR
24575
245762008-02-01 Kenichi Handa <handa@m17n.org>
24577
24578 * search.c (search_buffer): Give up BM search on case-fold-search
24579 if one of a target character has a case-equivalence of different
3b59c351 24580 byte length even if that target character is an ASCII.
aac0c6e3
MR
24581 (simple_search): Fix calculation of byte length of matched text.
24582 (boyer_moore): Fix handling of case-equivalent multibyte characters.
24583
245842008-02-01 Kenichi Handa <handa@m17n.org>
24585
24586 * coding.c (decode_coding): Fix handling of invalid bytes.
24587
245882008-02-01 Kenichi Handa <handa@m17n.org>
24589
24590 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
24591 Unicode characters.
24592
245932008-02-01 Kenichi Handa <handa@m17n.org>
24594
24595 * coding.c (encode_coding_object): If a pre-write-conversion
24596 function makes a new buffer, kill it.
24597
245982008-02-01 Kenichi Handa <handa@m17n.org>
24599
24600 * coding.c (QCascii_compatible_p): New variable.
24601 (syms_of_coding): Initialize it.
24602 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
24603 calling string_char.
24604 (record_conversion_result): Add `default:' case.
24605 (coding_charset_list): Delete unused variable `coding_type'.
24606 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
24607 property in the plist of the coding system.
24608 (Fcoding_system_put): Check QCascii_compatible_p.
24609
246102008-02-01 Miles Bader <miles@gnu.org>
24611
24612 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
24613 removed calculation of frame `f', as it's now used.
24614
246152008-02-01 Kenichi Handa <handa@m17n.org>
24616
24617 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
24618 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
24619 (UNIDATA): New variable.
24620 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
24621 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
24622 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
24623
246242008-02-01 Kenichi Handa <handa@m17n.org>
24625
24626 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
24627 (admindir): New variable.
24628 ($(lispsource)international/charprop.el): New target.
24629
246302008-02-01 Miles Bader <miles@gnu.org>
24631
24632 * character.c (chars-in-region): Remove obsolete function.
24633 (syms_of_character): Remove its initialization.
24634
246352008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
24636
24637 * w32select.c (validate_coding_system)
24638 (setup_windows_coding_system): New functions.
bba3e508
SM
24639 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
24640 Use setup_windows_coding_system.
24641 (setup_config, Fw32_get_clipboard_data):
24642 Use validate_coding_system.
aac0c6e3
MR
24643 (Fx_selection_exists): Move call to setup_config to a place
24644 where signals are allowed.
24645
24646 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
24647 (Fcheck_coding_system): Add declarations.
24648
246492008-02-01 Kenichi Handa <handa@m17n.org>
24650
24651 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
24652
246532008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24654
24655 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
24656 string as the second argument for x_new_fontset.
24657
246582008-02-01 Kenichi Handa <handa@m17n.org>
24659
24660 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
24661 (encode_coding_object): Use safe_call instead of call2.
24662
246632008-02-01 Kenichi Handa <handa@m17n.org>
24664
24665 * fontset.c (Fset_fontset_font): Check family element of a given vector.
24666
24667 * Makefile.in (lisp): Include charprop.el.
24668
246692008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24670
24671 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
24672 Not sure if it's unnecessary.
24673
246742008-02-01 Steven Tamm <steventamm@mac.com>
24675
24676 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
24677 some possibly unnecessary fontset checking code that crashed
24678 when creating a new frame.
24679
246802008-02-01 Kenichi Handa <handa@m17n.org>
24681
24682 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
24683 lookup_face.
24684
24685 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
24686
24687 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
24688
246892008-02-01 Kenichi Handa <handa@m17n.org>
24690
24691 * coding.c: Cancel the change done in HEAD on 2008-02-01.
24692 (coding_charset_list): New function.
24693
24694 * coding.h (coding_charset_list): Extern it.
24695
246962008-02-01 Kenichi Handa <handa@m17n.org>
24697
24698 * fontset.c (Fset_fontset_font): Call find_font_encoding with
24699 concatenation of family and registry.
24700
247012008-02-01 Kenichi Handa <handa@m17n.org>
24702
24703 * character.h (BYTE8_STRING): Fix typo.
24704
24705 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
24706 string to multibyte (sync to HEAD).
24707
24708 * casefiddle.c (casify_region): Handle changes in byte-length
24709 using replace_range_2 (sync to HEAD).
24710
247112008-02-01 Andreas Schwab <schwab@suse.de>
24712
24713 * chartab.c (map_char_table): GCPRO table and arg.
24714
247152008-02-01 Kenichi Handa <handa@m17n.org>
24716
24717 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
24718 already at limit.
24719
247202008-02-01 Kenichi Handa <handa@m17n.org>
24721
24722 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
24723 instead of fast_c_string_match_ignore_case.
bba3e508
SM
24724 (find_font_encoding): Change argument to Lisp_Object.
24725 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
24726 fast_c_string_match_ignore_case. Change caller.
24727
247282008-02-01 Kenichi Handa <handa@m17n.org>
24729
24730 * xdisp.c (get_next_display_element): In unibyte case, decide to
24731 display in octal form by checking a character by
24732 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
24733
24734 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
24735
24736 * character.c (unibyte_has_multibyte_table): New variable.
24737
24738 * character.h (unibyte_has_multibyte_table): Extern it.
24739 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
24740
247412008-02-01 Kenichi Handa <handa@m17n.org>
24742
24743 * coding.c (encode_coding_iso_2022): Fix handling of charset
24744 annotation.
24745
247462008-02-01 Kenichi Handa <handa@m17n.org>
24747
24748 * coding.c (setup_coding_system): If coding_system is nil, use
24749 Qundecided.
24750 (Fterminal_coding_system): Return nil if terminal coding system is
24751 `undecided'.
bba3e508
SM
24752 (syms_of_coding): Define coding-system `undecided' here.
24753 Setup terminal_coding as `undecided'.
aac0c6e3
MR
24754
247552008-02-01 Kenichi Handa <handa@m17n.org>
24756
bba3e508
SM
24757 * xdisp.c (message_dolog, set_message_1):
24758 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
24759
24760 * lread.c (read1): Fix reading of a char-table.
24761
24762 * print.c (print_object): Include sub char-table in circularities
24763 detection.
24764
247652008-02-01 Kenichi Handa <handa@m17n.org>
24766
24767 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
24768 Append the found sequences in car of ARGS instead of prepending.
24769
247702008-02-01 Kenichi Handa <handa@m17n.org>
24771
24772 * fileio.c (report_file_error): Make a unibyte string from
24773 strerror (errorno).
24774 (Fsubstitute_in_file_name): Fix the arg to
24775 unibyte_char_to_multibyte. It is evaluated twice.
24776
247772008-02-01 Kenichi Handa <handa@m17n.org>
24778
24779 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
24780
247812008-02-01 Kenichi Handa <handa@m17n.org>
24782
24783 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
24784 BOM is not found.
24785 (detect_coding, detect_coding_system): Optimization for ISO-2022
24786 when no 8-bit data is found.
24787
247882008-02-01 Jason Rumney <jasonr@gnu.org>
24789
24790 * w32fns.c (x_to_w32_font): Update to use new coding struct.
24791
247922008-02-01 Kenichi Handa <handa@m17n.org>
24793
24794 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
24795 CHARS.
24796
247972008-02-01 Steven Tamm <steventamm@mac.com>
24798
24799 * macterm.c (mac_encode_char): Add charset argument and update
24800 to use encoding_type.
24801 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
24802 switch to pure fontset.
24803 (decode_mac_font_name): Temporarily remove decoding.
24804 (x_font_name_to_mac_font_name): Temporarily remove encoding.
24805 (x_load_font): Temporarily remove encoding.
24806
248072008-02-01 Kenichi Handa <handa@m17n.org>
24808
24809 * xfaces.c (Fface_font): If frame is not on a window system,
24810 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
24811 refer to face->font.
24812 (split_font_name_into_vector, build_font_name_from_vector)
24813 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
24814 when HAVE_WINDOW_SYSTEM is defined.
24815
248162008-02-01 Kenichi Handa <handa@m17n.org>
24817
24818 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
24819 (x_produce_glyphs): Fix setting of members of cmp in case
24820 cmp->glyph_len is zero.
24821
24822 * fontset.c (Fset_fontset_font): Fix docstring.
24823 (Ffontset_info): Make it backward compatible. New arg ALL.
24824
248252008-02-01 Kim F. Storm <storm@cua.dk>
24826
24827 * process.c (read_process_output): Grow decoding_buf when needed;
24828 this could cause a crash in allocate_string and compact_small_strings.
24829
248302008-02-01 Kenichi Handa <handa@m17n.org>
24831
24832 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
24833
248342008-02-01 Kenichi Handa <handa@m17n.org>
24835
24836 * coding.c (setup_coding_system): Set coding->common_flags
24837 correctly for raw-text.
24838 (consume_chars): On encoding unibyte text by raw-text, don't check
24839 multibyte form.
24840 (encode_coding): On encoding by raw-text, never use translation tables.
24841
24842 * fileio.c (e_write): Short cut for the case of no encoding.
24843
248442008-02-01 Kenichi Handa <handa@m17n.org>
24845
24846 * coding.c (detect_coding, detect_coding_system): Delete unused
24847 variables.
24848
248492008-02-01 Kenichi Handa <handa@m17n.org>
24850
24851 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
24852 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
24853
248542008-02-01 Kenichi Handa <handa@m17n.org>
24855
bba3e508
SM
24856 * coding.c (Ffind_coding_systems_region_internal):
24857 Include raw-text and no-conversion in the result.
aac0c6e3
MR
24858
248592008-02-01 Kenichi Handa <handa@m17n.org>
24860
24861 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
24862 (load_font_get_repertory): Delete unnecessary check of ENCODING of
24863 FONT_DEF.
24864 (font_def_arg, add_arg, from_arg, to_arg): New args.
24865 (set_fontset_font): Change argument.
24866 (Fset_fontset_font): Fix for the case that TARGET is a script
24867 name and charset name.
24868 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
24869
248702008-02-01 Kenichi Handa <handa@m17n.org>
24871
24872 * fontset.c (fontset_font): Rename from fontset_face. Change return
24873 value.
24874 (face_suitable_for_char_p, face_for_char): Adjust for the change
24875 of fontset_font.
24876 (make_fontset_for_ascii_face): Fix setting of the fontset element
24877 for ASCII.
24878 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
24879 to get a font name.
24880 (Ffontset_info): Adjust for the change of fontset_font.
24881
24882 * coding.c (emacs_mule_char): Check invalid code more rigidly.
24883
24884 * character.h (LEADING_CODE_LATIN_1_MIN)
24885 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
24886
248872008-02-01 Kenichi Handa <handa@m17n.org>
24888
24889 * editfns.c (check_translation): New function.
24890 (Ftranslate_region_internal): Handle M:N mapping.
24891
248922008-02-01 Kenichi Handa <handa@m17n.org>
24893
24894 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
24895
248962008-02-01 Kenichi Handa <handa@m17n.org>
24897
24898 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
24899 goto invalid_code.
24900 (decode_coding_iso_2022): Fix handling of invalid designation.
24901
24902 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
24903 after calling code_conversion_save.
24904
249052008-02-01 Kenichi Handa <handa@m17n.org>
24906
24907 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
24908
24909 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
24910
24911 * fontset.c: Include "intervals.h".
24912 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
24913 (free_face_fontset, new_fontset_from_font_name):
24914 Fix Lisp_Object/int mixup.
aac0c6e3
MR
24915
24916 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
24917
24918 * coding.c: Add many prototypes for static functions.
24919 (get_translation_table): Allow max_lookup to be NULL.
24920 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
24921 (Funencodable_char_position, Fcheck_coding_systems_region):
24922 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
24923
249242008-02-01 Kenichi Handa <handa@m17n.org>
24925
24926 * coding.c (get_translation_table): Declare it as Lisp_Object.
24927 (LOOKUP_TRANSLATION_TABLE): New macro.
24928 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
24929 instead of CHAR_TABLE_REF.
24930
249312008-02-01 Kenichi Handa <handa@m17n.org>
24932
24933 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
24934 annotation data format.
24935 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
24936 Change arguments FROM and TO to single argument NCHARS. Change caller.
24937 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
24938 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24939 (decode_coding_ccl, decode_coding_charset): Pay attention to
24940 coding->charbuf_used.
24941 (get_translation): New function.
24942 (produce_chars): New arguments translation_table and last_block.
24943 Translate characters here. Return number of carryover chars.
24944 Change caller.
24945 (produce_composition): New argument pos. Change caller.
24946 Adjust for the change of annotation data format.
24947 (produce_charset, produce_annotation): Likewise.
24948 (decode_coding, encode_coding): Don't call translate_chars.
24949 (consume_chars): New arg translation_table. Change caller.
24950 (translate_chars): Delete.
24951 (syms_of_coding): Make translation-table's number of extra slots 2.
24952
249532008-02-01 Kenichi Handa <handa@m17n.org>
24954
24955 * search.c (simple_search): Fix setting this_pos_byte in backward
24956 search.
24957
24958 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
24959 byte sequence.
24960 (detect_coding_ccl): Fix setting of the variable valids.
24961
249622008-02-01 Kenichi Handa <handa@m17n.org>
24963
24964 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
24965
24966 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
24967
24968 * editfns.c (Ftranslate_region_internal): Rename from
24969 Ftranslate_region. Accept a char-table in TABLE.
24970 (syms_of_editfns): Defsubr Stranslate_region_internal.
24971
24972 * xfaces.c (set_lface_from_font_name): If a font is specified for
24973 a frame, generate a fontset from the font.
24974 (build_scalable_font_name): If the scalable font is requested for
24975 a specific size, don't change that size.
24976 (try_font_list): Try a scalable font also in the case that a
24977 pattern string is specified.
24978
249792008-02-01 Kenichi Handa <handa@m17n.org>
24980
24981 * xfaces.c (Fface_font): New optional arg CHARACTER.
24982
249832008-02-01 Kenichi Handa <handa@m17n.org>
24984
24985 * charset.h (CHARSET_OFFSET): New macro.
24986
249872008-02-01 Kenichi Handa <handa@m17n.org>
24988
24989 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
24990
24991 * fontset.c (fontset_face): Handle the case that repertory is a
24992 char-table.
24993 (find_font_encoding): Return nil for unknown encoding.
24994 (Fset_fontset_font): Ignore a font of unknown encoding.
24995
249962008-02-01 Kenichi Handa <handa@m17n.org>
24997
24998 * keymap.c (describe_vector): Handle default value of a char table.
24999
25000 * fontset.c (fontset_face): Handle fallback fonts correctly.
25001 (Ffontset_info): Return infomation about fallback fonts.
25002
250032008-02-01 Kenichi Handa <handa@m17n.org>
25004
25005 * fontset.c (FONTSET_DEFAULT): New macro.
25006 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
25007 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
25008 the case that it is nil.
25009 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
25010 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
25011
25012 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
25013 subset or superset.
25014
250152008-02-01 Kenichi Handa <handa@m17n.org>
25016
25017 * emacs.c (main): Call init_charset after syms_of_XXX.
25018
25019 * charset.c (Vcharset_map_directory): Delete.
25020 (Vcharset_map_path): New variable.
25021 (load_charset_map_from_file): Use Vcharset_map_path instead.
25022 (init_charset): Initialize Vcharset_map_path.
25023 (syms_of_charset): Delete declaration of "charset-map-directory",
25024 add declaration of "charset-map-path".
25025
250262008-02-01 Kenichi Handa <handa@m17n.org>
25027
25028 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
25029 ASCII only string.
25030
25031 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
25032
25033 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
25034 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
25035
250362008-02-01 Kenichi Handa <handa@m17n.org>
25037
25038 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
25039
25040 * coding.c (QCmnemonic, QCdefalut_char)
25041 (QCdecode_translation_table, QCencode_translation_table)
25042 (QCpost_read_conversion, QCpre_write_conversion): New variables.
25043 (get_translation_table): Return a list of translation tables if
25044 necessary.
25045 (decode_coding): Call get_translation_table with ENCODEP 0.
25046 (char_encodable_p): If translation_table is non-nil, always call
25047 translate_char.
25048 (Fdefine_coding_system_internal): Accept list of translation
25049 tables as :encode-translation-table and :decode-translation-table.
25050 (Fcoding_system_put): New function.
bba3e508
SM
25051 (syms_of_coding): Declare new symbols.
25052 Defsubr Scoding_system_put.
aac0c6e3
MR
25053 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
25054 typically JISX0212.
25055
25056 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
25057 when the charset is superset type.
25058
25059 * character.c (translate_char): Accept list of translation tables.
25060
250612008-02-01 Kenichi Handa <handa@m17n.org>
25062
25063 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
25064 (CODING_ATTR_TRANS_TBL): New macro.
25065
25066 * coding.c (get_translation_table): New function.
25067 (translate_chars): Fix the bug of skipping annotation data.
25068 (decode_coding, encode_coding): Utilize get_translation_table.
25069 (char_encodable_p, Funencodable_char_position): Translate char if
25070 necessary.
25071 (Ffind_coding_systems_region_internal)
25072 (Fcheck_coding_systems_region): Setup translation table for encode
25073 in a coding system attribute vector in advance.
25074 (Fdefine_coding_system_internal): Allow a symbol as translation
25075 table. For shift-jis type coding system, allow 4th charset.
25076
250772008-02-01 Kenichi Handa <handa@m17n.org>
25078
25079 * coding.c (decode_coding_sjis): Check the first byte rigidly.
25080
25081 * xdisp.c (get_next_display_element): Pass -1 as POS to
25082 FACE_FOR_CHAR if displaying a C-string.
25083
250842008-02-01 Kenichi Handa <handa@m17n.org>
25085
25086 * composite.c (get_composition_id): Handle xoff and yoff in a
25087 composition rule.
25088
25089 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
25090 (struct composition): New member lbearing and rbearing.
25091
25092 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
25093 (x_get_glyph_overhangs): Handle a composition glyph.
25094 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
25095
25096 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
25097 composition glyph.
25098
250992008-02-01 Kenichi Handa <handa@m17n.org>
25100
25101 * print.c: Include charset.h.
25102 (Vprint_charset_text_property): New variable.
25103 (Qdefault): Extern it.
25104 (PRINT_STRING_NON_CHARSET_FOUND)
25105 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
25106 (print_check_string_result): New variable.
25107 (print_check_string_charset_prop): New function.
25108 (print_prune_charset_plist): New variable.
25109 (print_prune_string_charset): New function.
25110 (print_object): Call print_prune_string_charset if
25111 Vprint_charset_text_property is not t.
25112 (print_interval): Print nothing if interval->plist is nil.
25113 (syms_of_print): Declare Vprint_charset_text_property as a lisp
25114 variable. Init and staticpro print_prune_charset_plist.
25115
251162008-02-01 Kenichi Handa <handa@m17n.org>
25117
25118 * fontset.c (new_fontset_from_font_name): Use the specified font
25119 for all characters in the new fontset.
25120
25121 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25122 OBJECT args.
25123
25124 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
25125 OBJECT args for composition too.
25126
25127 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25128 OBJECT args.
25129
251302008-02-01 Kenichi Handa <handa@m17n.org>
25131
25132 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
25133
25134 * fontset.c (reorder_font_vector): Adjust for the change of
25135 FONT_DEF format.
25136 (fontset_face): New arg id. Change caller.
25137 (face_for_char): New args pos and object.
25138 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
25139 (fs_query_fontset): Check NAME by Fassoc too.
25140 (Fset_fontset_font): Allow non-XLFD font name.
25141 (Ffontset_info): Adjust for the change of FONT_DEF format.
25142
25143 * fontset.h (face_for_char): Adjust prototype.
25144
25145 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
25146 (append_space, extend_face_to_end_of_line)
25147 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25148 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
25149
25150 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
25151 POS and OBJECT args.
25152
25153 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
25154 POS and OBJECT args.
25155
251562008-02-01 Jason Rumney <jasonr@gnu.org>
25157
25158 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
25159 of GlobalAlloc'ed memory.
25160
251612008-02-01 Kenichi Handa <handa@m17n.org>
25162
25163 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
25164
25165 * charset.h (charset_table_used): Delete extern.
25166
25167 * charset.c (charset_table_used): Make it static.
25168 (map_charset_chars): Fix args to c_function with.
25169
25170 * chartab.c (map_sub_char_table_for_charset): Fix args to
25171 c_function with.
25172
bba3e508
SM
25173 * coding.h (enum coding_result_code):
25174 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
25175
25176 * coding.c (Qinsufficient_source, Qinconsistent_eol)
25177 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
25178 (Vlast_code_conversion_error): New variables.
25179 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
25180 (ONE_MORE_BYTE): Record error if any instead of signaling an
25181 error. If non-ASCII multibyte char is found, return the negative
25182 value of the code. All callers changed to check it.
25183 (ONE_MORE_BYTE_NO_CHECK): Likewise.
25184 (record_conversion_result): New function. Change all codes setting
25185 coding->result to call this function.
25186 (detect_coding_utf_8, decode_coding_utf_8)
25187 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
25188 Don't use the local variable incomplete.
25189 (emacs_mule_char): Change the second arg to `const'.
25190 (decode_coding): Fix of flushing out unprocessed data.
25191 (make_conversion_work_buffer): Fix making of a work buffer.
25192 (decode_coding_object): Return coding->dst_object.
25193
25194 * fontset.c (set_fontset_font): Fix args.
25195
25196 * lisp.h (CHARACTERBITS): Define as 22.
25197
25198 * process.c (send_process): Be sure to set coding->src_multibyte.
25199
25200 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
25201
252022008-02-01 Kenichi Handa <handa@m17n.org>
25203
25204 * xdisp.c (handle_auto_composed_prop): Give limit to
25205 Fnext_single_char_property_change.
25206
252072008-02-01 Kenichi Handa <handa@m17n.org>
25208
25209 * composite.c (syms_of_composite): Don't make the composition hash
25210 table weak.
25211
25212 * fontset.c (Fset_fontset_font): Fix docstring.
25213
25214 * lisp.h (detect_coding_system): Adjust prototype.
25215
25216 * fileio.c (kill_workbuf_unwind): Delete this function.
25217 (Finsert_file_contents): Adjust the call of detect_coding_system.
25218 Get conversion_buffer by code_conversion_save. Use the macro
25219 CODING_MAY_REQUIRE_DECODING. After decoding, update
25220 coding_system.
25221
25222 * coding.h (make_conversion_work_buffer): Delete extern.
25223 (code_conversion_save): Extern it.
25224
25225 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
25226 (CODING_GET_INFO): Delete argument eol_type. Change callers.
25227 (decode_coding_utf_8): Don't do eol converion.
25228 (detect_coding_utf_16): Check coding->src_chars, not
25229 coding->src_bytes. Add heuristics for those that have no signature.
25230 (decode_coding_emacs_mule, decode_coding_iso_2022)
25231 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25232 Don't do eol converion.
25233 (adjust_coding_eol_type): Return a new coding system.
25234 (detect_coding): Don't detect eol. Fix for utf-16 detection.
25235 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
25236 each change.
25237 (decode_coding): Pay attention to undo_list. Do eol conversion for
25238 all types of coding-systems (if necessary).
25239 (Vcode_conversion_work_buf_list): Delete it.
25240 (Vcode_conversion_reused_workbuf): Rename from
25241 Vcode_conversion_reused_work_buf.
25242 (Vcode_conversion_workbuf_name): New variable.
25243 (reused_workbuf_in_use): New variable.
25244 (make_conversion_work_buffer): Delete the arg DEPTH.
25245 (code_conversion_restore): Change argument to cons.
25246 (code_conversion_save): Delete the argument BUFFER. Change callers.
25247 (detect_coding_system): New argument src_chars. Change callers.
25248 Fix for utf-16 detection.
25249 (init_coding_once): Don't use ISO_carriage_return.
25250 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
25251 reused_workbuf_in_use.
25252
252532008-02-01 Kenichi Handa <handa@m17n.org>
25254
25255 * keymap.c (store_in_keymap): Pay attention to the case that idx
25256 is a cons specifying a character range.
25257
252582008-02-01 Kenichi Handa <handa@m17n.org>
25259
25260 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
25261 HANDLED_RECOMPUTE_PROPS.
25262
25263 * coding.c (Fdefine_coding_system_internal): Fix checking of
25264 ascii compatibility.
25265
252662008-02-01 Kenichi Handa <handa@m17n.org>
25267
25268 * charset.c (find_charsets_in_text): Delete unused locale variable.
25269 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
25270
25271 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
25272 Resync charset_list to Vemacs_mule_charset_list.
25273
25274 * keymap.c (store_in_keymap): Pay attention to the case that idx
25275 is a cons specifying a character range.
25276
252772008-02-01 Kenichi Handa <handa@m17n.org>
25278
25279 * composite.c (update_compositions): Bind inhibit-read-only, etc
25280 to t before calling remove-list-of-text-properties.
25281
25282 * print.c (print_object): Always print ASCII chars as is.
25283
252842008-02-01 Kenichi Handa <handa@m17n.org>
25285
25286 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
25287
25288 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
25289 is a char table.
25290
252912008-02-01 Kenichi Handa <handa@m17n.org>
25292
25293 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
25294
252952008-02-01 Kenichi Handa <handa@m17n.org>
25296
25297 * xfaces.c (set_lface_from_font_name): Fix for the case that
25298 FONTNAME is not fontset name.
25299
253002008-02-01 Kenichi Handa <handa@m17n.org>
25301
25302 * fns.c (base64_encode_1): Fix previous change.
25303
253042008-02-01 Kenichi Handa <handa@m17n.org>
25305
25306 * fontset.c (set_fontset_font): New function.
25307 (Fset_fontset_font): If a font is specified for a charset, use
25308 map_charset_chars to store the font spec in a fontset.
25309
253102008-02-01 Kenichi Handa <handa@m17n.org>
25311
25312 * fontset.c (fontset_face): Create a fallback fontset on demand.
25313 (make_fontset): Don't create a fallback fontset here.
25314 (free_face_fontset): Free a fallback fontset (if any) too.
25315 (n_auto_fontsets): Delete this variable.
25316 (auto_fontset_alist): New variable.
25317 (new_fontset_from_font_name): Check auto_fontset_alist.
25318 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
25319 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
25320 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
25321 Defsubr Sfontset_list_all.
25322
253232008-02-01 Kenichi Handa <handa@m17n.org>
25324
25325 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
25326
253272008-02-01 Kenichi Handa <handa@m17n.org>
25328
25329 * fontset.c (Fnew_fontset): Check NAME more rigidly.
25330
253312008-02-01 Kenichi Handa <handa@m17n.org>
25332
25333 * editfns.c (Fgoto_char): Fix docstring.
25334
253352008-02-01 Kenichi Handa <handa@m17n.org>
25336
25337 * insdel.c (insert_from_gap): Adjust intervals correctly.
25338
253392008-02-01 Jason Rumney <jasonr@gnu.org>
25340
25341 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
25342 (pfnGetFontUnicodeRanges): New dynamically loaded function.
25343 (w32_initialize): Try to load it.
25344 (x_get_font_repertory): Use it if available.
25345 (w32_encode_char): Add shortcut for unicode output.
25346
25347 * w32fns.c (w32_load_system_font): Default charset to -1.
25348 (x_to_w32_charset): Match all fonts for unicode.
25349 (w32_to_x_charset): New parameter matching. Don't return partial
25350 or wildcard charsets.
25351 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
25352 (w32_codepage_for_font): Return CP_UNICODE for unicode.
25353 (w32_to_x_font): Match charset to real charset.
25354 (enum_font_cb2): Always list unicode versions.
25355
25356 * makefile.w32-in (temacs): Increase EMHEAP.
25357
253582008-02-01 Jason Rumney <jasonr@gnu.org>
25359
25360 * w32term.c (w32_encode_char): New charset parameter.
25361 font_info.encoding becomes encoding_type.
25362 (x_get_font_repertory): New function. Warning: stub only!
25363 (x_new_font): Return quickly if font already set.
25364 (x_new_fontset): fontsetname parameter is Lisp_Object.
25365 Use new fs_query_fontset. Try new_fontset_from_font_name.
25366 Use fontset_name for return value.
25367
25368 * w32term.h: Declare x_get_font_repertory.
25369
25370 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
25371 place of find_charset_in_text. Use encode_coding_object in place
25372 of encode_coding.
25373 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
25374 decode_coding.
25375
25376 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
25377 of x_new_fontset.
25378 (w32_load_system_font): Initialize charset as unicode.
25379 font_info.encoding becomes encoding_type.
25380 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
25381 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
25382 (syms_of_w32fns): Set get_font_repertory_func.
25383
25384 * w32console.c: Include character.h. Use terminal_encode_buffer
25385 from term.c.
bba3e508
SM
25386 (write_glyphs): Use new version of encode_terminal_code.
25387 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
25388
25389 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
25390 encoding becomes encoding_type.
25391
25392 * term.c (terminal_encode_buffer): Make externally visible.
25393
25394 * makefile.w32-in: Add character.h dependancies.
25395 (character.o, chartab.o): New targets.
25396
253972008-02-01 Kenichi Handa <handa@m17n.org>
25398
25399 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
25400 CODING_ID_EOL_TYPE.
25401
254022008-02-01 Andreas Schwab <schwab@suse.de>
25403
25404 * coding.c (produce_chars): Revert last change.
25405
254062008-02-01 Kenichi Handa <handa@m17n.org>
25407
25408 * charset.h (charset_unicode): Extern it.
25409
25410 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
25411 (find_charsets_in_text): Change format of the arc CHARSETS.
25412 New arg MULTIBYTE.
aac0c6e3
MR
25413 (Ffind_charset_region, Ffind_charset_string): Adjust for the
25414 change of find_charsets_in_text.
25415 (Fsplit_char): Fix doc. Never return unknown.
25416
25417 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
25418
bba3e508
SM
25419 * coding.c (Fdefine_coding_system_alias):
25420 Update Vcoding_system_list.
aac0c6e3
MR
25421
25422 * fontset.c (load_font_get_repertory): Pay attention to the case
25423 that ENCODING of a font is specified by a char-table.
25424
25425 * xterm.c (x_get_font_repertory): Handle the case that the
25426 encoding of font is other than Unicode.
25427
254282008-02-01 Kenichi Handa <handa@m17n.org>
25429
bba3e508
SM
25430 * term.c (encode_terminal_code): Don't handle glyph-table.
25431 Check if a character is encodable by the terminal coding system.
25432 If not, produces proper number of `?'s. Update
aac0c6e3
MR
25433 terminal_encode_buffer and terminal_encode_buf_size if necessary.
25434 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
25435
254362008-02-01 Kenichi Handa <handa@m17n.org>
25437
bba3e508
SM
25438 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
25439 New variables.
aac0c6e3
MR
25440 (encode_terminal_code): Change argument. Encode multiple
25441 characters at once. Store the result of encoding in
25442 terminal_encode_buffer.
25443 (write_glyphs, insert_glyphs): Adjust for the change of
25444 encode_terminal_code.
25445 (term_init): Initialize terminal_encode_buffer and
25446 terminal_encode_buf_size.
25447
25448 * coding.c (consume_chars): If coding->src_object is nil, don't
25449 check annotation.
25450
254512008-02-01 Kenichi Handa <handa@m17n.org>
25452
25453 * character.c (char_string): Use ASCII_CHAR_P instead of
25454 SINGLE_BYTE_CHAR_P.
25455
254562008-02-01 Kenichi Handa <handa@m17n.org>
25457
25458 * xdisp.c (handle_auto_composed_prop): Check if the last
25459 characters of auto-composed region is newly composed with the
25460 following characters.
25461 (handle_composition_prop): Fix checking of point being inside
25462 composition.
25463
254642008-02-01 Kenichi Handa <handa@m17n.org>
25465
25466 * fns.c (concat): Don't change multibyteness of the result by
25467 concatenating an 8-bit character.
25468
25469 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
25470 multibyteness of the result when newelt is an 8-bit character.
25471
254722008-02-01 Dave Love <fx@gnu.org>
25473
25474 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
25475 EMACS_INT.
25476
25477 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
25478
25479 * xfaces.c (face_numeric_value): Declare dim size_t.
25480 (Finternal_lisp_face_equal_p): Remove unused f.
25481
25482 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
25483 (MATRIX_ROW): Remove unused vars.
25484 (draw_glyphs, x_insert_glyphs, fast_find_position)
25485 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
25486 byte/char counts.
25487
25488 * regex.c (regex_compile): Remove unused var.
25489
25490 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
25491
25492 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
25493 (Faccessible_keymaps, where_is_internal): Remove unused vars.
25494
25495 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
25496
25497 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
25498
25499 * fileio.c (Fwrite_region): Remove unused var.
25500
25501 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
25502 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
25503
25504 * composite.c (Fremove_list_of_text_properties): Declare.
25505
25506 * coding.c (inhibit_pre_post_conversion): Remove (unused).
25507 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
25508 (coding_inherit_eol_type): Remove unused attrs.
25509 (detect_coding): Cast arg of detect_eol.
25510
25511 * charset.c (syms_of_charset): Remove unused var p.
25512 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
25513 byte/char counts.
25514
25515 * casetab.c (set_case_table): Remove unused var.
25516
bba3e508
SM
25517 * window.c (Fdisplay_buffer, Fframe_selected_window):
25518 Remove unused vars.
aac0c6e3
MR
25519
255202008-02-01 Dave Love <fx@gnu.org>
25521
25522 * xterm.c (x_bitmap_mask): Declare.
25523
255242008-02-01 Dave Love <fx@gnu.org>
25525
25526 * xterm.c (x_term_init): Fix type error.
25527
25528 * lisp.h: Add Funibyte_char_to_multibyte.
25529
25530 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
25531 (Fset_coding_system_priority): Doc fix.
25532
25533 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
25534
25535 * indent.c (check_composition): Make start and end EMACS_INT.
25536
25537 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
25538
25539 * xdisp.c (handle_composition_prop, check_point_in_composition):
25540 Make buffer positions EMACS_INT.
25541
25542 * composite.c (find_composition, run_composition_function)
25543 (update_compositions, Ffind_composition_internal): Make buffer
25544 positions EMACS_INT.
25545
bba3e508
SM
25546 * composite.h (find_composition, update_compositions):
25547 Make position args EMACS_INT.
aac0c6e3
MR
25548
25549 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
25550
25551 * intervals.c (get_property_and_range):
25552 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
25553
25554 * unexalpha.c: Don't include varargs.h.
25555
255562008-02-01 Dave Love <fx@gnu.org>
25557
25558 * coding.h (ENCODE_UTF_8): New.
25559
25560 * Makefile.in (gtkutil.o): Depend on coding.h.
25561
25562 * coding.c (Fset_coding_system_priority): Doc fix.
25563
255642008-02-01 Kenichi Handa <handa@m17n.org>
25565
25566 * fileio.c (Finsert_file_contents): Call setup_coding_system in
25567 the case of auto saving.
25568
255692008-02-01 Andreas Schwab <schwab@suse.de>
25570
bba3e508
SM
25571 * chartab.c (map_char_table, map_char_table_for_charset):
25572 Protect `range' from GC.
aac0c6e3
MR
25573
255742008-02-01 Kenichi Handa <handa@m17n.org>
25575
25576 * coding.c (decode_coding_sjis): Check bytes more rigidly.
25577
255782008-02-01 Kenichi Handa <handa@m17n.org>
25579
25580 * fileio.c (choose_write_coding_system): Return a decided coding system.
25581 (Fwrite_region): Set Vlast_coding_system_used to the return value
25582 of choose_write_coding_system.
25583
255842008-02-01 Kenichi Handa <handa@m17n.org>
25585
25586 * charset.c (Fset_charset_priority): Pay attention to duplicated
25587 arguments.
25588
25589 * coding.c (QCcategory): New variable.
25590 (syms_of_coding): Defsym it. Set all elements of
25591 Vcoding_category_table and their symbol values.
25592 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
25593 coding-category-XXX, and coding-category-list.
25594 (Fdefine_coding_system_internal): Add category in the plist.
25595
255962008-02-01 Kenichi Handa <handa@m17n.org>
25597
25598 * callproc.c (Fcall_process): Handle carryover correctly.
25599
25600 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
25601 (raw_text_coding_system): Check NILP (coding_system).
25602 (coding_inherit_eol_type): Check NILP (coding_system) and
25603 NILP (parent).
25604 (consume_chars): Fix for the case of raw-text.
25605
25606 * process.c (read_process_output): Handle carryover correctly.
25607
256082008-02-01 Dave Love <fx@gnu.org>
25609
25610 * regex.c (re_search_2): Fix last change.
25611
256122008-02-01 Kenichi Handa <handa@m17n.org>
25613
25614 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
25615 target_multibyte. Even in a unibyte case, return a converted
25616 multibyte char.
25617 (GET_CHAR_AFTER): New macro.
25618 (PATFETCH): Translate via multibyte char.
25619 (HANDLE_UNIBYTE_RANGE): Delete this macro.
25620 (SETUP_MULTIBYTE_RANGE): New macro.
25621 (regex_compile): Setup compiled code so that its multibyteness
25622 matches that of a target. Fix the handling of "[X-YZ]" using
25623 SETUP_MULTIBYTE_RANGE.
25624 (analyse_first) <charset>: For filling fastmap for all multibyte
25625 characters, don't check by BASE_LEADING_CODE_P.
25626 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
25627 the same as RE_MULTIBYTE_P (bufp) now.
25628 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
25629 (TARGET_CHAR_AND_LENGTH): Delete this macro.
25630 (TRANSLATE_VIA_MULTIBYTE): New macro.
25631 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
25632 It is the same as RE_MULTIBYTE_P (bufp) now.
25633 <exactn>: Translate via multibyte.
bba3e508
SM
25634 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
25635 Don't translate it.
aac0c6e3
MR
25636 <charset, charset_not>: Fetch a character by
25637 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
25638 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
25639 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
25640 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
25641 by GET_CHAR_AFTER.
25642 (bcmp_translate): Likewise.
25643
25644 * search.c (compile_pattern): Check the member target_multibyte,
25645 not the member multibyte of buf.
25646
25647 * lread.c (read1): While reading a string, set force_singlebyte
25648 and force_multibyte correctly.
25649
25650 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
25651 up of unibyte_to_multibyte_table.
25652
256532008-02-01 Kenichi Handa <handa@m17n.org>
25654
25655 * coding.c (setup_coding_system): If coding has
25656 post-read-conversion or pre-write-conversion, set
25657 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
25658 respectively.
25659 (decode_coding_gap): Run post-read-conversion if any.
25660
25661 * fileio.c (Finsert_file_contents): Even if we read into a
25662 unibyte buffer, check if we must decode the result or not.
25663
256642008-02-01 Kenichi Handa <handa@m17n.org>
25665
25666 * coding.c (make_conversion_work_buffer): Change the work buffer
25667 name to the same one as that of Emacs 21.
25668
256692008-02-01 Kenichi Handa <handa@m17n.org>
25670
25671 * coding.h (make_conversion_work_buffer): Adjust prototype.
25672 (code_conversion_restore): Don't extern it.
25673
25674 * coding.c (detected_mask): Delete unused variable.
25675 (decode_coding_iso_2022): Pay attention to the byte sequence of
25676 CTEXT extended segment, and retain those bytes as is.
25677 (decode_coding_ccl): Delete unused variable `valids'.
25678 (setup_coding_system): Delete unused variable `category'.
25679 (consume_chars): Delete unused variable `category'. Make it work
25680 for non-multibyte case.
25681 (make_conversion_work_buffer): Change argument.
25682 (saved_coding): Delete unused variable.
25683 (code_conversion_restore): Don't check saved_coding->destination.
25684 (code_conversion_save): New function.
25685 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
25686 instead of record_unwind_protect.
25687 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
25688 (detect_coding_system): Delete unused variable `mask'.
25689 (Fdefine_coding_system_internal): Delete unused variable id.
25690
25691 * fileio.c (kill_workbuf_unwind): New function.
25692 (Finsert_file_contents): On replacing, call
25693 make_conversion_work_buffer with correct args, and call
25694 record_unwind_protect with the first arg kill_workbuf_unwind.
25695
25696 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
25697
256982008-02-01 Kenichi Handa <handa@m17n.org>
25699
25700 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
25701 (fontset_add): Fix for the case that TO is less than TO1.
25702 (Ffontset_info): Don't use fallback fontset on checking the
25703 default fontset.
25704 (dump_fontset): New function for debugging.
25705
25706 * coding.c (Fdefine_coding_system_internal): Fix for the case that
25707 coding_type is Qcharset.
25708
257092008-02-01 Kenichi Handa <handa@m17n.org>
25710
25711 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
25712 (map_char_table): Don't inherit the value from the parent on
25713 initializing VAL. Adjust for the above change.
25714
257152008-02-01 Kenichi Handa <handa@m17n.org>
25716
25717 * coding.c (Qsignature, Qendian): Delete these variables.
25718 (syms_of_coding): Don't initialize them.
25719 (CATEGORY_MASK_UTF_16_AUTO): New macro.
25720 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
25721 detect_info->found.
25722 (decode_coding_utf_16): Don't detect BOM here.
25723 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
25724 is NOT utf_16_without_bom.
25725 (setup_coding_system): For a coding system of type utf-16, check
25726 if the attribute :endian is Qbig or not (not nil or not), and set
25727 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
25728 (detect_coding): If coding type is utf-16 and BOM detection is
25729 required, detect it.
25730 (Fdefine_coding_system_internal): For a coding system of type
25731 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
25732
257332008-02-01 Kenichi Handa <handa@m17n.org>
25734
25735 * coding.c (coding_set_source): Fix for the case that the current
25736 buffer is different from coding->src_object.
25737 (decode_coding_object): Don't use the conversion work buffer if
25738 DST_OBJECT is a buffer.
25739
257402008-02-01 Dave Love <fx@gnu.org>
25741
25742 * lread.c (read_emacs_mule_char) [len==2]: Index
25743 emacs_mule_charset correctly.
25744
257452008-02-01 Dave Love <fx@gnu.org>
25746
25747 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
25748 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
25749 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
25750 treated specially.)
25751 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
25752 (detected_mask): Remove Big5 bits.
25753
257542008-02-01 Kenichi Handa <handa@m17n.org>
25755
25756 The following changes are to make the font rescaling facility
25757 compatible with Emacs 21.
25758
25759 * xfaces.c (Vface_font_rescale_alist): Rename from
25760 Vface_resizing_fonts.
25761 (struct font_name): Rename member resizing_ratio to rescale_ratio.
25762 (font_rescale_ratio): Rename from font_resizing_ratio.
25763 (split_font_name): Set font->rescale_ratio.
25764 (better_font_p): Pay attention to font->rescale_ratio.
25765 (build_scalable_font_name): Likewise. Change RESX, and RESY
25766 fields.
25767 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
25768
257692008-02-01 Kenichi Handa <handa@m17n.org>
25770
25771 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
25772 (Qutf_16_le): Remove these variables.
25773 (syms_of_coding): Don't DEFSYM them.
25774 (decode_coding_utf_16): Fix handling of BOM.
25775 (encode_coding_utf_16): Fix handling of BOM.
25776
257772008-02-01 Kenichi Handa <handa@m17n.org>
25778
25779 * fileio.c (Finsert_file_contents): On replacing, before decoding
25780 the file into the work buffer, set point of the work buffer to the end.
25781
257822008-02-01 Dave Love <fx@gnu.org>
25783
25784 * coding.c (Fcheck_coding_systems_region): Fix type errors.
25785
257862008-02-01 Dave Love <fx@gnu.org>
25787
25788 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25789 and fix C types.
25790
257912008-02-01 Kenichi Handa <handa@m17n.org>
25792
25793 * xdisp.c (SKIP_GLYPHS): New macro.
25794 (set_cursor_from_row): Pay attention to string display properties.
25795
25796 * category.c (copy_category_entry): Fix for the case that RANGE
25797 is an integer.
25798
25799 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
25800
25801 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
25802
258032008-02-01 Kenichi Handa <handa@m17n.org>
25804
25805 * charset.c (Fcharset_id_internal): New function.
25806 (syms_of_charset): Defsubr it.
25807
25808 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
25809 with the last arg charset_list acquired from coding.
25810 (Fdefine_coding_system_internal): For ccl-based coding system, fix
25811 the attribute coding_attr_ccl_valids.
25812
25813 * coding.h (enum define_coding_ccl_arg_index): Set the first
25814 member coding_arg_ccl_decoder to coding_arg_max.
25815
25816 * ccl.h (ccl_driver): Adjust prototype.
25817
25818 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
25819 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 25820 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
25821 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
25822 last arg Qnil.
25823
258242008-02-01 Kenichi Handa <handa@m17n.org>
25825
25826 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
25827 call encode_char.
25828
25829 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
25830
258312008-02-01 Dave Love <fx@gnu.org>
25832
25833 * composite.c (syms_of_composite): Make composition_hash_table weak.
25834
258352008-02-01 Kenichi Handa <handa@m17n.org>
25836
25837 * dispextern.h (check_face_attributes, generate_ascii_font_name)
25838 (font_name_registry): Don't extern them.
25839 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
25840
25841 * fontset.h (Qfontset): Don't extern it.
25842 (new_fontset_from_font_name): Extern it.
25843
25844 * fontset.c: Give 8 extra slots to fontset objects.
25845 (Qfontset_info): New variable.
25846 (syms_of_fontset): Defsym it.
25847 (FONTSET_FALLBACK): New macro.
25848 (fontset_face): Try also the default fontset.
25849 (make_fontset): Realize a fallback fontset from the default fontset.
25850 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
25851 using split_font_name_into_vector and build_font_name_from_vector.
25852 (Fset_fontset_font): Access the elements of font_spec by enum
25853 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
25854 name by using split_font_name_into_vector.
25855 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
25856 generate a proper font name from the fontset name.
25857 Update Vfontset_alias_alist.
aac0c6e3
MR
25858 (n_auto_fontsets): New variable.
25859 (new_fontset_from_font_name): New function.
25860 (Ffont_info): Store the information about fonts generated from the
25861 default fontset in the first extra slot of the returned char-table.
25862
25863 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
25864 (font_name_registry): Delete function.
25865 (split_font_name_into_vector): New function.
25866 (build_font_name_from_vector): New function.
25867 (font_list): The argument REGISTRY is now a list of registry names.
25868 (choose_face_font): If we are choosing an ASCII font, and ATTRS
25869 specifies an explicit font name, return the name as is. Make a
25870 list of registy names.
25871
25872 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
25873 of x_new_fontset.
25874 (Fx_create_frame): Don't call x_new_fontset here. Just use
25875 x_list_fonts to check the existence of fonts.
25876
25877 * xterm.h (x_new_fontset): Adjust prototype.
25878
25879 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
25880 string. Use new_fontset_from_font_name to create a fontset from a
25881 font name.
25882
258832008-02-01 Kenichi Handa <handa@m17n.org>
25884
25885 * syntax.c (Vfind_word_boundary_function_table): New name for
25886 Vnext_word_boundary_function_table.
25887 (find-word-boundary-function-table): New name for
25888 next-word-boundary-function-table.
25889
258902008-02-01 Dave Love <fx@gnu.org>
25891
25892 * Makefile.in: Fix some dependencies.
25893
25894 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
25895 set it to nil before returning.
25896
25897 * composite.c (update_compositions): Fix type error.
25898
25899 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
25900
259012008-02-01 Kenichi Handa <handa@m17n.org>
25902
25903 * xterm.c (x_new_font): Optimize for the case that the font is
25904 already set for the frame.
25905
259062008-02-01 Kenichi Handa <handa@m17n.org>
25907
25908 * chartab.c (char_table_ascii): Check if the char table contents
25909 is sub-char-table or not.
25910 (char_table_set, char_table_set_range): Fix argument to
25911 char_table_ascii.
25912
25913 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
25914 (detect_coding_utf_8, detect_coding_utf_16)
25915 (detect_coding_emacs_mule, detect_coding_iso_2022)
25916 (detect_coding_sjis, detect_coding_big5)
25917 (detect_coding_ccl, detect_coding_charset): Change argument MASK
25918 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
25919 sequence is valid in this coding system. Change callers.
25920 (MAX_ANNOTATION_LENGTH): New macro.
25921 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
25922 (ADD_COMPOSITION_DATA): Change argument. Change callers.
25923 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
25924 (ADD_CHARSET_DATA): New macro.
25925 (emacs_mule_char): New argument ID. Change callers.
25926 (decode_coding_emacs_mule, decode_coding_iso_2022)
25927 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25928 Produce charset annotation data in coding->charbuf.
25929 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
25930 to charset annotation data in coding->charbuf.
25931 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
25932 coding->common_flags if the coding system is iso-2022 based and
25933 uses designation.
25934 (produce_composition): Adjust for the new annotation data format.
25935 (produce_charset): New function.
25936 (produce_annotation): Handle charset annotation.
bba3e508
SM
25937 (handle_composition_annotation, handle_charset_annotation):
25938 New functions.
aac0c6e3
MR
25939 (consume_chars): Handle charset annotation. Utilize the above two
25940 functions.
25941 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
25942 buffer, get the deleted text as a string and set
25943 coding->src_object to that string.
25944 (detect_coding, detect_coding_system): Use the new struct
25945 coding_detection_info.
25946
25947 * coding.h (struct coding_detection_info): New structure.
25948 (struct coding_system): Adjust prototype of the member `detector'.
25949 (CODING_ANNOTATE_CHARSET_MASK): New macro.
25950
259512008-02-01 Kenichi Handa <handa@m17n.org>
25952
25953 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
25954
259552008-02-01 Dave Love <fx@gnu.org>
25956
25957 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
25958 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
25959 to new local and nullify apropos_accumulate before returning.
25960 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
25961
259622008-02-01 Kenichi Handa <handa@m17n.org>
25963
25964 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
25965 correctly.
e3eea1fc 25966
aac0c6e3
MR
259672008-02-01 Dave Love <fx@gnu.org>
25968
25969 * fns.c (Flanginfo): Call synchronize_system_time_locale.
25970
259712008-02-01 Kenichi Handa <handa@m17n.org>
25972
25973 The following changes are to make character composition happen
25974 automatically on displaying.
25975
25976 * Makefile.in (lisp, shortlisp): Add composite.elc.
25977
25978 * composite.h (Qauto_composed, Vauto_composition_function)
25979 (Qauto_composition_function): Extern them.
25980
25981 * composite.c (Vcomposition_function_table)
25982 (Qcomposition_function_table): Delete variables.
25983 (Qauto_composed, Vauto_composition_function)
25984 (Qauto_composition_function): New variables.
25985 (run_composition_function): Don't call
25986 compose-chars-after-function.
25987 (update_compositions): Clear `auto-composed' text property.
25988 (compose_chars_in_text): Delete this function.
25989 (syms_of_composite): Staticpro Qauto_composed and
25990 Qauto_composition_function. Declare Vauto_composition_function as
25991 a Lisp variable.
25992
25993 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
25994
25995 * xdisp.c (it_props): Add an entry for Qauto_composed.
25996 (handle_auto_composed_prop): New function.
25997
25998 * xselect.c (selection_data_to_lisp_data): Don't call
25999 compose_chars_in_text.
26000
260012008-02-01 Dave Love <fx@gnu.org>
26002
26003 * keyboard.c (read_char): Modify checking around use of
26004 Vkeyboard_translate_table.
26005
26006 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26007 and fix C types.
26008
260092008-02-01 Kenichi Handa <handa@m17n.org>
26010
26011 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
26012 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26013 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
26014 the case that the last byte is '\r' correctly.
26015 (decode_coding): Flush out the unprocessed data correctly.
26016 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
26017
260182008-02-01 Dave Love <fx@gnu.org>
26019
26020 * xterm.c (XTread_socket): Fix changes for defined keysyms.
26021 Add XK_ISO... case.
26022 (xaw_scroll_callback): Revert last change.
26023
260242008-02-01 Kenichi Handa <handa@m17n.org>
26025
26026 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
26027
260282008-02-01 Kenichi Handa <handa@m17n.org>
26029
26030 * xfaces.c (Vface_resizing_fonts): New variable.
26031 (struct font_name): New member `resizing_ratio'.
26032 (font_resizing_ratio): New function.
26033 (split_font_name): Set font->resizing_ratio.
26034 (better_font_p): Pay attention to font->resizing_ratio.
26035 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
26036 RESX, and RESY fields.
26037 (try_alternative_families): Try scalable fonts if
26038 Vscalable_fonts_allowed is not Qt.
26039 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
26040
260412008-02-01 Dave Love <fx@gnu.org>
26042
26043 * xterm.c (xaw_scroll_callback): Cast correctly.
26044
260452008-02-01 Dave Love <fx@gnu.org>
26046
26047 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
26048 (lispy_kana_keys): Comment out.
26049 (make_lispy_event) [XK_kana_A]: Comment out.
26050
26051 * xterm.c (xaw_scroll_callback): Cast call_data.
26052 (XTread_socket): Deal with ASCII keysyms.
26053 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
26054
260552008-02-01 Dave Love <fx@gnu.org>
26056
26057 * xterm.c (Vx_keysym_table): New.
26058 (syms_of_xterm): Initialize it.
26059 (XTread_socket): Use it.
26060 From head: Eliminate incorrect optimization that tried to avoid
26061 decoding the output of X*LookupString.
26062 (x_get_font_repertory): Delete charset declaration.
26063
260642008-02-01 Kenichi Handa <handa@m17n.org>
26065
26066 * coding.c (detect_coding_charset): If only ASCII bytes are found,
26067 return 0.
bba3e508
SM
26068 (Fdefine_coding_system_internal):
26069 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
26070
260712008-02-01 Dave Love <fx@gnu.org>
26072
26073 * coding.c (Fcheck_coding_system): Doc fix.
26074
26075 * editfns.c (Finsert_byte): Return a proper value.
26076
260772008-02-01 Kenichi Handa <handa@m17n.org>
26078
bba3e508
SM
26079 * coding.c (decode_coding): Fix args to translate_chars.
26080 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
26081 (encode_coding): Fix args to translate_chars. Pay attention to
26082 Vstandard_translation_table_for_encode.
26083
26084 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
26085 SINGLE_BYTE_CHAR_P.
26086
26087 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
26088 not by SINGLE_BYTE_CHAR_P.
26089
26090 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
26091 SINGLE_BYTE_CHAR_P.
26092
26093 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
26094 SINGLE_BYTE_CHAR_P.
26095
26096 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
26097 by SINGLE_BYTE_CHAR_P.
26098
26099 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
26100 SINGLE_BYTE_CHAR_P.
26101
261022008-02-01 Dave Love <fx@gnu.org>
26103
26104 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
26105
261062008-02-01 Dave Love <fx@gnu.org>
26107
26108 * fns.c (Flanginfo): Fix typo.
26109
26110 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
26111
261122008-02-01 Kenichi Handa <handa@m17n.org>
26113
26114 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
26115 (detect_coding_emacs_mule, detect_coding_iso_2022)
26116 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
26117 incomplete byte sequence. Don't update *mask when correctly detected.
26118 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
26119 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
26120 (detect_coding, detect_coding_system): Adjust for the changes above.
26121
261222008-02-01 Kenichi Handa <handa@m17n.org>
26123
26124 * character.c (char_string): Rename from
26125 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
26126 (string_char): Rename from string_char.
26127
26128 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
26129 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
26130 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
26131 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
26132
261332008-02-01 Dave Love <fx@gnu.org>
26134
26135 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
26136
261372008-02-01 Kenichi Handa <handa@m17n.org>
26138
26139 * keymap.c (push_key_description): Pay attention to force_multibyte.
26140
26141 * regex.c (re_search_2): Fix for the case of unibyte buffer.
26142
261432008-02-01 Dave Love <fx@gnu.org>
26144
26145 * charset.c (define_charset_internal): Rename `supprementary'.
26146
26147 * Makefile.in (lisp, shortlisp): Remove latin-N.
26148
261492008-02-01 Dave Love <fx@gnu.org>
26150
26151 * xfns.c (x_window, x_window): Use use_xim.
26152
26153 * xterm.c (use_xim): Initialize.
26154 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
26155 (x_term_init): Maybe set use_xim.
26156
26157 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
26158
261592008-02-01 Kenichi Handa <handa@m17n.org>
26160
26161 * search.c (search_buffer): Fix case-fold-search of multibyte
26162 characters.
26163 (boyer_moore): Rename the last argument to char_high_bits.
26164
261652008-02-01 Kenichi Handa <handa@m17n.org>
26166
26167 * xdisp.c (display_string): Fix for the case of zero width glyph.
26168
26169 * xfns.c (x_set_font): Change the error message of the case that
26170 x_new_fontset returns Qt.
26171
26172 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
26173 (Finternal_set_lisp_face_attribute): Use signal_error for the
26174 error of invalid fontset.
26175
26176 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
26177 fontset, return Qt.
26178
261792008-02-01 Dave Love <fx@gnu.org>
26180
26181 * unexelf.c (unexec): Make .got handling not SGI-specific.
26182
26183 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
26184
26185 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
26186
26187 * keyboard.c (read_key_sequence): Fix type error.
26188
bba3e508
SM
26189 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
26190 Fix type error.
aac0c6e3
MR
26191
26192 * fontset.c (fontset_add): Return Lisp_Object.
26193
261942008-02-01 Dave Love <fx@gnu.org>
26195
26196 * charset.h (charset_ordered_list_tick): Declare extern.
26197
261982008-02-01 Kenichi Handa <handa@m17n.org>
26199
26200 The following changes (and some of 2008-02-01 changes of mine) are
26201 for handling syntax, category, and case conversion for unibyte
26202 characters by converting them to multibyte on the fly. With these
26203 changes, we don't have to setup syntax and case tables for unibyte
26204 characters in each language environment.
26205
26206 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
26207 multibyte if necessary.
26208
26209 * bytecode.c (Fbyte_code): Likewise.
26210
26211 * character.h (LEADING_CODE_LATIN_1_MIN)
26212 (LEADING_CODE_LATIN_1_MAX): New macros.
26213 (unibyte_to_multibyte_table): Extern it.
26214 (unibyte_char_to_multibyte): New macro.
26215 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
26216 (CHAR_LEADING_CODE): New macro.
26217 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
26218
26219 * character.c (unibyte_to_multibyte_table): New variable.
26220 (unibyte_char_to_multibyte): Move to character.h and define as macro.
26221 (multibyte_char_to_unibyte): If C is an eight-bit character,
26222 convert it to the corresponding byte value.
26223
26224 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
26225 not 1, signals an error. Update the elements of
26226 unibyte_to_multibyte_table.
26227 (init_charset_once): Initialize unibyte_to_multibyte_table.
26228 (syms_of_charset): Define the charset `iso-8859-1'.
26229
26230 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
26231 as is without converting it to unibyte. In a unibyte buffer,
26232 convert C to multibyte before checking the syntax.
26233
26234 * lisp.h (unibyte_char_to_multibyte): Delete extern.
26235
26236 * minibuf.c (Fminibuffer_complete_word): Use the macro
26237 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
26238
26239 * regex.h (struct re_pattern_buffer): New member target_multibyte.
26240
26241 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
26242 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
26243 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
26244 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
26245 non-emacs case.
26246 (PATFETCH): Convert an eight-bit char to multibyte.
26247 (HANDLE_UNIBYTE_RANGE): New macro.
26248 (regex_compile): Setup the compiled pattern for multibyte chars
26249 even if the given regex string is unibyte. Use PATFETCH_RAW
26250 instead of PATFETCH in many places. To handle `charset'
26251 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
26252 only for ASCII chars.
26253 (analyse_first) <exactn>: Simplify because the compiled pattern
26254 is multibyte.
26255 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
26256 <charset>: Use CHAR_LEADING_CODE to get leading codes.
26257 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
26258 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
26259 multibyte always 1.
26260 (re_search_2): In emacs, set the locale variable multibyte to 1,
26261 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
26262 to decide the multibyteness of STR1 and STR2.
26263 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
26264 before translating and checking fastmap.
26265 (TARGET_CHAR_AND_LENGTH): New macro.
26266 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
26267 to 1, otherwise to 0. New local variable target_multibyte.
26268 Check it to decide the multibyteness of STR1 and STR2.
26269 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
26270 <charset, charset_not>: If multibyte is nonzero, check fastmap
26271 only for ASCII chars. Call bcmp_translate with
26272 target_multibyte, not with multibyte.
26273 <begline>: Declare the local variable C as `unsigned'.
26274 (bcmp_translate): Change the last arg name to target_multibyte.
26275
26276 * search.c (compile_pattern_1): Don't adjust the multibyteness of
26277 the regexp pattern and the matching target. Set cp->buf.multibyte
26278 to the multibyteness of the regexp pattern. Set
26279 cp->but.target_multibyte to the multibyteness of the matching target.
26280 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
26281 FETCH_STRING_CHAR_ADVANCE.
26282 (Freplace_match): Convert unibyte chars to multibyte.
26283
26284 * syntax.c (char_quoted, back_comment, scan_words)
26285 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
26286 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
26287 unibyte chars to multibyte.
26288 (skip_chars): Delete the arg syntaxp, and move the code for
26289 handling syntaxes to skip_syntaxes. Change callers.
26290 Fix the case that the multibyteness of STRING and the current
26291 buffer doesn't match.
26292 (skip_syntaxes): New function.
26293 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
26294 SINGLE_BYTE_CHAR_P.
26295
262962008-02-01 Kenichi Handa <handa@m17n.org>
26297
26298 * xfaces.c (QCfontset): New variable.
26299 (LFACE_FONTSET): New macro.
26300 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
26301 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
26302 (Finternal_set_lisp_face_attribute)
26303 (Finternal_get_lisp_face_attribute): Handle QCfontset.
26304 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
26305 check also LFACE_FONTSET_INDEX.
26306 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
26307 attrs[LFACE_FONT_INDEX].
26308 (syms_of_xfaces): Intern and staticpro QCfontset.
26309
26310 * dispextern.h (enum lface_attribute_index): New member
26311 LFACE_FONTSET_INDEX.
26312
26313 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
26314
263152008-02-01 Kenichi Handa <handa@m17n.org>
26316
26317 * coding.c (coding_set_destination): Fix coding->destination for
26318 the case converting a region.
26319 (encode_coding_utf_8): Encode eight-bit chars as single byte.
26320 (encode_coding_object): Fix coding->dst_pos and
26321 coding->dst_pos_byte for the case converting a region.
26322
26323 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
26324
26325 * character.h (BYTE8_STRING): New macro.
26326
26327 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
26328
263292008-02-01 Kenichi Handa <handa@m17n.org>
26330
26331 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
26332 characters by octal form.
26333
26334 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
26335
26336 * buffer.h (_fetch_multibyte_char_len): Delete extern.
26337 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
26338 _fetch_multibyte_char_len.
26339 (FETCH_CHAR_AS_MULTIBYTE): New macro.
26340
26341 * casetab.c (set_canon, set_identity, shuffle): Simplify.
26342
26343 * casefiddle.c (casify_object): Simplify. Handle the case that
26344 the case conversion change the byte length.
26345 (casify_region): Likewise.
26346
26347 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
26348
26349 * character.c (_fetch_multibyte_char_len): Delete this variable.
26350 (syms_of_character): Setup Vprintable_chars.
26351
26352 * editfns.c (Fchar_equal): Fix for the unibyte case.
26353 (Finsert_byte): New function.
26354 (syms_of_editfns): Defsubr it.
26355
26356 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
26357 of direct code 0x3ffff.
26358
26359 * search.c (Freplace_match): Fix for the unibyte case.
26360
263612008-02-01 Kenichi Handa <handa@m17n.org>
26362
26363 * lread.c (safe_to_load_p): Fix the logic.
26364
26365 * syntax.c (scan_words): Don't treat characters belonging to
26366 different scripts as constituting a word.
26367
26368 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26369
26370 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
26371
26372 * emacs.c (main): In the case of --unibyte, instead of aborting on
26373 finding non-empty buffer, make it unibyte.
26374
263752008-02-01 Kenichi Handa <handa@m17n.org>
26376
26377 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
26378 to create a fontset.
26379
263802008-02-01 Dave Love <fx@gnu.org>
26381
26382 * character.c (Funibyte_char_to_multibyte): Doc fix.
26383
26384 * xfns.c [HAVE_STDLIB_H]: Fix last change.
26385
263862008-02-01 Kenichi Handa <handa@m17n.org>
26387
26388 * fontset.c (fontset_add): Make the type `int'.
26389 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
26390
26391 * character.c (unibyte_char_to_multibyte)
26392 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
26393 charset_unibyte, not charset_primary.
26394
26395 * charset.h (charset_unibyte): Extern it instead of charset_primary.
26396
26397 * charset.c (charset_unibyte): Rename from charset_primary.
26398 (Funibyte_charset): Rename from Fprimary_charset.
26399 (Fset_unibyte_charset): Rename from Fset_primary_charset.
26400 (syms_of_charset): Adjust for the above changes.
26401
26402 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
26403 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
26404 it->multibyte_p is zero.
26405
26406 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
26407 Delete extern.
26408
264092008-02-01 Kenichi Handa <handa@m17n.org>
26410
26411 * coding.c (Fdefine_coding_system_internal): Fix category setting
26412 for a coding system of type iso-2022.
26413
264142008-02-01 Kenichi Handa <handa@m17n.org>
26415
26416 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
26417
264182008-02-01 Kenichi Handa <handa@m17n.org>
26419
26420 * syntax.c (Vnext_word_boundary_function_table): New variable.
26421 (next-word-boundary-function-table): Declare it as a Lisp variable
26422 in syms_of_syntax.
26423 (scan_words): Call functions in Vnext_word_boundary_function_table
26424 if any.
26425
26426 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
26427
26428 * fontset.c (fs_load_font): If fontp->charset is not negative,
26429 return fontp without setting its members.
26430
264312008-02-01 Dave Love <fx@gnu.org>
26432
26433 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
26434
26435 * m/sparc.h (HAVE_ALLOCA): Delete.
26436
26437 * s/irix6-5.h: Don't include strings.h.
26438 (bcopy, bzero, bcmp): Don't undef.
26439
26440 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
26441
26442 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
26443 (TIOCSIGSEND): Don't test IRIX6.
26444 (bcopy, bzero, bcmp): Define conditionally.
26445
264462008-02-01 Kenichi Handa <handa@m17n.org>
26447
26448 * buffer.c (Qas, Qmake, Qto): New variables.
26449 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
26450 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
26451
26452 * callproc.c (Fcall_process): Don't call insert_1_both directly if
26453 we are inserting a process output into a multibyte buffer.
26454
26455 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
26456 multibyte_char_to_unibyte.
26457
26458 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
26459 by the primary charset, make it eight-bit char.
26460 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
26461
26462 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
26463 (charset_8_bit__control, charset_8_bit_graphic)
26464 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
26465 (define_charset_internal): New function.
26466 (syms_of_charset): Call define_charset_internal for pre-defined
26467 charsets.
26468
26469 * charset.h (charset_8_bit): Extern it.
26470
26471 * coding.c (make_conversion_work_buffer): Adjust for the change
26472 of Fset_buffer_multibyte.
26473 (encode_coding_raw_text): Increment p0 in the loop.
26474
26475 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
26476
bba3e508
SM
26477 * xdisp.c (setup_echo_area_for_printing, set_message_1):
26478 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
26479
26480 * fns.c (Fstring_to_multibyte): New function.
26481 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
26482
264832008-02-01 Dave Love <fx@gnu.org>
26484
26485 * xfns.c (x_put_x_image): Declare args.
26486
26487 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
26488 (try_font_list): Declare an arg.
26489
26490 * xdisp.c (message2_nolog, set_message): Declare an arg.
26491
26492 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
26493
26494 * syntax.c (scan_sexps_forward): Declare an arg.
26495
26496 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
26497 Declare an arg.
26498
26499 * lisp.h (Fnew_fontset): Declare.
26500
26501 * keymap.c (push_key_description): Call CHARACTERP correctly.
26502
26503 * fontset.c (fontset_add): Declare args. Call make_number correctly.
26504 (face_for_char): Delete unused vars.
26505 (Fset_fontset_font): Doc fix. Delete unused vars.
26506
26507 * doc.c (Fsubstitute_command_keys): Delete unused vars.
26508
26509 * composite.c (update_compositions): Declare arg.
26510
26511 * cm.c (calccost, cmgoto): Declare args.
26512
26513 * charset.c: Remove `emacs' conditional. Doc fixes.
26514 (map_char_table_for_charset): Declare.
26515
26516 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
26517
26518 * ccl.c: Remove `emacs' conditional.
26519
265202008-02-01 Kenichi Handa <handa@m17n.org>
26521
26522 The following changes are to allow specifying multiple font
26523 patterns for a character range (specified by script or charset).
26524
26525 * Makefile.in (abbrev.o): Depend on syntax.h.
26526 (xfaces.o): Depend on charset.h.
26527
26528 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
26529 SINGLE_BYTE_CHAR_P.
26530
26531 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
26532
26533 * character.h (Vchar_script_table): Extern it.
26534
26535 * character.c (Vscript_alist): Delete.
26536 (Vchar_script_table, Qchar_script_table): New variable.
26537 (syms_of_character): Declare Vchar_script_table as a lisp variable
26538 and initialize it.
26539
26540 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
26541 have property char-table-extra-slots, make no extra slot.
26542
26543 * dispextern.h (struct face): Delete member `charset'.
26544 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
26545 SINGLE_BYTE_CHAR_P.
26546 (choose_face_font, lookup_non_ascii_face, font_name_registry):
26547 Add prototypes.
26548 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
26549 (generate_ascii_font_name): Rename from generate_ascii_font.
26550
26551 * fontset.h (get_font_repertory_func): New prototype.
26552 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
26553 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
26554
26555 * fontset.c (Qprepend, Qappend): New variables.
26556 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
26557 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
26558 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
26559 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
26560 (fontset_ref_and_range, fontset_add, reorder_font_vector)
26561 (load_font_get_repertory): New functions.
26562 (fontset_set): Delete.
26563 (fontset_face): New arg FACE. Return face ID, not face.
26564 Complete re-write to handle new fontset structure. Change caller.
26565 (free_face_fontset): Use ASET istead of AREF (X) = Y.
26566 (face_for_char): Don't call lookup_face.
26567 (make_fontset_for_ascii_face): New arg FACE.
26568 (fs_load_font): New arg CHARSET_ID. Don't check
26569 Vfont_encoding_alist here.
26570 (find_font_encoding): New function.
26571 (list_fontsets): Use STRINGP, not ! NILP.
26572 (accumulate_script_ranges): New function.
bba3e508
SM
26573 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
26574 Completely re-written to handle new fontset structure.
aac0c6e3 26575 (Ffontset_font): Return a copy of element.
bba3e508
SM
26576 (syms_of_fontset): Define symbols Qprepend and Qappend.
26577 Fix docstring of font-encoding-alist.
aac0c6e3
MR
26578
26579 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
26580 (Fset_fotset_font): Fix arguments to 5.
26581
26582 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
26583
26584 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
26585 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26586 (highlight_trailing_whitespace): Adjust for the change of
26587 lookup_named_face.
26588
26589 * xfaces.c: Include charset.h.
26590 (load_face_font): Delete argument C. Change caller.
26591 (generate_ascii_font_name): Rename from generate_ascii_font.
26592 (font_name_registry): New function.
26593 (cache_face): Store ascii faces before non-ascii faces in buckets.
26594 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
26595 Lookup only ascii faces.
26596 (lookup_non_ascii_face): New function.
26597 (lookup_named_face): Delete argument C. Change caller.
26598 (lookup_derived_face): Delete argument C. Change caller.
26599 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
26600 a string, just call font_list with it.
26601 (choose_face_font): Delete arguments FACE and C. New arg
26602 FONT_SPEC. Change caller.
26603 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
26604 Change caller.
26605 (realize_non_ascii_face): New function.
26606 (realize_x_face): Call load_face_font here.
26607 (realize_tty_face): Delete argument C. Change caller.
26608 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
26609 get a face ID.
26610 (dump_realized_face): Don't print charset of FACE.
26611
26612 * xfns.c (x_set_font): Always call x_new_fontset and
26613 store_frame_parameter.
26614 (Fx_create_frame): Call x_new_fontset, not x_new_font.
26615 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
26616
26617 * xterm.h (x_get_font_repertory): Extern it.
26618
26619 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
26620 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
26621 it->multibyte_p is zero.
26622 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26623 (x_new_fontset): If FONTSETNAME doesn't match any existing
26624 fontsets, create a new one.
26625 (x_get_font_repertory): New function.
26626
266272008-02-01 Kenichi Handa <handa@m17n.org>
26628
26629 * coding.c (Ffind_coding_systems_region_internal): Detect an
26630 ASCII only string correctly.
26631
26632 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
26633 version is 0.
26634
266352008-02-01 Kenichi Handa <handa@m17n.org>
26636
26637 * lread.c: Include "coding.h".
26638 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
26639 (load_each_byte, unread_char): New variables.
26640 (readchar_backlog): Delete.
26641 (readchar): Return a character unless load_each_byte is nonzero.
26642 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
26643 cons. If unread_char is not -1, simply return it.
26644 (unreadchar): Handle the case that readcharfun is
26645 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
26646 (read_multibyte): Delete.
26647 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
26648 (read_emacs_mule_char): New functions.
26649 (Fload): Even if the file doesn't have the extension ".elc", if
26650 safe_to_load_p returns a positive version number, assume that the
26651 file contains bytecompiled code. If the version is less than 22,
26652 load the file while decoding multibyte sequences by emacs-mule.
26653 (readevalloop): Don't use readchar_backlog.
26654 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
26655 (Fread_from_string): Pay attention to the case that STREAM is a cons.
26656 (read_escape): Delete the arg BYTEREP.
26657 (read1): Set load_each_byte to 1 temporarily while handling
26658 #@NUMBER. Don't call read_multibyte.
26659 (read_vector): Call Fread with a cons. If readcharfun is
26660 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
26661 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
26662 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
26663 and Qload_force_doc_strings.
26664
266652008-02-01 Kenichi Handa <handa@m17n.org>
26666
bba3e508
SM
26667 * xdisp.c (face_before_or_after_it_pos):
26668 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
26669
266702008-02-01 Kenichi Handa <handa@m17n.org>
26671
26672 * character.h (TRAILING_CODE_P): New macro.
26673 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
26674 (string_char_with_unification): Fix prototype.
26675 (Vscript_alist): Extern it.
26676
26677 * character.c (Vscript_alist): New variable.
26678 (string_char_with_unification, str_as_unibyte)
26679 (string_escape_byte8): Add `const' to local variables.
26680 (syms_of_character): Declare script-alist as a Lisp variable.
26681
26682 * charset.h (Vcharset_ordered_list): Extern it.
26683 (charset_ordered_list_tick): Extern it.
26684 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
26685 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
26686 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
26687 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
26688 (Funify_charset): Adjust for the change of Funify_charset.
26689
26690 * charset.c (charset_ordered_list_tick): New variable.
26691 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
26692 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 26693 deunify instead of unify a charset.
aac0c6e3
MR
26694 (string_xstring_p): Add `const' to local variables.
26695 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
26696 (encode_char): Adjust for the change of Funify_charset.
26697 Fix detecting of invalid code.
aac0c6e3
MR
26698 (Fset_charset_priority): Increment charset_ordered_list_tick.
26699 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
26700 and TO_CODE.
26701
26702 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
26703 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
26704 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
26705 (decode_coding_ccl, consume_chars)
26706 (Ffind_coding_systems_region_internal)
26707 (Fcheck_coding_systems_region): Add `const' to local variables.
26708
26709 * print.c (print_object): Use octal form for printing the
26710 contents of a bool vector.
26711
267122008-02-01 Dave Love <fx@gnu.org>
26713
26714 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
26715 <version == 20>: Refuse to load.
26716
267172008-02-01 Dave Love <fx@gnu.org>
26718
26719 * fns.c: Move coding.h.
26720 (Qcodeset, Qdays, Qmonths): New.
26721 (concat): Use CHARACTERP instead of INTEGERP.
26722 (Flocale_codeset): Delete.
26723 (Flanginfo): New function.
26724 (syms_of_fns): Change accordingly.
26725
26726 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
26727
267282008-02-01 Dave Love <fx@gnu.org>
26729
bba3e508
SM
26730 * casetab.c (init_casetab_once, init_casetab_once):
26731 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
26732
26733 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
26734
26735 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
26736
26737 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
26738 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
26739 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
26740
26741 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
26742
26743 * coding.c (ENCODE_DESIGNATION, decode_eol)
26744 (make_conversion_work_buffer, code_conversion_restore)
26745 (Fdefine_coding_system_internal): Convert Lisp types.
26746 (code_conversion_restore): Use EQ, not ==.
26747 (Fencode_coding_string): Fix code_convert_string call.
26748
26749 * coding.h (code_convert_region): Fix prototype.
26750
26751 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
26752
26753 * fontset.c (fontset_ref, fontset_set, fs_load_font)
26754 (Ffontset_info): Convert Lisp types.
26755
26756 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
26757
26758 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
26759
26760 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
26761
26762 * chartab.c: Include "...h", not <...h> in some cases.
26763
26764 * callproc.c (Fcall_process): Remove unused variables.
26765
267662008-02-01 Dave Love <fx@gnu.org>
26767
26768 * coding.c (Fset_coding_system_priority): Allow null arg list.
26769
267702008-02-01 Dave Love <fx@gnu.org>
26771
26772 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26773 (Fself_insert_and_exit): Use CHARACTERP.
26774
26775 * callproc.c (Fcall_process): Remove unused vars.
26776
26777 * xterm.c (XTread_socket): Add extra dead keysyms.
26778
26779 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
26780
26781 * dispextern.h: Remove prototypes for redraw_frame,
26782 redraw_garbaged_frames.
26783
26784 * cmds.c (Fself_insert_command): Use CHARACTERP.
26785
26786 * chartab.c (make_sub_char_table): Remove unused var.
26787 (Fset_char_table_default, Fmap_char_table): Doc fix.
26788
26789 * keymap.c (access_keymap): Remove generic char code.
26790 (push_key_description): Use CHARACTERP.
26791
267922008-02-01 Dave Love <fx@gnu.org>
26793
26794 * charset.c: Doc fixes.
26795 (Funify_charset): Extra checking.
26796
267972008-02-01 Dave Love <fx@gnu.org>
26798
26799 * lread.c: Remove some unused variables.
26800 (safe_to_load_p): If safe, return the magic number version byte.
26801 (Fload): Maybe use load-with-code-conversion.
26802
268032008-02-01 Kenichi Handa <handa@m17n.org>
26804
26805 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
26806 of category_set for characters out of the range.
26807 Avoid unnecessary modification.
aac0c6e3
MR
26808
26809 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
26810 Vchar_unify_table. The default value of the table is now nil.
26811
26812 * character.c (syms_of_character): Setup Vchar_width_table for
26813 eight-bit-control and raw-byte chars.
26814
bba3e508
SM
26815 * charset.h (enum define_charset_arg_index):
26816 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
26817 charset_arg_superset.
26818 (enum charset_attr_index): Delete charset_parents and add
26819 charset_subset and charset_superset.
26820 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
26821 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
26822 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
26823 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
26824 (CHARSET_SUPERSET): New macros.
26825 (charset_work): Extern it.
26826 (ENCODE_CHAR): Use charset_work.
26827 (CHAR_CHARSET_P): Adjust for the change of encoder format.
26828 (map_charset_chars): Extern it.
26829
26830 * charset.c (load_charset_map): Set the default value of encoder
26831 and deunifier char-tables to nil.
bba3e508
SM
26832 (map_charset_chars): Change argument. Change callers.
26833 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
26834 (Fmap_charset_chars): New optional args from_code and to_code.
26835 (Fdefine_charset_internal): Adjust for the change of
26836 `define-charset' (:parents -> :subset or :superset).
26837 (charset_work): New variable.
26838 (encode_char, syms_of_charset): Adjust for the change of
26839 Fdefine_charset_internal.
26840 (Ffind_charset_string): Setup the vector `charsets' correctly.
26841
bba3e508
SM
26842 * chartab.c (sub_char_table_ref_and_range): New arg default.
26843 Fix the previous change.
aac0c6e3
MR
26844 (char_table_ref_and_range): Adjust for the above change.
26845 (map_sub_char_table_for_charset): New function.
26846 (map_char_table_for_charset): New function.
26847
26848 * keymap.c (describe_vector): Handle a char-table directly here.
26849 (describe_char_table): Delete.
26850
26851 * lisp.h (map_charset_chars): Delete.
26852
268532008-02-01 Dave Love <fx@gnu.org>
26854
26855 * fns.c (count_combining): Comment out (unused).
26856 (Flocale_codeset): New.
26857 (syms_of_fns): Defsubr it.
26858
26859 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
26860 (size_t): Remove.
26861
268622008-02-01 Dave Love <fx@gnu.org>
26863
26864 * Makefile.in (chartab.o): Depend on charset.h.
26865
268662008-02-01 Kenichi Handa <handa@m17n.org>
26867
26868 * character.c (syms_of_character): Set the default value of
26869 Vprintable_chars to Qnil.
26870
268712008-02-01 Dave Love <fx@gnu.org>
26872
26873 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
26874
268752008-02-01 Kenichi Handa <handa@m17n.org>
26876
26877 * charset.c (load_charset_map): Handle the case that from < to
26878 correctly.
26879
26880 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
26881 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
26882 Pay attention to raw-8-bit chars.
26883
268842008-02-01 Kenichi Handa <handa@m17n.org>
26885
26886 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
26887 It is not bytecompiled now.
26888
26889 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
26890 (charset_jisx0208): New variables.
26891 (Fdefine_charset_internal): Setup them if appropriate.
26892 (init_charset_once): Initialize them to -1.
26893
26894 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
26895 (charset_jisx0208): Extern them.
26896
26897 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
26898 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26899 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
26900 (setup_iso_safe_charsets): Fix arguments to Fassq.
26901 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
26902 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
26903 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
26904 (encode_coding_iso_2022): Change the 1st arg to
26905 ENCODE_ISO_CHARACTER to a variable.
26906
269072008-02-01 Kenichi Handa <handa@m17n.org>
26908
26909 * charset.h (enum define_charset_arg_index): New enums
26910 charset_arg_min_code and charset_arg_max_code.
26911 (struct charset): New member char_index_offset.
26912
26913 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
26914 Take charset->char_index_offset into account.
26915 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
26916 args[charset_arg_max_code]. Setup charset.char_index_offset.
26917 (syms_of_charset): Fix args to Fdefine_charset_internal.
26918
269192008-02-01 Dave Love <fx@gnu.org>
26920
26921 * coding.c (decode_coding_utf_8): Reject overlong sequences.
26922
269232008-02-01 Dave Love <fx@gnu.org>
26924
26925 * coding.c: Doc fixes.
26926 (Fcoding_system_aliases): Fix return value.
26927 (Qmac): Remove (duplicated) definition.
26928
269292008-02-01 Dave Love <fx@gnu.org>
26930
362654a6
JB
26931 * charset.c (Fcharset_priority_list, Fset_charset_priority):
26932 New functions.
aac0c6e3
MR
26933
26934 * character.c (Fstring): Doc fix.
26935
26936 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
26937
362654a6 26938 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
26939 (font-encoding-alist): Doc fix.
26940
269412008-02-01 Dave Love <fx@gnu.org>
26942
26943 * term.c (costs_set): Declare static, non-initialized for pcc.
26944 (encode_terminal_code): Remove unused var.
26945
26946 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
26947 for K&R.
26948
26949 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
26950
26951 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
26952 (suffixes): Move out of make_subsidiaries for K&R.
26953
26954 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
26955
26956 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
26957
269582008-02-01 Dave Love <fx@gnu.org>
26959
26960 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
26961
26962 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
26963
269642008-02-01 Yong Lu <lyongu@asia-infonet.com>
26965
26966 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
26967
26968 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
26969
269702008-02-01 Kenichi Handa <handa@m17n.org>
26971
26972 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
26973 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
26974
269752008-02-01 Kenichi Handa <handa@m17n.org>
26976
26977 * coding.c (decode_coding_charset): Adjust for the change of
26978 Fdefine_coding_system_internal.
26979 (Fdefine_coding_system_internal): For a coding system of
26980 `charset' type, store a list of charset IDs in
26981 `charset_attr_charset_valids' element of coding attributes.
26982
269832008-02-01 Kenichi Handa <handa@m17n.org>
26984
26985 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
26986 (emacs_mule_char): New arg src. Delete arg `composition'.
26987 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
26988 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
26989 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
26990 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
26991 (DECODE_EMACS_MULE_21_COMPOSITION):
26992 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
26993 sequence.
26994 (decode_coding_emacs_mule): Handle composition correctly. Rewind
26995 `src' and `consumed_chars' correctly before calling emacs_mule_char.
26996 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
26997 and alt&rule composition.
26998 (decode_coding_iso_2022): Handle composition correctly.
26999 (init_coding_once): Setup emacs_mule_bytes for private charsets.
27000
27001 * charset.c (Fdefine_charset_internal): Fix bug for the case of
27002 re-defining a charset. If the charset has :emacs-mule-id, setup
27003 emacs_mule_bytes.
27004 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
27005
270062008-02-01 Kenichi Handa <handa@m17n.org>
27007
27008 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
27009 (encode_coding_big5, encode_coding_charset): If coding requires safe
27010 encoding, produce a character specified by
27011 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
27012
270132008-02-01 Dave Love <fx@gnu.org>
27014
27015 * xterm.c (XSetIMValues): Declare.
27016
27017 * process.c: Conditionally include sys/wait.h, pty.h.
27018
27019 * print.c (print_object): Fix print format for 64-bit systems.
27020
27021 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
27022
27023 * buffer.c (emacs_strerror): Declare.
27024
27025 * fontset.c (Fclear_face_cache): Declare.
27026 (accumulate_font_info): Comment-out (unused).
27027 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
27028 variables.
27029
27030 * character.h (string_escape_byte8): Declare.
27031
bba3e508
SM
27032 * charset.c (load_charset_map, load_charset_map_from_file):
27033 Remove unused vars.
aac0c6e3
MR
27034 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
27035 (Fmap_charset_chars): Doc fix.
27036
27037 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
27038 (Fset_coding_system_priority, Fset_coding_system_priority)
27039 (Fdefine_coding_system_internal): Doc fix.
27040
270412008-02-01 Dave Love <fx@gnu.org>
27042
27043 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
27044
270452008-02-01 Kenichi Handa <handa@m17n.org>
27046
27047 * character.c (string_escape_byte8): Make multibyte string with
27048 correct size.
27049
27050 * charset.c (Fmake_char): Delete unnecessary code.
27051
270522008-02-01 Kenichi Handa <handa@m17n.org>
27053
27054 * xfns.c (x_encode_text): Allocate coding.destination here, and
27055 call encode_coding_object with dst_object Qnil.
27056
27057 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
27058 multibyte form correctly.
27059
27060 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
27061 against Vfont_encoding_alist.
27062
27063 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
27064 handling of charset list.
27065 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
27066 (decode_coding_object): Move point to coding->dst_pos before
27067 calling post-read-conversion function.
27068 (encode_coding_object): Give correct arguments to
27069 pre-write-conversion. Ignore the return value of
27070 pre-write-conversion function. Pay attention to the case that
27071 pre-write-conversion changes the current buffer. If dst_object is
27072 Qt, even if coding->src_bytes is zero, allocate at least one byte
27073 to coding->destination.
27074
27075 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
27076
27077 * charset.c (Fmake_char): Make it more backward compatible.
27078 (Fmap_charset_chars): Fix docstring.
27079
270802008-02-01 Dave Love <fx@gnu.org>
27081
27082 * coding.c: Doc fixes.
27083 (Fdefine_coding_system_alias): Use names, not symbols, in
27084 coding-system-alist.
27085
270862008-02-01 Kenichi Handa <handa@m17n.org>
27087
27088 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
27089 of calling free_realized_face.
27090
270912008-02-01 Yong Lu <lyongu@asia-infonet.com>
27092
27093 * charset.c (read_hex): Don't treat SPC as a comment starter.
27094 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
27095 (Fdecode_char): Fix typo.
27096
270972008-02-01 Kenichi Handa <handa@m17n.org>
27098
27099 * charset.h (struct charset): New member `code_space_mask'.
27100
27101 * coding.c (coding_set_source): Delete the local variable beg_byte.
27102 (encode_coding_charset, Fdefine_coding_system_internal):
27103 Delete the local variable charset.
bba3e508
SM
27104 (Fdefine_coding_system_internal):
27105 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
27106
27107 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
27108 member to check if CODE is valid or not.
27109 (Fdefine_charset_internal): Initialize `code_space_mask' member.
27110 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
27111 is within the range of charset->min_code and carset->max_code.
27112
271132008-02-01 Dave Love <fx@gnu.org>
27114
27115 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
27116
27117 * dispextern.h (generate_ascii_font): Fix return type.
27118
27119 * xfaces.c (generate_ascii_font): Fix arg declaration.
27120
27121 * coding.c (coding_inherit_eol_type)
27122 (Fset_terminal_coding_system_internal)
27123 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
27124
271252008-02-01 Kenichi Handa <handa@m17n.org>
27126
bba3e508
SM
27127 * coding.c (decode_coding_charset, encode_coding_charset):
27128 Handle multiple charsets correctly.
aac0c6e3
MR
27129
271302008-02-01 Kenichi Handa <handa@m17n.org>
27131
27132 * search.c (boyer_moore): Fix handling of multibyte character
27133 translation.
27134
27135 * xdisp.c (display_mode_element): When the variable `elt' is
27136 changed, update `this' and `lisp_string'.
27137
271382008-02-01 Kenichi Handa <handa@m17n.org>
27139
27140 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
27141
27142 * callproc.c (Fcall_process): Be sure to give the current buffer
27143 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
27144
27145 * charset.c (struct charset_map_entries): New struct.
27146 (load_charset_map): Rename from parse_charset_map. New args
27147 entries and n_entries. Change caller.
27148 (load_charset_map_from_file): Rename from load_charset_map.
27149 Change caller. New arg control_flag. Call load_charset_map at
27150 the tail.
27151 (load_charset_map_from_vector): New function.
27152 (Fdefine_charset_internal): Setup charset.compact_codes_p.
27153 (encode_char): If the charset is compact, change a character index
27154 to a code point.
27155
27156 * coding.c (coding_alloc_by_making_gap): Check the case that the
27157 source and destination are the same correctly.
27158 (decode_coding_raw_text): Set coding->consumed_char and
27159 coding->consumed to 0.
27160 (produce_chars): If coding->chars_at_source is nonzero, update
27161 coding->consumed_char and coding->consumed before calling
27162 alloc_destination.
27163 (Fdefine_coding_system_alias): Register ALIAS in
27164 Vcoding_system_alist.
27165 (syms_of_coding): Define `no-conversion' coding system at the tail.
27166
27167 * fileio.c (Finsert_file_contents): Set coding_system instead of
27168 val. If the current buffer is multibyte, always call
27169 decode_coding_gap.
27170
27171 * xfaces.c (try_font_list): Give higher priority to fontset's
27172 family than face's family.
27173
271742008-02-01 Kenichi Handa <handa@m17n.org>
27175
27176 * callproc.c (Fcall_process): Be sure to give the current buffer
27177 to decode_coding_c_string.
27178
27179 * xfaces.c (try_font_list): Give a family specified in a fontset
27180 higher priority than a family specified in a face.
27181
271822008-02-01 Kenichi Handa <handa@m17n.org>
27183
27184 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
27185 Fix arguments to insert_from_buffer.
27186
27187 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
27188
271892008-02-01 Kenichi Handa <handa@m17n.org>
27190
27191 * coding.c (produce_chars): Set the variable `multibytep' correctly.
27192 (decode_coding_gap): Set coding->dst_multibyte correctly.
27193
271942008-02-01 Kenichi Handa <handa@m17n.org>
27195
27196 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
27197 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
27198 (encode_coding_utf_16): Substitute coding->default_char for
27199 non-Unicode characters.
27200 (decode_coding): Don't call record_insert here.
27201 (setup_coding_system): Initialize `surrogate' of
27202 coding->spec.utf_16 to 0.
27203 (EMIT_ONE_BYTE): Fix for multibyte case.
27204
27205 * insdel.c (insert_from_gap): Call record_insert.
27206
272072008-02-01 Kenichi Handa <handa@m17n.org>
27208
27209 * casefiddle.c (casify_region): Fix multibyte case.
27210
27211 * character.c (c_string_width): Add return type `int'.
27212 (char_string_with_unification): Delete arg ADVANCED.
27213
27214 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
27215 (CHAR_STRING): Adjust for the change of char_string_with_unification.
27216 (CHAR_STRING_ADVANCE): Make it do-while statement.
27217
27218 * chartab.c (sub_char_table_set_range): Optimize for the case
27219 DEPTH == 3. Add workaround code for a GCC optimization bug.
27220
27221 * charset.c (parse_charset_map): Remove an unused variable.
27222
27223 * coding.c: Delete unused variables.
27224
27225 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
27226 earlier. If inserted is zero and the coding system doesn't
27227 require flushing, don't call decode_coding_gap.
27228
27229 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
27230
272312008-02-01 Kenichi Handa <handa@m17n.org>
27232
27233 The following changes are for using Unicode as an internal
27234 character model, and use UTF-8 format for buffer/string
27235 representation.
27236
27237 * .gdbinit (xchartable): Adjust for the change of char table structure.
27238 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
27239
27240 * Makefile.in (obj): Add character.o and chartab.o.
27241 (lisp, shortlisp): Remove utf-8.elc.
27242 (*.o): For many files, change dependency on charset.h to
27243 character.h, and add dependency on character.h.
27244 (character.o, chartab.o): New targets.
27245
27246 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
27247 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
27248 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
27249 of "charset.h".
27250
27251 * dired.c, filelock.c: Include "character.h".
27252
27253 * alloc.c: Include "character.h" instead of "charset.h".
27254 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
27255 (syms_of_alloc): Remove defsubr for Smake_char_table.
27256
27257 * buffer.c: Include "character.h" instead of "charset.h", don't
27258 include "coding.h".
27259 (Fset_buffer_multibyte): Adjust for UTF-8.
27260
27261 * buffer.h: EXFUN Fbuffer_live_p.
27262
27263 * callproc.c: Include "character.h" instead of "charset.h".
27264 (Fcall_process): Big change for the new code-conversion APIs.
27265
27266 * casetab.c: Include "character.h" instead of "charset.h".
27267 (set_canon, set_identity, shuffle): Adjust for the new
27268 map_char_table spec.
27269 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
27270 accessing the char table structure.
27271
27272 * chartab.c: New file that implements char table.
27273
27274 * category.c: Include "character.h".
27275 (copy_category_entry): New function.
27276 (copy_category_table): Call map_char_table and copy_category_entry.
27277 (Fmake_category_table): Initialize all top-level slots.
27278 (char_category_set): New function.
27279 (modify_lower_category_set): Delete.
27280 (Fmodify_category_entry): Call char_table_ref_and_range.
27281
27282 * category.h (CATEGORY_SET): Just call char_category_set.
27283
27284 * ccl.c: Include "character.h".
27285 (Qccl, Qcclp): New variables.
27286 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
27287 it's less than 256.
27288 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
27289 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
27290 and DST type.
27291 (ccl_driver): Change types of argument, adjust code accordingly.
27292 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
27293 ccl_driver.
27294 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
27295
27296 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
27297 New members src_multibyte, dst_multibyte, consumed, and produced.
27298 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
27299 (CODING_SPEC_CCL_PROGRAM): New macro.
27300 (ccl_driver): Update prototype.
27301 (Qccl, Qcclp, Fccl_program_p): Extern them.
27302 (CHECK_CCL_PROGRAM): New macro.
27303
27304 * character.c, character.h, chartab.c: New files.
27305
27306 * charset.c: Mostly re-written. Move character and multibyte sequence
27307 handling codes to character.c.
27308
27309 * charset.h: Mostly re-written. Move character and multibyte sequence
27310 handling codes to character.h.
27311
27312 * coding.c, coding.h: Mostly re-written.
27313
27314 * composite.c: Include "character.h" instead of "charset.h".
27315 (CHAR_WIDTH): Move to character.h.
27316 (HASH_KEY, HASH_VALUE): Delete.
27317
27318 * composite.h (enum composition_method): Change order of enumeration
27319 symbols.
27320
27321 * data.c: Include "character.h" instead of "charset.h".
27322 (Faref): Call CHAR_TABLE_REF for a char table.
27323 (Faset): Call CHAR_TABLE_SET for a char table.
27324
27325 * dispextern.h (free_realized_face, check_face_attribytes)
27326 (generate_ascii_font): Extern them.
27327 (free_realized_multibyte_face): Delete extern.
27328
27329 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
27330 table structure.
27331
27332 * editfns.c: Include "character.h" instead of "charset.h".
27333 (Fchar_to_string): Always call CHAR_STRING.
27334
27335 * emacs.c (main): Call init_charset_once, init_charset,
27336 syms_of_chartab, and syms_of_character.
27337
27338 * fileio.c: Include "character.h" instead of "charset.h".
27339 (Finsert_file_contents): Big change for the new code-conversion API.
27340 (choose_write_coding_system, Fwrite_region): Likewise.
27341 (build_annotations_2): Delete.
27342 (e_write): Big change for the new code-conversion API.
27343
27344 * fns.c: Include "character.h" instead of "charset.h".
27345 (copy_sub_char_table): Move to chartab.c.
27346 (Fcopy_sequence): Call copy_char_table for a char table.
27347 (concat): Delete codes calling count_multibyte.
27348 (string_char_to_byte, string_byte_to_char): Adjust for the new
27349 multibyte form.
27350 (internal_equal): Adjust for the change of char table structure.
27351 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
27352 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
27353 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
27354 (char_table_translate, optimize_sub_char_table)
27355 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
27356 chartab.c.
27357 (char_table_ref_and_index): Delete.
27358 (HASH_KEY, HASH_VALUE): Move to lisp.h.
27359 (Fmd5): Call preferred_coding_system instead of accessing
27360 Vcoding_category_list. Adjust for the new code-conversion API.
27361 (syms_of_fns): Move defsubr for char table related functions to
27362 chartab.c.
27363
27364 * fontset.c: Mostly re-written.
27365
27366 * fontset.h (struct font_info): Change type of the member encoding_type.
27367 (enum FONT_SPEC_INDEX): New enum.
27368 (fontset_font_pattern, fs_load_font): Update prototype.
27369 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
27370
27371 * indent.c: Include "character.h" instead of "charset.h".
27372 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
27373
27374 * insdel.c: Include "character.h" instead of "charset.h".
27375 (copy_text): Don't refer to Vnonascii_translation_table.
27376 (insert_from_gap): New function.
27377
27378 * keyboard.c: Include "character.h" instead of "charset.h".
27379 (command_loop_1): Never call direct_output_forward_char before
27380 a non-ASCII character.
27381 (read_char): If Vkeyboard_translate_table is a char table, always
27382 translate a character.
27383
27384 * keymap.c: Include "character.h".
27385 (store_in_keymap): Handle the case that IDX is a cons.
27386 (Fdefine_key): Handle the case that KEY is a cons and the car part
27387 is also a cons (range).
27388 (push_key_description): Adjust for the new character code.
27389 (describe_vector): Call describe_char_table for a char table.
27390 (describe_char_table): New function.
27391
27392 * keymap.h (describe_char_table): Extern it.
27393
27394 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
27395 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
27396 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
27397 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
27398 Delete.
27399 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
27400 structure.
27401 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
27402 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
27403 (CHARTAB_SIZE_BITS_3): New macros.
27404 (chartab_size): Extern it.
27405 (struct Lisp_Char_Table): Re-design.
27406 (struct Lisp_Sub_Char_Table): New structure.
27407 (HASH_KEY, HASH_VALUE): Move from fns.c.
27408 (CHARACTERBITS): Define as 22.
27409 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
27410 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
27411 (GC_SUB_CHAR_TABLE_P): New macro.
27412 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 27413 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
27414 (init_character_once, syms_of_character, init_charset)
27415 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
27416
27417 * lread.c: Include "character.h".
27418 (read_multibyte): New arg NBYTES.
27419 (read_escape): Change the meaning of returned *BYTEREP.
27420 (to_multibyte): Delete.
27421 (read1): Adjust the handling of char table and string.
27422
27423 * print.c: Include "character.h" instead of "charset.h".
27424 (print_string): Convert 8-bit raw bytes to octal form by
27425 string_escape_byte8.
27426 (print_object): Adjust for the new multibyte form. Print 8-bit
27427 raw bytes always in octal form. Handle sub char table correctly.
27428
27429 * process.c: Include "character.h" instead of "charset.h".
27430 (read_process_output, send_process): Adjust for the new
27431 code-conversion API.
27432
27433 * puresize.h (BASE_PURESIZE): Increase.
27434
27435 * regex.c: Include "character.h" instead of "charset.h".
27436 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
27437 (regex_compile): Accept a range whose starting and ending
27438 character have different leading bytes.
27439 (analyse_first): Adjust for the above change.
27440
27441 * search.c: Include "character.h" instead of "charset.h".
27442 (search_buffer, boyer_moore): Adjust for the new multibyte form.
27443 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
27444
27445 * syntax.c: Include "character.h" instead of "charset.h".
27446 (syntax_parent_lookup): Delete.
27447 (Fmodify_syntax_entry): Accept a cons as CHAR.
27448 (skip_chars): Adjust for the new multibyte form.
27449 (init_syntax_once): Call char_table_set_range instead of directly
27450 accessing the structure of a char table.
27451
27452 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
27453 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
27454 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
27455 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
27456
27457 * term.c: Include "buffer.h" and "character.h".
27458 (encode_terminal_code, write_glyphs): Adjust for the new
27459 code-conversion API.
27460 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
27461
27462 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
27463
27464 * xdisp.c: Include "character.h".
27465 (get_next_display_element): Adjust for the new multibyte form.
27466 (disp_char_vector): Adjust for the new char table structure.
27467 (decode_mode_spec_coding): Adjust for the new structure of
27468 coding system.
27469 (decode_mode_spec): Adjust for the new code-conversion API.
27470
27471 * xfaces.c: Include "character.h" instead of "charset.h".
27472 (load_face_font): Adjust for the change of choose_face_font and
27473 FS_LOAD_FONT.
27474 (generate_ascii_font): New function.
27475 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
27476 (set_font_frame_param): Adjust for the change of choose_face_font.
27477 (free_realized_face): Make it public.
27478 (free_realized_faces_for_fontset): Rename from
27479 free_realized_multibyte_face. Free also faces realized for ASCII.
27480 (choose_face_font): Change arguments. Adjust for the change of
27481 fontset_font_pattern and FS_LOAD_FONT.
27482
27483 * xfns.c: Include "character.h".
27484 (x_encode_text): Adjust for the new code-conversion API.
27485
27486 * xselect.c: Don't include "charset.h".
27487 (selection_data_to_lisp_data): Adjust for the new code conversion API.
27488
27489 * xterm.c: Include "character.h".
27490 (x_encode_char): New argument CHARSET. Change caller.
27491 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
27492 Call ENCODE_CHAR instead of SPLIT_CHAR.
27493 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
27494 CHAR_WIDTH instead of CHARSET_WIDTH.
27495 (XTread_socket): Adjust for the new code-conversion API.
27496 (x_new_font): Adjust for the change of FS_LOAD_FONT.
27497 (x_load_font): Adjust for the change of struct font.
27498
274992008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
27500
27501 * xfaces.c (face_at_buffer_position): Remove unused vars.
27502
275032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
27504
27505 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
27506 Fix overflow checking.
27507
275082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
27509
27510 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
27511 Cancel previous change.
27512
275132008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
27514
27515 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
27516 ccl->eight_bit_control. Fix check for buffer overflow.
27517 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
27518 (ccl_driver): Initialize extra_bytes to 0.
27519
275202008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
27521
27522 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
27523 return it ORed with ctrl_modifier.
27524
275252008-01-29 Miles Bader <miles@gnu.org>
27526
27527 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
27528
275292008-01-28 Jason Rumney <jasonr@gnu.org>
27530
27531 * w32.c (stat): Don't double check for networked drive.
27532
275332008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
27534
27535 * window.c (run_window_configuration_change_hook): New function.
27536 Code extracted from set_window_buffer. Set the selected frame.
27537 (set_window_buffer): Use it.
27538 * window.h (run_window_configuration_change_hook): Declare.
27539 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
27540
27541 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
27542
275432008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
27544
27545 * Makefile.in: Remove references to unused macros.
27546
275472008-01-26 Eli Zaretskii <eliz@gnu.org>
27548
27549 * w32.c (g_b_init_get_sid_sub_authority)
27550 (g_b_init_get_sid_sub_authority_count): New static variables.
27551 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
27552 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
27553 (init_user_info): Use them to retrieve uid and gid.
27554 Use 500/513, the Windows defaults, as Administrator's uid/gid.
27555 (fstat): Use pw_uid and pw_gid from the_passwd structure for
27556 st_uid and st_gid of the file.
27557
275582008-01-26 Jason Rumney <jasonr@gnu.org>
27559
27560 * w32.c (logon_network_drive): New function.
27561 (stat): Use it.
27562
275632008-01-26 Chong Yidong <cyd@stupidchicken.com>
27564
27565 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
27566 invisible text covered with an ellipsis.
27567
275682008-01-25 Richard Stallman <rms@gnu.org>
27569
27570 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
27571 jump back to beginning. Move some other initializations after that.
27572 (Qwindow_text_change_functions, Vwindow_text_change_functions):
27573 New variables.
27574 (syms_of_xdisp): Init them.
27575
27576 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
27577
27578 * buffer.c (reset_buffer_local_variables):
27579 Implement `permanent-local-hook'.
27580 (Qpermanent_local_hook): New variable.
27581 (syms_of_buffer): Init and staticpro it.
27582
275832008-01-25 Michael Albinus <michael.albinus@gmx.de>
27584
27585 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
27586
275872008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
27588
27589 * fns.c (Fclrhash): Return TABLE.
27590
275912008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27592
27593 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
27594 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
27595 is set even without positional changes.
27596 (x_scroll_bar_clear): Set bar->redraw_needed_p.
27597
27598 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
27599
276002008-01-23 Jason Rumney <jasonr@gnu.org>
27601
27602 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
27603
27604 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
27605 the unicode range available in MULE by locale-coding-system.
27606 Improve dbcs lead byte detection. Set event timestamp and modifiers
27607 earlier.
27608
276092008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27610
27611 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
27612 [MAC_OSX] (init_mac_osx_environment): Initialize it.
27613 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
27614 when used on child processes.
27615
276162008-01-21 Michael Albinus <michael.albinus@gmx.de>
27617
27618 * dbusbind.c (Fdbus_method_return_internal): Rename from
27619 Fdbus_method_return.
27620 (Fdbus_unregister_object): Move to dbus.el.
27621 (Fdbus_call_method, Fdbus_method_return_internal)
27622 (Fdbus_send_signal): Improve debug messages.
27623
276242008-01-20 Martin Rudalics <rudalics@gmx.at>
27625
27626 * undo.c (undo_inhibit_record_point): New variable.
27627 (syms_of_undo): Initialize it.
27628 (record_point): Don't record point when undo_inhibit_record_point
27629 is set.
27630
276312008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
27632
27633 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
27634
27635 * xdisp.c (Qauto_hscroll_mode): New var.
27636 (syms_of_xdisp): Initialize it.
27637 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
27638 window's buffer.
27639 (hscroll_windows): Don't check automatic_hscrolling_p here.
27640
27641 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
27642 vscroll if we're setting window-buffer to the value it already has.
27643
276442008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
27645
27646 * m/intel386.h: Remove references to XENIX.
27647
276482008-01-17 Andreas Schwab <schwab@suse.de>
27649
27650 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
27651 instead of HAVE_X86_64_LIB64_DIR.
27652 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
27653
276542008-01-17 Glenn Morris <rgm@gnu.org>
27655
27656 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
27657 to HAVE_X86_64_LIB64_DIR.
27658
276592008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
27660
27661 * s/irix3-3.h:
27662 * s/irix4-0.h:
27663 * s/386-ix.h:
27664 * s/domain.h:
27665 * s/hpux9-x11r4.h:
27666 * s/hpux9shxr4.h: Remove files for systems no longer supported.
27667
27668 * sysdep.c: Remove code containing references to symbols defined
27669 by unsupported systems.
27670
276712008-01-16 Glenn Morris <rgm@gnu.org>
27672
27673 * coding.c (select-safe-coding-system-function): Doc fix.
27674
276752008-01-15 Glenn Morris <rgm@gnu.org>
27676
27677 * config.in: Revert 2008-01-13 change: this is a generated file.
27678
276792008-01-13 Tom Tromey <tromey@redhat.com>
27680
27681 * lisp.h: Fix typo.
27682
276832008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
27684
27685 * m/sequent-ptx.h:
27686 * m/sequent.h:
27687 * s/ptx.h:
27688 * s/ptx4-2.h:
27689 * s/ptx4.h: Remove files for systems no longer supported.
27690
27691 * callproc.c (Fcall_process): Fix previous change.
27692
276932008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
27694
27695 * unexsunos4.c: Remove file, system not supported anymore.
27696
27697 * m/mips.h:
27698 * m/intel386.h:
27699 * callproc.c:
27700 * config.in:
27701 * ecrt0.c:
27702 * emacs.c:
27703 * fileio.c:
27704 * frame.c:
27705 * getpagesize.h:
27706 * keyboard.c:
27707 * lread.c:
27708 * process.c:
27709 * puresize.h:
27710 * sysdep.c:
27711 * systty.h:
27712 * syswait.h:
27713 * unexec.c:
27714 * xdisp.c:
27715 * alloc.c: Remove code containing references to symbols defined by
27716 unsupported systems.
27717
277182008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
27719
27720 * coding.c (detect_coding_mask): Fix previous change.
27721
277222008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
27723
27724 * coding.c (detect_coding_iso2022): New arg
27725 latin_extra_code_state. Allow Latin extra codes only
27726 when *latin_extra_code_state is nonzero.
27727 (detect_coding_mask): If there is a NULL byte, detect the encoding
27728 as UTF-16 or binary. If Latin extra codes exist, detect the
27729 encoding as ISO-2022 only when there's no other proper encoding is
27730 found.
27731
277322008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27733
27734 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
27735 #ifdef MAC_OS.
27736
277372008-01-08 Richard Stallman <rms@gnu.org>
27738
27739 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
27740
277412008-01-06 Nick Roberts <nickrob@snap.net.nz>
27742
27743 * keyboard.c (parse_menu_item): Don't enclose key bindings on
27744 menu bar in parentheses.
27745
277462008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
27747
27748 * m/7300.h:
27749 * m/acorn.h:
27750 * m/alliant-2800.h:
27751 * m/alliant.h:
27752 * m/alliant1.h:
27753 * m/alliant4.h:
27754 * m/altos.h:
27755 * m/amdahl.h:
27756 * m/apollo.h:
27757 * m/att3b.h:
27758 * m/aviion-intel.h:
27759 * m/aviion.h:
27760 * m/celerity.h:
27761 * m/clipper.h:
27762 * m/cnvrgnt.h:
27763 * m/convex.h:
27764 * m/cydra5.h:
27765 * m/delta88k.h:
27766 * m/dpx2.h:
27767 * m/dual.h:
27768 * m/elxsi.h:
27769 * m/f301.h:
27770 * m/gould-np1.h:
27771 * m/gould.h:
27772 * m/i860.h:
27773 * m/ibmps2-aix.h:
27774 * m/ibmrt-aix.h:
27775 * m/ibmrt.h:
27776 * m/irist.h:
27777 * m/is386.h:
27778 * m/isi-ov.h:
27779 * m/mega68.h:
27780 * m/mg1.h:
27781 * m/news-r6.h:
27782 * m/news-risc.h:
27783 * m/news.h:
27784 * m/nh3000.h:
27785 * m/nh4000.h:
27786 * m/ns16000.h:
27787 * m/ns32000.h:
27788 * m/nu.h:
27789 * m/orion.h:
27790 * m/orion105.h:
27791 * m/paragon.h:
27792 * m/pfa50.h:
27793 * m/plexus.h:
27794 * m/pyramid.h:
27795 * m/pyrmips.h:
27796 * m/sh3el.h:
27797 * m/sps7.h:
27798 * m/sr2k.h:
27799 * m/stride.h:
27800 * m/sun1.h:
27801 * m/sun2.h:
27802 * m/sun3-68881.h:
27803 * m/sun3-fpa.h:
27804 * m/sun3-soft.h:
27805 * m/sun3.h:
27806 * m/sun386.h:
27807 * m/symmetry.h:
27808 * m/tad68k.h:
27809 * m/tahoe.h:
27810 * m/targon31.h:
27811 * m/tek4300.h:
27812 * m/tekxd88.h:
27813 * m/tower32.h:
27814 * m/tower32v3.h:
27815 * m/ustation.h:
27816 * m/wicat.h:
27817 * m/xps100.h:
27818 * s/cxux.h:
27819 * s/cxux7.h:
27820 * s/dgux.h:
27821 * s/dgux4.h:
27822 * s/dgux5-4-3.h:
27823 * s/dgux5-4r2.h:
27824 * s/esix.h:
27825 * s/esix5r4.h:
27826 * s/hiuxmpp.h:
27827 * s/hiuxwe2.h:
27828 * s/iris3-5.h:
27829 * s/iris3-6.h:
27830 * s/isc2-2.h:
27831 * s/isc3-0.h:
27832 * s/isc4-0.h:
27833 * s/isc4-1.h:
27834 * s/newsos5.h:
27835 * s/newsos6.h:
27836 * s/osf1.h:
27837 * s/osf5-0.h:
27838 * s/riscix1-1.h:
27839 * s/riscix12.h:
27840 * s/sco4.h:
27841 * s/sco5.h:
27842 * s/sunos4-0.h:
27843 * s/sunos4-1.h:
27844 * s/sunos413.h:
27845 * s/sunos4shr.h:
27846 * s/umax.h:
27847 * s/unipl5-2.h:
27848 * s/xenix.h:
27849 * cxux-crt0.s:
27850 * unexapollo.c:
27851 * unexconvex.c:
27852 * unexenix.c:
27853 * unexsni.c: Remove files for systems no longer supported.
27854
27855 * m/intel386.h: Remove references to unsupported systems.
27856
27857 * w32.c (get_emacs_configuration): Remove reference to i860.
27858
27859 * sysdep.c: Remove dead code.
27860
278612008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
27862
27863 * s/rtu.h:
27864 * m/masscomp.h: Remove files. Platform is obsolete.
27865
278662008-01-04 Michael Albinus <michael.albinus@gmx.de>
27867
27868 * dbusbind.c (Fdbus_method_return): New function.
27869 (xd_read_message): Add the serial number to the event.
27870 (Fdbus_register_method): Activate the function.
27871
278722008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
27873
27874 * keyboard.c (read_key_sequence): Fix typo.
27875
278762008-01-03 Michael Albinus <michael.albinus@gmx.de>
27877
27878 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
27879 (xd_signature, xd_append_arg): Handle element type detection for
27880 empty arrays.
27881 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
27882 SDATA () calls; this must be solved more general.
27883 (Fdbus_register_signal): Use SBYTES instead of strlen.
27884
278852008-01-03 Magnus Henoch <magnus@zemdatav>
27886
27887 * dbusbind.c (xd_append_arg): Use unsigned char instead of
27888 unsigned int for byte values (necessary for big-endian platform).
27889 (Fdbus_call_method): Handle the case of no returned arguments.
27890
278912007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
27892
27893 * dbusbind.c (xd_read_message): Use non-static input_event struct.
27894
278952007-12-31 Magnus Henoch <mange@freemail.hu>
27896
27897 * dbusbind.c (xd_signature): Signature of variant is just "v".
27898
278992007-12-30 Michael Albinus <michael.albinus@gmx.de>
27900
27901 * dbusbind.c: Fix several errors and compiler warnings.
27902 Reported by Tom Tromey <tromey@redhat.com>.
27903 (XD_ERROR, XD_DEBUG_MESSAGE)
27904 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
27905 (xd_append_arg): Part for basic D-Bus types rewritten.
27906 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
27907 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
27908 appropriate.
27909 (xd_read_message): Return Qnil. Don't signal an error; it is not
27910 useful during event reading.
27911 (Fdbus_register_signal): Signal an error if the check for
27912 FUNCTIONP fails.
27913 (Fdbus_register_method): New function. The implementation is not
27914 complete, the call of the function signals an error therefore.
27915 (Fdbus_unregister_object): New function, renamed from
27916 Fdbus_unregister_signal. The initial check signals an error, if
27917 the object is not well formed.
27918
279192007-12-30 Richard Stallman <rms@gnu.org>
27920
27921 * textprop.c (get_char_property_and_overlay):
27922 Signal error if POSITION is out of range in a buffer.
27923
279242007-12-29 Martin Rudalics <rudalics@gmx.at>
27925
27926 * w32fns.c (Fx_create_frame): Make copy of frame parameters
27927 because the original parameters are in pure storage now.
27928
279292007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27930
27931 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
27932
279332007-12-22 Eli Zaretskii <eliz@gnu.org>
27934
27935 * callint.c (syms_of_callint) <command-history>: Add reference to
27936 history-length in the doc string.
27937
279382007-12-17 Jason Rumney <jasonr@gnu.org>
27939
27940 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
27941 before passing as wParam.
27942
279432007-12-22 Michael Albinus <michael.albinus@gmx.de>
27944
27945 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
27946 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
27947 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
27948 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
27949 as number.
27950 (Fdbus_call_method): Fix docstring.
27951
279522007-12-21 Michael Albinus <michael.albinus@gmx.de>
27953
27954 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27955 New macros.
27956 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
27957 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
27958 Simplify.
27959 (xd_signature): New function.
27960 (xd_append_arg): Compute also signatures. Major rewrite.
27961 (xd_retrieve_arg): Make debug messages friendly.
27962 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
27963 Check for signatures of arguments.
27964
279652007-12-19 Michael Albinus <michael.albinus@gmx.de>
27966
27967 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27968 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
27969 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
27970 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
27971 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
27972 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
27973 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
27974 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
27975 (xd_retrieve_value): Remove. Functionality included in ...
27976 (xd_append_arg): New function.
27977 (Fdbus_call_method, Fdbus_send_signal): Apply it.
27978
279792007-12-16 Michael Albinus <michael.albinus@gmx.de>
27980
27981 * dbusbind.c (top): Include <stdio.h>.
27982 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
27983 dbus_message_new_method_call and dbus_message_new_signal.
27984 (Fdbus_register_signal): Rename unique_name to uname.
27985 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
27986 non-existing unique name. Fix typos in matching rule. Return an
27987 object which is useful in Fdbus_unregister_signal.
27988 (Fdbus_unregister_signal): Reimplementation, in order to remove
27989 only the corresponding entry.
27990 (Vdbus_registered_functions_table): Change the order of entries.
27991 Apply these changes in xd_read_message and Fdbus_register_signal.
27992
279932007-12-16 Andreas Schwab <schwab@suse.de>
27994
27995 * fileio.c (Finsert_file_contents): Fix overflow check to not
27996 depend on undefined integer overflow.
27997
279982007-12-14 Jason Rumney <jasonr@gnu.org>
27999
28000 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
28001 for characters above 127.
28002
280032007-12-13 Jason Rumney <jasonr@gnu.org>
28004
28005 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
28006 before dereferencing array.
28007 (lookup_vk_code): Remove zero comparison.
28008
280092007-12-14 Michael Albinus <michael.albinus@gmx.de>
28010
28011 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
28012 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
28013 Use `unsigned int' instead of `uint'.
28014 (xd_read_message, Fdbus_register_signal): Split expressions into
28015 multiple lines before operators "&&" and "||", according to the
28016 GNU Coding Standards.
28017
280182007-12-14 Eli Zaretskii <eliz@gnu.org>
28019
28020 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
28021
280222007-12-12 Juri Linkov <juri@jurta.org>
28023
28024 * buffer.c (Frename_buffer): In interactive spec replace
28025 `read-buffer' with `read-string' that uses `buffer-name-history'
28026 as history, and the current buffer's name as default.
28027
280282007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
28029
28030 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
28031 manipulating the backtrace manually.
28032 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
28033 (struct backtrace, backtrace_list): Remove.
28034 (command_loop_1): Remove dead var `no_direct'.
28035
28036 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
28037 preserve non-built-in buffer-local variables.
28038 (Fkill_all_local_variables): Don't re-create&re-set permanent
28039 buffer-local variables.
28040
280412007-12-09 Juri Linkov <juri@jurta.org>
28042
28043 * buffer.c (Frename_buffer): Change interactive spec from "s" to
28044 Lisp code that uses `read-buffer' with current buffer as default.
28045
280462007-12-08 Michael Albinus <michael.albinus@gmx.de>
28047
28048 * dbusbind.c (xd_read_message): Generate an event for every
28049 registered handler. There might be several handlers registered
28050 for the same signal.
28051 (Fdbus_register_signal): Don't overwrite a registration for the
28052 same signal. Add a new registration if handlers are different.
28053 (Vdbus_registered_functions_table): Rework doc string.
28054
280552007-12-07 Michael Albinus <michael.albinus@gmx.de>
28056
28057 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
28058 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
28059 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
28060 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
28061 Unify argument lists.
28062 (xd_read_message, Fdbus_register_signal): Reorder and extend event
28063 arguments and hash table keys. Use unique name for service.
28064 (Fdbus_unregister_signal): Remove checks.
28065 (Vdbus_registered_functions_table): Fix doc string.
28066
280672007-12-05 Magnus Henoch <mange@freemail.hu>
28068
28069 * process.c (make_process): Initialize pty_flag to 0.
28070
280712007-12-05 Jason Rumney <jasonr@gnu.org>
28072
28073 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
28074 specified XBMs.
28075
280762007-12-05 Richard Stallman <rms@gnu.org>
28077
28078 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
28079
280802007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28081
28082 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
28083 New variable.
28084 (mac_try_close_socket) [MAC_OSX]: New function.
28085 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
28086 Update cfsockets_for_select. Replace invalid CFRunLoop source.
28087
28088 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
28089 Use mac_try_close_socket.
28090
280912007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28092
28093 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
28094 reloc_base.
28095 (copy_dysymtab): Compute relocation base here.
28096 (rebase_reloc_address) [__ppc64__]: New function.
28097 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
28098 changed.
28099
281002007-12-05 Jason Rumney <jasonr@gnu.org>
28101
28102 * w32proc.c (sys_spawnve): Quote args with wildcards.
28103
281042007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28105
28106 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
28107 __objc_* sections.
28108 (unrelocate) [_LP64]: Set relocation base to address of data segment.
28109
281102007-12-05 Michael Albinus <michael.albinus@gmx.de>
28111
28112 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
28113 Move check for Vdbus_registered_functions_table to
28114 xd_read_queued_messages.
28115 (xd_read_queued_messages): Protect xd_read_message calls by
28116 internal_condition_case_1.
28117
281182007-12-04 Michael Albinus <michael.albinus@gmx.de>
28119
28120 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
28121 Qdbus_system_bus and Qdbus_session_bus, respectively.
28122 (Vdbus_intern_symbols): Remove.
28123 (Vdbus_registered_functions_table): New hash table.
28124 (XD_SYMBOL_INTERN_SYMBOL): Remove.
28125 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
28126 Rewrite in order to manage registered functions by hash table
28127 Vdbus_registered_functions_table.
28128
281292007-12-03 Jan Djärv <jan.h.d@swipnet.se>
28130
28131 * xterm.c: Update URL to Window Manager Specification in comment.
28132
281332007-12-02 Michael Albinus <michael.albinus@gmx.de>
28134
28135 * config.in (HAVE_DBUS): Add.
28136
28137 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
28138 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
28139 (obj): Add $(DBUS_OBJ).
28140 (LIBES): Add $(DBUS_LIBS).
28141 (dbusbind.o): New target.
28142
28143 * dbusbind.c: New file.
28144
28145 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
28146
28147 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
28148 (Qdbus_event): New Lisp symbol.
28149 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
28150 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 28151 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
28152
28153 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
28154
281552007-12-01 Richard Stallman <rms@gnu.org>
28156
28157 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
28158
281592007-11-30 Jason Rumney <jasonr@gnu.org>
28160
28161 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
28162 (w32con_reset_terminal_modes): Clear screen buffer.
28163 (w32_face_attributes): Don't use color indexes that are out of range.
28164 Only reverse the default colors.
28165
28166 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
28167 WINDOWSNT.
28168
28169 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
28170
281712007-11-29 Jason Rumney <jasonr@gnu.org>
28172
28173 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
28174 (w32_face_attributes): Use Vtty_defined_color_alist to determine
28175 if the terminal colors are initialized.
28176 (unspecified_fg, unspecified_bg): Remove unused declarations.
28177
281782007-11-29 Andreas Schwab <schwab@suse.de>
28179
28180 * keyboard.c (apply_modifiers): Fix typo.
28181
281822007-11-29 Richard Stallman <rms@gnu.org>
28183
28184 * keymap.c (Fcurrent_local_map): Doc fix.
28185
281862007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
28187
28188 * s/gnu-kfreebsd.h: New file.
28189
281902007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
28191
28192 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
28193 Don't cast redundantly.
28194
28195 * keyboard.c (KEY_TO_CHAR): New macro.
28196 (parse_modifiers, apply_modifiers): Accept integer arguments.
28197 (read_key_sequence): Use them to unify the "shift->unshift" mapping
28198 for chars and symbol keys.
28199 After doing such remapping, apply function-key-map again.
28200
282012007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
28202
28203 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
28204 compiled anymore.
28205
282062007-11-26 Andreas Schwab <schwab@suse.de>
28207
28208 * process.c (list_processes_1): Fix indentation level of the
28209 command column.
28210
282112007-11-23 Andreas Schwab <schwab@suse.de>
28212
28213 * editfns.c (Fformat): Handle %c specially since it requires the
28214 argument to be of type int.
28215
282162007-11-23 Markus Triska <markus.triska@gmx.at>
28217
28218 * emacs.c (main): Call init_editfns before init_process, since
28219 init_process sets Vprocess_connection_type depending on OS release.
28220
282212007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
28222
28223 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
28224 (find_symbol_value): Use do_symval_forwarding.
28225
28226 * data.c (set_internal): Set the value in the `cons-cell' (for
28227 Buffer_Local_values) not only for frame-local variables.
28228
282292007-11-22 Andreas Schwab <schwab@suse.de>
28230
28231 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
28232 values to sprintf.
28233 * keymap.c (Fsingle_key_description): Likewise.
28234 * print.c (print_object): Likewise.
28235
282362007-11-22 Jan Djärv <jan.h.d@swipnet.se>
28237
28238 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
28239 file for image is nil.
28240
282412007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
28242
28243 * term.c: Include stdarg.h.
28244 (fatal): Implement using varargs.
28245 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
28246
282472007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28248
28249 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
28250 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
28251 Update call to buffer_slot_type_mismatch.
28252 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
28253 (buffer_slot_type_mismatch): Update.
28254 * buffer.c (buffer_local_types): Remove.
28255 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
28256 (defvar_per_buffer): Set the type in the buffer_objfwd.
28257
282582007-11-21 Jason Rumney <jasonr@gnu.org>
28259
28260 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
28261 CreateFileMapping returns NULL on failure.
28262
282632007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28264
28265 * search.c (Fset_match_data): Remove the `evaporate' feature.
28266 (unwind_set_match_data): Don't use the `evaporate' feature.
28267
282682007-11-21 Jason Rumney <jasonr@gnu.org>
28269
28270 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
28271
28272 * w32console.c (w32con_write_glyphs): Remove unused variables.
28273
282742007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
28275
28276 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
28277
28278 * s/darwin.h (MULTI_KBOARD): Remove.
28279
28280 * macfns.c (x_create_tip_frame, Fx_create_frame)
28281 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
28282
282832007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
28284
28285 * buffer.c (Fbuffer_local_value): Remove redundant test.
28286 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
28287 than in `current-buffer' to match the comment.
28288 Do the swap using swap_in_global_binding.
28289
28290 * data.c (store_symval_forwarding, set_internal):
28291 * eval.c (specbind): Remove dead code.
28292
28293 * coding.c (detect_coding, Fupdate_coding_systems_internal):
28294 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
28295 Since we do not want to see internal Lisp_*fwd objects here.
28296
282972007-11-18 Jan Djärv <jan.h.d@swipnet.se>
28298
28299 * sysdep.c (init_system_name): Use getaddrinfo if available.
28300
28301 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
28302 (x_scroll_bar_note_movement): start, end, with, height in struct
28303 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
28304
283052007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
28306
28307 * puresize.h (BASE_PURESIZE): Increase to 1190000.
28308
283092007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
28310
28311 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
28312 This undoes Richard's change of 14-Oct-2002.
28313
28314 * alloc.c (allocate_other_vector):
28315 * lisp.h (allocate_other_vector): Remove.
28316
28317 * window.c (struct save_window_data): Move non-lisp data to the end
28318 and make it `int' rather than Lisp_Object.
28319 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
28320 Done wrap/unwrap integer values.
28321 (Fset_window_configuration, compare_window_configurations):
28322 Update use of fields to their new types.
28323
28324 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
28325 Turn integer fields into `int'. Merge x_window_low and x_window_high.
28326 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
28327 (SET_SCROLL_BAR_X_WINDOW): Remove.
28328 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
28329 Access the new x_window field directly.
28330 * xterm.c (x_scroll_bar_create): Use a pseudovector.
28331 Don't wrap/unwrap integers into Lisp_Objects.
28332 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
28333 (x_scroll_bar_report_motion):
28334 Don't wrap/unwrap integers into Lisp_Objects.
28335 (x_term_init): Use SDATA.
28336 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
28337 (x_scroll_bar_set_handle, x_scroll_bar_remove)
28338 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
28339 (x_scroll_bar_report_motion, x_scroll_bar_clear):
28340 * xfns.c (x_set_background_color):
28341 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
28342 Access the new x_window field directly.
28343
28344 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
28345 (allocate_pseudovector): Make non-static.
28346
28347 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
28348 (allocate_pseudovector): Declare.
28349 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
28350
283512007-11-15 Andreas Schwab <schwab@suse.de>
28352
28353 * editfns.c (Fformat): Correctly format EMACS_INT values.
28354 Also take precision into account when formatting an integer.
28355
28356 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
28357
283582007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
28359
28360 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
28361 (syms_of_keyboard): Defsubr it.
28362
28363 * data.c (swap_in_global_binding): Fix longstanding bug where
28364 store_symval_forwarding was not called with the right second argument,
28365 thus causing objfwd-ing from being dropped.
28366
283672007-11-14 Juanma Barranquero <lekktu@gmail.com>
28368
28369 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
28370 (Fx_display_pixel_height, Fx_display_planes)
28371 (Fx_display_color_cells, Fx_server_max_request_size)
28372 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
28373 (Fx_display_visual_class, Fx_display_save_under):
28374 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
28375 (Fx_display_pixel_height, Fx_display_planes)
28376 (Fx_display_color_cells, Fx_server_max_request_size)
28377 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
28378 (Fx_display_mm_height, Fx_display_mm_width)
28379 (Fx_display_backing_store, Fx_display_visual_class)
28380 (Fw32_select_font, Fx_display_save_under):
28381 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
28382 (Fx_display_pixel_height, Fx_display_planes)
28383 (Fx_display_color_cells, Fx_server_max_request_size)
28384 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
28385 (Fx_display_save_under): Fix typos in docstrings.
28386
283872007-11-14 Juanma Barranquero <lekktu@gmail.com>
28388
28389 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
28390 corresponding to deleted entries; they are an implementation detail.
28391 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
28392 Remove variables.
28393 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
28394 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
28395 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
28396 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
28397 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
28398 (Fw32_define_rgb_color, Fw32_load_color_file)
28399 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
28400 Fix typos in docstrings.
28401 (Fx_server_version): Reflow docstring.
28402 (Fw32_shell_execute): Doc fixes.
28403
284042007-11-13 Juanma Barranquero <lekktu@gmail.com>
28405
28406 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
28407 if w32_parse_hot_key returned nil.
28408
284092007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
28410
28411 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
28412
284132007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 28414
aac0c6e3
MR
28415 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
28416
28417 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
28418
28419 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
28420 Remove W32_SCROLL_BAR_CLICK_EVENT.
28421
28422 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
28423 Add MULTIMEDIA_KEY_EVENT.
28424
28425 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
28426 (lispy_multimedia_keys) [WINDOWSNT]: New array.
28427 (make_lispy_event) [WINDOWSNT]: Use it to translate
28428 MULTIMEDIA_KEY_EVENT.
28429
28430 * w32term.h (WM_APPCOMMAND): Define if not already.
28431 (GET_APPCOMMAND_LPARAM): Likewise.
28432
28433 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
28434 WM_APPCOMMAND.
28435
28436 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
28437 (syms_of_w32fns): Export and initialize it.
28438 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
28439
284402007-11-09 Chong Yidong <cyd@stupidchicken.com>
28441
28442 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
28443 twice.
28444
28445 * xdisp.c (handle_face_prop): Fix last change.
28446
284472007-11-09 Richard Stallman <rms@gnu.org>
28448
28449 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
28450 not just for after-strings and before-strings.
28451 Call face_for_overlay_string and pass the overlay to it.
28452 (handle_display_prop): Determine whether property came from an overlay.
28453 Pass OVERLAY arg to handle_single_display_spec.
28454 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
28455 (load_overlay_strings): Fill in it->string_overlays.
28456 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
28457
28458 * xfaces.c (face_for_overlay_string): Function renamed from
28459 face_at_buffer_position_no_overlays, and add arg OVERLAY.
28460
28461 * dispextern.h (struct it): New elt string_overlays.
28462 New elt from_overlay, also in stack.
28463 Rearrange a few elements.
28464 (face_for_overlay_string): Decl renamed from
28465 face_at_buffer_position_no_overlays, and add argument.
28466
284672007-11-09 Richard Stallman <rms@gnu.org>
28468
28469 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
28470 to get the base face for an overlay string.
28471
28472 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
28473
28474 * xfaces.c (face_at_buffer_position_no_overlays): New function.
28475
28476 * xdisp.c (handle_stop): Move some code out of loop.
28477
284782007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28479
28480 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
28481 Fix conversion from Lisp object to ATSUFontID.
28482
284832007-11-09 Jason Rumney <jasonr@gnu.org>
28484
28485 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
28486
284872007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28488
28489 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
28490 Don't assume regions are aligned to page boundary.
28491 (print_load_command_name): Add LC_UUID if defined.
28492
284932007-11-09 Richard Stallman <rms@gnu.org>
28494
28495 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
28496
284972007-11-07 Jason Rumney <jasonr@gnu.org>
28498
28499 * s/windows95.h: Remove.
28500
285012007-11-06 Jan Djärv <jan.h.d@swipnet.se>
28502
28503 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
28504 abort with a message on unhandled store_type values.
28505
285062007-11-01 Jan Djärv <jan.h.d@swipnet.se>
28507
28508 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
28509 Remove HAVE_X11R5 and HAVE_X11R4.
28510
285112007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
28512
28513 * Makefile.in: Remove references to sunfns.c and sunfns.o.
28514
285152007-11-01 Johan Bockgård <bojohan@gnu.org>
28516
28517 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
28518 Don't set s->stippled_p here, since it has already been set by
28519 x_set_glyph_string_gc from x_draw_glyph_string.
28520
285212007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
28522
28523 * sunfns.c: Remove file.
28524
28525 * m/sun386.h:
28526 * m/sun2.h:
28527 * m/sparc.h: Remove Sun windows code.
28528
285292007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
28530
28531 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
28532 (init_keyboard): Set current_kboard's window-system to nil.
28533 (tty_read_avail_input): Typo.
28534 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
28535
285362007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
28537
28538 * s/usg5-4.h:
28539 * s/usg5-3.h:
28540 * s/ptx.h:
28541 * m/is386.h:
28542 * m/ibmps2-aix.h:
28543 * Makefile.in: Remove all mentions of X10.
28544
28545 * dispnew.c (syms_of_display): Don't mention version 10.
28546
285472007-10-28 Juanma Barranquero <lekktu@gmail.com>
28548
28549 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
28550 ($(BLD)/abbrev.$(O)): Remove.
28551
285522007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
28553
28554 Rewrite abbrev.c in Elisp.
28555 * image.c (Qcount): Don't declare as extern.
28556 (syms_of_image): Initialize and staticpro `Qcount'.
28557 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
28558 * emacs.c (main): Don't call syms_of_abbrev.
28559 * Makefile.in (obj): Remove abbrev.o.
28560 (abbrev.o): Remove.
28561 * abbrev.c: Remove.
28562
285632007-10-26 Martin Rudalics <rudalics@gmx.at>
28564
28565 * window.c (window_min_size_2): Don't count header-line.
28566
285672007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
28568
28569 * frame.h (struct frame): Move all bit fields after the first bit
28570 field to take advantage of the available space. Group all the
28571 chars together to reduce wasted space due to padding.
28572
285732007-10-26 Juanma Barranquero <lekktu@gmail.com>
28574
28575 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
28576
28577 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
28578 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
28579 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
28580 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
28581 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
28582 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
28583 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
28584 (last_marked, mark_object_loop_halt): Make static.
28585
28586 * frame.c (syms_of_frame) <delete-frame-functions>:
28587 Fix typo in docstring.
28588
285892007-10-25 Juanma Barranquero <lekktu@gmail.com>
28590
28591 * w32.c (init_environment): Fix tiny memory leak.
28592 (w32_get_resource): Remove unused variable `ok'.
28593
285942007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
28595
28596 Make `window-system' into a keyboard-local variable (rather than
28597 frame-local as done originally by multi-tty).
28598
28599 * keyboard.h (struct kboard): Add Vwindow_system.
28600 * keyboard.c (init_kboard): Set a default for Vwindow_system.
28601 (mark_kboards): Mark Vwindow_system.
28602
28603 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
28604 (init_display): Don't set the obsolete `window-system' frame-param.
28605
28606 * xterm.c (x_term_init):
28607 * w32term.c (w32_create_terminal):
28608 * term.c (init_tty): Set Vwindow_system.
28609 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
28610 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
28611
28612 * xfns.c (Fx_create_frame, x_create_tip_frame):
28613 * w32fns.c (Fx_create_frame, x_create_tip_frame):
28614 * macfns.c (Fx_create_frame):
28615 Don't set the obsolete `window-system' frame-param.
28616
28617 * frame.h (Qwindow_system): Remove.
28618 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
28619 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
28620
286212007-10-24 Richard Stallman <rms@gnu.org>
28622
28623 * frame.c (x_figure_window_size): For fullscreen case,
28624 set USPosition | PPosition without clobbering rest of window_prompting.
28625
28626 * keyboard.c (Fcurrent_idle_time): Doc fix.
28627
28628 * print.c (Fwith_output_to_temp_buffer): Doc fix.
28629
286302007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
28631
28632 * process.c (unwind_request_sigio): Only define if __ultrix__.
28633
28634 * callproc.c (child_setup): Remove spurious *.
28635
28636 * lisp.h (Fget_text_property): Declare.
28637 (have_menus_p): Declare it here rather than in sys-dep header files.
28638 * macterm.h (have_menus_p):
28639 * msdos.h (have_menus_p):
28640 * xterm.h (have_menus_p): Remove.
28641
28642 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
28643 (Fmake_variable_frame_local): Just check the variable's const-ness
28644 rather than checking nil or t.
28645
286462007-10-22 Jason Rumney <jasonr@gnu.org>
28647
28648 * w32fns.c: Include math.h.
28649 (w32_abort): Declaration moved to nt/config.nt.
28650
28651 * s/ms-w32.h (HAVE_STDLIB_H): Define.
28652 (abort): Redefinition moved to nt/config.nt.
28653
28654 * m/windowsnt.h: Remove.
28655
286562007-10-22 Juanma Barranquero <lekktu@gmail.com>
28657
28658 * emacs.c (Fdump_emacs): Fix typo in message.
28659 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
28660 <installation-directory>: Reflow docstring.
28661
286622007-10-22 Juri Linkov <juri@jurta.org>
28663
28664 * minibuf.c: Allow minibuffer default to be a list of default values.
28665 With empty input use the first element of this list as returned default.
28666 (string_to_object)
28667 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
28668 (read_minibuf): If defalt is cons, set histstring to its car.
28669 (Fread_string): If default_value is cons, set val to its car.
28670 (Fread_buffer): If def is cons, use its car.
28671 (Fcompleting_read): If defalt is cons, set val to its car.
28672
286732007-10-21 Michael Albinus <michael.albinus@gmx.de>
28674
28675 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
28676
286772007-10-20 Juanma Barranquero <lekktu@gmail.com>
28678
28679 * doc.c (Fdocumentation): Check for advice in all cases.
28680
286812007-10-19 Chong Yidong <cyd@stupidchicken.com>
28682
28683 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
28684
286852007-10-19 Richard Stallman <rms@gnu.org>
28686
28687 * doc.c (Fdocumentation): Check for and handle an advised function.
28688
286892007-10-19 Juanma Barranquero <lekktu@gmail.com>
28690
28691 * process.c (Fset_process_filter): Doc fix.
28692
286932007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
28694
28695 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
28696 which caused key-translation-map to applied repeatedly (thus breaking
28697 double-mode).
28698
286992007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28700
28701 * xselect.c (x_own_selection, x_handle_selection_clear)
28702 (x_clear_frame_selections):
28703 * w32menu.c (list_of_panes, list_of_items):
28704 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
28705 * textprop.c (validate_plist, interval_has_all_properties)
28706 (interval_has_some_properties, interval_has_some_properties_list)
28707 (add_properties, text_property_list):
28708 * process.c (Fget_buffer_process, list_processes_1, status_notify):
28709 * minibuf.c (Fassoc_string):
28710 * macselect.c (x_own_selection, x_clear_frame_selections)
28711 (Fx_disown_selection_internal):
28712 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
28713 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
28714
287152007-10-17 Chong Yidong <cyd@stupidchicken.com>
28716
28717 * process.c: Link to libs for calling res_init() if available.
28718 (Fmake_network_process): Call res_init() before getaddrinfo or
28719 gethostbyname, if possible.
28720
287212007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28722
28723 * lread.c (read1): Set pvectype for char_tables.
28724
28725 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
28726 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
28727 Add type checks.
28728 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
28729
28730 * alloc.c (free_misc): Use XMISCTYPE.
28731 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
28732
287332007-10-17 Glenn Morris <rgm@gnu.org>
28734
28735 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
28736 (syms_of_minibuf): Add Qcompletion_ignore_case.
28737 * dired.c (Qcompletion_ignore_case): Change to external.
28738 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
28739 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
28740 (Fread_file_name): Use it rather than intern'ing.
28741
28742 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
28743 (Fread_coding_system): Ignore case of user input.
28744
287452007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28746
28747 * xdisp.c (handle_display_prop): Ignore display specs after
28748 replacing one when string text is being replaced.
28749 (handle_single_display_spec): Pretend as if characters with display
28750 property haven't been consumed only when buffer text is being replaced.
28751
287522007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
28753
28754 * xfns.c (Fx_create_frame, Fx_display_list):
28755 * window.c (window_fixed_size_p, enlarge_window)
28756 (shrink_window_lowest_first):
28757 * macterm.c (init_font_name_table):
28758 * macfns.c (Fx_create_frame, Fx_display_list):
28759 * lread.c (close_load_descs):
28760 * keyboard.c (read_char_x_menu_prompt):
28761 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
28762 * coding.c (code_convert_region_unwind): Test the type of an object
28763 rather than just !NILP before extracting data from it.
28764
28765 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
28766
28767 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
28768 (XMISCANY): New macro.
28769 (XMISCTYPE): Use it.
28770 (struct Lisp_Misc_Any): New type.
28771 (union Lisp_Misc): Use it.
28772 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
28773 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
28774 (find_symbol_value, set_internal, default_value, Fset_default)
28775 (Fmake_variable_buffer_local, Fmake_local_variable)
28776 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
28777 (Flocal_variable_if_set_p, Fvariable_binding_locus):
28778 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
28779 * alloc.c (allocate_buffer): Set the size and tag.
28780 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
28781 Use XMISCANY.
28782 (die): Follow the GNU convention for error messages.
28783 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
28784 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
28785 tag any more.
28786 (set_buffer_internal_1):
28787 * frame.c (store_frame_param):
28788 * eval.c (specbind):
28789 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
28790
28791 * doc.c (Fsnarf_documentation): Simplify.
28792
287932007-10-14 Juanma Barranquero <lekktu@gmail.com>
28794
28795 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
28796 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
28797
287982007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
28799
28800 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
28801
288022007-10-14 Juanma Barranquero <lekktu@gmail.com>
28803
28804 * eval.c (do_autoload): Don't save autoloads.
28805
28806 * data.c (Ffset): Save autoload of the function being set.
28807
288082007-10-07 John Paul Wallington <jpw@pobox.com>
28809
28810 * xfns.c (x_create_tip_frame): Set the `display-type' frame
28811 parameter before setting up faces.
28812
288132007-10-13 Eli Zaretskii <eliz@gnu.org>
28814
28815 * ccl.c (Fregister_code_conversion_map):
28816 * keyboard.c (append_tool_bar_item): Reformat last change.
28817
28818 * lisp.h (eabs): Rename from `abs'. All callers changed.
28819
288202007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
28821
28822 * buffer.c (add_overlay_mod_hooklist):
28823 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
28824 * fontset.c (make_fontset):
28825 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
28826 (append_tool_bar_item):
28827 * macmenu.c (grow_menu_items):
28828 * w32menu.c (grow_menu_items):
28829 * xmenu.c (grow_menu_items): Use larger_vector.
28830
288312007-10-13 Eli Zaretskii <eliz@gnu.org>
28832
28833 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
28834 selected frame'' on MSDOS).
28835
288362007-10-12 Martin Rudalics <rudalics@gmx.at>
28837
28838 * frame.c (Qexplicit_name): New variable.
28839 (x_report_frame_params): Report it in parameter alist.
28840 (syms_of_frame): Intern and staticpro it.
28841
288422007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
28843
28844 * macfns.c (x_create_tip_frame): Set terminal for frame.
28845
288462007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
28847
28848 * frame.c (Qenvironment): Remove.
28849 (syms_of_frame) <Qenvironment>: Don't initialize.
28850 (Fdelete_frame): Don't treat the `environment' param specially.
28851 * frame.h (Qenvironment): Don't declare.
28852 * callproc.c (set_initial_environment): Don't set unused frame param.
28853
28854 * frame.c (Fframe_with_environment): Remove.
28855 (syms_of_frame) <Sframe_with_environment>: Don't declare.
28856
28857 * lisp.h (Fframe_with_environment): Don't declare.
28858
288592007-10-10 Juanma Barranquero <lekktu@gmail.com>
28860
28861 * indent.c (indent_tabs_mode, last_known_column)
28862 (last_known_column_modified): Make static.
28863 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
28864
288652007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
28866
28867 * puresize.h (BASE_PURESIZE): Increase to 1170000.
28868
288692007-10-09 Jason Rumney <jasonr@gnu.org>
28870
28871 * w32term.c (x_set_window_size): Disable code that attempts to tell
28872 Lisp code about a size change before it actually happens.
28873
288742007-10-09 Richard Stallman <rms@gnu.org>
28875
28876 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
28877 return HANDLED_RETURN.
28878
288792007-10-08 Martin Rudalics <rudalics@gmx.at>
28880
28881 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
28882 when there's an unread command event.
28883
28884 * frame.c (focus_follows_mouse): Move here from frame.el to allow
28885 window autoselection act appropriately when leaving selected frame.
28886 (syms_of_frame): Initialize focus_follows_mouse.
28887 * frame.h (focus_follows_mouse): Extern it.
28888 * macterm.c (XTread_socket): When focus_follows_mouse is nil
28889 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
28890 * msdos.c (dos_rawgetc): Likewise.
28891 * w32term.c (w32_read_socket): Likewise.
28892 * xterm.c (handle_one_xevent): Likewise.
28893 * xdisp.c (syms_of_xdisp): In doc-string of
28894 mouse-autoselect-window mention focus-follows-mouse.
28895
288962007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28897
28898 * macterm.c (mac_load_query_font): Fix missing return value.
28899 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
28900 Add BLOCK_INPUT.
28901
289022007-10-08 Richard Stallman <rms@gnu.org>
28903
28904 * xdisp.c (get_window_cursor_type): Implement documented behavior
28905 for cursor-in-non-selected-windows = t.
28906
289072007-10-08 Jason Rumney <jasonr@gnu.org>
28908
28909 * w32.c (w32_get_resource): Always close registry keys.
28910
289112007-10-08 Jason Rumney <jasonr@gnu.org>
28912
28913 * makefile.w32-in (LIBS): Add COMCTL32.
28914
28915 * w32fns.c (globals_of_w32fns): Init common controls.
28916
289172007-10-08 Richard Stallman <rms@gnu.org>
28918
28919 * image.c (our_memory_buffer): Rename from omfib_buffer.
28920
289212007-10-08 Richard Stallman <rms@gnu.org>
28922
28923 * buffer.c (Foverlays_at): Doc fix.
28924
289252007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
28926
28927 * fns.c (Fplist_put): Preserve uneven tail data.
28928
289292007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
28930
28931 * termhooks.h (enum event_kind): Remove trailing comma.
28932
28933 * frame.h (enum): Remove trailing comma.
28934
289352007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
28936
28937 * w32proc.c (delete_child): Don't terminate threads of zombies.
28938
289392007-10-08 Martin Rudalics <rudalics@gmx.at>
28940
28941 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
28942
28943 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
28944 last-repeatable-command.
28945 (init_kboard): Initialize Vlast_repeatable_command.
28946 (command_loop_1): Set it to real_this_command unless that was
28947 bound to an input event.
28948 (mark_kboards): Mark it.
28949
289502007-10-08 Richard Stallman <rms@gnu.org>
28951
28952 * eval.c (condition-case): Doc fix.
28953
289542007-10-08 Masatake YAMATO <jet@gyve.org>
28955
28956 * xfaces.c (tty_supports_face_attributes_p): Fix code
28957 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
28958 was copied and not edited.
28959
289602007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
28961
28962 Add new `input-decode-map' keymap and use it for terminal
28963 escape sequences.
28964 * keyboard.h (struct kboard): Add Vinput_decode_map.
28965 Remove Vlocal_key_translation_map.
28966 * keyboard.c (read_key_sequence): Add support for input-decode-map.
28967 (init_kboard): Init input-decode-map.
28968 Replace local-key-translation-map back with key-translation-map.
28969 (syms_of_keyboard): Declare input-decode-map.
28970 Remove local-key-translation-map. Update docstrings.
28971 (mark_kboards): Mark Vinput_decode_map.
28972 Don't mark Vlocal_key_translation_map.
28973 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
28974 Replace local-key-translation-map back with key-translation-map.
28975 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
28976 Bind in input-decode-map rather than function-key-map.
28977
28978 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
28979 This was made redundant by the previous introduction of XSETPVECTYPE.
28980
289812007-10-09 Richard Stallman <rms@gnu.org>
28982
28983 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
28984
289852007-09-29 Richard Stallman <rms@gnu.org>
28986
28987 * eval.c (internal_condition_case_2, internal_condition_case_1)
28988 (internal_condition_case): Reenable abort if x_catching_errors ()
28989 to see if that really happens and why.
28990
289912007-10-06 Andreas Schwab <schwab@suse.de>
28992
28993 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
28994
289952007-10-04 Juanma Barranquero <lekktu@gmail.com>
28996
28997 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
28998
289992007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
29000
29001 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
29002
290032007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
29004
29005 * window.h (struct window):
29006 * window.c (struct save_window_data, struct saved_window):
29007 * termhooks.h (struct terminal):
29008 * process.h (struct Lisp_Process):
29009 * frame.h (struct frame):
29010 * buffer.h (struct buffer):
29011 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
29012 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
29013 The size field of (pseudo)vectors is now unsigned.
29014 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
29015
29016 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
29017 Turn `count' into an integer.
29018
29019 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
29020 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
29021 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
29022 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
29023 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
29024
29025 * alloc.c (allocate_pseudovector): New fun.
29026 (ALLOCATE_PSEUDOVECTOR): New macro.
29027 (allocate_window, allocate_terminal, allocate_frame)
29028 (allocate_process): Use it.
29029 (mark_vectorlike): New function.
29030 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
29031 (mark_terminals): Use it.
29032 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
29033 (Fmake_byte_code): Use XSETPVECTYPE.
29034
29035 * frame.c (Fframe_parameters): Minor simplification.
29036
29037 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
29038
29039 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
29040
29041 * buffer.c (Fget_buffer_create, init_buffer_once):
29042 * lread.c (defsubr):
29043 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
29044
29045 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
29046 defined differently in the m/*.h files.
29047 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
29048 (XSETPVECTYPE): New macro.
29049 (XSETPSEUDOVECTOR): Use it.
29050
29051 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
29052 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
29053
29054 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
29055 * lread.c (defvar_per_buffer):
29056 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
29057
29058 * window.c (candidate_window_p): Only consider as visible frames that
29059 are on the same terminal.
29060
29061 * m/ibms390x.h (MARKBIT): Remove unused macro.
29062
290632007-10-01 Juanma Barranquero <lekktu@gmail.com>
29064
29065 * lread.c (Fload): Fix typo in docstring.
29066
290672007-10-01 Michaël Cadilhac <michael@cadilhac.name>
29068
29069 * floatfns.c (Fexpt): Manually check for overflows, so that a power
29070 of a non-zero value can't yield zero.
29071
290722007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
29073
29074 * term.c (term_clear_mouse_face, term_mouse_highlight)
29075 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
29076
29077 * print.c (safe_debug_print): Use XHASH.
29078
29079 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
29080 Lisp elements such as tags.
29081 (XHASH): New macro.
29082 (EQ): Use it.
29083 (SREF, SSET, STRING_COPYIN): Use SDATA.
29084 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
29085
29086 * alloc.c (mark_terminal): Remove left-over declaration.
29087 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
29088 (allocate_vectorlike): Remove type argument. Adjust callers.
29089 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
29090 Only handle the one remaining MEM_TYPE_VECTORLIKE.
29091
29092 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
29093 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
29094 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
29095 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
29096 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
29097 Use them.
29098
29099 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
29100 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
29101 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
29102
291032007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
29104
29105 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
29106 loaded by default.
29107
291082007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
29109
29110 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
29111 on this tty.
29112 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
29113
29114 * term.c (mouse_face_window): Rename from Qmouse_face_window.
29115 Update all users.
29116 (handle_one_term_event): Use Gpm_DrawPointer.
29117 (Fgpm_mouse_start): Rename from Fterm_open_connection.
29118 Signal errors instead of returning nil. Always return nil.
29119 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
29120 Make it a noop if gpm-mouse was not activated.
29121 (syms_of_term): Update names.
29122
291232007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
29124
29125 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
29126 (init_sys_modes): Check that gpm_tty is the current tty.
29127
29128 * alloc.c (allocate_terminal): Set the vector size to only count the
29129 lisp fields. Initialize those to nil.
29130 (mark_object): Don't treat terminals specially.
29131 (mark_terminal): Remove.
29132 (mark_terminals): Use mark_object instead.
29133
29134 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
29135 the GC to the beginning.
29136
29137 * indent.h:
29138 * indent.c: Use EMACS_INT for ints coming from Elisp data.
29139
29140 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
29141
291422007-09-25 Jason Rumney <jasonr@gnu.org>
29143
29144 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
29145
29146 * w32console.c (create_w32cons_output): Remove.
29147
29148 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
29149
29150 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
29151 (reset_sys_modes): Use reset_terminal_modes_hook.
29152
291532007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
29154
29155 * eval.c (do_autoload): Don't output any message.
29156
291572007-09-24 Juri Linkov <juri@jurta.org>
29158
29159 * emacs.c (standard_args): Change priority of "--no-splash"
29160 from 40 to 3. Add "--no-desktop" with the same priority.
29161
291622007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
29163
29164 * alloc.c (gc_sweep): Check cons cell mark bits word by word
29165 and optimize the case where they are all 1.
29166
291672007-09-23 Johannes Weiner <hannes@saeurebad.de>
29168
29169 * lisp.h (abs): Define if not defined.
29170 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
29171 Don't define `abs', since it's defined in lisp.h.
29172
291732007-09-22 Eli Zaretskii <eliz@gnu.org>
29174
29175 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
29176 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
29177 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
29178 (init_tty): Use DEV_TTY instead of "/dev/tty".
29179 [WINDOWSNT]: No need to protect from NAME arg being null.
29180
291812007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
29182
29183 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
29184 up the tty state.
29185
291862007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
29187
29188 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
29189 (gpm_tty): Change its type.
29190 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
29191 (gpm_tty): Change its type and initialize it.
29192 (Fterm_open_connection): Check the frame is indeed a tty.
29193 Use the new gpm_tty.
29194 (Fterm_close_connection): Use the new gpm_tty.
29195 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
29196 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
29197
291982007-09-21 Juanma Barranquero <lekktu@gmail.com>
29199
29200 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
29201 underline_color, to draw strike-through.
29202
292032007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
29204
29205 * lisp.h (allocate_terminal): Declare.
29206
29207 * window.c (candidate_window_p): Consider frames that are being placed
29208 by the user as somewhere between visible and iconified.
29209 (window_loop): Prefer windows on the current frame.
29210 (Fselect_window): Move the use of select-frame to the beginning so we
29211 can just delegate all the work (it'll call us back anyway).
29212
29213 * frame.c (Qdisplay_environment_variable):
29214 * frame.h (Qdisplay_environment_variable): Delete.
29215
29216 * .gdbinit (xbacktrace): Print the arg's address rather than the value
29217 of the first arg, since that value may be a union.
29218
29219 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
29220 parameter rather than Qdisplay_environment_variable. If all else
29221 fails, look for DISPLAY in initial-environment.
29222
292232007-09-21 Glenn Morris <rgm@gnu.org>
29224
29225 * Makefile.in (emacstool): Remove target.
29226 (lisp, shortlisp): Remove termdev.elc.
29227
292282007-09-21 Markus Triska <markus.triska@gmx.at>
29229
29230 * xterm.c (x_delete_display): Compile session management conditionally.
29231
292322007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
29233
29234 * callproc.c (getenv_internal_1): New function.
29235 (getenv_internal): Use it.
29236 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
29237
29238 * terminal.c (get_terminal): Don't accept ints to represent terminals.
29239 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
29240 (Fset_terminal_parameter): Work with dead terminals as well.
29241 (Fmodify_terminal_parameters): Remove.
29242
29243 * terminal.c (get_terminal): Handle terminals.
29244 Make sure the terminal returned is live.
29245 (create_terminal): Use allocate_terminal.
29246 (mark_terminals): Move to alloc.c.
29247 (delete_terminal): Use terminal->name as liveness status.
29248 NULL out fields after freeing their contents.
29249 Don't deallocate the object.
29250 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
29251 rather than an int.
29252 (Fterminal_live_p): Accept non-integer arguments.
29253 (Fterminal_list): Return terminal objects rather than an ints.
29254
29255 * alloc.c (enum mem_type): New member for `terminal' objects.
29256 (allocate_terminal): New function.
29257 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
29258 Handle terminals.
29259 (mark_terminal): New fun.
29260 (mark_terminals): Move from terminal.c.
29261
29262 * term.c (get_tty_terminal): Don't treat output_initial specially.
29263 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
29264 (delete_tty): Use terminal->name as liveness status.
29265
29266 * termhooks.h (struct terminal): Make it into a pseudovector.
29267 Remove `deleted' replaced by checking `name's nullness.
29268
29269 * print.c (print_object): Handle terminals.
29270
29271 * lisp.h (enum pvec_type): New `terminal' pseudovector.
29272 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
29273
29274 * frame.c (make_terminal_frame):
29275 * keyboard.c (tty_read_avail_input):
29276 * w32term.c (x_delete_terminal):
29277 * xfns.c (Fx_create_frame, x_create_tip_frame):
29278 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
29279
292802007-09-20 Glenn Morris <rgm@gnu.org>
29281
29282 * process.c (Fmake_network_process): Doc fix.
29283
292842007-09-19 Jason Rumney <jasonr@gnu.org>
29285
29286 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
29287
292882007-09-19 Michaël Cadilhac <michael@cadilhac.name>
29289
29290 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
29291 Fix a C warning regarding variable constness.
29292
29293 * xterm.c (handle_one_xevent): Fix a C warning.
29294
292952007-09-18 Jason Rumney <jasonr@gnu.org>
29296
29297 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
29298
292992007-09-17 Jan Djärv <jan.h.d@swipnet.se>
29300
29301 * gtkutil.c (gdpy_def): New variable.
29302 (xg_initialize): Initialize gdpy_def.
29303 (xg_display_close): If no other display exists, set gdpy_def to a
29304 new connection.
29305
293062007-09-16 Jan Djärv <jan.h.d@swipnet.se>
29307
29308 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
29309 when we have no file name for the icon.
29310 (xg_tool_bar_expose_callback): Remove.
29311 (xg_create_tool_bar): Don't connect expose signal to
29312 xg_tool_bar_expose_callback.
29313 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
29314
293152007-09-16 Andreas Schwab <schwab@suse.de>
29316
29317 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
29318 values instead of zapping them.
29319
293202007-09-14 Glenn Morris <rgm@gnu.org>
29321
29322 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
29323 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
29324 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
29325 scope and rename to omfib_buffer for clarity.
29326 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
29327
293282007-09-14 Kenichi Handa <handa@m17n.org>
29329
29330 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
29331
293322007-09-13 Jason Rumney <jasonr@gnu.org>
29333
29334 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
29335
29336 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
29337
29338 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
29339 (mac_term_init): Call here instead, passing rif.
29340
293412007-09-13 Glenn Morris <rgm@gnu.org>
29342
29343 * s/hpux.h: No longer define `static' as nothing.
29344
293452007-09-13 Johan Bockgård <bojohan@gnu.org>
29346
29347 * callint.c (Fcall_interactively): Remove unused var `fun'.
29348
293492007-09-12 Romain Francoise <romain@orebokech.com>
29350
29351 * window.c (prefer_window_split_horizontally, display_buffer):
29352 Revert 2007-09-08 change.
29353
293542007-09-12 Glenn Morris <rgm@gnu.org>
29355
29356 * alloca.c: Remove file.
29357 * Makefile.in (alloca): Do not undef.
29358 (allocaobj, alloca.o): Remove.
29359 (otherobj): Remove allocaobj.
29360 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
29361 * regex.c (C_ALLOCA): Remove all references and code that was only
29362 used when this was defined.
29363 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
29364 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
29365 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
29366
29367 * Makefile.in (SOURCES, unlock, relock): Delete.
29368
29369 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
29370 (menu_grab_callback): All uses changed.
29371
29372 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
29373 (x_reply_selection_request): All uses changed.
29374
293752007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
29376
29377 * lread.c (load_warn_old_style_backquotes): Change message to look
29378 better when it appears in the middle of byte-compiler messages.
29379
293802007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
29381
29382 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
29383
29384 * xterm.c (x_create_terminal): Add comment.
29385
29386 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
29387
293882007-09-10 Richard Stallman <rms@gnu.org>
29389
29390 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
29391
293922007-09-10 Michaël Cadilhac <michael@cadilhac.name>
29393
29394 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
29395 (DEFUN): Document `intspec', use it instead of `prompt'.
29396
29397 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
29398
29399 * data.c (Finteractive_form): If the interactive specification starts
29400 with a `(', use it as a Lisp form.
29401
29402 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
29403 name and file modes.
29404
29405 * callint.c (Fcall_interactively): Comment fixes.
29406
294072007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
29408
29409 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
29410 and compiled functions.
29411
294122007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
29413
29414 * window.c (prefer_window_split_horizontally): New variable.
29415 (display_buffer): Consider splitting window horizontally depending
29416 on prefer_window_split_horizontally.
29417
294182007-09-08 Eli Zaretskii <eliz@gnu.org>
29419
29420 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
29421
294222007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
29423
29424 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
29425
29426 * frame.c (x_set_frame_parameters): Check number is positive before
29427 using XFASTINT.
29428
29429 * window.c (freeze_window_start): Don't presume selected_window holds
29430 a window object.
29431 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
29432
294332007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
29434
29435 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
29436
294372007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
29438
29439 * window.c (Vsplit_window_preferred_function): New var.
29440 (Fdisplay_buffer): Use it.
29441 (syms_of_window): Export, and initialize it.
29442
294432007-09-06 Pixel <pixel@mandriva.com> (tiny change)
29444
29445 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
29446
294472007-09-06 Glenn Morris <rgm@gnu.org>
29448
29449 * gtkutil.c (menu_grab_callback) <cnt>:
29450 * xselect.c (x_reply_selection_request) <cnt>: Move static
29451 variable to file scope.
29452
294532007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
29454
29455 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
29456 consistent values of selected_frame and selected_window.
29457
294582007-09-04 Jason Rumney <jasonr@gnu.org>
29459
29460 * w32console.c (initialize_w32_display): Zero unused hooks.
29461
294622007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
29463
29464 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
29465 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
29466
294672007-09-04 Jason Rumney <jasonr@gnu.org>
29468
29469 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
29470 in w32console.c. Set up input. Remove XXX comments that have been
29471 confirmed as correct.
29472
29473 * s/ms-w32.h (MULTI_KBOARD): Define.
29474
29475 * w32console.c (one_and_only_w32cons): Remove.
29476 (initialize_w32_display): Take terminal argument.
29477
29478 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
29479 initialize_w32_display.
29480 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
29481
29482 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
29483
29484 * keyboard.c (discard_mouse_events): Discard it.
29485 (make_lispy_event): Translate it to a lisp event.
29486 (lispy_wheel_names): Add wheel-left and right events.
29487 (syms_of_keyboard): Enlarge wheel_syms.
29488
29489 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
29490 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
29491
29492 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
29493
29494 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
29495 from WM_MOUSEHWHEEL.
29496 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
29497
29498 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
29499 terminal.
29500
29501 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
29502 keyboard for the terminal.
29503
295042007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
29505
29506 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
29507 (Vresume_tty_hook): Rename from Vresume_tty_functions.
29508 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
29509 and resume-tty-function to resume-tty-hook.
29510 (Fsuspend_tty, Fresume_tty): Use new names.
29511
295122007-09-02 Jan Djärv <jan.h.d@swipnet.se>
29513
29514 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
29515 if it starts with "n:".
29516
295172007-08-31 Jan Djärv <jan.h.d@swipnet.se>
29518
29519 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
29520
295212007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
29522
29523 * frame.h:
29524 * frame.c (Qterm_environment_variable): Remove.
29525 (syms_of_frame): Don't init and staticpro it.
29526
29527 * callproc.c (getenv_internal): Remove special case for $TERM.
29528
29529 * callproc.c (Vinitial_environment): New variable.
29530 (set_initial_environment): Initialize it.
29531 (syms_of_callproc): Declare it.
29532 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
29533 TERM under which a process runs is never related to the TERM in which
29534 Emacs is running.
29535
295362007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
29537
29538 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
29539 * s/darwin.h: ... do it here.
29540
295412007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
29542
29543 * lisp.h (set_initial_environment): Rename from set_global_environment.
29544
29545 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
29546 removed by mistake on the multi-tty branch.
29547
29548 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
29549 (Fmodify_frame_parameters): Return a value.
29550
29551 * image.c (png_load): Comment-out var only used in commented-out code.
29552
29553 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
29554 before passing it to mark_object.
29555
29556 * xfaces.c (internal_resolve_face_name): Return a value.
29557 (internal_resolve_face_name, resolve_face_name_error): Comment out.
29558
29559 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
29560 (x_icon): Comment-out var only used in commented-out code.
29561
295622007-08-29 Romain Francoise <romain@orebokech.com>
29563
29564 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
29565 QUIT hasn't been provided.
29566
295672007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
29568
29569 * callproc.c (child_setup, getenv_internal): Use the
29570 display-environment-variable and term-environment-variable frame params.
29571 (set_initial_environment): Initialise Vprocess_environment.
29572
29573 * config.in: Disable multi-keyboard support on a mac.
29574
29575 * frame.c (Qterm_environment_variable)
29576 (Qdisplay_environment_variable): New variables.
29577 (syms_of_frame): Intern and staticpro them.
29578 (Fmake_terminal_frame): Disable output method test.
29579
29580 * frame.h: Declare them here.
29581
29582 * macfns.c (x_set_mouse_color): Get rif from the frame.
29583 (x_set_tool_bar_lines): Don't use updating_frame.
29584 (mac_window): Add 2 new parameters for consistency with other systems.
29585 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
29586 frame parameters following what is done in X11 and w32. Don't use
29587 FRAME_MAC_DISPLAY_INFO.
29588 (Fx_open_connection, start_hourglass): Remove window-system check.
29589 (x_create_tip_frame): Get the keyboard from the terminal.
29590
29591 * macmenu.c: Reorder includes.
29592 (Fx_popup_menu): Use terminal specific mouse_position_hook.
29593
29594 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
29595 terminal parameter.
29596 (x_clear_frame): Add a frame parameter.
29597 (note_mouse_movement): Get rif from the frame.
29598 (mac_term_init): Initialize the terminal.
29599 (mac_initialize): Make static and move terminal initialization ...
29600 (mac_create_terminal): ... to this new function.
29601
29602 * macterm.h (struct mac_display_info): Add terminal.
29603 (mac_initialize): Delete declaration.
29604
29605 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
29606
29607 * sysdep.c: Comment out text after #endif.
29608
29609 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
29610 is defined. Better initialize ttys in windows. Use terminal
29611 specific mouse_position_hook.
29612
29613 * termhooks.h (union display_info): Add mac_display_info.
29614
29615 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
29616 Set the default minibuffer frame, window_system and the rest of the
29617 frame parameters following what is done in X11.
29618
29619 * w32term.c (w32_initialize): Make static.
29620
29621 * xselect.c (x_handle_selection_clear): Only access
29622 terminal->kboard when MULTI_KBOARD is defined.
29623
29624 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
29625 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
29626
296272007-08-29 Jason Rumney <jasonr@gnu.org>
29628
29629 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
29630 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
29631
29632 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
29633 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
29634
29635 * keyboard.c (restore_kboard_configuration): Only define when
29636 MULTI_KBOARD defined.
29637
29638 * makefile.w32-in: Update dependancies from Makefile.in.
29639 (OBJ1): Add terminal.$(O)
29640
29641 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
29642 Don't define function body.
29643 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
29644
29645 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
29646
29647 * w32.c (request_sigio, unrequest_sigio): Remove.
29648
29649 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
29650 (w32con_clear_frame, w32con_clear_end_of_line)
29651 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
29652 (w32con_delete_glyphs, w32con_set_terminal_window)
29653 (scroll_line, w32_sys_ring_bell): Add frame arg.
29654 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
29655 Add terminal arg.
29656 (PICK_FRAME): Remove.
29657 (w32con_write_glyphs): Use frame specific terminal coding.
29658 (one_and_only_w32cons): New global variable.
29659 (initialize_w32_display): Use it for storing hooks.
29660 (create_w32cons_output): New function.
29661
29662 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
29663 arg a frame.
29664
29665 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
29666 Set window_system.
29667 (x_set_tool_bar_lines): Don't use updating_frame.
29668 (Fx_create_frame): Set terminal and ref count.
29669 (Fx_open_connection): Remove window-system check.
29670
29671 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
29672
29673 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
29674 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
29675 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
29676 Add frame arg.
29677 (x_delete_terminal, w32_create_terminal): New functions.
29678 (w32_term_init): Create a terminal.
29679 (w32_initialize): Move terminal specific initialization to
29680 w32_create_terminal.
29681
29682 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
29683 (w32_clear_rect, w32_clear_area): Use background from frame.
29684 (w32_display_info): Add terminal.
29685 (w32_sys_ring_bell, x_delete_display): Declare here.
29686
29687 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
29688
29689 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
29690
296912007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
29692
29693 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
29694 Fix get_named_tty calls for the controlling tty.
29695
296962007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
29697
194d44e7 29698 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
29699
297002007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
29701
29702 * term.c (tty_insert_glyphs): Add missing first parameter.
29703
297042007-08-29 Károly Lőrentey <karoly@lorentey.hu>
29705
29706 * buffer.c (Fbuffer_list, Fbury_buffer):
29707 Take frame->buried_buffer_list into account.
29708
29709 * cm.c (current_tty): New variable, for cmputc().
29710 (cmputc): Use it.
29711 (cmcheckmagic): Add tty parameter, look up terminal streams there.
29712 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
29713 (cmgoto): Add tty parameter. Pass it on to calccost().
29714 Use emacs_tputs() instead of tputs().
29715
29716 * cm.h (emacs_tputs): New macro to set current_tty, and then call
29717 tputs().
29718 (current_tty): New variable, for cmputc().
29719 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
29720
29721 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
29722 (internal_condition_case, internal_condition_case_1)
29723 (internal_condition_case_2): Don't abort when x_catching_errors.
29724
29725 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
29726 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
29727 prevent crashes caused by bogus longjmps in read_char.
29728
29729 * keymap.h (Fset_keymap_parent): Add EXFUN.
29730
29731 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
29732 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29733 Remove redundant definition.
29734
29735 * macfns.c (x_set_mouse_color, x_make_gc):
29736 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29737
29738 * w32term.c (x_free_frame_resources):
29739 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29740 (w32_initialize): Use the accessor macros for terminal characteristics.
29741
29742 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
29743 Use the accessor macros for terminal characteristics.
29744 * msdos.c (internal_terminal_init): Use the accessor macros for
29745 terminal characteristics.
29746 (ScreenVisualBell, internal_terminal_init):
29747 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29748
29749 * termopts.h (no_redraw_on_reenter): Declare.
29750
29751 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
29752 (mark_terminals, mark_ttys): Declare.
29753 (Fgarbage_collect): Call them.
29754 (mark_object): Mark buried_buffer_list.
29755
29756 * prefix-args.c: Include stdlib.h for exit.
29757
29758 * syssignal.h: Add comment.
29759
29760 * indent.c: Include stdio.h.
29761
29762 * window.h (Vinitial_window_system): Declare.
29763 (Vwindow_system): Delete declaration.
29764
29765 * fontset.c (Finternal_char_font): Use FRAME_RIF.
29766
29767 * image.c (lookup_image): Don't initialize `c' until the xasserts
29768 have been run.
29769
29770 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
29771 FRAME_FOREGROUND_PIXEL.
29772
29773 * print.c (print_preprocess): Don't lose print_depth levels while
29774 iterating.
29775
29776 * widget.c (update_from_various_frame_slots):
29777 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29778
29779 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
29780 frames.
29781 (window_internal_height): Remove bogus make_number call.
29782 (init_window_once): Call make_terminal_frame with two zero parameters.
29783
29784 * fileio.c (Fread_file_name): Update comment.
29785
29786 * callint.c (Fcall_interactively):
29787 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
29788 Make sure it is correctly unwound.
29789
29790 * xsmfns.c (x_session_close): New function.
29791
29792 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
29793 Delete declarations.
29794
29795 * xterm.h: Remove declaration for x_fully_uncatch_errors.
29796 (x_output): Remove background_pixel and foreground_pixel fields.
29797 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
29798 (x_delete_device, x_session_close): Declare.
29799
29800 * lread.c: Include setjmp.h. Update declaration of `read_char'.
29801 (read_filtered_event): Call `read_char' with a local
29802 `wrong_kboard_jmpbuf'.
29803
29804 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
29805 Don't call single_kboard_state. Use FRAME_RIF.
29806
29807 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
29808 systems.
29809
29810 * lisp.h (set_process_environment): Rename to `set_global_environment'.
29811 (Fframe_with_environment, Fset_input_meta_mode)
29812 (Fset_quit_char): EXFUN.
29813 (x_create_device, tty_output, terminal, tty_display_info): Declare.
29814 (init_sys_modes, reset_sys_modes): Update prototypes.
29815 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
29816
29817 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
29818 Vlocal_key_translation_map, and Vkeyboard_translate_table.
29819 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
29820 Delete declarations.
29821 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
29822 (temporarily_switch_to_single_kboard, tty_read_avail_input):
29823 New declarations.
29824
29825 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
29826 already does that during init_display(). Call syms_of_keymap
29827 before syms_of_keyboard. Call `syms_of_terminal'.
29828 Call set_initial_environment, not set_process_environment.
29829 (shut_down_emacs): Call reset_all_sys_modes() instead of
29830 reset_sys_modes().
29831
29832 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
29833 (internal_resolve_face_name, resolve_face_name_error): New functions.
29834 (resolve_face_name): Protect against loops and errors thrown by Fget.
29835 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
29836 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
29837
29838 * scroll.c: Replace CURTTY() with local variables throughout the
29839 file (where applicable).
29840 (calculate_scrolling, calculate_direct_scrolling)
29841 (scrolling_1, scroll_cost): Use the accessor macros for terminal
29842 characteristics.
29843
29844 * keymap.c (Vfunction_key_map): Remove.
29845 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
29846 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
29847 (Vkey_translation_map): Remove.
29848 (syms_of_keymap): Remove DEFVAR for key-translation-map.
29849 (Fdescribe_buffer_bindings)
29850 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
29851 Update for terminal-local key-translation-map.
29852
29853 * Makefile.in (callproc.o): Update dependencies.
29854 (lisp, shortlisp): Add termdev.elc.
29855 (obj): Add terminal.o.
29856 (terminal.o): Add dependencies.
29857 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
29858 (data.o, fns.o): Add termhooks.h dependency.
29859 (SOME_MACHINE_LISP): Add dnd.elc.
29860 (minibuf.o): Fix typo.
29861 Update dependencies.
29862
29863 * data.c (do_symval_forwarding, store_symval_forwarding)
29864 (find_symbol_value): Use the selected frame's keyboard, not
29865 current_kboard.
29866
29867 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
29868 Vwindow_system.
29869
29870 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
29871 Fmenu_bar_open.
29872 (syms_of_xmenu): Update defsubr.
29873 (mouse_position_for_popup, Fx_popup_menu)
29874 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
29875 (set_frame_menubar, free_frame_menubar)
b97439ce 29876 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
29877 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
29878 an X frame.
29879
29880 * xselect.c (x_own_selection): Abort if not an X frame.
29881 (some_frame_on_display): Check if it is an X frame.
29882 (x_handle_selection_clear): Deal with MULTI_KBOARD.
29883
29884 * coding.c: Include frame.h and termhooks.h.
29885 (terminal_coding, keyboard_coding): Delete.
29886 (Fset_terminal_coding_system_internal)
29887 (Fset_keyboard_coding_system_internal)
29888 (Fkeyboard_coding_system)
29889 (Fterminal_coding_system): Add a terminal parameter.
29890 Get terminal_coding from the terminal.
29891 (init_coding_once): Don't call setup_coding_system here.
29892
29893 * dispextern.h (set_scroll_region, turn_off_insert)
29894 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
29895 (tty_clear_end_of_line, tty_setup_colors)
29896 (delete_tty, updating_frame)
29897 (produce_special_glyphs, produce_glyphs, write_glyphs)
29898 (insert_glyphs): Remove.
29899 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
29900 (tty_turn_off_highlight, get_tty_size): Add declaration.
29901 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
29902
29903 * frame.h (enum output_method): Add output_initial.
29904 (struct x_output): Delete.
29905 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29906 Access foreground_pixel and background_pixel directly from the frame.
29907 (tty_display): Delete.
29908 (struct frame): Add buried_buffer_list, foreground_pixel,
29909 background_pixel and terminal. Delete kboard.
29910 (union output_data): Add tty.
29911 (FRAME_KBOARD): Get the kboard from the terminal.
29912 (FRAME_INITIAL_P): New macro.
29913 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
29914 (Qterm_environment_variable, Qdisplay_environment_variable)
29915 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
29916 New declarations.
29917
29918 * termchar.h (tty_output, tty_display_info): New structures.
29919 (tty_list): Declare.
29920 (FRAME_TTY, CURTTY): New macros.
29921 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
29922 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
29923 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
29924 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
29925
29926 * callproc.c: Include frame.h and termhooks.h, for terminal
29927 parameters.
29928 (add_env): New function.
29929 (child_setup): Use it.
29930 (child_setup, getenv_internal): Handle the new Vprocess_environment.
29931 (getenv_internal): Fix get_terminal_param call.
29932 (Fgetenv_internal, egetenv): Update doc.
29933 (syms_of_callproc): Initialize Vprocess_environment to nil.
29934 Register and initialize them. Remove obsolete defvars. Update doc
29935 strings.
29936 (child_setup): Handle Vlocal_environment_variables.
29937 (getenv_internal): Add terminal parameter.
29938 Handle Vlocal_environment_variables.
29939 (Fgetenv_internal): Add terminal parameter.
29940 (child_setup, getenv_internal, Fgetenv_internal): Store the local
29941 environment in a frame (not terminal) parameter. Update doc strings.
29942 (set_initial_environment): Rename from set_global_environment.
29943 Store Emacs environment in initial frame parameter.
29944
29945 * xdisp.c (redisplay_internal): Update references to
29946 `previous_terminal_frame'.
29947 (display_mode_line, Fformat_mode_line): Replace calls to
29948 `push_frame_kboard' with `push_kboard'.
29949 (get_glyph_string_clip_rects): Add extra parentheses and
29950 braces to prevent compiler warnings.
29951 (calc_pixel_width_or_height): Add xassert to check that the
29952 frame is alive. Don't call `lookup_image' on a termcap frame.
29953 (message2_nolog, message3_nolog, redisplay_internal)
29954 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
29955 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
29956 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
29957 (Fx_display_pixel_width, Fx_display_pixel_height)
29958 (Fx_display_planes, Fx_display_color_cells)
29959 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
29960 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
29961 (Fx_display_backing_store, Fx_display_visual_class)
29962 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
29963 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
29964
29965 * xfns.c (x_set_foreground_color x_set_background_color)
29966 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
29967 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29968 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
29969 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
29970 terminal that is being deleted.
29971 (Fx_create_frame): Use `store_frame_param' to set `window-system'
29972 frame parameter, and make sure it overrides any user-supplied setting.
29973 (Fx_close_connection, Fx_synchronize): Unify argument names with
29974 the rest of the DEFUNs.
29975
29976 * dispnew.c (Fsend_string_to_terminal): Update call to
29977 `get_tty_terminal'.
29978 (Fredraw_frame, Fsend_string_to_terminal)
29979 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
29980 FRAME_TERMCAP_P and FRAME_TTY.
29981 (window_change_signal): Don't believe width/height values that are
29982 impossibly small.
29983 (Vinitial_window_system): Rename from Vwindow_system.
29984 (termscript, Wcm, rif): Delete.
29985
29986 * termhooks.h (struct terminal): New struct containing the
29987 previously global text display hooks and new members NAME,
29988 DELETED and PARAM_ALIST.
29989 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
29990 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
29991 (FRAME_RIF): New macros.
29992 (get_terminal_param, get_device): New declarations.
29993 (termscript): Delete declaration.
29994
29995 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
29996 (XTflash, x_free_frame_resources, x_scroll_bar_create)
29997 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
29998 FRAME_FOREGROUND_PIXEL.
29999 (x_fully_uncatch_errors): Disable definition.
30000 (x_scroll_bar_expose): Fix reference to foreground pixel.
30001 (XTread_socket): Disable loop on all X displays.
30002 (x_delete_terminal): Don't set terminal->deleted and let
30003 delete_terminal delete the frames on the terminal.
30004 (x_delete_display): Doc update to reflect changes in
30005 delete_terminal.
30006 (x_display_info) <terminal>: Move member earlier in the struct.
30007 (deleting_tty): Remove old variable.
30008 (Fsuspend_tty): Call clear_tty_hooks.
30009 (Fresume_tty, init_tty): Call set_tty_hooks.
30010 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
30011 errors on X frames.
30012 (x_catch_errors_unwind): Abort if x_error_message is NULL.
30013 (handle_one_xevent): Initialize `f' to NULL.
30014 (x_delete_terminal, x_create_terminal): New functions.
30015 (XTset_terminal_modes, XTreset_terminal_modes)
30016 (XTread_socket, x_connection_closed, x_term_init)
30017 (x_term_init, x_delete_display): Add terminal parameter.
30018 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
30019 X connections.
30020
30021 * frame.c: Include termchar.h.
30022 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
30023 (Qwindow_system, Qenvironment, Qterm_environment_variable)
30024 (Qdisplay_environment_variable): New vars.
30025 (Fframep): Deal with output_initial.
30026 (Fframe-live-p): Doc fix.
30027 (Fwindow-system): New function.
30028 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
30029 (make_terminal_frame): Don't create frames on a terminal that is
30030 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30031 (store_frame_param): Check for found_for_frame before calling XFRAME.
30032 (Fmake_terminal_frame): Handle NULL tty names correctly.
30033 (syms_of_frame): Enhance doc string of `default-frame-alist'.
30034 (Fdelete_frame): Remove unused variable `count'. Don't allow other
30035 frames to refer to a deleted frame in their 'environment parameter.
30036 (Fframe_with_environment): New function.
30037 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
30038 (get_future_frame_param): New function.
30039 (Fmake_terminal_frame): Use it.
30040 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
30041
30042 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
30043 * sysdep.c (reset_sys_modes): Update for renames.
30044
30045 * keyboard.c (tty_read_avail_input): New function.
30046 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
30047 (syms_of_keyboard): Defsubr them.
30048 (Fset_input_meta_mode, Fset_quit_char): New functions.
30049 (Fset_input_mode): Split to above functions.
30050 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
30051 parameter. Use it in call to `read_char'.
30052 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
30053 Set wrong_kboard_jmpbuf correctly in recursive calls.
30054 Use current_kboard to access Vkeyboard_translate_table.
30055 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
30056 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
30057 Update longjmp invocations. Remember the original current_kboard,
30058 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
30059 changes it. Comment out unnecessary calls to
30060 `record_single_kboard_state' and `any_kboard_state'.
30061 Update recursive calls.
30062 (wrong_kboard_jmpbuf): Remove global variable.
30063 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
30064 Handle deleted interrupted_kboards correctly; that is a legal
30065 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
30066 and read_char calls. Abort if interrupted_kboard died in read_char.
30067 (any_kboard_state, single_kboard_state)
30068 (push_frame_kboard): Remove function.
30069 (pop_kboard): Switch out of single_kboard mode if the kboard has
30070 been deleted. Remove unused variable. Help debugging by not
30071 changing current_kboard unnecessarily. Set current_kboard to the
30072 kboard of the selected frame when the stored kboard object has
30073 been deleted before pop_kboard.
30074 (temporarily_switch_to_single_kboard): Change first parameter to a
30075 frame pointer. Throw an error when caller wants to change kboards
30076 while in single_kboard mode. Don't push_kboard if we weren't in
30077 single kboard state. Don't pop_kboard if we popped into any
30078 kboard state.
30079 (restore_kboard_configuration): Abort if pop_kboard changed the
30080 kboard in single_kboard mode. Call pop_kboard only after setting
30081 up single_kboard mode.
30082 (Frecursive_edit): Switch to single_kboard mode only in nested
30083 command loops.
30084 (cmd_error, command_loop, command_loop_1, timer_check):
30085 Comment out unnecessary call to `any_kboard_state' and
30086 `record_single_kboard_state'.
30087 (delete_kboard): Exit single_kboard mode if we have just deleted
30088 that kboard. Use FRAME_KBOARD.
30089 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
30090 `fatal_error_signal'.
30091 (record_single_kboard_state): Don't push_kboard if we weren't in
30092 single kboard state. Don't pop_kboard if we popped into any
30093 kboard state.
30094 (push_frame_kboard): Rename to push_kboard.
30095 (kbd_buffer_get_event): Use FRAME_TERMINAL.
30096 (read_avail_input): Read input from all terminals.
30097 (mark_kboards): Also mark Vkeyboard_translate_table.
30098 (kbd_buffer_store_event_hold): Simplify condition.
30099 (read_key_sequence): Reinitialize fkey and keytran at each replay.
30100 (Vkeyboard_translate_table): Move to struct kboard.
30101 (init_kboard): Initialize Vkeyboard_translate_table.
30102 (syms_of_keyboard): Use DEFVAR_KBOARD to define
30103 Vkeyboard_translate_table. Update doc strings. Update docs of
30104 local-function-key-map and function-key-map.
30105
30106 * terminal.c: New file.
30107
30108 * term.c: Include errno.h.
30109 (Vring_bell_function, device_list, initial_device)
30110 (next_device_id, ring_bell, update_begin, update_end)
30111 (set_terminal_window, cursor_to, raw_cursor_to)
30112 (clear_to_end, clear_frame, clear_end_of_line)
30113 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
30114 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
30115 (syms_of_term): Move their initialization to terminal.c.
30116 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
30117 (Ftty_display_color_cells)
30118 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
30119 (clear_tty_hooks, set_tty_hooks)
30120 (init_tty, maybe_fatal): New functions.
30121 (Ftty_type): Return nil if terminal is not on a tty instead of
30122 throwing an error. Doc update.
30123 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
30124 Doc update. Initialize new subrs and variables.
30125 (delete_tty): Use terminal->deleted.
30126 (tty_set_terminal_modes): Rename from set_terminal_modes.
30127 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
30128 (set_scroll_region): Rename to `tty_set_scroll_region'.
30129 (turn_on_insert): Rename to `tty_turn_on_insert'.
30130 (turn_off_insert): Rename to `tty_turn_off_insert'.
30131 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
30132 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
30133 (toggle_highligh): Rename to `tty_toggle_highlight'.
30134 (background_highlight): Rename to `tty_background_highlight'.
30135 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
30136 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
30137 (tty_set_scroll_region, tty_background_highlight)
30138 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
30139 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
30140 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
30141 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
30142 Add static modifier.
30143 (tty_reset_terminal_modes, tty_set_terminal_window)
30144 (tty_set_scroll_region, tty_background_highlight)
30145 (tty_highlight_if_desired, tty_cursor_to)
30146 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
30147 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
30148 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
30149 renames.
30150
301512007-08-28 Jan Djärv <jan.h.d@swipnet.se>
30152
30153 * keyboard.c: Qrtl is new.
30154 (parse_tool_bar_item): Handle :rtl keyword.
30155 (syms_of_keyboard): Intern :rtl keyword.
30156
30157 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
30158
30159 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
30160 so no Lisp code is executed.
30161 (file_for_image, find_rtl_image): New functions.
30162 (xg_get_image_for_pixmap): Use file_for_image.
30163 (update_frame_tool_bar): If direction is RTL, use RTL image if
30164 defined. Use Gtk stock images if defined.
30165
301662007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30167
30168 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
30169 for nonexistent or zero-width glyph in composition glyph.
30170
301712007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
30172
30173 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
30174
30175 * xdisp.c (Finvisible_p): New function.
30176 (syms_of_xdisp): defsubr it.
30177
301782007-08-24 Juanma Barranquero <lekktu@gmail.com>
30179
30180 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
30181 Doc fixes.
30182
301832007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30184
30185 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
30186
301872007-08-24 Martin Rudalics <rudalics@gmx.at>
30188
30189 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
30190 whether decoding has modified buffer contents.
30191
301922007-08-24 Jason Rumney <jasonr@gnu.org>
30193
30194 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
30195 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
30196 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
30197 (init_svg_functions) [HAVE_NTGUI]: New function.
30198 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
30199 (svg_load_image): Use them.
30200 (svg_load_image) [HAVE_NTGUI]: Implement background.
30201
302022007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30203
30204 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
30205 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
30206 (LIBX): Remove @RSVG_LIBS@.
30207 (LIBES): Add $(RSVG_LIBS).
30208
30209 * image.c (svg_load_image): Blend with specified background if exists.
30210 Use IMAGE_BACKGROUND. Add Mac OS Support.
30211
30212 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
30213 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
30214 Remove macros.
30215 [MAC_OSX] (socket_callback): Do nothing.
30216 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
30217 ReceiveNextEvent.
30218 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
30219 socket_callback.
30220 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
30221
302222007-08-22 Glenn Morris <rgm@gnu.org>
30223
30224 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
30225
302262007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
30227
30228 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
30229
30230 * image.c: Add support for SVG images. Some additional comments
30231 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
30232 (svg_image_p): New function to test for SVG image.
30233 (svg_load): New function to load SVG image.
30234 (svg_load_image): New function, helper for svg_load.
30235 (Qsvg): New Lisp_object.
30236 (svg_keyword_index): New enum.
30237 (svg_format): New static `image_keyword' struct.
30238 (svg_type): New static `image_type' struct.
30239 (librsvg/rsvg.h): Include it.
30240
302412007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
30242
30243 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
30244
302452007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
30246
30247 * lread.c (Qold_style_backquotes): New var.
30248 (syms_of_lread): Init and staticpro it.
30249 (load_warn_old_style_backquotes): New fun.
30250 (Fload): Use them to warn about old style backquotes.
30251 (end_of_file_error, Fload): Remove unused vars.
30252
30253 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
30254
30255 * lread.c (Vold_style_backquotes): New var.
30256 (syms_of_lread): Init and export it to Elisp.
30257 (read1): Set it when we find an old-style (back)quote.
30258
302592007-08-22 Jason Rumney <jasonr@gnu.org>
30260
30261 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
30262
302632007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
30264
30265 * puresize.h (BASE_PURESIZE): Increase to 1140000.
30266
302672007-08-19 Richard Stallman <rms@gnu.org>
30268
30269 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
30270
302712007-08-19 Andreas Schwab <schwab@suse.de>
30272
30273 * alloc.c (pure): Round PURESIZE up.
30274
302752007-08-17 Jan Djärv <jan.h.d@swipnet.se>
30276
30277 * xterm.c (handle_one_xevent): Remove check that mouse click is in
30278 active frame.
30279
302802007-08-16 Richard Stallman <rms@gnu.org>
30281
30282 * eval.c (Fcommandp): Add parens to clarify.
30283
30284 * minibuf.c (Fall_completions): Use enum for type of table.
30285
30286 * emacs.c (USAGE2): Improve text.
30287
302882007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
30289
30290 * term.c (tty_default_color_capabilities): Declare static
30291 variables in file scope, to avoid HPUX compiler problem.
30292
302932007-08-13 Jan Djärv <jan.h.d@swipnet.se>
30294
30295 * gtkutil.c (update_frame_tool_bar): Use -1 as index
30296 to gtk_toolbar_insert.
30297
302982007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
30299
30300 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
30301
30302 * insdel.c (reset_var_on_error): New fun.
30303 (signal_before_change, signal_after_change):
30304 Use it to reset (after|before)-change-functions to nil in case of error.
30305 Bind inhibit-modification-hooks to t.
30306 Don't bind (after|before)-change-functions to nil while they run.
30307
303082007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30309
30310 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
30311 filling pixmap with stippled background.
30312
303132007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30314
30315 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
30316 Don't use invisible frame as parent window for repositioning.
30317
303182007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
30319
30320 * print.c (new_backquote_output): Rename from old_backquote_output.
30321 (print): Inverse its logic (according to its name) so as to match the
30322 behavior of new_backquote_flag in lread.c.
30323
303242007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30325
30326 * gmalloc.c (posix_memalign): New function.
30327
30328 * macterm.c (frame_highlight, frame_unhighlight): Don't call
30329 ActivateControl/DeactivateControl here.
30330 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
30331 frame-notice-user-settings is non-nil.
30332 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
30333 for kEventParamFMFontStyle.
30334 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
30335 mac_pass_command_to_system and mac_pass_control_to_system here.
30336 (XTread_socket): Call ActivateControl/DeactivateControl here.
30337 (XTread_socket) [TARGET_API_MAC_CARBON]:
30338 Check mac_pass_command_to_system and mac_pass_control_to_system here.
30339 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
30340 for window repositioning.
30341
303422007-08-08 Glenn Morris <rgm@gnu.org>
30343
30344 * Replace `iff' in doc-strings and comments.
30345
303462007-08-07 Chong Yidong <cyd@stupidchicken.com>
30347
30348 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
30349
303502007-08-07 Martin Rudalics <rudalics@gmx.at>
30351
30352 * fileio.c (Finsert_file_contents): Run format-decode and
30353 after_insert_file_functions on entire buffer when REPLACE is
30354 non-nil and inhibit modification_hooks and point_motion_hooks.
30355 For consistency, run after_insert_file_functions iff something
30356 got inserted. Move signal_after_change and update_compositions
30357 after code running after_insert_file_functions. Make sure that
30358 undo_list doesn't record intermediate steps of the decoding process.
30359
303602007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30361
30362 * emacs.c (main)
30363 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
30364 Call malloc_enable_thread on interactive startup.
30365
30366 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
30367 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
30368 [USE_PTHREAD]: Conditionalize with it.
30369 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
30370 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
30371 New functions.
30372
303732007-08-06 Chong Yidong <cyd@stupidchicken.com>
30374
30375 * xdisp.c (redisplay_window): When restoring original buffer
30376 position, make sure it is still valid.
30377
30378 * image.c (png_load): Ignore png-supplied background color.
30379
303802007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30381
30382 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
30383 Use kCFAbsoluteTimeIntervalSince1970.
30384
30385 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
30386 New variable.
30387 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
30388 event loop should be quit.
30389 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
30390 Quit dialog event loop if quit_dialog_event_loop is set.
30391
30392 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
30393 (Selection): New typedef. Use instead of ScrapRef.
30394 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
30395 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
30396 (mac_clear_selection): Rename from clear_scrap.
30397 (get_flavor_type_from_symbol): New argument SEL and subsume function of
30398 scrap_has_target_type. All uses changed.
30399 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
30400 (mac_selection_has_target_p): New functions.
30401 (mac_put_selection_value): Rename from put_scrap_string.
30402 (mac_get_selection_value): Rename from get_scrap_string.
30403 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
30404 (put_scrap_private_timestamp, scrap_has_target_type)
30405 (get_scrap_private_timestamp): Remove functions.
30406 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
30407 (x_own_selection, x_get_local_selection):
30408 Use mac_valid_selection_value_p.
30409 (x_own_selection): Don't use put_scrap_private_timestamp.
30410 Record OWNERSHIP-INFO into Vselection_alist instead.
30411 (x_get_local_selection): Don't check type if request is local.
30412 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
30413 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
30414
304152007-08-04 Jan Djärv <jan.h.d@swipnet.se>
30416
30417 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
30418 add comment explaining why.
30419
304202007-08-03 Richard Stallman <rms@gnu.org>
30421
30422 * fileio.c (Fvisited_file_modtime): Use make_time.
30423
304242007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
30425
30426 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
30427 build.
30428
304292007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
30430
30431 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
30432
304332007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
30434
30435 * puresize.h (BASE_PURESIZE): Increase to 1130000.
30436
304372007-07-30 Richard Stallman <rms@gnu.org>
30438
30439 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
30440
304412007-07-29 Jan Djärv <jan.h.d@swipnet.se>
30442
30443 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
30444
304452007-07-28 Nick Roberts <nickrob@snap.net.nz>
30446
30447 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
30448 remote default-directory.
30449
30450 * buffer.c (mode-line-format): Update doc string.
30451
304522007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30453
30454 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
30455 scroll bar gap.
30456 (x_scroll_bar_create): Set bar->fringe_extended_p.
30457 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
30458 on frame edge. Check fringe background extension. Don't clear
30459 extended fringe background area.
30460
30461 * w32term.h (struct scroll_bar): New member fringe_extended_p.
30462 (w32_fill_area): Enclose multiple statements with do ... while (0).
30463
30464 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
30465 Extend fringe background to scroll bar gap.
30466 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
30467 Set bar->fringe_extended_p.
30468 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
30469 Put leftmost/rightmost scroll bars on frame edge. Check fringe
30470 background extension. Don't clear extended fringe background area.
30471
30472 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
30473 New member fringe_extended_p.
30474
304752007-07-25 Glenn Morris <rgm@gnu.org>
30476
30477 * Relicense all FSF files to GPLv3 or later.
30478
30479 * COPYING: Switch to GPLv3.
30480
304812007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
30482
30483 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
30484
30485 * data.c (Finteractive_form): Check for the presence of an
30486 `interactive-form' symbol property more thoroughly.
30487
30488 * data.c (Finteractive_form): Use an `interactive-form' property if
30489 present, analogous to the function-documentation property.
30490
304912007-07-24 Jason Rumney <jasonr@gnu.org>
30492
30493 * w32fns.c (x_real_positions): Get real position from OS instead of
30494 calculating it.
30495
304962007-07-23 Jason Rumney <jasonr@gnu.org>
30497
30498 * filelock.c (current_lock_owner): Allow for @ sign in username.
30499
305002007-07-22 Nick Roberts <nickrob@snap.net.nz>
30501
30502 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
30503 remote default-directory.
30504
30505 * buffer.c (mode-line-format): Describe above case in doc string.
30506
305072007-07-20 Eli Zaretskii <eliz@gnu.org>
30508
30509 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
30510 Define if not defined.
30511
305122007-07-18 Jason Rumney <jasonr@gnu.org>
30513
30514 * w32proc.c (w32_executable_type): Handle 64 bit executables.
30515
305162007-07-18 Richard Stallman <rms@gnu.org>
30517
30518 * data.c (Fsetq_default): Doc fix.
30519
30520 * eval.c (Fsetq): Doc fix.
30521
305222007-07-18 Juanma Barranquero <lekktu@gmail.com>
30523
30524 * coding.c (Ffind_operation_coding_system):
30525 * eval.c (For, Fand): Doc fixes.
30526 Reported by Johan Bockgård.
30527
305282007-07-18 Jan Djärv <jan.h.d@swipnet.se>
30529
30530 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
30531
30532 * xterm.h: Declare x_ewmh_activate_frame.
30533
30534 * xterm.c (x_ewmh_activate_frame): New function.
30535 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
30536
305372007-07-17 Martin Rudalics <rudalics@gmx.at>
30538
30539 * window.c (Fdisplay_buffer): If largest or LRU window is the
30540 only window, split it even if it is not eligible for splitting.
30541 This restores the original behavior broken by the 2007-07-15
30542 change.
30543
305442007-07-17 Glenn Morris <rgm@gnu.org>
30545
30546 * abbrev.c (abbrev_check_chars): New function.
30547 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
30548 Call abbrev_check_chars to check abbrev characters are word
30549 constituents. Doc fix.
30550
305512007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
30552
30553 * process.c (Fstart_process, Fmake_network_process)
30554 (read_process_output): Fix up last changes.
30555
305562007-07-16 Eli Zaretskii <eliz@gnu.org>
30557
30558 * makefile.w32-in (clean): Don't delete *~.
30559
305602007-07-16 Andreas Schwab <schwab@suse.de>
30561
30562 * window.c (Fdisplay_buffer): Use NILP.
30563 (Fset_window_scroll_bars): Likewise.
30564
305652007-07-15 Martin Rudalics <rudalics@gmx.at>
30566
30567 * window.c (window_min_size_2): New function.
30568 (window_min_size_1, size_window, Fdisplay_buffer)
30569 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
30570 windows without mode- or header-lines when window-min-height is
30571 too small.
30572 (size_window): Reset nodelete_p after testing it, following an
30573 earlier note by Kim F. Storm.
30574 (display_buffer): Do not set split_height_threshold to twice the
30575 value of window_min_height to avoid changing the value of a
30576 customizable variable. Rather explicitly check whether the
30577 height of the window that shall be splitted is at least as large
30578 as split_height_threshold.
30579 (Fwindow_full_width_p): New defun.
30580 (syms_of_window): Defsubr it.
30581
30582 * window.h: Add EXFUN for Fwindow_full_width_p.
30583
305842007-07-14 Jason Rumney <jasonr@gnu.org>
30585
30586 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
30587
305882007-07-14 Richard Stallman <rms@gnu.org>
30589
30590 * eval.c (maybe_call_debugger): New function.
30591 (find_handler_clause): Use maybe_call_debugger.
30592 Call it when the handler says `debug'.
30593 Eliminate DEBUGGER_VALUE_PTR.
30594 (Fsignal): Eliminate debugger_value.
30595 (Qdebug): New variable.
30596 (syms_of_eval): Initialize it.
30597
305982007-07-14 Juanma Barranquero <lekktu@gmail.com>
30599
30600 * eval.c (Fprogn):
30601 * keyboard.c (Ftrack_mouse):
30602 * print.c (Fwith_output_to_temp_buffer):
30603 * window.c (Fsave_window_excursion): Doc fix.
30604
306052007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
30606
30607 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
30608
306092007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
30610
30611 * process.h (struct Lisp_Process): Turn slots infd, outfd,
30612 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
30613 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
30614 read_output_delay, and read_output_skip from Lisp_Objects to ints.
30615 Remove unused encoding_carryover.
30616 * process.c: Adjust all functions accordingly.
30617
306182007-07-12 Richard Stallman <rms@gnu.org>
30619
30620 * term.c: Include unistd.h only if HAVE_UNISTD_H.
30621
306222007-07-11 Jason Rumney <jasonr@gnu.org>
30623
30624 * makefile.w32-in (LIBS): Include OLE32.
30625
30626 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
30627 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
30628
306292007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
30630
30631 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
30632 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
30633 from a Lisp_Object into a bare pointer.
30634 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
30635 Adjust the code correspondingly.
30636
30637 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
30638
30639 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
30640 (term_show_mouse_face): Remove unused var `j'.
30641 (handle_one_term_event): Remove unused vars `i' and `j'.
30642 Don't cast return value of ttyname since it's not necessary.
30643
306442007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
30645
30646 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
30647 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
30648
30649 * fns.c (map_char_table): Use an array of int for `indices' rather than
30650 an array of Lisp_Objects (which are only ever integers anyway).
30651 (Fmap_char_table): Update caller.
30652 * lisp.h: Update prototype.
30653 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
30654 * fontset.c (Ffontset_info):
30655 * casetab.c (set_case_table): Update callers.
30656
30657 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
30658
30659 * keymap.c (struct accessible_keymaps_data)
30660 (struct where_is_internal_data): New structures.
30661 (accessible_keymaps_1, where_is_internal_1): Use them to change
30662 interface to adhere to the one used by map_keymap.
30663 (Faccessible_keymaps, where_is_internal): Use map_keymap.
30664 (accessible_keymaps_char_table, where_is_internal_2): Remove.
30665
30666 * keymap.h (map_keymap_function_t): More informative prototype.
30667
306682007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
30669
30670 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
30671 (looking_at_1): Don't change search_regs and last_thing_searched
30672 if `inhibit-changing-match-data' is non-nil.
30673 (string_match_1, search_buffer, set_search_regs): Likewise.
30674 (syms_of_search): Add Lisp level definition for
30675 `inhibit-changing-match-data' and set it to nil.
30676 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
30677 start and end of the match, instead of using values in search_regs.
30678
306792007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
30680
30681 * minibuf.c (Fcompleting_read): New value `confirm-only'
30682 for `require-match'.
30683
306842007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
30685
30686 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
30687 part of the 2007-06-27 change to syms_of_fileio.
30688
306892007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30690
30691 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
30692 Check WINDOWP before using XWINDOW. Consolidate return statements.
30693
306942007-06-27 Richard Stallman <rms@gnu.org>
30695
30696 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
30697
306982007-06-27 Juanma Barranquero <lekktu@gmail.com>
30699
30700 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
30701
307022007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30703
30704 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
30705 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
30706 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
30707 (_free_internal, memalign): Use them.
30708 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
30709 Initialize to PTHREAD_MUTEX_INITIALIZER.
30710 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
30711 (morecore_nolock): Rename from morecore. All uses changed.
30712 Use only nolock versions of internal allocation functions.
30713 (_malloc_internal_nolock, _realloc_internal_nolock)
30714 (_free_internal_nolock): New functions created from
30715 _malloc_internal, _realloc_internal, and _free_internal.
30716 (_malloc_internal, _realloc_internal, _free_internal): Use them.
30717 Copy hook value to automatic variable before its use.
30718 (memalign): Copy hook value to automatic variable before its use.
30719
307202007-06-26 Kenichi Handa <handa@m17n.org>
30721
30722 * coding.c (Ffind_operation_coding_system): Docstring improved.
30723 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
30724
307252007-06-25 David Kastrup <dak@gnu.org>
30726
30727 * keymap.c (Fcurrent_active_maps): Add `position' argument.
30728 (Fwhere_is_internal): Adjust call to `current-active-maps' to
30729 cater for additional parameter.
30730
30731 * keymap.h: Adjust number of parameters to `current-active-maps'.
30732
30733 * doc.c (Fsubstitute_command_keys): Adjust call of
30734 `current-active-maps'.
30735
307362007-06-25 David Kastrup <dak@gnu.org>
30737
30738 * callint.c (Fcall_interactively): Make the parsing of interactive
30739 specs somewhat more readable.
30740
307412007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30742
30743 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
30744 to scroll bar gap also when bitmap fills fringe. Draw only foreground
30745 if extended background has already been filled.
30746
307472007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30748
30749 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
30750 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
30751
30752 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
30753 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
30754 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
30755 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
30756 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
30757 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
30758 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
30759 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
30760 Run timers during dialog popup.
30761 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
30762
307632007-06-21 Jason Rumney <jasonr@gnu.org>
30764
30765 * image.c (convert_mono_to_color_image): Swap fore and background.
30766
307672007-06-20 Jason Rumney <jasonr@gnu.org>
30768
30769 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
30770 (w32_free_bdf_font): Unmap memory not handle.
30771
307722007-06-20 Sam Steingold <sds@gnu.org>
30773
30774 * gmalloc.c (__morecore): Fix the declaration to comply with the
30775 definition.
30776
307772007-06-20 Juanma Barranquero <lekktu@gmail.com>
30778
30779 * w32term.c (w32_delete_display): Remove leftover declaration.
30780 (w32_define_cursor, w32_initialize): Make static.
30781
30782 * w32.c (_wsa_errlist): Fix typo in error message.
30783 (init_environment): Ignore any environment variable from the
30784 registry having a null value.
30785
307862007-06-20 Glenn Morris <rgm@gnu.org>
30787
30788 * Makefile.in (LIBGIF): Default to -lgif.
30789
307902007-06-17 Jason Rumney <jasonr@gnu.org>
30791
30792 * w32menu.c (add_menu_item): Don't use multibyte string functions on
30793 unicode strings.
30794
307952007-06-16 Juanma Barranquero <lekktu@gmail.com>
30796
30797 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
30798 Fix typo in docstring.
30799
308002007-06-16 Eli Zaretskii <eliz@gnu.org>
30801
30802 * w32menu.c (add_menu_item): Escape `&' characters in menu items
30803 and their keybindings.
30804
308052007-06-15 Chong Yidong <cyd@stupidchicken.com>
30806
30807 * composite.c (update_compositions): Fix last fix.
30808
308092007-06-14 Jason Rumney <jasonr@gnu.org>
30810
30811 * w32.c (get_process_times_fn): New function pointer.
30812 (globals_of_w32): Intialize it if present in kernel32.dll.
30813 (w32_get_internal_run_time): New function.
30814
30815 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
30816
308172007-06-14 Kenichi Handa <handa@etlken.m17n.org>
30818
30819 * composite.c (update_compositions): Check the validness of
30820 compositions.
30821
308222007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30823
30824 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
30825 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
30826
30827 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
30828 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
30829
30830 * macgui.h (USE_MAC_TOOLBAR): New define.
30831
30832 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30833 Return immediately unless popup is activated.
30834
30835 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
30836 background to scroll bar gap.
30837 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
30838 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
30839 scroll bars on frame edge. Check fringe background extension.
30840 Don't clear extended fringe background area.
30841 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
30842 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
30843 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
30844 [USE_MAC_TOOLBAR]: New macros.
30845 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
30846 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
30847 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
30848 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
30849 [USE_MAC_TOOLBAR]: New functions.
30850 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
30851 manually if previous repositioning has failed.
30852 (mac_handle_keyboard_event): Use precomputed event kind.
30853 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
30854 as tool bar item click. Handle mouse movement over tool bar items.
30855
30856 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
30857 toolbar_win_gravity.
30858 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
30859 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
30860 Add externs.
30861
30862 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
30863 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
30864
308652007-06-14 Chong Yidong <cyd@stupidchicken.com>
30866
30867 * image.c (search_image_cache): Remove unused variable.
30868
308692007-06-13 Chong Yidong <cyd@stupidchicken.com>
30870
30871 * xfns.c, xmenu.c: Link to xaw3d if available.
30872
308732007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30874
30875 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
30876 frame_foreground and frame_background.
30877
30878 * image.c (lookup_image): Save frame foreground and background colors.
30879 (search_image_cache): Check if saved and current frame colors match.
30880
308812007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
30882
30883 * regex.c (regex_compile): Remove the `regnum' counter.
30884 Use bufp->re_nsub instead. Add support for \(?N:RE\).
30885
308862007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
30887
30888 * term.c: Include intervals.h to declare Fget_text_property.
30889
308902007-06-10 Jason Rumney <jasonr@gnu.org>
30891
30892 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
30893
308942007-06-08 Juanma Barranquero <lekktu@gmail.com>
30895
30896 * callint.c (Fcall_interactively):
30897 * editfns.c (Fdelete_and_extract_region):
30898 * fileio.c (Fread_file_name):
30899 * fns.c (Fmapconcat):
30900 * keyboard.c (cmd_error_internal):
30901 * keymap.c (Fkey_description):
30902 * lread.c (openp):
30903 * minibuf.c (read_minibuf):
30904 * search.c (wordify):
30905 * sunfns.c (sel_read):
30906 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
30907 * xfns.c (x_default_scroll_bar_color_parameter):
30908 * xmenu.c (menu_help_callback):
30909 * xselect.c (Fx_get_atom_name):
30910 * xterm.c (x_term_init): Use empty_unibyte_string.
30911
309122007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
30913
30914 * alloc.c (init_strings): Initialize canonical empty strings.
30915 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
30916 canonical empty string when the requested size is 0.
30917
30918 * emacs.c (empty_unibyte_string): Rename from empty_string.
30919 (empty_multibyte_string): New canonical empty string.
30920 (syms_of_emacs): Don't initialize empty_string.
30921
30922 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
30923 string, if appropriate.
30924 (empty_unibyte_string, empty_multibyte_string): New externs.
30925 (empty_string): Remove extern.
30926
30927 * lread.c (syms_of_lread): Use empty_unibyte_string.
30928
309292007-06-07 Jason Rumney <jasonr@gnu.org>
30930
30931 * s/ms-w32.h: Don't define HAVE_TZNAME.
30932
30933 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
30934
309352007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30936
30937 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
30938
30939 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
30940 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
30941
30942 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30943 Don't call next handler.
30944 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
30945 Remove argument. Install handler to application.
30946 (set_frame_menubar): Don't change deep_p.
30947 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
30948 FRAME_OUTER_TO_INNER_DIFF_Y.
30949 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
30950 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
30951 [HAVE_DIALOGS]: New macros.
30952 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
30953 Use them.
30954 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
30955
30956 * macselect.c [MAC_OSX] (install_service_handler): Rename from
30957 init_service_handler. All callers changed. Return OSStatus value.
30958
30959 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
30960 All callers changed so as not to call SetPortWindowPort.
30961 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
30962 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
30963 mac_draw_string_common.
30964 (mac_draw_image_string_qd): Likewise.
30965 (mac_draw_string_common): Use them. Add INLINE.
30966 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
30967 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
30968 GetGlobalMouse.
30969 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
30970 and FRAME_OUTER_TO_INNER_DIFF_Y.
30971 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
30972 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
30973 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
30974 repositioning window to mac_handle_window_event.
30975 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
30976 saving window location to mac_handle_window_event
30977 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
30978 (install_menu_target_item_handler): Remove argument in extern.
30979 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
30980 Also accept command events.
30981 (do_keystroke): New function created from XTread_socket.
30982 (init_command_handler): Remove functions.
30983 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
30984 and save window location by kEventWindowShowing and kEventWindowHiding
30985 handlers here. Don't call next handler for window state change and
30986 focus events.
30987 (mac_handle_application_event, mac_handle_keyboard_event)
30988 [TARGET_API_MAC_CARBON]: New functions.
30989 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
30990 kEventWindowShowing and kEventWindowHiding events. Move installation
30991 of mouse, font, text input and menu target item handlers to
30992 install_application_handler.
30993 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
30994 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30995 New function.
30996 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30997 Register it.
30998 (XTread_socket) [TARGET_API_MAC_CARBON]:
30999 Consolidate SendEventToEventTarget calls.
31000 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
31001 Move application activation handler to mac_handle_application_event.
31002 Move keyboard handler to mac_handle_keyboard_event.
31003 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
31004 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
31005 init_command_handler. Call install_application_handler.
31006
31007 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
31008 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
31009
310102007-06-07 Glenn Morris <rgm@gnu.org>
31011
31012 * emacs.c (main): Use `emacs-copyright' in --version output.
31013
310142007-06-06 Chong Yidong <cyd@stupidchicken.com>
31015
31016 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
31017
310182007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31019
31020 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
31021
31022 * macgui.h: Replace WindowPtr with WindowRef.
31023
31024 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31025 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31026 Replace ControlHandle with ControlRef.
31027 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
31028
31029 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31030 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31031 Replace ControlHandle with ControlRef.
31032 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
31033 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
31034
31035 * macterm.h (struct scroll_bar): Rename member control_handle_low
31036 and control_handle_high to control_ref_low and control_ref_high.
31037 All uses changed.
31038 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
31039 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
31040 respectively. All uses changed.
31041 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
31042 (install_window_handler, remove_window_handler): Replace WindowPtr
31043 with WindowRef in externs.
31044
310452007-06-05 Juanma Barranquero <lekktu@gmail.com>
31046
31047 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
31048
310492007-06-03 Nick Roberts <nickrob@snap.net.nz>
31050
31051 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
31052
31053 * frame.c (Fmouse_position, Fmouse_pixel_position):
31054 Condition on HAVE_GPM too.
31055
31056 * term.c (term_mouse_highlight): Remove unused variables.
31057 (Fterm_open_connection): Set gpm_zerobased to 1.
31058 (term_mouse_movement, term_mouse_click, handle_one_term_event):
31059 Use zero based co-ordinates.
31060 (handle_one_term_event): Report a drag as mouse movement too.
31061
31062 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
31063
310642007-06-03 Chong Yidong <cyd@stupidchicken.com>
31065
31066 * image.c (search_image_cache): New function. Require background
31067 color match if background color is unspecified in the image spec.
31068 (uncache_image, lookup_image): Use it.
31069
310702007-06-01 Juanma Barranquero <lekktu@gmail.com>
31071
31072 * window.c (Fshrink_window): Reflow docstring.
31073
310742007-06-02 Chong Yidong <cyd@stupidchicken.com>
31075
31076 * Version 22.1 released.
31077
310782007-06-01 Richard Stallman <rms@gnu.org>
31079
31080 * xfns.c (x_encode_text): Add GCPRO.
31081
310822007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31083
31084 * xfns.c (x_set_name_internal): Save encoded name before
31085 x_encode_text in case string data is relocated.
31086
310872007-05-31 Richard Stallman <rms@gnu.org>
31088
31089 * buffer.c (syms_of_buffer): Doc fix.
31090
310912007-05-30 Nick Roberts <nickrob@snap.net.nz>
31092
31093 * sysdep.c (init_sys_modes): Add rather than replace with
31094 O_NONBLOCK.
31095
31096 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
31097 term_mouse_moveto.
31098
31099 * termhooks.h (term_mouse_moveto): New extern.
31100
31101 * term.c (mouse_face_window): Rename...
31102 (Qmouse_face_window): ...to this.
31103 (term_show_mouse_face, term_clear_mouse_face)
31104 (term_mouse_highlight): Use Qmouse_face_window.
31105 (term_mouse_moveto): New function.
31106 (term_mouse_position): Make it work.
31107 (syms_of_term): Uncomment assignment to mouse_position_hook.
31108 Staticpro Qmouse_face_window.
31109
311102007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31111
31112 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
31113 around current_column call.
31114
311152007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
31116
31117 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
31118 * xdisp.c (next_element_from_buffer):
31119 * window.c (delete_window):
31120 * term.c (term_mouse_highlight):
31121 * msdos.c (getdefdir):
31122 * macterm.c (mac_create_bitmap_from_bitmap_data)
31123 (init_font_name_table):
31124 * fns.c (Fsxhash):
31125 * data.c (Fmake_local_variable):
31126 * ccl.c (ccl_driver): Likewise.
31127
311282007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31129
31130 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
31131 Call mac_wakeup_from_rne on window size change.
31132
311332007-05-25 Chong Yidong <cyd@stupidchicken.com>
31134
31135 * image.c (uncache_image): Fix typo.
31136
311372007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
31138
31139 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
31140
311412007-05-22 Richard Stallman <rms@gnu.org>
31142
31143 * xterm.c (x_connection_closed): Remove NO_RETURN.
31144
311452007-05-22 Martin Rudalics <rudalics@gmx.at>
31146
31147 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
31148
311492007-05-21 Chong Yidong <cyd@stupidchicken.com>
31150
31151 * image.c (uncache_image): New function.
31152 (Fimage_refresh): New function.
31153
311542007-05-20 Jan Djärv <jan.h.d@swipnet.se>
31155
31156 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
31157
311582007-05-20 Nick Roberts <nickrob@snap.net.nz>
31159
31160 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
31161 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
31162
311632007-05-20 Nick Roberts <nickrob@snap.net.nz>
31164
31165 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
31166 conditional on [HAVE_GPM_H].
31167
311682007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
31169
31170 * syntax.c (skip_chars): Update syntax-table only after we checked that
31171 the new location is valid.
31172
311732007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31174
31175 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
31176 mac_get_window_bounds.
31177
311782007-05-20 Nick Roberts <nickrob@snap.net.nz>
31179
31180 * Makefile.in (LIBGPM): Allow it to be set from configure.
31181 If set then link Emacs with it.
31182
31183 * config.in: Regenerate.
31184
31185 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
31186 New externs.
31187
31188 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
31189 Include gpm.h.
31190 (handle_one_term_event, term_gpm): New externs.
31191
31192 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
31193 and allow it to be interrupted by SIGIO.
31194
31195 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
31196 (wait_reading_process_output): Wait on gpm_fd too.
31197 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
31198 (add_gpm_wait_descriptor_called_flag): New variable.
31199 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
31200
31201 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
31202 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
31203 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
31204 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
31205 (make_lispy_event): Add case GPM_CLICK_EVENT.
31206 (read_avail_input): Handle mouse input.
31207
31208 * term.c (write_glyphs_with_face): New function.
31209 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
31210 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
31211 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
31212 (mouse_face_face_id, term_gpm, pos_x, pos_y)
31213 (last_mouse_x, last_mouse_y): New variables.
31214 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
31215 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
31216 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
31217 (Fterm_close_connection): New functions.
31218 (term_init): Initialise mouse_face_window.
31219
312202007-05-19 Chong Yidong <cyd@stupidchicken.com>
31221
31222 * xdisp.c (redisplay_window): If first window line is a
31223 continuation line, recompute the new window start instead of
31224 recentering.
31225
312262007-05-18 Glenn Morris <rgm@gnu.org>
31227
31228 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
31229 Suggested by Alfred M. Szmidt <ams@gnu.org>.
31230
312312007-05-17 Glenn Morris <rgm@gnu.org>
31232
31233 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
31234
312352007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31236
31237 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
31238 dead key repeat and up events.
31239
312402007-05-14 Chong Yidong <cyd@stupidchicken.com>
31241
31242 * image.c (pbm_load): Check image size for monochrome pbm.
31243
312442007-05-13 Chong Yidong <cyd@stupidchicken.com>
31245
31246 * xterm.c (XTread_socket): Revert last change.
31247
312482007-05-12 Chong Yidong <cyd@stupidchicken.com>
31249
31250 * image.c (pbm_load): Correctly check image size for greyscale pbm.
31251
31252 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
31253
312542007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31255
31256 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
31257 mixup (YAILOM).
31258
312592007-05-07 Andreas Schwab <schwab@suse.de>
31260
31261 * keymap.c (Flookup_key): Fix typo in last change.
31262
312632007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31264
31265 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
31266 mapping for unibyte strings.
31267
312682007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31269
31270 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
31271 (Fx_popup_dialog) [MAC_OSX]: Likewise.
31272
312732007-04-29 Richard Stallman <rms@gnu.org>
31274
31275 * insdel.c (replace_range): For undo, record insertion first.
31276
312772007-04-29 Andreas Schwab <schwab@suse.de>
31278
31279 * lisp.h (VECSIZE): Use OFFSETOF.
31280
312812007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31282
31283 * xdisp.c (try_window_reusing_current_matrix): Fix number of
31284 disabled lines.
31285
312862007-04-28 Richard Stallman <rms@gnu.org>
31287
31288 * lread.c (read_escape): In a string, \s is always space.
31289
312902007-04-27 Jan Djärv <jan.h.d@swipnet.se>
31291
31292 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
31293
31294 * gtkutil.c (xg_update_menubar, create_menus): Create empty
31295 submenu for menu bar items.
31296
31297See ChangeLog.10 for earlier changes.
31298
31299;; Local Variables:
31300;; coding: utf-8
aac0c6e3
MR
31301;; End:
31302
73b0cd50 31303 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
31304
31305 This file is part of GNU Emacs.
31306
31307 GNU Emacs is free software: you can redistribute it and/or modify
31308 it under the terms of the GNU General Public License as published by
31309 the Free Software Foundation, either version 3 of the License, or
31310 (at your option) any later version.
31311
31312 GNU Emacs is distributed in the hope that it will be useful,
31313 but WITHOUT ANY WARRANTY; without even the implied warranty of
31314 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31315 GNU General Public License for more details.
31316
31317 You should have received a copy of the GNU General Public License
31318 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.