* filelock.c (lock_file_1): Rename local to avoid shadowing.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
5df8f01b
PE
12011-03-15 Paul Eggert <eggert@cs.ucla.edu>
2
03d78a21 3 * filelock.c (within_one_second): Now static.
b3dd38ab 4 (lock_file_1): Rename local to avoid shadowing.
03d78a21 5
5df8f01b
PE
6 * buffer.c (fix_overlays_before): Mark locals as initialized.
7 (fix_start_end_in_overlays): Likewise. This function should be
8 simplified by using pointers-to-pointers, but that's a different
9 matter.
10
59d6fe83
PE
112011-03-14 Paul Eggert <eggert@cs.ucla.edu>
12
c3bd59b5 13 * buffer.c (switch_to_buffer_1): Now static.
8f54f30a
PE
14 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
15 (report_overlay_modification): Rename locals to avoid shadowing.
c3bd59b5 16
a70072c9 17 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
fbd02d7b 18 Fix pointer signedness issue.
edced198
PE
19 (sys_subshell): Mark local as volatile if checking for lint,
20 to suppress a gcc -Wclobbered warning that does not seem to be right.
15dfd3d9 21 (MAXPATHLEN): Define only if needed.
a70072c9 22
a0977c44
PE
23 * process.c (serial_open, serial_configure): Move decls from here ...
24 * systty.h: ... to here, so that they can be checked.
25
a884fdcc
PE
26 * fns.c (get_random, seed_random): Move extern decls from here ...
27 * lisp.h: ... to here, so that they can be checked.
28
604efe86 29 * sysdep.c (reset_io): Now static.
b8950c94 30 (wait_for_termination_signal): Remove; unused.
604efe86 31
38fc62d9
PE
32 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
33 (copy_keymap_item, append_key, push_text_char_description):
34 Now static.
1004a21a 35 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
dbbb8427 36 (DENSE_TABLE_SIZE): Remove; unused.
c1141155
PE
37 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
38 (describe_map_tree):
39 Rename locals to avoid shadowing.
38fc62d9 40
2f2650da
PE
41 * keyboard.c: Declare functions static if they are not used elsewhere.
42 (echo_char, echo_dash, cmd_error, top_level_2):
43 (poll_for_input, handle_async_input): Now static.
69a058fa
PE
44 (read_char, kbd_buffer_get_event, make_lispy_position):
45 (make_lispy_event, make_lispy_movement, apply_modifiers):
46 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
47 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
48 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
c8a06054 49 (read_key_sequence, read_char): Mark locals as initialized.
3ac94672 50 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
2f2650da 51
a053e86c 52 * keyboard.h (make_ctrl_char): New decl.
da2f2dd9
PE
53 (mark_kboards): Move decl here ...
54 * alloc.c (mark_kboards): ... from here.
a053e86c 55
4752793e
PE
56 * lisp.h (force_auto_save_soon): New decl.
57
74f10ca7 58 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
244fc23d
PE
59 (DEFINE_DUMMY_FUNCTION): New macro.
60 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
61 Use it.
c03cd23f
PE
62 (main): Add casts to avoid warnings
63 if GCC considers string literals to be constants.
74f10ca7 64
022e70d4
PE
65 * lisp.h (fatal_error_signal): Add decl, since it's exported.
66
59d6fe83
PE
67 * dbusbind.c: Pointer signedness fixes.
68 (xd_signature, xd_append_arg, xd_initialize):
69 (Fdbus_call_method, Fdbus_call_method_asynchronously):
70 (Fdbus_method_return_internal, Fdbus_method_error_internal):
71 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
72 (Fdbus_register_signal): Use SSDATA when the context wants char *.
73
78320123
PE
74 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
75 if GCC considers string literals to be constants.
49cebcca 76 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
78320123 77
cffc6f3b
CY
782011-03-13 Chong Yidong <cyd@stupidchicken.com>
79
80 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
81 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
82 These macros can no longer be used for assignment.
83
84 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
85 struct members directly, instead of using BUF_BEGV etc.
86 (record_buffer_markers, fetch_buffer_markers): New functions for
87 recording and fetching special buffer markers.
88 (set_buffer_internal_1, set_buffer_temp): Use them.
89
90 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
91
92 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
93
94 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
95 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
96
97 * xdisp.c (hscroll_window_tree):
98 (reconsider_clip_changes): Use PT instead of BUF_PT.
99
d251f04b
EZ
1002011-03-13 Eli Zaretskii <eliz@gnu.org>
101
102 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
103 $(EMACS_ROOT)/lib/intprops.h.
104
f0c77cd1
PE
1052011-03-13 Paul Eggert <eggert@cs.ucla.edu>
106
3eca4629
PE
107 Fix more problems found by GCC 4.5.2's static checks.
108
7c86ee98
PE
109 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
110 to unsigned char * to avoid compiler diagnostic.
b0afc268
PE
111 (xg_free_frame_widgets): Make it clear that a local variable is
112 needed only if USE_GTK_TOOLTIP.
01e0b5ad
PE
113 (gdk_window_get_screen): Make it clear that this macro is needed
114 only if USE_GTK_TOOLTIP.
1e5524e7
PE
115 (int_gtk_range_get_value): New function, which avoids a diagnostic
116 from gcc -Wbad-function-cast.
117 (xg_set_toolkit_scroll_bar_thumb): Use it.
118 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
119 diagnostic from gcc -Wbad-function-cast.
65dc836c
PE
120 (get_utf8_string, xg_get_file_with_chooser):
121 Rename locals to avoid shadowing.
122 (create_dialog): Move locals to avoid shadowing.
7c86ee98 123
41729b81
PE
124 * xgselect.c (xg_select): Remove unused var.
125
f0c77cd1
PE
126 * image.c (four_corners_best): Mark locals as initialized.
127 (gif_load): Initialize transparent_p to zero (Bug#8238).
128 Mark another local as initialized.
ec6cf4c6 129 (my_png_error, my_error_exit): Mark with NO_RETURN.
f0c77cd1 130
ce0ad53d 131 * image.c (clear_image_cache): Now static.
d5d5a617 132 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
e22cffbc 133 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
77a765fd
PE
134 (x_edge_detection): Remove unnecessary cast that
135 gcc -Wbad-function-cast diagnoses.
2037898d 136 (gif_load): Fix pointer signedness.
6ae141d6
PE
137 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
138 (jpeg_load, gif_load): Rename locals to avoid shadowing.
ce0ad53d 139
3eca4629
PE
1402011-03-11 Paul Eggert <eggert@cs.ucla.edu>
141
d32df629
PE
142 Improve quality of tests for time stamp overflow.
143 For example, without this patch (encode-time 0 0 0 1 1
144 1152921504606846976) returns the obviously-bogus value (-948597
145 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
146 reports time overflow. See
147 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
b8d9bd41
PE
148 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
149 * editfns.c: Include limits.h and intprops.h.
150 (TIME_T_MIN, TIME_T_MAX): New macros.
151 (time_overflow): Move earlier, to before first use.
152 (hi_time, lo_time): New functions, for an accurate test for
153 out-of-range times.
154 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
155 (Fget_internal_run_time): Don't assume time_t fits in int.
156 (make_time): Use list2 instead of Fcons twice.
157 (Fdecode_time): More accurate test for out-of-range times.
158 (check_tm_member): New function.
159 (Fencode_time): Use it, to test for out-of-range times.
d32df629
PE
160 (lisp_time_argument): Don't rely on undefined left-shift and
161 right-shift behavior when checking for time stamp overflow.
8be6f318 162
fe31d94c
PE
163 * editfns.c (time_overflow): New function, refactoring common code.
164 (Fformat_time_string, Fdecode_time, Fencode_time):
165 (Fcurrent_time_string): Use it.
166
8be6f318
PE
167 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
168 * dired.c (make_time): Move to ...
169 * editfns.c (make_time): ... here.
170 * systime.h: Note the move.
171
09d9db2c 1722011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c47cbdfd 173
126bc0dc
YM
174 * fringe.c (update_window_fringes): Remove unused variables.
175
c47cbdfd
YM
176 * unexmacosx.c (copy_data_segment): Also copy __got section.
177 (Bug#8223)
178
7ac80be9
EZ
1792011-03-12 Eli Zaretskii <eliz@gnu.org>
180
058e5dad
EZ
181 * termcap.c [MSDOS]: Include "msdos.h.
182 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
183 Constify `char *' arguments and their references according to
184 prototypes in tparam.h.
185
ecb0f94d 186 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
058e5dad 187
7ac80be9
EZ
188 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
189 Adapt all references accordingly.
190
191 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
192
ef1fd07e
TT
1932011-03-11 Tom Tromey <tromey@redhat.com>
194
195 * buffer.c (syms_of_buffer): Remove obsolete comment.
196
7ef4b50c
EZ
1972011-03-11 Eli Zaretskii <eliz@gnu.org>
198
199 * termhooks.h (encode_terminal_code): Declare prototype.
200
201 * msdos.c (encode_terminal_code): Don't declare prototype.
202
203 * term.c (encode_terminal_code): Now external again, used by
204 w32console.c and msdos.c.
205
206 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend
207 on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
208
4b1ec863 2092011-03-11 Paul Eggert <eggert@cs.ucla.edu>
f78faa98 210
1714f52b 211 Fix some minor problems found by GCC 4.5.2's static checks.
83316bf4 212
4b1ec863
PE
213 * fringe.c (update_window_fringes): Mark locals as initialized
214 (Bug#8227).
215 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
bf60f616 216
524c7aa6
PE
217 * alloc.c (mark_fringe_data): Move decl from here ...
218 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
219 to check its interface.
220 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
221
a5c0af81 222 * fontset.c (free_realized_fontset): Now static.
7519b8cd 223 (Fset_fontset_font): Rename local to avoid shadowing.
cc6e5db1 224 (fontset_font): Mark local as initialized.
a9a06e0b 225 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
a5c0af81 226
b4716021
PE
227 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
228
811e9bac 229 * xselect.c (x_disown_buffer_selections): Remove; not used.
7b83e2f1 230 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
aa0daa9f
PE
231 (x_own_selection, Fx_disown_selection_internal): Rename locals
232 to avoid shadowing.
233 (x_handle_dnd_message): Remove local to avoid shadowing.
811e9bac 234
7e3ab302
PE
235 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
236 so that the caller can use some name other than gcpro1.
237 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
58d2d479
PE
238 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
239 (Fx_backspace_delete_keys_p):
240 Use them to avoid shadowing, and rename vars to avoid shadowing.
241 (x_decode_color, x_set_name, x_window): Now static.
6b437900 242 (Fx_create_frame): Add braces to silence GCC warning.
c0951e53 243 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
06b0c8a0
PE
244 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
245 Remove unused locals.
7e3ab302
PE
246 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
247 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
248 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
249 macros.
f78faa98 250
e2b13473
PE
251 * xterm.h (x_mouse_leave): New decl.
252
77f23912
PE
253 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
254 Remove unused functions.
cdf4ba58
PE
255 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
256 (x_calc_absolute_position): Now static.
7411c686 257 (XTread_socket): Don't define label "out" unless it's used.
2b07bcff 258 Don't declare local "event" unless it's used.
ed7bf3a5
PE
259 (x_iconify_frame, x_free_frame_resources): Don't declare locals
260 unless they are used.
38d0b34a
PE
261 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
262 (x_fatal_error_signal): Remove; not used.
a6067996
PE
263 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
264 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
265 (x_error_catcher, x_connection_closed, x_error_handler):
266 (x_error_quitter, xembed_send_message, x_iconify_frame):
267 (my_log_handler): Rename locals to avoid shadowing.
28f1c698 268 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
2a8fade0 269 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
77f23912 270
071048a3
PE
271 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
272 or move locals to avoid shadowing.
6b463e58 273 (tty_defined_color, merge_face_heights): Now static.
5967d051 274 (free_realized_faces_for_fontset): Remove; not used.
1e9966ea
PE
275 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
276 does not deduce is never used uninitialized.
73719eba
PE
277 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
278 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
071048a3 279
426994c3 280 * terminal.c (store_terminal_param): Now static.
5489860b 281
032f1620 282 * xmenu.c (menu_highlight_callback): Now static.
9d66f88e 283 (set_frame_menubar): Remove unused local.
d4323972 284 (xmenu_show): Rename parameter to avoid shadowing.
6d1f7fee
PE
285 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
286 since they might point to immutable storage.
281585b0
PE
287 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
288 since it's unused otherwise.
032f1620 289
367c19e5 290 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
53df7c11 291 Add a FIXME, since the code still doesn't look right. (Bug#8215)
9f36b9fd
PE
292 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
293 avoids a gcc -Wuninitialized diagnostic.
0e086e8f 294 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
44a3a108
PE
295 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
296 does not deduce are never used uninitialized.
70739cbe 297
07b48fa9
PE
298 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
299
8868a238 300 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
4554d213
PE
301 * window.c (window_loop, size_window):
302 (run_window_configuration_change_hook, enlarge_window): Likewise.
8868a238 303
7e5cf297 304 * window.c (display_buffer): Now static.
d6550a9f
PE
305 (size_window): Mark variables that gcc -Wuninitialized
306 does not deduce are never used uninitialized.
a586633d
PE
307 * window.h (check_all_windows): New decl, to forestall
308 gcc -Wmissing-prototypes diagnostic.
5b555da1 309 * dispextern.h (bidi_dump_cached_states): Likewise.
7e5cf297 310
f6095868
PE
311 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
312 shadowing.
313 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
726929c4
PE
314 Include <limits.h>.
315 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
316 and to avoid gcc -Wuninitialized warning.
89ef49df
PE
317 (load_charset_map): Mark variables that gcc -Wuninitialized
318 does not deduce are never used uninitialized.
53df7c11 319 (load_charset): Abort instead of using uninitialized var (Bug#8229).
f6095868 320
f38b440c
PE
321 * coding.c (coding_set_source, coding_set_destination):
322 Use "else { /* comment */ }" rather than "else /* comment */;"
323 for clarity, and to avoid gcc -Wempty-body warning.
2735d060
PE
324 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
325 a block, when the outer 'i' will do.
326 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
327 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
328 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
329 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
330 (Fdecode_sjis_char, Fdefine_coding_system_internal):
331 Rename locals to avoid shadowing.
332 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
e2f1bab9
PE
333 * coding.c (emacs_mule_char, encode_invocation_designation):
334 Now static, since they're not used elsewhere.
413bb2db 335 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
c4a63b12 336 (decode_coding_object, encode_coding_object, detect_coding_system):
ee05f961
PE
337 (decode_coding_emacs_mule): Mark variables that gcc
338 -Wuninitialized does not deduce are never used uninitialized.
160b01f6
PE
339 (detect_coding_iso_2022): Initialize a local variable that might
340 be used uninitialized. Leave a FIXME because it's not clear that
53df7c11 341 this initialization is needed. (Bug#8211)
5f58e762
PE
342 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
343 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
344 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
345 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
346 Remove unused macros.
f38b440c 347
232b38b9 348 * category.c (hash_get_category_set): Remove unused local var.
9f3b5e69 349 (copy_category_table): Now static, since it's not used elsewhere.
d0891610 350 * character.c (string_count_byte8): Likewise.
232b38b9 351
fb90da1b
PE
352 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
353 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
354
fb93dbc2
PE
355 * chartab.c (copy_sub_char_table): Now static, since it's not used
356 elsewhere.
5c156ace
PE
357 (sub_char_table_ref_and_range, char_table_ref_and_range):
358 Rename locals to avoid shadowing.
bbcd0949 359 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
fb93dbc2 360
7d3b3862 361 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
630d6892 362 (BIDI_BOB): Remove unused macro.
7d3b3862 363
6be7d3da
PE
364 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
365 deduce are never used uninitialized.
c2ed9c8b 366 * term.c (encode_terminal_code): Likewise.
6be7d3da 367
75f8807f 368 * term.c (encode_terminal_code): Now static. Remove unused local.
72abad34 369
50938595
PE
370 * tparam.h: New file.
371 * term.c, tparam.h: Include it.
372 * deps.mk (term.o, tparam.o): Depend on tparam.h.
373 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
374 Move these decls to tparam.h, and make them agree with what
375 is actually in tparam.c. The previous trick of using incompatible
376 decls in different modules does not conform to the C standard.
377 All callers of tparam changed to use tparam's actual API.
378 * tparam.c (tparam1, tparam, tgoto):
379 Use const pointers where appropriate.
380
fbceeba2
PE
381 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
382 * cm.h (struct cm): Likewise.
383 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
384 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
385 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
386 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
387 (turn_on_face, init_tty): Likewise.
388 * termchar.h (struct tty_display_info): Likewise.
fbceeba2 389
7f3f1250
PE
390 * term.c (term_mouse_position): Rename local to avoid shadowing.
391
e6ca6543
PE
392 * alloc.c (mark_ttys): Move decl from here ...
393 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
394
c40f8d15
AS
3952011-03-11 Andreas Schwab <schwab@linux-m68k.org>
396
397 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
398
cfe0661d
JB
3992011-03-09 Juanma Barranquero <lekktu@gmail.com>
400
401 * search.c (compile_pattern_1): Remove argument regp, unused since
402 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
403 (compile_pattern): Don't pass it.
404
0afb4571
J
4052011-03-08 Jan Djärv <jan.h.d@swipnet.se>
406
407 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
408 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
409 for ! HAVE_GTK3.
410 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
411
412 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
413
414 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
415 gdk_window_get_screen, gdk_window_get_geometry,
416 gdk_x11_window_lookup_for_display and GDK_KEY_g.
417 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
418 (xg_get_pixbuf_from_pixmap): New function.
419 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
420 to Pixmap, take frame as parameter, remove GdkColormap parameter.
421 Call xg_get_pixbuf_from_pixmap instead of
422 gdk_pixbuf_get_from_drawable.
423 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
424 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
425 (xg_check_special_colors): Use GtkStyleContext and its functions
426 for HAVE_GTK3.
427 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
428 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
429 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
430 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call
431 gtk_widget_get_preferred_size.
432 (xg_frame_resized): gdk_window_get_geometry only takes 5
433 parameters.
434 (xg_win_to_widget, xg_event_is_for_menubar): Call
435 gdk_x11_window_lookup_for_display.
436 (xg_set_widget_bg): New function.
437 (delete_cb): New function.
438 (xg_create_frame_widgets): connect delete-event to delete_cb.
439 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
440 (xg_set_background_color): Call xg_set_widget_bg.
441 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
442 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
443 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
444 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
445 if ! HAVE_GTK3.
446 (update_frame_tool_bar): Call gtk_widget_hide.
447 (xg_initialize): Use GDK_KEY_g.
448
449 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
450 if ! HAVE_GTK3
451 (x_session_initialize): Call gdk_x11_set_sm_client_id.
452
453 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
454 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
455 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
456
1c2cc4ef
JB
4572011-03-08 Juanma Barranquero <lekktu@gmail.com>
458
459 * w32xfns.c (select_palette): Check success of RealizePalette against
460 GDI_ERROR, not zero.
461
7faeca66
BK
4622011-03-07 Ben Key <bkey76@gmail.com>
463
464 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
465 (file_dialog_callback): Fix locating the window handle of the File Name
466 text field. After disabling it, set focus on the list control.
467 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
468 Name text field to "Current Directory" if it does not already have
cfe0661d 469 another value. (Bug#8181)
7faeca66 470
cf715c3c
AR
4712011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
472
473 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
474 parameter for hbar cursors. Based on a patch by Ben Key
475 <bkey76@gmail.com>.
476
ef272f1f
CY
4772011-03-06 Chong Yidong <cyd@stupidchicken.com>
478
479 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
480 change.
481
5489860b
PE
4822011-03-06 Paul Eggert <eggert@cs.ucla.edu>
483
5f349a89
PE
484 current_column: Now returns EMACS_INT, fixing some iftc
485 that was introduced in the 2002-06-02 change "temporarily"; see
486 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
7831777b
PE
487 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
488 * cmds.c (internal_self_insert): Likewise.
489 * indent.c (Fcurrent_column): Likewise.
490 * keymap.c (describe_command): Likewise.
491 * minibuf.c (read_minibuf): Likewise.
492 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
493 to int.
494 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
495 Likewise.
496 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
497 not int or double, if they might contain a column number.
498 * indent.c (current_column, Findent_to, indented_beyond_p):
499 (compute_motion, vmotion): Likewise.
500 * keymap.c (describe_command): Likewise.
501 * xdisp.c (pint2str): Likewise.
502 * indent.c (last_known_column): Now EMACS_INT, not int.
503 * minibuf.c (minibuf_prompt_width): Likewise.
504 * indent.c (current_column, current_column_1, position_indentation):
505 Return EMACS_INT, not double.
506 * lisp.h (current_column): Likewise.
507 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
508 All callers changed.
509 * lisp.h (indented_beyond_p): Likewise.
510
e9588e2e
PE
511 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
512 from xdisp.c, and make static, since these are used only here.
513 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
514 Remove decls.
515
1e12733b 516 * cmds.c (internal_self_insert): Reindent to match Emacs style.
179b8720 517 * xdisp.c (redisplay_window): Likewise.
1e12733b 518
5489860b
PE
519 * xdisp.c: Rename or move local decls to avoid shadowing.
520 (init_iterator, handle_fontified_prop, handle_single_display_spec):
521 (message_dolog, message_with_string, redisplay_internal):
522 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
523 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
524 (display_line, display_string, rows_from_pos_range):
525 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
526 Rename or move local decls.
7b781e9f 527 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
841081e1
PE
528 (produce_glyphless_glyph): Make a pointer "const"
529 since it might point to immutable storage.
cfe0661d 530 (update_window_cursor): Now static, since it's not used elsewhere.
acbfe54c 531 (SKIP_GLYPHS): Removed unused macro.
5489860b 532
aa248733
MS
5332011-03-06 Michael Shields <shields@msrl.com> (tiny change)
534
535 * window.c (Fnext_window): Doc fix. (Bug#5567)
536
04cb6840
CY
5372011-03-05 Chong Yidong <cyd@stupidchicken.com>
538
539 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
540
22c28cb8 5412011-03-02 Ken Brown <kbrown@cornell.edu>
5aef9e9a
KB
542
543 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
544
6c0dea8a
PE
5452011-03-02 Paul Eggert <eggert@cs.ucla.edu>
546
547 Work around some portability problems with symlinks.
548
549 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
550 generate a special message for it. Suggested by Eli Zaretskii in
551 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
552 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
553 Simplify the code by assuming that the readlink and symlink calls
554 exist, even if they always fail on this host.
555 (Ffile_readable_p): Likewise, for fifos.
556 * config.in: Regenerate.
557
52eb77a6
CY
5582011-02-27 Chong Yidong <cyd@stupidchicken.com>
559
560 * frame.c (store_frame_param): Don't store value directly in
561 buffer_list and buried_buffer_list; copy the list and remove dead
562 buffers (Bug#7898).
563
0f7bb05d
EZ
5642011-02-27 Eli Zaretskii <eliz@gnu.org>
565
40be44e2
EZ
566 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
567
01c35094 568 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
40be44e2 569
0f7bb05d
EZ
570 * w32.c (symlink, readlink): New stub functions.
571
27786b2f
PE
5722011-02-27 Paul Eggert <eggert@cs.ucla.edu>
573
c783d15b
PE
574 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
575 This avoids a gcc warning in some configurations.
576
76c1cebc
PE
577 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
578
0ff162fc
PE
579 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
580 (set_menu_bar_lines, x_get_resource_string): New decls.
581 * msdos.c (set_menu_bar_lines): Omit decl.
582
fdb0b28b
PE
583 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
584 It's always given int values and used as an int. This suppresses
585 a gcc "comparison of unsigned expression >= 0" warning in some
586 configurations.
587
27786b2f
PE
588 * dispnew.c: Rename locals to avoid shadowing.
589 (update_text_area, scrolling_window, update_frame_1): Rename locals.
590
09ad5a91
PE
5912011-02-26 Paul Eggert <eggert@cs.ucla.edu>
592
593 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
594 (copy_glyph_row_contents): Remove; not used.
595 (frame_row_to_window, check_current_matrix_flags):
596 (window_change_signal): Now static, since they're not used elsewhere.
597 (check_current_matrix_flags): Surround with "#if 0", since its
598 only use is in a comment. Maybe both the comment and the "#if 0"
599 stuff should be removed?
600
d2d37ddc
PE
601 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
602 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
603 contexts that actually need it.
604
003fa8b6
EZ
6052011-02-26 Eli Zaretskii <eliz@gnu.org>
606
607 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
608 (lstat): Define for DJGPP < 2.04.
609
b1894766
PE
6102011-02-25 Paul Eggert <eggert@cs.ucla.edu>
611
612 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
613 as per recent filemodestring API change. Reported by Jonas Öster in
614 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
615
e18c0aa3 6162011-02-23 Ben Key <bkey76@gmail.com>
2c6584e8
BK
617
618 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
619 directly, for bar cursors.
620
6212011-02-23 Chong Yidong <cyd@stupidchicken.com>
622
623 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
624 into the frame's cursor_width.
625
617a0e83
SM
6262011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
627
628 * print.c (print_object): Never print old-style backquotes.
629 Obey escapeflag for hash tables as well.
630
cce7d530 6312011-02-23 Kenichi Handa <handa@m17n.org>
e3b300a4
KH
632
633 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
cce7d530 634 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
e3b300a4 635
8d40723d
PE
6362011-02-22 Paul Eggert <eggert@cs.ucla.edu>
637
638 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
639
aa0f73d1
WJ
6402011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
641
642 * lread.c (openp): Correct Boolean typo in last commit.
643
bdaa0745
AR
6442011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
645
646 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
aa0f73d1 647 key to Emacs, treat as unmodified (go to input manager processing).
bdaa0745 648
f68c809d
PE
6492011-02-22 Paul Eggert <eggert@cs.ucla.edu>
650
651 Assume S_ISLNK etc. work, since gnulib supports this.
652 * config.in: Regenerate.
653 * dired.c (lstat): Remove.
654 (file_name_completion): Assume S_ISDIR works.
655 (file_name_completion_stat): Assume S_ISLNK works.
656 Do not bother calling stat unless lstat says it's a symlink.
657 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
658 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
659 (check_writable, Ffile_writable_p, Fset_file_times):
660 Assume S_ISDIR works.
661 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
662 fifos exist.
2f8f196d 663 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
f68c809d
PE
664 * filelock.c (S_ISLNK): Remove.
665 * lread.c (openp): Assume S_ISDIR works.
666 * xrdb.c (S_ISDIR): Remove.
667
25c51af3
EZ
6682011-02-21 Eli Zaretskii <eliz@gnu.org>
669
670 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
2f8f196d 671 lib/makefile.w32-in.
25c51af3
EZ
672 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
673 (GLOBAL_SOURCES): Remove filemode.c.
674 (OBJ1): Remove $(BLD)/filemode.$(O).
675
5c185672
PE
6762011-02-21 Paul Eggert <eggert@cs.ucla.edu>
677
678 Import filemode module from gnulib.
679 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
680 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
681 (filemode.o): Remove; this is now in ../lib.
682 * dired.c: Include <filemode.h>.
683 (filemodestring): Remove now-redundant decl.
684 * config.in: Regenerate.
685
32159fc3
CS
6862011-02-20 Eli Zaretskii <eliz@gnu.org>
687
688 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
689 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
690
2f8f196d 6912011-02-20 Christoph Scholtes <cschol2112@gmail.com>
32159fc3
CS
692
693 * makefile.w32-in: Remove md5.$(O).
694 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
695 lib/makefile.w32-in.
696
61353ac8 6972011-02-20 Paul Eggert <eggert@cs.ucla.edu>
ff05203e 698
61353ac8
PE
699 Import crypto/md5 and stdint modules from gnulib.
700 * Makefile.in (base_obj): Remove md5.o, since this file
701 is in lib now.
702 * config.in: Regenerate.
703 * md5.h, md5.h: Move to ../lib.
704 * deps.mk (md5.o): Remove.
705 (fns.o): Depend on ../lib/md5.h, not md5.h.
706
9d9d12cd
EZ
7072011-02-19 Eli Zaretskii <eliz@gnu.org>
708
f601db19
EZ
709 * termcap.c (tputs): Don't declare baud_rate.
710
9d9d12cd
EZ
711 * s/msdos.h (strtold): Define to _strtold.
712
aa56f361
SM
7132011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
714
cbe81f1d
SM
715 * process.c (Fstart_process, Fmake_serial_process)
716 (Fmake_network_process, server_accept_connection):
717 Use empty_unibyte_string.
718
719 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
720
aa56f361
SM
721 * lread.c (Qdir_ok): New constant.
722 (syms_of_lread): Initialize it.
723 (openp): Don't ignore directories if the predicate returns dir-ok.
724
d6de49a1
EZ
7252011-02-18 Eli Zaretskii <eliz@gnu.org>
726
42af913d
EZ
727 * xdisp.c (display_line): Fix the change made for bug#7939.
728
d6de49a1
EZ
729 * terminal.c (create_terminal): Use default-keyboard-coding-system
730 and default-terminal-coding-system to initialize coding systems of
731 the new terminal. (Bug#7840)
732
b286858c
SM
7332011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
734
735 * lisp.h (BYTE_MARK_STACK): New macro.
736 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
737
738 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
739 (struct byte_stack): Only define `top' and `bottom' if used.
740 (mark_byte_stack): Only define if used.
741 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
742 is not set.
743 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
744
745 * term.c (OUTPUT_IF): Use OUTPUT.
746
747 * alloc.c (Fgarbage_collect): When using stack scanning, don't
748 redundantly scan byte-code stacks, catchlist, and handlerlist.
749
124c9ff0
JD
7502011-02-17 Jan Djärv <jan.h.d@swipnet.se>
751
752 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
753 (Fns_read_file_name): Replace B_ with BVAR.
754
755 * nsterm.m (ns_term_init): Use KVAR.
756
05c65251
EZ
7572011-02-16 Eli Zaretskii <eliz@gnu.org>
758
026d69ec
EZ
759 * msdos.c (internal_terminal_init): Use KVAR.
760
05c65251
EZ
761 * w32fns.c (Fx_create_frame): Use KVAR.
762
763 * w32term.c (w32_create_terminal): Use KVAR.
764
765 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
eef5ce6e 766 (getloadavg): Declare prototype which was removed from lisp.h.
05c65251
EZ
767
768 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
769
b286858c
SM
770 * fileio.c (Finsert_file_contents, Fwrite_region):
771 Remove references to buffer_file_type.
05c65251
EZ
772 (syms_of_fileio): Don't intern and staticpro
773 find-buffer-file-type.
774
775 * callproc.c (syms_of_callproc): Remove references to
776 buffer_file_type.
777
778 * buffer.c (reset_buffer_local_variables): Don't set
779 buffer_file_type.
780 (init_buffer_once): Likewise.
781 (syms_of_buffer): Don't define buffer-file-type.
782
783 * buffer.h (struct buffer): Remove buffer_file_type.
784
1344aad4
TT
7852011-02-16 Tom Tromey <tromey@parfait>
786
15f58304
EZ
787 * callint.c (Fcall_interactively): Update for change to field names.
788 * doc.c (Fsubstitute_command_keys): Update for change to field names.
789 * cmds.c (Fself_insert_command): Update for change to field names.
1344aad4 790 * keymap.c (Fcurrent_active_maps, Fkey_binding)
15f58304 791 (Fdescribe_buffer_bindings): Update for change to field names.
1344aad4
TT
792 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
793 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
15f58304 794 Update for change to field names.
1344aad4
TT
795 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
796 (echo_length, echo_truncate, cmd_error, command_loop_1)
797 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
798 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
799 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
800 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
15f58304
EZ
801 Update for change to field names.
802 * xfns.c (Fx_create_frame): Update for change to field names.
803 * xterm.c (x_connection_closed, x_term_init): Update for change to
804 field names.
1344aad4 805 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
15f58304 806 Update for change to field names.
1344aad4 807 * window.c (window_scroll_pixel_based, window_scroll_line_based):
15f58304 808 Update for change to field names.
1344aad4 809 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
15f58304 810 (delete_frame): Update for change to field names.
1344aad4
TT
811 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
812 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
813 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
814
eb4916d7
TT
8152011-02-16 Tom Tromey <tromey@redhat.com>
816
817 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
818
4b4deea2
TT
8192011-02-16 Tom Tromey <tromey@parfait>
820
821 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
822 * xfaces.c (compute_char_face): Replace B_ with BVAR.
823 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
824 (message_dolog, update_echo_area, ensure_echo_area_buffers)
825 (with_echo_area_buffer, setup_echo_area_for_printing)
826 (set_message_1, update_menu_bar, update_tool_bar)
827 (text_outside_line_unchanged_p, redisplay_internal)
828 (try_scrolling, try_cursor_movement, redisplay_window)
829 (try_window_reusing_current_matrix, row_containing_pos)
830 (try_window_id, get_overlay_arrow_glyph_row, display_line)
831 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
832 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
833 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
834 BVAR.
835 * window.c (window_display_table, unshow_buffer, window_loop)
836 (window_min_size_2, set_window_buffer, Fset_window_buffer)
837 (select_window, Fforce_window_update, temp_output_buffer_show)
838 (Fset_window_configuration, save_window_save): Replace B_ with
839 BVAR.
840 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
841 Replace B_ with BVAR.
842 * undo.c (record_point, record_insert, record_delete)
843 (record_marker_adjustment, record_first_change)
844 (record_property_change, Fundo_boundary, truncate_undo_list)
845 (Fprimitive_undo): Replace B_ with BVAR.
846 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
847 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
848 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
849 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
850 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
851 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
852 (string_match_1, fast_looking_at, newline_cache_on_off)
853 (search_command, search_buffer, simple_search, boyer_moore)
854 (Freplace_match): Replace B_ with BVAR.
855 * process.c (get_process, list_processes_1, Fstart_process)
856 (Fmake_serial_process, Fmake_network_process)
857 (read_process_output, send_process, exec_sentinel)
858 (status_notify, setup_process_coding_systems): Replace B_ with
859 BVAR.
860 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
861 (strout, print_string, temp_output_buffer_setup, print_object):
862 Replace B_ with BVAR.
863 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
b286858c
SM
864 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
865 Replace B_ with BVAR.
4b4deea2
TT
866 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
867 (set_marker_both, set_marker_restricted_both, unchain_marker):
868 Replace B_ with BVAR.
869 * lread.c (readchar, unreadchar, openp, readevalloop)
870 (Feval_buffer, Feval_region): Replace B_ with BVAR.
871 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
872 * keymap.c (Flocal_key_binding, Fuse_local_map)
873 (Fcurrent_local_map, push_key_description)
874 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
875 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
876 (read_key_sequence): Replace B_ with BVAR.
877 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
878 * intervals.c (set_point_both, get_local_map): Replace B_ with
879 BVAR.
880 * insdel.c (check_markers, insert_char, insert_1_both)
881 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
882 (adjust_after_replace, replace_range, del_range_2)
883 (modify_region, prepare_to_modify_buffer)
884 (Fcombine_after_change_execute): Replace B_ with BVAR.
885 * indent.c (buffer_display_table, recompute_width_table)
886 (width_run_cache_on_off, current_column, scan_for_column)
887 (Findent_to, position_indentation, compute_motion, vmotion):
888 Replace B_ with BVAR.
889 * fringe.c (get_logical_cursor_bitmap)
890 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
891 with BVAR.
892 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
893 * font.c (font_at): Replace B_ with BVAR.
894 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
895 Replace B_ with BVAR.
896 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
897 (unlock_buffer): Replace B_ with BVAR.
898 * fileio.c (Fexpand_file_name, Ffile_directory_p)
899 (Ffile_regular_p, Ffile_selinux_context)
900 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
901 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
902 (Finsert_file_contents, choose_write_coding_system)
903 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
904 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
905 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
906 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
907 (save_excursion_restore, Fprevious_char, Fchar_before)
908 (general_insert_function, Finsert_char, Finsert_byte)
909 (make_buffer_string_both, Finsert_buffer_substring)
910 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
911 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
912 (Ftranslate_region_internal, save_restriction_restore)
913 (Fchar_equal): Replace B_ with BVAR.
914 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
915 * dispextern.h (WINDOW_WANTS_MODELINE_P)
916 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
917 * dired.c (directory_files_internal): Replace B_ with BVAR.
918 * data.c (swap_in_symval_forwarding, set_internal)
919 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
920 Replace B_ with BVAR.
921 * composite.c (fill_gstring_header)
922 (composition_compute_stop_pos, composition_adjust_point)
923 (Ffind_composition_internal): Replace B_ with BVAR.
924 * coding.c (decode_coding, encode_coding)
925 (make_conversion_work_buffer, decode_coding_gap)
926 (decode_coding_object, encode_coding_object)
927 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
928 (Funencodable_char_position, Fcheck_coding_systems_region):
929 Replace B_ with BVAR.
930 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
931 with BVAR.
932 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
933 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
934 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
935 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
936 * category.h (Vstandard_category_table): Replace B_ with BVAR.
937 * category.c (check_category_table, Fcategory_table)
938 (Fset_category_table, char_category_set): Replace B_ with BVAR.
939 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
940 BVAR.
941 * casefiddle.c (casify_object, casify_region): Replace B_ with
942 BVAR.
943 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
944 with BVAR.
945 * callint.c (check_mark, Fcall_interactively): Replace B_ with
946 BVAR.
947 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
948 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
949 with BVAR.
950 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
951 (get_truename_buffer, Fget_buffer_create)
952 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
953 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
954 (Fbuffer_local_value, buffer_lisp_local_variables)
955 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
956 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
957 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
958 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
959 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
960 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
961 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
962 (record_overlay_string, overlay_strings, init_buffer_once)
963 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
964
8678d9e4 9652011-02-16 Eli Zaretskii <eliz@gnu.org>
a73d395b
EZ
966
967 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
968 window is changed inside calls to do_pending_window_change.
969 (Bug#8020)
970
1f5d53eb
PE
9712011-02-16 Paul Eggert <eggert@cs.ucla.edu>
972
973 Remove no-longer needed getloadavg symbols.
974 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
975 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
976 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
977 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
978 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
979 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
980 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
981 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
982 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
983 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
984 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
985 (LDAV_SYMBOL): Remove.
986 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
987 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
988
989 Import getloadavg module from gnulib.
990 * deps.mk (getloadavg.o): Remove; gnulib now does this.
991 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
992 now does this.
993 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
994 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
995 * config.in: Regenerate.
996
8017fd6b
EZ
9972011-02-15 Eli Zaretskii <eliz@gnu.org>
998
999 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1000
75b43359
MWD
10012011-02-14 Michael Welsh Duggan <md5i@md5i.com>
1002
1003 * print.c (float_to_string): Ensure that a decimal point is
1004 printed if using dtoastr (Bug#8033).
1005
fc3ca113
EZ
10062011-02-14 Eli Zaretskii <eliz@gnu.org>
1007
1f5d53eb 1008 * msdos.c (IT_frame_up_to_date):
ef72f149
EZ
1009 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1010
fc3ca113
EZ
1011 * dired.c (directory_files_internal):
1012 * fileio.c (Finsert_file_contents):
1013 * insdel.c (prepare_to_modify_buffer):
1014 * xdisp.c (pos_visible_p):
1015 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1016 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1017 Use B_ for the MS-Windows build.
1018
3928f2b6
JD
10192011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1020
1021 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1022 resource that specifies helvetica for menus and dialogs.
1023
1024 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
1025 (apply_systemfont_to_menu): Set resources *menubar*font and
1026 *popup*font. Remove defflt.
b286858c
SM
1027 (set_frame_menubar, create_and_show_popup_menu):
1028 Call apply_systemfont_to_menu before lw_create_widget.
3928f2b6 1029
4bb81cc2
TT
10302011-02-14 Tom Tromey <tromey@redhat.com>
1031
fc3ca113
EZ
1032 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
1033
4bb81cc2
TT
1034 * keyboard.h: Remove obsolete comment.
1035
5d8ea120
TT
10362011-02-14 Tom Tromey <tromey@parfait>
1037
1038 * composite.c (fill_gstring_header)
1039 (composition_compute_stop_pos, composition_adjust_point)
1040 (Ffind_composition_internal): Use B_.
1041 * intervals.c (set_point_both, get_local_map): Use B_.
1042 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
1043 * process.c (get_process, list_processes_1, Fstart_process)
1044 (Fmake_serial_process, Fmake_network_process)
1045 (read_process_output, send_process, exec_sentinel)
1046 (status_notify, setup_process_coding_systems): Use B_.
1047 * bytecode.c (Fbyte_code): Use B_.
1048 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1049 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1050 (skip_syntaxes, scan_lists): Use B_.
1051 * lread.c (readchar, unreadchar, openp, readevalloop)
1052 (Feval_buffer, Feval_region): Use B_.
1053 * print.c (printchar, strout, print_string, PRINTDECLARE)
1054 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
1055 (print_object): Use B_.
1056 * font.c (font_at): Use B_.
b286858c
SM
1057 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1058 Use B_.
5d8ea120
TT
1059 * callint.c (check_mark, Fcall_interactively): Use B_.
1060 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1061 (save_excursion_restore, Fprevious_char, Fchar_before)
1062 (general_insert_function, Finsert_char, Finsert_byte)
1063 (make_buffer_string_both, Finsert_buffer_substring)
1064 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1065 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1066 (Ftranslate_region_internal, save_restriction_restore)
1067 (Fchar_equal): Use B_.
1068 * data.c (swap_in_symval_forwarding, set_internal)
1069 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1070 Use B_.
1071 * undo.c (record_point, record_insert, record_delete)
1072 (record_marker_adjustment, record_first_change)
1073 (record_property_change, Fundo_boundary, truncate_undo_list)
1074 (Fprimitive_undo): Use B_.
1075 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1076 (string_match_1, fast_looking_at, newline_cache_on_off)
1077 (search_command, search_buffer, simple_search, boyer_moore)
1078 (Freplace_match): Use B_.
1079 * indent.c (buffer_display_table, recompute_width_table)
1080 (width_run_cache_on_off, current_column, scan_for_column)
b286858c
SM
1081 (Findent_to, position_indentation, compute_motion, vmotion):
1082 Use B_.
5d8ea120
TT
1083 * casefiddle.c (casify_object, casify_region): Use B_.
1084 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
1085 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
1086 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1087 (Ffile_regular_p, Ffile_selinux_context)
1088 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1089 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1090 (Finsert_file_contents, choose_write_coding_system)
1091 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1092 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1093 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
1094 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
1095 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
b286858c
SM
1096 (set_marker_both, set_marker_restricted_both, unchain_marker):
1097 Use B_.
5d8ea120
TT
1098 * insdel.c (check_markers, insert_char, insert_1_both)
1099 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1100 (adjust_after_replace, replace_range, del_range_2)
1101 (modify_region, prepare_to_modify_buffer)
1102 (Fcombine_after_change_execute): Use B_.
1103 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1104 (unlock_buffer): Use B_.
1105 * keymap.c (Flocal_key_binding, Fuse_local_map)
1106 (Fcurrent_local_map, push_key_description)
1107 (Fdescribe_buffer_bindings): Use B_.
1108 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1109 (read_key_sequence): Use B_.
1110 * fringe.c (get_logical_cursor_bitmap)
1111 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
1112 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
1113 * xfaces.c (compute_char_face): Use B_.
1114 * character.c (chars_in_text, Fget_byte): Use B_.
1115 * category.c (check_category_table, Fcategory_table)
1116 (Fset_category_table, char_category_set): Use B_.
1117 * coding.c (decode_coding, encode_coding)
1118 (make_conversion_work_buffer, decode_coding_gap)
1119 (decode_coding_object, encode_coding_object)
1120 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
b286858c
SM
1121 (Funencodable_char_position, Fcheck_coding_systems_region):
1122 Use B_.
5d8ea120
TT
1123 * charset.c (Ffind_charset_region): Use B_.
1124 * window.c (window_display_table, unshow_buffer, window_loop)
1125 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1126 (select_window, Fforce_window_update, temp_output_buffer_show)
1127 (Fset_window_configuration, save_window_save): Use B_.
1128 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1129 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1130 (with_echo_area_buffer, setup_echo_area_for_printing)
1131 (set_message_1, update_menu_bar, update_tool_bar)
1132 (text_outside_line_unchanged_p, redisplay_internal)
1133 (try_scrolling, try_cursor_movement, redisplay_window)
1134 (try_window_reusing_current_matrix, row_containing_pos)
1135 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1136 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1137 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1138 (get_window_cursor_type, note_mouse_highlight): Use B_.
1139 * frame.c (make_frame_visible_1): Use B_.
1140 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
1141 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
1142 (WINDOW_WANTS_MODELINE_P): Use B_.
1143 * syntax.h (Vstandard_syntax_table): Update.
1144 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
1145 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
1146 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
1147 * character.h (FETCH_CHAR_ADVANCE): Update.
1148 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
1149 * category.h (Vstandard_category_table): Update.
1150 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
1151 names.
1152 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
1153 * buffer.c (swapfield_): New macro.
1154 (Fbuffer_swap_text): Use swapfield_ where appropriate.
1155 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
1156 (Fget_buffer_create, clone_per_buffer_values)
1157 (Fmake_indirect_buffer, reset_buffer)
1158 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1159 (Fbuffer_local_value, buffer_lisp_local_variables)
1160 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1161 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1162 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1163 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1164 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1165 (Fbuffer_swap_text, Fset_buffer_multibyte)
1166 (swap_out_buffer_local_variables, record_overlay_string)
1167 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
1168 Use B_.
1169 * buffer.h (struct buffer): Rename all Lisp_Object fields.
1170 (BUFFER_INTERNAL_FIELD, B_): New macro.
1171 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
1172
42f60557
JD
11732011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1174
1175 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
1176 is null.
1177
2f9a22e2
J
11782011-02-13 Jan Djärv <jan.h.d@swipnet.se>
1179
1180 * callproc.c (Fcall_process):
1181 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
1182 comment.
1183
84eb0351 11842011-02-12 Martin Rudalics <rudalics@gmx.at>
bae1fa42
MR
1185
1186 * window.c (select_window): Check inhibit_point_swap argument when
1187 deciding whether to return immediately.
1188
84eb0351 11892011-02-12 Jan Djärv <jan.h.d@swipnet.se>
9aabf64c
JD
1190
1191 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
1192 zero (Bug#7348).
1193
84eb0351
CY
11942011-02-12 Chong Yidong <cyd@stupidchicken.com>
1195
1196 * config.in (TERMINFO): New definition.
1197
1198 * s/netbsd.h: Use it to choose between terminfo and termcap
1199 (Bug#7642).
1200
33d605d0
PE
12012011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1202
1203 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
1204 The difference doesn't matter here, in practice, and sizeof is
1205 more portable to non-GCC compilers. Also, this makes the code
1206 match the already-existing comment.
1207
c0ad4ea5
AS
12082011-02-12 Andreas Schwab <schwab@linux-m68k.org>
1209
1210 * process.c (create_process): Reset SIGPIPE handler in the child.
1211 * callproc.c (Fcall_process): Likewise. (Bug#5238)
1212
50fd938f
EZ
12132011-02-12 Eli Zaretskii <eliz@gnu.org>
1214
1215 * xdisp.c <this_line_min_pos>: New variable.
1216 (move_it_in_display_line_to): Record in this_line_min_pos the
1217 smallest position iterated across.
1218 (display_line): Use this_line_min_pos to record the smallest
1219 position in the line even if it is not displayed due to
1220 hscrolling. (Bug#7939)
1221
af59aa6e
PE
12222011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1223
cec81b22
PE
1224 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
1225 * md5.h (ATTRIBUTE_ALIGNED): New macro.
1226 (struct md5_ctx): Use it.
1227
af59aa6e
PE
1228 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
1229 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
1230 defined.
1231 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
1232 FC_HINT_STYLE is supported.
1233
02c3706c
JD
12342011-02-11 Jan Djärv <jan.h.d@swipnet.se>
1235
1236 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
1237 Make sure we don't do x_catch_errors twice.
1238
5ac75e8f
GM
12392011-02-10 Glenn Morris <rgm@gnu.org>
1240
1241 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
1242
d37f40ed
EZ
12432011-02-09 Eli Zaretskii <eliz@gnu.org>
1244
5ac75e8f
GM
1245 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
1246 New macros.
d37f40ed
EZ
1247 (globals.h, gl-stamp): New targets.
1248 (clean): Clean gl-stamp and globals.h.
1249
33cd3ee4
AS
12502011-02-09 Andreas Schwab <schwab@linux-m68k.org>
1251
1252 * Makefile.in (gl-stamp): Create globals.h here.
1253 (globals.h): Don't do it here.
1254 (mostlyclean): Clean globals.h and gl-stamp.
1255
f9f2e7f5
PE
12562011-02-09 Paul Eggert <eggert@cs.ucla.edu>
1257
1258 * Makefile.in ($(otherobj)): Depend on globals.h.
1259 Otherwise 'make -j10' failed on my host, because the build lacked
1260 necessary dependencies, e.g., vm-limit.o depends on globals.h.
1261
00b3c7ac
TT
12622011-02-08 Tom Tromey <tromey@redhat.com>
1263
1264 * Makefile.in (NS_OBJC_OBJ): New variable.
1265 (base_obj): Rename from 'obj'.
1266 (obj): New variable.
1267 (globals.h, gl-stamp, $(obj)): New targets.
1268 (GLOBAL_SOURCES): New variable.
1269 * globals.h: Remove.
1270 * nsselect.m (Vselection_alist): Define. Reverts part of
1271 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
1272 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
1273 variable.
1274 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
1275
8f3b2e12
KH
12762011-02-08 Kenichi Handa <handa@m17n.org>
1277
1278 * font.c (Ffont_get): Do not cache :otf value.
1279
4f043d0f
PE
12802011-02-07 Paul Eggert <eggert@cs.ucla.edu>
1281
1282 conform to C89 pointer rules
1283
1284 * dired.c (scmp, file_name_completion):
1285 Change types between char * and unsigned char *, to satisfy C89
1286 rules about pointer type compatibility.
47ce90e4 1287 * casefiddle.c (casify_object, casify_region): Likewise.
a7e979a4 1288 * search.c (Freplace_match, Fregexp_quote): Likewise.
90256841
PE
1289 * alloc.c (make_string, make_specified_string, make_pure_string):
1290 Likewise.
57ace6d0 1291 * data.c (Fstring_to_number): Likewise.
09125ef8
PE
1292 * print.c (float_to_string, PRINTFINISH, printchar, strout):
1293 (print_object): Likewise.
e7f8264d
PE
1294 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
1295 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
1296 (Fformat): Likewise.
a2db9982 1297 * callint.c (Fcall_interactively): Likewise.
f1e59824
PE
1298 * fns.c (string_make_multibyte, string_to_multibyte):
1299 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
1300 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
1301 Likewise.
4a25e32a 1302 * lread.c (read1, hash_string): Likewise.
400a67ff
PE
1303 * process.c (read_process_output, send_process, Fprocess_send_region):
1304 Likewise.
0ca76b1e 1305 * callproc.c (Fcall_process): Likewise.
7469ef5d
PE
1306 * doprnt.c (doprnt): Likewise.
1307 * indent.c (compute_motion): Likewise.
efe0234f 1308 * xfont.c (xfont_decode_coding_xlfd): Likewise.
3ce2f8ac 1309 * ralloc.c (resize_bloc): Likewise.
b19beacc 1310 * image.c (tiff_load): Likewise.
c45e5276 1311 * xml.c (make_dom, parse_region): Likewise.
7469ef5d
PE
1312 * character.c (strwidth): Make its argument const char *, not const
1313 unsigned char *, since more callers prefer it that way. All callers
1314 changed.
4f043d0f 1315
9eee99eb
PE
13162011-02-06 Paul Eggert <eggert@cs.ucla.edu>
1317
4c83cffc
PE
1318 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
1319 Emacs assumes two's complement elsewhere, but the assumption is
1320 easy to remove here, and this suppresses a warning with Sun C 5.8.
1321
82470039
PE
1322 conform to C89 pointer rules
1323
1324 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
1325 (same_x_server, x_term_init):
9eee99eb
PE
1326 Change types between char * and unsigned char *, to satisfy C89
1327 rules about pointer type compatibility.
82470039
PE
1328 * doc.c (get_doc_string, Fsnarf_documentation):
1329 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
1330 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
1331 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 1332 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
1333 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
1334 Likewise.
01c9aa3a 1335 * keymap.c (Ftext_char_description): Likewise.
637de37e 1336 * minibuf.c (Fread_buffer): Likewise.
5976c3fe
PE
1337 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
1338 (DRIVE_LETTER) [defined DOS_NT]:
1339 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
1340 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
1341 (search_embedded_absfilename, Fsubstitute_in_file_name):
1342 (barf_or_query_if_file_exists, Fmake_directory_internal):
1343 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
1344 (Finsert_file_contents, Fwrite_region):
1345 Likewise.
b68864e5
PE
1346 * insdel.c (insert, insert_and_inherit, insert_before_markers):
1347 (insert_before_markers_and_inherit, insert_1, insert_1_both):
1348 Likewise. This changes these functions' signatures, which is
1349 more convenient since most callers use char *. All remaining
1350 callers changed.
1351 * editfns.c (general_insert_function): Change signature to
1352 match changes to insert functions' signatures.
b286858c
SM
1353 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
1354 Use explicit cast when converting between void * and function pointer
01c9aa3a 1355 types, as C89 requires this.
9eee99eb 1356
32299e33
PE
13572011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1358
1359 don't ignore chdir failure
1360 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
1361 failure and exit.
1362 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
1363 remaining unchecked chdir calls in this function; some DOS/NT
1364 expert needs to fix them.
1365 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
1366 in this function; some NextStep expert needs to fix them.
1367
233ba4d9 13682011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
1369
1370 * xfaces.c (Finternal_set_lisp_face_attribute):
1371 Try to clarify some error messages. (Bug#2659)
1372
233ba4d9 13732011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
1374
1375 * editfns.c (save_restriction_restore): Don't forget to invalidate the
1376 current_column cache (bug#7946).
1377
233ba4d9 13782011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
1379
1380 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
1381
1382 * xftfont.c (xftfont_open): Likewise.
1383
233ba4d9 13842011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
1385
1386 * window.c (Fselect_window): Add missing return value.
1387
d67985d3
PE
13882011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1389
25a48bd0
PE
1390 xstrcasecmp: conform to C89 pointer rules
1391 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
1392 to const char *, since they're usually low-level C strings, and
1393 this stays compatible with C89 pointer rules. All callers changed.
1394
2f8f196d 1395 * charset.c: Conform to C89 pointer rules.
dfb6afda
PE
1396 (define_charset_internal): Switch between char * and unsigned char *.
1397
2f8f196d 1398 * xmenu.c: Conform to C89 const rules.
cc618f4e
PE
1399 (xmenu_show, xdialog_show): Declare local var as char *, not
1400 const char *, to stay compatible with C89 const rules.
1401
2f8f196d 1402 * xdisp.c: Conform to C89 pointer rules.
9bcaafce
PE
1403 (store_mode_line_noprop, display_string, reseat_to_string):
1404 (c_string_pos, number_of_chars, message_dolog):
1405 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
1406 (display_mode_element, display_string):
1407 Switch between char * and unsigned char * to stay compatible wth
1408 C89 pointer rules.
1409
2f8f196d 1410 * regex.c: Conform to C89 pointer rules.
5b0534c8
PE
1411 (re_wctype): Add cast, as C89 does not allow assigning between
1412 char * and unsigned char *.
1413 (regex_compile): Likewise.
1414
d67985d3
PE
1415 sync from gnulib to remove HAVE_STDBOOL_H
1416 * config.in: Regenerate.
1417
a5d733f5
EZ
14182011-02-04 Eli Zaretskii <eliz@gnu.org>
1419
f90e08f5
EZ
1420 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
1421 Replace all uses of lisp.h with $(LISP_H), and all uses of
1422 process.h with $(PROCESS_H).
1423 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
1424 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
1425
be50df37
EZ
1426 * deps.mk: Update for recent changes: gnutls support, gnulib
1427 imports, addition of globals.h.
1428
f90e08f5
EZ
1429 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
1430 ../lib/ignore-value.h.
a5d733f5 1431
67342916
PE
14322011-02-03 Paul Eggert <eggert@cs.ucla.edu>
1433
1434 allow C code to suppress warnings about ignored return values
1435
1436 We need to go through the code and for each such warning, either
1437 fix the code to pay attention to the returned value, or tell GCC
1438 that we really do want to ignore the returned value. Here is one
1439 example of how to do the latter.
1440 * sysdep.c: Include <ignore-value.h>.
1441 (sys_subshell): Suppress an undesirable warning about not checking
1442 the returned value of 'write', as there's nothing useful one can
1443 do with that returned value.
1444
36941b32
JD
14452011-02-03 Jan Djärv <jan.h.d@swipnet.se>
1446
1447 * xterm.c (x_connection_closed): Remove all calls that calls
1448 XSync (Bug#7949).
1449
3082f617
EZ
14502011-02-01 Eli Zaretskii <eliz@gnu.org>
1451
1452 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
1453 TIFFClientOpen.
1454
4df0af9b
JD
14552011-02-01 Jan Djärv <jan.h.d@swipnet.se>
1456
1457 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
1458 (x_session_check_input): Change args and return type so it can be used
1459 as argument to add_read_fd. Make static. Remove call to select.
1460 Call kbd_buffer_store_event for emacs_event.
1461 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
1462 (ice_conn_watch_CB): Call add_read_fd.
1463
1464 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
1465 x_session_check_input.
1466 (x_session_initialized): Remove definition.
1467 (x_initialize): Remove setting of x_session_initialized.
1468
1469 * xterm.h (x_session_check_input): Remove declaration.
1470
a4180391
PE
14712011-02-01 Paul Eggert <eggert@cs.ucla.edu>
1472
1473 format-time-string now supports subsecond time stamp resolution
b286858c 1474 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
a4180391
PE
1475 for consistency with its new argument and with gnulib nstrftime.
1476 All callers changed. New argument NS.
1477 (Fformat_time_string): Check that the time argument's microseconds
1478 component, if any, is in range; this avoids integer overflow and
1479 also nstrftime needs this. Document %N.
1480
14beddf4 14812011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
1482
1483 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
1484 of int. All uses adjusted.
1485 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
1486 (svg_load_image): Remove casts.
1487
14beddf4 14882011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
1489
1490 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
1491 function definitions for compiling with libpng-1.5.
1492 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
1493 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
1494 (Bug#7908).
1495
70b0d280
EZ
14962011-01-31 Eli Zaretskii <eliz@gnu.org>
1497
8b3c625b
EZ
1498 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
1499
70b0d280
EZ
1500 * makefile.w32-in (OBJ2): Remove strftime.$(O).
1501 ($(BLD)/strftime.$(O)): Remove prerequisites.
1502
16fab143
PE
15032011-01-31 Paul Eggert <eggert@cs.ucla.edu>
1504
1505 src/emacs.c now gets version number from configure.in
1506 * emacs.c (emacs_version): Set to VERSION so that it
1507 is determined automatically from ../configure.in.
1508
546961a9
JM
15092011-01-31 Jim Meyering <meyering@redhat.com>
1510
1511 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
1512 Use xmalloc rather than malloc.
1513
42a5b22f
PE
15142011-01-30 Paul Eggert <eggert@cs.ucla.edu>
1515
16c3e636
PE
1516 strftime: import from gnulib
1517 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
1518 * deps.mk (strftime.o): Remove.
1519 * editfns.c: Include <strftime.h>, supplied by gnulib.
1520 (emacs_strftimeu): Remove decl.
1521 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
1522 emacs_strftimeu.
1523 * config.in: Regenerate.
1524 * strftime.c: Remove; we now use strftime from gnulib.
1525
42a5b22f
PE
1526 Use SSDATA when the context wants char *.
1527 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
1528 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
1529 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
1530 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
1531 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
1532 Use SSDATA (not SDATA) when the context of the expression wants
1533 char * (not unsigned char *).
1534
2787bba3
JD
15352011-01-30 Jan Djärv <jan.h.d@swipnet.se>
1536
1537 * .gdbinit: Read global lisp variables as globals.f_V*.
1538
4ec88040
AS
15392011-01-30 Andreas Schwab <schwab@linux-m68k.org>
1540
1541 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
1542 All uses changed.
1543 (PROP_SAVE): Likewise.
1544
b6bcd048
CY
15452011-01-29 Chong Yidong <cyd@stupidchicken.com>
1546
1547 * keyboard.c (make_lispy_position): Fix typo in last change
1548 (Bug#7935).
1549
f915f0f7
EZ
15502011-01-29 Eli Zaretskii <eliz@gnu.org>
1551
1552 * s/ms-w32.h (HAVE_MKTIME): Remove.
1553
1554 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
1555 (GNULIB): New variable.
1556 (LIBS): Add $(GNULIB).
1557 $(TEMACS): Depend on $(GNULIB).
1558 <top-level>: Fix font-lock disrupted by a lone `"'.
1559
497a1925
JD
15602011-01-29 Jan Djärv <jan.h.d@swipnet.se>
1561
1562 * nsselect.m (ns_string_from_pasteboard): Get length of string
1563 and use make_string instead of build_string (Bug#7934).
1564 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
1565 instead of stringWithUTF8String (Bug#7934).
1566
2f8f196d 15672011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
481ae085 1568
2f8f196d
JB
1569 * nsfont.m (nsfont_open): Ensure that fonts with inexact
1570 descenders would not become one pixel too tall (Bug#7887).
481ae085 1571
6b918613
CY
15722011-01-28 Chong Yidong <cyd@stupidchicken.com>
1573
1574 * keyboard.c (make_lispy_position): For clicks on right fringe or
1575 margin, compute text position using the X coordinate relative to
1576 the left of the text area (Bug#7839).
1577
9e269017
KH
15782011-01-28 Kenichi Handa <handa@m17n.org>
1579
1580 * ftfont.c (ftfont_spec_pattern): Check each extra property
1581 value.
1582
17dd1fc8
SM
15832011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
1584
1585 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
1586
372fb76b
CY
15872011-01-27 Chong Yidong <cyd@stupidchicken.com>
1588
1589 * font.c (font_parse_fcname): Undefine a temporary macro.
1590
e7f7fbaa
SM
15912011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
1592
1593 Let the debugger continue to the normal handler (bug#7825).
1594 * eval.c (maybe_call_debugger): Declare before new use.
1595 (find_handler_clause): Don't call debugger any more.
1596 Ignore Vstack_trace_on_error.
1597 Use XCAR/XCDR.
1598 (syms_of_eval): Remove Vstack_trace_on_error.
1599 (Fsignal): Only modify handlerlist when we know we need to do it.
1600 Call the debugger when necessary.
1601 * globals.h (Vstack_trace_on_error): Remove.
1602
6608a7d8
CY
16032011-01-26 Chong Yidong <cyd@stupidchicken.com>
1604
1605 * font.c (font_parse_fcname): Rewrite GTK font name parser.
1606
06d8ace5 16072011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
1608
1609 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
1610 the buffer's point-max (bug#7876).
1611
06d8ace5 16122011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
1613
1614 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 1615 Remove unused case (Bug#6811).
19634648 1616
8ab70320
JD
16172011-01-23 Jan Djärv <jan.h.d@swipnet.se>
1618
1619 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
1620 setFrameTopLeftPoint is constrained.
1621
51b59d79
PE
16222011-01-23 Paul Eggert <eggert@cs.ucla.edu>
1623
9055082e
PE
1624 Check return values of some library calls.
1625 * emacs.c (main): Check dup result.
1626 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
1627 (frame_name_fnn_p): Check strtol result.
1628
5c7d01a5 1629 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
1630 when calling XpmCreatePixmapFromData.
1631
51b59d79
PE
1632 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
1633 * lisp.h (SSDATA): New macro.
1634 All uses of (char *) SDATA (x) replaced with SSDATA (x),
1635 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
1636 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
1637 * xsmfns.c (SSDATA): Likewise.
1638
e6b84b30
MR
16392011-01-22 Martin Rudalics <rudalics@gmx.at>
1640
1641 * window.c (select_window): New function.
1642 (Fselect_window): Call it.
1643 (inhibit_point_swap): Variable deleted.
1644 (Fset_window_configuration): Call select_window directly.
1645
3fb69558
JD
16462011-01-22 Jan Djärv <jan.h.d@swipnet.se>
1647
1648 * nsterm.m (constrainFrameRect): Only constrain the first time called.
1649
449ab399
JD
16502011-01-21 Jan Djärv <jan.h.d@swipnet.se>
1651
e2f79c8d
JD
1652 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
1653 screen, not the window screen.
1654 (x_set_window_size): Remove constraints.
1655 Calculate origin.y only if zooming is 0 and without referring to a
1656 screen.
1657 (windowWillResize): Don't modify frameSize.
1658 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
1659 (initFrameFromEmacs): Initialize ns_userRect.
1660 (windowShouldZoom): Set zooming to one. Remove all other code.
1661 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
1662 Zero it after restore.
1663 (constrainFrameRect): New method for EmacsWindow.
1664 (mouseDragged): Always post NSWindowDidResizeNotification after call to
1665 windowWillResize.
1666
1667 * nsterm.h (ns_output): Add dont_constrain and zooming.
1668 (EmacsView): Add ns_userRect.
1669
449ab399
JD
1670 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
1671 if ns_alternate_modifier is none.
1672
e885315d
JD
16732011-01-20 Jan Djärv <jan.h.d@swipnet.se>
1674
1675 * unexmacosx.c: Add comment about include order.
1676
bb1c6663
GM
16772011-01-20 Glenn Morris <rgm@gnu.org>
1678
c11136ec
GM
1679 * minibuf.c (syms_of_minibuf) <read-expression-history>:
1680 Give it a doc string.
1681 * globals.h: Add Vread_expression_history.
1682
bb1c6663
GM
1683 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
1684 Give it a doc string.
1685 * globals.h: Add Vkbd_macro_termination_hook.
1686
9aea757b
CY
16872011-01-20 Chong Yidong <cyd@stupidchicken.com>
1688
1689 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
1690
e1ef0dac
PE
16912011-01-19 Paul Eggert <eggert@cs.ucla.edu>
1692
1693 Fix X11 compilation failure.
1694 * globals.h (struct emacs_globals): Document f_Vselection_alist.
1695 * xselect.c (Vselection_alist): Remove declaration, moving its
1696 documentation to globals.h. This fixes a compilation failure
1697 induced by the earlier change to globals.h today.
1698
fb9d0f5a
JD
16992011-01-19 Jan Djärv <jan.h.d@swipnet.se>
1700
8beb828a
JD
1701 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
1702
fb9d0f5a
JD
1703 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
1704 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
1705 (ns_input_spi_name, ns_input_spi_arg)
1706 (ns_alternate_modifier, ns_right_alternate_modifier)
1707 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
1708 (ns_right_control_modifier, ns_function_modifier)
1709 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
1710 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
1711 (x_underline_at_descent_line): Remove declaration.
1712 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
1713
01c35094 1714 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
fb9d0f5a
JD
1715 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
1716 (syms_of_nsselect): Remove & from DEFVAR_LISP.
1717
1718 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
1719 Remove declaration.
1720
1721 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
1722 globals.h.
1723 (syms_of_nsfont): Remove & from DEFVAR_LISP.
1724
1725 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
1726 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
1727 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
1728
1729 * globals.h (struct emacs_globals): Add f_ns_input_file,
1730 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
1731 f_ns_input_color, f_ns_input_text, f_ns_working_text,
1732 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
1733 f_ns_right_alternate_modifier, f_ns_command_modifier,
1734 f_ns_right_command_modifier, f_ns_control_modifier,
1735 f_ns_right_control_modifier, f_ns_function_modifier,
1736 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
1737 f_Vns_version_string, f_Vns_sent_selection_hooks,
1738 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
1739 and corresponding defines.
1740
4e55715e
SS
17412011-01-19 Sam Steingold <sds@gnu.org>
1742
1743 * w32.c (check_windows_init_file): Remove declarations of
1744 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 1745 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 1746
ef79d2fa
TT
17472011-01-19 Tom Tromey <tromey@redhat.com>
1748
1749 * window.c: Fix error introduced by previous patch.
1750
29208e82
TT
17512011-01-18 Tom Tromey <tromey@parfait>
1752
1753 * globals.h: New file.
1754 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
1755 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
1756 (Vwindow_system_version): Remove declaration.
1757 * w32term.h (Vw32_enable_palette)
1758 (Vx_pixel_size_width_font_regexp): Remove declaration.
1759 * w32menu.c (Voverriding_local_map)
1760 (Voverriding_local_map_menu_flag): Remove declaration.
1761 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
1762 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
1763 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
1764 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
1765 (Vw32_phantom_key_code, Vw32_recognize_altgr)
1766 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1767 (w32_use_full_screen_buffer): Remove declaration.
1768 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
1769 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
1770 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
1771 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
1772 (no_redraw_on_reenter, visible_bell): Remove declaration.
1773 * sysdep.c (Vsystem_name): Remove declaration.
1774 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
1775 * menu.h (Vmenu_updating_frame): Remove declaration.
1776 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
1777 Remove declaration.
1778 * lisp.h (Vafter_init_time, Vafter_load_alist)
1779 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
1780 (Vcompletion_regexp_list, Vcurrent_load_list)
1781 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
1782 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
1783 (Vexec_directory, Vexec_path, Vexec_suffixes)
1784 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
1785 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
1786 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
1787 (Vinstallation_directory, Vinvocation_directory)
1788 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
1789 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
1790 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
1791 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
1792 (Vscalable_fonts_allowed, Vselect_active_regions)
1793 (Vshell_file_name, Vstandard_input, Vstandard_output)
1794 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
1795 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
1796 (Vuser_login_name, Vwindow_scroll_functions)
1797 (Vwindow_system_version, Vx_no_window_manager)
1798 (Vx_resource_class, Vx_resource_name, baud_rate)
1799 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
1800 (history_delete_duplicates, inhibit_x_resources)
1801 (last_nonmenu_event, load_in_progress, max_specpdl_size)
1802 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
b286858c
SM
1803 (use_dialog_box, use_file_dialog): Remove declaration.
1804 Include globals.h.
29208e82 1805 * keymap.h (Voverriding_local_map)
b286858c
SM
1806 (Voverriding_local_map_menu_flag, meta_prefix_char):
1807 Remove declaration.
29208e82
TT
1808 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
1809 (Vinput_method_function, Vkey_translation_map)
1810 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
1811 (do_mouse_tracking, extra_keyboard_modifiers)
1812 (num_nonmacro_input_events): Remove declaration.
1813 * intervals.h (Vchar_property_alias_alist)
1814 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
1815 (Vtext_property_default_nonsticky): Remove declaration.
1816 * gtkutil.h (x_gtk_file_dialog_help_text)
1817 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1818 (x_gtk_whole_detached_tool_bar): Remove declaration.
1819 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
1820 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
1821 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
1822 (focus_follows_mouse): Remove declaration.
1823 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
1824 (Vignore_relative_composition, Votf_script_alist)
b286858c
SM
1825 (Vuse_default_ascent, Vvertical_centering_font_regexp):
1826 Remove declaration.
29208e82
TT
1827 * font.h (Vfont_log): Remove declaration.
1828 * dosfns.h (Vdos_display_scancodes, Vdos_version)
1829 (Vdos_windows_version, dos_codepage, dos_country_code)
1830 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
b286858c
SM
1831 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
1832 Remove declaration.
1833 * disptab.h (Vglyph_table, Vstandard_display_table):
1834 Remove declaration.
29208e82
TT
1835 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
1836 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
1837 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
1838 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
1839 (inverse_video, mode_line_in_non_selected_windows)
1840 (tool_bar_button_relief, tool_bar_max_label_size)
1841 (underline_minimum_offset)
1842 (unibyte_display_via_language_environment, x_stretch_cursor_p):
1843 Remove declaration.
1844 * composite.h (Vauto_composition_function)
1845 (Vcomposition_function_table): Remove declaration.
1846 * commands.h (Vexecuting_kbd_macro)
1847 (Vminibuffer_local_completion_map)
1848 (Vminibuffer_local_filename_completion_map)
1849 (Vminibuffer_local_filename_must_match_map)
1850 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
1851 (Vminibuffer_local_ns_map, Vthis_command)
1852 (Vunread_command_events, cursor_in_echo_area)
1853 (last_command_event, last_nonmenu_event, unread_command_char):
1854 Remove declaration.
1855 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
1856 (Vdefault_file_name_coding_system)
1857 (Vdefault_process_coding_system, Vfile_name_coding_system)
1858 (Vlast_coding_system_used, Vlocale_coding_system)
1859 (Vselect_safe_coding_system_function)
1860 (Vtranslation_table_for_input, coding_system_require_warning)
1861 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
b286858c
SM
1862 (eol_mnemonic_unix, inherit_process_coding_system):
1863 Remove declaration.
1864 * charset.h (Vcharset_list, Vcurrent_iso639_language):
1865 Remove declaration.
29208e82
TT
1866 * character.h (Vauto_fill_chars, Vchar_direction_table)
1867 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
1868 (Vscript_representative_chars, Vtranslation_table_vector)
1869 (Vunicode_category_table): Remove declaration.
1870 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
1871 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
1872 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
1873 (inhibit_modification_hooks): Remove declaration.
1874 * xterm.c (syms_of_xterm): Update.
1875 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
1876 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
1877 (x_mouse_click_focus_ignore_position)
1878 (x_underline_at_descent_line)
1879 (x_use_underline_position_properties): Remove.
1880 * xsmfns.c (syms_of_xsmfns): Update.
1881 (Vx_session_id, Vx_session_previous_id): Remove.
1882 * xsettings.c (syms_of_xsettings): Update.
1883 (Vxft_settings, use_system_font): Remove.
1884 * xselect.c (syms_of_xselect): Update.
1885 (Vselection_converter_alist, Vx_lost_selection_functions)
1886 (Vx_sent_selection_functions, x_selection_timeout): Remove.
1887 * xfns.c (syms_of_xfns): Update.
1888 (Vgtk_version_string, Vmotif_version_string)
1889 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
1890 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
1891 (Vx_no_window_manager, Vx_nontext_pointer_shape)
1892 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
1893 (Vx_sensitive_text_pointer_shape)
1894 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
1895 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1896 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
1897 Remove.
1898 * xfaces.c (syms_of_xfaces): Update.
1899 (Vface_default_stipple, Vface_font_rescale_alist)
1900 (Vface_ignored_fonts, Vface_new_frame_defaults)
1901 (Vface_remapping_alist, Vfont_list_limit)
1902 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
1903 * xdisp.c (syms_of_xdisp): Update.
1904 (Vauto_resize_tool_bars, Vblink_cursor_alist)
1905 (Vdisplay_pixels_per_inch, Vfontification_functions)
1906 (Vframe_title_format, Vglobal_mode_string)
1907 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
1908 (Vicon_title_format, Vinhibit_redisplay)
1909 (Vline_number_display_limit, Vline_prefix)
1910 (Vmax_mini_window_height, Vmenu_bar_update_hook)
1911 (Vmenu_updating_frame, Vmessage_log_max)
1912 (Vmouse_autoselect_window, Vnobreak_char_display)
1913 (Voverlay_arrow_position, Voverlay_arrow_string)
1914 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
1915 (Vresize_mini_windows, Vshow_trailing_whitespace)
1916 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
1917 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
1918 (Vwindow_scroll_functions, Vwindow_size_change_functions)
1919 (Vwindow_text_change_functions, Vwrap_prefix)
1920 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
1921 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
1922 (highlight_nonselected_windows, hscroll_margin)
1923 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
1924 (inhibit_menubar_update, inhibit_try_cursor_movement)
1925 (inhibit_try_window_id, inhibit_try_window_reusing)
1926 (line_number_display_limit_width)
1927 (make_cursor_line_fully_visible_p, message_truncate_lines)
1928 (mode_line_inverse_video, multiple_frames, overline_margin)
1929 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
1930 (tool_bar_max_label_size, underline_minimum_offset)
1931 (unibyte_display_via_language_environment, x_stretch_cursor_p):
1932 Remove.
1933 * window.c (syms_of_window): Update.
1934 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
1935 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
1936 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
1937 (Vwindow_point_insertion_type, auto_window_vscroll_p)
1938 (mode_line_in_non_selected_windows, next_screen_context_lines)
1939 (window_min_height, window_min_width): Remove.
1940 (scroll_margin): Remove declaration.
1941 * w32term.c (syms_of_w32term): Update.
1942 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
1943 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
1944 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
1945 (w32_use_visible_system_caret, x_underline_at_descent_line)
1946 (x_use_underline_position_properties): Remove.
1947 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
1948 Remove declaration.
1949 * w32select.c (syms_of_w32select): Update.
1950 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
1951 * w32proc.c (syms_of_ntproc): Update.
1952 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
1953 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
1954 (Vw32_start_process_inherit_error_mode)
1955 (Vw32_start_process_share_console)
1956 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
1957 (Vsystem_name): Remove declaration.
1958 * w32font.c (syms_of_w32font): Update.
1959 (Vw32_charset_info_alist): Remove.
1960 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
1961 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
1962 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
1963 (Vw32_enable_palette, Vw32_lwindow_modifier)
1964 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
1965 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
1966 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1967 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
1968 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
1969 (Vx_no_window_manager, Vx_nontext_pointer_shape)
1970 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
1971 (Vx_sensitive_text_pointer_shape)
1972 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
1973 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
1974 (w32_mouse_move_interval)
1975 (w32_pass_extra_mouse_buttons_to_system)
1976 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
1977 (w32_strict_fontnames, w32_strict_painting): Remove.
1978 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
1979 (Vw32_recognize_altgr, Vwindow_system_version)
b286858c
SM
1980 (w32_num_mouse_buttons, w32_use_visible_system_caret):
1981 Remove declaration.
29208e82
TT
1982 * w32console.c (syms_of_ntterm): Update.
1983 (w32_use_full_screen_buffer): Remove.
1984 (Vtty_defined_color_alist): Remove declaration.
1985 * w16select.c (syms_of_win16select): Update.
1986 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
1987 * undo.c (syms_of_undo): Update.
1988 (Vundo_outer_limit, Vundo_outer_limit_function)
1989 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
1990 Remove.
1991 * textprop.c (syms_of_textprop): Update.
1992 (Vchar_property_alias_alist, Vdefault_text_properties)
1993 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
1994 Remove.
1995 * terminal.c (syms_of_terminal): Update.
1996 (Vdelete_terminal_functions, Vring_bell_function): Remove.
1997 * term.c (syms_of_term): Update.
1998 (Vresume_tty_functions, Vsuspend_tty_functions)
1999 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2000 Remove.
2001 * syntax.c (syms_of_syntax): Update.
2002 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2003 (open_paren_in_column_0_is_defun_start)
2004 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2005 (words_include_escapes): Remove.
2006 * search.c (syms_of_search): Update.
2007 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2008 * process.c (syms_of_process): Update.
2009 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2010 (delete_exited_processes): Remove.
2011 * print.c (syms_of_print): Update.
2012 (Vfloat_output_format, Vprint_charset_text_property)
2013 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2014 (Vprint_length, Vprint_level, Vprint_number_table)
2015 (Vstandard_output, print_escape_multibyte)
2016 (print_escape_newlines, print_escape_nonascii, print_quoted):
2017 Remove.
2018 * msdos.c (syms_of_msdos): Update.
2019 (Vdos_unsupported_char_glyph): Remove.
2020 (unibyte_display_via_language_environment): Remove declaration.
2021 * minibuf.c (syms_of_minibuf): Update.
2022 (Vcompletion_regexp_list, Vhistory_add_new_input)
2023 (Vhistory_length, Vminibuffer_completing_file_name)
2024 (Vminibuffer_completion_confirm)
2025 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
2026 (Vminibuffer_exit_hook, Vminibuffer_help_form)
2027 (Vminibuffer_history_position, Vminibuffer_history_variable)
2028 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
2029 (Vread_buffer_function, Vread_expression_map)
2030 (completion_ignore_case, enable_recursive_minibuffers)
2031 (history_delete_duplicates, minibuffer_allow_text_properties)
2032 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
2033 Remove.
2034 * marker.c (syms_of_marker): Update.
2035 (byte_debug_flag): Remove.
2036 * macros.c (syms_of_macros): Update.
2037 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
2038 * lread.c (syms_of_lread): Update.
2039 (Vafter_load_alist, Vbyte_boolean_vars)
2040 (Vbytecomp_version_regexp, Vcurrent_load_list)
2041 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
2042 (Vload_history, Vload_path, Vload_read_function)
2043 (Vload_source_file_function, Vload_suffixes, Vobarray)
2044 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
2045 (Vread_symbol_positions_list, Vread_with_symbol_positions)
2046 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
2047 (force_load_messages, load_convert_to_unibyte)
2048 (load_dangerous_libraries, load_force_doc_strings)
2049 (load_in_progress): Remove.
2050 * keymap.c (syms_of_keymap): Update.
2051 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
2052 (Vminibuffer_local_completion_map)
2053 (Vminibuffer_local_filename_completion_map)
2054 (Vminibuffer_local_filename_must_match_map)
2055 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2056 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
2057 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
2058 Remove.
2059 * keyboard.c (syms_of_keyboard): Update.
2060 (Vauto_save_timeout, Vcommand_error_function)
2061 (Vcommand_hook_internal, Vdeactivate_mark)
2062 (Vdeferred_action_function, Vdeferred_action_list)
2063 (Vdisable_point_adjustment, Vdouble_click_time)
2064 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
2065 (Vfunction_key_map, Vglobal_disable_point_adjustment)
2066 (Vhelp_char, Vhelp_event_list, Vhelp_form)
2067 (Vinput_method_function, Vinput_method_previous_message)
2068 (Vkey_translation_map, Vlast_event_frame)
2069 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
2070 (Vminibuffer_message_timeout, Voverriding_local_map)
2071 (Voverriding_local_map_menu_flag, Vpost_command_hook)
2072 (Vpre_command_hook, Vprefix_help_command)
2073 (Vsaved_region_selection, Vselect_active_regions)
2074 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
2075 (Vthis_command, Vthis_command_keys_shift_translated)
2076 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
2077 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
2078 (Vtty_erase_char, Vunread_command_events)
2079 (Vunread_input_method_events, Vunread_post_input_method_events)
2080 (auto_save_interval, cannot_suspend, do_mouse_tracking)
2081 (double_click_fuzz, extra_keyboard_modifiers)
2082 (inhibit_local_menu_bar_menus, last_command_event)
2083 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
2084 (menu_prompting, meta_prefix_char, num_input_keys)
2085 (num_nonmacro_input_events, polling_period, unread_command_char):
2086 Remove.
2087 * insdel.c (syms_of_insdel): Update.
2088 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
2089 * indent.c (syms_of_indent): Update.
2090 (indent_tabs_mode): Remove.
2091 * image.c (syms_of_image): Update.
2092 (Vimage_cache_eviction_delay, Vimage_types)
2093 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
2094 (cross_disabled_images): Remove.
2095 * fringe.c (syms_of_fringe): Update.
2096 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
2097 * frame.c (syms_of_frame): Update.
2098 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
2099 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
2100 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
2101 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
2102 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
2103 Remove.
2104 * fontset.c (syms_of_fontset): Update.
2105 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
2106 (Vfontset_alias_alist, Vignore_relative_composition)
2107 (Votf_script_alist, Vuse_default_ascent)
2108 (Vvertical_centering_font_regexp): Remove.
2109 * font.c (syms_of_font): Update.
2110 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
2111 (Vfont_weight_table, Vfont_width_table): Remove.
2112 * fns.c (syms_of_fns): Update.
2113 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
2114 * filelock.c (syms_of_filelock): Update.
2115 (Vtemporary_file_directory): Remove.
2116 * fileio.c (syms_of_fileio): Update.
2117 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
2118 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
2119 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
2120 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
2121 (Vinhibit_file_name_operation, Vset_auto_coding_function)
2122 (Vwrite_region_annotate_functions)
2123 (Vwrite_region_annotations_so_far)
2124 (Vwrite_region_post_annotation_function)
2125 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
2126 (Vw32_get_true_file_attributes): Remove declaration.
2127 * eval.c (syms_of_eval): Update.
2128 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
2129 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
2130 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
2131 (debug_on_next_call, debug_on_quit, debugger_may_continue)
2132 (max_lisp_eval_depth, max_specpdl_size): Remove.
2133 * emacs.c (syms_of_emacs): Update.
2134 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
2135 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
2136 (Vinstallation_directory, Vinvocation_directory)
2137 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
2138 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
2139 (Vsystem_configuration, Vsystem_configuration_options)
2140 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
2141 (inhibit_x_resources, noninteractive1): Remove.
2142 * editfns.c (syms_of_editfns): Update.
2143 (Vbuffer_access_fontified_property)
2144 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
2145 (Voperating_system_release, Vsystem_name, Vuser_full_name)
2146 (Vuser_login_name, Vuser_real_login_name): Remove.
2147 * dosfns.c (syms_of_dosfns): Update.
2148 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
2149 (dos_codepage, dos_country_code, dos_decimal_point)
2150 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
2151 (dos_super_key, dos_timezone_offset): Remove.
2152 * doc.c (syms_of_doc): Update.
2153 (Vbuild_files, Vdoc_file_name): Remove.
2154 * dispnew.c (syms_of_display): Update.
2155 (Vglyph_table, Vinitial_window_system)
2156 (Vredisplay_preemption_period, Vstandard_display_table)
2157 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
2158 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
2159 * dired.c (syms_of_dired): Update.
2160 (Vcompletion_ignored_extensions): Remove.
2161 (Vw32_get_true_file_attributes): Remove declaration.
2162 * dbusbind.c (syms_of_dbusbind): Update.
2163 (Vdbus_debug, Vdbus_registered_buses)
2164 (Vdbus_registered_objects_table): Remove.
2165 * data.c (syms_of_data): Update.
2166 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
2167 * composite.c (syms_of_composite): Update.
2168 (Vauto_composition_function, Vauto_composition_mode)
2169 (Vcompose_chars_after_function, Vcomposition_function_table):
2170 Remove.
2171 * coding.c (syms_of_coding): Update.
2172 (Vcharset_revision_table, Vcoding_category_list)
2173 (Vcoding_system_alist, Vcoding_system_for_read)
2174 (Vcoding_system_for_write, Vcoding_system_list)
2175 (Vdefault_process_coding_system, Venable_character_translation)
2176 (Vfile_coding_system_alist, Vlast_code_conversion_error)
2177 (Vlast_coding_system_used, Vlatin_extra_code_table)
2178 (Vlocale_coding_system, Vnetwork_coding_system_alist)
2179 (Vprocess_coding_system_alist)
2180 (Vselect_safe_coding_system_function)
2181 (Vstandard_translation_table_for_decode)
2182 (Vstandard_translation_table_for_encode)
2183 (Vtranslation_table_for_input, coding_system_require_warning)
2184 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2185 (eol_mnemonic_unix, inherit_process_coding_system)
2186 (inhibit_eol_conversion, inhibit_iso_escape_detection)
2187 (inhibit_null_byte_detection): Remove.
2188 * cmds.c (syms_of_cmds): Update.
2189 (Vpost_self_insert_hook): Remove.
2190 * charset.c (syms_of_charset): Update.
2191 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
2192 (inhibit_load_charset_map): Remove.
2193 * character.c (syms_of_character): Update.
2194 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
2195 (Vchar_width_table, Vprintable_chars)
2196 (Vscript_representative_chars, Vtranslation_table_vector)
2197 (Vunicode_category_table): Remove.
2198 * ccl.c (syms_of_ccl): Update.
2199 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
2200 (Vtranslation_hash_table_vector): Remove.
2201 * category.c (syms_of_category): Update.
2202 (Vword_combining_categories, Vword_separating_categories): Remove.
2203 * callproc.c (syms_of_callproc): Update.
2204 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
2205 (Vexec_directory, Vexec_path, Vexec_suffixes)
2206 (Vinitial_environment, Vprocess_environment)
2207 (Vshared_game_score_directory, Vshell_file_name): Remove.
2208 * callint.c (syms_of_callint): Update.
2209 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
2210 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
2211 * bytecode.c (syms_of_bytecode): Update.
2212 (Vbyte_code_meter, byte_metering_on): Remove.
2213 * buffer.c (syms_of_buffer): Update.
2214 (Vafter_change_functions, Vbefore_change_functions)
2215 (Vchange_major_mode_hook, Vfirst_change_hook)
2216 (Vinhibit_read_only, Vkill_buffer_query_functions)
2217 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
2218 * alloc.c (syms_of_alloc): Update.
2219 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
2220 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
2221 (cons_cells_consed, floats_consed, garbage_collection_messages)
2222 (gc_cons_threshold, gcs_done, intervals_consed)
2223 (misc_objects_consed, pure_bytes_used, string_chars_consed)
2224 (strings_consed, symbols_consed, vector_cells_consed): Remove.
2225
2226 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2227 (DEFVAR_INT): Assume global is in `globals'.
2228 * alloc.c (globals): Define.
2229
448c0820
TT
22302011-01-18 Tom Tromey <tromey@redhat.com>
2231
2232 * image.c (Vimagemagick_render_type): Remove redundant
2233 definition.
2234
8442d95d
TT
22352011-01-18 Tom Tromey <tromey@redhat.com>
2236
2237 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
2238 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
2239 (redisplay_window): Update.
2240 (syms_of_xdisp): Update.
2241
cab0ba98
TT
22422011-01-18 Tom Tromey <tromey@redhat.com>
2243
2244 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
2245 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
2246 Declare.
2247 * gtkutil.c (xg_uses_old_file_dialog):
2248 (xg_get_file_with_chooser):
2249 (xg_tool_bar_detach_callback): Don't redeclare globals.
2250
422745d0
TT
22512011-01-18 Tom Tromey <tromey@redhat.com>
2252
2253 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
2254 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
2255
7cae64b4
PE
22562011-01-18 Paul Eggert <eggert@cs.ucla.edu>
2257
2258 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
2259 defined __GNUC__. ../configure now checks for this GCC feature,
2260 which is now also supported by IBM and Oracle compilers.
2261 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
2262 since Solaris malloc returns mult-of-8.
2263
a9faac5c 22642011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
2265
2266 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
2267
a3e44e79 22682011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 2269
6e8e6bf2
PE
2270 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
2271 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
2272 * data.c (Fnumber_to_string): Use it.
2273 * print.c (float_to_string, print_object): Likewise.
2274
4004364e
PE
2275 Include <unistd.h> unilaterally.
2276 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
2277 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
2278 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
2279 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
2280 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
2281 * xterm.c:
2282 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
2283 unistd.h is always present now, possibly supplied by gnulib.
2284
e84aba69
PE
2285 * mktime.c: Remove; moving to ../lib.
2286
1e11dbe3
PE
2287 Use gnulib's mktime module.
2288 * deps.mk (mktime.o): Remove rule.
2289
fa2c4f56
PE
2290 Use gnulib's ftoastr module.
2291 * print.c: Include ftoastr.h.
2292 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
2293 Remove; no longer needed.
2294 (float_to_string): Use dtoastr rather than rolling our own code,
2295 which had an off-by-one bug on non-IEEE hosts.
2296
9a514d4a
PE
2297 Automate syncing from gnulib.
2298 * Makefile.in (lib): New macro.
2299 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
2300 ($(lib)/libgnu.a): New rule.
2301 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
2302
717c30e0
PE
2303 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
2304 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
2305 so change the type of 'ign' to unsigned int from int.
2306
8865d794
PE
2307 * regex.c (analyse_first): Remove unreachable 'continue' statement.
2308
4ef36a7b
PE
2309 * xterm.h (struct x_display_info): Remove stray semicolon.
2310 The extra semicolon didn't conform to the C standard.
2311 Problem reported by Sun cc.
2312
6df4097e
PE
2313 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
2314 These changes make compilation easier to follow with Sun cc.
2315 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
2316 EMACS_INT values without provoking overflow diagnostics.
2317 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
2318 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
2319 diagnostic with signed left shift.
9fba3563 2320
410ed5c3
PE
2321 * fileio.c (make_temp_name): Remove unreachable code.
2322
97be3ce3
PE
2323 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
2324 Previously it was marked by preceding it with "return;", but
2325 Sun cc complains about this.
2326
9fba3563
PE
2327 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
2328 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
2329 which fixed Bug#2370. Caught by Sun cc.
2330
6dc1d2d3
MR
23312011-01-15 Martin Rudalics <rudalics@gmx.at>
2332
2333 * window.c (inhibit_point_swap): New variable.
2334 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
2335 point this time.
2336 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
2337 of setting selected_window to nil (Bug#7728).
2338
f853f599
TH
23392011-01-11 Tassilo Horn <tassilo@member.fsf.org>
2340
8dabbfd6
SM
2341 * image.c (imagemagick_load_image, Finit_image_library):
2342 Free intermediate image after creating a MagickWand from it.
2343 Terminate MagickWand environment after image loading.
f853f599 2344
2bc92a93
MA
23452011-01-10 Michael Albinus <michael.albinus@gmx.de>
2346
2347 * dbusbind.c (Fdbus_register_service): Raise an error in case of
2348 unexpected return values.
2349 (Fdbus_register_method): Remove connection initialization.
2350
23512011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
2352
2353 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
2354 used by Fdbus_register_service.
2355 (QCdbus_request_name_replace_existing): Likewise.
2356 (QCdbus_request_name_do_not_queue): Likewise.
2357 (QCdbus_request_name_reply_primary_owner): Likewise.
2358 (QCdbus_request_name_reply_in_queue): Likewise.
2359 (QCdbus_request_name_reply_exists): Likewise.
2360 (QCdbus_request_name_reply_already_owner): Likewise.
2361 (Fdbus_register_service): New function.
2362 (Fdbus_register_method): Use Fdbus_register_service to do the name
2363 registration.
2364 (syms_of_dbusbind): Add symbols dbus-register-service,
2365 :allow-replacement, :replace-existing, :do-not-queue,
2366 :primary-owner, :existing, :in-queue and :already-owner.
2367
21a76236
CY
23682011-01-09 Chong Yidong <cyd@stupidchicken.com>
2369
2370 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
2371 when removing extra buttons.
2372
3d91e302
CY
23732011-01-08 Chong Yidong <cyd@stupidchicken.com>
2374
2375 * fns.c (Fyes_or_no_p): Doc fix.
2376
0d23ffb5
AS
23772011-01-08 Andreas Schwab <schwab@linux-m68k.org>
2378
2379 * fns.c (Fyes_or_no_p): Add usage.
2380
9dc3366b
GM
23812011-01-08 Glenn Morris <rgm@gnu.org>
2382
d0981f82
GM
2383 * makefile.w32-in ($(EMACS)):
2384 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
2385
9dc3366b
GM
2386 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
2387 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
2388
466cbae9
AS
23892011-01-07 Andreas Schwab <schwab@linux-m68k.org>
2390
2391 * image.c (imagemagick_load_image): Fix some resource leaks and
2392 error handling.
2393
8c51d2a2
CY
23942011-01-07 Chong Yidong <cyd@stupidchicken.com>
2395
2396 * fns.c (Fyes_or_no_p): Accept format string args.
2397
66b7b0fe
GM
23982011-01-07 Glenn Morris <rgm@gnu.org>
2399
2400 * emacs.c (no_site_lisp): New int.
2401 (USAGE1): Add --no-site-lisp, mention -Q uses it.
2402 (main): Set no_site_lisp.
2403 (standard_args): Add --no-site-lisp.
2404 * lisp.h (no_site_lisp): New int.
2405 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
2406 directories to Vload_path.
2407
2018939f
AS
24082011-01-05 Andreas Schwab <schwab@linux-m68k.org>
2409
2410 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
2411
6ed843e5
MA
24122011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
2413
8dabbfd6 2414 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
2415 dont_register_service. Updated docstring accordingly.
2416
3f9b7090
GM
24172011-01-04 Glenn Morris <rgm@gnu.org>
2418
2419 * emacs.c (emacs_copyright): Update short copyright year to 2011.
2420
d82bce4a
EZ
24212011-01-03 Eli Zaretskii <eliz@gnu.org>
2422
2423 * image.c (png_jmpbuf): Remove definition.
2424 (my_png_error, png_load): Don't use png_jmpbuf.
2425
7c420169
CY
24262011-01-02 Eli Zaretskii <eliz@gnu.org>
2427
2428 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
2429
24302011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
2431
2432 * image.c <Qlibpng_version>: New variable.
2433 (syms_of_image): Intern and staticpro it. Set its value to the
2434 version of PNG library we were compiled with.
2435 (my_png_error, png_load): Avoid GCC warnings about direct access
2436 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
2437 (png_jmpbuf): New macro.
2438 (my_png_error, png_load): Use it instead of #ifdef'ing according
2439 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 2440
7c420169 24412011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
2442
2443 * .gdbinit (xgetptr): Fix the union+lsb case.
2444 (xbacktrace): Fix the union case.
2445
7c420169 24462011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
2447
2448 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
2449 different from selected-window's.
2450
7c420169 24512011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 2452
71fe378d
EZ
2453 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
2454 equivalent of a menu item when the key sequence is given by the
2455 `:keys' attribute. (Bug#7662)
2456
2e4ab211
EZ
2457 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
2458 the basic faces are supported.
2459
7c420169 24602011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
2461
2462 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
2463
7c420169 24642011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
2465
2466 * xdisp.c (Fformat_mode_line): Fix last change.
2467
7c420169 24682011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
2469
2470 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
2471 faces (Bug#7587).
2472
7c420169 24732011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
2474
2475 * fileio.c (Fexpand_file_name): One more doc fix.
2476
3afff00e
CY
24772011-01-01 Chong Yidong <cyd@stupidchicken.com>
2478
2479 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
2480 image or label in the container.
2481 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
2482 (xg_show_toolbar_item): Function deleted.
2483 (xg_tool_item_stale_p): New function.
2484 (update_frame_tool_bar): Calculate tool-bar style once per call.
2485 Instead of hiding text labels, omit them. Don't use
2486 xg_show_toolbar_item; create new GtkToolItems from scratch if
2487 necessary, instead of trying to re-use them. This avoids an
2488 annoying animation when changing tool-bars.
2489
aeb7e951
JD
24902010-12-31 Jan Djärv <jan.h.d@swipnet.se>
2491
2492 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
2493 title and buffer filename only for RepresentedFilename.
2494 Handle bad UTF-8 in buffer name (Bug#7517).
2495
5bbb4727
JD
24962010-12-30 Jan Djärv <jan.h.d@swipnet.se>
2497
2498 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
2499
2500 * nsfns.m (ns_set_name_iconic): Remove.
2501 (ns_set_name_internal): New function (Bug#7517).
2502 (Vicon_title_format): Extern declare.
2503 (ns_set_name): Call ns_set_name_internal.
2504 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
2505 (x_implicitly_set_name): Ditto.
2506 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
2507 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
2508
f1aab3ff
ŠN
25092010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
2510
2511 * window.c (syms_of_window): Add missing defsubr for
2512 window-use-time.
2513
365525b3
AS
25142010-12-28 Andreas Schwab <schwab@linux-m68k.org>
2515
2516 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
2517 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
2518
59fc5cf9
AS
25192010-12-27 Andreas Schwab <schwab@linux-m68k.org>
2520
2f7c71a1
AS
2521 * buffer.c: Remove unused declarations.
2522 * buffer.h: Likewise.
2523 * charset.h: Likewise.
2524 * composite.h: Likewise.
2525 * dispextern.h: Likewise.
2526 * dispnew.c: Likewise.
2527 * font.h: Likewise.
2528 * fontset.c: Likewise.
2529 * fontset.h: Likewise.
2530 * intervals.h: Likewise.
2531 * keymap.h: Likewise.
2532 * lisp.h: Likewise.
2533 * syntax.c: Likewise.
2534 * syntax.h: Likewise.
2535 * termhooks.h: Likewise.
2536 * window.h: Likewise.
2537 * xsettings.h: Likewise.
2538 * xterm.c: Likewise.
2539 * xterm.h: Likewise.
2540
2541 * chartab.c (sub_char_table_ref): Make static.
2542 * dispnew.c (line_hash_code, required_matrix_height)
2543 (required_matrix_width): Likewise.
2544 * eval.c (interactive_p, apply_lambda): Likewise.
2545 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
2546 Likewise.
2547 * font.c (QCadstyle, QCregistry, font_make_spec)
2548 (font_parse_fcname, font_encode_char, font_at): Likewise.
2549 * frame.c (x_frame_get_arg): Likewise.
2550 * keymap.c (get_keyelt): Likewise.
2551 * lread.c (read_filtered_event): Likewise.
2552 * print.c (write_string_1): Likewise.
2553 * window.c (delete_window, window_height, window_width)
2554 (foreach_window): Likewise.
2555 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
2556 * xterm.c (x_scroll_bar_clear, xembed_set_info)
2557 (xembed_send_message): Likewise.
2558
2559 * eval.c (run_hook_list_with_args): Delete.
2560 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
2561 * terminal.c (get_terminal_param): Likewise.
2562 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
2563
c4b607ed
AS
2564 * scroll.c: Fix comment.
2565
59fc5cf9
AS
2566 * dispnew.c (add_window_display_history)
2567 (add_frame_display_history, glyph_row_slice_p)
2568 (find_glyph_row_slice, flush_stdout)
2569 (check_matrix_pointer_lossage, matrix_row)
2570 (check_matrix_invariants, check_window_matrix_pointers)
2571 (check_matrix_pointers, window_to_frame_vpos)
2572 (window_to_frame_hpos): Prototize.
2573 * textprop.c (erase_properties): Likewise.
2574
a65b85b5
SM
25752010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
2576
17870c01
SM
2577 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
2578 (print_preprocess): Fix handling of uninterned symbols in last change.
2579
a65b85b5
SM
2580 * print.c (print, print_preprocess, print_object): Use a hash table
2581 rather than a linear table for Vprint_number_table.
2582
f13183cf
CY
25832010-12-20 Chong Yidong <cyd@stupidchicken.com>
2584
2585 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
2586
94975270
CY
25872010-12-20 Chong Yidong <cyd@stupidchicken.com>
2588
2589 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
2590 (parse_tool_bar_item): Use it to obtain image separators for
2591 displays not using native tool-bar separators.
2592
2593 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
2594 specially, since this is now done in parse_tool_bar_item.
2595
ef1b0ba7
SM
25962010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
2597
2598 Minor clean up to silence some gcc warnings.
2599 * window.c (Fset_window_buffer):
2600 * xterm.c (x_set_frame_alpha): Restructure code to silence
2601 compiler warning.
2602 (handle_one_xevent): Remove unused var `p'.
2603 (do_ewmh_fullscreen): Remove unused var `lval'.
2604 (xembed_set_info): Remove unused var `atom'.
2605 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
2606 compiler warning.
2607 * fontset.c (fontset_id_valid_p, dump_fontset):
2608 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
2609 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
2610 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
2611 label only when it's used.
2612 * image.c (x_create_bitmap_from_xpm_data):
2613 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
2614 its callers.
2615 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
2616 `consumed_chars'.
2617 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
2618 (decode_coding_emacs_mule): Remove unused label `retry'.
2619 (detect_eol): Add parens to silence compiler warning.
2620 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
2621 it's used to silence the compiler.
2622 (make_number): Modernize k&r declaration.
2623 (mark_char_table): Add parens to silence compiler warning.
2624
4039c786
CY
26252010-12-17 Chong Yidong <cyd@stupidchicken.com>
2626
2627 * keyboard.c (parse_tool_bar_item): Allow menu separators in
2628 tool-bar maps.
2629 (menu_separator_name_p): New function, from gtkutil.c.
2630 (separator_names): Move from gtkutil.c.
2631
2632 * keyboard.h (menu_separator_name_p): Add prototype.
2633
2634 * gtkutil.c (XG_BIN_CHILD): New macro.
2635 (xg_get_menu_item_label, xg_update_menubar)
2636 (xg_update_menu_item, xg_tool_bar_menu_proxy)
2637 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
2638 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
2639 (create_menus, xg_update_submenu, update_frame_tool_bar):
2640 Use menu_separator_name_p.
4039c786
CY
2641
2642 * nsmenu.m (name_is_separator): Function deleted.
2643 (addItemWithWidgetValue): Use menu_separator_name_p.
2644
2645 * w32menu.c (name_is_separator): Function deleted.
2646 (add_menu_item): Use menu_separator_name_p.
2647
aa936e8e
JD
26482010-12-16 Jan Djärv <jan.h.d@swipnet.se>
2649
2650 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
2651 same as the background, use the face forground as cursor.
2652
f49d1f52 26532010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
2654
2655 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
2656
f49d1f52 26572010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 2658
f0559026
EZ
2659 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
2660 (face_before_or_after_it_pos, next_element_from_string)
2661 (next_element_from_c_string, produce_stretch_glyph): Remove unused
2662 calculations of maximum string length before calling
2663 string_char_and_length and STRING_CHAR_AND_LENGTH.
2664 (string_char_and_length): Update commentary: MAXLEN is no longer
2665 needed.
2666
f49d1f52 26672010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
2668
2669 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
2670 as (Qsave_session arg).
2671
2672 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
2673 (smc_die_CB): Make an event with arg Qt.
2674 (Fhandle_save_session): If event has Qt as argument,
2675 call Fkill_emacs (Bug#7552).
2676
f49d1f52
SM
26772010-12-13 Chong Yidong <cyd@stupidchicken.com>
2678
2679 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
2680
26812010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
2682
2683 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
2684
f49d1f52 26852010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
2686
2687 * dispextern.h (struct it): New member overlay_strings_charpos.
2688
2689 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
2690 charpos where we computed n_overlay_strings.
2691 (next_overlay_string): Load overlay strings at recorded position,
2692 which may not be the same as the iterator's charpos (Bug#7016).
2693
f49d1f52 26942010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
2695
2696 * xdisp.c (try_scrolling): Avoid infloop if the first line is
2697 obscured due to a vscroll (Bug#7537).
2698
f49d1f52 26992010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
2700
2701 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
2702
2703 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
2704 Use FRAME_TOOLBAR_HEIGHT.
2705 (x_set_offset): Handle XNegative and YNegative in
2706 f->size_hint_flags (Bug#7510).
2707
39321b94
EZ
27082010-12-11 Eli Zaretskii <eliz@gnu.org>
2709
2710 * w32fns.c (Fx_show_tip): Call try_window with last argument
2711 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
2712 solved. Round up the tip height to an integral multiple of the
2713 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
2714 (Bug#7398)
2715
ec1b9b17
GM
27162010-12-08 Glenn Morris <rgm@gnu.org>
2717
2718 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
2719
3c2317e8
LMI
27202010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
2721
2722 * xml.c (parse_region): Ignore blank HTML nodes.
2723 (make_dom): Return CDATA sections (like <style>foo</style>) as
2724 text nodes.
2725
bba3e508
SM
27262010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
2727
2728 * lread.c (read1): Allow newstyle unquote outside of backquote.
2729 Disallow old-style backquotes inside new-style backquotes.
2730 Don't count unquotes to figure out when we're "syntactically inside
2731 but semantically outside of a backquote" any more.
2732 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
2733 to all contexts.
2734
d23d8608
CY
27352010-12-05 Chong Yidong <cyd@stupidchicken.com>
2736
2737 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
2738
d6a003a8
AS
27392010-12-04 Andreas Schwab <schwab@linux-m68k.org>
2740
2741 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
2742 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
2743 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
2744
201ef780
AS
27452010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2746
2747 * lisp.h (union Lisp_Object): Explicitly declare signedness of
2748 bit-field.
2749 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
2750 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
2751 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
2752 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
2753 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
2754 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
2755 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
2756 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
2757 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
2758 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
2759 * m/hp800.h: Remove file.
2760 * m/mips.h: Remove file.
2761
146490c3
JD
27622010-12-03 Jan Djärv <jan.h.d@swipnet.se>
2763
2764 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
2765 with cursor color and draw a rectangle around the image (Bug#7412).
2766
babc8f0d
AS
27672010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2768
2769 * frame.c (x_set_font): Remove unused variable.
2770
9583e9a0
JD
27712010-12-02 Jan Djärv <jan.h.d@swipnet.se>
2772
dd723bbd
JD
2773 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
2774
9583e9a0
JD
2775 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
2776 drawing text under filled box cursor (Bug#7479).
2777
07976ae3 27782010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
2779
2780 * charset.c (emacs_mule_charset): Make it an array of charset ID;
2781 i.e. integer.
bba3e508 2782 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
2783 (init_charset_once): Likewise.
2784
bba3e508
SM
2785 * charset.h (emacs_mule_charset): Adjust the prototype.
2786 Delete duplicated extern.
b84ae584
KH
2787
2788 * coding.c (emacs_mule_char): Adjust for the change of
2789 emacs_mule_charset.
2790
2791 * lread.c (read_emacs_mule_char): Adjust for the change of
2792 emacs_mule_charset.
2793
07976ae3 27942010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
2795
2796 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
2797 of w32api >= 3.15. (Bug#6989) (Bug#7452)
2798
07976ae3 27992010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
2800
2801 * alloc.c (mark_terminals): Ensure that the image cache is marked
2802 even if the terminal object was marked earlier (Bug#6301).
2803
35f1de62
CY
28042010-11-21 Chong Yidong <cyd@stupidchicken.com>
2805
2806 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
2807
07976ae3 28082010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
2809
2810 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
2811 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 2812 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 2813
8547874a
EZ
28142010-11-26 Eli Zaretskii <eliz@gnu.org>
2815
228482b2
EZ
2816 * xdisp.c (set_message_1): Force paragraph direction in echo area
2817 be left-to-right.
2818
8547874a
EZ
2819 * keyboard.c (make_lispy_position): Put a meaningful value in yret
2820 when the click is on the header or mode line.
2821
1e2dddbe
EZ
28222010-11-25 Eli Zaretskii <eliz@gnu.org>
2823
2824 * xdisp.c (set_cursor_from_row): Don't forget to consider the
2825 `cursor' property of the first character in overlay strings.
12365240 2826 (Bug#7474) (Bug#7481)
1e2dddbe 2827
50795d1f
JD
28282010-11-24 Jan Djärv <jan.h.d@swipnet.se>
2829
2830 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
2831 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
2832 (keyDown): Parse left and right keys separately (Bug#7458).
2833 Compare Left key masks exactly (Bug#7458).
50795d1f 2834
f8ab8c1f
EZ
28352010-11-23 Eli Zaretskii <eliz@gnu.org>
2836
2837 * intervals.c (temp_set_point_both): Define before calling, to
2838 avoid GCC warnings.
2839
2e8a4797
DN
28402010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
2841
b29116ef
DN
2842 * nsmenu.m: Use #include <config.h> instead of "config.h".
2843
b932f8b1 2844 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 2845 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
2846 Move declarations ...
2847 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 2848 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
2849 ... here.
2850
42c8bc9b
DN
2851 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
2852 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
2853 (gdb_pvec_type):
2854 * print.c (print_output_debug_flag):
2855 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
2856 (safe_debug_print): New declaration.
2857
2e8a4797
DN
2858 * xterm.c:
2859 * systty.h:
2860 * sound.c: Include <sys/ioctl.h> unconditionally.
2861
b609f591
YM
28622010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2863
2864 * alloc.c (mark_maybe_object): Return early if given a Lisp
2865 integer (Bug#6301).
2866
731e263a
KB
28672010-11-21 Ken Brown <kbrown@cornell.edu>
2868
2869 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
2870
b7d1e144
JD
28712010-11-21 Jan Djärv <jan.h.d@swipnet.se>
2872
2873 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
2874 Define (Bug#7458).
2875 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
2876 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
2877 NSRightControlKeyMask also (Bug#7458).
2878 (keyDown): Ditto (Bug#7458).
2879 (syms_of_nsterm): Defvar ns-right-command-modifier and
2880 ns-right-control-modifier (Bug#7458).
2881
b7982059
DN
28822010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2883
bee3419f
DN
2884 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
2885 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
2886
b7982059
DN
2887 * intervals.h (temp_set_point, temp_set_point_both):
2888 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
2889
01664ed1
KB
28902010-11-20 Ken Brown <kbrown@cornell.edu>
2891
2892 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
2893
7c2d713b
EZ
28942010-11-20 Eli Zaretskii <eliz@gnu.org>
2895
2896 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
2897 \xNNNNNN for hex-code display of glyphless characters.
2898
d2bd5189
JD
28992010-11-20 Jan Djärv <jan.h.d@swipnet.se>
2900
2901 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
2902 Set important to ! vert_only.
2903 (xg_show_toolbar_item): Don't show label horizontally if
2904 tool item isn't important.
2905 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
2906 xg_make_tool_item, or update important on existing tool item.
2907
2908 * keyboard.c (QCvert_only): New variable.
2909 (parse_tool_bar_item): Check for QCvert_only.
2910 (syms_of_keyboard): Initialize QCvert_only.
2911
2912 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
2913
d9a95e67
EZ
29142010-11-20 Eli Zaretskii <eliz@gnu.org>
2915
2916 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
2917 same in-line.
2918
b6557553
AS
29192010-11-20 Andreas Schwab <schwab@linux-m68k.org>
2920
2921 * xfaces.c (lookup_face): Make static.
2922 * dispnew.c (copy_row_except_pointers): Likewise.
2923 * syntax.c (dec_bytepos): Likewise.
2924 (inc_bytepos): Remove.
2925 * dispextern.h (lookup_face): Remove declaration.
2926
f48fe1f0
EZ
29272010-11-19 Eli Zaretskii <eliz@gnu.org>
2928
2929 * xdisp.c (set_cursor_from_row): Display cursor after all the
2930 glyphs that come from an overlay. Don't overstep the last glyph
2931 when skipping glyphs from an overlay. (Bug#6687)
2932
654ef137
DN
29332010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
2934
84dfc8a7
DN
2935 * alloc.c (refill_memory_reserve): Move declaration ...
2936 * lisp.h (refill_memory_reserve): ... here.
2937
94fa3833
DN
2938 * strftime.c (_strftime_copytm): Add declaration.
2939
dde990a0
DN
2940 * callproc.c (syms_of_callproc): Use intern_c_string.
2941
50c77428
DN
2942 Move declarations from .c files to .h files.
2943 * process.c (timers_run):
2944 * minibuf.c (quit_char):
2945 * lread.c (read_emacs_mule_char):
2946 * keyboard.c (minibuf_level, message_enable_multibyte)
2947 (pending_malloc_warning):
2948 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
2949 (Qonly): Remove declarations.
2950 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
2951 (Vselect_active_regions):
2f8f196d 2952 * keyboard.h (timers_run): Add declarations.
50c77428 2953
654ef137
DN
2954 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
2955 (tm_diff): Convert definitions to standard C.
2956 (extra_args_spec_iso): Remove, unused.
2957
4a47c275 29582010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
2959
2960 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
2961
2962 * config.in (HAVE_G_TYPE_INIT): New symbol.
2963
4a47c275 29642010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
2965
2966 * lread.c (Fload): Mention `load-in-progress' and
2967 `load-file-name'. (Bug#7346)
2968
86520d8c
EZ
2969 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
2970 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
2971 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
2972 subprocesses. Use buffer_free only ifdef subprocesses.
2973
2974 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
2975 the subprocesses version, not in the non-subprocesses one.
2976
794a4b6d
EZ
2977 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
2978
146d267b
EZ
29792010-11-17 Eli Zaretskii <eliz@gnu.org>
2980
2981 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
2982 lines on text-mode terminals. (bug#7417)
2983
fad0d565
SM
29842010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2985
2986 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
2987 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
2988
6b4bb703
KH
29892010-11-17 Kenichi Handa <handa@m17n.org>
2990
2991 * coding.c (Fset_terminal_coding_system_internal): Fix previous
2992 change (set charset-ID list instead of charset-symbol list).
2993
9173a8fb
CY
29942010-11-16 Chong Yidong <cyd@stupidchicken.com>
2995
2996 * keyboard.c (make_lispy_position): For text area clicks, record Y
2997 pixel position relative to the text area, excluding header line.
2998 Also change X and Y to Lisp_Objects, not pointers; don't return
2999 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
3000 buffer_posn_from_coords counting from the start of the text area.
3001 (Fposn_at_x_y, make_lispy_event): Callers changed.
3002
3003 * window.c (coordinates_in_window): Change X and Y to ints rather
3004 than pointers; don't return coordinates via pointers.
3005 (struct check_window_data): Change X and Y from pointers to ints.
3006 (window_from_coordinates): Remove args WX and WY; don't return
3007 coordinates via pointers.
3008 (Fcoordinates_in_window_p, window_from_coordinates):
3009 (check_window_containing, Fwindow_at): Callers changed.
3010 (window_relative_x_coord): New function.
3011
3012 * window.h (window_from_coordinates, window_relative_x_coord):
3013 Update prototypes.
3014
3015 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3016 the start of the text area.
3017
3018 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3019 call. Use window_relative_x_coord.
3020 (note_mouse_highlight): Change window_from_coordinates call.
3021
3022 * w32term.c (w32_read_socket):
3023 * msdos.c (dos_rawgetc):
3024 * xterm.c (handle_one_xevent): Likewise.
3025
d2762c86
DN
30262010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
3027
3028 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
3029 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
3030 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
3031 Convert definitions to standard C.
3032 * regex.c: Do not include <stdlib.h>, config.h does it.
3033 Include unistd.h.
3034 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
3035 (regerror, regfree): Convert definitions to standard C.
3036 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
3037 (__mktime_internal): Convert definitions to standard C.
3038
c2f0866a
DN
30392010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3040
42a7e7f1
DN
3041 * w32proc.c:
3042 * w32inevt.c:
3043 * w32heap.c:
3044 * w32.c: Remove config.h include guards.
3045
67802943
DN
3046 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
3047 No code changes.
3048
f0e1af46
DN
3049 * process.c: Include <sys/ioctl.h> unconditionally,
3050 keyboard.c already does it.
3051
c2f0866a
DN
3052 * keyboard.c (pending_malloc_warning): Add const to match
3053 definition in alloc.c.
3054 (Fset_input_interrupt_mode): Simplify #ifdefs.
3055
92d3ab7e
DN
30562010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3057
12e610e8
DN
3058 Clean up systty.h macros.
3059 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
3060 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
3061 definition in all uses.
3062 (EMACS_TTY_TABS_OK): Remove, it has a single user.
3063 * sysdep.c (discard_tty_input, child_setup_tty)
3064 (init_sys_modes, tabs_safe_p, reset_sys_modes):
3065 * emacs.c (shut_down_emacs):
3066 * callproc.c (child_setup):
3067 * term.c (dissociate_if_controlling_tty): Inline removed macros.
3068
92d3ab7e
DN
3069 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
3070
a3e6bad4
CY
30712010-11-14 Chong Yidong <cyd@stupidchicken.com>
3072
3073 * w32fns.c (Fx_create_frame):
3074 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
3075 resource here; it's now done at startup.
3076
5a232ffb
J
30772010-11-14 Jan Djärv <jan.h.d@swipnet.se>
3078
3079 * xterm.c (set_wm_state): Add Qnil to final cons.
3080
3081 * xselect.c (x_send_client_event): Remove unused variables cons and
3082 size.
3083
24021b38
YM
30842010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3085
2f8f196d 3086 * keyboard.c (modify_event_symbol): Add const to array elements of
24021b38
YM
3087 arg NAME_TABLE.
3088 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
3089 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
3090 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
3091 Add const to array elements.
3092 (scroll_bar_parts): Make static. Fix position of const.
3093
3094 * w32fns.c (lispy_function_keys): Add const to extern.
3095
3096 * w32inevt.c (lispy_function_keys): Likewise.
3097
afa42fe3
CY
30982010-11-14 Chong Yidong <cyd@stupidchicken.com>
3099
3100 * xfns.c (Fx_create_frame): Don't check for the cursorColor
3101 resource here; it's now done at startup.
3102
53260a94
DN
31032010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
3104
c865c575 3105 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 3106
c865c575 3107 Fix compilation on Solaris.
ff2e8052
DN
3108 * sysdep.c: Do not #include <term.h>.
3109 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
3110
53260a94
DN
3111 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
3112
933e29ff
J
31132010-11-13 Jan Djärv <jan.h.d@swipnet.se>
3114
3115 * xterm.c (set_wm_state): Don't put Atom in cons, call
3116 make_fixnum_or_float on them first.
3117 (x_term_init): Initialize Xatom_net_supporting_wm_check and
3118 Xatom_net_supported correctly.
3119
3120 * xselect.c (x_send_client_event): Move CHECK_STRING ...
3121 (Fx_send_client_event): to here.
3122
a048073e
MR
31232010-11-13 Martin Rudalics <rudalics@gmx.at>
3124
3125 * window.c (Fwindow_use_time): New function.
3126
0eb025fb
EZ
31272010-11-13 Eli Zaretskii <eliz@gnu.org>
3128
3129 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
3130 zero-width characters.
3131
3132 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
3133
3134 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
3135 box before drawing the glyphs inside it.
3136
3137 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
3138
bba3e508
SM
3139 * dispextern.h (enum glyphless_display_method):
3140 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
3141 All users changed.
0eb025fb 3142
bba3e508
SM
3143 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3144 Fix comments.
0eb025fb
EZ
3145 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
3146 whitespace in "[]", to simulate a box. Don't use uninitialized
3147 variable `width'.
3148
c869cc37
JD
31492010-11-11 Julien Danjou <julien@danjou.info>
3150
2d9074ba
JD
3151 * xsettings.c (init_xsettings): Use already fetch atoms.
3152
3153 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
3154 from dpyinfo.
3155
3156 * xselect.c (Fx_send_client_event): Split and create
3157 x_send_client_event.
3158
3159 * lisp.h: Do not EXFUN Fx_send_client_event.
3160
3161 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
3162 from dpyinfo.
3163 (wm_supports): Use atoms from dpyinfo.
3164 (do_ewmh_fullscreen): Use atoms from dpyinfo.
3165 (x_ewmh_activate_frame): Use atoms from dpyinfo.
3166 (xembed_set_info): Use atoms from dpyinfo.
3167 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
3168 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
3169 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
3170 Get all atoms in one round-trip.
3171 (set_wm_state): Use x_send_client_event rather than
3172 Fx_send_client_event, using Atom directly.
3173 (x_ewmh_activate_frame): Ditto.
3174 (x_set_sticky): Pass atoms to set_wm_state.
3175 (do_ewmh_fullscreen): Ditto.
3176
2d9074ba
JD
3177 * xterm.h (x_display_info): Add Xatom_net_supported,
3178 Xatom_net_supporting_wm_check, Xatom_net_active_window,
3179 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
3180
c869cc37
JD
3181 * xfns.c (Fx_show_tip): Fix typo in docstring.
3182
1a4236ea
SM
31832010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
3184
3185 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
3186 it's not negative.
3187
3106121c
YM
31882010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3189
3190 * font.c (font_filter_properties): Add const to array elements of
3191 properties args.
3192
3193 * font.h (font_filter_properties): Likewise.
3194
3195 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
3196 elements.
3197
3198 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
3199
da1fec2b
MA
32002010-11-10 Michael Albinus <michael.albinus@gmx.de>
3201
3202 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
3203 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
3204 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
3205 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
3206 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
3207
bd6bc222
GM
32082010-11-10 Glenn Morris <rgm@gnu.org>
3209
3210 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
3211
c0098065
EZ
32122010-11-09 Eli Zaretskii <eliz@gnu.org>
3213
bd6bc222 3214 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 3215
d607b96b 32162010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
3217
3218 * image.c (free_image): Don't garbage the frame here, since this
3219 function can be called while redisplaying (Bug#7210).
3220 (uncache_image): Garbage the frame here (Bug#6426).
3221
d607b96b 32222010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 3223
d607b96b
SM
3224 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
3225 parent is the root window. Check this after traversing window tree.
184765cc 3226
d607b96b 3227 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 3228
d607b96b 3229 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 3230
d607b96b
SM
3231 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
3232 before traversing window tree (Bug#5721).
c2e124a9 3233
27f92be7
J
32342010-11-07 Jan Djärv <jan.h.d@swipnet.se>
3235
66b16767
J
3236 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
3237
25f38310
SM
3238 * xdisp.c (note_mode_line_or_margin_highlight):
3239 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 3240
a971c0a7
EZ
32412010-11-06 Eli Zaretskii <eliz@gnu.org>
3242
3243 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
3244 adjust width of tool-tip frame to the width of text, excluding the
3245 stretch glyph at the beginning of R2L glyph rows.
3246
3247 * w32fns.c (Fx_show_tip): Likewise.
3248
80417b95
JD
32492010-11-06 Jan Djärv <jan.h.d@swipnet.se>
3250
3251 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 3252 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 3253
28118eb6
EZ
32542010-11-05 Eli Zaretskii <eliz@gnu.org>
3255
c1fc2d3a 3256 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
3257
3258 * term.c: Remove static mouse_face_* variables. All users
3259 changed.
3260 (term_show_mouse_face, term_clear_mouse_face)
3261 (fast_find_position, term_mouse_highlight): Functions deleted.
3262 (tty_draw_row_with_mouse_face): New function.
3263 (term_mouse_movement): Call note_mouse_highlight instead of
3264 term_mouse_highlight.
3265
bbf534ce
EZ
3266 * nsterm.m (ns_update_window_begin, ns_update_window_end)
3267 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
3268 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
3269 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
3270 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
3271 Replace Display_Info with Mouse_HLInfo everywhere where
3272 mouse_face_* members were accessed for mouse highlight purposes.
3273
3274 * xterm.c (x_update_window_begin, x_update_window_end)
3275 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
3276 (handle_one_xevent, x_free_frame_resources, x_term_init):
3277 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
3278 members were accessed for mouse highlight purposes.
3279
3280 * w32term.c (x_update_window_begin, x_update_window_end)
3281 (x_update_end, w32_read_socket, x_free_frame_resources)
3282 (w32_initialize_display_info): Replace Display_Info with
3283 Mouse_HLInfo everywhere where mouse_face_* members were accessed
3284 for mouse highlight purposes.
3285
3286 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
3287 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
3288 unless the frame is on a window-system.
c1fc2d3a 3289 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
3290 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
3291 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3292 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3293 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
3294 Replace Display_Info with Mouse_HLInfo everywhere where
3295 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 3296 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
3297 HAVE_WINDOW_SYSTEM conditional.
3298 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
3299 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
3300 (try_window_id) [HAVE_GPM || MSDOS]:
3301 Call x_clear_window_mouse_face.
d009ae66 3302 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
3303 systems. Call tty_draw_row_with_mouse_face for TTY systems.
3304 (show_mouse_face): Call draw_row_with_mouse_face, instead of
3305 calling draw_glyphs directly.
d009ae66
EZ
3306 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3307 (cursor_in_mouse_face_p, rows_from_pos_range)
3308 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
3309 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3310 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
3311 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
3312 fragments.
3313 (note_mouse_highlight): Call popup_activated for MSDOS as well.
3314 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
3315 integer.
3316 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
3317 (x_consider_frame_title, tool_bar_lines_needed):
3318 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
3319 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
3320 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
3321 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
3322 part.
d009ae66
EZ
3323
3324 * dispnew.c (mirror_make_current): Set Y coordinate of the
3325 mode-line and header-line rows.
c1fc2d3a
EZ
3326 (init_display): Setup initial frame's output_data for text
3327 terminal frames.
d009ae66 3328
c1fc2d3a
EZ
3329 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
3330 its own definition on msdos.c.
d009ae66
EZ
3331
3332 * msdos.c (show_mouse_face, clear_mouse_face)
3333 (fast_find_position, IT_note_mode_line_highlight)
3334 (IT_note_mouse_highlight): Functions deleted.
3335 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
3336 instead of IT_note_mouse_highlight.
3337 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
3338 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
3339 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
3340 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
3341 where mouse_face_* members were accessed for mouse highlight
3342 purposes.
3343
3344 * msdos.h (initialize_msdos_display): Add prototype.
3345
3346 * frame.h (MOUSE_HL_INFO): New macro.
3347
3348 * lisp.h (Mouse_HLInfo): New data type.
3349
3350 * xterm.h (struct x_display_info):
3351 * w32term.h (struct w32_display_info):
3352 * nsterm.h (struct ns_display_info):
3353 * termchar.h (struct tty_display_info): Use it instead of
3354 mouse_face_* members.
3355
3356 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
3357 1st argument.
3358 (frame_to_window_pixel_xy, note_mouse_highlight)
3359 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
3360 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
3361 HAVE_WINDOW_SYSTEM conditional.
3362 (draw_row_with_mouse_face): Declare prototype.
3363 (tty_draw_row_with_mouse_face): Declare prototype.
3364
6e8d7c47
EZ
33652010-11-05 Eli Zaretskii <eliz@gnu.org>
3366
bba3e508
SM
3367 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3368 Remove unused variables.
6e8d7c47 3369
f31ba3f0
AR
33702010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3371
3372 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
3373 logic pointed out by Eli Zaretskii.
3374
448e17d6
LMI
33752010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
3376
0c3a9a9f
GM
3377 * coding.c (coding-category-list): Refer to set-coding-system-priority
3378 instead of the obsolete set-coding-priority in the doc string.
448e17d6 3379
3fdebbf9 33802010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0 3381
2f8f196d 3382 * nsfont.m (nsfont_draw): Correct previous patch to return
f31ba3f0
AR
3383 correct value.
3384 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
3385 don't change the method signature, change the return.
3386
33872010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
3388
3389 * nsfont.m (nsfont_draw)
3390 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 3391 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 3392
17c0c952
JD
33932010-11-03 Julien Danjou <julien@danjou.info>
3394
3395 * image.c (gif_load): Add support for transparency and specified
3396 :background.
3397
b18fad6d
KH
33982010-11-01 Kenichi Handa <handa@m17n.org>
3399
3400 * dispextern.h (lookup_glyphless_char_display): Extern it.
3401
3402 * termhooks.h (struct terminal): New member charset_list.
3403
3404 * coding.c (Fset_terminal_coding_system_internal): Set the
3405 `charset_list' member of struct terminal.
3406
a8039db1 3407 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
3408 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3409
3410 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
3411 (lookup_glyphless_char_display): Set it->what at the end.
3412 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3413 (last_glyphless_glyph_merged_face_id): Make them non-static.
3414
a8039db1
JB
3415 * w32term.c (x_draw_glyphless_glyph_string_foreground):
3416 Fix the arg with_background for font->driver->draw.
65b6b59a 3417
a8039db1 34182010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 3419
a8039db1
JB
3420 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
3421 Surround chp by parentheses.
0269bd90 3422
a8039db1 34232010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
3424
3425 Implement various display methods for glyphless characters.
3426
3427 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
3428 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
3429 (Qzero_width): New variables.
3430 (THIN_SPACE_WIDTH): New macro.
01c35094 3431 (lookup_glyphless_char_display): New function.
b2cca856
KH
3432 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3433 (last_glyphless_glyph_merged_face_id): New variables.
3434 (get_next_display_element): Check glyphless characters.
3435 (redisplay_internal): Initialize last_glyphless_glyph_frame and
3436 last_glyphless_glyph_face_id.
3437 (fill_glyphless_glyph_string): New function.
3438 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
3439 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
3440 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3441 (x_produce_glyphs): If a suitable font is not found, produce a
3442 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
3443 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
3444 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
3445 Qzero_width.
3446 (Vglyphless_char_display): Declare it as a Lisp variable.
3447
3448 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
3449 (struct glyph): Change the size of the member "type" to 3.
3450 Add glyphless to the union slice and u.
b2cca856
KH
3451 (enum display_element_type): Add IT_GLYPHLESS.
3452 (enum glyphless_display_method): New enum.
3453 (struct it): New member glyphless_method.
3454 (Vglyphless_char_display): Extern it.
3455
3456 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
3457 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3458
a8039db1 3459 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
3460 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3461
3462 * nsterm.m (ns_draw_glyph_string): Handle the case
3463 GLYPHLESS_GLYPH (the detail is not yet implemented).
3464
c8c59954
GM
34652010-10-31 Glenn Morris <rgm@gnu.org>
3466
80696982
GM
3467 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
3468
c8c59954
GM
3469 * frame.c (syms_of_frame) <tool-bar-mode>:
3470 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
3471
46eadc7a
CY
34722010-10-31 Chong Yidong <cyd@stupidchicken.com>
3473
3474 * xterm.c (x_connection_closed): Print informative error message
3475 when aborting on GTK. This requires using shut_down_emacs
3476 directly instead of Fkill_emacs.
3477
ffe75e6b
EZ
34782010-10-29 Eli Zaretskii <eliz@gnu.org>
3479
3480 * emacs.c (main): Call syms_of_filelock unconditionally.
3481
3482 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
3483 clause, but keep part of it conditioned on CLASH_DETECTION.
3484
9d794026
GM
34852010-10-29 Glenn Morris <rgm@gnu.org>
3486
4f4f2973
GM
3487 * nsfns.m (Fx-display-save-under, Fx-open-connection)
3488 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
3489 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
3490 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
3491 Sync docs between X, W32, NS.
3492
9d794026
GM
3493 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
3494 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
3495
d46f6bbb
JB
34962010-10-26 Juanma Barranquero <lekktu@gmail.com>
3497
3498 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
3499 otherwise, bootstrapping on Windows fails to compile macroexp.el.
3500
2e35f1a2
EZ
35012010-10-26 Eli Zaretskii <eliz@gnu.org>
3502
3503 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 3504 zero or negative. (Bug#7281)
2e35f1a2 3505
8daaeda6
J
35062010-10-26 Jan Djärv <jan.h.d@swipnet.se>
3507
3508 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
3509
6a5c2175
GM
35102010-10-25 Glenn Morris <rgm@gnu.org>
3511
3512 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
3513
7c051dd8
GM
35142010-10-24 Glenn Morris <rgm@gnu.org>
3515
3516 * w32fns.c (Fx_synchronize, Fx_change_window_property)
3517 (Fx_window_property, Fx_file_dialog):
3518 * xfns.c (Fx_synchronize, Fx_change_window_property)
3519 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
3520
23c261f5
CY
35212010-10-24 Chong Yidong <cyd@stupidchicken.com>
3522
3523 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
3524
d414c713 35252010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
3526
3527 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
3528
3529 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
3530 Deprecate use as a boolean flag.
3531
947f5e01
JM
35322010-10-24 Jim Meyering <jim@meyering.net>
3533
3534 * emacs.c (argmatch): Don't treat "--" as "--chdir".
3535
65807d73
GM
35362010-10-24 Glenn Morris <rgm@gnu.org>
3537
f5f25615
GM
3538 * w16select.c (syms_of_win16select) <selection-coding-system>:
3539 <next-selection-coding-system>:
3540 * w32select.c (syms_of_w32select) <selection-coding-system>:
3541 <next-selection-coding-system>:
3646b86d
GM
3542 Sync docs with select.el.
3543
46710489
GM
3544 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
3545 Lisp version.
3546
ea883883
GM
3547 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
3548 Sync doc with the xterm.c version.
3549
65807d73
GM
3550 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
3551 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
3552
f3d87560
GM
35532010-10-23 Glenn Morris <rgm@gnu.org>
3554
66c6abf0 3555 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 3556 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 3557 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 3558 <hourglass-delay>: Sync docs with Lisp.
f3d87560 3559
7b7e2c18
EZ
35602010-10-23 Eli Zaretskii <eliz@gnu.org>
3561
d1d6801e 3562 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
3563
3564 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
3565 (mouse_face_from_string_pos): New function, replaces
3566 fast_find_string_pos.
3567 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
3568 (note_mode_line_or_margin_highlight): Support bidi-reordered
3569 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
3570 (note_mouse_highlight): When bidi reordering is turned on in a
3571 buffer, call next-single-property-change and
ef1b0ba7
SM
3572 previous-single-property-change with last argument nil.
3573 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 3574 glyph that stands for no text beyond the line end.
1f382a02
EZ
3575 (row_containing_pos): Don't return too early when CHARPOS is in a
3576 bidi-reordered continued line. Return immediately when the first
3577 hit is found in a line that is not continued, or when an exact
3578 match for CHARPOS is found.
d1d6801e
EZ
3579 (rows_from_pos_range): New function.
3580 (mouse_face_from_buffer_pos): Use it instead of calling
3581 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
3582 function to support mouse highlight in bidi-reordered lines and
3583 not to assume that START_CHARPOS is always in mouse_face_beg_row.
3584 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
3585 that the former is always above the latter or identical to it.
1554d88e 3586 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
3587 (coords_in_mouse_face_p): New function, bidi-aware.
3588 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
3589 Call it instead of comparing with mouse-face members of dpyinfo.
3590 (note_mode_line_or_margin_highlight): Fix confusingly swapped
3591 usage of hpos and vpos.
544bbc31 3592
dee186b6
J
35932010-10-22 Jan Djärv <jan.h.d@swipnet.se>
3594
3595 * xrdb.c: Include keyboard.h for MOTIF.
3596
3597 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
3598 MOTIF (Bug#7263).
3599
3600 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
3601 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
3602 Make ANSI prototypes.
dee186b6 3603
5fb59edb
GM
36042010-10-22 Glenn Morris <rgm@gnu.org>
3605
3606 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
3607 Remove ccl and duplicate mouse.
3608
8b78d5e3
CY
36092010-10-21 Chong Yidong <cyd@stupidchicken.com>
3610
3611 * insdel.c (prepare_to_modify_buffer): Don't set
3612 saved-region-selection if modification hooks are disabled.
3613
b8a47412
CY
36142010-10-19 Chong Yidong <cyd@stupidchicken.com>
3615
3616 * cmds.c (Fdelete_char): Doc fix.
3617
ca3fa302 36182010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
3619
3620 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
3621
ca3fa302 36222010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
3623
3624 Fix incorrect font metrics when the same font is opened with
3625 different pixelsizes.
3626
3627 * xftfont.c: Include composite.h.
3628 (xftfont_shape): New function.
3629 (syms_of_xftfont): Set xftfont_driver.shape.
3630
c978536f
JD
36312010-10-18 Julien Danjou <julien@danjou.info>
3632
3633 * frame.c (Fframe_pointer_visible_p):
3634 Add `frame-pointer-visible-p' to get the pointer visibility.
3635
4b2d9ec2
LMI
36362010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
3637
3638 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
3639 non-"EAGAIN"-like error to signal to Emacs that the socket should
3640 be closed.
3641
9cf66cf2
EZ
36422010-10-15 Eli Zaretskii <eliz@gnu.org>
3643
c3911ead
EZ
3644 * unexcoff.c (make_hdr): Fix prototype according to changes in
3645 2010-10-03T13:59:56Z!dann@ics.uci.edu.
3646
9cf66cf2
EZ
3647 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
3648
be98da05
TH
36492010-10-15 Tassilo Horn <tassilo@member.fsf.org>
3650
3651 * Makefile.in (really-oldXMenu): Fix typo in variable name that
3652 made building the X menu fail.
cc98b256 3653 (really-oldXMenu): Fix my previous fix.
be98da05 3654
220d91b8 36552010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
3656
3657 Fix handling of font properties on Windows (bug#6303).
3658 * font.c (font_filter_properties): New function, refactored from
3659 ftfont_filter_properties.
3660 * font.h (font_filter_properties): Declare.
3661 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
3662 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
3663 (w32font_filter_properties): New function.
3664 (w32font_driver): Add w32font_filter_properties.
3665
220d91b8 36662010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 3667
c0943d3d 3668 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
3669 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
3670
24f981c9
JB
36712010-10-14 Juanma Barranquero <lekktu@gmail.com>
3672
3673 * w32fns.c (w32_wnd_proc, file_dialog_callback):
3674 * w32font.c (w32_generic_family):
3675 * w32inevt.c (key_event):
3676 * w32menu.c (fill_in_menu):
3677 * w32proc.c (reader_thread, w32_executable_type, compare_env)
3678 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
3679 * w32term.c (w32_read_socket): Make static.
3680
850690cc
JB
36812010-10-13 Juanma Barranquero <lekktu@gmail.com>
3682
3683 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
3684 prototypes; all callers changed.
3685
5e371708
JB
36862010-10-13 Juanma Barranquero <lekktu@gmail.com>
3687
3688 * makefile.w32-in (TLIB2): Rename from TLIBW32.
3689 (OBJ2): New macro.
3690 (WIN32OBJ, FONTOBJ): Remove.
3691 (OBJ1): Redistribute object files with OBJ2.
3692 (LIBS, $(TEMACS)): Use TLIB2.
3693 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
3694 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
3695
2e288d54
JB
36962010-10-13 Juanma Barranquero <lekktu@gmail.com>
3697
3698 * emacs.c (Vdynamic_library_alist)
3699 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
3700 Doc fix.
3701
3702 * lisp.h (Vdynamic_library_alist): Declare extern.
3703
3704 * image.c (Vimage_library_alist)
3705 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
3706 (lookup_image_type): Use Vdynamic_library_alist.
3707 (Finit_image_library): Doc fix.
3708
aba1381b
DN
37092010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
3710
3711 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
3712 (lispdir): Remove trailing /, update all uses.
3713
4c14013d 37142010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
3715
3716 * nsterm.m (Qleft): Declare.
01c35094 3717 (ns_right_alternate_modifier): New variable.
a2e35ef5
JD
3718 (NSRightAlternateKeyMask): New define.
3719 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
3720 ns_right_alternate_modifier isn't Qleft.
3721 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
3722 as emacs modifier for NSRightAlternateKeyMask.
3723 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
3724
355cdaf3
LMI
37252010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
3726
3727 * gnutls.c (emacs_gnutls_write): If we're trying to write before
3728 gnutls is ready, return EAGAIN as the errno.
3729
4c620157
DN
37302010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
3731
edfd76ce
DN
3732 * vm-limit.c:
3733 * unexhp9k800.c:
3734 * unexelf.c:
3735 * unexaix.c:
3736 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
3737
a4daeecf
DN
3738 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
3739 (PROFILING_LDFLAGS): Remove, not needed anymore.
3740
01c35094 3741 * Makefile.in: Use $(...) everywhere instead of ${...}.
4cf3ad30
DN
3742 (CRT_DIR): Move near potential user.
3743 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 3744
4c620157
DN
3745 * sysdep.c (LPASS8): Remove, unused.
3746 (emacs_ospeed): Change from being a global to a local in the only
3747 user: init_baud_rate.
3748
b845653d
LMI
37492010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3750
3751 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 3752 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 3753 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 3754 gnutls_read. This allows us to actually read lots of data from
b845653d 3755 the GnuTLS stream.
2e6c74c5
LMI
3756 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
3757 According to the documentation, this is correct, and it seems to
3758 make things work.
b845653d 3759
3625b3e2
CY
37602010-10-09 Chong Yidong <cyd@stupidchicken.com>
3761
3762 * xterm.c (x_draw_relief_rect): Clear corner pixels.
3763
8b1c619f
MA
37642010-10-08 Michael Albinus <michael.albinus@gmx.de>
3765
3766 * keyboard.c: Revert last change; it was not intended to be
3767 synchronized with the trunk.
3768
93d50df8
KH
37692010-10-08 Kenichi Handa <handa@m17n.org>
3770
2b7c9342 3771 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 3772
4628bef1 37732010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
3774
3775 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
3776 (Fdbus_init_bus): ... here. (Bug#7113)
3777
4628bef1 37782010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
3779
3780 * buffer.c (before-change-functions, after-change-functions):
3781 Three-year overdue doc fix following 2007-08-13 change.
3782
4628bef1 37832010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
3784
3785 * coding.c (coding_inherit_eol_type): If parent doesn't specify
3786 eol-format, inherit from the system's default.
3787 (complement_process_encoding_system): Make a new coding system
3788 inherit the original eol-format.
3789
4628bef1 37902010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
3791
3792 * coding.c (complement_process_encoding_system): New function.
3793
3794 * coding.h (complement_process_encoding_system): Extern it.
3795
3796 * callproc.c (Fcall_process): Complement the coding system for
3797 encoding arguments.
3798 (Fcall_process_region): Complement the coding system for encoding
3799 the input to the process.
3800
3801 * process.c (Fstart_process): Complement the coding system for
3802 encoding arguments.
3803 (send_process): Complement the coding system for encoding what
3804 sent to the process.
3805
4628bef1 38062010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
3807
3808 * xfont.c (xfont_open): Fix setting of font->average_width from
3809 :avgwidth property (Bug#7123).
3810
4628bef1 38112010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
3812
3813 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
3814 is more portable.
3815
3816 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
84eb0351 3817 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
3818 has not defined SIGIO.
3819
389454fb
CY
38202010-10-08 Chong Yidong <cyd@stupidchicken.com>
3821
3822 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
3823 draw the outermost line using the black relief, for legibility.
3824 Omit drawing the four corner pixels.
3825
51b403bd
CY
38262010-10-04 Chong Yidong <cyd@stupidchicken.com>
3827
3828 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
3829 (read_key_sequence): Inline echo_prompt.
3830 (echo_dash): Add a dash only if key is continued (Bug#7137).
3831
3e6ae1a4
DN
38322010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
3833
3834 Remove O_RDONLY, O_WRONLY definitions, not needed.
3835 * unexcoff.c:
3836 * lread.c:
3837 * fileio.c:
3838 * doc.c:
3839 * callproc.c:
3840 * alloc.c:
3841 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
3842
c1ae068b
LMI
38432010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
3844
3845 * gnutls.h (GNUTLS_LOG2): Convenience macro.
3846
3847 * gnutls.c: Add property list symbol holders.
3848 (emacs_gnutls_handshake): Clarify how sockets are passed to
3849 GnuTLS.
3850 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
3851 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
3852 and keyfiles to be a list of file names. Default to "NORMAL" for
3853 the priority string. Improve logging.
3854
e2afe435
GM
38552010-10-03 Glenn Morris <rgm@gnu.org>
3856
3857 * fileio.c (Vdirectory_sep_char): Remove.
3858
dd5ecd6b
DN
38592010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
3860
b5437a05
DN
3861 * termhooks.h: Remove #ifdef CONSP.
3862
4777478a
DN
3863 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
3864
a3d5088d
DN
3865 Include <fcntl.h> unconditionally.
3866 * termcap.c:
3867 * sysdep.c:
3868 * lread.c:
3869 * keyboard.c:
3870 * filelock.c:
3871 * fileio.c:
3872 * doc.c:
3873 * callproc.c:
3874 * alloc.c: Remove include guards for <fcntl.h>, process.c already
3875 does it.
3876
82719735
DN
3877 * process.c: Do not include <sys/wait.h>, syswait.h does it.
3878
9de940b5
DN
3879 * sysdep.c (flush_pending_output): Remove code, does not do
3880 anything on any platform.
3881
57507bf8 3882 Remove unused code.
bba3e508
SM
3883 * sysdep.c (select_alarm, sys_select, read_input_waiting):
3884 Remove select emulation, all systems support select.
57507bf8
DN
3885 (set_exclusive_use): Remove, the only user is in an #if 0 block.
3886 * process.c (create_process): Remove #if 0 code.
3887
dd5ecd6b
DN
3888 Remove unused arguments for unexec.
3889 The third one is never used, and the last two are always passed as zero.
3890 * emacs.c (unexec): Add declaration.
3891 (Fdump_emacs): Only pass the first two arguments to unexec.
3892 Simplify #ifdef.
3893 * unexw32.c (unexec):
3894 * unexsol.c (unexec):
3895 * unexhp9k800.c (unexec):
3896 * unexcw.c (unexec): Remove the last 3 arguments, unused.
3897 * unexelf.c (unexec): Remove the last 3 arguments, unused.
3898 (find_section): Use const.
3899 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
3900 (unexec_error): Declare it NO_RETURN.
3901 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
3902 it as an argument, remove data_start and entry_address arguments, unused.
3903 (unexec): Remove bss_start, data_start and
3904 entry_address arguments.
3905 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
3906 it as an argument, remove data_start and entry_address arguments, unused.
3907 (unexec): Remove bss_start, data_start and
3908 entry_address arguments.
3909
74f1829d
JB
39102010-10-03 Juanma Barranquero <lekktu@gmail.com>
3911
7f467e14
JB
3912 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
3913
74f1829d
JB
3914 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
3915 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
3916 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
3917 Fix typos in docstrings.
3918 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
3919 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
3920
6926550f
CY
39212010-10-03 Chong Yidong <cyd@stupidchicken.com>
3922
3923 * keyboard.c (command_loop_1): Make sure the mark is really alive
3924 before using it (Bug#7044).
3925
54b65f7b
JB
39262010-10-02 Juanma Barranquero <lekktu@gmail.com>
3927
3928 * makefile.w32-in (tags): Rename target to full-tags.
3929
383ebd15
EZ
39302010-10-02 Eli Zaretskii <eliz@gnu.org>
3931
3932 * emacs.c (main): Remove !WINDOWSNT conditional.
3933 (Fkill_emacs): Don't mention exemption on MS-Windows.
3934
9c524fcb
GM
39352010-10-02 Glenn Morris <rgm@gnu.org>
3936
3226d6ca
GM
3937 * character.c (Fchar_bytes): Remove obsolete function.
3938 (syms_of_character): Remove Schar_bytes.
3939
9c524fcb
GM
3940 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
3941 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
3942 in batch-mode.
3943 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
3944 (kill-emacs-hook): Doc fix.
3945
1b217849
LMI
39462010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
3947
3948 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 3949 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
3950 renamed to reflect that these are the libxml functions.
3951
54cc6a83
EZ
39522010-10-01 Eli Zaretskii <eliz@gnu.org>
3953
0ebf79de
EZ
3954 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
3955 screen dimensions in tty->Wcm.
3956
54cc6a83
EZ
3957 * xdisp.c (set_cursor_from_row): When the row is truncated and
3958 point is outside the range of displayed characters, position the
3959 cursor inside the scroll margin. (Bug#6349)
3960
321401d1
DN
39612010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
3962
4cacd822
DN
3963 Do not include stdlib.h and string.h, config.h does it.
3964 * xfont.c:
3965 * w32term.c:
3966 * w32reg.c:
3967 * w32inevt.c:
3968 * w32heap.c:
3969 * w32console.c:
3970 * w16select.c:
3971 * unexsol.c:
3972 * term.c:
3973 * sound.c:
3974 * scroll.c (m):
3975 * gtkutil.c:
3976 * font.c:
3977 * filelock.c:
3978 * fileio.c:
3979 * dosfns.c:
3980 * dbusbind.c:
3981 * bidi.c:
3982 * callproc.c:
3983 * process.c:
3984 * msdos.c:
3985 * charset.c: Do not include stdlib.h and string.h, config.h does it.
3986
bba3e508
SM
3987 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
3988 defines it.
0781e7ab 3989
9bf58201
DN
3990 * process.c: Move #include <pty.h> earlier.
3991 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
3992 (pty_name): Move definition later.
3993
088dcc3e
DN
3994 * nsselect.m (syms_of_nsselect):
3995 * nsmenu.m (syms_of_nsmenu):
3996 * nsfns.m (syms_of_nsfns):
3997 * msdos.c (syms_of_msdos):
4cacd822 3998
088dcc3e
DN
3999 * image.c (syms_of_image):
4000 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4001
321401d1
DN
4002 * point.h: Remove, unused.
4003
73077a9a
EZ
40042010-10-01 Eli Zaretskii <eliz@gnu.org>
4005
4006 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4007 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4008 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4009
55e572ef
DN
40102010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4011
4012 * xml.c (parse_string): Use const.
4013
d4b6d95d
LMI
40142010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
4015
ef1b0ba7
SM
4016 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4017 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
4018 the level to 8 to produce more useful backtraces for bug reports.
4019
e4b6db12
DN
40202010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4021
4022 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4023
1becef93
JB
40242010-09-30 Juanma Barranquero <lekktu@gmail.com>
4025
4026 * w32console.c (vga_stdcolor_name): Remove unused function;
4027 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
4028
df7fcaff
LMI
40292010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
4030
bac5cef8
LMI
4031 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
4032 (Fgnutls_boot): Start the handshake.
4033 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
4034 (Fgnutls_boot): Remove some debugging messages.
4035 Change indentation throughout to use the Emacs style.
4036 (emacs_gnutls_handshake): Cast the fds to something that's
4037 possibly the expected length.
4038 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 4039
df7fcaff
LMI
4040 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
4041
4042 * process.c (make_process): Set the gnutls_p field to zero by
4043 default.
4044 (read_process_output): Always call the gnutls_read function if the
4045 stream is a gnutls stream.
4046 (send_process): Ditto for writes.
4047
4048 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
4049 or write anything until the state is GNUTLS_STAGE_READY.
4050 (Fgnutls_boot): Mark the stream as being a gnutls stream.
4051
d585695f
EZ
40522010-09-29 Eli Zaretskii <eliz@gnu.org>
4053
af7ef32d
EZ
4054 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
4055 NEUTRAL_DIR.
4056 (handle_invisible_prop, iterate_out_of_display_property)
4057 (next_element_from_buffer): If bidi_it.first_elt is set, call
4058 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
4059 (Bug#7128)
4060
d585695f
EZ
4061 * print.c (print_object): Fix format string and argument types for
4062 printing a Lisp_Misc_Marker.
4063
4064 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
4065 (load_overlay_strings, get_overlay_strings_1)
4066 (get_overlay_strings, forward_to_next_line_start)
4067 (back_to_previous_visible_line_start, reseat, reseat_to_string)
4068 (get_next_display_element, next_element_from_string)
4069 (next_element_from_c_string, next_element_from_buffer)
4070 (move_it_vertically_backward, move_it_by_lines, add_to_log)
4071 (message_dolog, message_log_check_duplicate, message2_nolog)
4072 (message3, message3_nolog, vmessage, set_message, set_message_1)
4073 (hscroll_window_tree, text_outside_line_unchanged_p)
4074 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
4075 (find_last_unchanged_at_beg_row)
4076 (find_first_unchanged_at_end_row, row_containing_pos)
4077 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
4078 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
4079 Use EMACS_INT for buffer and string positions.
d585695f
EZ
4080
4081 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
4082 (row_containing_pos): Adjust prototype.
4083
4084 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
4085 (message2_nolog, set_message): Adjust prototypes.
4086
a6f3211f
SM
40872010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4088
4089 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
4090 (Fgnutls_boot): Use SDATA.
4091 (Fgnutls_handshake): Remove unused var `max_log_level'.
4092
e0720500
MA
40932010-09-27 Michael Albinus <michael.albinus@gmx.de>
4094
11a5af7c 4095 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
4096 (Bug#7113)
4097
d8a4b27a
J
40982010-09-27 Jan Djärv <jan.h.d@swipnet.se>
4099
42d3022b
J
4100 * xgselect.c (xg_select): Clear file descriptors not set from
4101 rfds and wfds.
4102
d8a4b27a
J
4103 * process.c (wait_reading_process_output): Add missing FD_CLR
4104 for write_mask (must mirror connect_wait_mask).
4105
8ed70bf3
LMI
41062010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
4107
4108 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
4109 prefix.
4110 (Fgnutls_boot): Use changed process members. Use log level with a
4111 function parameter to set it. Bring back Emacs-level debugging
4112 messages at log level 1 and 2.
4113
4114 * process.c (make_process): Initialize gnutls_log_level.
4115
4116 * process.h: Add gnutls_log_level and rename x509_cred and
4117 anon_cred to have the gnutls_ prefix for consistency.
4118
4119 * gnutls.h (GNUTLS_LOG): Add convenience macro.
4120
bedf4aab
JB
41212010-09-27 Juanma Barranquero <lekktu@gmail.com>
4122
4123 * w32.c (g_b_init_get_sid_identifier_authority)
4124 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
4125 Remove, not used.
4126 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
4127 (init_winsock): Remove useless assignment.
4128 (open_process_token, get_token_information, lookup_account_sid)
4129 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
4130 (get_security_descriptor_owner, get_security_descriptor_group)
4131 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
4132 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
4133 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
4134 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
4135 (unc_volume_file_attributes, convert_from_time_t)
4136 (create_toolhelp32_snapshot, process32_first, process32_next)
4137 (open_thread_token, impersonate_self, revert_to_self)
4138 (get_process_memory_info, get_process_working_set_size)
4139 (global_memory_status, global_memory_status_ex, socket_to_fd)
4140 (shutdown_handler): Make static.
4141
08609ffd
MA
41422010-09-27 Michael Albinus <michael.albinus@gmx.de>
4143
4144 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
4145 (xd_pending_messages): Functions removed.
4146 (xd_read_queued_messages): Add parameters fd, *data, for_read in
4147 order to be compatible with add_read_fd. Determine bus from data,
4148 and call xd_read_message just for this bus.
4149 (xd_add_watch): Use xd_read_queued_messages as callback function.
4150 Add data.
4151
4152 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
4153
d2e9d0bb
LMI
41542010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
4155
ef1b0ba7 4156 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 4157 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 4158
4be9765d
KH
41592010-09-27 Kenichi Handa <handa@m17n.org>
4160
4161 These changes are to remove restriction on the number of glyphs in
4162 one composition.
4163
4164 * dispextern.h (struct glyph): Change the member "slice" to union.
4165 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 4166 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
4167
4168 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
4169 instead of glyph->slice.
4170 (marginal_area_string): Likewise.
4171
4172 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
4173 glyph->u.cmp.
4174 (append_composite_glyph): Likewise.
4175
4176 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
4177 glyph->u.cmp.
4178 (fill_gstring_glyph_string, x_get_glyph_overhangs)
4179 (append_composite_glyph): Likewise.
4180 (fill_image_glyph_string): Use glyph->slice.img instead of
4181 glyph->slice.
4182 (append_glyph, produce_image_glyph, append_stretch_glyph)
4183 (note_mouse_highlight): Likewise.
4184
3fad2ad2
J
41852010-09-26 Jan Djärv <jan.h.d@swipnet.se>
4186
bf05eed6
J
4187 * process.c (add_keyboard_wait_descriptor)
4188 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
4189 (wait_reading_process_output): Don't pass write_mask to select
4190 if SELECT_CANT_DO_WRITE_MASK is defined.
4191 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 4192
3fad2ad2
J
4193 * process.h (add_read_fd, delete_read_fd, add_write_fd)
4194 (delete_write_fd): Declare.
4195
4196 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
4197 (write_mask): New variable.
ef1b0ba7 4198 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 4199 (fd_callback_info): New variable.
70e31436
JB
4200 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
4201 New functions.
3fad2ad2
J
4202 (Fmake_network_process): FD_SET write_mask.
4203 (deactivate_process): FD_CLR write_mask.
4204 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
4205 check_connect removed. check_write is new. Remove references to gpm.
4206 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
4207 NON_BLOCKING_CONNECT) instead of Connecting.
4208 Loop over file descriptors and call callbacks in fd_callback_info
4209 if file descriptor is ready for I/O.
4210 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
4211 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
4212 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
4213 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
4214 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
4215 (init_process): Initialize write_mask and fd_callback_info.
4216
4217 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
4218
4219 * dbusbind.c: Include process.h.
4220 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
4221 (xd_read_message_1): New functions.
70e31436
JB
4222 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
4223 Handle watch for both read and write.
3fad2ad2
J
4224 (Fdbus_init_bus): Also register xd_toggle_watch.
4225 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4226 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
4227 to dbus_connection_flush.
70e31436 4228 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
4229 Call xd_read_message_1 until status is COMPLETE.
4230
dce4c2ac
DN
42312010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
4232
4233 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
4234 (init_tty): Reorder code to reduce the number of #ifdefs.
4235 No code changes.
dce4c2ac 4236
8af55556
TZ
42372010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
4238
4239 * process.h: Set up GnuTLS support.
4240
4241 * process.c (make_process, Fstart_process)
4242 (read_process_output, send_process): Set up GnuTLS support for
4243 process input/output file descriptors.
4244
4245 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
4246
4247 * gnutls.c: The source code for GnuTLS support in Emacs.
4248
4249 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
4250
4251 * config.in: Set up GnuTLS support.
4252
4253 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
4254 (obj, LIBES): Set up GnuTLS support.
4255
83e245c4
JB
42562010-09-26 Juanma Barranquero <lekktu@gmail.com>
4257
4258 * w32.c (get_emacs_configuration_options): Fix previous change.
4259
d24ec09a
CY
42602010-09-25 Chong Yidong <cyd@stupidchicken.com>
4261
4262 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
4263 alive before using it (Bug#6977).
4264
b7bdc47c
LMI
42652010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
4266
a952d5f3
LMI
4267 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
4268
4269 * dispextern.h: EMACS_INT/int fixup.
4270
4271 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
4272 fixup.
4273
b7bdc47c
LMI
4274 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
4275
41118bd3
EZ
42762010-09-25 Eli Zaretskii <eliz@gnu.org>
4277
2452438f
EZ
4278 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
4279 (Fselect_window, window_scroll_pixel_based)
4280 (window_scroll_line_based, Frecenter, Fset_window_configuration):
4281 Use EMACS_INT for buffer positions.
4282
4283 * textprop.c (validate_interval_range, interval_of)
4284 (property_change_between_p, Fadd_text_properties)
4285 (set_text_properties_1, Fremove_text_properties)
4286 (Fremove_list_of_text_properties, Ftext_property_any)
4287 (Ftext_property_not_all, copy_text_properties)
4288 (text_property_list, extend_property_ranges)
4289 (verify_interval_modification): Use EMACS_INT for buffer
4290 positions.
4291
f877c546
EZ
4292 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
4293 for buffer positions.
4294
4295 * process.c (read_process_output, send_process)
4296 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
4297 and string positions and size.
4298
da43f021
EZ
4299 * print.c (print_object, print_string, strout): Use EMACS_INT for
4300 string indices.
4301
4302 * minibuf.c (string_to_object): Use EMACS_INT for string position
4303 and size.
4304
4305 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
4306
4307 * lread.c <read_from_string_index, read_from_string_index_byte>
4308 <read_from_string_limit, readchar_count>: Define EMACS_INT.
4309 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
4310 buffer positions and string length.
4311
41118bd3
EZ
4312 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
4313 EMACS_INT.
4314 (echo_truncate, adjust_point_for_property, read_char)
4315 (gen_help_event, make_lispy_event, modify_event_symbol)
4316 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
4317 for buffer positions and string length.
4318
4319 * keyboard.h (gen_help_event): Adjust prototype.
4320
4321 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
4322
4323 * commands.h <last_point_position>: Declare EMACS_INT.
4324
4325 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
4326 (truncate_echo_area): Accept EMACS_INT argument.
4327
4328 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
4329
4330 * lisp.h (truncate_echo_area): Adjust prototype.
4331
4332 * composite.c (composition_adjust_point): Return EMACS_INT.
4333
4334 * composite.h (composition_adjust_point): Adjust prototype.
4335
ba3033ee
JB
43362010-09-25 Juanma Barranquero <lekktu@gmail.com>
4337
4338 * process.c (Fmake_network_process): When arg :host is 'local,
4339 use address 127.0.0.1, not name "localhost". (Bug#6781)
4340
4f3a2f8d
EZ
43412010-09-24 Eli Zaretskii <eliz@gnu.org>
4342
5816888b
EZ
4343 * indent.c (Fcurrent_indentation, indented_beyond_p)
4344 (compute_motion): Use EMACS_INT for buffer position variables.
4345
4346 * lisp.h (indented_beyond_p): Adjust prototype.
4347
4348 * buffer.c (overlay_strings): Return EMACS_INT.
4349
4350 * buffer.h (overlay_strings): Adjust prototype.
4351
4352 * region-cache.c (pp_cache): Adjust format to arguments.
4353
4354 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
4355 (call_debugger): Use EMACS_INT for specpdl_size related variables.
4356 (verror): Use EMACS_INT for size of allocated buffer.
4357
ace1712c
EZ
4358 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
4359 positions.
4360
4361 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
4362 (set_cursor_from_row, find_first_unchanged_at_end_row):
4363 Use EMACS_INT for buffer positions.
ace1712c 4364
f5276b75 4365 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
4366
4367 * dispnew.c (increment_matrix_positions)
4368 (increment_row_positions, copy_glyph_row_contents)
4369 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
4370 positions.
4371
4372 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
4373 (increment_matrix_positions, increment_row_positions):
4374 Adjust prototypes.
ace1712c
EZ
4375
4376 * data.c (Faref, Faset): Use EMACS_INT for string length and
4377 positions.
4378
4379 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
4380 characters to insert.
4381
4382 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
4383 position and size.
4384
4f3a2f8d
EZ
4385 * syntax.c (scan_words, update_syntax_table)
4386 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
4387 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
4388 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
4389
4390 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
4391
4392 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
4393 positions.
4394
db063399
LMI
43952010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
4396
f0812d35
LMI
4397 * scroll.c (calculate_scrolling, line_ins_del)
4398 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
4399 conversion.
4400
f5c7fc27
LMI
4401 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
4402 (region_cache_backward, region_cache_forward)
4403 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
4404 conversion.
4405
db063399
LMI
4406 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4407
4408 * eval.c (verror): Fix EMACS_INT/int conversion.
4409
07914cd0 4410 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
4411 (print_preprocess, print_check_string_charset_prop)
4412 (print_object): Fix EMACS_INT/int conversion.
4413
4414 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4415
e6d4aefa
EZ
44162010-09-24 Eli Zaretskii <eliz@gnu.org>
4417
69481da7
EZ
4418 * callproc.c (Fcall_process): Use EMACS_INT for count of
4419 characters read from the subprocess.
4420
61bfec98
EZ
4421 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
4422 positions.
4423 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
4424 positions.
4425
145582a0
EZ
4426 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
4427 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
4428 length.
4429 (advance_to_char_boundary, Fset_buffer_multibyte)
4430 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
4431 (overlay_touches_p, record_overlay_string, overlay_strings)
4432 (recenter_overlay_lists, fix_start_end_in_overlays)
4433 (modify_overlay, Fmove_overlay, report_overlay_modification)
4434 (evaporate_overlays): Use EMACS_INT for buffer positions.
4435
bba3e508
SM
4436 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
4437 Adjust prototypes.
145582a0 4438
446470a9
EZ
4439 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
4440 positions.
4441
e6d4aefa
EZ
4442 * fns.c (Fcompare_strings, Fstring_lessp, concat)
4443 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
4444 (Fsubstring_no_properties, substring_both, Ffillarray)
4445 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
4446 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
4447 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
4448 (Fmd5): Use EMACS_INT for buffer and string positions and length
4449 variables and arguments.
4450
4451 * lisp.h (substring_both): Adjust prototype.
4452
eb652396
JB
44532010-09-24 Juanma Barranquero <lekktu@gmail.com>
4454
4455 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
4456 * w32fns.c (clipboard_sequence_fn): Don't declare.
4457 (globals_of_w32fns): Don't initialize it.
4458
266a86bd 44592010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
4460
4461 * syntax.c (back_comment): Detect the case where a 1-char comment
4462 starter is also the 2nd char of a 2-char comment ender.
4463
266a86bd 44642010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
4465
4466 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
4467
40283062
LMI
44682010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4469
db063399
LMI
4470 * eval.c (verror): EMACS_INT/int cleanup.
4471
faf8b5bc
LMI
4472 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
4473 unwind_protect more than 2GB worth of functions.
4474
4475 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
4476
40283062
LMI
4477 * lisp.h: Have oblookup take EMACS_INT to allow interning big
4478 string and avoid compiler warnings.
4479 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
4480 all users.
4481
4482 * lread.c (oblookup): EMACS_INT/int cleanup.
4483
4484 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
4485
fe3537c3
EZ
44862010-09-23 Eli Zaretskii <eliz@gnu.org>
4487
4488 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
4489
4490 * lisp.h (clip_to_bounds): Adjust prototype.
4491
4492 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
4493
0350982f
LMI
44942010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4495
84c9ce05
LMI
4496 * lisp.h: doprnt.c EMACS_INT/int cleanup.
4497
4498 * doprnt.c (doprnt): EMACS_INT/int cleanup.
4499
4500 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
4501 cleanup.
4502
0350982f
LMI
4503 * lisp.h: Change the definition of all marker.c functions that
4504 take and return buffer stuff to be EMACS_INT instead of int.
4505
4506 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
4507 (buf_charpos_to_bytepos, bytepos_to_charpos)
4508 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
4509 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
4510 for all buffer positions.
4511
c50bd0d2
CY
45122010-09-23 Chong Yidong <cyd@stupidchicken.com>
4513
4514 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4515 (split_interval_right, find_interval, next_interval)
4516 (delete_node, delete_interval, interval_deletion_adjustment)
4517 (adjust_intervals_for_deletion, merge_interval_right)
4518 (merge_interval_left, graft_intervals_into_buffer)
4519 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
4520
4521 * intervals.h (traverse_intervals): Update prototype.
4522
14162469
EZ
45232010-09-23 Eli Zaretskii <eliz@gnu.org>
4524
c098fdb8
EZ
4525 * indent.c (compute_motion): Use EMACS_INT for arguments to
4526 region_cache_forward.
4527
bba3e508
SM
4528 * region-cache.c (struct boundary, struct region_cache):
4529 Use EMACS_INT for positions.
c098fdb8
EZ
4530 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
4531 (delete_cache_boundaries, set_cache_region)
4532 (invalidate_region_cache, know_region_cache)
bba3e508
SM
4533 (region_cache_forward, region_cache_backward, pp_cache):
4534 Use EMACS_INT for buffer positions.
c098fdb8
EZ
4535
4536 * region-cache.h (know_region_cache, invalidate_region_cache)
4537 (region_cache_forward, region_cache_backward): Adjust prototypes.
4538
4539 * search.c (string_match_1, fast_c_string_match_ignore_case)
4540 (looking_at_1, scan_buffer, scan_newline)
4541 (find_next_newline_no_quit, find_before_next_newline)
4542 (search_command, trivial_regexp_p, search_buffer, simple_search)
4543 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
4544 and string positions and length.
4545
caefdbe7
EZ
4546 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
4547 (find_before_next_newline): Adjust prototypes.
c098fdb8 4548
29cdc13e
EZ
4549 * editfns.c (transpose_markers, update_buffer_properties)
4550 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
4551 (get_pos_property, Fconstrain_to_field)
4552 (Fline_beginning_position, Fline_end_position, Fprevious_char)
4553 (Fchar_after, Fchar_before, Finsert_char)
4554 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
4555 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
4556 Use EMACS_INT for buffer and string position variables.
c098fdb8 4557 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
4558
4559 * lisp.h (clip_to_bounds): Adjust prototype.
4560
e79123aa
EZ
4561 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4562 (balance_an_interval, split_interval_right, split_interval_left)
4563 (find_interval, next_interval, update_interval)
4564 (adjust_intervals_for_insertion, delete_node, delete_interval)
4565 (interval_deletion_adjustment, adjust_intervals_for_deletion)
4566 (offset_intervals, merge_interval_right, merge_interval_left)
4567 (graft_intervals_into_buffer, adjust_for_invis_intang)
4568 (move_if_not_intangible, get_local_map, copy_intervals)
4569 (copy_intervals_to_string, compare_string_intervals)
4570 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 4571 and for interval tree size.
e79123aa
EZ
4572
4573 * intervals.h (traverse_intervals, split_interval_right)
4574 (split_interval_left, find_interval, offset_intervals)
4575 (graft_intervals_into_buffer, copy_intervals)
4576 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
4577 (update_interval): Adjust prototypes.
4578
579c18d0
EZ
4579 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
4580 Use EMACS_INT for buffer position variables and arguments.
4581
4582 * composite.c (get_composition_id, find_composition)
4583 (run_composition_function, compose_text)
4584 (composition_gstring_width, autocmp_chars)
4585 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
4586 for buffer positions and string length variables and arguments.
4587
4588 * composite.h (get_composition_id, find_composition, compose_text)
4589 (composition_gstring_width): Adjust prototypes.
4590
4591 * editfns.c (Fformat): Use EMACS_INT for string size variables.
4592
bba3e508
SM
4593 * xdisp.c (store_mode_line_noprop, display_mode_element):
4594 Use EMACS_INT for string positions.
579c18d0
EZ
4595
4596 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
4597 position arguments.
4598
4599 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
4600
4601 * character.c (parse_str_as_multibyte, str_as_multibyte)
4602 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 4603 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
4604 (strwidth, lisp_string_width, multibyte_chars_in_text):
4605 Use EMACS_INT for string length variables and arguments.
14162469
EZ
4606
4607 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 4608 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
4609 (c_string_width, strwidth, lisp_string_width):
4610 Adjust prototypes.
14162469 4611
579c18d0
EZ
4612 * font.c (font_intern_prop): Use EMACS_INT for string length
4613 variables.
4614
4615 * font.c (font_intern_prop): Use EMACS_INT for string length
4616 variables.
4617
14162469
EZ
4618 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
4619 variables.
4620
4621 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
4622 (Fmake_string): Protect against too large strings.
4623 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
4624 (live_misc_p): Use ptrdiff_t instead of int for pointer
4625 differences.
4626 (string_bytes, check_sblock, check_string_free_list)
4627 (allocate_string_data, compact_small_strings, Fmake_string)
4628 (Fmake_bool_vector, make_string, make_unibyte_string)
4629 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
4630 (make_specified_string_string, Fmake_list, Fmake_vector):
4631 Use EMACS_INT for string length variables and arguments.
14162469
EZ
4632 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
4633 (Fpurecopy): Use EMACS_INT for string size.
4634 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
4635 for vector size.
4636
4637 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
4638 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
4639 (make_pure_string, string_bytes, check_point_in_composition):
4640 Adjust prototypes.
14162469 4641
c8a66ab8
EZ
46422010-09-22 Eli Zaretskii <eliz@gnu.org>
4643
4644 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
4645 (check_translation): Use EMACS_INT for buffer positions and
4646 length.
4647
4648 * undo.c (record_marker_adjustment, record_delete)
4649 (record_change, record_point, record_insert)
4650 (record_property_change, Fprimitive_undo): Use EMACS_INT for
4651 buffer positions.
4652
4653 * lisp.h (record_marker_adjustment, record_delete)
4654 (record_change, record_point, record_insert)
4655 (record_property_change, Fprimitive_undo): Adjust prototypes.
4656
38c54d9d
JB
46572010-09-22 Juanma Barranquero <lekktu@gmail.com>
4658 Eli Zaretskii <eliz@gnu.org>
4659
4660 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
4661
413d18e7
EZ
46622010-09-22 Eli Zaretskii <eliz@gnu.org>
4663
4664 * minibuf.c (Fminibuffer_contents)
4665 (Fminibuffer_contents_no_properties)
4666 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
4667 positions.
4668
4669 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
4670 mark.
4671
4672 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
4673 (allocate_string_data): Accept EMACS_INT for string length.
4674
4675 * editfns.c (Ffield_string, Ffield_string_no_properties)
4676 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
4677 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
4678 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
4679 (Ffield_end): Use EMACS_INT for buffer positions.
4680
4681 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
4682 point with mark.
4683
4684 * lisp.h (allocate_string_data, make_uninit_string)
4685 (make_uninit_multibyte_string, make_buffer_string)
4686 (make_buffer_string_both): Adjust prototypes.
4687
4b9832a6
CY
46882010-09-22 Chong Yidong <cyd@stupidchicken.com>
4689
4690 * xml.c: Switch to GNU indentation.
4691 (make_dom): Change parse tree format to match xml.el.
4692 (Fxml_parse_html_string_internal): Rename from html-parse-string.
4693 (Fxml_parse_string_internal): Rename from xml-parse-string.
4694
86282aab
KH
46952010-09-22 Kenichi Handa <handa@m17n.org>
4696
4697 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
4698 only if we are not at a composition.
4699 (set_iterator_to_next): Give it->end_charpos to
4700 composition_compute_stop_pos.
4701 (set_iterator_to_next, next_element_from_buffer): Likewise.
4702
4703 * dispnew.c (buffer_posn_from_coords): Fix position when the
4704 current display element is a grapheme cluster in bidi-reordered
4705 region.
4706
840b985a
AR
47072010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
4708
4709 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
4710 the regions may overlap.
4711
5bc88f4b
JB
47122010-09-21 Juanma Barranquero <lekktu@gmail.com>
4713
4714 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
4715
92bc9a36
DN
47162010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
4717
d19e096e
DN
4718 * emacs.c: Do not include sys/ioctl.h, not needed.
4719
92bc9a36
DN
4720 * doprnt.c: Do not include stdlib.h, config.h does it.
4721 Move #include before macro definition.
4722
15f844ac
DN
47232010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
4724
48e24408
DN
4725 * Makefile.in (temacs): Link using $(CC) not $(LD).
4726 (LD_FIRSTFLAG): Define using autoconf.
4727 (LD): Remove.
4728
65539506
DN
4729 Remove HAVE_TERMIOS definitions.
4730 * s/usg5-4-common.h (HAVE_TERMIOS):
4731 * s/template.h (HAVE_TERMIOS):
4732 * s/gnu-linux.h (HAVE_TERMIOS):
4733 * s/darwin.h (HAVE_TERMIOS):
4734 * s/cygwin.h (HAVE_TERMIOS):
4735 * s/bsd-common.h (HAVE_TERMIOS):
4736 * s/aix4-2.h (HAVE_TERMIOS):
4737 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
4738 defined on all non-MS platforms.
4739 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
4740
15f844ac
DN
4741 * xterm.c (xt_action_hook): Use const.
4742
7d701334
JB
47432010-09-20 Juanma Barranquero <lekktu@gmail.com>
4744
4745 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
4746 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
4747 (gethostname) [!HAVE_SOCKETS]: Remove.
4748 (SOCK_REPLACE_HANDLE): Remove macro.
4749 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
4750 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
4751 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
4752 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
4753
f3ec267a
EZ
47542010-09-18 Eli Zaretskii <eliz@gnu.org>
4755
4756 * deps.mk (xml.o): Add dependencies.
4757
93acd23d
JB
4758 * xdisp.c (Fcurrent_bidi_paragraph_direction):
4759 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
4760
4761 * bidi.c (bidi_paragraph_init): Accept an additional argument
4762 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
4763 search back until a paragraph with a strong directional character
4764 is found, and use that to determine paragraph's base direction.
4765
4766 * dispextern.h (bidi_paragraph_init): Update prototype.
4767
69e847be
EZ
47682010-09-17 Eli Zaretskii <eliz@gnu.org>
4769
4770 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
4771 of w32api >= 3.15. (Bug#6989)
4772
283357a7
LMI
47732010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
4774
4775 * process.c (wait_reading_process_output): Don't message about
4776 accept-process-output unless the time limit really is zero.
4777
4ddb20d6
SM
47782010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4779
4780 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
4781 int/Lisp_Object mixup).
4782
e24ad6dd
J
47832010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4784
4785 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
4786 not HELP.
4787
fb0cf781
J
47882010-09-17 Stephen Berman <stephen.berman@gmx.net>
4789
4790 * frame.c (Ftool_bar_pixel_width): New function to expose tool
4791 bar's pixel width to Lisp (Bug#7048).
4792
4ddb20d6
SM
47932010-09-14 Juanma Barranquero <lekktu@gmail.com>
4794
4795 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 4796
318a04c6
J
47972010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4798
4799 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
4800 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
4801
78a21772
KH
48022010-09-17 Kenichi Handa <handa@m17n.org>
4803
4804 * ftfont.c (ftfont_check_otf): Fix previous change.
4805
fa3f6039
KH
48062010-09-14 Kenichi Handa <handa@m17n.org>
4807
4808 * ftfont.c (ftfont_check_otf): Fix the case of checking just
4809 existence of GSUB or GPOS.
4810
2b5491fa
JB
48112010-09-14 Juanma Barranquero <lekktu@gmail.com>
4812
4813 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
4814
c97c655f
LMI
48152010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
4816
ef1b0ba7 4817 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
4818 what it does.
4819 (parse_string): Return nil when the document can't be parsed.
4820
6664fc59 48212010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
4822
4823 * xterm.c (get_current_vm_state): New function.
4824 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
4825 want_fullscreen so set_wm_state calls are few (Bug#7013).
4826 (x_handle_net_wm_state): Move code to get_current_vm_state and
4827 call that function.
4828
6664fc59 48292010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
4830
4831 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
4832
6664fc59 48332010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
4834
4835 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
4836 we may use designation or locking-shift.
4837
6664fc59 48382010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
4839
4840 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
4841 sequence when the source is multibyte.
4842
1da70e99
AS
48432010-09-14 Andreas Schwab <schwab@linux-m68k.org>
4844
6664fc59
JB
4845 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
4846 Don't make first argument optional. Doc fix.
1da70e99 4847
26632d8d
LMI
48482010-09-14 Leo <sdl.web@gmail.com> (tiny change)
4849
4850 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
4851 parameters for the doc string.
4852
21fa8e37
LMI
48532010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
4854
4855 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
4856
5616cc54
SM
48572010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4858
4859 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
4860 (syms_of_fns): Don't defsubr Sy_or_n_p.
4861 * lisp.h: Don't declare Fy_or_n_p.
4862 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
4863
381408e2
LMI
48642010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4865
4866 * xml.c (Fxml_parse_buffer): New function to parse XML files.
4867
48682010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
4869
4870 * xml.c: New file.
4871 (Fhtml_parse_buffer): New function to interface to the libxml2
4872 html parsing function.
4873
733946e7
JB
48742010-09-05 Juanma Barranquero <lekktu@gmail.com>
4875
4876 * biditype.h: Regenerate.
4877
7574650a
AS
48782010-09-04 Andreas Schwab <schwab@linux-m68k.org>
4879
4880 * nsimage.m (ns_load_image): Check argument types.
4881
4882 * image.c: Remove all uses of gcpro.
4883 (xpm_load): Check all lisp types.
4884 (pbm_load): Likewise.
4885 (png_load): Likewise.
4886 (jpeg_load): Likewise.
4887 (tiff_load): Likewise.
4888 (gif_load): Likewise.
4889 (imagemagick_load_image): Likewise.
4890 (imagemagick_load): Likewise.
4891 (svg_load): Likewise.
4892 (gs_load): Likewise.
4893
6e6b8e25
EZ
48942010-09-04 Eli Zaretskii <eliz@gnu.org>
4895
bba3e508
SM
4896 * w32uniscribe.c (uniscribe_shape): Update commentary.
4897 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
4898 hold them in the logical order.
4899 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
4900 return glyph codes in the logical order.
4901
dbfe4532
AS
49022010-09-04 Andreas Schwab <schwab@linux-m68k.org>
4903
4904 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 4905 (imagemagick_load_image): Fix type mismatch.
5e5992c2 4906 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 4907
6d7cc563
JD
49082010-09-02 Jan Djärv <jan.h.d@swipnet.se>
4909
4910 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
4911
4912 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
4913
4914 * xselect.c: Remove declaration of cut-buffer objects and functions.
4915 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
4916 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
4917 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
4918 (Fx_rotate_cut_buffers_internal): Remove.
4919 (syms_of_xselect): Remove defsubr of above.
4920 Remove intern of QCUT_BUFFERn.
4921
8f4e9110
SM
49222010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
4923
4924 * cmds.c (Vblink_paren_function): Remove.
4925 (internal_self_insert): Make it insert N chars at a time.
4926 Don't call blink-paren-function.
4927 (Fself_insert_command): Adjust accordingly.
4928 (syms_of_cmds): Don't declare blink-paren-function.
4929
d419e1d9
KH
49302010-08-31 Kenichi Handa <handa@m17n.org>
4931
4932 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
4933 characters.
4934
4935 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
4936 (produce_glyphs): Don't set it->char_to_display here.
4937 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
4938 (produce_special_glyphs): Set temp_it.char_to_display before
4939 calling produce_glyphs.
4940
4941 * xdisp.c (get_next_display_element): Set it->char_to_display
4942 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
4943 characters.
4944 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
4945 calling PRODUCE_GLYPHS.
4946 (append_space_for_newline): Save and store it->char_to_display.
4947 Set it->char_to_display before calling PRODUCE_GLYPHS.
4948 (extend_face_to_end_of_line): Set it->char_to_display before
4949 calling PRODUCE_GLYPHS.
4950 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
4951 character to its byte value.
4952 (get_char_glyph_code): New function.
4953 (produce_stretch_glyph): Set it2.char_to_display too before
4954 calling x_produce_glyphs.
4955 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
4956 non-ASCII characters. Don't set it->char_to_display here.
4957 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 4958 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 4959
b819f760
SM
49602010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
4961
4962 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
4963
07fa68a7
CY
49642010-08-31 Chong Yidong <cyd@stupidchicken.com>
4965
4966 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
4967
cd196f12
SM
49682010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
4969
4970 * marker.c (Fcopy_marker): Make the first arg optional.
4971
49a752bb
KH
49722010-08-30 Kenichi Handa <handa@m17n.org>
4973
4974 * composite.c (composition_update_it): Fix computing of
4975 cmp_it->width.
4976
769ae9e1
KH
49772010-08-29 Kenichi Handa <handa@m17n.org>
4978
9e69cb05 4979 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 4980 corresponding bytes.
9e69cb05 4981
4520b858
J
49822010-08-29 Jan Djärv <jan.h.d@swipnet.se>
4983
4984 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
4985
fe50eb41
KH
49862010-08-26 Kenichi Handa <handa@m17n.org>
4987
4988 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
4989 on calling composition_compute_stop_pos.
4990
f6aa6ec6
KH
49912010-08-25 Kenichi Handa <handa@m17n.org>
4992
9dfdbc0a
KH
4993 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
4994 :otf.
4995
f6aa6ec6
KH
4996 * composite.c (composition_compute_stop_pos): Don't break
4997 composition at PT.
4998 (composition_reseat_it): Likewise. Fix calculation of character
4999 position starting a composition.
5000 (Fcomposition_get_gstring): Don't limit the number of components
5001 for automatic composition.
5002
ff94e32c
KH
50032010-08-25 Kenichi Handa <handa@m17n.org>
5004
5005 * composite.c (composition_compute_stop_pos): In forward search,
5006 pay attention to the possibility that some character after ENDPOS
5007 will be composed with charactrs before ENDPOS.
5008
1c409d0b
CY
50092010-08-24 Chong Yidong <cyd@stupidchicken.com>
5010
5011 * keyboard.c (command_loop_1): Don't clobber primary selection
5012 during handle-switch-frame (Bug#6872).
5013
0c372655
MA
50142010-08-23 Michael Albinus <michael.albinus@gmx.de>
5015
5016 * dbusbind.c: Accept UNIX domain sockets as bus address.
5017 (Fdbus_close_bus): New function.
5018 (Vdbus_registered_buses): New variable.
5019 (xd_initialize): Implement string as bus address.
5020 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5021 (Fdbus_get_unique_name, Fdbus_call_method)
5022 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5023 (Fdbus_method_error_internal, Fdbus_send_signal)
5024 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
5025 check. This is done in xd_initialize_bus. Adapt doc string, if
5026 necessary.
5027 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
5028 Vdbus_registered_buses.
5029 (Vdbus_registered_objects_table): Create hash.
5030
7133b7ee
JL
50312010-08-22 Juri Linkov <juri@jurta.org>
5032
5033 * keyboard.c (Fexecute_extended_command): Move reading a command name
5034 with `completing-read' to a new Elisp function `read-extended-command'.
5035 Call it to read a command to `function' (bug#5364, bug#5214).
5036
198a7a97
CY
50372010-08-22 Chong Yidong <cyd@stupidchicken.com>
5038
5039 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
5040
b0126eac 50412010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
5042
5043 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
5044 instead of SAFE_ALLOCA.
5045
b0126eac 50462010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
5047
5048 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
5049 (Bug#6214).
5050
b0126eac 50512010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
5052
5053 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
5054
b0126eac
CY
50552010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5056
5057 * doc.c (Fsnarf_documentation): Initialize skip_file before
5058 build-files test.
5059
692f3ddc 50602010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 5061
692f3ddc
JB
5062 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
5063 New definitions.
b0126eac
CY
5064 (HAVE_TERMIO): Remove.
5065
5f2f0bc1
EZ
50662010-08-22 Eli Zaretskii <eliz@gnu.org>
5067
b613941b
EZ
5068 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
5069
a583bbef
EZ
5070 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
5071 for w32.
5072
5073 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
5074 it's done in nt/config.nt.
5075
5076 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
5077
5f2f0bc1
EZ
5078 * unexcoff.c (report_error, make_hdr, write_segment)
5079 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
5080 Convert argument lists and prototypes to ANSI C.
5081 (make_hdr, write_segment): Remove unused variables.
5082 (unexec): Remove commented-out line. Initialize `new' to shut up
5083 compiler warnings.
5084
a7ebc409
DN
50852010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
5086
5087 Simplify termio code.
5088 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
5089 HAVE_TERMIO code is obsolete.
5090 Replace HAVE_TERMIOS conditionals with !DOS_NT.
5091 * systty.h: Do not define HAVE_TCATTR.
5092 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
5093 Do not define EMACS_HAVE_TTY_PGRP. Only define
5094 EMACS_GET_TTY_PGRP for !DOS_NT.
5095 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
5096 sys/ioctl.h and termios.h, systty.h does it.
5097 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
5098 (init_baud_rate): Remove HAVE_TERMIO code.
5099 (child_setup_tty): Remove HAVE_TERMIO code.
5100 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
5101 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
5102 (new_ltchars, new_tchars): Remove, unused.
5103 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
5104 code. Remove special casing for __mips__, it was a no-op.
5105 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
5106 (init_sys_modes): Remove HPUX special case.
5107 * process.c: Include stdlib.h unconditionally. Do not include
5108 fcntl.h, systty.h does it. Remove conditional code for
5109 HAVE_SERIAL, it is always true.
5110 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
5111 always true when SIGNALS_VIA_CHARACTERS is true.
5112 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
5113 !WINDOWSNT means HAVE_TERMIOS.
5114 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
5115 conditional, which is true for all HAVE_TERMIOS systems.
5116 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
5117 instead of HAVE_TERMIOS.
5118 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
5119 EMACS_HAVE_TTY_PGRP.
5120 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
5121 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
5122 anyway.
5123
914f049b 51242010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
5125
5126 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
5127 mirroring pixel positions.
5128
d931da8c
DN
51292010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
5130
b5c76d0c
DN
5131 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
5132 write only.
5133 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
5134 malloc_sbrk_used, nothing uses them.
5135
74815588
DN
5136 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
5137 defined, unconditionally defined in lisp.h.
5138
f5817d1c
DN
5139 * term.c: Do not include <termios.h>, systty.h does it.
5140
d931da8c
DN
5141 * s/unixware.h (HAVE_TCATTR):
5142 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
5143 systty.h defines it when HAVE_TERMIOS is defined.
5144
ff2de6d2 51452010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 5146
b43c883c 5147 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 5148 terminals: add one-character offset for R2L lines.
b43c883c 5149
491a1546
EZ
5150 * emacs.c <emacs_version>: Add a comment regarding
5151 msdos/mainmake.v2's dependency on the syntax of this declaration.
5152
2396cbba
EZ
51532010-08-20 Eli Zaretskii <eliz@gnu.org>
5154
5155 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
5156 position for R2L lines by mirroring the pixel position wrt the
5157 text are box. Improve commentary.
5158
7df6150a
AS
51592010-08-20 Andreas Schwab <schwab@linux-m68k.org>
5160
5161 * image.c (imagemagick_clear_image): Remove debugging output.
5162
a2e5caf7
SM
51632010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5164
5165 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
5166 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
5167 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
5168 self-insert-face.
5169 (syms_of_cmds): Initialize the new vars.
5170
20d60baf
JR
51712010-08-19 Jason Rumney <jasonr@gnu.org>
5172
cc477da7
JR
5173 * w32menu.c (set_frame_menubar): Remove call to undefined function.
5174
20d60baf
JR
5175 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
5176
2c0ac867
J
51772010-08-19 Jan Djärv <jan.h.d@swipnet.se>
5178
5179 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
5180
93352106
EZ
51812010-08-18 Eli Zaretskii <eliz@gnu.org>
5182
5183 * xterm.c (x_draw_bar_cursor):
5184 * w32term.c (x_draw_bar_cursor): If the character under cursor is
5185 R2L, draw the bar cursor on its right rather than on its left.
5186
c785836d
SM
51872010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
5188
0193499f
SM
5189 * eval.c (Fdefmacro): Only obey one declaration.
5190
c785836d
SM
5191 * casefiddle.c (casify_region): Setup gl_state.
5192
9cb728a5
J
51932010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5194
5195 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
5196
e1e18511
J
51972010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5198
1d77b63e 5199 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 5200
64cb6c78
J
52012010-08-18 David De La Harpe Golden <david@harpegolden.net>
5202
5203 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
5204 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
5205 QPRIMARY => NXPrimaryPboard.
5206 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
5207 NXPrimaryPboard => QPRIMARY.
5208 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
5209 NXSecondaryPboard = SecondarySelection.
5210 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
5211
0c9b8993
GM
52122010-08-18 Joakim Verona <joakim@verona.se>
5213
5214 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
5215 defined:
5216 (imagemagick_image_p): New function to test for ImageMagic image.
5217 (imagemagick_load): New function to load ImageMagick image.
5218 (imagemagick_load_image): New function, helper for imagemagick_load.
5219 (imagemagick-types): New function.
5220 (Qimagemagick): New Lisp_object.
5221 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 5222
c3554f68
SM
52232010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
5224
5225 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
5226 is a string.
5227
1ff2e434
J
52282010-08-17 Jan Djärv <jan.h.d@swipnet.se>
5229
5230 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
5231 x_set_tool_bar_position handler.
5232
0cc56427
EZ
52332010-08-17 Eli Zaretskii <eliz@gnu.org>
5234
5235 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
5236 x_set_tool_bar_position handler, needed to support changes from
5237 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
5238
e45a249b
JD
52392010-08-16 Jan Djärv <jan.h.d@swipnet.se>
5240
2f8f196d 5241 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
921242c6 5242 declaration (Bug#6863).
573d150b 5243 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 5244
e45a249b
JD
5245 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
5246
5247 * keyboard.h (QPRIMARY): Declare (Bug#6864).
5248
7c23dd44
CY
52492010-08-16 Chong Yidong <cyd@stupidchicken.com>
5250
5251 * keyboard.c (command_loop_1): Avoid setting selection twice,
5252 since it's done in deactivate-mark as well.
5253 (Vselect_active_regions): Change default to t. Replace `lazy'
5254 with non-default value `only', meaning only set PRIMARY for
5255 temporarily active regions.
5256
5257 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
5258 select-active-regions.
5259
0005830c
J
52602010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5261
5262 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
5263 isn't a string.
5264
603dfc72
AS
52652010-08-15 Andreas Schwab <schwab@linux-m68k.org>
5266
5267 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
5268
c25ce9d0
J
52692010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5270
c3554f68
SM
5271 * keyboard.c (parse_tool_bar_item): malloc buf.
5272 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
5273 new_lbl (Bug#6855).
c25ce9d0 5274
5872c762
EZ
52752010-08-14 Eli Zaretskii <eliz@gnu.org>
5276
b236615c
EZ
5277 * xterm.c (x_draw_stretch_glyph_string):
5278 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
5279 the cursor on the right edge of the stretch glyph.
5280
c3554f68
SM
5281 * xdisp.c (window_box_right_offset, window_box_right):
5282 Fix commentary.
b236615c 5283
5872c762
EZ
5284 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
5285 direction when point is inside a run of whitespace characters.
5286
5287 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
5288
e66f9a1b
JR
52892010-08-14 Jason Rumney <jasonr@gnu.org>
5290
5291 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
5292
79d6f59e
CY
52932010-08-14 Chong Yidong <cyd@stupidchicken.com>
5294
5295 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
5296
1c9b4129
JR
52972010-08-13 Jason Rumney <jasonr@gnu.org>
5298
5299 * w32menu.c (simple_dialog_show): Use unicode message box if available.
5300 (MessageBoxW_Proc): New function typedef.
5301 (unicode-message-box): New function pointer.
2f8f196d 5302 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1c9b4129 5303
2b4e6277
J
53042010-08-13 Jan Djärv <jan.h.d@swipnet.se>
5305
5306 * frame.h (Qtool_bar_position): Declare.
5307
5308 * xfns.c (Fx_create_frame): Call x_default_parameter for
5309 Qtool_bar_position.
5310
94c97d85
EZ
53112010-08-13 Eli Zaretskii <eliz@gnu.org>
5312
8ee81892
EZ
5313 * unexcoff.c: Remove the parts used when "emacs" is not defined.
5314 (report_error, report_error_1): Ditto.
5315 (write_segment): Remove "#if 0" unused code.
5316 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
5317 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
5318 (start_of_text): Remove unused function (was used only if NO_REMAP
5319 was NOT defined).
5320
891ef8f7
EZ
5321 * msdos.c (IT_set_face): Fix format string to match argument
5322 types.
5323 (IT_write_glyphs, IT_note_mode_line_highlight)
5324 (IT_set_frame_parameters): Remove unused variables.
5325 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
5326 (IT_set_terminal_modes): Disambiguate expression in if clause.
5327 (Fmsdos_remember_default_colors): Return Qnil.
5328 (IT_set_frame_parameters): Add parens to disambiguate boolean
5329 expression for logging the cursor type to termscript.
5330 (keyboard_layout_list, keypad_translate_map)
5331 (grey_key_translate_map): Add braces in inner initializers.
5332 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
5333 (dos_rawgetc): Remove unused label.
5334 (XMenuActivate): Add braces to remove ambiguous `else'.
5335 (dos_ttraw): Always return a value.
5336 (spawnve): Declare.
5337 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
5338
5339 * dosfns.h (x_set_title): Declare.
5340
5341 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
5342 Remove unused variables.
5343
5344 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
5345 variables.
5346 (init_dosfns): Declare get_lim_data.
5347 (system_process_attributes): Declare Fget_internal_run_time.
5348
38e41e0e
EZ
5349 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
5350 list to be consistent with menu.h.
5351
94c97d85
EZ
5352 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
5353 warnings due to mixing of "char *" and "const char *".
5354
c5683ceb
SM
53552010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5356
5357 Introduce a new comment style "c" flag.
5358 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
5359 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
5360 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
5361 (syntax_prefix_flag_p): New function.
5362 (Fstring_to_syntax): Understand new "c" flag.
5363 (Finternal_describe_syntax_value): Recognize new flag; use the
5364 SYNTAX_FLAGS_* macros.
5365 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
5366 comment style to accomodate the new styles.
5367 (back_comment, forw_comment, Fforward_comment, scan_lists)
5368 (scan_sexps_forward): Update code to obey the new comment style flag.
5369
5370 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
5371
5372 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
5373
7aee76f4
J
53742010-08-11 Jan Djärv <jan.h.d@swipnet.se>
5375
3a46642b
J
5376 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
5377 first.
94dff98f 5378 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
5379
5380 * gtkutil.h (xg_check_special_colors): Declare.
5381
5382 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
5383 (xg_create_frame_widgets): Connect theme name changes to
5384 style_changed_cb.
5385
42ca4633
J
5386 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
5387 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
5388 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 5389 string literal. file is const char*.
42ca4633
J
5390
5391 * xsmfns.c (NOSPLASH_OPT): Change to char[].
5392 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
5393 props. Free them at the end.
5394
5395 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
5396
c5683ceb
SM
5397 * xrdb.c (get_system_app): Make path const and use char *p for
5398 non-const char.
42ca4633
J
5399
5400 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 5401 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
5402 char *.
5403 (button_names): Is const char *.
5404 (xdialog_show): error_name and pane_string is const.
5405
5406 * process.h (synch_process_death): Is const char*.
5407
5408 * w32menu.c (w32_menu_show):
5409 * nsmenu.m (ns_menu_show): error parameter is const char **.
5410
5411 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
5412 is const char **.
5413
5414 * menu.c (Fx_popup_menu): error_name is const.
5415
5416 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
5417 with unsigned char and XtPointer with void *.
5418
5419 * gtkutil.h: Replace widget_value with struct _widget_value.
5420 (enum button_type, struct _widget_value): Remove and use the one from
5421 keyboard.h.
5422
5423 * gtkutil.c (get_utf8_string): Always return an allocated string.
5424 Parameter is const.
5425 (create_dialog, xg_create_one_menuitem, create_menus)
5426 (xg_item_label_same_p, xg_update_menu_item): Free result from
5427 get_utf8_string.
5428 (xg_separator_p, xg_item_label_same_p): label is const.
5429
5430 * font.h (font_open_by_name): Make name const.
5431
5432 * font.c (font_open_by_name): Make name const.
5433
5434 * floatfns.c (matherr): Use a const char* variable for x->name.
5435
5436 * emacs.c (main): Pass char[] to putenv instead of literal.
5437
5438 * callproc.c (synch_process_death): Make const.
5439 (Fcall_process): Make signame const.
5440
9c5bd55a
J
5441 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
5442 (addDisplayItemWithImage): Use const char*.
5443
5444 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
5445 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
5446
5447 * nsfont.m (ns_descriptor_to_entity): Use const char*.
5448
5449 * keyboard.h (_widget_value): name, value and key are const char*.
5450
7aee76f4
J
5451 * unexmacosx.c (unexec_error): Use const char *.
5452
09d93395
DN
54532010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5454
5455 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 5456 (font_parse_name, font_open_by_name):
09d93395 5457 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 5458 (font_parse_name, font_open_by_name): Remove const.
09d93395 5459
671d409f
AS
54602010-08-09 Andreas Schwab <schwab@linux-m68k.org>
5461
5462 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
5463 definition.
5464
5465 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
5466 * m/amdx86-64.h: Likewise.
5467 * m/arm.h: Likewise.
5468 * m/hp800.h: Likewise.
5469 * m/ia64.h: Likewise.
5470 * m/ibmrs6000.h: Likewise.
5471 * m/ibms390.h: Likewise.
5472 * m/intel386.h: Likewise.
5473 * m/iris4d.h: Likewise.
5474 * m/m68k.h: Likewise.
5475 * m/macppc.h: Likewise.
5476 * m/mips.h: Likewise.
5477 * m/sh3.h: Likewise.
5478 * m/sparc.h: Likewise.
5479 * m/template.h: Likewise.
5480 * m/vax.h: Likewise.
5481 * m/xtensa.h: Likewise.
5482 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
5483 WORDS_BIG_ENDIAN.
5484 * lisp.h: Likewise.
5485 * md5.c: Likewise.
5486 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
5487
8ea90aa3
DN
54882010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5489
5490 Use const char* instead of char*.
5491 Reduce the number of warnings with -Wwrite-strings.
5492 * xrdb.c (get_environ_db, get_system_name):
5493 * unexelf.c (find_section):
5494 * term.c (string_cost, string_cost_one_line, per_line_cost)
5495 (get_named_tty, init_tty):
5496 * sysdep.c (sys_subshell):
5497 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
5498 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
5499 * search.c (Freplace_match):
5500 * process.c (Fmake_network_process, send_process, init_process):
5501 * lread.c (Fload, init_lread):
5502 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
5503 * keyboard.c (parse_tool_bar_item, struct event_head):
5504 * gtkutil.h (xg_get_font_name):
5505 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
5506 (make_widget_for_menu_item, make_menu_item, create_menus)
5507 (xg_make_tool_item):
5508 * font.c (parse_matrix, font_parse_name):
5509 * floatfns.c (rounding_driver, float_error_fn_name):
5510 * filelock.c (get_boot_time_1, lock_file_1):
5511 * fileio.c (barf_or_query_if_file_exists, check_writable):
5512 * editfns.c (get_system_name, get_operating_system_release)
5513 (Fencode_time, Fset_time_zone_rule):
5514 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
5515 * buffer.c (defvar_per_buffer): Use const.
5516
7815fe19 55172010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 5518
692f3ddc 5519 * charset.c: Include <stdlib.h>.
7a84eee5
KH
5520 (struct charset_sort_data): New struct.
5521 (charset_compare): New function.
692f3ddc 5522 (Fsort_charsets): New function.
7a84eee5
KH
5523 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
5524
5525 * coding.c (decode_coding_iso_2022): Fix checking of dimension
5526 number in CTEXT extended segment.
5527
7815fe19 55282010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
5529
5530 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
5531 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
5532
7815fe19 55332010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
5534
5535 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
5536 (Fhash_table_size): Fix typos in docstrings.
5537 (Fmake_hash_table): Doc fix.
5538
7815fe19 55392010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
5540
5541 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
5542 Doc fix (bug#5625).
5543
7815fe19 55442010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
5545
5546 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
5547 the MSDOS definition.
5548
1b6d8cf0
DN
55492010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
5550
675e2c69
DN
5551 Use const char* instead of char*.
5552 * xterm.c (x_create_toolkit_scroll_bar):
5553 * xfont.c (xfont_list_pattern):
5554 * xfns.c (x_default_scroll_bar_color_parameter)
5555 (xic_create_fontsetname, x_default_font_parameter)
5556 (x_screen_planes):
5557 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
5558 (store_mode_line_string, decode_mode_spec, display_string):
5559 * menu.c (digest_single_submenu):
5560 * keymap.h (initial_define_key, initial_define_lispy_key):
5561 * keymap.c (initial_define_key, initial_define_lispy_key):
5562 * image.c (image_error, image_keyword):
5563 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
5564 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
5565 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
5566 (ftfont_list, ftfont_match):
5567 * frame.c (frame_parm_table):
5568 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5569 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5570 (font_add_log, font_deferred_log):
5571 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5572 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5573 (font_add_log, font_deferred_log):
5574 * emacs.c (argmatch):
5575 * dispextern.h (struct it):
5576 * coding.c (ENCODE_DESIGNATION):
5577 * charset.c (define_charset_internal): Use const.
5578
25717ca1
DN
5579 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
5580
c5683ceb
SM
5581 * xrdb.c: Remove include guard.
5582 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
5583 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
5584 realloc->xrealloc instead of using #defines.
5585
efb41e21
EZ
55862010-08-08 Eli Zaretskii <eliz@gnu.org>
5587
cd21226d 5588 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
5589 * editfns.c (Fline_beginning_position, Fline_end_position):
5590 State in the doc strings that start and end of line are in the
5591 logical order.
cd21226d 5592
efb41e21
EZ
5593 * xdisp.c (display_line): Move the handling of overlay arrow after
5594 the call to find_row_edges. (Bug#6699)
5595
746812d9
CY
55962010-08-07 Chong Yidong <cyd@stupidchicken.com>
5597
5598 * keyboard.c (command_loop_1):
5599 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
5600
9852377f
CY
56012010-08-07 Chong Yidong <cyd@stupidchicken.com>
5602
5603 * insdel.c (prepare_to_modify_buffer): Save active region text to
5604 Vsaved_region_selection.
5605
5606 * xselect.c (QPRIMARY): Move to keyboard.c.
5607
5608 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
5609 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
5610 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 5611
0e9c8657
JB
56122010-08-07 Juanma Barranquero <lekktu@gmail.com>
5613
5614 * alloc.c (lisp_malloc):
5615 * buffer.c (set_buffer_internal, set_buffer_internal_1):
5616 * charset.h (emacs_mule_charset):
5617 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
5618 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
5619 (bitch_at_user):
5620 * lisp.h (Fcheck_coding_system, Fget_text_property)
5621 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
5622 Remove duplicate declarations.
5623
648801d1
DN
56242010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5625
32bc6709
DN
5626 * process.c: Simplify include logic.
5627
3ef1d108
DN
5628 * keyboard.h (quit_char): Add declaration.
5629 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
5630 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
5631 Add declarations.
3ef1d108
DN
5632 * sysdep.c:
5633 * w32.c: Remove the above declarations.
5634
97ec208f
DN
5635 Remove extern declarations in .c files, .h files have them.
5636 * xterm.c:
5637 * xdisp.c:
97ec208f
DN
5638 * msdos.c:
5639 * image.c:
5640 * gtkutil.c:
5641 * fileio.c:
5642 * eval.c: Remove declarations.
5643
94eed851
DN
5644 * frame.c (frame_params): Make const.
5645
36e053eb
DN
5646 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
5647
0e843971
DN
5648 * emacs.c (emacs_copyright, emacs_version): Make static.
5649 (Vinitial_window_system, Vauto_save_list_file_name)
5650 (Vinhibit_redisplay): Remove declarations.
5651 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
5652 for AIX.
5653
648801d1
DN
5654 Use const for some arrays and functions.
5655 * xterm.h (xg_set_icon_from_xpm_data):
5656 * xfns.c (xg_set_icon_from_xpm_data):
5657 * term.c (fkeys):
5658 * keyboard.c (lispy_accent_keys, lispy_function_keys)
5659 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
5660 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
5661 (frame.c frame_parms):
5662 * emacs-icon.h (gnu_xpm_bits):
5663 * callint.c (callint_argfuns): Use const.
5664
8646d999
J
56652010-08-06 Jan Djärv <jan.h.d@swipnet.se>
5666
5667 * sysdep.c: Move include term.h last of includes (Bug#6812).
5668
cb4545ad
EZ
56692010-08-06 Eli Zaretskii <eliz@gnu.org>
5670
5671 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
5672
5673 * msdos.c (IT_display_cursor): Log cursor position on termscript.
5674
5675 * .gdbinit (pgx): Display the avoid_cursor_p flag.
5676
da7e2be6
JB
56772010-08-06 Juanma Barranquero <lekktu@gmail.com>
5678
5679 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
5680
3d608a86
J
56812010-08-06 Jan Djärv <jan.h.d@swipnet.se>
5682
7908fb60
J
5683 * xterm.h (x_get_focus_frame): Declare.
5684
5685 * keyboard.h (poll_for_input_1): Unconditionally declare.
5686
4094bf36
J
5687 * nsterm.h (x_set_menu_bar_lines): Declare.
5688
5689 * window.c: Don't include menu.h, it depends on lots of other .h-files.
5690
3d608a86
J
5691 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
5692
5693 * window.c: Include menu.h.
5694
5695 * unexmacosx.c (print_region_list, print_regions)
5696 (build_region_list, find_emacs_zone_regions)
5697 (unexec_regions_merge, read_load_commands, dump_it)
5698 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
5699
5700 * term.c: Check HAVE_SYS_IOCTL_H.
5701
686b968e 5702 * sysdep.c: Check HAVE_TERM_H.
3d608a86 5703
686b968e 5704 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
5705
5706 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
5707 (ns_ring_bell, ns_defined_color, hide_hourglass)
5708 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
5709 Convert to ANSI C prototypes.
5710 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
5711 before code.
5712
5713 * nsterm.h : Include sysselect.h.
5714 (x_sync, x_get_focus_frame, x_set_mouse_position)
5715 (x_set_mouse_pixel_position, x_make_frame_visible)
5716 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
5717 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
5718 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
5719 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 5720 Declare.
3d608a86
J
5721
5722 * nsmenu.m (popup_activated, name_is_separator)
5723 (syms_of_nsmenu): Convert to ANSI C prototypes.
5724 (runMenuAt): Prototypes and move declarations before code.
5725
5726 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
5727
5728 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
5729 prototypes.
5730
5731 * nsfns.m (have_menus_p, ns_display_info_for_name)
5732 (x_set_cursor_type, ns_appkit_version_str)
5733 (ns_appkit_version_int, ns_do_applescript)
5734 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
5735 (syms_of_nsfns): Convert to ANSI C prototypes.
5736
5737 * menu.h (x_set_menu_bar_line): Declare.
5738 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
5739
5740 * lisp.h (fmod_float): Declare.
5741
5742 * image.c (xpm_scan, xpm_make_color_table_v)
5743 (xpm_put_color_table_v, xpm_get_color_table_v)
5744 (xpm_make_color_table_h, xpm_put_color_table_h)
5745 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
5746 (xpm_load): Convert to ANSI C prototypes.
5747
5748 * emacs.c: Include nsterm.h if HAVE_NS.
5749
5750 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
5751
fce70521
DN
57522010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5753
5754 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
5755 subprocesses, only MSDOS does not define HAVE_SOCKETS.
5756 (socket_options): Use const char* for name.
5757
a11889ab
JB
57582010-08-06 Juanma Barranquero <lekktu@gmail.com>
5759
5760 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
5761
5762 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
5763 Don't declare xmalloc_widget_value and digest_single_submenu.
5764
5765 * w32font.c (Qlatin): Remove declaration.
5766
5767 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
5768
c95b508f 5769 * dired.c (compile_pattern): Restore declaration.
a11889ab 5770
6254cdda
DN
57712010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
5772
04bab72c
DN
5773 Remove extern declarations in .c files, .h files have them.
5774 * data.c:
5775 * dired.c:
5776 * editfns.c:
5777 * filelock.c:
5778 * fns.c:
5779 * font.c:
5780 * fontset.c:
5781 * frame.c:
5782 * fringe.c:
5783 * ftfont.c:
5784 * gtkutil.c:
5785 * indent.c:
5786 * keyboard.c:
5787 * keymap.c:
5788 * lread.c:
5789 * menu.c:
5790 * print.c:
5791 * search.c:
5792 * sound.c:
5793 * window.c:
5794 * xdisp.c:
5795 * xfaces.c:
5796 * xfns.c:
5797 * xfont.c:
5798 * xftfont.c:
5799 * xmenu.c:
5800 * xterm.c: Remove declarations.
5801
dff94ed5
DN
5802 Cleanup syssignal.h.
5803 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
5804 (main_thread): Move down to remove #ifdef.
5805 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
5806 Remove conditional definition following unconditional ones.
5807
99f3388e
DN
5808 * lisp.h: Remove HAVE_SHM code, unused.
5809 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
5810 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
5811 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
5812 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
5813 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
5814 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
5815 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
5816 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
5817 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
5818 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
5819 (Qwindow_scroll_functions, Vafter_load_alist)
5820 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
5821 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
5822 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
5823 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
5824 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
5825 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
5826 (initial_argv, last_nonmenu_event, load_in_progress)
5827 (noninteractive_need_newline, scroll_margin): Add declarations.
5828
bba3e508
SM
5829 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5830 Remove declarations, menu.h has them.
99f3388e
DN
5831 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
5832 (Vinput_method_function, Qinput_method_function)
5833 (Qevent_symbol_element_mask, last_event_timestamp):
5834 * dispextern.h (Voverflow_newline_into_fringe):
5835 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
5836 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
5837 (syms_of_w32font, syms_of_nsfont):
5838 * fontset.h (find_font_encoding, Qlatin):
5839 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
5840 (Vtool_bar_mode, set_frame_menubar):
5841 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
5842 * xterm.h (Qx_gtk_map_stock):
5843 * keymap.h (meta_prefix_char): Add declarations.
5844
9f5dd6f2
DN
5845 * term.c: Remove dead code.
5846
6254cdda
DN
5847 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
5848 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
5849 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
5850 which is what was there before BSD_PGRPS was removed.
5851
29cf3e20
EZ
58522010-08-05 Eli Zaretskii <eliz@gnu.org>
5853
5854 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
5855
5856 * unexcoff.c: Renamed from unexec.c.
5857
aaa0a19a
SM
58582010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
5859
5860 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
5861
8d1d9587
JB
58622010-08-03 Johan Bockgård <bojohan@gnu.org>
5863
5864 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 5865 (Bug#6744)
8d1d9587 5866
9a747ba6
JD
58672010-08-02 Jan Djärv <jan.h.d@swipnet.se>
5868
4d464ae4
JD
5869 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
5870 to TRUE if depth of screen is < 16.
5871
ac01763e
JD
5872 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
5873 USE_GTK_TOOLTIP.
e0d62a9b
JB
5874 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
5875 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 5876 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
5877 USE_GTK_TOOLTIP.
5878 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
5879
5880 * xterm.h (USE_GTK_TOOLTIP): New define.
5881 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
5882
9a747ba6
JD
5883 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
5884 to Control-D (Bug#6771).
5885
7b0815ba
JB
58862010-08-02 Juanma Barranquero <lekktu@gmail.com>
5887
5888 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
5889 Wording by Drew Adams <drew.adams@oracle.com>.
5890
aa1859f5
J
58912010-08-01 Jan Djärv <jan.h.d@swipnet.se>
5892
5893 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
5894 ttip_lbl.
5895
5896 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
5897 calling gtk_widget_queue_draw.
5898 (x_free_frame_resources): Call xg_free_frame_widgets.
5899
5900 * xfns.c (x_gtk_use_system_tooltips): New variable.
5901 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
5902 new gtkutil tooltip functions to show the tooltip.
5903 (Fx_hide_tip): Call xg_hide_tooltip.
5904 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
5905
5906 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
5907 (xg_show_tooltip, xg_hide_tooltip): Declare.
5908
5909 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
5910 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
5911 New functions.
aa1859f5
J
5912 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
5913 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
5914 Remove code that is commented out.
5915
76417ef4
SM
59162010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
5917
5918 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
5919
16041401
CY
59202010-07-31 Chong Yidong <cyd@stupidchicken.com>
5921
5922 * xselect.c (x_own_selection): Use list4.
5923
2c09a58f
DN
59242010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
5925
5926 * buffer.c (Qwindow): Do not define, already defined in data.c.
5927 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
5928
59df9fdd 59292010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 5930
59df9fdd
JB
5931 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
5932 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
5933 * config.in: Undef HAVE_DIRENT_H.
1c97e857 5934 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 5935 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 5936
1b231651
DN
59372010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5938
5939 Rename s/usg5-4.h -> s/usg5-4-common.h.
5940 * s/usg5-4.h: Rename file to ...
5941 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
5942 * s/unixware.h:
5943 * s/sol2-6.h:
5944 * s/irix6-5.h: Update includes accordingly.
5945
bfeabdc3
JD
59462010-07-29 Jan Djärv <jan.h.d@swipnet.se>
5947
2ebf1083
J
5948 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
5949
bfeabdc3 5950 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
5951 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
5952 Remove toolbar_height.
5953 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
5954 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
5955 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
5956 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
5957
5958 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
5959
5960 * xfns.c (x_set_tool_bar_position): New function.
5961 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
5962 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 5963 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
5964
5965 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
5966 and FRAME_TOOLBAR_LEFT_WIDTH.
5967
5968 * gtkutil.h (xg_change_toolbar_position): Declare.
5969
5970 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
5971 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
5972 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
5973 (xg_create_frame_widgets): Create a hobox for placing widgets
5974 vertically. Use gtk_box_pack_start.
ef1b0ba7 5975 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
5976 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
5977 (xg_update_frame_menubar, free_frame_menubar): Change to
5978 xg_height_or_width_changed.
5979 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
5980 size correctly. Remove hardcoded 4, instead use handlebox size -
5981 toolbar size.
5982 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 5983 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
5984 (xg_pack_tool_bar): POS is a new parameter.
5985 Set orientation of tool bar based on pos.
5986 Only make handlebox_widget if NULL.
5987 Check if tool bar goes to vbox or hbox depending on pos.
5988 (xg_update_tool_bar_sizes): New function.
686b968e 5989 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
5990 height, call xg_update_tool_bar_sizes instead.
5991 (free_frame_tool_bar): Remove from hbox or vbox depending on
5992 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
5993 (xg_change_toolbar_position): New function.
5994
5995 * frame.h (struct frame): Add tool_bar_position.
5996 (Qbottom): Declare.
5997
5998 * frame.c (Qtool_bar_position): New variable.
5999 (make_frame): Set tool_bar_position to Qtop.
6000 (frame_parms): Add tool-bar-position.
6001 (x_report_frame_params): Store tool_bar_position.
6002 (x_set_fringe_width): Reset wm size hint after fringe changes.
6003
26469a38
DN
60042010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6005
6006 Make lisp_time_argument declaration work on all systems.
6007 * lisp.h (lisp_time_argument): Move declaration ...
6008 * systime.h (lisp_time_argument): ... here
6009 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
6010
8848b728
JD
60112010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6012
6013 * vm-limit.c (POINTER): Add typedef for it.
6014 (start_of_data): Change return type from POINTER to char *.
6015
6016 * frame.h (Qtty_color_mode): Move declaration out of ifdef
6017 HAVE_WINDOW_SYSTEM.
6018
76fd1ee9
DN
60192010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6020
0441987e
DN
6021 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6022 Remove reference to __osf__, unused.
6023
56a000c7
DN
6024 * mem-limits.h: Remove duplicated includes.
6025 (NULL): Remove definition, unused.
6026 (POINTER): Remove definition.
6027 (start_of_data): Use char* in prototype, as the function
6028 definition does.
6029
e6cba650
DN
6030 Remove extern declarations from .c files, and them to .h files.
6031 * keyboard.h (Qhelp_echo, waiting_for_input)
6032 (input_available_clear_time, ignore_mouse_drag_p)
6033 (Vdouble_click_time, real_this_command, Vthis_original_command):
6034 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
6035 (Voverriding_local_map_menu_flag):
6036 * lisp.h (Qinteractive_form, use_file_dialog)
6037 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
6038 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
6039 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6040 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
6041 (Qfunction, debug_on_next_call, Qfield)
6042 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
6043 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
6044 (Qfile_directory_p, Qinsert_file_contents)
6045 (Qcompletion_ignore_case, Qcompletion_ignore_case)
6046 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
6047 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
6048 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
6049 (Qminibuffer_prompt)
6050 (Vtemporary_file_directory,char_ins_del_vector, Qface):
6051 * xterm.h (gray_bitmap_width, gray_bitmap_height)
6052 (gray_bitmap_bits, xic_create_fontsetname):
6053 * coding.h (Vtranslation_table_for_input): Add extern declarations.
6054
6055 * xsmfns.c (Vuser_login_name):
6056 * xrdb.c (Vdouble_click_time):
6057 * xfaces.c (xic_create_fontsetname):
6058 * w32select.c (waiting_for_input):
6059 * print.c (minibuffer_auto_raise):
6060 * msdos.c (Qhelp_echo):
6061 * macros.c (real_this_command):
6062 * keymap.c (Voverriding_local_map):
6063 * xterm.c (poll_for_input_1, gray_bitmap_width)
6064 (gray_bitmap_height, gray_bitmap_bits;
6065 * xmenu.c ( Voverriding_local_map)
6066 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
6067 (use_file_dialog, Xt_app_con):
6068 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
6069 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
6070 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
6071 (Qtool_bar_lines, ignore_mouse_drag_p):
6072 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
6073 (Qrear_nonsticky, nconc2):
6074 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
6075 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
6076 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
6077 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
6078 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
6079 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
6080 (gc_in_progress):
6081 * doc.c (Voverriding_local_map, Qremap):
6082 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
6083 (Vcompletion_regexp_list):
6084 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
6085 (Qcompletion_ignore_case):
6086 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
6087 (Vhistory_length, Vthis_original_command, real_this_command)
6088 (Qface, Qminibuffer_prompt, history_delete_duplicates):
6089 * image.c (Qrisky_local_variable):
6090 * fontset.c (QCname):
6091 * fns.c (minibuffer_auto_raise, QCname):
6092 * dispnew.c (char_ins_del_cost):
6093 * composite.c (font_fill_lglyph_metrics):
6094 * cmds.c (Qface, Vtranslation_table_for_input):
6095 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
6096 * ccl.c (charset_unicode):
6097 * callproc.c (Vtemporary_file_directory):
6098 * buffer.c (emacs_strerror): Remove extern declarations.
6099
6100 * data.c (Qwindow): Make non-static, used from other files too.
6101 * frame.c (validate_x_resource_name): Remove shadow definition for i.
6102
76fd1ee9
DN
6103 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
6104 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
6105 * s/usg5-4.h (COFF):
6106 * s/template.h:
6107 * s/msdos.h (COFF, NO_REMAP):
6108 * s/ms-w32.h (NO_REMAP):
6109 * s/hpux10-20.h (NO_REMAP):
6110 * m/sparc.h (SEGMENT_MASK):
6111 * m/m68k.h (NO_REMAP):
6112 * m/intel386.h (SEGMENT_MASK):
6113 * m/arm.h (NO_REMAP):
6114 * m/alpha.h (COFF):
6115 * m/template.h: Remove references to unused defines.
6116
8a52f00a
JD
61172010-07-28 Jan Djärv <jan.h.d@swipnet.se>
6118
6119 * xsettings.c (Ftool_bar_get_system_style): Also check for
6120 Qtext_image_horiz.
6121
6122 * xdisp.c (Qtext_image_horiz): Define.
6123 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 6124 to documentation of tool-bar-style.
8a52f00a
JD
6125
6126 * lisp.h (Qtext_image_horiz): Declare.
6127
6128 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
6129 style text_image_horiz.
6130
89dc303e
DN
61312010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6132
60799703
DN
6133 * emacs.c (Fkill_emacs): Remove return statement.
6134
37254dc1
DN
6135 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
6136 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
6137 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
6138 Remove local extern declarations.
37254dc1 6139
71c7345a
DN
6140 * xmenu.c: Do not included lwlib.h, not needed.
6141
6ba577cb
DN
6142 * m/iris4d.h (XUINT, XSET): Remove, not needed.
6143
fdb183d6
DN
6144 * process.c: Move definitions earlier to minimize #ifdefs.
6145
6146 * xterm.h (x_get_customization_string, x_load_resources)
6147 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
6148 (x_check_errors, x_property_data_to_lisp, defined_color)
6149 (xic_set_xfontset, x_defined_color): Use const.
6150
6151 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
6152 (x_text_icon, x_check_errors, x_connection_closed): Use const.
6153
6154 * xselect.c (selection_data_to_lisp_data)
6155 (x_property_data_to_lisp):
6156 * xrdb.c (x_get_string_resource, file_p)
6157 (x_get_customization_string, magic_file_p, search_magic_path)
6158 (get_system_app, get_user_app, x_load_resources, x_get_resource)
6159 (x_get_string_resource): Use const.
6160
6161 * xfns.c: Include xlwmenu.h when USE_LUCID.
6162 (x_defined_color, xic_set_xfontset): Use const.
6163 (Fx_hide_tip): Remove local extern declaration.
6164
6165 * xfaces.c (Qmouse_face): Remove declaration.
6166 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 6167 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
6168
6169 * xdisp.c (do_mouse_tracking): Remove declaration.
6170 (add_to_log): Use const.
6171
6172 * minibuf.c (Qmouse_face): Remove declaration.
6173
6174 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
6175
6176 * keyboard.h (do_mouse_tracking): Add declaration.
6177
6178 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
6179 (QCdata, QCtype, Qcenter): Remove declarations.
6180
6181 * frame.c (x_get_resource_string, x_get_string_resource)
6182 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6183 (x_default_parameter): Use const.
6184
6185 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
6186 (QCheight, QCsize, QCname): Remove declarations.
6187
6188 * emacs.c (main): Remove local extern declaration.
6189
6190 * editfns.c (region_limit, syms_of_editfns): Remove local extern
6191 declarations.
6192
6193 * dispnew.c: Remove duplicate #include <unistd.h>.
6194 (update_window, update_frame_1, init_display): Remove local extern
6195 declarations.
6196
6197 * dispextern.h (add_to_log): Remove declaration.
6198 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6199 (x_frame_get_and_record_arg, x_default_parameter): Add const.
6200
6201 * dired.c (scmp): Add const.
6202 (directory_files_internal): Remove local extern declaration.
6203
6204 * data.c (Finteractive_form): Use const.
6205
6206 * composite.c (syms_of_composite): Remove local extern declarations.
6207
6208 * charset.c (add_to_log): Remove declaration.
6209
6210 * character.c (strwidth, parse_str_to_multibyte): Add const.
6211
6212 * character.h (strwidth, parse_str_to_multibyte): Likewise.
6213
6214 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
6215
89dc303e 6216 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
6217 (Lisp_Subr): Make doc and intspec constant.
6218 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
6219 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
6220 (QCheight, QCsize, QCname, QCwidth, QCforeground)
6221 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
6222 (display_arg): Add declarations.
89dc303e 6223
0ed082fe 62242010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
6225
6226 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
6227
0ed082fe
JB
6228 * window.c (Fwindow_height): Doc fix (bug#6518).
6229
62302010-07-27 Juanma Barranquero <lekktu@gmail.com>
6231
6232 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
6233
ccaf0336
DN
62342010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
6235
977105dc
DN
6236 * keyboard.c (Ftop_level, Fexit_recursive_edit)
6237 (Fabort_recursive_edit): Remove return statements in NO_RETURN
6238 functions.
6239
f5ada890
DN
6240 * frame.h (Qtty_color_mode): Add declaration.
6241
ccaf0336
DN
6242 * lisp.h (Ftop_level, Fexit_recursive_edit)
6243 (Fabort_recursive_edit): Mark as NO_RETURN.
6244
dfe3c90f
KH
62452010-07-26 Kenichi Handa <handa@m17n.org>
6246
6247 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 6248 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 6249
7d383292
JB
62502010-07-26 Juanma Barranquero <lekktu@gmail.com>
6251
6252 * lread.c (unreadpure, mapatoms_1): Make static.
6253
da31e629
JB
62542010-07-25 Juanma Barranquero <lekktu@gmail.com>
6255
6256 * terminfo.c (tparam): Fix prototype of tparm.
6257
7bfa6d77
AS
62582010-07-25 Andreas Schwab <schwab@linux-m68k.org>
6259
dcc19aac
AS
6260 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
6261 find start of text segment.
6262 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
6263 is defined.
6264
7bfa6d77
AS
6265 * callproc.c (set_initial_environment): Avoid unbalanced braces.
6266
63f9a672
KB
62672010-07-25 Ken Brown <kbrown@cornell.edu>
6268
6269 * vm-limit.c (check_memory_limits): Fix previous change;
6270 accidentally reverted an earlier change.
6271
24933075
KB
62722010-07-25 Ken Brown <kbrown@cornell.edu>
6273
6274 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
6275 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
6276
361358ea
JB
62772010-07-25 Juanma Barranquero <lekktu@gmail.com>
6278
6279 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
6280 * dired.c (opendir, readdir): Fix prototypes.
6281 * editfns.c (w32_get_internal_run_time): Fix prototypes.
6282 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
6283 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
6284 (telldir): Remove declaration.
6285 * ralloc.c (real_morecore, __morecore): Fix prototypes.
6286 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
6287 * syssignal.h (strsignal): Fix prototype.
6288 * term.c (tparam): Fix prototype.
6289 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
6290 (term_get_fkeys): Set inside "#ifndef DOS_NT".
6291 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
6292 and __morecore.
6293 * w32gui.h (XParseGeometry): Fix prototype.
6294 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
6295 * w32term.c (my_set_focus): Declare inside #if 0.
6296 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
6297 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
6298 (drain_message_queue, get_next_msg, post_msg, parse_button)
6299 (ClipboardSequence_Proc): Fix prototypes.
6300 (wait_for_sync): Remove declaration.
6301
630b9592
JB
63022010-07-24 Juanma Barranquero <lekktu@gmail.com>
6303
6304 * w32fns.c (w32_to_x_color): Remove, unused.
6305
6a0d6611
AS
63062010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6307
6308 * lisp.h: Remove leftover P_.
6309
4e8608ff
DN
63102010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6311
6312 * ecrt0.c, unexalpha.c: Remove files, unused.
6313
c8197983
AS
63142010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6315
6316 * cmds.c (internal_self_insert): Make static.
6317 * lisp.h (internal_self_insert): Remove declaration.
6318
97b372d7
JB
63192010-07-23 Juanma Barranquero <lekktu@gmail.com>
6320
33ac0414
JB
6321 * alloc.c (free_float):
6322 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
6323 * frame.c (delete_frame_handler):
6324 * ralloc.c (reorder_bloc):
6325 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
6326 Remove unused static functions.
6327
94da8397
JB
6328 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
6329 it is called only from NS code.
6330
2e6c8532
JB
6331 * w32term.c (my_set_focus): #ifdef away; it is called only from
6332 "#ifdef 0" code.
6333
97b372d7
JB
6334 * w32fns.c (x_edge_detection):
6335 * xfaces.c (may_use_scalable_font_p):
6336 Remove obsolete static declarations.
6337
7c3320d8
JB
63382010-07-20 Juanma Barranquero <lekktu@gmail.com>
6339
6340 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
6341 (emacs_blocked_realloc, uninterrupt_malloc):
6342 * fringe.c (w32_reset_fringes):
6343 * image.c (convert_mono_to_color_image, lookup_rgb_color)
6344 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
6345 * sound.c (be2hs, do_play_sound):
6346 * vm-limit.c (get_lim_data, ret_lim_data):
6347 * w32term.c (x_free_frame_resources):
6348 * xfaces.c (x_create_gc, x_free_gc):
6349 Convert definitions to standard C.
6350
d5273788
SM
63512010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
6352
6353 * eval.c (Feval, Ffuncall): Use the new names.
6354
6355 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
6356 (DEFUN): Add braces around the union initialisation and use ## to
6357 specify the right union alternative and avoid a cast.
6358
8d16a259
JB
63592010-07-18 Juanma Barranquero <lekktu@gmail.com>
6360
6361 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
6362
3b8eff32
CY
63632010-07-17 Chong Yidong <cyd@stupidchicken.com>
6364
6365 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
6366
499322ce
J
63672010-07-17 Jan Djärv <jan.h.d@swipnet.se>
6368
6369 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
6370 is related to the menu bar (Bug#6499).
a628ad9d 6371 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 6372
f6003da5 63732010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
6374
6375 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
6376
6377 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
6378
6379 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
6380 i.e. don't put back ButtonRelease (Bug#6608).
6381
6382 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
6383 instead of Window. Call xg_event_is_for_menubar when
6384 USE_GTK (Bug#6499).
6385
6386 * gtkutil.h (xg_event_is_for_menubar): Declare.
6387
6388 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
6389
f6003da5 63902010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
6391
6392 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
6393 when it's the same as the old foreground. (Bug#6609)
6394
23243f29
J
63952010-07-16 Jan Djärv <jan.h.d@swipnet.se>
6396
6397 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
6398 widget is non-null (Bug#6645).
6399
2b23d2a6
AS
64002010-07-15 Andreas Schwab <schwab@linux-m68k.org>
6401
01b564ff
AS
6402 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
6403 Convert old-style definition.
6404
2b23d2a6
AS
6405 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
6406 timestamp argument.
6407
c4affd2c
EZ
64082010-07-15 Eli Zaretskii <eliz@gnu.org>
6409
6410 * fringe.c (update_window_fringes): Restore mistakenly reverted
6411 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
6412
cf28cebc
J
64132010-07-14 Jan Djärv <jan.h.d@swipnet.se>
6414
6415 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
6416 (SET_SAVED_KEY_EVENT): Remove (not used).
6417 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
6418 remove size parameter.
6419 (handle_one_xevent): Check popup_activated () for menu for Xt also.
6420 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
6421 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
6422 ButtonRelease.
6b2c4bd9
J
6423 (x_set_window_size_1): scroll_bar_actual_width is always
6424 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
6425
6426 * xdisp.c (pending_menu_activation): Remove extern declaration.
6427 (prepare_menu_bars): Remove setting of pending_menu_activation.
6428
6429 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
6430 (x_activate_menubar): Set popup_activated_flag for Xt also.
6431 Remove setting of pending_menu_activation.
cf28cebc
J
6432 (set_frame_menubar): Remove check of pending_menu_activation.
6433 Declare menubar_size before code. Correct spelling in comment.
6434
f6c1c771
KH
64352010-07-14 Kenichi Handa <handa@m17n.org>
6436
6437 * font.c (font_open_entity): Cancel previous change.
6438 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
6439
20477505
EZ
64402010-07-13 Eli Zaretskii <eliz@gnu.org>
6441
77defa9a
EZ
6442 Remove subprocesses #ifdefs.
6443 * process.c <inhibit_sentinels>: Move to the common part.
6444 (Fwaiting_for_user_input_p): Move to the common part; return nil
6445 if async subprocesses aren't supported.
6446 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
6447 MS-DOS. Remove "#ifdef subprocesses".
6448 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
6449 (gettimeofday): Remove "#ifdef subprocesses".
6450 (wait_without_blocking): Remove function.
6451 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
6452 Remove "#ifdef subprocesses".
6453 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
6454 compiled on MS-DOS.
6455 * callproc.c (Fcall_process) [!MSDOS]: Don't call
6456 wait_for_termination on MS-DOS.
6457 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
6458 initialization of inhibit_sentinels.
6459 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
6460 subprocesses" conditional.
6461 * callproc.c (Fcall_process) [!subprocesses]: Don't call
6462 wait_for_termination, since `buffer' cannot be an integer when
6463 async subprocesses are not supported
6464 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
6465 for ifdefing away the call to Fprocess_status.
6466
20477505
EZ
6467 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
6468 away the entire body of the function.
6469
b3ffc17c
DN
64702010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
6471
01faa934
DN
6472 Remove subprocesses #ifdefs from term.c.
6473 * process.c (add_keyboard_wait_descriptor)
6474 (delete_keyboard_wait_descriptor): Move to common section, do
6475 nothing when subprocesses is not defined.
a628ad9d
JB
6476 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
6477 Remove subprocesses #ifdefs.
01faa934 6478
b3ffc17c
DN
6479 Convert maybe_fatal to standard C.
6480 * lisp.h (verror): Declare.
6481 * eval.c (verror): New function containing the code from ...
6482 (error): ... this. Call verror.
6483 * term.c (vfatal): New function containing the code from ...
6484 (fatal): ... this. Call vfatal.
6485 (maybe_fatal): Convert to standard C, use variable number of
6486 arguments. Declare as non-return.
6487 (init_tty): Fix maybe_fatal call.
6488
0521f580
DN
64892010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6490
6491 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
6492 (_scroll_bar_note_movement): Convert definitions to standard C.
6493 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
6494 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
6495
ebd15611
DN
64962010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6497
6498 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
6499 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
6500 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
6501 (xaw_jump_callback, xaw_scroll_callback)
6502 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
6503 (x_wm_set_size_hint, x_activate_timeout_atimer):
6504 Convert definitions to standard C.
ebd15611
DN
6505 * xmenu.c (menubar_id_to_frame, popup_get_selection)
6506 (popup_activate_callback, popup_deactivate_callback)
6507 (menu_highlight_callback, menubar_selection_callback)
6508 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
6509 (free_frame_menubar, popup_selection_callback, as)
6510 (create_and_show_popup_menu, dialog_selection_callback)
6511 (create_and_show_dialog):
6512 * xfns.c (hack_wm_protocols, x_window):
6513 * xfaces.c (x_update_menu_appearance):
6514 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
6515 (char_to_pixel_size, round_size_to_char, get_wm_shell)
6516 (set_frame_size, update_wm_hints, setup_frame_gcs)
6517 (update_various_frame_slots, update_from_various_frame_slots)
6518 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
6519 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
6520 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
6521
de06a2dd
AS
65222010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6523
a628ad9d 6524 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 6525
fc549af9
EZ
65262010-07-12 Eli Zaretskii <eliz@gnu.org>
6527
6528 * process.c (setup_process_coding_systems): Move to the part
6529 shared by non-subprocesses systems, and make its body empty when
6530 subprocesses is not defined.
6531 (close_process_descs): Move to the part shared by non-subprocesses
6532 systems.
1408902e
EZ
6533 (wait_reading_process_output) [!subprocesses]: Convert arg list to
6534 ANSI C.
fc549af9 6535
d5a3eaaf
AS
65362010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6537
6538 * editfns.c (transpose_markers): Convert old-style definition.
6539 * emacs.c (abort, shut_down_emacs, fixup_locale)
6540 (synchronize_system_time_locale)
6541 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
6542 * floatfns.c (extract_float, matherr, init_floatfns)
6543 (syms_of_floatfns): Likewise.
6544 * fns.c (make_hash_table): Likewise.
6545 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
6546 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
6547 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
6548 (ftfont_variation_glyphs): Likewise.
6549 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
6550 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
6551 * lread.c (read_filtered_event): Likewise.
6552 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
6553 * process.c (wait_reading_process_output): Likewise.
6554 * scroll.c (do_line_insertion_deletion_costs): Likewise.
6555 * search.c (search_buffer, boyer_moore): Likewise.
6556 * syntax.c (scan_sexps_forward): Likewise.
6557 * xdisp.c (try_scrolling): Likewise.
6558 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
6559 (face_at_string_position): Likewise.
6560 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
6561 * xselect.c (x_get_window_property, receive_incremental_selection)
6562 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
6563 Likewise.
6564 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
6565
6f704c76
DN
65662010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6567
ded80a25
DN
6568 * callproc.c (child_setup): Remove subprocesses conditional.
6569 Remove code dealing with SET_EMACS_PRIORITY, unused.
6570
49d937f4 6571 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
6572 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
6573
6574 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
6575 (__do_global_dtors, __main): Use void in definition.
6576 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
6577 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
6578 the only users from ...
6579 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
6580 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
6581 (HAVE_VOLATILE): Remove, unused.
6582
6f704c76
DN
6583 Convert more function definitions to standard C.
6584 * xdisp.c (window_box_edges, handle_single_display_spec)
6585 (display_string): Convert definition to standard C.
6586 * scroll.c (do_direct_scrolling, scrolling_1):
6587 * dispnew.c (allocate_matrices_for_frame_redisplay)
6588 (mirrored_line_dance):
6589 * coding.c (code_convert_string):
6590 * charset.c (map_charset_chars):
6591 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
6592 (Fregister_ccl_program, Fregister_code_conversion_map):
6593 * keyboard.c (kbd_buffer_nr_stored): Likewise.
6594 (head_table): Make static and const.
6595
e6cfa7c3
AS
65962010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6597
6598 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
6599 (PROFILING_LDFLAGS): Set from substitution.
6600 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
6601 CFLAGS last.
6602
892dd565
KH
66032010-07-12 Kenichi Handa <handa@m17n.org>
6604
6f2cdcd1
KH
6605 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
6606 (shortlisp): Likewise.
6607
892dd565
KH
6608 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
6609
6610 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
6611 of FONT_ENTITY_INDEX.
6612 (Ffont_get): If KEY is :otf and the font-object doesn't have the
6613 property, get the property value dynamically.
6614 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 6615 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 6616 return value changed.
bba3e508 6617 (syms_of_font): Adjust for the above change.
892dd565 6618
ae96d47a
AS
66192010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6620
c8fc18ee
AS
6621 * blockinput.h: Remove obsolete comment.
6622
89887d67
AS
6623 * lisp.h: Include <stddef.h>.
6624 (OFFSETOF): Don't define.
6625 (VECSIZE): Use offsetof instead of OFFSETOF.
6626 (PSEUDOVECSIZE): Likewise.
6627 * process.c (conv_sockaddr_to_lisp): Likewise.
6628 * alloc.c: Don't include <stddef.h>.
6629 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
6630
ae96d47a
AS
6631 * process.c: Remove obsolete comment.
6632
635c0aa1
CY
66332010-07-11 Chong Yidong <cyd@stupidchicken.com>
6634
6635 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
6636
a64df650
AS
66372010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6638
8966b757
AS
6639 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
6640 index, rindex.
6641 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
6642 * editfns.c (Fuser_full_name, Fformat): Likewise.
6643 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
6644 * fileio.c (Ffile_symlink_p): Likewise.
6645 * filelock.c (current_lock_owner): Likewise.
6646 * font.c (font_parse_name, font_parse_family_registry): Likewise.
6647 * fontset.c (fontset_pattern_regexp): Likewise.
6648 * lread.c (read1): Likewise.
6649 * sysdep.c (init_system_name): Likewise.
6650 * xfns.c (select_visual): Likewise.
6651 * s/hpux10-20.h (index, rindex): Don't define.
6652 * s/ms-w32.h (index): Likewise.
6653 * s/usg5-4.h: Likewise.
6654
cf237e27
AS
6655 * callproc.c (relocate_fd): Use F_DUPFD if defined.
6656
a8fe7202
AS
6657 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
6658 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
6659 (egetenv): Likewise.
6660 * doprnt.c (doprnt): Likewise.
6661 * editfns.c (set_time_zone_rule, format2): Likewise.
6662 * emacs.c (decode_env_path): Likewise.
6663 * eval.c (signal_error, error): Likewise.
6664 * insdel.c (replace_range_2): Likewise.
6665 * keyboard.c (cmd_error_internal): Likewise.
6666 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
6667 * print.c (write_string, write_string_1, print_error_message):
6668 Likewise.
6669 * vm-limit.c (warn_function, memory_warnings): Likewise.
6670 * xdisp.c (message1, message1_nolog, message_with_string)
6671 (vmessage, message, message_nolog): Likewise.
6672 * emacs.c: Remove duplicate declaration.
6673 * keyboard.h: Likewise.
6674 * lisp.h: Update prototypes.
6675
bb8e180f
AS
6676 * eval.c: Fix indentation problem.
6677
01c35094 6678 * keyboard.c: Include "process.h".
83380e65 6679
a64df650
AS
6680 * eval.c: Remove obsolete noinline declaration.
6681 * fns.c: Likewise.
6682
6a8033e1
KR
66832010-07-11 Ken Raeburn <raeburn@raeburn.org>
6684
6685 * doprnt.c (doprnt): Take a va_list argument instead of count and
6686 pointer.
6687 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 6688 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
6689 changed to take a va_list argument.
6690 (message): New variadic wrapper.
6691 (message_nolog): Now a variadic function, calling vmessage.
6692 * lisp.h: Include stdarg.h for va_list.
6693 (doprnt, error, message, message_nolog): Decls updated.
6694
462aa963
EZ
66952010-07-11 Eli Zaretskii <eliz@gnu.org>
6696
6697 * process.c (syms_of_process) <delete-exited-processes>: Define
6698 even if !subprocesses.
6699 (delete_exited_processes): Ditto.
6700
6701 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
6702 (delete_exited_processes): Don't define.
6703
48104462
CY
67042010-07-10 Chong Yidong <cyd@stupidchicken.com>
6705
6706 * frame.c (make_frame): Initialize menu_bar_lines and
6707 tool_bar_lines members.
bba3e508
SM
6708 (make_initial_frame, make_terminal_frame):
6709 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
6710
6711 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
6712
f388c88a
EZ
67132010-07-10 Eli Zaretskii <eliz@gnu.org>
6714
6715 * process.c: Reshuffle #include's. Condition some of the global
6716 and static variables on `subprocesses'.
6717 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
6718 Leave only one implementation.
6719 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
6720 (kill_buffer_processes, Flist_system_processes)
6721 (Fprocess_attributes, init_process, syms_of_process): Unify the
6722 implementations for with subprocesses and without them.
6723
723f5a07
J
67242010-07-09 Jan Djärv <jan.h.d@swipnet.se>
6725
6726 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
6727 correct size for Motif.
6728 (free_frame_menubar): Call x_set_window_size to update frame size.
6729
6730 * xfns.c (x_window): Set borderWidth to 0 for pane and
6731 EmacsFrame. Frame size calculation is wrong otherwise.
6732
2536a4b7
MA
67332010-07-09 Michael Albinus <michael.albinus@gmx.de>
6734
6735 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
6736 allows to suppress errors when polling in Emacs' main loop.
6737 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
6738 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
6739 (Fdbus_method_error_internal, Fdbus_send_signal)
6740 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
6741 (Fdbus_register_method): Use it. (Bug#6579)
6742
5842a27b
DN
67432010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6744
6745 * alloc.c: Convert DEFUNs to standard C.
6746 * buffer.c:
6747 * bytecode.c:
6748 * callint.c:
6749 * callproc.c:
6750 * casefiddle.c:
6751 * casetab.c:
6752 * category.c:
6753 * character.c:
6754 * charset.c:
6755 * chartab.c:
6756 * cmds.c:
6757 * coding.c:
6758 * composite.c:
6759 * data.c:
6760 * dbusbind.c:
6761 * dired.c:
6762 * dispnew.c:
6763 * doc.c:
6764 * dosfns.c:
6765 * editfns.c:
6766 * emacs.c:
6767 * eval.c:
6768 * fileio.c:
6769 * filelock.c:
6770 * floatfns.c:
6771 * fns.c:
6772 * font.c:
6773 * fontset.c:
6774 * frame.c:
6775 * fringe.c:
6776 * image.c:
6777 * indent.c:
6778 * insdel.c:
6779 * keyboard.c:
6780 * keymap.c:
6781 * lread.c:
6782 * macros.c:
6783 * marker.c:
6784 * menu.c:
6785 * minibuf.c:
6786 * msdos.c:
6787 * nsfns.m:
6788 * nsmenu.m:
6789 * nsselect.m:
6790 * print.c:
6791 * process.c:
6792 * search.c:
6793 * sound.c:
6794 * syntax.c:
6795 * term.c:
6796 * terminal.c:
6797 * textprop.c:
6798 * undo.c:
6799 * w16select.c:
6800 * w32console.c:
6801 * w32fns.c:
6802 * w32font.c:
6803 * w32menu.c:
6804 * w32proc.c:
6805 * w32select.c:
6806 * window.c:
6807 * xdisp.c:
6808 * xfaces.c:
6809 * xfns.c:
6810 * xmenu.c:
6811 * xselect.c:
6812 * xsettings.c:
6813 * xsmfns.c: Likewise.
6814
d568829b
EZ
68152010-07-08 Eli Zaretskii <eliz@gnu.org>
6816
6817 * process.c (kbd_is_on_hold, hold_keyboard_input)
6818 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
6819
52214050
J
68202010-07-08 Jan Djärv <jan.h.d@swipnet.se>
6821
6822 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
6823 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
6824 unless USE_LUCID.
6825
313d9eb2
DN
68262010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6827
a628ad9d
JB
6828 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
6829 declaration.
d8825aa3 6830
295d0d8f
DN
6831 Clean up include guards.
6832 * tparam.c: Remove include guards for config.h, string.h and code
6833 that assumes #ifndef emacs.
6834 * termcap.c:
6835 * unexalpha.c:
6836 * sysdep.c:
6837 * filemode.c:
6838 * filelock.c:
6839 * bidi.c: Likewise.
6840
49d9e6b0
DN
6841 Remove prefix-args.c
6842 * prefix-args.c: Remove file.
6843 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
6844 * Makefile.in (temacs${EXEEXT}): Remove references to
6845 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
6846 (mostlyclean): Remove reference to prefix-args.
6847 (prefix-args): Remove.
6848
313d9eb2
DN
6849 Simplify cstart_of_data, start_of_code and related code.
6850 * mem-limits.h: Remove !emacs and _LIBC conditional code.
6851 (start_of_data): Merge into start_of_data function.
6852 * sysdep.c (start_of_text): Remove. Move simplified versions of
6853 it in the only users: unexaix.c and unexec.c.
6854 (read_input_waiting): Remove local declaration of quit_char.
6855 (start, etext): Remove declarations.
6856 (start_of_data): Merge with the version in mem-limits.h and move
6857 to vm-limits.c.
6858 * vm-limit.c (start_of_data): Merged and simplified version of the
6859 code formerly in mem-limits.h and sysdep.c.
6860 * unexec.c (start): New declaration, moved from sysdep.c.
6861 (start_of_text): Simplified version of the code formerly in sysdep.c.
6862 * unexaix.c (start_of_text): Simplified version of the code
6863 formerly in sysdep.c.
6864 * m/alpha.h (HAVE_TEXT_START): Remove.
6865 (TEXT_START): Move ...
6866 * unexalpha.c (TEXT_START): ... here.
6867 * s/hpux10-20.h (TEXT_START): Remove.
6868 * s/darwin.h (TEXT_START):
6869 * m/mips.h (TEXT_START):
6870 * m/macppc.h (HAVE_TEXT_START):
6871 * m/m68k.h (TEXT_START):
6872 * m/iris4d.h (TEXT_START):
6873 * m/intel386.h (TEXT_START):
6874 * m/ibmrs6000.h (TEXT_START):
6875 * m/ia64.h (HAVE_TEXT_START):
6876 * s/msdos.h (TEXT_START): Likewise.
6877
72af86bd
AS
68782010-07-07 Andreas Schwab <schwab@linux-m68k.org>
6879
6880 * alloc.c (overrun_check_malloc, overrun_check_realloc)
6881 (overrun_check_free, xstrdup, allocate_string)
6882 (allocate_string_data, compact_small_strings, Fmake_string)
6883 (make_unibyte_string, make_multibyte_string)
6884 (make_string_from_bytes, make_specified_string, make_float)
6885 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
6886 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
6887 memcpy, memmove, memset, memcmp.
6888 * atimer.c (start_atimer, set_alarm): Likewise.
6889 * buffer.c (clone_per_buffer_values, report_overlay_modification)
6890 (mmap_realloc, init_buffer_once): Likewise.
6891 * callint.c (Fcall_interactively): Likewise.
6892 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
6893 (getenv_internal_1): Likewise.
6894 * casefiddle.c (casify_object): Likewise.
6895 * ccl.c (ccl_driver): Likewise.
6896 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
6897 * charset.c (load_charset_map_from_file)
6898 (load_charset_map_from_file, load_charset_map_from_vector)
6899 (Fdefine_charset_internal): Likewise.
6900 * cm.c (Wcm_clear): Likewise.
6901 * coding.c (decode_eol, decode_coding_object)
6902 (Fset_coding_system_priority, make_subsidiaries): Likewise.
6903 * data.c (Faset): Likewise.
6904 * dired.c (directory_files_internal, file_name_completion_stat):
6905 Likewise.
6906 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
6907 (clear_glyph_row, copy_row_except_pointers)
6908 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
6909 (save_current_matrix, restore_current_matrix)
6910 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
6911 (mirror_line_dance, scrolling_window): Likewise.
6912 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
6913 Likewise.
6914 * doprnt.c (doprnt): Likewise.
6915 * editfns.c (Fuser_full_name, make_buffer_string_both)
6916 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
6917 * emacs.c (sort_args): Likewise.
6918 * eval.c (Fapply, Ffuncall): Likewise.
6919 * fileio.c (Ffile_name_directory, make_temp_name)
6920 (Fexpand_file_name, search_embedded_absfilename)
6921 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
6922 (auto_save_error): Likewise.
6923 * fns.c (Fstring_equal, Fcopy_sequence, concat)
6924 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
6925 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
6926 (Fmake_hash_table): Likewise.
6927 * fringe.c (Fdefine_fringe_bitmap): Likewise.
6928 * ftfont.c (ftfont_text_extents): Likewise.
6929 * getloadavg.c (getloadavg): Likewise.
6930 * image.c (define_image_type, make_image, make_image_cache)
6931 (x_create_x_image_and_pixmap, xbm_image_p)
6932 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
6933 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
6934 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
6935 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
6936 (tiff_image_p, tiff_read_from_memory, gif_image_p)
6937 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
6938 Likewise.
6939 * indent.c (scan_for_column, compute_motion): Likewise.
6940 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
6941 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
6942 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
6943 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
6944 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
6945 (store_user_signal_events, menu_bar_items, tool_bar_items)
6946 (process_tool_bar_item, append_tool_bar_item)
6947 (read_char_minibuf_menu_prompt, read_key_sequence)
6948 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
6949 Likewise.
6950 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
6951 Likewise.
6952 * lisp.h (STRING_COPYIN): Likewise.
6953 * lread.c (Fload, read1, oblookup): Likewise.
6954 * msdos.c (Frecent_doskeys): Likewise.
6955 * nsfns.m (Fx_create_frame): Likewise.
6956 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
6957 Likewise.
6958 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
6959 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
6960 Likewise.
6961 * nsmenu.m (ns_update_menubar): Likewise.
6962 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
6963 * print.c (print_unwind, printchar, strout, print_string)
6964 (print_error_message): Likewise.
6965 * process.c (conv_lisp_to_sockaddr, set_socket_option)
6966 (Fmake_network_process, Fnetwork_interface_list)
6967 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
6968 (init_process): Likewise.
6969 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
6970 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
6971 Likewise.
6972 * scroll.c (do_scrolling, do_direct_scrolling)
6973 (scrolling_max_lines_saved): Likewise.
6974 * search.c (search_buffer, wordify, Freplace_match): Likewise.
6975 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
6976 * syntax.c (skip_chars, skip_syntaxes): Likewise.
6977 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
6978 (emacs_set_tty): Likewise.
6979 * term.c (encode_terminal_code, calculate_costs)
6980 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
6981 Likewise.
6982 * termcap.c (tgetst1, gobble_line): Likewise.
6983 * termhooks.h (EVENT_INIT): Likewise.
6984 * tparam.c (tparam1): Likewise.
6985 * unexalpha.c (unexec): Likewise.
6986 * unexec.c (write_segment): Likewise.
6987 * unexmacosx.c (unexec_write_zero): Likewise.
6988 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
6989 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
6990 * w32font.c (w32font_list_family, w32font_text_extents)
6991 (w32font_list_internal, w32font_match_internal)
6992 (w32font_open_internal, compute_metrics, Fx_select_font):
6993 Likewise.
6994 * w32menu.c (set_frame_menubar, add_menu_item)
6995 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
6996 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
6997 * w32uniscribe.c (uniscribe_list_family): Likewise.
6998 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
6999 * window.c (make_window, replace_window, set_window_buffer)
7000 (Fsplit_window): Likewise.
7001 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7002 (add_to_log, message3, x_consider_frame_title)
7003 (append_space_for_newline, extend_face_to_end_of_line)
7004 (decode_mode_spec_coding, init_glyph_string): Likewise.
7005 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7006 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7007 (face_attr_equal_p, make_realized_face, make_face_cache)
7008 (free_realized_faces, lookup_named_face, smaller_face)
7009 (face_with_height, lookup_derived_face)
7010 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7011 (Finternal_set_font_selection_order, realize_default_face)
7012 (compute_char_face, face_at_buffer_position)
7013 (face_for_overlay_string, face_at_string_position, merge_faces):
7014 Likewise.
7015 * xfns.c (xic_create_fontsetname, Fx_create_frame)
7016 (Fx_window_property, x_create_tip_frame)
7017 (Fx_backspace_delete_keys_p): Likewise.
7018 * xfont.c (xfont_list, xfont_match, xfont_list_family)
7019 (xfont_text_extents): Likewise.
7020 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7021 * xrdb.c (magic_file_p, x_get_resource): Likewise.
7022 * xselect.c (x_queue_event, x_get_window_property)
7023 (receive_incremental_selection): Likewise.
7024 * xsmfns.c (x_session_check_input): Likewise.
7025 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7026 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7027 Likewise.
7028 * character.h (BCOPY_SHORT): Removed.
7029 * config.in: Regenerate.
7030 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
7031 * emacs.c (main) [PROFILING]: Don't declare
7032 dump_opcode_frequencies.
7033 * lisp.h (safe_bcopy): Remove declaration.
7034 (memset) [!HAVE_MEMSET]: Declare.
7035 (memcpy) [!HAVE_MEMCPY]: Likewise.
7036 (memmove) [!HAVE_MEMMOVE]: Likewise.
7037 (memcmp) [!HAVE_MEMCMP]: Likewise.
7038 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
7039 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
7040 Don't define.
7041 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
7042 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
7043 (BCOPY_DOWNWARD_SAFE): Don't define.
7044 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
7045 (memcpy) [!HAVE_MEMCPY]: Define.
7046 (memmove) [!HAVE_MEMMOVE]: Define.
7047 (memcmp) [!HAVE_MEMCMP]: Define.
7048
cb768704
J
70492010-07-07 Jan Djärv <jan.h.d@swipnet.se>
7050
7051 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
7052 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7053 New functions.
cb768704
J
7054 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
7055 select on empty input mask.
7056 (init_process): Initialize kbd_is_on_hold to 0.
7057
7058 * process.h (hold_keyboard_input, unhold_keyboard_input)
7059 (kbd_on_hold_p): Declare.
7060
7061 * keyboard.c (input_available_signal): Declare.
7062 (kbd_buffer_nr_stored): New function.
7063 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
7064 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
7065 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
7066 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
7067 (tty_read_avail_input): If input is on hold, return.
7068 Don't read more that free slots in kbd_buffer (Bug#6571).
7069
3a8ce822
EZ
70702010-07-07 Eli Zaretskii <eliz@gnu.org>
7071
7072 * msdos.h:
7073 * msdos.c:
7074 * dosfns.c:
7075 * w16select.c: Convert function definitions to ANSI C.
7076
a628ad9d
JB
7077 * msdos.h (ctrl_break_func, install_ctrl_break_check):
7078 Remove unused prototypes.
3a8ce822 7079
cf84bb53
JB
70802010-07-07 Juanma Barranquero <lekktu@gmail.com>
7081
7082 * coding.c, sysdep.c: Convert some more functions to standard C.
7083
1a4990fb
JB
70842010-07-07 Juanma Barranquero <lekktu@gmail.com>
7085
7086 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
7087 (encode_coding_object): Use SPECPDL_INDEX.
7088 (syms_of_coding): Use DOS_NT.
7089
c0f2f16b
DN
70902010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
7091
48fb6855
DN
7092 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
7093
c0f2f16b
DN
7094 Make the function member of Lisp_Subr use standard C prototypes.
7095 * lisp.h (struct Lisp_Subr): Use a union for the function member.
7096 (DECL_ALIGN): Add a cast for the function.
7097 * eval.c (Feval, Ffuncall): Use the proper type for each type
7098 function call.
7099
67aecef9
CY
71002010-07-06 Chong Yidong <cyd@stupidchicken.com>
7101
7102 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
7103 fringe face id, so face-remapping-alist works (Bug#6091).
7104
b56ceb92
JB
71052010-07-06 Juanma Barranquero <lekktu@gmail.com>
7106
7107 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
7108 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
7109 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
7110
7af07b96
AS
71112010-07-06 Andreas Schwab <schwab@linux-m68k.org>
7112
7113 * xterm.c (x_get_keysym_name): Change type of parameter to int.
7114 * lisp.h: Declare x_get_keysym_name.
7115 * keyboard.c (modify_event_symbol): Don't declare
7116 x_get_keysym_name here.
7117
69e24e34
DN
71182010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
7119
7120 * ecrt0.c: Revert conversion to standard C.
7121
d3da34e0 71222010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
7123
7124 * vm-limit.c (memory_warnings):
7125 * keyboard.c (modify_event_symbol):
7126 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
7127 (round2, emacs_rint):
7128 * process.c (send_process, old_sigpipe): Convert function
7129 definitions and declarations to standard C.
7130
71312010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
7132
7133 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
7134 * xdisp.c: Convert function definitions to standard C.
7135
7136 * cm.c (cmputc): Arg C is now int, not char.
7137 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
7138
00be444c
J
71392010-07-05 James Cloos <cloos@jhcloos.com>
7140
7141 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
7142
7143 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
7144 _NET_WM_ICON_NAME atoms.
7145
7146 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
7147 and _NET_WM_ICON_NAME properties, too, matching what is
7148 done in the Gtk+ case.
7149
e4c8d29a
J
71502010-07-05 Jan Djärv <jan.h.d@swipnet.se>
7151
ff919460
J
7152 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
7153
e4c8d29a
J
7154 * xsmfns.c (SSDATA): New macro.
7155 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
7156 passed to strlen/strcpy/strcat.
bba3e508
SM
7157 (create_client_leader_window): Surround with #ifndef USE_GTK.
7158 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
7159
7160 * xsettings.c (something_changedCB, parse_settings)
7161 (apply_xft_settings): Reformat prototype.
7162 (something_changedCB, init_gconf): Remove unused variable i.
7163 (read_settings): Remove unused variable long_len.
7164
7165 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
7166 (xg_get_image_for_pixmap, create_dialog)
7167 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
7168 (menuitem_highlight_callback, make_menu_item)
7169 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
7170 (xg_create_scroll_bar, xg_update_scrollbar_pos)
7171 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
7172 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
7173 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
7174 (xg_tool_bar_item_expose_callback): Reformat prototype.
7175 (xg_update_menubar): GList *group => GSList *group.
7176 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
7177 before use.
7178 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
7179 to GTK_IMAGE (wimage).
7180
dd4c5104
DN
71812010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7182
898b4c5c
DN
7183 * atimer.c: Use "" instead of <> for local includes for
7184 consistency with the rest of the code.
7185
dd4c5104
DN
7186 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
7187 * xrdb.c (get_system_name):
7188 * window.c (shrink_windows):
7189 * syntax.c (forw_comment):
7190 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
7191 (ins_del_costs):
7192 * mem-limits.h (start_of_data):
7193 * lread.c (readevalloop):
7194 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
7195 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
7196 * frame.c (x_get_focus_frame):
7197 * floatfns.c (fmod_float):
7198 * fileio.c (choose_write_coding_system):
7199 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
7200 (malloc_initialize_hook, sort_args, synchronize_locale):
7201 * doprnt.c (doprnt):
7202 * dired.c (compile_pattern):
7203 * data.c (fmod_float):
7204 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
7205 (map_char_table_for_charset):
7206 * charset.c (define_charset_internal):
7207 * alloc.c (Fgarbage_collect): Convert declarations or definitions
7208 to standard C.
7209
9a39b306 72102010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 7211 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
7212
7213 * lread.c (read1): Fix up last change to not mess up `c'.
7214
e6cb2cbb
JB
72152010-07-04 Juanma Barranquero <lekktu@gmail.com>
7216
7217 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
7218
438105ed
JB
72192010-07-04 Juanma Barranquero <lekktu@gmail.com>
7220
7221 Fix prototypes.
7222
e5447b22 7223 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 7224 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
7225 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
7226 arg, as required by internal_condition_case_1.
dcc7404b 7227 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
7228 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
7229 (analyse_first): Fix "const const".
e5447b22 7230 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 7231 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 7232 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 7233
971de7fb
DN
72342010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
7235
7236 * alloc.c: Convert function definitions to standard C.
7237 * atimer.c:
7238 * bidi.c:
7239 * bytecode.c:
7240 * callint.c:
7241 * callproc.c:
7242 * casefiddle.c:
7243 * casetab.c:
7244 * category.c:
7245 * ccl.c:
7246 * character.c:
7247 * charset.c:
7248 * chartab.c:
7249 * cmds.c:
7250 * coding.c:
7251 * composite.c:
7252 * data.c:
7253 * dbusbind.c:
7254 * dired.c:
7255 * dispnew.c:
7256 * doc.c:
7257 * doprnt.c:
7258 * ecrt0.c:
7259 * editfns.c:
7260 * fileio.c:
7261 * filelock.c:
7262 * filemode.c:
7263 * fns.c:
7264 * font.c:
7265 * fontset.c:
7266 * frame.c:
7267 * fringe.c:
7268 * ftfont.c:
7269 * ftxfont.c:
7270 * gtkutil.c:
7271 * indent.c:
7272 * insdel.c:
7273 * intervals.c:
7274 * keymap.c:
7275 * lread.c:
7276 * macros.c:
7277 * marker.c:
7278 * md5.c:
7279 * menu.c:
7280 * minibuf.c:
7281 * prefix-args.c:
7282 * print.c:
7283 * ralloc.c:
7284 * regex.c:
7285 * region-cache.c:
7286 * scroll.c:
7287 * search.c:
7288 * sound.c:
7289 * strftime.c:
7290 * syntax.c:
7291 * sysdep.c:
7292 * termcap.c:
7293 * terminal.c:
7294 * terminfo.c:
7295 * textprop.c:
7296 * tparam.c:
7297 * undo.c:
7298 * unexelf.c:
7299 * window.c:
7300 * xfaces.c:
7301 * xfns.c:
7302 * xfont.c:
7303 * xftfont.c:
7304 * xgselect.c:
7305 * xmenu.c:
7306 * xrdb.c:
7307 * xselect.c:
7308 * xsettings.c:
7309 * xsmfns.c:
7310 * xterm.c: Likewise.
7311
ae492bec
EZ
73122010-07-03 Eli Zaretskii <eliz@gnu.org>
7313
76ea4cc9
EZ
7314 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
7315 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
7316 `reverse' is specified in the frame parameters.
7317 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
7318 internal-set-lisp-face-attribute. Initialize screen colors from
7319 initial_screen_colors[] when f->default_face_done_p is zero,
7320 instead of depending on being called with default-frame-alist as
7321 the alist argument.
7322
7323 * xfaces.c (update_face_from_frame_parameter): Move out of
7324 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
7325 with HAVE_WINDOW_SYSTEM.
7326
1e6255ae
EZ
7327 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
7328 to menu-bar-mode, if not set in the frame parameters or in
7329 default-frame-alist.
7330
ae492bec
EZ
7331 * w32console.c (sys_tputs): Adjust argument list to prototype in
7332 term.c.
7333
3a35a84c
JB
73342010-07-03 Juanma Barranquero <lekktu@gmail.com>
7335
7336 * lisp.h (memory_warnings): Fix prototype.
7337
7338 * cm.h (evalcost): Fix prototype.
7339
7340 * cm.c (evalcost): Fix arg type.
7341
c532d349
DN
73422010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7343
7344 * term.c (term_clear_mouse_face, Fidentity):
7345 * syssignal.h (signal_handler_t):
7346 * lisp.h (memory_warnings):
7347 * coding.h (preferred_coding_system):
7348 * cm.h (evalcost):
7349 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
7350
c0b36d46
EZ
73512010-07-02 Eli Zaretskii <eliz@gnu.org>
7352
7353 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
7354 from prototypes.
7355
7356 * msdos.h (load_pixmap): Don't define away.
7357
383e0970
J
73582010-07-02 Jan Djärv <jan.h.d@swipnet.se>
7359
f57e2426
J
7360 * lisp.h:
7361 * atimer.h: Remove define for P_.
7362
7363 * alloc.c: Remove __P and P_ from .c and .m files.
7364 * atimer.c:
7365 * buffer.c:
7366 * callint.c:
7367 * category.c:
7368 * charset.c:
7369 * chartab.c:
7370 * cm.c:
7371 * coding.c:
7372 * composite.c:
7373 * data.c:
7374 * dired.c:
7375 * dispnew.c:
7376 * doc.c:
7377 * editfns.c:
7378 * emacs.c:
7379 * eval.c:
7380 * fileio.c:
7381 * filelock.c:
7382 * fns.c:
7383 * font.c:
7384 * fontset.c:
7385 * frame.c:
7386 * ftfont.c:
7387 * ftxfont.c:
7388 * gmalloc.c:
7389 * gtkutil.c:
7390 * image.c:
7391 * indent.c:
7392 * intervals.c:
7393 * keyboard.c:
7394 * keymap.c:
7395 * lread.c:
7396 * marker.c:
7397 * menu.c:
7398 * minibuf.c:
7399 * print.c:
7400 * process.c:
7401 * scroll.c:
7402 * search.c:
7403 * sound.c:
7404 * strftime.c:
7405 * syntax.c:
7406 * sysdep.c:
7407 * term.c:
7408 * terminal.c:
7409 * textprop.c:
7410 * unexalpha.c:
7411 * w32console.c:
7412 * w32fns.c:
7413 * w32font.c:
7414 * w32menu.c:
7415 * w32term.c:
7416 * w32uniscribe.c:
7417 * window.c:
7418 * xdisp.c:
7419 * xfaces.c:
7420 * xfns.c:
7421 * xfont.c:
7422 * xftfont.c:
7423 * xmenu.c:
7424 * xselect.c:
7425 * xterm.c: Likewise.
7426
383e0970 7427 Remove P_ and __P macros.
f57e2426
J
7428 * atimer.h: Remove P_ and __P macros.
7429 * buffer.h:
383e0970
J
7430 * category.h:
7431 * ccl.h:
7432 * character.h:
7433 * charset.h:
7434 * cm.h:
7435 * coding.h:
7436 * composite.h:
7437 * dispextern.h:
7438 * disptab.h:
9e892c8d 7439 * dosfns.h:
383e0970
J
7440 * font.h:
7441 * fontset.h:
7442 * frame.h:
7443 * gtkutil.h:
7444 * indent.h:
7445 * intervals.h:
7446 * keyboard.h:
7447 * keymap.h:
7448 * lisp.h:
7449 * macros.h:
7450 * md5.h:
7451 * menu.h:
7452 * msdos.h:
7453 * nsterm.h:
7454 * puresize.h:
7455 * region-cache.h:
7456 * syntax.h:
7457 * syssignal.h:
7458 * systime.h:
7459 * termhooks.h:
9e892c8d 7460 * w32font.h:
383e0970
J
7461 * w32term.h:
7462 * widget.h:
7463 * window.h:
7464 * xgselect.h:
7465 * xsettings.h:
7466 * xterm.h: Likewise.
7467
98601119
DN
74682010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7469
d9170db5
DN
7470 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
7471
98601119
DN
7472 Cleanup old code.
7473 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
7474 * syssignal.h: Remove code for Lynx, not supported anymore.
7475 * vm-limit.c: Remove unused code the depends on emacs not being
7476 defined and NO_LIM_DATA being defined.
7477 * mem-limits.h: Remove dead code.
7478
1f984e12
J
74792010-07-01 Jan Djärv <jan.h.d@swipnet.se>
7480
c49d071a
J
7481 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
7482
9d5405ec
J
7483 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
7484 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
7485
7a18115b
J
7486 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
7487 parameters, they are already absolute.
7488
a628ad9d
JB
7489 * nsterm.m (x_set_window_size, initFrameFromEmacs):
7490 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 7491
a628ad9d 7492 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 7493
a628ad9d
JB
7494 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
7495 Update FRAME_TOOLBAR_HEIGHT.
581a8100 7496
a628ad9d
JB
7497 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
7498 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 7499
c1ef4455
CY
75002010-06-30 Chong Yidong <cyd@stupidchicken.com>
7501
bba3e508
SM
7502 * frame.c (get_future_frame_param, Fmake_terminal_frame):
7503 Don't check default-frame-alist.
c1ef4455 7504
ce8f5a9a
AS
75052010-06-30 Andreas Schwab <schwab@linux-m68k.org>
7506
7507 * process.c (create_process): Avoid using invalid file descriptors.
7508
7509 * callproc.c (child_setup): Avoid closing a file descriptor twice.
7510
bf935339
J
75112010-06-30 Jan Djärv <jan.h.d@swipnet.se>
7512
7513 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
7514 Improve documentation. Return font regardless of use_system_font.
7515 (syms_of_xsettings): Improve documentation for font-use-system-font.
7516
7c33a057
CY
75172010-07-10 Chong Yidong <cyd@stupidchicken.com>
7518
2ec1b5ee
CY
7519 * xfaces.c (realize_face): Garbage the frame if a face is removed
7520 (Bug#6593).
7521
75222010-07-05 Andreas Schwab <schwab@linux-m68k.org>
7523
7524 * keyboard.c: Remove duplicate <setjmp.h>.
7525 (read_key_sequence): Remove volatile qualifiers.
7526
75272010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7528
7529 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
7530 (struct glyph_row): New members left_fringe_offset and
7531 right_fringe_offset.
7532
7533 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
7534 specially.
7535 * w32term.c (w32_draw_fringe_bitmap): Likewise.
7536 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
7537
7538 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 7539 Take account of bitmap offset.
2ec1b5ee
CY
7540 (draw_window_fringes): Take account of window vscroll.
7541 (update_window_fringes): Likewise. Extend top-aligned top indicator
7542 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
7543 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
7544 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
7545
75462010-07-04 Juanma Barranquero <lekktu@gmail.com>
7547
7548 * w32fns.c (Qtooltip): Declare.
7549 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
7550
75512010-07-03 Jan Djärv <jan.h.d@swipnet.se>
7552
7553 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
7554 grab on just Press (Bug#6499).
7555
75562010-07-02 Chong Yidong <cyd@stupidchicken.com>
7557
7558 * frame.c (Qtooltip): New var.
7559 (delete_frame): Use it. Fix faulty if statement. Don't update
7560 mode line for tooltip frames. Suggested by Martin Rudalics.
7561
7562 * xfns.c (x_create_tip_frame):
7563 * w32fns.c (x_create_tip_frame): Use it.
7564
75652010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
7566
7567 * xftfont.c (xftfont_open): Check font width one by one also when
7568 spacing is dual.
7569
7570 * ftfont.c (ftfont_open): Ditto.
7571
6259c2ec
GM
75722010-06-30 Glenn Morris <rgm@gnu.org>
7573
a46007e9
GM
7574 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
7575
6259c2ec
GM
7576 * Makefile.in (CANNOT_DUMP): Update for configure name change.
7577
7578 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
7579 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
7580 * s/darwin.h (SYSTEM_MALLOC):
7581 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
7582
5d1d3d04
J
75832010-06-29 Jan Djärv <jan.h.d@swipnet.se>
7584
7585 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
7586 (ns_get_screen): Don't assign integer to f.
7587 (Fx_display_color_cells): Declarations before statements.
7588
e547b051
J
75892010-06-28 Jan Djärv <jan.h.d@swipnet.se>
7590
5fc8e5bc
J
7591 * xfns.c (x_default_font_parameter): Remove got_from_system
7592 (Bug#6526).
7593
e547b051 7594 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
7595 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
7596 New defines based on what configure finds.
e547b051
J
7597
7598 * xterm.c (XTflash): Use gtk_widget_get_window.
7599 (xg_scroll_callback): Use gtk_adjustment_get_upper and
7600 gtk_adjustment_get_page_size.
7601 (handle_one_xevent): Use gtk_widget_get_mapped.
7602 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
7603 messages.
7604
7605 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
7606
7607 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
7608 HAVE_GTK_FILE_SELECTION_NEW.
7609
bba3e508
SM
7610 * gtkutil.c (xg_display_open, xg_display_close):
7611 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
7612 (xg_display_open): Return type is void.
7613 (gtk_widget_set_has_window)
7614 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
7615 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
7616 (gtk_adjustment_set_page_increment)
7617 (gtk_adjustment_get_step_increment): #define these if not found
7618 by configure.
7619 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
7620 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
7621 Use gtk_widget_get_window.
e547b051
J
7622 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
7623 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
7624 (create_dialog): Use gtk_dialog_get_action_area and
7625 gtk_dialog_get_content_area.
7626 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
7627 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
7628 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
7629 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
7630 Use g_object_ref and g_object_unref.
7631 (xg_update_menu_item, xg_tool_bar_menu_proxy):
7632 Use gtk_widget_get_sensitive.
e547b051
J
7633 (xg_update_submenu): Use remove_submenu.
7634 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
7635 properties instead to get old x and y position.
7636 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
7637 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 7638 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
7639 (xg_get_tool_bar_widgets): New function.
7640 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
7641 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
7642 (toolbar_set_orientation): New #define based on if configure
7643 finds gtk_orientable_set_orientation.
7644 (xg_create_tool_bar): Call toolbar_set_orientation.
7645 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
7646 instead of gtk_box_pack_start_defaults.
7647
b9229673
CY
76482010-06-28 Chong Yidong <cyd@stupidchicken.com>
7649
7650 * cmds.c (Fdelete_backward_char): Move into Lisp.
7651
bbc803b0
DN
76522010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7653
7654 * s/freebsd.h (BSD4_2): Remove redundant definition.
7655 bsd-common.h defines it already.
7656
6431f2e6
CY
76572010-06-27 Chong Yidong <cyd@stupidchicken.com>
7658
7659 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
7660 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
7661 tool-bar-mode, which are now set using these X resources at
7662 startup, to determine the defaults (Bug#2249).
7663
7664 * w32fns.c (Fx_create_frame):
7665 * nsfns.m (Fx_create_frame): Likewise.
7666
7667 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
7668
8c079ebb
JB
76692010-06-24 Juanma Barranquero <lekktu@gmail.com>
7670
7671 * gtkutil.c (xg_update_scrollbar_pos):
7672 Avoid C99 mid-block variable declaration.
7673
e9b7ab96
JD
76742010-06-22 Jan Djärv <jan.h.d@swipnet.se>
7675
bc869eca
JD
7676 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
7677
2b7e356a 7678 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
7679
7680 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
7681 if height is less than scroll bar min size.
7682 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
7683
e9b7ab96
JD
7684 * xfns.c (x_default_font_parameter): Try to open font from system
7685 before using it (bug#6478). Rename got_from_gconf to got_from_system.
7686
a628ad9d 76872010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
7688
7689 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
7690
70c4cfbb
EZ
76912010-06-20 Eli Zaretskii <eliz@gnu.org>
7692
7693 * xdisp.c (try_scrolling): When scroll-conservatively is set to
7694 most-positive-fixnum, be extra accurate when scrolling window
7695 start, to avoid missing the cursor line.
7696
ad5a12b5
EZ
76972010-06-19 Eli Zaretskii <eliz@gnu.org>
7698
7699 * xdisp.c (try_scrolling): Compute the limit for searching point
7700 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
7701 of 10 screen lines.
7702 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
7703 and
7704 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
7705 for details.
7706
2a64315a 77072010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
7708
7709 * editfns.c (Fbyte_to_string): Pacify compiler.
7710
288cf4e9
SM
77112010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
7712
7713 * lread.c (read1): Phase out old-style backquotes a bit more.
7714
6e6e5760
EZ
77152010-06-12 Eli Zaretskii <eliz@gnu.org>
7716
cbc4fd20
EZ
7717 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
7718 bidimirror.h.
7719
7720 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
7721
317fbf33
EZ
7722 * bidi.c (bidi_initialize): Remove explicit initialization of
7723 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 7724 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 7725 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
7726
7727 * biditype.h: New file.
7728
cbc4fd20
EZ
7729 * bidimirror.h: New file.
7730
6e6e5760
EZ
7731 * window.c (syms_of_window): Doc fix (bug#6409).
7732
4176cba2
RF
77332010-06-12 Romain Francoise <romain@orebokech.com>
7734
7735 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
7736 ediff-hook.
7737
cb4bfcb5
GM
77382010-06-10 Glenn Morris <rgm@gnu.org>
7739
64c60c2f
GM
7740 * editfns.c (Fbyte_to_string): Pacify compiler.
7741
cb4bfcb5
GM
7742 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
7743
2ec1b5ee
CY
77442010-06-26 Andreas Schwab <schwab@linux-m68k.org>
7745
7746 * alloc.c (Fmake_byte_code): Don't access undefined argument
7747 (Bug#6517).
7748
77492010-06-25 Chong Yidong <cyd@stupidchicken.com>
7750
7751 * xdisp.c (next_element_from_image): Ensure that after-strings are
7752 read the next time we hit handle_stop (Bug#1336).
7753
77542010-06-23 Andreas Schwab <schwab@linux-m68k.org>
7755
7756 * lread.c (read1): Signal error if #s is not followed by paren.
7757
77582010-06-19 Chong Yidong <cyd@stupidchicken.com>
7759
7760 * image.c (free_image): Mark frame as garbaged (Bug#6426).
7761
7762 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
7763
77642010-06-15 Glenn Morris <rgm@gnu.org>
7765
7766 * editfns.c (Fbyte_to_string): Pacify compiler.
7767
e454a4a3
SM
77682010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
7769
7770 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
7771 Check `object's type before accessing its guts.
7772
c1b1acc2
DN
77732010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
7774
7775 * s/usg5-4.h: Fix previous change.
7776 Suggested by Lawrence Mitchell <wence@gmx.li>
7777
657d4c0b
AS
77782010-06-08 Andreas Schwab <schwab@linux-m68k.org>
7779
7780 * minibuf.c (Fall_completions): Add more checks.
7781
9b27fd9f
JB
77822010-06-08 Juanma Barranquero <lekktu@gmail.com>
7783
7784 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
7785
a99ebb40
DN
77862010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
7787
d7c5d87d
DN
7788 * lread.c (X_OK): Remove, unused.
7789
0263a941
DN
7790 * dispnew.c: Remove obsolete comment.
7791
a99ebb40
DN
7792 Remove INCLUDED_FCNTL.
7793 * xterm.c (INCLUDED_FCNTL):
7794 * callproc.c (INCLUDED_FCNTL):
7795 * alloc.c (INCLUDED_FCNTL):
7796 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
7797 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
7798
13b5221f
MR
77992010-06-07 Martin Rudalics <rudalics@gmx.at>
7800
7801 * window.c (Fselect_window): Move `record_buffer' up to the
7802 beginning of this function, so the buffer gets recorded
7803 even if the selected window does not change.
7804 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
7805
5220357f
JB
78062010-06-07 Juanma Barranquero <lekktu@gmail.com>
7807
7808 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
7809 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
7810
3085237c
DN
78112010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
7812
7813 Remove BSTRING related code, all platforms define it.
7814 * s/usg5-4.h (BSTRING): Remove definition.
7815 * s/template.h (BSTRING):
7816 * s/msdos.h (BSTRING):
7817 * s/ms-w32.h (BSTRING):
7818 * s/hpux10-20.h (BSTRING):
7819 * s/gnu-linux.h (BSTRING):
7820 * s/darwin.h (BSTRING):
7821 * s/cygwin.h (BSTRING):
7822 * s/bsd-common.h (BSTRING):
7823 * s/aix4-2.h (BSTRING): Likewise.
7824 * sysdep.c: Remove code depending on BSTRING not being defined.
7825
409f2919
JB
78262010-06-05 Juanma Barranquero <lekktu@gmail.com>
7827
7828 Remove obsolete macro BASE_LEADING_CODE_P.
7829 * character.h (BASE_LEADING_CODE_P): Remove.
7830 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
7831 * buffer.c (Fset_buffer_multibyte):
7832 * indent.c (scan_for_column, compute_motion):
7833 * insdel.c (count_combining_before, count_combining_after):
7834 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
7835
087fc47a
JB
78362010-06-04 Juanma Barranquero <lekktu@gmail.com>
7837
7838 Turn `directory-sep-char' into a noop.
7839
7840 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
7841 (DIRECTORY_SEP): Define unconditionally.
7842
7843 * s/ms-w32.h (DIRECTORY_SEP): Remove.
7844
7845 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
7846 call dostounix_filename directly.
7847
7848 * fileio.c (CORRECT_DIR_SEPS): Remove.
7849 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
7850 (Fsubstitute_in_file_name): Use dostounix_filename instead.
7851 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
7852 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
7853
7854 * w32proc.c (CORRECT_DIR_SEPS): Remove.
7855 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
7856
0eb7675e
AS
78572010-06-03 Andreas Schwab <schwab@linux-m68k.org>
7858
a628ad9d
JB
7859 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
7860 (Bug#6346)
0eb7675e 7861
78edd3b7
JB
78622010-06-03 Juanma Barranquero <lekktu@gmail.com>
7863
7864 * ccl.c (Fccl_program_p): Fix typo in docstring.
7865
eb697db5
DN
78662010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
7867
7868 Move UNEXEC definition to autoconf.
7869 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
7870 * s/sol2-10.h (UNEXEC):
7871 * s/irix6-5.h (UNEXEC):
7872 * s/hpux10-20.h (UNEXEC):
7873 * s/gnu-linux.h (UNEXEC):
7874 * s/darwin.h (UNEXEC):
7875 * s/cygwin.h (UNEXEC):
7876 * s/bsd-common.h (UNEXEC):
7877 * s/aix4-2.h (UNEXEC):
7878 * m/alpha.h (UNEXEC): Likewise.
7879 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
7880
aa3830c4
JB
78812010-06-03 Juanma Barranquero <lekktu@gmail.com>
7882
7883 Remove obsolete pre-unicode2 macros.
7884 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
7885 * composite.c (composition_reseat_it):
7886 * data.c (Faset):
7887 * fns.c (Ffillarray):
7888 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
7889 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
7890
d234d13e
JL
78912010-06-03 Juri Linkov <juri@jurta.org>
7892
7893 * buffer.c (Fother_buffer): Add CHECK_FRAME.
7894 (Fswitch_to_buffer): Remove unused variable `err'.
7895
0d4bcf4d
GM
78962010-06-03 Glenn Morris <rgm@gnu.org>
7897
e23dc1e2
GM
7898 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
7899
05b09564
GM
7900 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
7901 now that AH_BOTTOM does it.
7902
824e2978
GM
7903 * m/hp800.h (HAVE_ALLOCA):
7904 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
7905
0d4bcf4d
GM
7906 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
7907 Remove NOT_C_CODE tests, it is always true now.
7908
c55d2abf
DN
79092010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
7910
08a494a3
DN
7911 Fix config.h includes.
7912 * xsettings.c:
7913 * xgselect.c:
7914 * nsterm.m:
7915 * nsselect.m:
7916 * nsimage.m:
7917 * nsfont.m:
7918 * nsfns.m:
7919 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
7920 other files do.
7921
75934b1d
DN
7922 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
7923
9f32a766
DN
7924 * s/sol2-6.h: Remove obsolete comments.
7925
c55d2abf
DN
7926 Remove unnecessary alloca.h includes.
7927 * keymap.c: Do not include alloca.h, config.h does that.
7928 * sysdep.c: Likewise. Do not define fwrite, not used.
7929
06ac62b4
SM
79302010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
7931
7932 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
7933 the HAVE_TERMIO where it belongs (bug#6149).
7934
1ab8293c
SM
79352010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
7936
7937 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
7938 of bug#6305).
7939
6dcfd253
EZ
79402010-05-30 Eli Zaretskii <eliz@gnu.org>
7941
7942 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
7943 state is always cached (bug#6306).
7944
6d26bbb2
EZ
79452010-05-29 Eli Zaretskii <eliz@gnu.org>
7946
06fa4a23
EZ
7947 Fix cursor motion in bidi-reordered continued lines.
7948 * xdisp.c (try_cursor_movement): Backup to non-continuation line
7949 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
7950 over continuation lines in bidi-reordered buffers.
7951 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
7952 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
7953
f5783df3
MA
79542010-05-28 Michael Albinus <michael.albinus@gmx.de>
7955
7956 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
7957
7d56b2dd
KH
79582010-05-28 Kenichi Handa <handa@m17n.org>
7959
7960 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
7961 Don't sheck SPEC if it is nil.
7962 (font_list_entities): Call font_delete_unmatched if
b925d231 7963 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 7964
e58d4ff7
GM
79652010-05-28 Glenn Morris <rgm@gnu.org>
7966
7967 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
7968
f1a5d776
CY
79692010-05-27 Chong Yidong <cyd@stupidchicken.com>
7970
7971 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
7972 whether to trash.
7973 (internal_delete_file, Frename_file): Callers changed.
7974 (delete_by_moving_to_trash): Doc fix.
7975 (Fdelete_directory_internal): Don't move to trash.
7976
7977 * callproc.c (delete_temp_file):
7978 * buffer.c (Fkill_buffer): Callers changed.
7979
7980 * lisp.h: Update prototype.
7981
f44a59e6
CY
79822010-05-27 Chong Yidong <cyd@stupidchicken.com>
7983
7984 * xdisp.c (redisplay_window): After redisplay, check if point is
7985 still valid before setting it (Bug#6177).
7986
81ac4f35
GM
79872010-05-27 Glenn Morris <rgm@gnu.org>
7988
7989 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
7990 Convert comments to Makefile format.
7991
7992 * Makefile.in (bootstrap-clean): No more Makefile.c.
7993
ccd89fb3
GM
79942010-05-26 Glenn Morris <rgm@gnu.org>
7995
90278cb6
GM
7996 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
7997 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
7998
ccd89fb3
GM
7999 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8000 Remove.
8001 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8002
b7050583
KH
80032010-05-26 Kenichi Handa <handa@m17n.org>
8004
8005 * composite.c (composition_compute_stop_pos): Fix condition for
8006 backward scanning.
8007
e5458003
GM
80082010-05-25 Glenn Morris <rgm@gnu.org>
8009
c345fe90
GM
8010 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8011 Move before TEMACS_LDFLAGS.
8012 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8013 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8014
2e0689ab
GM
8015 * Makefile.in (NOT_C_CODE): No longer define.
8016 (config.h): No longer include.
8017
8009a5e8
GM
8018 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8019 variables it may reference.
8020
e5458003
GM
8021 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8022 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8023
10f72a37
KH
80242010-05-25 Kenichi Handa <handa@m17n.org>
8025
8026 * dispextern.h (struct composition_it): New members rule_idx and
8027 charpos.
8028
8029 * xdisp.c (set_iterator_to_next): While scanning backward, assume
8030 that the character positions of IT point the last character of the
8031 current grapheme cluster.
8032 (next_element_from_composition): Don't change character positions
8033 of IT.
8034 (append_composite_glyph): Set glyph->charpos to
8035 it->cmp_it.charpos.
8036
8037 * composite.c (autocmp_chars): Change the first argument to RULE,
8038 and try composition with RULE only.
8039 (composition_compute_stop_pos): Record the index number of the
8040 composition rule in CMP_IT->rule_idx.
8041 (composition_reseat_it): Call autocmp_chars repeatedly until the
8042 correct rule of the composition is found.
8043 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
8044 is at the last character of the current grapheme cluster when
8045 CMP_IT->reversed_p is nonzero.
8046
171eda53 80472010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 8048
171eda53
SM
8049 * editfns.c (Fbyte_to_string): New function.
8050
66a9f7f4
SM
80512010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8052
8053 * process.c (Fmake_network_process): Set :host to nil if it's not used.
8054 Suggested by Masatake YAMATO <yamato@redhat.com>.
8055
d8c315d1
EZ
80562010-05-23 Eli Zaretskii <eliz@gnu.org>
8057
171eda53 8058 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 8059
f5b416d2 80602010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
8061
8062 * s/netbsd.h: If terminfo is found, use it in preference to
8063 termcap. (Bug#6190) [Backport from trunk]
8064
0416466c
EZ
80652010-05-19 Eli Zaretskii <eliz@gnu.org>
8066
11117830 8067 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
8068
8069 * dispextern.h (struct glyph_row): New members minpos and maxpos.
8070 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
8071 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
8072 and maxpos members instead of start.pos and end.pos, respectively.
8073
8074 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
8075 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
8076 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
8077 (try_window_reusing_current_matrix, try_window_id):
8078 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
8079 (init_from_display_pos, init_iterator): Use EMACS_INT for
8080 character and byte positions.
66a9f7f4 8081 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
8082 arguments for minimum and maximum buffer positions seen by
8083 display_line for this row. Don't use iterator to find the
8084 position following the maximum one; instead, increment the
11117830
EZ
8085 position found by display_line directly. Fix logic; eol_pos
8086 should be tested before the rest. Handle the case of characters
8087 delivered from display vector (bug#6036). Fix tests related to
8088 it->method. Handle the truncated_on_right_p rows.
8089 (RECORD_MAX_MIN_POS): New macro.
8090 (display_line): Use it to record the minimum and maximum buffer
8091 positions for glyphs in the row being assembled. Record the
8092 position of the newline that terminates the line. If word wrap is
8093 in effect, restore minimum and maximum positions seen up to the
8094 wrap point, when iterator returns to it.
8095 (try_window_reusing_current_matrix): Give up if in bidi-reordered
8096 row and cursor not already at point. Restore original pre-bidi
8097 code for unidirectional buffers.
d36fe237
EZ
8098
8099 * dispnew.c (increment_row_positions, check_matrix_invariants):
8100 Increment and check row->start.pos and row->end.pos, in addition
8101 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
8102
11117830
EZ
8103 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
8104 Display truncated_on_left_p and truncated_on_right_p flags.
8105 Formatting fixes.
8106 (pmtxrows): Display the ordinal number of each row. Don't display
8107 rows beyond the last one.
8108
8109 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
8110 it is not copied by bidi_copy_it.
8111
6e83d800
EZ
81122010-05-22 Eli Zaretskii <eliz@gnu.org>
8113
8114 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
8115 (Bug#6237)
8116
110683ad
CY
81172010-05-22 Chong Yidong <cyd@stupidchicken.com>
8118
8119 * image.c (Fimage_flush): Rename from image-refresh.
8120
98fe5161
CY
81212010-05-21 Chong Yidong <cyd@stupidchicken.com>
8122
8123 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
8124 just one window.
8125
8126 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
8127 (clear_image_cache): If the number of cached images is unusually
8128 large, decrease the cache eviction delay (Bug#6230).
8129
e8752c66
GM
81302010-05-21 Glenn Morris <rgm@gnu.org>
8131
66dbf213
GM
8132 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
8133 Move these rules to ns.mk.
8134 * ns.mk: New file.
8135
04384b2d
GM
8136 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
8137
e8752c66
GM
8138 * Makefile.in (CANNOT_DUMP): New, set by configure.
8139 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
8140
2e2bbddb
JL
81412010-05-20 Juri Linkov <juri@jurta.org>
8142
8143 * fileio.c (Fdelete_file): Change interative spec to use
8144 `read-file-name' like in `find-file-read-args' where the default
8145 value is `default-directory' instead of `buffer-file-name'.
8146 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
8147
31c4aaf6
KR
81482010-05-20 Kevin Ryde <user42@zip.com.au>
8149
8150 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
8151 (Voverriding_terminal_local_map, Vsystem_key_alist)
8152 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
8153
9d5cf9b6
GM
81542010-05-20 Glenn Morris <rgm@gnu.org>
8155
8156 * Makefile.in (DEPDIR): New constant.
8157 (DEPFLAGS): Set with configure, not cpp.
8158 (MKDEPDIR): New, set by configure.
8159 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
8160 (clean): Use $DEPDIR.
8161 (deps_frag): Include from configure.
8162 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
8163 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
8164
bba3e508
SM
8165 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
8166 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 8167
7f34aec3
GM
81682010-05-19 Glenn Morris <rgm@gnu.org>
8169
d494e8f2
GM
8170 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
8171
c1d0dcfd
GM
8172 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
8173 (GNULIB_VAR): Remove.
8174 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
8175
8176 * m/ibms390x.h (LINKER):
8177 * m/macppc.h (LINKER) [GNU_LINUX]:
8178 * s/aix4-2.h (ORDINARY_LINK):
8179 * s/cygwin.h (LINKER):
8180 * s/darwin.h (ORDINARY_LINK):
8181 * s/gnu.h (ORDINARY_LINK):
8182 * s/netbsd.h (LINKER):
8183 * s/usg5-4.h (ORDINARY_LINK):
8184 Move to configure.
8185
7f34aec3
GM
8186 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
8187
754790b6
CY
81882010-05-18 Chong Yidong <cyd@stupidchicken.com>
8189
8190 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
8191 prevent stack overflow if number of arguments is too large
8192 (Bug#6214).
8193
161e44d1
JB
81942010-05-18 Juanma Barranquero <lekktu@gmail.com>
8195
8196 * charset.c (load_charset_map_from_file): Don't call close after fclose.
8197
be4ff9da
GM
81982010-05-18 Glenn Morris <rgm@gnu.org>
8199
9539dc5d
GM
8200 * s/gnu-linux.h: Combine two conditionals.
8201
8202 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
8203 $(POST_ALLOC_OBJ).
8204
40dc6bf4
GM
8205 * Makefile.in (RALLOC_OBJ): New, set by configure.
8206 (rallocobj): Replace with the previous variable.
8207 (otherobj): Use $RALLOC_OBJ.
8208
8209 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
8210 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
8211
be4ff9da
GM
8212 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
8213 (gmallocobj, vmlimitobj): Replace with previous two variables.
8214 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
8215
16455a85
GM
82162010-05-17 Glenn Morris <rgm@gnu.org>
8217
8218 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
8219 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
8220
5fdb7468
GM
82212010-05-16 Glenn Morris <rgm@gnu.org>
8222
7ca1f3f9
GM
8223 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
8224
7541dad5
GM
8225 * Makefile.in (clean): Get rid of HAVE_NS conditional.
8226
da53fab9
GM
8227 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
8228 trailing "/".
8229
b02a6645
GM
8230 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
8231 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
8232
8877ca0f
GM
8233 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
8234 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
8235 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
8236 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
8237 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
8238
5fdb7468
GM
8239 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
8240 Remove ${STARTFLAGS}, nothing ever sets it.
8241
95adb4b1
DN
82422010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
8243
8244 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
8245
676b6304
GM
82462010-05-16 Glenn Morris <rgm@gnu.org>
8247
9beab9ce
GM
8248 * Makefile.in (LIBX_BASE): Always define.
8249
8a95f0e7
GM
8250 * Makefile.in (LIBX_OTHER): Move out of cpp section.
8251
676b6304
GM
8252 * Makefile.in (LIBXT): Always define.
8253
6e546d18
GM
82542010-05-15 Glenn Morris <rgm@gnu.org>
8255
4235ca47 8256 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 8257
6e546d18
GM
8258 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
8259 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
8260
8c5ff6dd
KR
82612010-05-15 Ken Raeburn <raeburn@raeburn.org>
8262
560bb7ae 8263 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
8264 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
8265
8b4eb796
KR
8266 * emacs.c (main): Initialize initial-environment and
8267 process-environment before generating from env, not after.
8268
8c5ff6dd
KR
8269 Handle --version reasonably in CANNOT_DUMP configuration.
8270 * emacs.c (emacs_version, emacs_copyright): New string variables.
8271 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
8272 (syms_of_emacs): Defvar them, and initialize them from the C
8273 string variables.
8274 (main): If initialization hasn't been done, print initial version
8275 info from the C strings, instead of starting an interactive session.
8276
dbd3f723
EZ
82772010-05-15 Eli Zaretskii <eliz@gnu.org>
8278
d20e1419
EZ
8279 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
8280 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
8281 (bidi_paragraph_init): Remove redundant assertion that we are at
8282 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
8283
8284 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
8285 (syms_of_xdisp): Defsubr it.
8286
d36fe237
EZ
8287 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
8288
dbd3f723
EZ
8289 * Makefile.in: Fix MSDOS-related comments.
8290
02be533b
GM
82912010-05-15 Glenn Morris <rgm@gnu.org>
8292
1a82cca9
GM
8293 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
8294 (really-lwlib, really-oldXMenu): Always define.
8295 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
8296
3df7b338
GM
8297 * Makefile.in: Simplify cpp conditional.
8298
2b5f541b
GM
8299 * Makefile.in (${ns_appdir}): Simplify using umask.
8300
02be533b
GM
8301 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
8302
4e2db1fe
SM
83032010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
8304
8305 * eval.c (specbind): Remove left-over duplicate test.
8306 Disallow let-binding frame-local vars. Add comment.
8307
4b292a22
EZ
83082010-05-14 Eli Zaretskii <eliz@gnu.org>
8309
2fe72643 8310 Make the cache of bidi iterator states dynamically allocated.
1edbd309 8311 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
8312 (bidi_init_it): Call it.
8313 (bidi_cache_iterator_state): Enlarge the cache if needed.
8314
4e2db1fe 8315 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
8316 bidi_get_next_char_visually. All callers changed.
8317
82ebc97b
KH
83182010-05-14 Kenichi Handa <handa@m17n.org>
8319
8320 * dispextern.h (struct composition_it): New member reversed_p.
8321
8322 * composite.c (composition_compute_stop_pos): Search backward if
8323 ENDPOS < CHARPOS.
8324 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
8325 Set CMP_IT->reversed_p.
b4b6e17e 8326 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 8327
4e2db1fe
SM
8328 * xdisp.c (set_iterator_to_next):
8329 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
8330 scanning backward. Call composition_compute_stop_pos if scan
8331 direction is changed.
8332 (next_element_from_buffer): Call composition_compute_stop_pos with
8333 negative ENDPOS if we are scanning backward.
8334 (next_element_from_composition): Pay attention to
8335 IT->cmp_it.reversed_p.
8336
0e5d7800
KH
83372010-05-14 Kenichi Handa <handa@m17n.org>
8338
560bb7ae 8339 * font.c (font_range): Return the range for the font found at first.
0e5d7800 8340
cb027b32
GM
83412010-05-14 Glenn Morris <rgm@gnu.org>
8342
177b0288
GM
8343 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
8344
fbc00890
GM
8345 * Makefile.in (mktime, X11, register): Move undefs to configure.
8346
f14d1dfd
GM
8347 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
8348 (MSDOS_X_OBJ): New variable.
8349 (MSDOS_SUPPORT_REAL): New constant.
8350 (MSDOS_SUPPORT): Set as a variable, not with cpp.
8351 (obj): Use MSDOS_X_OBJ.
8352 (lisp): Use MSDOS_SUPPORT as a variable.
8353
11842bd8
GM
8354 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
8355 (GPM_MOUSE_SUPPORT): Now it's a constant.
8356 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
8357 not cpp.
8358
489d31a4 8359 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 8360 (ns_appresdir): Remove, unused.
e20f1f07 8361
489d31a4
GM
8362 * Makefile.in (SHELL): Move outside cpp section.
8363
cb027b32
GM
8364 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
8365
5a903aa9
GM
83662010-05-13 Glenn Morris <rgm@gnu.org>
8367
3369c79f
GM
8368 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
8369 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
8370
d5e982a6
GM
8371 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
8372 HAVE_WINDOW_SYSTEM must be too.
8373
6192e163
GM
8374 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
8375 (lisp): Remove WINNT_SUPPORT.
8376
472c5d6b
GM
8377 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
8378 Let configure set these variables (to empty) in this case as well.
8379
0116466b
GM
8380 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
8381 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
8382
5a903aa9
GM
8383 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
8384 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
8385 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
8386 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
8387 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 8388 the values output by configure.
5a903aa9
GM
8389 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
8390
1a0d7c06
GM
83912010-05-12 Glenn Morris <rgm@gnu.org>
8392
b5457f14
GM
8393 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
8394 (LINKER_WAS_SPECIFIED): Remove.
8395
1a0d7c06
GM
8396 * Makefile.in (LIB_GCC): Set using configure, not cpp.
8397 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
8398 * m/arm.h (LIB_GCC) [GNU_LINUX]:
8399 * s/cygwin.h (LIB_GCC):
8400 * s/freebsd.h (LIB_GCC):
8401 * s/gnu-linux.h (LIB_GCC):
8402 * s/msdos.h (LIB_GCC):
8403 * s/netbsd.h (LIB_GCC):
8404 Move to configure.
8405
d1ddd1d0 84062010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
8407
8408 * ftfont.c: Fix incorrect parentheses of #if condition for
8409 definining M17N_FLT_USE_NEW_FEATURE.
8410
acddf8ae
GM
84112010-05-11 Glenn Morris <rgm@gnu.org>
8412
8413 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
8414 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
8415
ae5e04fa
EZ
84162010-05-10 Eli Zaretskii <eliz@gnu.org>
8417
8418 * xdisp.c (init_iterator): Don't turn on bidi reordering in
8419 unibyte buffers. See
8420 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
8421
7490175b
GM
84222010-05-10 Glenn Morris <rgm@gnu.org>
8423
97efb629
GM
8424 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
8425 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
8426 (LIBES): Use LIBS_SYSTEM as a variable.
8427 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
8428 * s/aix4-2.h (LIBS_SYSTEM):
8429 * s/freebsd.h (LIBS_SYSTEM):
8430 * s/hpux10-20.h (LIBS_SYSTEM):
8431 * s/sol2-6.h (LIBS_SYSTEM):
8432 * s/unixware.h (LIBS_SYSTEM):
8433 Move to configure.
8434
7490175b
GM
8435 * s/aix4-2.h (MAIL_USE_LOCKF):
8436 * s/bsd-common.h (MAIL_USE_FLOCK):
8437 * s/darwin.h (MAIL_USE_FLOCK):
8438 * s/gnu-linux.h (MAIL_USE_FLOCK):
8439 * s/irix6-5.h (MAIL_USE_FLOCK):
8440 * s/template.h (MAIL_USE_FLOCK):
8441 Move to configure.
8442
0235128c 84432010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
8444
8445 * Version 23.2 released.
8446
0235128c 84472010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
8448
8449 * composite.c (autocmp_chars): Save point as marker before calling
8450 auto-composition-function (Bug#5984).
8451
8452 * lisp.h (restore_point_unwind): Add prototype.
8453
8454 * fileio.c (restore_point_unwind): Remove static attribute.
8455
0235128c 84562010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
8457
8458 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
8459 new feature of libotf and m17n-flt.
0235128c
SM
8460 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
8461 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
8462 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
8463 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
8464 that OUT is NULL. Use OTF_drive_gsub_with_log and
8465 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
8466 OTF_drive_gpos.
8467 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
8468 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
8469 Setup mflt_enable_new_feature and mflt_try_otf.
8470
4721152c
J
84712010-05-08 Jan Djärv <jan.h.d@swipnet.se>
8472
8473 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
8474
8475 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
8476 box and toolbar (Bug #6139).
8477 (xg_create_tool_bar): Remove comment (Bug #6139).
8478 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
8479 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
8480
ee0a16cf
JB
84812010-05-08 Juanma Barranquero <lekktu@gmail.com>
8482
8483 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
8484 Update dependencies.
8485
96d79611
EZ
84862010-05-08 Eli Zaretskii <eliz@gnu.org>
8487
8488 * fringe.c (update_window_fringes): Set up truncation bitmaps for
8489 R2L lines.
8490
40c17879
GM
84912010-05-08 Glenn Morris <rgm@gnu.org>
8492
7b42b29f
GM
8493 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
8494
40c17879
GM
8495 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
8496 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
8497 (termcapobj): Replace with TERMCAP_OBJ.
8498 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
8499 (LIBES): Use LIBS_TERMCAP as a variable.
8500
8501 * s/freebsd.h (osreldate.h): No longer include, since this file
8502 does not use __FreeBSD_version any more.
8503
8504 * s/aix4-2.h (TERMINFO):
8505 * s/cygwin.h (TERMINFO):
8506 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8507 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
8508 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8509 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8510 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
8511 * s/irix6-5.h (TERMINFO):
8512 * s/netbsd.h (LIBS_TERMCAP):
8513 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
8514 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
8515 * s/usg5-4.h (TERMINFO):
8516 Move to configure.
8517
94b612ad
SM
85182010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
8519
8520 * eval.c (unbind_to): Don't unbind a local binding into the global
8521 binding when the local binding disappeared. Inversely, don't unbind
8522 a global binding into a newly created local binding.
8523 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
8524 can specify the frame to use, when applicable. Adjust callers.
8525
15e12598 85262010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 8527 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
8528
8529 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
8530
f724825e
EZ
85312010-05-07 Eli Zaretskii <eliz@gnu.org>
8532
5cba3209
EZ
8533 * w32fns.c: Include w32.h.
8534 (Fw32_shell_execute): Decode the error message before passing it
8535 to `error'. (Bug#6126)
8536
d16bdfc3
EZ
8537 * msdos.c (dos_set_window_size):
8538 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
8539 instead of `XSYMBOL (foo)->value'.
8540
59d93e87
EZ
85412010-05-07 Eli Zaretskii <eliz@gnu.org>
8542
9fdec8bc
EZ
8543 Fix the MS-DOS build, broken by autoconfiscation.
8544
8545 * Makefile.in: Don't use Make-style comments past the "start of
8546 cpp stuff" line.
8547 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
8548
8549 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
8550 edited directly by msdos/sed1v2.inp).
f724825e 8551
2f86b22b
GM
85522010-05-07 Glenn Morris <rgm@gnu.org>
8553
8554 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
8555 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
8556 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
8557 move out of cpp section.
8558 * s/freebsd.h (LD_SWITCH_SYSTEM):
8559 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
8560 * s/netbsd.h (LD_SWITCH_SYSTEM):
8561 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
8562
49ebbd65
DN
85632010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8564
8565 Define LIB_STANDARD and START_FILES using autoconf.
8566 * s/usg5-4.h (LIB_STANDARD):
8567 * s/netbsd.h (START_FILES):
8568 * s/irix6-5.h (LIB_STANDARD):
8569 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
8570 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
8571 * s/freebsd.h (START_FILES):
8572 * s/darwin.h (START_FILES):
8573 * s/cygwin.h (START_FILES):
8574 * s/aix4-2.h (LIB_STANDARD):
8575 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
8576 * Makefile.in (STARTFILES): Rename to START_FILES, define using
8577 autoconf, not cpp.
8578
d43c06d6
DN
85792010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
8580
28823648
DN
8581 Remove NEED_BSDTTY and NEED_UNISTD_H.
8582 * s/hpux10-20.h (NEED_BSDTTY): Remove.
8583 * s/aix4-2.h (NEED_UNISTD_H): Remove.
8584 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
8585 <sys/ptyio.h> and <unistd.h>.
8586
aca00430
DN
8587 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
8588
d43c06d6
DN
8589 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
8590 * s/gnu.h (START_FILES): Remove empty definition.
8591
3e56b11d
JD
85922010-05-06 Jan Djärv <jan.h.d@swipnet.se>
8593
8594 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
8595
e3cf0cde
GM
85962010-05-06 Glenn Morris <rgm@gnu.org>
8597
8598 * Makefile.in (CPP, LN_S): Remove unused variables.
8599
774b9a60
SM
86002010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8601
8602 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
8603
4ab92842
LM
86042010-05-05 Lawrence Mitchell <wence@gmx.li>
8605
8606 * m/sparc.h: Fix typo in earlier change.
8607
178f2507
SM
86082010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8609
8610 Misc tweaks.
8611 * eval.c (Fdefvaralias): Remove unintended nested if.
8612 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
8613
80f00217 86142010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
8615
8616 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
8617
ef03a4e6
DN
86182010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
8619
58eb6cf0
DN
8620 Remove BSD_PGRPS.
8621 * s/bsd-common.h (BSD_PGRPS): Remove undef.
8622 * s/gnu-linux.h (BSD_PGRPS): Remove.
8623 * term.c (dissociate_if_controlling_tty):
8624 * sysdep.c (narrow_foreground_group, widen_foreground_group)
8625 (init_sys_modes, reset_sys_modes):
8626 * emacs.c (main):
8627 * callproc.c (Fcall_process, child_setup): Remove code depending
8628 on BSD_PGRPS.
8629
ef03a4e6
DN
8630 Remove POSIX_SIGNALS.
8631 * s/usg5-4.h (POSIX_SIGNALS):
8632 * s/netbsd.h (POSIX_SIGNALS):
8633 * s/msdos.h (POSIX_SIGNALS):
8634 * s/ms-w32.h (POSIX_SIGNALS):
8635 * s/hpux11.h (POSIX_SIGNALS):
8636 * s/gnu.h (POSIX_SIGNALS):
8637 * s/gnu-linux.h (POSIX_SIGNALS):
8638 * s/freebsd.h (POSIX_SIGNALS):
8639 * s/darwin.h (POSIX_SIGNALS):
8640 * s/cygwin.h (POSIX_SIGNALS):
8641 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
8642 * s/unixware.h:
8643 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
8644 * process.c (create_process):
8645 * syssignal.h:
8646 * sysdep.c (wait_for_termination, init_signals):
8647 * process.c (create_process):
8648 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
8649 remove all code that assumes the contrary.
8650
49628785
GM
86512010-05-04 Glenn Morris <rgm@gnu.org>
8652
27a2cdfc
GM
8653 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
8654 variable.
8655 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8656 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
8657 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8658 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
8659 LD_SWITCH_SYSTEM_tmp.
8660 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
8661 New variables, set by configure.
8662
eb21eab5
GM
8663 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8664 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
8665 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8666 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
8667 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
8668
49628785
GM
8669 * s/aix4-2.h (C_SWITCH_SYSTEM):
8670 * m/alpha.h (C_SWITCH_MACHINE):
8671 Move to configure.in.
8672 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
8673 New variables, set by configure.
8674 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
8675 $c_switch_machine and $c_switch_system.
8676
7dff330b
DN
86772010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
8678
8679 * s/hpux10-20.h (LIB_STANDARD): New definition.
8680 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
8681 on it, not used anymore.
8682
53967e09
CY
86832010-05-03 Chong Yidong <cyd@stupidchicken.com>
8684
8685 * eval.c (internal_condition_case_n): Rename from
8686 internal_condition_case_2.
8687 (internal_condition_case_2): New function.
8688
8689 * xdisp.c (safe_call): Use internal_condition_case_n.
8690
8691 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
8692 (internal_delete_file, Frename_file): Callers changed.
8693
8694 * buffer.c (Fkill_buffer):
8695 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
8696
8697 * lisp.h: Update prototypes.
8698
3dee6fdb
GM
86992010-05-03 Glenn Morris <rgm@gnu.org>
8700
8701 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
8702 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
8703 (LIBXT): Set with configure, not cpp.
8704 (LIBX): Remove.
8705 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
8706
a101e0fb
DN
87072010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8708
8709 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
8710 The FreeBSD is not needed, the default works, Solaris version is
8711 not needed, and the remaining case is not supported by configure.
8712
f63d0028
JD
87132010-05-02 Jan Djärv <jan.h.d@swipnet.se>
8714
8715 * xsmfns.c (CHDIR_OPT): New define.
8716 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
8717 restarting emacs.
8718
8719 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
8720 shut_down_emacs.
8721
8722 * emacs.c (USAGE1): Mention --chdir.
8723 (main): Handle --chdir.
8724 (standard_args): Add --chdir.
8725 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
8726 #5552).
8727
e4814a9f
DN
87282010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
8729
cd03c74a
DN
8730 Remove LD_SWITCH_MACHINE.
8731 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
8732 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
8733
c3a398a1
DN
8734 Clean up IRIX code.
8735 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
8736 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
8737
87e7285c
DN
8738 Clean up AIX code.
8739 * m/ibmrs6000.inp: Remove file, unused.
8740 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
8741 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
8742 definition ...
8743 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
8744
80f00217
JB
8745 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
8746 unused.
e4814a9f 8747
59ca28de
EZ
87482010-05-01 Eli Zaretskii <eliz@gnu.org>
8749
197daef4
EZ
8750 Emulate POSIX_SIGNALS on MS-Windows.
8751
8752 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
8753 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
8754
8755 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
8756 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
8757 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
8758
80f00217
JB
8759 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
8760 New stubs.
197daef4 8761
af7c7572
EZ
8762 Miscellaneous fixes of bidi display.
8763
59ca28de
EZ
8764 * xdisp.c (find_row_end): New function, refactored from display_line.
8765 (display_line): Use it.
017ea819
EZ
8766 (extend_face_to_end_of_line): In almost-filled rows, extend only
8767 if the row is R2L and not continued.
166e930d 8768 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 8769 Preserve overlay and string info in row->end.
166e930d
EZ
8770 (insert_left_trunc_glyphs): Support addition of left truncation
8771 glyphs to R2L rows.
b47e0dcf 8772 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
8773 glyph between adjacent windows. Fix a crash when a display string
8774 is continued to the next line. Don't return zero if cursor was
8775 found by `cursor' property of a display string.
b47e0dcf
EZ
8776 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
8777 test for that explicitly.
59ca28de 8778
7acac9f4
GM
87792010-05-01 Glenn Morris <rgm@gnu.org>
8780
8781 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
8782 for clarity.
8783 (OTHER_OBJ): Remove.
8784 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
8785 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
8786
45841e65
KK
87872010-05-01 Karel Klíč <kklic@redhat.com>
8788
8789 * fileio.c (Ffile_selinux_context): Context functions may return null.
8790
afc61943
DN
87912010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
8792
80f00217 8793 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 8794
5a1bb006
GM
87952010-04-30 Glenn Morris <rgm@gnu.org>
8796
8797 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
8798 (OTHER_OBJ): Define as a separate variable, for clarity.
8799
210af043
J
88002010-04-30 Jan Djärv <jan.h.d@swipnet.se>
8801
2f8f196d 8802 * xsettings.c: Include limits.h and update file comment.
210af043 8803
0a7df391
GM
88042010-04-30 Glenn Morris <rgm@gnu.org>
8805
d5096f16
GM
8806 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
8807 Set with configure, not cpp.
8808 (LIBW): Remove, replace with $TOOLKIT_LIBW.
8809
7eb1ac33
GM
8810 * Makefile.in (mallocobj): Remove.
8811 (otherobj): Simplify using @OTHER_OBJ@.
8812
517d086b
GM
8813 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
8814 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
8815 Don't bother making nsgui.h dependency platform-specific.
8816
0a7df391
GM
8817 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
8818
d6d23852
SM
88192010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
8820
d2630aef
SM
8821 * process.c (read_process_output, exec_sentinel): Don't burp if the
8822 sentinel/filter kills the current buffer (bug#6060).
8823
f9dddf52 8824 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
8825 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
8826 Remove unused var `args'.
8827 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
8828 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
8829 * doc.c (store_function_docstring): Use XSETCAR.
8830
f1e3642a
GM
88312010-04-28 Glenn Morris <rgm@gnu.org>
8832
faf535f8
GM
8833 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
8834 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
8835
c40f9449
GM
8836 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
8837
658f86ca
GM
8838 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
8839 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
8840
bc0b5f61
GM
8841 * Makefile.in (FONT_OBJ): New, set by configure.
8842 (FONT_DRIVERS): Use $FONT_OBJ.
8843
294c50a0
GM
8844 * Makefile.in (LIBXMU): Set with configure, not cpp.
8845 * s/aix4-2.h (LIBXMU):
8846 * s/hpux10-20.h (LIBXMU):
8847 Remove definition, now set in configure.
8848
e6ec4e99
GM
8849 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
8850
f1e3642a
GM
8851 * m/amdx86-64.h [i386]: Move this test to configure.in.
8852
c6ea2936
GM
88532010-04-27 Glenn Morris <rgm@gnu.org>
8854
8fdac2c3
GM
8855 * Makefile.in (LIBXTR6): Set with configure, not cpp.
8856 * s/unixware.h (NEED_LIBW): Remove definition.
8857
986fb647
GM
8858 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
8859 (TOOLKIT_LIBW): New, set by configure.
8860 (@X_TOOLKIT_TYPE@): No longer define it.
8861
c6ea2936
GM
8862 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
8863 (MOTIF_LIBW): Set with configure, not cpp.
8864 * s/aix4-2.h (LIB_MOTIF):
8865 * s/gnu-linux.h (LIB_MOTIF):
8866 * s/unixware.h (LIB_MOTIF): Move to configure.in.
8867
aaa36002
DN
88682010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
8869
8870 Reduce CPP usage.
8871 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
8872 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
8873 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
8874 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 8875 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 8876
b678dd8b
GM
88772010-04-27 Glenn Morris <rgm@gnu.org>
8878
76cda504
GM
8879 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
8880 since the defaults (set by the system file) are fine in most cases.
8881 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
8882 * m/ibms390x.h (START_FILES, LIB_STANDARD):
8883 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
8884 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
8885 Remove definitions, since they are set correctly in s/gnu-linux.h.
8886 * s/freebsd.h (START_FILES, LIB_STANDARD):
8887 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
8888 * s/hpux10-20.h (START_FILES):
8889 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
8890 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
8891
b678dd8b
GM
8892 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
8893 (MOTIF_LIBW): Use $LIBXP.
8894 (otherobj): Use $WIDGET_OBJ.
8895
9452ded1
DN
88962010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
8897
7e10844c
DN
8898 * Makefile.in (LIBS_MACHINE): Remove, unused.
8899
9452ded1
DN
8900 Use autoconf instead of cpp for LIB_MATH.
8901 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
8902 * s/cygwin.h (LIB_MATH): Likewise.
8903 * Makefile.in (LIB_MATH): Do not define with cpp.
8904 (LIBES): Use autoconf for LIB_MATH.
8905
fcebfc6a
KH
89062010-04-26 Kenichi Handa <handa@m17n.org>
8907
8908 * composite.c (Ffind_composition_internal): Fix the return value
8909 for an automatic composition.
8910
39e2ad1b
DN
89112010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
8912
8913 Remove all NO_ARG_ARRAY uses.
8914 * fns.c (concat2, concat3, nconc2):
8915 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
8916 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
8917 * m/xtensa.h (NO_ARG_ARRAY):
8918 * m/template.h (NO_ARG_ARRAY):
8919 * m/sparc.h (NO_ARG_ARRAY):
8920 * m/sh3.h (NO_ARG_ARRAY):
8921 * m/mips.h (NO_ARG_ARRAY):
8922 * m/macppc.h (NO_ARG_ARRAY):
8923 * m/iris4d.h (NO_ARG_ARRAY):
8924 * m/intel386.h (NO_ARG_ARRAY):
8925 * m/ibms390x.h (NO_ARG_ARRAY):
8926 * m/ibms390.h (NO_ARG_ARRAY):
8927 * m/ibmrs6000.h (NO_ARG_ARRAY):
8928 * m/ia64.h (NO_ARG_ARRAY):
8929 * m/hp800.h (NO_ARG_ARRAY):
8930 * m/arm.h (NO_ARG_ARRAY):
8931 * m/amdx86-64.h (NO_ARG_ARRAY):
8932 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
8933
adf4f59c
EZ
89342010-04-25 Eli Zaretskii <eliz@gnu.org>
8935
6bdf5d65
EZ
8936 * xdisp.c (display_line): Don't assume 2nd call to
8937 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
8938 (iterate_out_of_display_property): New function, body from pop_it.
8939 (pop_it): Use it.
adf4f59c 8940
dfbbda83
GM
89412010-04-24 Glenn Morris <rgm@gnu.org>
8942
8943 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
8944 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
8945 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
8946 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
8947
2d4018aa
EZ
89482010-04-24 Eli Zaretskii <eliz@gnu.org>
8949
a49884a6
EZ
8950 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
8951 use `get_next_display_element' and `set_iterator_to_next' to
8952 advance to the next character, when looking for the character that
8953 begins the next row.
8954
76db6fcc 8955 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
8956 definition of "struct Lisp_Symbol".
8957
70eab5c1
GM
89582010-04-24 Glenn Morris <rgm@gnu.org>
8959
8960 * Makefile.in (CRT_DIR): New variable, set by configure.
8961 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
8962 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
8963
1ad4cc3d
DN
89642010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8965
e769f484
DN
8966 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
8967
4196ff33
DN
8968 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
8969
879b0ee4
DN
8970 Remove redundant flags.
8971 * s/freebsd.h (C_SWITCH_SYSTEM):
8972 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
8973 * s/netbsd.h (C_SWITCH_SYSTEM):
8974 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
8975 of these.
8976
03cbbcb8
DN
8977 Simplify m/intel386.h.
8978 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
8979 user: ecrt0.c.
8980 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
8981 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
8982 the only user: s/unixware.h.
8983 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
8984 from m/intel386.h.
bba3e508
SM
8985 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
8986 Definitions moved here from m/intel386.h.
03cbbcb8 8987
1ad4cc3d
DN
8988 * m/mips.h: Remove #if 0 code.
8989
8785b888
EZ
89902010-04-23 Eli Zaretskii <eliz@gnu.org>
8991
728588cc
EZ
8992 Fix display of composed characters from L2R scripts in bidi buffers.
8993 * xdisp.c (set_iterator_to_next, next_element_from_composition):
8994 After advancing IT past the composition, resync the bidi iterator
8995 with IT's position. (Bug#5977)
8996
a63f80b4
DN
89972010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8998
8999 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9000 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9001
ff5dec5c
SM
90022010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9003
9004 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9005
8785b888
EZ
90062010-04-23 Eli Zaretskii <eliz@gnu.org>
9007
58ccf243 9008 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
9009 * xdisp.c (pop_it): When the stack is popped after displaying
9010 from a string, bidi-iterate to exit from the text portion covered
9011 by the `display' property or overlay. (Bug#5988, bug#5920)
9012
feeb1604
DN
90132010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9014
8e324eb6
DN
9015 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9016 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9017
809fcaba
DN
9018 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9019 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9020
ed710380
DN
9021 Simplify STARTFILES definition.
9022 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9023 relying on Makefile.in to define it.
9024 * s/cygwin.h (START_FILES): Likewise.
9025 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
9026
feeb1604
DN
9027 Clean up Solaris code.
9028 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
9029 (LIB_MOTIF): Remove, configure takes care of this.
9030 (NOT_USING_MOTIF): Remove, unused.
9031 * xrdb.c: Remove #if 0-ed #include.
9032 (SYSV): Remove conditional for old SysV.
9033 * sysdep.c (closedir): Remove conditional code for Solaris,
9034 Solaris has closedir.
9035
a0d0b563
JD
90362010-04-22 Jan Djärv <jan.h.d@swipnet.se>
9037
9038 * xsettings.c (read_and_apply_settings): Check if current_font is
9039 NULL before strcmp (Bug#6001).
9040
56bae7c7
DN
90412010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
9042
9043 Clean up HP-UX files.
9044 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
9045 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
9046 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
9047 * s/hpux10-20.h: ... to the only user, here.
9048
372b7a95
EZ
90492010-04-21 Eli Zaretskii <eliz@gnu.org>
9050
9051 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
9052 use buffer-local values of paragraph-start and paragraph-separate.
9053 <paragraph_start_re, paragraph_separate_re>: Rename from
9054 fallback_paragraph_start_re and fallback_paragraph_separate_re.
9055 (Bug#5992)
9056
f904c0f9
JD
90572010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9058
9059 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
9060 current_tool_bar_style are new.
9061 (store_config_changed_event): Rename from store_font_changed_event.
9062 (XSETTINGS_TOOL_BAR_STYLE): New define.
9063 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
9064 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
9065 HAVE_XFT.
9066 (something_changedCB): store_font_changed_event is now
c4cc8b9a 9067 store_config_changed_event.
bba3e508
SM
9068 (parse_settings): Rename from parse_xft_settings.
9069 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 9070 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
9071 (apply_xft_settings): Take current settings as parameter. Do not
9072 call read_(xft)_settings.
9073 (read_and_apply_settings): New function.
bba3e508
SM
9074 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
9075 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 9076 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
9077 Call read_and_apply_settings unconditionally.
9078 (xsettings_initialize): Call init_xsettings.
9079 (Ftool_bar_get_system_style): New function.
9080 (syms_of_xsettings): Define Qmonospace_font_name and
9081 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 9082 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 9083 dynamic-setting.
01c35094 9084 Move misplaced HAVE_GCONF.
f904c0f9
JD
9085
9086 * xsettings.h (Ftool_bar_get_system_style): Declare.
9087
9088 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
9089 Qtext, Qboth, Qboth_horiz are new.
9090 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
9091 Vtool_bar_style, tool_bar_max_label_size.
9092
9093 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
9094
9095 * keyboard.c: QClabel is new.
9096 (parse_tool_bar_item): Take out QClabel from tool bar items.
9097 Try to construct a label if ther is no QClabel.
9098 (syms_of_keyboard): Intern :label as QClabel.
9099
9100 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
9101 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
9102 New.
9103
9104 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
9105 dynamic-setting.el.
9106
9107 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
9108 (xg_make_tool_item, xg_show_toolbar_item): New function.
9109 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
9110 Call xg_make_tool_item to make a tool bar item.
9111 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
9112
9113 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
9114 into account for toolbars.
9115
c632dfda
JD
91162010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9117
9118 * data.c (make_blv): Declarations before code (Bug#5993).
9119
10efe302
GM
91202010-04-21 Glenn Morris <rgm@gnu.org>
9121
9122 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
9123 Define using autoconf, not cpp.
9124 (LIBXSM): New variable, set by autoconf.
9125 (LIBXT): Use $LIBXSM.
9126
4285ac5a
DN
91272010-04-21 Dan Nicolaescu <local_user@dannlt>
9128
3ec759e7
DN
9129 Remove NOMULTIPLEJOBS, unused.
9130 * s/template.h (NOMULTIPLEJOBS):
9131 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
9132
4285ac5a
DN
9133 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
9134 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
9135 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
9136 detects -znocombreloc and passes it to the linker
9137 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
9138
2807228d
GM
91392010-04-21 Glenn Morris <rgm@gnu.org>
9140
9141 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
9142
574c05e2
KK
91432010-04-21 Karel Klíč <kklic@redhat.com>
9144
9145 * Makefile.in (LIBSELINUX_LIBS): New.
9146 (LIBES): Add $LIBSELINUX_LIBS.
9147 * eval.c, lisp.h (call7): New function.
9148 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
9149 (Ffile_selinux_context, Fset_file_selinux_context):
9150 New functions.
9151 (Fcopy_file): New parameter preserve-selinux-context.
9152 (Frename_file): Preserve selinux context when renaming by copy-file.
9153
91eac4bb 91542010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 9155 Eli Zaretskii <eliz@gnu.org>
91eac4bb 9156
50426a04
JB
9157 Don't depend on cm.c or termcap.c on Windows, use stubs.
9158 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
9159 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
9160 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
9161 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
9162 (sys_tputs, sys_tgetstr): New stubs.
9163 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
9164 (tputs, tgetstr): New; define to sys_*.
91eac4bb 9165
938efb77
JB
91662010-04-20 Juanma Barranquero <lekktu@gmail.com>
9167
9168 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
9169
b4bf28b7
SM
91702010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9171
8b1e1112
SM
9172 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
9173 Just signal a warning rather than an error when inside a let.
9174 (Fmake_variable_frame_local): Add the same test.
9175
933ac235
SM
9176 * font.c (syms_of_font): Make the style table vars read-only.
9177
b4bf28b7
SM
9178 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
9179 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
9180
9181 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
9182
93d68d0c
EZ
91832010-04-20 Eli Zaretskii <eliz@gnu.org>
9184
9185 Fix R2L paragraph display on TTY.
9186
9187 * xdisp.c (unproduce_glyphs): New function.
9188 (display_line): Use it when produced glyphs are discarded from R2L
9189 glyph rows.
9190 (append_composite_glyph): In R2L rows, prepend the glyph rather
9191 than appending it.
9192
9193 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
9194 rather than append it. Set up the resolved_level and bidi_type
9195 attributes of the appended glyph.
283ccc18
EZ
9196 (produce_special_glyphs): Mirror the backslash continuation
9197 character in R2L lines.
93d68d0c 9198
283ccc18 9199 Implement display of R2L paragraphs in GUI sessions.
26cdf528 9200
283ccc18
EZ
9201 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
9202 append_stretch_glyph.
bba3e508
SM
9203 (set_cursor_from_row) <cursor_x>: Remove unused variable.
9204 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
9205 (append_stretch_glyph): In reversed row, prepend the glyph rather
9206 than append it. Set resolved_level and bidi_type of the glyph.
9207 (extend_face_to_end_of_line): If the row is reversed, prepend a
9208 stretch glyph whose width is such that the rightmost glyph will be
9209 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
9210 TTY frames in testing whether a line needs face extension.
9211 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
9212 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
9213 region face.
bba3e508
SM
9214 (set_cursor_from_row, display_line):
9215 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 9216 row->continuation_lines_width.
283ccc18
EZ
9217 (next_element_from_buffer): Don't call bidi_paragraph_init if we
9218 are at ZV. Fixes a crash when reseated to ZV by
9219 try_window_reusing_current_matrix.
45903529
EZ
9220 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
9221 which happens with R2L glyph rows. Fixes a crash when inserting a
9222 character at end of an R2L line.
283ccc18
EZ
9223 (set_cursor_from_row): Don't be fooled by truncated rows: don't
9224 treat them as having zero-width characters. Improve comments.
9225 Don't reverse pos_before and pos_after for reversed glyph rows.
9226 Set cursor.x to negative value when the cursor might be on the
9227 left fringe.
9228 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
9229 left fringe, not the right one.
f951a506
EZ
9230 (notice_overwritten_cursor, draw_phys_cursor_glyph)
9231 (erase_phys_cursor): For reversed cursor_row, support cursor on
9232 the left fringe.
9233
283ccc18
EZ
9234 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
9235 of continuation indicators on the fringes.
9236 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
9237 left fringe.
9238
f951a506
EZ
9239 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
9240 draw cursor on the left fringe.
9241
9242 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
9243 cursor on the left fringe.
9244
f951a506
EZ
9245 * dispnew.c (update_text_area): Handle reversed desired rows when
9246 the cursor is on the left fringe.
9247 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
9248 below, not by 0, for when the cursor is on the left fringe.
9249
3bb49aaf
JD
92502010-04-20 Jan Djärv <jan.h.d@swipnet.se>
9251
9252 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
9253 widget is a scrollbar.
9254
c0be27fd
KH
92552010-04-20 Kenichi Handa <handa@m17n.org>
9256
9257 * charset.c (char_charset): Consider Vcharset_non_preferred_head
9258 only when the arg CHARSET_LIST is nil.
9259
ce5b453a
SM
92602010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9261
9262 Make variable forwarding explicit rather the using special values.
9263 Basically, this makes the structure of buffer-local values and object
9264 forwarding explicit in the type of Lisp_Symbols rather than use
9265 special Lisp_Objects for that. This tends to lead to slightly more
9266 verbose code, but is more C-like, simpler, and makes it easier to make
9267 sure we handled all cases, among other things by letting the compiler
9268 help us check it.
9269 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
9270 Removing forwarding objects.
9271 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
9272 (struct Lisp_Symbol): Make the various forms of variable-forwarding
9273 explicit rather than hiding them inside Lisp_Object "values".
9274 (XFWDTYPE): New macro.
9275 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
9276 (XBUFFER_LOCAL_VALUE): Remove.
9277 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
9278 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
9279 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
9280 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
9281 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
9282 Remove the Lisp_Misc_* header.
9283 (struct Lisp_Buffer_Local_Value): Redefine.
9284 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
9285 (struct Lisp_Misc_Any): Add filler to get the right size.
9286 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
9287 Lisp_Intfwd.
9288 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
9289 (DEFVAR_KBOARD): Allocate a forwarding object.
9290 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
9291 (let_shadows_global_binding_p): New function.
9292 (union Lisp_Val_Fwd): New type.
9293 (make_blv): New function.
9294 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
9295 (store_symval_forwarding, swap_in_global_binding, Fboundp)
9296 (swap_in_symval_forwarding, find_symbol_value, Fset)
9297 (let_shadows_buffer_binding_p, set_internal, default_value)
9298 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
9299 (Fkill_local_variable, Fmake_variable_frame_local)
9300 (Flocal_variable_p, Flocal_variable_if_set_p)
9301 (Fvariable_binding_locus):
9302 * xdisp.c (select_frame_for_redisplay):
9303 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
9304 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
9305 * frame.c (store_frame_param):
9306 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
9307 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
9308 value structure.
9309 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
9310 (clone_per_buffer_values): Only adjust markers into the current buffer.
9311 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
9312 (Fbuffer_local_value, set_buffer_internal_1)
9313 (swap_out_buffer_local_variables):
9314 Adapt to the new symbol value structure.
9315 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
9316 (defvar_per_buffer): Take a new arg for the fwd object.
9317 (buffer_lisp_local_variables): Return a proper alist (different fix
9318 for bug#4138).
9319 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
9320 (Fgarbage_collect): Don't handle buffer_defaults specially.
9321 (mark_object): Handle new symbol value structure rather than the old
9322 special Lisp_Misc_* objects.
9323 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
9324 * term.c (set_tty_color_mode):
9325 * bidi.c (bidi_initialize): Don't access the ->value field directly.
9326 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
9327 a buffer_local_flags.
9328 * print.c (print_object): Get rid of impossible forwarding objects.
9329
fd3998ff
EZ
93302010-04-19 Eli Zaretskii <eliz@gnu.org>
9331
9332 * bidi.c (bidi_get_type, bidi_get_category)
9333 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
9334 (bidi_type_of_next_char, bidi_level_of_next_char):
9335 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 9336
e42cd1a7
JB
93372010-04-19 Juanma Barranquero <lekktu@gmail.com>
9338
9339 * dired.c (Ffile_attributes): Fix typo in docstring.
9340
6e104790 93412010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
9342
9343 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
9344 NSInteger (Bug#5811).
9345
6e104790 93462010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
9347
9348 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
9349 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
9350
6e104790 93512010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
9352
9353 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
9354
6e104790
SM
93552010-04-19 Chong Yidong <cyd@stupidchicken.com>
9356
9357 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
9358 terminal frames (Bug#5837).
9359
37dcfea0
EZ
93602010-04-19 Eli Zaretskii <eliz@gnu.org>
9361
d1da276f
EZ
9362 * .gdbinit (xsubchartable): New command.
9363
37dcfea0
EZ
93642010-04-19 Eli Zaretskii <eliz@gnu.org>
9365
9366 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 9367 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
9368 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
9369 and
9370 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
9371
e9515805
SM
93722010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9373
9374 * alloc.c (Fpurecopy): Hash-cons if requested.
9375 (syms_of_alloc): Update purify-flag docstring.
9376
22aa44a8
JD
93772010-04-18 Jan Djärv <jan.h.d@swipnet.se>
9378
9379 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
9380 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
9381
ebb5722e
EZ
93822010-04-17 Eli Zaretskii <eliz@gnu.org>
9383
9384 Fix a crash when an NSM character is inserted at BEGV.
9385
9386 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
9387 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
9388 NEUTRAL_B or UNKNOWN_BT.
9389
0f4442ef
EZ
93902010-04-16 Eli Zaretskii <eliz@gnu.org>
9391
9392 * xdisp.c (set_cursor_from_row): Don't consider possibility of
9393 other rows with cursor unless they are different from this row and
9394 this row is part of a continued line. (Bug#5943)
9395
7d4e45f8
DN
93962010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
9397
9398 * s/freebsd.h: Restore osreldate.h include.
9399 Suggested by Naohiro Aota.
9400
5ba5ec85
J
94012010-04-16 Jan Djärv <jan.h.d@swipnet.se>
9402
9403 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
9404
20af301d
CY
94052010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
9406
9407 * s/cygwin.h: Avoid linking against static libgcc.
9408
a4b000fb
JL
94092010-04-15 Juri Linkov <juri@jurta.org>
9410
9411 * window.c: Add Qscroll_command.
9412 Remove Vscroll_preserve_screen_position_commands.
9413 (window_scroll_pixel_based, window_scroll_line_based): Check the
9414 `scroll-command' property on the last command instead of searching
9415 the last command in Vscroll_preserve_screen_position_commands.
9416 (syms_of_window): Initialize and staticpro `Qscroll_command'.
9417 Put Qscroll_command property on Qscroll_up and Qscroll_down.
9418 (scroll-preserve-screen-position): Doc fix.
9419 (Vscroll_preserve_screen_position_commands): Remove variable.
9420
bc319ba4
DN
94212010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9422
6bb24457
DN
9423 * xdisp.c (message): Do not use NO_ARG_ARRAY.
9424
19d4c244
DN
94252010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
9426
9427 Reduce cpp use in Makefile.in.
9428 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
9429 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
9430 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
9431 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
9432 (CRT0_COMPILE): Remove, inline it in the only user.
9433
32129746
JL
94342010-04-14 Juri Linkov <juri@jurta.org>
9435
9436 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
9437 `scroll-up-command' and `M-v' from `scroll-down' to
9438 `scroll-down-command'.
9439
9013a7f8
JL
94402010-04-14 Juri Linkov <juri@jurta.org>
9441
9442 * window.c (Vscroll_preserve_screen_position_commands): New variable
9443 with the default value as the list of Qscroll_down and Qscroll_up.
9444 (window_scroll_pixel_based, window_scroll_line_based): Search the
9445 last command in the list Vscroll_preserve_screen_position_commands
9446 instead of comparing with Qscroll_up and Qscroll_down.
9447
4bef8d26
JD
94482010-04-13 Jan Djärv <jan.h.d@swipnet.se>
9449
92848133
JD
9450 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
9451 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
9452 does that.
9453
4bef8d26
JD
9454 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
9455 to zero.
9456
58b963f7
SM
94572010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9458
84164a0d
SM
9459 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
9460
2b0a91e7
SM
9461 Try to solve the problem of spurious EOF chars in long lines of text
9462 sent to interactive subprocesses.
9463 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
9464 (system_process_attributes): Remove unused var `ttotal'.
9465 * process.c (send_process): Don't bother breaking long line with EOF
9466 chars when talking to ttys any more.
9467 (wait_reading_process_output): Output a warning when called in such
9468 a way that it could block without being interruptible.
9469
58b963f7
SM
9470 Try to detect file modification within the same second.
9471 * buffer.h (struct buffer): New field modtime_size.
9472 * buffer.c (reset_buffer): Initialize it.
9473 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
9474 (Fverify_visited_file_modtime): Check it.
9475 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
9476 (Fset_visited_file_modtime): Set (or clear) it.
9477
01f5787b
SM
94782010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9479
9480 * process.c (status_notify): Remove unused var `ro'.
9481
83725342
JD
94822010-04-12 Jan Djärv <jan.h.d@swipnet.se>
9483
9484 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
9485 more than one visual (Bug#5938).
9486
b9465836
DN
94872010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
9488
50426a04
JB
9489 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
9490 Undefine.
b9465836 9491
8d9c8ece
DN
94922010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
9493
b1f52161
DN
9494 Remove C_SWITCH_SYSTEM_TEMACS.
9495 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
9496 (malloc, realloc, free): Use emacs, not temacs for conditional
9497 definition.
9498
9499 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
9500 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
9501
8d9c8ece
DN
9502 Use autoconf, not cpp for some variables.
9503 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
9504 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
9505 (ALL_CFLAGS): Use them as make variables.
9506 (really-lwlib, really-oldXMenu): Do not pass them.
9507
1ecb2d3f
JD
95082010-04-11 Jan Djärv <jan.h.d@swipnet.se>
9509
9510 * xmenu.c (apply_systemfont_to_dialog): New.
9511 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
9512
3a4fa2f2
SM
95132010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9514
97e53006
SM
9515 * process.c (exec_sentinel): Preserve current-buffer.
9516
3a4fa2f2
SM
9517 * process.c (read_process_output): Move the save-current-buffer to
9518 apply to both the filter and the non-filter branches.
9519
88df7221
DN
95202010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
9521
9522 * s/msdos.h (UNEXEC): New definition.
9523
5634ff85
YM
95242010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9525
6eff5c3d
YM
9526 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
9527 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
9528
9529 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
9530 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
9531 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
9532 TRY_WINDOW_CHECK_MARGINS.
9533
9534 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
9535 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
9536 width only when it is for padding.
5634ff85 9537
b13aef54
J
95382010-04-09 Jan Djärv <jan.h.d@swipnet.se>
9539
9540 * xfns.c (Fx_show_tip): Call try_window in a loop until
9541 fonts_changed_p is zero (Bug#2423).
9542
21d28484
EZ
95432010-04-08 Eli Zaretskii <eliz@gnu.org>
9544
9545 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
9546 the end of TEXT_AREA. (Bug#5856)
9547
0269ef77
JD
95482010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9549
9550 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
9551 HAVE_GCONF.
9552
5930fe97
EZ
95532010-04-08 Eli Zaretskii <eliz@gnu.org>
9554
9555 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
9556 prev.orig_type, for resolving type of NSM. (Bug#5858)
9557
99852628
JD
95582010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9559
9560 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
9561 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
9562 in current_font.
9563 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
9564 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
9565 New functions.
9566 (syms_of_xsettings): Initialize current_font.
9567 defsubr Sfont_get_system_normal_font.
99852628 9568
686b968e
JB
9569 * xsettings.h (Ffont_get_system_normal_font)
9570 (xsettings_get_system_normal_font): Declare.
99852628
JD
9571
9572 * xfns.c (extern xlwmenu_default_font): Remove.
9573 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
9574 to xlwmenu.c.
9575
9576 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
9577 menu items in UTF-8.
9578
2f8f196d 9579 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
99852628 9580 (apply_systemfont_to_menu): New function.
bba3e508
SM
9581 (set_frame_menubar, create_and_show_popup_menu):
9582 Call apply_systemfont_to_menu.
99852628 9583
7fc874c4
J
95842010-04-07 Jan Djärv <jan.h.d@swipnet.se>
9585
9586 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
9587 FRAME_LINE_TO_PIXEL_Y.
9588
9589 * xterm.c (x_set_window_size_1): Don't add border_width/height to
9590 pixelwidth/height.
9591
863bf481
DN
95922010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
9593
5e5a3b92
DN
9594 Simplify code for HP machines.
9595 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
9596 for GNU_LINUX, not needed.
9597 (UNEXEC, NEED_BSDTTY): Move definitions...
9598 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
9599
863bf481
DN
9600 * m/iris4d.h (UNEXEC): Move definition ...
9601 * s/irix6-5.h (UNEXEC): ... here.
9602
3e6bec3b
JD
96032010-04-04 Jan Djärv <jan.h.d@swipnet.se>
9604
9605 * xfns.c (set_machine_and_pid_properties): New function.
9606 (Fx_create_frame): Call set_machine_and_pid_properties.
9607
2912322b
SM
96082010-04-03 Eli Zaretskii <eliz@gnu.org>
9609
bba3e508
SM
9610 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
9611 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
9612 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
9613
2912322b
SM
9614 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
9615 in this function. (Bug#5703)
9616
96172010-04-03 Chong Yidong <cyd@stupidchicken.com>
9618
9619 * nsterm.h: Fix last change.
9620
c435b432
DN
96212010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
9622
a568f507
DN
9623 * m/intel386.h (NO_REMAP): Move definition ...
9624 * s/msdos.h (NO_REMAP): ... here.
9625
4cd9f6c2
DN
9626 * m/vax.h (CRT0_DUMMIES): Remove, unused.
9627
c435b432
DN
9628 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
9629 used on those platforms.
9630
42a2c622
DN
96312010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
9632
9633 Remove extern errno declarations.
9634 * xterm.c:
9635 * xrdb.c:
9636 * w32term.c:
9637 * unexec.c:
9638 * unexaix.c:
9639 * sysdep.c:
9640 * process.c:
9641 * lread.c:
9642 * keyboard.c:
9643 * floatfns.c:
9644 * filelock.c:
9645 * fileio.c:
9646 * emacs.c (main):
9647 * ecrt0.c:
9648 * dispnew.c:
9649 * callproc.c:
9650 * buffer.c: Remove errno extern declarations.
9651 * s/netbsd.h (NEED_ERRNO): Remove.
9652
8224f93d
DN
96532010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
9654
9655 Remove all uses of LIBX11_SYSTEM.
9656 * Makefile.in (LIBX11_SYSTEM): Remove.
9657 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
9658 instead.
9659
814062c7
EZ
96602010-04-01 Eli Zaretskii <eliz@gnu.org>
9661
ed68db4d
EZ
9662 Remove support for DJGPP v1.x (bug#5813).
9663
9664 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
9665 * s/msdos.h:
9666 * unexec.c (make_hdr, copy_text_and_data):
9667 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 9668 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
9669 (IT_set_terminal_modes, __write, _rename, gethostname)
9670 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
9671 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
9672 the value of __DJGPP__.
ed68db4d
EZ
9673 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
9674 compatibility code.
8224f93d
DN
9675 * lread.c:
9676 * gmalloc.c (memalign):
9677 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
9678 * emacs.c (main):
9679 * dosfns.c (init_dosfns):
ed68db4d
EZ
9680 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
9681
52f4d8d5
EZ
96822010-04-01 Eli Zaretskii <eliz@gnu.org>
9683
814062c7
EZ
9684 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
9685 string with `cursor' property comes from an `after-string'
9686 overlay. (Bug#5816)
9687
0dc2e11d
GM
96882010-04-01 Glenn Morris <rgm@gnu.org>
9689
9690 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
9691 Define as Makefile variables.
9692 (LIBX): Use above variables rather than directly using autoconf.
9693
1d29df59
DN
96942010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
9695
9696 Clean up BSD_SYSTEM use.
9697 * xterm.c:
9698 * process.c:
9699 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
9700 for including <sys/ioctl.h>.
9701 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
9702 code is only used for MSDOS.
9703
1546c559
JL
97042010-03-31 Juri Linkov <juri@jurta.org>
9705
9706 * image.c: Add `Qextension_data'.
9707 (syms_of_image): Initialize and staticpro `Qextension_data'.
9708 (Fimage_metadata): Rename from `Fimage_extension_data'.
9709 (gif_load): Put GIF extension data to the property
9710 `Qextension_data'.
9711
6521c534
CY
97122010-03-31 Chong Yidong <cyd@stupidchicken.com>
9713
9714 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
9715 * nsterm.h: Fix prototype.
9716
52c30783
EZ
97172010-03-31 Eli Zaretskii <eliz@gnu.org>
9718
9719 * xdisp.c (highlight_trailing_whitespace): Support highlight of
9720 trailing whitespace in right-to-left rows.
9721
855a0da7
SM
97222010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9723
9724 Get rid of the direct_output optimizations.
9725 * keyboard.c (nonundocount): Remove extern declaration.
9726 (command_loop_1): Remove brittle optimisation for cheap and
9727 common operations.
9728 * xdisp.c (redisplay_internal): Don't bother checking
9729 redisplay_performed_directly_p any more.
9730 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
9731 any more.
9732 * dispnew.c (redisplay_performed_directly_p)
9733 (direct_output_for_insert, direct_output_forward_char):
9734 * dispextern.h (redisplay_performed_directly_p)
9735 (direct_output_for_insert, direct_output_forward_char): Remove.
9736 * cmds.c (nonundocount): Make it static.
9737
85738751 97382010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
9739
9740 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
9741
85738751 97422010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
9743
9744 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
9745 invisible (Bug#5766).
9746
85738751 97472010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 9748
855a0da7
SM
9749 * xdisp.c (x_consider_frame_title, update_window_cursor):
9750 Remove HAVE_NS conditionals.
194d44e7 9751 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
9752
9753 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
9754 filename for the title.
9755 (ns_set_doc_edited): Do nothing if the selected window is a
9756 minibuffer window.
9757
9758 * nsterm.h: Add prototypes for ns_set_name_as_filename and
9759 ns_set_doc_edited.
9760
9761 * nsterm.m: Remove unneeded prototype.
9762
85738751 97632010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
9764
9765 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
9766 in the DOC file. (Bug#5336)
9767
85738751 97682010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
9769
9770 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
9771
75d1428c
SM
97722010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9773
9774 * window.c (keys_of_window): Remove redundant/overridden bindings.
9775
82043cfb
EZ
97762010-03-30 Eli Zaretskii <eliz@gnu.org>
9777
9778 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
9779 Restore original behavior when the iterator is not bidi_p.
9780
b5dd0ae7
DN
97812010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9782
9783 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
9784
bd924a5d
EZ
97852010-03-30 Eli Zaretskii <eliz@gnu.org>
9786
9787 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
9788 are outside the range of cached character positions.
9789
3580374b
JB
97902010-03-30 Juanma Barranquero <lekktu@gmail.com>
9791
9792 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
9793
a7b02820
EZ
97942010-03-30 Eli Zaretskii <eliz@gnu.org>
9795
9796 Initial support for bidirectional editing.
9797
9798 * Makefile.in (obj): Include bidi.o.
9799 (bidi.o): New target.
9800
9801 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
9802 ($(BLD)/bidi.$(O)): New target.
9803
9804 * bidi.c: New file.
9805
9806 * buffer.h (struct buffer): New members bidi_display_reordering
9807 and bidi_paragraph_direction.
9808
9809 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
9810 and bidi_paragraph_direction.
9811 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
9812 and bidi-paragraph-direction.
9813 (Fbuffer_swap_text): Swap the values of
9814 bidi_display_reordering and bidi_paragraph_direction.
9815
9816 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
9817 (bidi_type_t, bidi_dir_t): New types.
9818 (bidi_saved_info, bidi_stack, bidi_it): New structures.
9819 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
9820 prev_stop, base_level_stop, and eol_pos.
9821 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
9822 (IT_STACK_SIZE): Enlarge to 5.
9823 (struct glyph_row): New member reversed_p.
9824 <string_buffer_position>: Update prototype.
9825 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
9826 glyph_row if bidi_it.paragraph_dir == R2L.
9827 (struct glyph): New members resolved_level and bidi_type.
9828
9829 * dispnew.c (direct_output_forward_char): Give up if we need bidi
9830 processing or buffer's direction is right-to-left.
9831 (prepare_desired_row): Preserve the reversed_p flag.
9832 (row_equal_p): Compare the reversed_p attributes as well.
9833
bba3e508
SM
9834 * xdisp.c (init_iterator): Initialize it->bidi_p.
9835 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
9836 buffer's value of bidi_paragraph_direction.
9837 (reseat_1): Initialize bidi_it.first_elt.
9838 (set_iterator_to_next, next_element_from_buffer): Use the value of
9839 paragraph_embedding to determine the paragraph direction.
9840 (set_iterator_to_next): Under bidi reordering, call
9841 bidi_get_next_char_visually. Call bidi_paragraph_init if the
9842 new_paragraph flag is set in the bidi iterator.
9843 (next_element_from_buffer): If bidi_it.first_elt is set,
9844 initialize paragraph direction and find the first character to
9845 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
9846 prime the bidi iterator starting at the line's beginning.
9847 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
9848 non-linearity of the bidi iteration. Likewise for when we back up
9849 beyond the previous stop_charpos. When moving across stop_charpos,
9850 record it in prev_stop.
9851 (display_line): Set row->end and it->start for the next row to the
9852 next character in logical order. Always extend reversed_p rows to
9853 the end of line, even if they end at ZV. Copy the reversed_p flag
9854 to the next glyph row. Keep calling set_cursor_from_row for
9855 bidi-reordered rows even if we already have a possible candidate
9856 for cursor position. Set row_end after all the row's glyphs have
9857 been produced, by looping over the glyphs. Record the position
9858 after EOL in it->eol_pos, and use it to set end_pos of the last
9859 row produced for a continued line.
9860 <Qright_to_left, Qleft_to_right>: New variables.
9861 (syms_of_xdisp): Initialize and staticpro them.
9862 (string_buffer_position_lim): New function.
9863 (string_buffer_position): Most of code moved to
9864 string_buffer_position_lim. Last argument and return value are
9865 now EMACS_INT; all callers changed.
9866 (set_cursor_from_row): Rewritten to support bidirectional text and
9867 reversed glyph rows.
bba3e508
SM
9868 (text_outside_line_unchanged_p, try_window_id):
9869 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
9870 paragraph direction can be affected by the change.
9871 (append_glyph, append_composite_glyph)
9872 (produce_image_glyph, append_stretch_glyph): Set the
9873 resolved_level and bidi_type members of each glyph.
9874 (append_glyph): If the glyph row is reversed, prepend the glyph
9875 rather than appending it.
9876 (handle_stop_backwards): New function.
9877 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2f8f196d 9878 (reseat): Call handle_stop_backwards to recompute prev_stop and
a7b02820
EZ
9879 base_level_stop for the new position.
9880 (handle_invisible_prop): Under bidi iteration, skip invisible text
9881 using bidi_get_next_char_visually. If we are `reseat'ed, init the
9882 paragraph direction. Update IT->prev_stop after skipping
9883 invisible text.
9884 (move_it_in_display_line_to): New variables prev_method
9885 and prev_pos. Compare for strict equality in
9886 BUFFER_POS_REACHED_P.
9887 (try_cursor_movement): Examine all the candidate rows that occlude
9888 point, to return the best match. If rows are bidi-reordered
9889 and point moved backwards, back up to the row that is not a
9890 continuation line, and start looking for a suitable row from
9891 there.
9892
9893 * term.c (append_glyph): Reverse glyphs by pre-pending them,
9894 rather than appending, if the glyph_row's reversed_p flag is set.
9895 Set the resolved_level and bidi_type members of each glyph.
9896
9897 * .gdbinit (pbiditype): New command.
9898 (pgx): Use it to display bidi level and type of the glyph.
9899 (pitx): Display some bidi information about the iterator.
9900 (prowlims, pmtxrows): New commands.
9901
32a8894e
DN
99022010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9903
9904 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
9905 * s/usg5-4.h (LIBS_DEBUG):
9906 * s/irix6-5.h (C_DEBUG_SWITCH):
9907 * s/gnu-linux.h (LIBS_DEBUG):
9908 * s/darwin.h (LIBS_DEBUG):
9909 * s/bsd-common.h (LIBS_DEBUG):
9910 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
9911 * m/iris4d.h (LIBS_DEBUG):
9912 * m/hp800.h (LIBS_DEBUG): Remove definitions.
9913
9914 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
9915 (LIBS_DEBUG): Remove definition.
9916
649dbf36
CY
99172010-03-27 Chong Yidong <cyd@stupidchicken.com>
9918
9919 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
9920 Windows.
9921
cad4261f
YM
99222010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9923
9924 * process.c (Fmake_network_process): Don't call turn_on_atimers around
9925 `connect' (Bug#5723).
9926
cd591dbc
HE
99272010-03-25 Helmut Eller <eller.helmut@gmail.com>
9928
9929 * process.c (Fmake_network_process): Call `select' for interrupted
9930 `connect' rather than creating new socket (Bug#5173).
9931
e867cb5d 99322010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
9933
9934 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
9935
9936 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
9937
9938 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
9939
e867cb5d 99402010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
9941
9942 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
9943 XLoadQueryFont.
9944
e867cb5d 99452010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
9946
9947 * coding.c (decode_coding_ccl): Fix previous change for the
9948 multibyte case.
fb608df3
KH
9949 (encode_coding_ccl): Don't setup ccl program here. Fix for the
9950 case that the output buffer is fullfilled.
9951 (encode_coding): Setup ccl program here.
fbdc1721 9952
5845f0ed
DN
99532010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
9954
814fb708
DN
9955 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
9956
5845f0ed
DN
9957 Simplify LIBS_MACHINE definitions.
9958 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
9959 * m/iris4d.h (LIBS_MACHINE): Likewise.
9960 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
9961 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 9962 * s/netbsd.h: Remove commented out code.
5845f0ed 9963
b7064064
DN
99642010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
9965
df7734b2
DN
9966 Remove dead code dealing with POSIX_SIGNALS.
9967 * atimer.c (set_alarm): Remove dead code, all USG systems define
9968 POSIX_SIGNALS.
9969 * data.c (arith_error): Likewise.
9970 * keyboard.c (input_available_signal, handle_user_signal)
9971 (interrupt_signal): Likewise.
9972 * process.c (sigchld_handler): Likewise.
9973 (create_process): Remove if 0 code. Remove HPUX conditional when
9974 !defined (POSIX_SIGNALS), it cannot be true.
9975 * syssignal.h: Remove USG5_4 and USG conditionals when
9976 !POSIX_SIGNALS, they cannot be true.
9977
b7064064
DN
9978 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
9979 NO_SOCK_SIGIO, not used anymore.
9980
55da5ee3
DN
99812010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
9982
0be96e3a
DN
9983 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
9984 support vax on BSDs.
9985
55da5ee3
DN
9986 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
9987 * s/aix4-2.h (ORDINARY_LINK): ... here.
9988
c0282183
AS
99892010-03-21 Andreas Schwab <schwab@linux-m68k.org>
9990
82c3d67a
AS
9991 * Makefile.in (abs_builddir): Define.
9992 (bootstrap_exe): Use it.
9993 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 9994
3613edce
SM
99952010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9996
9997 * Makefile.in (bootstrap_exe): Use an absolute name.
9998
7f110ddc
DN
99992010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10000
22e87574
DN
10001 Remove support for old GNU/Linux using libc version 5.
10002 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10003 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10004
05a670e6
DN
10005 Consolidate redundant definitions in s/bsd-common.h.
10006 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10007 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10008 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10009 doing it in all files that include this one.
10010 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10011 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10012 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10013 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10014 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10015 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10016 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10017 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10018 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10019
2968f561
DN
10020 Consolidate redundant definitions.
10021 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10022 it's undefined in all files that include this one.
10023 (POSIX_SIGNALS): Define here instead of doing it in all files that
10024 include this one.
10025 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10026 (POSIX_SIGNALS): Do not define.
10027 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10028 (POSIX_SIGNALS): Do not define.
10029 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10030 (POSIX_SIGNALS): Do not define.
10031
15d25dc0
DN
10032 Remove support for old UNIX System V systems.
10033 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
10034 * s/usg-5-4-2.h: Remove.
10035
07e339e4
DN
10036 Remove support for Solaris on PPC and for old versions.
10037 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
10038 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
10039 that cancel each other.
10040 * s/sol2-3.h:
10041 * s/sol2-4.h:
10042 * s/sol2-5.h: Remove.
10043 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
10044 (NO_REMAP): Remove, unused.
10045 (UNEXEC): Move definition ...
10046 * s/aix4-2.h (UNEXEC): ... here.
10047
7f110ddc
DN
10048 * s/openbsd.h: Remove support for non-ELF and for systems that do
10049 not support shared libraries.
10050 * s/netbsd.h:
10051 * s/freebsd.h: Likewise.
10052
605f35cd
DN
100532010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10054
10055 Remove non-working support for lynxos 3.0.
10056 * s/lynxos.h: Remove file.
10057
10058 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
10059 COFF_BSD_SYMBOLS, nothing defines it anymore.
10060
aed71cf4
DN
100612010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10062
10063 Remove obsolete uses of HAVE_SHM.
10064 * emacs.c (standard_args):
10065 (Fdump_emacs):
10066 (syms_of_emacs): Remove code depending on HAVE_SHM.
10067
10068 * alloc.c: Remove HAVE_SHM dependent definition.
10069
10070 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
10071
aded53ff
GM
100722010-03-18 Glenn Morris <rgm@gnu.org>
10073
17284745
GM
10074 * emacs.c (USAGE4): Hard-code bug address.
10075 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
10076 (bug_reporting_address): Remove.
10077 (main): Don't call bug_reporting_address.
10078
aded53ff
GM
10079 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
10080 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
10081
303500aa
CY
100822010-03-15 Chong Yidong <cyd@stupidchicken.com>
10083
10084 * xfns.c (Fx_create_frame):
10085 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
10086 on left.
10087
cef3058f
CY
100882010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
10089
10090 * editfns.c (Fformat): Account for string precision when computing
10091 field width (Bug#5710).
10092
a647d59d
CY
100932010-03-12 Chong Yidong <cyd@stupidchicken.com>
10094
4fa42018
CY
10095 * xfns.c (Fx_create_frame): Set default to Qright.
10096
a647d59d
CY
10097 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
10098 all window systems.
10099
6da23aaa
EZ
101002010-03-12 Eli Zaretskii <eliz@gnu.org>
10101
a96f6398 10102 These changes remove termcap.c from the build on Posix platforms.
83d02def 10103 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
10104 (MSDOS_OBJ): ...to here.
10105 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
10106 now identical to when LIBS_TERMCAP is defined.
10107
10108 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
10109
10110 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
10111
a96f6398 10112 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 10113
288f9fc0
CY
101142010-03-10 Chong Yidong <cyd@stupidchicken.com>
10115
10116 * Branch for 23.2.
10117
d48cd3f4
SM
101182010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10119
10120 Cleanup setup of gl_state in various parts of the code.
10121 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
10122 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
10123 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
10124 (skip_chars):
10125 * regex.c (regex_compile): Use it.
10126 (re_compile_pattern): Don't set gl_state.current_syntax_table since
10127 it's now set in regex_compile when/if we need it.
10128
618db430
SM
101292010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
10130
c0335e02
SM
10131 Make it possible to C-g in a tight bytecode loop again (bug#5680).
10132 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
10133 (QUIT): Use it to consolidate code and remove redundancy.
10134 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
10135
254c06a8
SM
10136 * regex.c (regex_compile): Setup gl_state as well.
10137
618db430
SM
10138 * syntax.c (skip_chars): Setup gl_state (bug#3823).
10139 (in_classes): Use CONSP before XCAR/XCDR.
10140
233f0c9f
CY
101412010-03-03 Chong Yidong <cyd@stupidchicken.com>
10142
10143 * keymap.c (Fwhere_is_internal): Use Fequal to compare
10144 definitions, so that keyboard macros are correctly handled
10145 (Bug#5481).
10146
75f80e63
EZ
101472010-03-02 Eli Zaretskii <eliz@gnu.org>
10148
10149 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
10150 text that could be relocated inside the call to emacs_mule_char.
10151 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
10152 (CODING_DECODE_CHAR): Add a comment describing its purpose.
10153
dcfb9bc4
KH
101542010-03-02 Kenichi Handa <handa@m17n.org>
10155
fc9a17bc
KH
10156 * character.c (parse_str_as_multibyte): Fix handling of the
10157 multibyte form of raw-bytes.
10158 (str_as_multibyte): Likewise.
10159
dcfb9bc4
KH
10160 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
10161 form of raw-bytes.
10162
412c01b6
CY
101632010-02-28 Chong Yidong <cyd@stupidchicken.com>
10164
10165 * charset.c (load_charset_map_from_file)
10166 (load_charset_map_from_vector): Zero out allocated
10167 charset_map_entries before using them.
10168
df7e1ea0
AS
101692010-02-27 Andreas Schwab <schwab@linux-m68k.org>
10170
10171 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
10172
fe69a722
CY
101732010-02-27 Chong Yidong <cyd@stupidchicken.com>
10174
4ed28cf4
CY
10175 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
10176 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 10177
7379cfce
KH
101782010-02-26 Kenichi Handa <handa@m17n.org>
10179
f88cc4d6
KH
10180 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
10181
7379cfce
KH
10182 * xdisp.c (reseat_to_string): Fix previous change.
10183
cf2fdcfb
CY
101842010-02-26 David Reitter <david.reitter@gmail.com>
10185
10186 * nsfont.m (nsfont_draw): ns_antialias_text should be a
10187 Lisp_Object (Bug#4736).
10188
cc6c7c75
KH
101892010-02-25 Kenichi Handa <handa@m17n.org>
10190
10191 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
10192
32e737d7
JD
101932010-02-24 Jan Djärv <jan.h.d@swipnet.se>
10194
10195 * xterm.c (XTflash): Move declarations before statements.
10196
10197 * gtkutil.c (xg_get_gdk_display): Remove (unused).
10198 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
10199 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
10200 (xg_create_tool_bar): Remove unused variables.
10201 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 10202 (xg_create_frame_widgets): Remove variable grav.
32e737d7 10203
676cae9f
CY
102042010-02-21 Chong Yidong <cyd@stupidchicken.com>
10205
10206 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
10207
886cc2b8
SM
102082010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10209
10210 * term.c (fatal): Add a final \n if needed (bug#5596).
10211
ddb2d8e2
CY
102122010-02-18 Chong Yidong <cyd@stupidchicken.com>
10213
10214 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
10215
2a4f8d3d
GM
102162010-02-18 Glenn Morris <rgm@gnu.org>
10217
10218 * callint.c (Finteractive): Doc fix.
10219
ebaf11b6
KH
102202010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
10221
886cc2b8
SM
10222 * coding.c (record_conversion_result):
10223 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
10224 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
10225 memory allocation error.
10226
d0396581
KH
102272010-02-17 Kenichi Handa <handa@m17n.org>
10228
886cc2b8
SM
10229 * coding.c (decode_coding_ccl): Don't setup ccl program here.
10230 Fix for the case that the output buffer is fullfilled.
d0396581
KH
10231 (decode_coding): Setup ccl program here. Keep looping when the
10232 decoder stopped because the output buffer is
10233 fullfilled (bug#5534).
10234
10235 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
10236
98599f74
JD
102372010-02-13 Jan Djärv <jan.h.d@swipnet.se>
10238
471e4f04 10239 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 10240 bug #5571.
886cc2b8 10241 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 10242 overdrawn.
98599f74 10243
182659ae
JD
102442010-02-10 Jan Djärv <jan.h.d@swipnet.se>
10245
10246 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
10247 doing_interact here.
10248 (ice_connection_closed): New function.
10249 (x_session_check_input, smc_die_CB, ice_io_error_handler)
10250 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
10251 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
10252 returns I/O error.
10253 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
10254 bug #5512.
10255
9be32c4e 102562010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
10257
10258 * nsfont.m (nsfont_open): The system's value for the font descent
10259 is negative, so round it down to avoid clipping.
10260
a2f3eb19
CY
102612010-02-06 Chong Yidong <cyd@stupidchicken.com>
10262
10263 * charset.c (load_charset_map_from_file)
10264 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 10265 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 10266
3088147c
CY
102672010-02-05 Chong Yidong <cyd@stupidchicken.com>
10268
10269 * charset.c (load_charset_map_from_file): Allocate large
10270 charset_map_entries structure on the heap rather than the stack.
10271 (Bug#5526).
10272
b57d9029
KH
102732010-01-31 Kenichi Handa <handa@m17n.org>
10274
10275 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 10276 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 10277
c67d885b
CY
102782010-01-31 Chong Yidong <cyd@stupidchicken.com>
10279
10280 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
10281 <deactivated@gmail.com> (Bug#3605).
10282
8fab2362
CY
102832010-01-31 David De La Harpe Golden <david@harpegolden.net>
10284
10285 * fileio.c (Frename_file): Correctly rename symlinks to
10286 directories (Bug#5496).
10287
cb2a62f2
CY
102882010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
10289
10290 * nsterm.m (ns_ring_bell): Handle visible bell like X.
10291
944c7a26
AS
102922010-01-30 Andreas Schwab <schwab@linux-m68k.org>
10293
10294 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
10295
c024ac08
CY
102962010-01-29 Chong Yidong <cyd@stupidchicken.com>
10297
10298 * frame.c (DEFAULT_ROWS): Change default to 35.
10299
10300 * xfns.c (x_default_font_parameter): Change default XFT font to
10301 monospace-10 (Bug#3643).
10302
af93af83
EZ
103032010-01-29 Eli Zaretskii <eliz@gnu.org>
10304
10305 * w32inevt.c (key_event): Remove unnecessary comparison of
10306 event->uChar.AsciiChar with 128.
10307
ca0eb708
CY
103082010-01-28 Chong Yidong <cyd@stupidchicken.com>
10309
b242dbfc
CY
10310 * fileio.c (Frename_file): Fix last change (Bug#5487).
10311
ca0eb708
CY
10312 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
10313
10314 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
10315
45d45af5
JD
103162010-01-28 Jan Djärv <jan.h.d@swipnet.se>
10317
10318 * xfns.c (Fx_create_frame): Remove window size matching code from
10319 2010-01-15.
a73f9c9d 10320 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 10321
7e233730
JR
103222010-01-27 Jason Rumney <jasonr@gnu.org>
10323
10324 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 10325 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 10326
86e893e3
KH
103272010-01-27 Kenichi Handa <handa@m17n.org>
10328
10329 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 10330 pattern string (Bug#4209).
86e893e3 10331
8719abec
CY
103322010-01-27 David De La Harpe Golden <david@harpegolden.net>
10333
10334 * fileio.c (Frename_file): Call copy-directory and
10335 delete-directory for directories, in order to handle cross-device
10336 renaming (Bug#3353).
10337
844794c8
JD
103382010-01-25 Jan Djärv <jan.h.d@swipnet.se>
10339
aa3e13b5 10340 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 10341 sizes 24 and 10. Bug #3643.
844794c8 10342
bd4b5750
SM
103432010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
10344
8dc1adf6 10345 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
10346 * keymap.c (shadow_lookup): Add `remap' arg.
10347 (describe_map, describe_vector): Update calls to shadow_lookup.
10348 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
10349 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
10350 perform remapping during shadow_lookup check of remapped_sequences.
10351
285d07e2
CY
103522010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
10353
10354 * image.c (png_load): Use png_sig_cmp instead of the obsolete
10355 png_check_sig, which has been removed in libpng 1.4.
10356
c6d09b8d
CY
103572010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
10358
10359 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
10360 lacks this header file).
10361
3d782998
YM
103622010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10363
10364 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
10365 as in Emacs 22.
10366
2aff7c53
YM
103672010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10368
10369 * lisp.h (make_pure_string): String pointer arg now points to const.
10370
10371 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
10372 args now point to const.
10373
74327f7a
EZ
103742010-01-22 Eli Zaretskii <eliz@gnu.org>
10375
10376 * lread.c (Fload): Don't treat files without .elc extension as
10377 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
10378 them. (bug#5303)
10379
4d1e6632
KH
103802010-01-20 Kenichi Handa <handa@m17n.org>
10381
10382 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
10383 treat the source as actual byte sequence.
10384
1fdede8f
AM
103852010-01-19 Alan Mackenzie <acm@muc.de>
10386
10387 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 10388 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
10389 `signal_after_change_p' to `coherent_change_p', and make the
10390 invocation of `modify_region' conditional on it.
10391
67477f30
JD
103922010-01-19 Jan Djärv <jan.h.d@swipnet.se>
10393
10394 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
10395 for debug purpose.
10396 (syms_of_xsettings): Declare xft-settings.
10397
244b023e
CY
103982010-01-18 Chong Yidong <cyd@stupidchicken.com>
10399
10400 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
10401
617364fe
CY
104022010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10403
10404 * xterm.c (event_handler_gdk): Block input (Bug#5037).
10405
4fe22cdf
CY
104062010-01-16 Chong Yidong <cyd@stupidchicken.com>
10407
10408 * emacs.c (standard_args): Adjust arg priorities to reflect how
10409 they are processed in startup.el.
10410
e118d2be
AS
104112010-01-16 Andreas Schwab <schwab@linux-m68k.org>
10412
10413 * Makefile.in (lisp, shortlisp): Update.
10414
523ae620
SM
104152010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10416
10417 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
10418 code, link the new kboard into all_kboard before running Lisp code,
10419 and protect the new terminal with GCPRO (Bug#5365).
10420 (x_term_init): Remove unused var `atom'.
10421 (x_delete_display, x_delete_terminal): Remove unused var `i'.
10422
f0d13888
JD
104232010-01-15 Jan Djärv <jan.h.d@swipnet.se>
10424
10425 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
10426 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
10427 to find out usable size of the desktop. Don't make frames larger than
ac146f82 10428 this. Bug #3643.
f0d13888 10429
cc320f07
KH
104302010-01-15 Kenichi Handa <handa@m17n.org>
10431
10432 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
10433
7ffdf101
CY
104342010-01-15 Chong Yidong <cyd@stupidchicken.com>
10435
10436 * nsterm.m (Qnone): Define.
10437
10438 * nsfns.m (Qnone): Move definition to nsterm.m.
10439
d12bd917
KH
104402010-01-14 Kenichi Handa <handa@m17n.org>
10441
10442 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
10443 systems.
10444
d9a7c140
KH
104452010-01-14 Kenichi Handa <handa@m17n.org>
10446
10447 Make auto-composition work on all buffers even if they are
10448 fundamental mode.
10449
10450 * composite.c (Vauto_composition_mode): New variable.
10451 (composition_compute_stop_pos): Check Vauto_composition_mode
10452 instead of Vauto_composition_function.
10453 (composition_adjust_point, Ffind_composition_internal): Likewise.
10454 (syms_of_composite): Declare Lisp variable
10455 "auto-composition-mode" here.
10456
63286bb2
CY
104572010-01-13 Chong Yidong <cyd@stupidchicken.com>
10458
10459 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
10460 during call to vendor-specific-keysyms (Bug#5365).
10461
c2623ee7
YM
104622010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10463
10464 * keyboard.c (input_available_signal) [SYNC_INPUT]:
10465 Call SIGNAL_THREAD_CHECK (Bug#5333).
10466
10467 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
10468 Call SIGNAL_THREAD_CHECK.
10469
0b5397c2
SM
104702010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
10471
10472 Try to fix bug#5314. This is probably not the final word, tho.
10473 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
10474 recent-auto-save-p as a side-effect.
10475 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
10476 * buffer.c (Fkill_buffer, reset_buffer):
10477 * editfns.c (Fsubst_char_in_region):
10478 * fileio.c (Finsert_file_contents, Fdo_auto_save)
10479 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
10480
dc954cb2
KH
104812010-01-13 Kenichi Handa <handa@m17n.org>
10482
10483 Display buffer name, etc. in mode line by composing correctly.
10484
10485 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
10486 STRING is not nil.
0b5397c2 10487 (display_mode_element): Adjust for the change of
dc954cb2
KH
10488 decode_mode_spec and display_line.
10489 (decode_mode_spec): Change arg MULTIBYTE to STRING.
10490 (display_string): Handle the case that STRING is non-null and
10491 LISP_STRING is not nil.
10492
0b5397c2
SM
10493 * xterm.c (x_draw_composite_glyph_string_foreground):
10494 Pay attention to s->face->overstrike.
dc954cb2
KH
10495
10496 * composite.c (composition_reseat_it): Don't check PT if STRING is
10497 non nil.
10498
4a00eaca
YM
104992010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10500
10501 * keyboard.c (read_char): Don't apply previous change when current
10502 buffer is unchanged by command execution.
10503
60abb287
JD
105042010-01-12 Jan Djärv <jan.h.d@swipnet.se>
10505
10506 * keyboard.c (read_char): Return after executing from special map.
10507
893db5bc
GM
105082010-01-12 Glenn Morris <rgm@gnu.org>
10509
10510 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
10511 bug-gnu-emacs rather than emacs-pretest-bug.
10512
4d03ece0
CY
105132010-01-11 Chong Yidong <cyd@stupidchicken.com>
10514
10515 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
10516 initializing the Lisp variables that depend on them.
10517
1df47e38
YM
105182010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10519
10520 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
10521 Clear areas that will not be updated after change of menu bar lines.
10522 Clear the menu bar window's current matrix when the window gets empty.
10523
2f1c6384
CY
105242010-01-09 Chong Yidong <cyd@stupidchicken.com>
10525
e398c61c
CY
10526 * intervals.h, textprop.c (extend_property_ranges): Return value
10527 and args changed. Discard properties that begin at or after the
10528 new end (Bug#5306).
10529
10530 * editfns.c (Fformat): Caller changed.
10531
e5a29a10
CY
10532 * nsterm.m (ns_set_default_prefs): Delete function.
10533 (syms_of_nsterm): Initialize ns_command_modifier,
10534 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
10535 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
10536
2f1c6384
CY
10537 * xdisp.c (pos_visible_p): Check for invisible text at the correct
10538 position (Bug#4040).
10539
d427a9fa
EZ
105402010-01-09 Eli Zaretskii <eliz@gnu.org>
10541
10542 * editfns.c (Ffloat_time): Doc fix.
10543
21b9df2f
JD
105442010-01-09 Jan Djärv <jan.h.d@swipnet.se>
10545
10546 * xfns.c (Fx_create_frame): Don't create frame larger than display
10547 by default bug#3643.
10548
4b00d3b1
YM
105492010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10550
10551 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
10552 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
10553 windows above internal border.
10554
10555 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
10556 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
10557 windows above internal border.
10558
10559 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
10560 tool bar windows specially.
10561
10562 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
10563
10564 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
10565 specially.
10566 (XTflash): Take account of menu bar height.
10567
10568 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
10569 specially.
10570
5075d853
JD
105712010-01-08 Jan Djärv <jan.h.d@swipnet.se>
10572
ac146f82 10573 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
10574 also be true before we can return early (bug #5339).
10575
474217c8
CY
105762010-01-06 David Reitter <david.reitter@gmail.com>
10577
10578 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
10579 (Fns_display_usable_bounds): Rewrite, computing bounds properly
10580 (Bug#3233).
10581
c0e6d47d
JD
105822010-01-06 Jan Djärv <jan.h.d@swipnet.se>
10583
d0cf45b7
JD
10584 * font.c (font_open_entity): Enable chache and call cached_font_ok
10585 for the driver if defined.
10586 (QCuser_spec): New symbol.
10587 (font_spec_from_name): Save name as user-spec.
10588 (font_load_for_lface): Keep user-spec instead of name.
10589 (font_open_by_name): Save name as user-spec.
10590 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 10591 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
10592
10593 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
10594 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
10595 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
10596
10597 * font.h (struct font_driver): Add cached_font_ok.
10598
c0e6d47d
JD
10599 * xterm.c (x_clear_frame): Queue draw for scroll bars.
10600
7c583cd8
JD
106012010-01-05 Jan Djärv <jan.h.d@swipnet.se>
10602
10603 * xterm.c (x_new_font): Move code for setting rows/cols before
10604 resizing ...
ac146f82 10605 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
10606
10607 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
10608 (xg_frame_resized, xg_frame_set_char_size):
10609 Call xg_clear_under_internal_border.
7c583cd8 10610 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 10611
03f77f0a
CY
106122010-01-05 Chong Yidong <cyd@stupidchicken.com>
10613
10614 * keyboard.c (read_key_sequence): Catch keyboard switch after
10615 making a new tty frame (Bug#5095).
10616
2a1ef5be
KH
106172010-01-05 Kenichi Handa <handa@m17n.org>
10618
10619 * fontset.c (fontset_find_font): Fix getting the frame pointer.
10620
e3eb1dae
SM
106212010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
10622
10623 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
10624 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
10625 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
10626
777013f2
MA
106272010-01-03 Michael Albinus <michael.albinus@gmx.de>
10628
10629 * dbusbind.c (xd_add_watch): Improve debug message.
10630 (xd_remove_watch): Improve debug message. If DATA is the session
10631 bus, unset D-Bus session environment.
10632 (Fdbus_init_bus): Pass the bus as argument to
10633 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 10634
8932b1c2
CY
106352010-01-01 Chong Yidong <cyd@stupidchicken.com>
10636
87231e2c
CY
10637 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
10638
4801c5fa
CY
10639 * lread.c (syms_of_lread): Make it clearer that these are the
10640 names of loaded files (Bug#5068).
10641
8932b1c2
CY
10642 * eval.c (run_hook_with_args): Handle the case where the global
10643 value has the obsolete single-function form (Bug#5026).
10644
11e3c684
CY
106452009-12-27 Chong Yidong <cyd@stupidchicken.com>
10646
10647 * minibuf.c (Fall_completions): Minor optimization.
10648
5b28ce35
EZ
106492009-12-26 Eli Zaretskii <eliz@gnu.org>
10650
5ce6e4f4
JB
10651 * .gdbinit (pgx): Fix display of composite glyphs.
10652 Display cmp.from and cmp.to as well.
10653 (pitx): Fix last change.
5b28ce35 10654
bcffff46
KH
106552009-12-25 Kenichi Handa <handa@m17n.org>
10656
10657 * composite.h (composition_adjust_point): Update prototype.
10658
10659 * composite.c (composition_reseat_it): Don't make a composition
10660 spanning over point.
10661 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
10662 composable characters.
10663 (composition_adjust_point): New arg NEW_PT. Callers changed.
10664
10665 * keyboard.c (command_loop_1): Force redisplay if the last point
10666 was within a composition.
10667 (adjust_point_for_property): Don't adjust point for automatic
10668 composition when called after buffer modification.
10669
3f670e9a
EZ
106702009-12-19 Eli Zaretskii <eliz@gnu.org>
10671
5ce6e4f4
JB
10672 * .gdbinit (pitx): Don't use enum names, use their values.
10673 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
10674 (pgx): Don't use enum names, use their values.
10675 (pitmethod): New helper command.
10676 (pitx): Use it to display iteration method.
10677 (pgrowit): New command.
10678
ad903955
EZ
10679 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
10680
3f670e9a
EZ
10681 Update dependencies in Makefile.in.
10682
10683 * Makefile.in (alloc.o): Depend on termhooks.h.
10684 (atimer.o): Depend on blockinput.h.
10685 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
10686 and frame.h.
10687 (callint.o): Depend on systime.h, coding.h, and composite.h.
10688 (callproc.o): Depend on buffer.h.
10689 (casefiddle.o): Don't depend on charset.h.
10690 (casetab.o): Depend on character.h.
10691 (ccl.o): Depend on composite.h.
10692 (chartab.o): Depend on ccl.h.
10693 (cm.o): Depend on dispextern.h.
10694 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
10695 (coding.o): Don't depend on $(INTERVALS_H).
10696 (composite.o): Don't depend on dispextern.h explicitly (it's in
10697 $(INTERVALS_H)). Depend on ccl.h.
10698 (data.o): Depend on systime.h, coding.h, composite.h,
10699 dispextern.h, font.h, and ccl.h.
10700 (dired.o): Depend on composite.h.
10701 (dispnew.o): Depend on coding.h. Don't depend explicitly on
10702 composite.h (it's in $(INTERVALS_H)).
10703 (doc.o): Depend on systime.h, coding.h, and composite.h.
10704 (editfns.o): Don't depend explicitly on dispextern.h.
10705 (emacs.o): Depend on frame.h and coding.h.
10706 (eval.o): Depend on coding.h, composite.h, and xterm.h.
10707 (fileio.o): Depend on frame.h and commands.h. Don't depend
10708 explicitly on dispextern.h.
10709 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
10710 composite.h.
10711 (fns.o): Don't depend on termhooks.h.
10712 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
10713 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
10714 coding.h, $(INTERVALS_H), window.h, xterm.h.
10715 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
10716 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
10717 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
10718 fontset.h, ccl.h, and ftfont.h.
10719 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
10720 (gtkutil.o): Depend on dispextern.h and composite.h.
10721 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
10722 termhooks.h, and ccl.h.
10723 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
10724 (intervals.o): Depend on systime.h and coding.h.
10725 (keyboard.o): Depend on composite.h and coding.h.
10726 (keymap.o): Depend on coding.h and frame.h.
10727 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
10728 (macros.o): Depend on systime.h, coding.h, and composite.h.
10729 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
10730 and atimer.h.
10731 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
10732 dispextern.h explicitly.
0b5397c2
SM
10733 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
10734 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
10735 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
10736 (regex.o): Don't depend on charset.h.
10737 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
10738 (search.o): Don't depend explicitly on composite.h.
10739 (sound.o): Depend on atimer.h and systime.h.
10740 (syntax.o): Don't depend explicitly on composite.h.
10741 (sysdep.o): Depend on coding.h and composite.h.
10742 (term.o): Depend on xterm.h and buffer.h.
10743 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
10744 (textprop.o): Don't depend on dispextern.h explicitly.
10745 (undo.o): Depend on dispextern.h.
10746 (window.o): Depend on coding.h and termhooks.h. Don't depend on
10747 dispextern.h and composite.h explicitly.
10748 (xdisp.o): Depend on ccl.h.
10749 (xfaces.o): Depend on coding.h and ccl.h.
10750 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
10751 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
10752 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
10753 ftfont.h.
10754 (xgselect.o): New dependency.
10755 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
10756 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
10757 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
10758 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
10759 (xsmfns.o): Depend on frame.h and dispextern.h.
10760 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
10761 sysselect.h.
10762
7a6f7fea
AS
107632009-12-19 Andreas Schwab <schwab@linux-m68k.org>
10764
10765 * font.c (Fclear_font_cache): Pass correct cache argument to
10766 font_clear_cache.
10767
f4c21026
AS
107682009-12-16 Andreas Schwab <schwab@linux-m68k.org>
10769
10770 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
10771 twice.
10772
f7ab0997
CY
107732009-12-15 Chong Yidong <cyd@stupidchicken.com>
10774
10775 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
10776 calling file-remote-p. Reported by Jim Meyering.
10777
fa8e045a
MA
107782009-12-15 Michael Albinus <michael.albinus@gmx.de>
10779
10780 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 10781 avoid compiler warnings. (Bug #5217)
fa8e045a 10782
a63dba42
KH
107832009-12-14 Kenichi Handa <handa@m17n.org>
10784
10785 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
10786 in 8-bit encoding.
10787
5ce6e4f4 107882009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
10789
10790 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
10791 tooltip windows.
10792
223e5fc6
JD
107932009-12-13 Jan Djärv <jan.h.d@swipnet.se>
10794
36acb2a7
JD
10795 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
10796 Xatom_net_window_type.
10797
10798 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
10799 Xatom_net_window_type.
10800
b8f00677
JD
10801 * xterm.c (my_log_handler): New function.
10802 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 10803 so we can filter out buggy messages. (Bug #5120).
b8f00677 10804
e5f0bc9a
JD
10805 * xterm.c (xg_scroll_callback): Parameter list changed,
10806 use parameter GtkScrollType to determine scroll/line/page.
10807 Only allow dragging if a button < 4 is grabbed (bug #5177).
10808 (xg_end_scroll_callback): New function.
10809 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
10810 xg_create_scroll_bar.
10811
10812 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
10813 (scroll_end_callback): Remove.
10814 (xg_create_scroll_bar): Add parameter end_callback, bind it to
10815 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 10816 bug #5177.
e5f0bc9a
JD
10817 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
10818 bug #5177.
10819
10820 * gtkutil.h (XG_LAST_SB_DATA): Remove.
10821 (xg_create_scroll_bar): Add GCallback end_callback.
10822
223e5fc6
JD
10823 * xftfont.c (QClcdfilter): New variable.
10824 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
10825 (syms_of_xftfont): Initialize QClcdfilter.
10826
3c055b77
JD
108272009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10828
10829 * xsettings.c (struct xsettings): Add member seen.
10830 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 10831 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
10832 (apply_xft_settings): Only update Xft settings with what member seen
10833 indicates as new.
10834
05fe33ff
EZ
108352009-12-12 Eli Zaretskii <eliz@gnu.org>
10836
c4cc8b9a 10837 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
10838 (struct glyph): Use EMACS_INT for charpos.
10839 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
10840 region_beg_charpos, region_end_charpos,
10841 redisplay_end_trigger_charpos, and also for
10842 iterator_stack_entry.end_charpos and
10843 iterator_stack_entry.stop_charpos.
10844
e8d7886a
JD
108452009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10846
5ce6e4f4 10847 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
10848 (xg_create_scroll_bar): Call scroll_end_callback on button release
10849 event (bug #5177).
10850 (xg_event_is_for_scrollbar): != replaced with ==.
10851
d0db2ec8
KH
108522009-12-12 Kenichi Handa <handa@m17n.org>
10853
10854 * ftfont.c (struct ftfont_info): New member matrix.
10855 (ftfont_open): Setup xftfont_info->matrix.
10856 (MFLTFontFT): New member matrix.
10857 (FLOOR, CEIL, ROUND): New macros.
10858 (ftfont_get_metrics): Handle matrix transformation.
10859 (ftfont_shape_by_flt): New arg matrix. Callers changed.
10860
10861 * xftfont.c (struct xftfont_info): New member matrix.
10862 (xftfont_open): Setup xftfont_info->matrix.
10863
108642009-12-10 Kenichi Handa <handa@m17n.org>
10865
10866 * xdisp.c (append_space_for_newline): Consider face-remapping.
10867
2cc7b62f
AS
108682009-12-09 Andreas Schwab <schwab@linux-m68k.org>
10869
b87dd913
AS
10870 * xsettings.c: Include "keyboard.h".
10871
eba5eb94
AS
10872 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
10873
2cc7b62f
AS
10874 Fix implicit function declarations.
10875 * cmds.c: Include "frame.h".
10876 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
10877 * frame.h: Move declaration of delete_frame outside of
10878 HAVE_WINDOW_SYSTEM.
10879
a4ef73c8
CY
108802009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
10881
10882 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
10883
10884 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
10885 GTK builds.
10886
944a300c
AS
108872009-12-07 Andreas Schwab <schwab@linux-m68k.org>
10888
10889 * unexelf.c (unexec): Don't search for .data twice.
10890
022eef62
CY
108912009-12-05 Chong Yidong <cyd@stupidchicken.com>
10892
426ac949
CY
10893 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
10894 if push failed.
10895 (handle_line_prefix): Set avoid_cursor_p here. Check return value
10896 of push_display_prop (Bug#5000).
10897
022eef62
CY
10898 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
10899 value of font_list_entities (Bug#5085).
10900
be95bee9
JB
109012009-12-04 Juanma Barranquero <lekktu@gmail.com>
10902
10903 Fix `string-to-number' to deal consistently with integers and floats.
10904 * lread.c (isfloat_string): New argument ignore_trailing to accept all
10905 trailing characters, not just whitespace.
10906 (read1): Pass new arg 0 to keep old behavior.
10907 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
10908 trailing chars, as it is already done for integers. Doc fixes.
10909 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
10910
24c2d7ce
EZ
109112009-12-04 Eli Zaretskii <eliz@gnu.org>
10912
0b5397c2
SM
10913 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
10914 Delete unused enumeration value.
24c2d7ce 10915
7e694795
EZ
109162009-12-03 Eli Zaretskii <eliz@gnu.org>
10917
10918 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
10919
84b31826
SM
109202009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
10921
10922 * process.c (Fmake_network_process): Fix up the tests for
10923 "connectionless socket", so they DTRT for seqpacket sockets as well.
10924
f00c449b
SM
109252009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
10926
10927 * process.c (Qseqpacket): New symbol.
10928 (HAVE_SEQPACKET): New macro.
10929 (Fmake_network_process): Accept new :type `seqpacket'.
10930 (init_process): Add `seqpacket' feature when applicable.
10931 (syms_of_process): Initialize Qseqpacket.
10932
8096a0ff
YM
109332009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10934
10935 * font.c (font_load_for_lface, font_open_by_name): Don't store name
10936 if entity is Qnil.
10937
3e0de07f
SM
109382009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
10939
10940 * print.c (print_preprocess): Preprocess the key_and_value table of
10941 hashtables, even tho they're "hidden" (bug#5082).
10942
abeafb2a
JD
109432009-11-29 Jan Djärv <jan.h.d@swipnet.se>
10944
10945 * frame.c (frame_make_pointer_invisible)
10946 (frame_make_pointer_visible): Declare f before statements.
10947
4bf47195
EZ
109482009-11-28 Eli Zaretskii <eliz@gnu.org>
10949
10950 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
10951 omitted dependencies on lisp.h.
10952
c525b3f2
JD
109532009-11-27 Jan Djärv <jan.h.d@swipnet.se>
10954
ece2d4ed
JD
10955 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
10956 is NULL.
10957
10958 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
10959
10960 * frame.c (frame_make_pointer_invisible)
3e0de07f 10961 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
10962 frame.
10963
c525b3f2
JD
10964 * search.c (simple_search): Remove warning by making *p const.
10965
2f00e299
DN
109662009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
10967
10968 * xdisp.c (power_letter): Remove duplicate const.
10969
084b049b
JD
109702009-11-25 Jan Djärv <jan.h.d@swipnet.se>
10971
a1fadc6f
JD
10972 * term.c (delete_tty): Remove check for last terminal (bug#4970).
10973
5ce6e4f4 10974 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
10975 defaults (bug #5025).
10976
28259cac
SM
109772009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
10978
10979 * insdel.c (adjust_markers_for_delete): Move it in the
10980 right direction! (bug#4803)
10981
e8e14166
YM
109822009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10983
10984 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
10985
10986 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
10987
86677b58
GM
109882009-11-24 Glenn Morris <rgm@gnu.org>
10989
10990 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
10991
581e51e8
JD
109922009-11-23 Jan Djärv <jan.h.d@swipnet.se>
10993
cfc86c7a
JD
10994 * Makefile.in: Must create deps for ecrt0.o in its rule.
10995
581e51e8
JD
10996 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
10997 because that is what Gtk+ font dialog understands.
10998
10999 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11000 of Fcopy_sequence.
11001 (font_open_by_name): Put name given into QCname for font-object returned.
11002
11003 * frame.c (x_set_font): Save original font name as frame parameter
11004 font-parameter.
11005
11006 * xsettings.c (set_default_xft_settings): New function.
11007 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11008 is found.
11009
8b264ecb
AS
110102009-11-22 Andreas Schwab <schwab@linux-m68k.org>
11011
11012 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11013 searching backwards through multibyte buffer.
11014
872870b2
JD
110152009-11-21 Jan Djärv <jan.h.d@swipnet.se>
11016
11017 * xterm.c: #include xgselect.h.
11018 (x_initialize): Call xgselect_initialize.
11019
11020 * xsettings.c (something_changedCB): C++ comments => C comments.
11021 (init_gconf): Do not deal with any GLib file descriptors, xg_select
11022 does that now.
11023
11024 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11025 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
11026 (scroll_bar_button_cb): Remove.
5ce6e4f4 11027 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
11028 event.
11029 (xg_create_scroll_bar): Don't bind button-press-event and
11030 button-release-event.
11031
11032 * process.c: Include xgselect.h if defined (USE_GTK) ||
11033 defined (HAVE_GCONF).
11034 (wait_reading_process_output): Call xg_select for the same condition.
11035
11036 * xgselect.c (xg_select): New function to better integrate with
11037 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
11038
11039 * xgselect.h: New file, declare xg_select, xgselect_initialize.
11040
11041 * Makefile.in (XOBJ): Add xgselect.o.
11042
62a6e103
AS
110432009-11-21 Andreas Schwab <schwab@linux-m68k.org>
11044
0b5397c2
SM
11045 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
11046 Remove ignored second argument. All callers changed.
62a6e103
AS
11047 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
11048 (RE_STRING_CHAR_AND_LENGTH): Likewise.
11049 * xdisp.c (string_char_and_length): Likewise.
11050
b0ca0f33
DN
110512009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
11052
11053 * xterm.c (x_new_font):
11054 * print.c (print_object):
11055 * cmds.c (Fself_insert_command): Move declarations before statements.
11056
dd5a6279
CY
110572009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
11058
11059 * s/cygwin.h: Remove unneeded linker flags.
11060
4a8e097d
JD
110612009-11-20 Jan Djärv <jan.h.d@swipnet.se>
11062
0d1d0d26
JD
11063 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
11064
11065 * xsettings.h: Declare xsettings_get_system_font.
11066
11067 * xsettings.c (xsettings_get_system_font): New function.
11068 (init_gconf): No use initiating gconf unless we have Xft also.
11069 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
11070 HAVE_GCONF.
11071
4a8e097d
JD
11072 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
11073 add a blank entry so it doesn't collapse into nothing.
11074
8ab1650e
SM
110752009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11076
11077 * lread.c (Funintern): Comment out last change.
11078
82c602f0
RS
110792009-11-19 Richard Stallman <rms@gnu.org>
11080
11081 * lread.c (Funintern): Error if symbol is t or nil.
11082
87e32266
SM
110832009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11084
11085 * insdel.c (make_gap_larger): Don't make as many assumptions about the
11086 representation of Lisp integers.
11087 Reported by MJ Chan <mjchan.inbox@gmail.com>.
11088
1b9ac145
AS
110892009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11090
11091 * lisp.h: Remove declaration of Ffont_get_system_font.
11092 * xfns.c: Move include of "xsettings.h".
11093 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
11094
dfb3c4c6
JD
110952009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11096
87e32266
SM
11097 * xsettings.c (something_changedCB, Ffont_get_system_font):
11098 Check use_system_font.
dfb3c4c6
JD
11099 (syms_of_xsettings): DEFVAR font-use-system-font.
11100
9370c1d8
AS
111012009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11102
25fe851a
AS
11103 * xfns.c (x_default_font_parameter): Remove dead assignment.
11104
9370c1d8
AS
11105 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
11106
637fa988
JD
111072009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11108
87e32266 11109 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 11110 not have FC_LCD_*. #define them if not there.
a6eb20d8 11111
87e32266 11112 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 11113
637fa988
JD
11114 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
11115
11116 * xterm.c (handle_one_xevent): Call xft_settings_event for
11117 ClientMessage, PropertyNotify and DestroyNotify.
11118 (x_term_init): If we have XFT, get DPI from Xft.dpi.
11119 Call xsettings_initialize.
11120
11121 * xftfont.c (xftfont_fix_match): New function.
11122 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
11123 Call xftfont_fix_match after XftFontMatch.
11124
11125 * xfont.c (xfont_driver): Initialize all members.
11126
87e32266
SM
11127 * xfns.c (x_default_font_parameter):
11128 Try font from Ffont_get_system_font.
637fa988
JD
11129 Do not get font from x_default_parameter if we got one from
11130 Ffont_get_system_font.
87e32266 11131 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
11132
11133 * w32font.c (w32font_driver): Initialize all members.
11134
11135 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
11136
11137 * lisp.h: Declare syms_of_xsettings.
11138
87e32266
SM
11139 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
11140 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
11141
11142 * ftfont.c (ftfont_filter_properties): New function.
11143
11144 * frame.c (x_set_font): Remove unused variable lval.
11145
87e32266 11146 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
11147
11148 * font.c (font_put_extra): Don't return if val is nil, it means
11149 boolean option is off.
11150 (font_parse_fcname): Collect all extra properties in extra_props
11151 and call filter_properties for all drivers with extra_props and
11152 font as parameter.
87e32266
SM
11153 (font_open_entity): Do not use cache, it does not pick up new
11154 fontconfig settings like hinting.
637fa988
JD
11155 (font_load_for_lface): If spec had a name in it, store it in entity.
11156
a73f9c9d 11157 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
11158
11159 * config.in: HAVE_GCONF is new.
11160
11161 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
11162 xsettings.o is new.
11163
5a942932
KH
111642009-11-17 Kenichi Handa <handa@m17n.org>
11165
11166 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
11167 back to the default font in case that no suitable font is found.
11168
b7c7a4d1
SM
111692009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
11170
11171 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
11172 Suggested by Chad Brown <yandros@mit.edu>.
11173 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
11174
072f1e39
JD
111752009-11-16 Jan Djärv <jan.h.d@swipnet.se>
11176
11177 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
11178
5d1e70a2
AS
111792009-11-14 Andreas Schwab <schwab@linux-m68k.org>
11180
87e32266 11181 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 11182
a53cfbe5
JD
111832009-11-14 Jan Djärv <jan.h.d@swipnet.se>
11184
473a99b7
JD
11185 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
11186 has a parent.
11187
a53cfbe5 11188 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 11189 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
11190
11191 * config.in: Generated (AUTO_DEPEND).
11192
f04bb9b2
MA
111932009-11-13 Michael Albinus <michael.albinus@gmx.de>
11194
b7c7a4d1 11195 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
11196 Vdbus_registered_functions_table, because it contains also
11197 properties. Fix docstring.
b7c7a4d1 11198 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 11199
8f11f7ec
SM
112002009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
11201
11202 * alloc.c (mark_object): Don't reprocess marked strings.
11203 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
11204 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
11205
8a605fe8
KH
112062009-11-13 Kenichi Handa <handa@m17n.org>
11207
8f11f7ec 11208 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
11209 semantics of Vword_combining_categories.
11210 (Vword_combining_categories): Describe the slight change of the
11211 semantics.
11212
241c4680
EZ
112132009-11-13 Eli Zaretskii <eliz@gnu.org>
11214
11215 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
11216
11217 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
11218
5d58e44c
SM
112192009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
11220
11221 * xdisp.c (syms_of_xdisp): Fix typo in last change.
11222
5e13f9d3
JB
112232009-11-12 Juanma Barranquero <lekktu@gmail.com>
11224
11225 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
11226
cf54c754
DR
112272009-11-11 David Reitter <david.reitter@gmail.com>
11228
11229 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
11230 variables to fix 2009-11-09 change.
11231
a4ada374
DN
112322009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
11233
91433552
DN
11234 * process.c (ifflag_def): Make flag_sym constant.
11235 (Fnetwork_interface_info): Use a constant pointer.
11236 (ifflag_table):
11237 * xfns.c (cursor_bits):
11238 * xdisp.c (power_letter):
11239 * termcap.c (speeds, esctab):
11240 * sysdep.c (baud_convert):
11241 * keyboard.c (lispy_accent_codes, modifier_names):
11242 * image.c (xbm_format, xpm_format, pbm_format, png_format)
11243 (jpeg_format, tiff_format, gif_format, svg_format)
11244 (interlace_start, interlace_increment, gs_format):
11245 * gtkutil.c (separator_names):
11246 * fringe.c (swap_nibble):
11247 * fns.c (base64_value_to_char, base64_char_to_value):
11248 * fileio.c (make_temp_name_tbl):
11249 * coding.c (suffixes): Make constant.
11250
f4265f6c
DN
11251 * frame.c (make_initial_frame):
11252 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
11253 build_string.
11254 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
11255
04420943
DN
11256 * s/freebsd.h:
11257 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
11258
0a5d24ae
DN
11259 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
11260 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
11261
a4ada374
DN
11262 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
11263 * xterm.c (syms_of_xterm):
11264 * xfaces.c (syms_of_xfaces):
11265 * xdisp.c (syms_of_xdisp):
11266 * lread.c (syms_of_lread):
11267 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
11268 build_string.
91433552 11269
a4ada374
DN
11270 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
11271
af98fc7f
SM
112722009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11273
8ab1650e 11274 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 11275
e90292a9
JD
112762009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11277
11278 * keyboard.h: Declare timer_check.
11279
11280 * keyboard.c (timer_check_2): New function that does what the old
11281 timer_check did.
11282 (timer_check): Call timer_check_2 until -1 or a non-zero time is
11283 returned, i.e. don't return -1 with timers pending.
11284
11285 * process.c: Remove extern declaration of timer_check.
11286
11287 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
11288 even if timer_check returned -1.
11289
af98fc7f
SM
11290 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
11291 xg_dialog_data.
e90292a9
JD
11292 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
11293 the event loop.
11294 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
11295 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
11296 Destroy the dialog after xg_dialog_run.
11297
045b83c0
SM
112982009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11299
11300 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
11301
1fb99a3a
JD
113022009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11303
11304 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
11305
04e452cb
JB
113062009-11-09 Juanma Barranquero <lekktu@gmail.com>
11307
11308 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
11309
ef7417fd
SM
113102009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
11311
11312 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
11313 w32menu.c, and nsmenu.m.
11314 Simplify the obsolete case where position is nil.
11315 (cleanup_popup_menu): New function, moved from nsmenu.m.
11316 (struct skp): Remove slot `notreal'.
11317 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
11318 adjust callers.
11319 (single_menu_item): Adjust call to parse_menu_item.
11320 (syms_of_menu): Defsubr x-popup-menu.
11321 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
11322 (keymap_panes): Don't export any more.
11323 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
11324 (xmenu_show): Declare.
11325 * keyboard.c (parse_menu_item): Remove arg `notreal'.
11326 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
11327 * keyboard.h (parse_menu_item): Update declaration.
11328 * xmenu.c (Fx_popup_menu): Remove.
11329 (syms_of_xmenu): Don't defsubr x-popup-menu.
11330 * w32menu.c (Fx_popup_menu): Remove.
11331 (syms_of_w32menu): Don't defsubr x-popup-menu.
11332 * nsmenu.m (cleanup_popup_menu): Remove.
11333 (ns_menu_show): Rename from ns_popup_menu and remove all the code
11334 moved to menu.c's Fx_popup_menu.
11335 (Fx_popup_menu): Remove.
11336 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
11337 menu_items (it's done in menu.c already).
11338
424d6179
SM
113392009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
11340
11341 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
11342 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
11343
c0df13a6 113442009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
11345
11346 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 11347 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
11348 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
11349 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
11350
2de9f71c
SM
113512009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11352
11353 Let integers use up 2 tags to give them one extra bit and thus double
11354 their range.
11355 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
11356 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
11357 New macros.
11358 (enum Lisp_Type): Use them. Give explicit values.
11359 (Lisp_Type_Limit): Remove.
11360 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
11361 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
11362 Pay attention to USE_2_TAGS_FOR_INTS.
11363 (INTEGERP): Use LISP_INT_TAG_P.
11364 * fns.c (internal_equal): Simplify the default case.
11365 (sxhash): Use case_Lisp_Int.
11366 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
11367 any more.
11368 (Ftype_of): Use case_Lisp_Int.
11369 (store_symval_forwarding): Take into account the fact that Ints can
11370 now have more than one tag.
11371 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 11372 (buffer_slot_type_mismatch):
2de9f71c
SM
11373 * xfaces.c (face_attr_equal_p):
11374 * print.c (print_object):
11375 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
11376 Use case_Lisp_Int.
11377
323637a2
EZ
113782009-11-06 Eli Zaretskii <eliz@gnu.org>
11379
7ac65b38
EZ
11380 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
11381
323637a2
EZ
11382 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
11383 warning.
11384
e511451f
JD
113852009-11-06 Jan Djärv <jan.h.d@swipnet.se>
11386
11387 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
11388
11389 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
11390
11391 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
11392 ButtonPressRelease and MotionNotify (bug#4870).
11393
5e2327cf
DN
113942009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
11395
5adc433e
DN
11396 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
11397
d67b4f80
DN
11398 * xterm.c (syms_of_xterm):
11399 * xselect.c (syms_of_xselect):
11400 * xmenu.c (syms_of_xmenu):
11401 * xfns.c (syms_of_xfns):
11402 * xfaces.c (syms_of_xfaces):
11403 * xdisp.c (syms_of_xdisp):
11404 * window.c (syms_of_window):
11405 * w32fns.c (syms_of_w32fns):
11406 * undo.c (syms_of_undo):
11407 * textprop.c (syms_of_textprop):
11408 * terminal.c (syms_of_terminal):
11409 * syntax.c (syms_of_syntax):
11410 * sound.c (syms_of_sound):
11411 * search.c (syms_of_search):
11412 * print.c (syms_of_print):
11413 * minibuf.c (syms_of_minibuf):
11414 * macros.c (syms_of_macros):
11415 * keymap.c (syms_of_keymap, initial_define_key)
11416 (initial_define_lispy_key):
11417 * keyboard.c (syms_of_keyboard):
11418 * insdel.c (syms_of_insdel):
11419 * image.c (syms_of_image):
11420 * fringe.c (syms_of_fringe):
11421 * frame.c (syms_of_frame):
11422 * fontset.c (syms_of_fontset):
11423 * fns.c (syms_of_fns):
11424 * fns.c (syms_of_fns):
11425 * fileio.c (syms_of_fileio):
11426 * fileio.c (syms_of_fileio):
11427 * eval.c (syms_of_eval):
11428 * doc.c (syms_of_doc):
11429 * dispnew.c (syms_of_display):
11430 * dired.c (syms_of_dired):
11431 * dbusbind.c (syms_of_dbusbind):
11432 * data.c (syms_of_data):
11433 * composite.c (syms_of_composite):
11434 * coding.c (syms_of_coding):
11435 * cmds.c (syms_of_cmds):
11436 * charset.c (define_charset_internal, syms_of_character):
11437 * ccl.c (syms_of_ccl):
11438 * category.c (syms_of_category, init_category_once):
11439 * casetab.c (syms_of_casetab):
11440 * casefiddle.c (syms_of_casefiddle):
11441 * callint.c (syms_of_callint):
11442 * bytecode.c (syms_of_bytecode):
11443 * buffer.c (keys_of_buffer, syms_of_buffer):
11444 * alloc.c (syms_of_alloc):
11445 * process.c (syms_of_process, init_process):
11446 * lread.c (syms_of_lread, init_obarray):
11447 * font.c (build_style_table):
11448 * emacs.c (syms_of_emacs, main): Replace calls to intern with
11449 intern_c_string, calls to make_pure_string with
11450 make_pure_c_string. Use pure_cons instead of Fcons.
11451
5e2327cf
DN
11452 * process.c (socket_options): Make it const.
11453 (set_socket_option, init_process): Use a const pointer.
11454
11455 * lread.c (intern_c_string): New function.
11456 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11457 (defvar_int): Uset it. Make the name const char*.
11458
11459 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11460 (defvar_int): Update prototypes.
11461 (DEFUN, EXFUN): Support for prototypes is now required.
11462 (intern_c_string): New prototype.
11463 (struct Lisp_Subr): Make symbol_name constant.
11464
11465 * font.c (struct table_entry): Remove unused member. Make NAMES
11466 constant.
11467 (weight_table, slant_table, width_table): Make constant.
11468
11469 * emacs.c (struct standard_args): Make name and longname constant.
11470
11471 * character.h (DEFSYM): Use intern_c_string.
11472
a56eaaef
DN
114732009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11474
11475 * alloc.c (make_pure_c_string): New function.
11476
11477 * eval.c (Fautoload): Purecopy all arguments.
11478
f6a07420
KH
114792009-11-05 Kenichi Handa <handa@m17n.org>
11480
11481 * fileio.c (Finsert_file_contents): Be sure set coding-system of
11482 the buffer in case of replace.
11483
5d28d4b1
DN
114842009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
11485
11486 * puresize.h (BASE_PURESIZE): Increase to 1620000.
11487
b349d111
SM
114882009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
11489
d528b1ce
SM
11490 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
11491 when applicable (bug#4851).
11492
b349d111
SM
11493 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
11494 (P_): Support for prototypes is now required.
11495
c38eb027
CY
114962009-10-31 Chong Yidong <cyd@stupidchicken.com>
11497
11498 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
11499 (Bug#4827).
11500
0405f8d9
EZ
115012009-10-30 Eli Zaretskii <eliz@gnu.org>
11502
d528b1ce 11503 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 11504
ca0a881a
DN
115052009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
11506
11507 * puresize.h (BASE_PURESIZE): Increase to 1470000.
11508
d528b1ce
SM
11509 * lread.c (Fload): Purecopy the file name when building
11510 Vpreloaded_file_list.
ca0a881a 11511
47e0e0e4
JR
115122009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
11513
11514 * w32fns.c (syms_of_w32fns): Change default value of
11515 w32-scroll-lock-modifier to nil. (Bug#2827)
11516
057bce6f
JB
115172009-10-26 Juanma Barranquero <lekktu@gmail.com>
11518
782a943e 11519 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 11520
242bc74c
AS
115212009-10-26 Andreas Schwab <schwab@redhat.com>
11522
11523 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
11524
522d013a
JB
115252009-10-26 Juanma Barranquero <lekktu@gmail.com>
11526
11527 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
11528 For delta < 0, skip check that only makes sense when the mini-window
11529 is going to be enlarged. (Bug#4534)
11530
18060980
CY
115312009-10-25 Chong Yidong <cyd@stupidchicken.com>
11532
11533 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
11534 string in menu maps (Bug#4471).
11535
fec8f0fe
CY
115362009-10-24 Chong Yidong <cyd@stupidchicken.com>
11537
11538 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
11539 FRAME_NS_VIEW on terminal frames (Bug#4765).
11540
10d66ec0
AS
115412009-10-24 Andreas Schwab <schwab@linux-m68k.org>
11542
1cae01f7
AS
11543 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
11544 DBUS_TYPE_UINTnn separately to get proper sign extension.
11545
58a12889
AS
11546 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
11547 can properly handle unsigned types.
d528b1ce 11548 (make_uid, make_gid): Remove.
58a12889 11549
987c9327
AS
11550 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
11551 types again.
11552
522d013a 11553 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
11554 (system_process_attributes): Likewise.
11555
905a9ed3
DN
115562009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
11557
11558 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
11559
11560 * eval.c (Fautoload): Purecopy the filename. Simplify.
11561
11562 * category.c (Fdefine_category): Purecopy docstring.
11563
a599b3e8
AS
115642009-10-23 Andreas Schwab <schwab@linux-m68k.org>
11565
7b792fc9
AS
11566 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
11567
a599b3e8
AS
11568 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
11569
b35ac83e
CY
115702009-10-23 Chong Yidong <cyd@stupidchicken.com>
11571
11572 * window.c (Fwindow_edges, Fwindow_pixel_edges)
11573 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
11574 (Bug#4775).
11575
e8903e00
SM
115762009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
11577
11578 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
11579 (init_fileio_once):
11580 * lisp.h (init_fileio_once): Remove.
11581 * emacs.c (main): Don't call init_fileio_once.
11582
8f43cbf3
DN
115832009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
11584
11585 * puresize.h (BASE_PURESIZE): Increase to 1430000.
11586
26898943
AS
115872009-10-21 Andreas Schwab <schwab@linux-m68k.org>
11588
11589 * doprnt.c (doprnt): Fix overflow check.
11590
5c646d5a
JD
115912009-10-21 Jan Djärv <jan.h.d@swipnet.se>
11592
3132a7ea
JD
11593 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
11594
5c646d5a
JD
11595 * xterm.h (x_wait_for_event): Declare it.
11596
11597 * xterm.c (pending_event_wait): New variable.
11598 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
11599 see pending_event_wait.eventtype.
11600 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
11601 (x_new_font): Call change_frame_size with new rows/columns before we
11602 try to resize the frame.
5c646d5a 11603 (x_wait_for_event): New function.
d528b1ce
SM
11604 (x_set_window_size_1): Don't change gravity unless change_gravity
11605 is set.
5c646d5a
JD
11606 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
11607 don't change frame size, instead wait for the ConfigureNotify.
11608 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
11609 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
11610 (x_initialize): Initialize pending_event_wait.
11611
11612 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
11613 size.
11614
11615 * widget.c (EmacsFrameSetValues): Add comment.
11616 (EmacsFrameSetCharSize): Just call x_set_window_size.
11617
11618 * gtkutil.c (xg_frame_set_char_size): Flush events and call
11619 x_wait_for_event.
d528b1ce 11620 (flush_and_sync): Remove again.
5c646d5a
JD
11621 (xg_get_font_name): Suggest monospace if no previous font is known.
11622
e9c1637d
SM
116232009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
11624
11625 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 11626 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 11627
5a72cccb
YM
116282009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11629
11630 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
11631 processing pending events when event is filtered for input method.
ab04798f 11632 (Bug#3681)
5a72cccb 11633
2629aa37
JB
116342009-10-20 Juanma Barranquero <lekktu@gmail.com>
11635
11636 * fns.c: Add #endif accidentally removed in previous change.
11637
c3417a74
DN
116382009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11639
11640 * fns.c: Remove code for unsupported system: MAC_OS.
11641 * image.c: Likewise. Include setjmp.h.
11642
9685cef2
JD
116432009-10-19 Jan Djärv <jan.h.d@swipnet.se>
11644
11645 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
11646 pixel -1 (bug #4742).
11647
d7306fe6
DN
116482009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11649
019d2c4c
DN
11650 * process.c (create_pty): Remove conditionals for no longer
11651 supported systems: UNIPLUS and RTU.
11652
ee6bacd4
DN
11653 * xterm.c:
11654 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
11655
d7306fe6
DN
11656 * alloc.c: Do not define struct catchtag.
11657 * eval.c: Move struct catchtag definition ...
11658 * lisp.h: ... here.
11659
11660 * image.c: Move png.h #include earlier to avoid warnings.
11661
11662 * xterm.c:
11663 * xsmfns.c:
11664 * xselect.c:
11665 * xrdb.c:
11666 * xmenu.c:
11667 * xftfont.c:
11668 * xfont.c:
11669 * xfns.c:
11670 * xfaces.c:
11671 * xdisp.c:
11672 * window.c:
11673 * widget.c:
11674 * w32xfns.c:
11675 * w32uniscribe.c:
11676 * w32term.c:
11677 * w32select.c:
11678 * w32reg.c:
11679 * w32proc.c:
11680 * w32menu.c:
11681 * w32inevt.c:
11682 * w32heap.c:
11683 * w32font.c:
11684 * w32fns.c:
11685 * w32console.c:
11686 * w32.c:
11687 * w16select.c:
11688 * vm-limit.c:
11689 * unexsol.c:
11690 * unexec.c:
11691 * unexcw.c:
11692 * unexaix.c:
11693 * undo.c:
11694 * tparam.c:
11695 * textprop.c:
11696 * terminfo.c:
11697 * terminal.c:
11698 * termcap.c:
11699 * term.c:
11700 * syntax.c:
11701 * sound.c:
11702 * sheap.c:
11703 * search.c:
11704 * scroll.c:
11705 * region-cache.c:
11706 * regex.c:
11707 * ralloc.c:
11708 * process.c:
11709 * print.c:
b024548b
DN
11710 * nsterm.m:
11711 * nsselect.m:
11712 * nsmenu.m:
11713 * nsimage.m:
11714 * nsfont.m:
11715 * nsfns.m:
d7306fe6
DN
11716 * msdos.c:
11717 * minibuf.c:
11718 * menu.c:
11719 * marker.c:
11720 * macros.c:
11721 * keymap.c:
11722 * keyboard.c:
11723 * intervals.c:
11724 * insdel.c:
11725 * indent.c:
11726 * gtkutil.c:
11727 * ftxfont.c:
11728 * ftfont.c:
11729 * fringe.c:
11730 * frame.c:
11731 * fontset.c:
11732 * font.c:
11733 * fns.c:
11734 * floatfns.c:
11735 * filelock.c:
11736 * fileio.c:
11737 * emacs.c:
11738 * editfns.c:
11739 * dosfns.c:
11740 * doprnt.c:
11741 * doc.c:
11742 * dispnew.c:
11743 * dired.c:
11744 * dbusbind.c:
11745 * data.c:
11746 * composite.c:
11747 * coding.c:
11748 * cmds.c:
11749 * cm.c:
11750 * chartab.c:
11751 * charset.c:
11752 * character.c:
11753 * ccl.c:
11754 * category.c:
11755 * casetab.c:
11756 * casefiddle.c:
11757 * callproc.c:
11758 * callint.c:
11759 * bytecode.c:
11760 * buffer.c:
11761 * atimer.c: Include setjmp.h. (Bug#4643)
11762
fd5f21e6
SM
117632009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
11764
4c0354d7
SM
11765 Remove leftover table unibyte_to_multibyte_table.
11766 * character.c (unibyte_to_multibyte_table): Remove.
11767 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
11768 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
11769 * character.h (UNIBYTE_TO_CHAR): New macro.
11770 (MAKE_CHAR_MULTIBYTE): Use it.
11771 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
11772 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
11773 (message_dolog, set_message_1):
11774 * search.c (Freplace_match):
11775 * editfns.c (Fcompare_buffer_substrings):
11776 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
11777 (concat):
11778 * insdel.c (copy_text, count_size_as_multibyte):
11779 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
11780 * term.c (produce_glyphs):
11781 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
11782 * regex.c (RE_CHAR_TO_MULTIBYTE):
11783 * cmds.c (internal_self_insert):
11784 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
11785
fd5f21e6
SM
11786 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
11787
4418646e
DN
117882009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
11789
11790 * puresize.h (BASE_PURESIZE): Increase to 1310000.
11791
35f5c1d2
JB
117922009-10-16 Juanma Barranquero <lekktu@gmail.com>
11793
11794 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
11795
a0cd8f6b
AR
117962009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11797
11798 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
11799 still needed under Tiger.
11800
11801 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
11802
11803 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
11804 __Apple__.
11805
11806 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
11807
01a8d3fa
KH
118082009-10-15 Kenichi Handa <handa@m17n.org>
11809
11810 * print.c (print_object): Escape a symbol like "2E10" too.
11811
bf6c75c9 118122009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
11813
11814 Cleanups and changes for 64-bit compile under Snow Leopard.
11815 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
11816
11817 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
11818
c5959062 11819 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
11820 (ns_findfonts, nsfont_list_family): Use long format in printf, and
11821 cast argument.
11822 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 11823 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
11824
11825 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
11826
11827 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
11828 where appropriate.
11829
11830 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
11831 where appropriate.
6e4780c5
JB
11832 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
11833 Use stringWithUTF8String.
bf6c75c9
AR
11834 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
11835
6e4780c5
JB
11836 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
11837 Add formal protocol mention to inheritance.
bf6c75c9
AR
11838 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
11839
6e4780c5
JB
11840 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
11841 Fix printf format.
bf6c75c9
AR
11842 (ns_query_color): Use CGFloat where appropriate.
11843 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 11844 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
11845 argument.
11846
3d87f118
AR
11847 * config.in (NS_HAVE_NSINTEGER): Drop.
11848
a95c8102
AR
11849 * dbusbind.c (dbus-method-return-internal)
11850 (dbus-method-error-internal): Use long format in printf, and cast
11851 argument.
11852
11853 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
11854 in printf, and cast argument.
11855
6873acca 11856 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
11857 cast argument.
11858
9ec6f100
GM
118592009-10-11 Glenn Morris <rgm@gnu.org>
11860
11861 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
11862
5be883cd
JD
118632009-10-08 Jan Djärv <jan.h.d@swipnet.se>
11864
11865 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
11866 menu bar with a small width so it doesn't enlarge the frame.
11867
d7a39b51
JB
118682009-10-08 Juanma Barranquero <lekktu@gmail.com>
11869
11870 * fontset.c (Fset_fontset_font): Fix typos in error messages.
11871
0c2b6f8e
GM
118722009-10-06 Glenn Morris <rgm@gnu.org>
11873
11874 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
11875 SOME_MACHINE_LISP (this enters indirectly via DOC).
11876
e02131a2
EZ
118772009-10-05 Eli Zaretskii <eliz@gnu.org>
11878
11879 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
11880
b4744254
EZ
118812009-10-04 Eli Zaretskii <eliz@gnu.org>
11882
11883 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
11884 Doc fix.
11885
dbf64827
JB
118862009-10-03 Martin Rudalics <rudalics@gmx.at>
11887
11888 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
11889
e9a0aef8
MA
118902009-10-02 Michael Albinus <michael.albinus@gmx.de>
11891
d528b1ce 11892 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
11893 used anymore outside fileio.c.
11894
11895 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
11896
64eb2b56
JB
118972009-10-01 Juanma Barranquero <lekktu@gmail.com>
11898
11899 * lisp.h (Qdelete_directory_internal):
11900 Declare, instead of Qdelete_directory.
11901
11902 * w32fns.c (Fsystem_move_file_to_trash): Use it.
11903
9d28c33e
SM
119042009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
11905
11906 * eval.c (Fcalled_interactively_p): Add `kind' argument.
11907
9d8f3bd9
MA
119082009-10-01 Michael Albinus <michael.albinus@gmx.de>
11909
9d28c33e 11910 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
11911 Fdelete_directory. It is not a command anymore. It has no file
11912 name handler.
11913
9694740b
SM
119142009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
11915
11916 * xdisp.c (get_next_display_element): Use an enum in last change.
11917
748e162f
KH
119182009-09-28 Kenichi Handa <handa@m17n.org>
11919
9694740b 11920 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
11921 unibyte_display_via_language_environment in handling
11922 Vnobreak_char_display.
11923
17efd58d
AR
119242009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11925
11926 * nsterm.h (ns_app_name): New extern variable.
11927
11928 * nsterm.m (ns_app_name): New variable.
11929 (ns_term_init): Set and use it.
11930 (ns_term_shutdown): Use it.
11931
11932 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
11933 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
11934
11935 * nsfns.m (ns_set_name_iconic, ns_set_name)
11936 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
11937 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
11938
9694740b
SM
11939 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
11940 Remove double-casting in client_data comparison.
31c2d412 11941
3208cb35
YM
119422009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11943
11944 * keyboard.c (make_lispy_event): Remember last wheel direction.
11945 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
11946
b7d552d6
GM
119472009-09-26 Glenn Morris <rgm@gnu.org>
11948
11949 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
11950 internal.elc. Add term/pc-win.elc.
11951 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
11952 term/x-win.elc.
11953 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
11954 term/w32-win.elc.
11955 (NS_SUPPORT): New.
11956 (lisp): Add NS_SUPPORT.
11957 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
11958
4ff670a8
DR
119592009-09-25 David Reitter <david.reitter@gmail.com>
11960
11961 * nsmenu.m (EmacsMenu-clear): Recognize application menu
11962 on Mac OS X 10.6+ (bug#4513).
11963
feabfb6c
JB
119642009-09-24 Juanma Barranquero <lekktu@gmail.com>
11965
11966 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
11967 some parts of Emacs code (like font selection) don't grok them.
11968 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 11969
de59072a
AS
119702009-09-24 Andreas Schwab <schwab@redhat.com>
11971
11972 * coding.c (decode_coding_iso_2022): Fix operator precedence.
11973
a489517b
JB
119742009-09-24 Juanma Barranquero <lekktu@gmail.com>
11975
11976 * dired.c (Fdirectory_files): Fix typo in docstring.
11977
0592970c
AR
119782009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11979
11980 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
11981 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
11982 (EmacsScroller-setPosition:portion:whole:): Remove -display call
11983 under GNUstep.
11984 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
11985
11986 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
11987 glyph advancement.
11988
48e8a88b
AR
119892009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11990
11991 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 11992 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
11993
11994 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
11995 deleted (bug #4492).
11996
e14f0a78
AR
11997 * nsfont.m (Vns_reg_to_script): New lisp variable.
11998 (syms_of_nsfont): Declare it.
11999 (ns_registry_to_script): New function.
12000 (ns_get_req_script): Call it.
12001 (ns_findfonts): Don't give up on non-unicode registry.
12002
12003 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12004
5b650faa
SM
120052009-09-20 Tom Tromey <tromey@redhat.com>
12006
12007 * eval.c (find_handler_clause): Make stack-trace-on-error work in
12008 batch mode (bug#4228).
12009
a489517b 120102009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
12011
12012 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 12013 carefully. (Bug #4339)
0bae4e09 12014
fcfe06f3
CY
120152009-09-18 Chong Yidong <cyd@stupidchicken.com>
12016
d798ba87 12017 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 12018
31642728
AR
120192009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12020
12021 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
12022 (main) [HAVE_NS]: Don't process --no-init-file option.
12023 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
12024
12025 * nsterm.h (ns_no_defaults): Remove.
12026
12027 * nsterm.m (ns_no_defaults): Remove.
12028 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
12029 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
12030 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
12031 don't update the NSWindow itself.
bba3e508
SM
12032 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
12033 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
12034
12035 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
12036 ns_use_qd_smoothing.
12037
12038 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
12039 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 12040 (x-close-connection): Drop PSFlush() under OS X.
a489517b 12041 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 12042
8686ac71
JB
120432009-09-17 Juanma Barranquero <lekktu@gmail.com>
12044
12045 * emacs.c (inhibit_x_resources): New variable.
12046 (main) [HAVE_NS]: Don't process --quick command line option.
12047 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
12048
12049 * lisp.h (inhibit_x_resources): Declare it extern.
12050
12051 * w32reg.c (x_get_string_resource):
12052 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
12053
e227ba05
EZ
120542009-09-17 Eli Zaretskii <eliz@gnu.org>
12055
362654a6
JB
12056 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
12057 Add lisp/term/internal.elc.
e227ba05 12058
742d40e8
SM
120592009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12060
12061 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
12062 (bug#4461).
12063
005bd5a2
DN
120642009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
12065
12066 * puresize.h (BASE_PURESIZE): Increase to 1290000.
12067
12068 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
12069 (OBJECTS_MACHINE): Remove, unused.
12070
f9af9719
SM
120712009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
12072
12073 * frame.c (x_get_resource_string): Remove unused.
12074
0307c7d2
JD
120752009-09-15 Jan Djärv <jan.h.d@swipnet.se>
12076
12077 * xterm.c (x_new_font): Call change_frame_size before calling
12078 x_set_window_size, in case frame size won't change.
12079
12080 * frame.c (x_set_font): Remove dead code.
12081
428b13d6
SM
120822009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
12083
12084 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
12085
5766c380
SM
120862009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12087
12088 * lread.c (Fload): Don't output a message after loading an obsolete
12089 package any more (done in Lisp now).
12090
2fd0161b
CY
120912009-09-12 Chong Yidong <cyd@stupidchicken.com>
12092
12093 * fns.c (syms_of_fns): Doc fix (Bug#4227).
12094
bc5e75b6
SM
120952009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12096
12097 * keymap.c (Fwhere_is_internal): Use nconc2.
12098
c31c985e
AM
120992009-09-11 Alan Mackenzie <acm@muc.de>
12100
12101 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
12102 batch mode.
12103
78012bd2
AS
121042009-09-11 Andreas Schwab <schwab@linux-m68k.org>
12105
12106 * xdisp.c (display_mode_element): Detect cycles.
12107
9d889332
SM
121082009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12109
12110 * keymap.c (where_is_internal): Don't erroneously return nil right after
12111 filling the cache.
12112 (where_is_internal_1): Fix up typo.
12113
7ab5d780
GM
121142009-09-11 Glenn Morris <rgm@gnu.org>
12115
12116 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
12117 share a common doc-string.
12118
5238a749
SM
121192009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12120
66d77eda
SM
12121 * keymap.c (get_keymap): Return the actual keymap symbol rather than
12122 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
12123
5238a749
SM
12124 * keymap.c (QCadvertised_binding): New constant.
12125 (syms_of_keymap): Initialize it.
12126 (Fwhere_is_internal): Try and use bindings from :advertised-binding
12127 if applicable.
12128
19f48442
SM
121292009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12130
50d4ba39
SM
12131 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
12132 (parse_menu_item): Streamline since bindings are recomputed all the
12133 time anyway. Don't bother checking Vdefine_key_rebound_commands any
12134 more and don't support lmenu's menu-alias any more either.
12135
a88a5372
SM
12136 * keymap.c (where_is_internal_data): Make noindirect a boolean.
12137 (where_is_internal): Strip it down to only traverse the keymaps.
12138 Move the cache handling from Fwhere_is_internal to here.
12139 (Fwhere_is_internal): Move the handling of remapping and the choice of
12140 the best binding from where_is_internal to here.
12141 Unify the cached/noncached paths, so remapping is also handled
12142 correctly when the cache is used, and so the cache can be used to
12143 speed up remap-handling when applicable.
12144 Give preference to non-remapped bindings.
12145 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
12146 non-remapped bindings.
12147 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
12148 command remapping.
12149
19f48442
SM
12150 * xdisp.c (display_mode_element): Move list length limit from 50 to
12151 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
12152
599498c3 121532009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
12154
12155 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
12156
f9b7b5ac
SM
121572009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
12158
a53af587
JB
12159 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
12160 (Bug#4334)
12161
f9b7b5ac
SM
12162 * keymap.c (where_is_internal): Filter out shadowed remappings.
12163 Assume that where_is_internal returns unshadowed bindings to simplify
12164 the code and get rid of the gotos. Use ASIZE.
12165
04f4b72d
JD
121662009-09-04 Jan Djärv <jan.h.d@swipnet.se>
12167
4da146f2
JD
12168 * xterm.c (x_focus_changed): If we get a focusout and pointer
12169 is invisible, make it visible.
12170
04f4b72d
JD
12171 * xterm.h: Remove condition for declaration of
12172 x_*_window_to_frame.
12173
7cef7ce3
SM
121742009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
12175
12176 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
12177 initial terminal as well.
12178
a54fa5b7
JD
121792009-09-02 Jan Djärv <jan.h.d@swipnet.se>
12180
12181 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 12182 x_menubar_window_to_frame.
a54fa5b7 12183
50426a04 12184 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
12185 (XTmouse_position): Do not return valid positions
12186 for clicks in the menubar and the toolbar for Gtk+.
12187
12188 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
12189 if the widget for the event has the same top level as a frame,
12190 return the frame.
12191 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
12192 internal windows, bug #4122.
12193 (x_non_menubar_window_to_frame): Remove.
12194
5a021dd0
GM
121952009-09-02 Glenn Morris <rgm@gnu.org>
12196
12197 * buffer.c (default-major-mode): Move most of the doc from here...
12198 (major-mode): ... to here.
12199
548fe2f3
NR
122002009-08-30 Nick Roberts <nickrob@snap.net.nz>
12201
12202 * process.c (wait_reading_process_output): Keep the descriptor
12203 when pty is used by a non-child process, e.g., in I/O buffer of
12204 GDB this allows inferior to be restarted.
12205
e0840eef
EZ
122062009-08-29 Eli Zaretskii <eliz@gnu.org>
12207
12208 * xdisp.c (redisplay_internal): Remove redundant test and collapse
12209 both branches into one.
12210
82e98df4
SM
122112009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12212
12213 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
12214 (main): Use enable-multibyte-characters rather than
12215 default-enable-multibyte-characters. Output a warning message when
12216 running a unibyte session.
12217
890617cb
YM
122182009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12219
12220 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
12221 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
12222 (copy_data_segment): Also copy __program_vars section.
12223 (copy_dyld_info) [LC_DYLD_INFO]: New function.
12224 (dump_it) [LC_DYLD_INFO]: Use it.
12225
12226 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
12227
e7adeadc
EZ
122282009-08-28 Eli Zaretskii <eliz@gnu.org>
12229
12230 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
12231 $(SRC)/buildobj.h.
ef1b0ba7 12232 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
12233 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
12234 $(SRC)/buildobj.h.
12235 (clean): Add buildobj.h.
12236
3ed8bbdc
TZ
122372009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
12238
12239 * print.c (print_object): Set escapeflag to 1 when printing
12240 hashtable keys and values.
12241
155a6764
SM
122422009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
12243
12244 * lread.c (read_integer): Use doubles (and potentially return a float
12245 number) as we do in string-to-number.
12246 (read1): Use strtol to read integers, signal errors on strtol's
12247 overflow and use floats if strtol's output is too large for
12248 Elisp integers.
12249
877610de
EZ
122502009-08-27 Eli Zaretskii <eliz@gnu.org>
12251
12252 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
12253 (make-buildobj-SH): Fix last change.
12254 (SRC): Move to before where it's first used.
12255
ef73e7be
KH
122562009-08-27 Kenichi Handa <handa@m17n.org>
12257
550c8289
KH
12258 * process.c (send_process): Use encode_coding_object instead of
12259 encode_coding_string to perform eol-conversion even if the string
12260 is unibyte.
12261
60afa08d
KH
12262 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
12263 character.
12264
ef73e7be 12265 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 12266 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 12267
7b3a82d7
DN
122682009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
12269
5654bf63
DN
12270 * callproc.c (Fcall_process): Remove always true #if.
12271
7b3a82d7
DN
12272 * lisp.h: Replace #if 0 code for checking with text pointing to
12273 the --enable-checking configure flag.
12274
12275 * emacs.c (main): Mention the --enable-profiling configure flag
12276 instead of using CFLAGS.
12277
878bde49
KR
122782009-08-26 Ken Raeburn <raeburn@raeburn.org>
12279
12280 * Makefile.in (buildobj.h): New target.
12281 (doc.o): Depend on it.
12282 (temacs${EXEEXT}): Don't generate buildobj.lst.
12283 (mostlyclean): Delete buildobj.h, not buildobj.lst.
12284 * makefile.w32-in ($(SRC)/buildobj.h): New target.
12285 ($(BLD)/doc.$(O)): Depend on it.
12286 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
12287 provided by Eli Zaretskii.)
12288 ($(TEMACS)): Don't generate buildobj.lst.
12289 * doc.c: Include buildobj.h.
12290 (buildobj): New static variable.
12291 (Fsnarf_documentation): Use it, instead of opening and reading
12292 buildobj.lst.
12293
1574224c
MA
122942009-08-25 Michael Albinus <michael.albinus@gmx.de>
12295
12296 * dbusbind.c (Fdbus_call_method)
12297 (Fdbus_call_method_asynchronously): Use English numeric format for
12298 timeout values in doc string.
12299
d9da2f45
KH
123002009-08-25 Kenichi Handa <handa@m17n.org>
12301
ef73e7be
KH
12302 * alloc.c (mark_char_table): New function.
12303 (mark_object): Use mark_char_table for a char-table.
12304
d9da2f45
KH
12305 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
12306 (CHAR_TABLE_REF): Use it.
12307
c8edcc01
KR
123082009-08-23 Ken Raeburn <raeburn@raeburn.org>
12309
12310 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
12311 before invoking the newly build emacs to check for load-path
12312 shadowing.
12313
7763401b
GM
123142009-08-22 Glenn Morris <rgm@gnu.org>
12315
12316 * Makefile.in (bootstrap_exe): New variable.
12317 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
12318 Use ${bootstrap_exe}.
12319
729eadda
EZ
123202009-08-22 Eli Zaretskii <eliz@gnu.org>
12321
12322 * coding.h (encode_coding_string): Don't encode unibyte strings.
12323 (Bug#4047)
12324
eb4c6ace
MA
123252009-08-22 Michael Albinus <michael.albinus@gmx.de>
12326
12327 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
12328
12329 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
12330 intended as hotfix only.
12331 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
12332
36e34d1b
AR
123332009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12334
12335 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
12336 change, and clean up loose ends in the code left by it.
12337 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
12338 yet another X11 format (rgb:r/g/b) for compatibility.
12339 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
12340 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
12341
f983eb8a
SM
123422009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
12343
12344 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
12345
3f56d3c6
MA
123462009-08-20 Michael Albinus <michael.albinus@gmx.de>
12347
12348 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
12349 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
12350 (xd_initialize, xd_pending_messages): Check, whether
12351 $DBUS_SESSION_BUS_ADDRESS is set.
12352
fb641d68
YM
123532009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12354
12355 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
12356
12357 * nsterm.m (ns_get_color): Remove incompatible color formats again.
12358
cf59a374
GM
123592009-08-20 Glenn Morris <rgm@gnu.org>
12360
12361 * emacs.c (system-type): Doc fix.
12362
1373f3be
SM
123632009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
12364
12365 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
12366 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
12367
058ed861
MA
123682009-08-18 Michael Albinus <michael.albinus@gmx.de>
12369
1373f3be
SM
12370 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
12371 New functions.
058ed861
MA
12372 (xd_initialize): Revert change from 2009-08-16.
12373
563a866e 123742009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
12375
12376 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 12377 font-group vector, return nil.
5fc05db0 12378
e42bdf01
CY
123792009-08-17 Chong Yidong <cyd@stupidchicken.com>
12380
12381 * process.c (status_notify): Don't perform redisplay.
12382 (Fdelete_process, list_processes_1, process_send_signal):
12383 Expliticly perform redisplay.
12384 (wait_reading_process_output): Always check process status, but
12385 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
12386
4230ab74
KR
123872009-08-17 Ken Raeburn <raeburn@raeburn.org>
12388
1373f3be 12389 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
12390 (XFLOAT_INIT): New macro for storing a float value.
12391 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
12392 * fns.c (sxhash): Copy out the value of a float in order to
12393 examine its bytes.
12394 * dbusbind.c (xd_append_arg): Likewise.
12395
4230ab74
KR
12396 * emacs.c (main): Don't call syms_of_data twice.
12397
a0645cdd
MA
123982009-08-16 Michael Albinus <michael.albinus@gmx.de>
12399
12400 * dbusbind.c (xd_initialize): Add connection file descriptor to
12401 input_wait_mask, in order to let select() detect, whether a new
12402 message has been arrived.
ca4f31ea 12403 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 12404
485db0ba
MA
124052009-08-15 Michael Albinus <michael.albinus@gmx.de>
12406
1373f3be
SM
12407 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
12408 New functions.
485db0ba
MA
12409
12410 * lisp.h (xd_pending_messages): Declare.
12411
12412 * keyboard.c (readable_events): Call xd_pending_messages.
12413
b5b98ff4
CY
124142009-08-15 Chong Yidong <cyd@stupidchicken.com>
12415
1373f3be 12416 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 12417
f8354c6e
CY
12418 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
12419
b5b98ff4
CY
12420 * buffer.c (set_buffer_internal_1)
12421 (swap_out_buffer_local_variables): Check for unbound local
12422 variables (Bug#4138).
12423
8b9fc636
EZ
124242009-08-14 Eli Zaretskii <eliz@gnu.org>
12425
12426 * process.c (create_pty): Fix last change.
12427
ce959360
CY
124282009-08-13 Chong Yidong <cyd@stupidchicken.com>
12429
12430 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
12431 (xbm_load_image): Caller changed.
64b807c9 12432 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 12433
c7baf7e9
NR
124342009-08-13 Nick Roberts <nickrob@snap.net.nz>
12435
12436 * process.c (create_pty): New function.
12437 (Fstart_process): Use it to allow Emacs to just associate a pty
12438 with the buffer. See associated change in gdb-mi.el.
12439 (list_processes_1): Deal with no program name.
12440 (start_process_unwind): Use pid == -2 to mean no process.
12441
1ac9108a
SM
124422009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
12443
12444 * cmds.c (nonundocount): New global variable.
12445 (keys_of_cmds): Initialize it.
12446 (Fself_insert_command): Use it to combine upto 20 sequential chars
12447 into a single undo entry, just like the Qself_insert_command code in
12448 keyboard.c does.
12449 Call frame_make_pointer_invisible, also like the Qself_insert_command
12450 code in keyboard.c does.
12451 * keyboard.c (command_loop_1): Use the new global nonundocount rather
12452 than its own local replacement for it.
12453
e267324c
KR
124542009-08-10 Ken Raeburn <raeburn@raeburn.org>
12455
1ac9108a 12456 * fns.c (concat): Don't re-set string length to its current value.
77437343 12457
1ac9108a
SM
12458 * coding.h (decode_coding_string, encode_coding_string):
12459 Use SBYTES macro.
f0bed503 12460
1ac9108a 12461 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
12462 (doprnt): Merge with doprnt1, discarding lispstrings code.
12463 * lisp.h (doprnt_lisp): Don't declare.
12464
416e006d
JL
124652009-08-07 Juri Linkov <juri@jurta.org>
12466
12467 * puresize.h (BASE_PURESIZE): Increase to 1270000.
12468
6f7d5780
DN
124692009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12470
12471 * print.c (syms_of_print): Undo previous change.
12472
f19a0f5b
TZ
124732009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
12474
12475 * lread.c (read1, syms_of_lread): Read hashtables back from the
12476 readable format.
12477
12478 * print.c (print_preprocess, print_object): Print hashtables fully
12479 and readably.
12480 (syms_of_print): Provide 'hashtable-print-readable.
12481
b9173dc2
AR
124822009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12483
12484 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
12485 no family set.
12486 (nsfont_open): Handle case when entity has no family.
12487
1586503c
AR
124882009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12489
12490 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
12491 element, not a list, for match case.
12492
087048cd
KH
124932009-07-28 Kenichi Handa <handa@m17n.org>
12494
12495 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
12496 rigidly.
12497
12498 * xfont.c (xfont_list_pattern): Don't ignore the return value of
12499 font_parse_xlfd. Check font properties more rigidly.
12500
780c2506
DN
125012009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12502
31fd7c5c
JB
12503 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
12504 bsd-common.h.
780c2506 12505
a8c0cc18
KH
125062009-07-27 Kenichi Handa <handa@m17n.org>
12507
12508 * xfaces.c (face_with_height): Call font_clear_prop.
12509
4fbe2306
CY
125102009-07-26 Chong Yidong <cyd@stupidchicken.com>
12511
111d9af3
CY
12512 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
12513
12514 * xterm.c (x_term_init): Use Qx.
12515
4fbe2306
CY
12516 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
12517
1ac9108a 12518 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
12519 (ns_get_color): Revert 2009-07-16 change.
12520
beb0b7f9
EZ
125212009-07-25 Eli Zaretskii <eliz@gnu.org>
12522
12523 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 12524 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 12525
2baf5e76
KR
125262009-07-25 Ken Raeburn <raeburn@raeburn.org>
12527
1ac9108a
SM
12528 * coding.h (decode_coding_string, encode_coding_string):
12529 Use SCHARS macro.
8890e5f5 12530
2baf5e76 12531 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 12532 (load_depth): Delete.
2baf5e76
KR
12533 (Qload_in_progress): New variable.
12534 (load_unwind): Don't reference load_depth or load_in_progress.
12535 (Fload): Likewise; specbind Qload_in_progress instead.
12536 (init_lread): Don't initialize load_depth.
12537 (syms_of_lread): Initialize and protect Qload_in_progress.
12538
1395c6f5
AR
125392009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12540
12541 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
12542
4e2f36cf
AR
125432009-07-23 Yavor Doganov <yavor@gnu.org>
12544
12545 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
12546
5dd9a6f7
AR
125472009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12548
12549 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
12550 Bugs 3792, 3720, 2402.
12551 (ns_lookup_indexed_color): Check for bad index.
12552 (ns_index_color): Init unused slot to 0.
12553 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
12554 Bug 3714, possibly 3082.
5dd9a6f7 12555
c902b920
JR
125562009-07-22 Jason Rumney <jasonr@gnu.org>
12557
1ac9108a
SM
12558 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
12559 Position IME window at cursor (Bug#2570).
c902b920
JR
12560 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
12561 (globals_of_w32fns): Dynamically load functions required above.
12562
12563 * w32term.c (w32_draw_window_cursor): Send message to reposition
12564 any IME window.
12565
090101cf
CY
125662009-07-21 Chong Yidong <cyd@stupidchicken.com>
12567
12568 * fileio.c: Revert 2009-07-16 changes.
12569 (Vauto_save_include_big_deletions): New variable.
12570 (Fdo_auto_save): Disable auto-save only if
12571 auto-save-include-big-deletions is nil.
12572
e6583e3d
CY
125732009-07-21 Chong Yidong <cyd@stupidchicken.com>
12574
12575 * xdisp.c (move_it_to): For continued lines ending in a tab, take
12576 the overflowed pixels into account (Bug#3879).
12577
ece435a5
KR
125782009-07-21 Ken Raeburn <raeburn@raeburn.org>
12579
12580 * lread.c (load_depth): New variable.
12581 (Fload, load_unwind, init_lread): Set it to the load recursion
12582 depth; set load_in_progress as a simple boolean based on the
12583 current load_depth. (Bug#3892)
12584
40b2d973
AR
125852009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12586
12587 * nsfont.m (ns_has_attribute): Remove.
12588 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
12589
10be7e0d
JL
125902009-07-18 Juri Linkov <juri@jurta.org>
12591
12592 * process.c (Fset_process_query_on_exit_flag): Mention killing
12593 a buffer in docstring.
12594
fa055055
KH
125952009-07-17 Kenichi Handa <handa@m17n.org>
12596
12597 * casetab.c (shuffle): Fix the logic of setting up the cycle.
12598
042f7b69
YM
125992009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12600
12601 * nsfns.m (Fns_set_alpha): Remove function.
12602 (syms_of_nsfns): Don't defsubr it.
12603
12604 * nsterm.m (ns_get_color): Remove incompatible color formats.
12605 (ns_color_to_lisp): Generate #rrggbb color format string.
12606
4be941e3
RS
126072009-07-16 Richard Stallman <rms@gnu.org>
12608
12609 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
12610 (Fset_buffer_auto_saved): Handle save_length = -2.
12611
4e6b227d
CY
126122009-07-16 Chong Yidong <cyd@stupidchicken.com>
12613
12614 * xterm.c (Qx_gtk_map_stock): New var.
12615
12616 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
12617 of calling intern each time.
12618
a1856973
YM
126192009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12620
12621 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
12622 does tiling.
12623
12624 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
12625
497e54d8
KH
126262009-07-14 Kenichi Handa <handa@m17n.org>
12627
72d36834
KH
12628 * font.c (font_vconcat_entity_vectors): New function.
12629 (struct font_sort_data): New member font_driver_preference.
12630 (font_compare): Check font_driver_preference.
12631 (font_sort_entities): The format of the first argument changed.
12632 (font_delete_unmatched): Likewise.
12633 (font_list_entities): The return type changed.
12634 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
12635 (font_find_for_lface): Adjuste for the above changes.
12636 Don't suppress the checking of C even if the repertory supports it.
12637 (Flist_fonts): Adjust for the above changes.
72d36834 12638
1ac9108a
SM
12639 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
12640 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
12641 Reject a font who has adstyle property that is different from a
12642 langname derived from registry property.
1ac9108a 12643 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 12644
b6046155
EZ
126452009-07-13 Eli Zaretskii <eliz@gnu.org>
12646
12647 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
12648 local copy of dirfilename.
12649
fb6b6049
KH
126502009-07-13 Kenichi Handa <handa@m17n.org>
12651
e2402a5e
KH
12652 * chartab.c (sub_char_table_ref_and_range): Fix the range check
12653 against max_char.
12654
fb6b6049
KH
12655 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
12656 calling XSYMBOL (sym).
12657
65156807
EZ
126582009-07-11 Eli Zaretskii <eliz@gnu.org>
12659
1ac9108a
SM
12660 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
12661 New function.
12662 (directory_files_internal) [WINDOWSNT]:
12663 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
12664 the filesystem of the directory is fast or slow.
12665
12666 * w32.c (logon_network_drive): Don't assume PATH is an absolute
12667 file name.
12668 (is_slow_fs): New function.
12669 (stat): Use it to determine whether to issue more system calls to
12670 get accurate file attributes, when w32-get-true-file-attributes is
12671 `local'.
12672
e0ab5fcf
JD
126732009-07-10 Jan Djärv <jan.h.d@swipnet.se>
12674
12675 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 12676 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
12677 parameter font-parameter as default to the font dialog.
12678
784ceded
KH
126792009-07-10 Kenichi Handa <handa@m17n.org>
12680
12681 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
12682
fb8edc0b
EZ
126832009-07-09 Eli Zaretskii <eliz@gnu.org>
12684
1ac9108a 12685 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 12686
fb8edc0b
EZ
12687 * w32.c (stat): Treat UNC file names as residing on remote
12688 drives. (Bug#3542)
12689
635c75b1
KH
126902009-07-09 Kenichi Handa <handa@m17n.org>
12691
12692 * fontset.c (fontset_find_font): Fix previous change.
12693
c1d5ce94
MA
126942009-07-08 Michael Albinus <michael.albinus@gmx.de>
12695
12696 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
12697 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
12698 error flag.
12699
edb61b39
KH
127002009-07-08 Kenichi Handa <handa@m17n.org>
12701
374bf7e4
KH
12702 * fontset.c (fontset_find_font): Fix the logic of handling
12703 charset_matched.
12704 (font_for_char): Delete unused var.
12705 (generate_ascii_font_name): Delete it.
12706
edb61b39
KH
12707 * coding.h (JIS_TO_SJIS2): Fix the code range check.
12708
12709 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
12710 (encode_coding_sjis): Fix the code range check.
12711
0f3f018c
CY
127122009-07-07 Chong Yidong <cyd@stupidchicken.com>
12713
12714 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
12715 (Fexpand_file_name): Copy string data properly (Bug#3772).
12716
fcaf6f3a
JD
127172009-07-07 Jan Djärv <jan.h.d@swipnet.se>
12718
12719 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
12720 first MapNotify.
12721
6809ca75
KH
127222009-07-07 Kenichi Handa <handa@m17n.org>
12723
12724 * character.h (unibyte_has_multibyte_table): Delete extern.
12725 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
12726
12727 * charset.c (Fset_charset_priority): Update charset_unibyte.
12728 (syms_of_charset): Initialize charset_unibyte.
12729
12730 * character.c (unibyte_has_multibyte_table): Delete it.
12731 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
12732 charset_unibyte.
12733 (multibyte_char_to_unibyte_safe): Likewise.
12734 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
12735
1ac9108a 12736 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
12737 (x_produce_glyphs): Likewise.
12738
12739 * .gdbinit (xcharset): Fix the treating $arg0.
12740
ad9e2d54
EZ
127412009-07-04 Eli Zaretskii <eliz@gnu.org>
12742
12743 Emulation of `getloadavg' on MS-Windows.
50426a04 12744 * w32.c: Include float.h.
ad9e2d54
EZ
12745 (g_b_init_get_native_system_info, g_b_init_get_system_times)
12746 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
12747 (get_native_system_info, get_system_times): New functions.
12748 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
12749 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
12750 (globals_of_w32): Initialize g_b_init_get_native_system_info,
12751 g_b_init_get_system_times, and num_of_processors.
12752
0a3472c7
JR
127532009-07-03 Jason Rumney <jasonr@gnu.org>
12754
12755 * w32term.c (w32_initialize): Use standard types.
12756
80904120
EZ
127572009-07-03 Eli Zaretskii <eliz@gnu.org>
12758
12759 * dired.c (Ffile_attributes): Decode user and group names by the
12760 locale's encoding. (Bug#3443)
12761
6978862d
DN
127622009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
12763
f8d23104
DN
12764 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
12765 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
12766
12767 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
12768
12769 * term.c (init_tty): Remove spurious #ifdef.
12770
6978862d
DN
12771 * m/mips.h: Mention this file is also used for netbsd.
12772 * m/pmax.h: Remove file.
12773
e044e4fc
JD
127742009-07-03 Jan Djärv <jan.h.d@swipnet.se>
12775
12776 * xterm.h (struct x_display_info): Add invisible_cursor.
12777 (struct x_output): Add current_cursor.
12778
12779 * xterm.c (XTtoggle_invisible_pointer): New function.
12780 (x_define_frame_cursor): Don't define cursor if invisible or the
12781 same as before. Set current_cursor.
12782 (x_create_terminal): Set toggle_invisible_pointer_hook.
12783
12784 * xfns.c (make_invisible_cursor): New function.
12785 (x_set_mouse_color): Call make_invisible_cursor.
12786 Set current_cursor.
12787 (x_window): Set current_cursor.
12788
12789 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
12790
12791 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
12792 inserting a character.
12793 (read_avail_input): Call frame_make_pointer_visible.
12794
12795 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
12796 (frame_make_pointer_invisible, frame_make_pointer_visible):
12797 New functions.
e044e4fc
JD
12798 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
12799
12800 * frame.h: Declare frame_make_pointer_invisible and
12801 frame_make_pointer_visible.
12802 (struct frame): Add pointer_invisible.
12803
574c8efa
JD
128042009-07-02 Jan Djärv <jan.h.d@swipnet.se>
12805
7b507248
JD
12806 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
12807 frame isn't visible.
12808 (xg_frame_resized): If width/height is -1, get size of window
12809 from X server.
12810
12811 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
12812 for MapNotify.
12813
835bdaa7 12814 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 12815 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 12816 (flush_and_sync): Reintroduce.
574c8efa 12817
3f1c6666 128182009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 12819
31fd7c5c 12820 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
12821
12822 * xterm.c (x_handle_net_wm_state): Also look for sticky.
12823 (x_term_init): Initialize Xatom_net_wm_state_sticky.
12824
12825 * frame.h: Declare Qsticky.
12826
cad9ef74
JD
12827 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
12828
12829 * nsfns.m (ns_frame_parm_handlers): Ditto.
12830
12831 * frame.c: Declare Qsticky.
12832 (frame_parms): Add sticky.
12833
12834 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
12835
12836 * xterm.h: Declare x_set_sticky.
12837
12838 * xterm.c (x_set_sticky): New function.
12839
69b16610
JD
12840 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
12841 (xg_tool_bar_menu_proxy): Attach enter/leave events to
12842 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
12843
12844 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
12845
12846 * frame.c: Qmaximized is new.
12847 (x_set_frame_parameters): Do not handle fullscreen specially.
12848 Only set width and height if explicitly set.
12849 (x_set_fullscreen): Handle Qmaximized.
12850 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
12851 (syms_of_frame): Initialize Qmaximized.
12852
1ac9108a
SM
12853 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
12854 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
12855
12856 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
12857 for Expose event. Add call to x_check_fullscreen for MapNotify event.
12858 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
12859 set gravity to NorthWestGravity when USE_GTK.
12860 (set_wm_state): New function.
31fd7c5c 12861 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
12862 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
12863 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 12864 or the case when no window manager is running. That means remove calls
3f1c6666
JD
12865 to x_real_positions and x_fullscreen_adjust.
12866
12867 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
12868 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
12869 flush_and_sync.
12870 (xg_height_changed): New function.
12871 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
12872 and gtk_window_set_policy. Set frame gravity after parsing the
12873 geometry string.
3f1c6666
JD
12874 (xg_update_frame_menubar, free_frame_menubar)
12875 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12876 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
12877 Remove calls to xg_frame_set_char_size.
12878
fd503d99
KH
128792009-07-01 Kenichi Handa <handa@m17n.org>
12880
12881 * keyboard.c (decode_keyboard_code): New function.
12882 (tty_read_avail_input): Decode the input bytes if necessary.
12883
1ac9108a
SM
12884 * coding.c (setup_coding_system):
12885 Initialize coding->carryover_bytes to 0.
fd503d99
KH
12886 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
12887 use Qno_conversion.
12888
24ed93fb
YM
128892009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12890
12891 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
12892
99061dfc
CY
128932009-06-30 Chong Yidong <cyd@stupidchicken.com>
12894
1ac9108a 12895 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 12896
ff90fbde
JR
128972009-06-30 Jason Rumney <jasonr@gnu.org>
12898
12899 * w32term.c (w32_initialize): Use GetModuleHandle for library that
12900 is already loaded.
12901 Set user model ID if supported (bug#1849).
12902
5f445726
JM
129032009-06-29 Jim Meyering <meyering@redhat.com>
12904
12905 Remove useless if-before-xfree test.
12906 * nsfont.m (nsfont_close): Remove useless test.
12907 * term.c (delete_tty): Likewise.
12908 * w32.c (system_process_attributes): Likewise.
12909 * w32font.c (w32font_close): Likewise.
12910 * xfaces.c (x_free_gc): Likewise.
12911 * xselect.c (buffer): Likewise.
12912
b9607587
AS
129132009-06-28 Andreas Schwab <schwab@linux-m68k.org>
12914
12915 * process.c (send_process): Keep decoded string in a local
12916 variable and protect it from GC. (Bug#3521)
12917
89ba96f4
EZ
129182009-06-28 Eli Zaretskii <eliz@gnu.org>
12919
12920 * term.c (create_tty_output) [MSDOS]: #ifdef away.
12921 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
12922
098a1589
CY
129232009-06-28 Chong Yidong <cyd@stupidchicken.com>
12924
485422be
CY
12925 * xdisp.c (start_display, handle_face_prop)
12926 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
12927 (redisplay_window, try_window_id, produce_image_glyph):
12928 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 12929
098a1589
CY
12930 * xterm.c (x_update_window_begin, x_new_focus_frame)
12931 (x_scroll_bar_handle_click, handle_one_xevent)
12932 (handle_one_xevent, XTread_socket, x_focus_on_frame)
12933 (x_make_frame_visible, x_make_frame_invisible)
12934 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
12935 code chunks that are now obsolete.
12936
78c38319
MA
129372009-06-28 Michael Albinus <michael.albinus@gmx.de>
12938
12939 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
12940 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
12941 for hours, when optimzation is enabled.
12942 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
12943 (xd_read_message): Make them static.
12944
4189ed40
CY
129452009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
12946
12947 * term.c (turn_on_face): Allow simultaneously bold and dim
12948 terminal faces (Bug#3530).
12949
cd9b5e16
CY
129502009-06-27 Chong Yidong <cyd@stupidchicken.com>
12951
4e23bedb
CY
12952 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
12953
cd9b5e16
CY
12954 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
12955 truncation glyphs (Bug#3686).
12956
07cc3c35
GM
129572009-06-27 Glenn Morris <rgm@gnu.org>
12958
12959 * m/pmax.h: Restore file, with only netbsd portions.
12960
31fd7c5c 129612009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 12962
cd9b5e16 12963 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 12964
42d4a64f
KH
129652009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
12966
12967 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
12968 the arg FORCE_SYMBOL.
12969
930fe55b 129702009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
12971
12972 * fontset.c (fontset_find_font): When a usable rfont_def is found
12973 in a fallback font-group, make it the first element of the group.
12974
57ebc3fd
CY
129752009-06-24 Chong Yidong <cyd@stupidchicken.com>
12976
12977 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
12978
f084f942
KH
129792009-06-24 Kenichi Handa <handa@m17n.org>
12980
12981 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
12982 set for C.
12983 (fontset_font): Record the availability of a font for C both in
12984 the realized fontsets of the current one and the default one.
12985
2f686c87
DN
129862009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
12987
12988 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
12989 conditional, it is always defined on AIX.
12990
666e158e
MB
129912009-06-23 Miles Bader <miles@gnu.org>
12992
12993 * window.c (Vrecenter_redisplay): New variable.
12994 (syms_of_window): Initialize it.
12995 (Qtty): New extern declaration.
12996 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
12997
c6da7cd2
JM
129982009-06-23 Jim Meyering <meyering@redhat.com>
12999
1ac9108a
SM
13000 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13001 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 13002 pointer dereferences are guaranteed to be valid.
c6da7cd2 13003
678dca3d
KH
130042009-06-23 Kenichi Handa <handa@m17n.org>
13005
74d75424
KH
13006 * emacs.c (main): Call init_font ().
13007
13008 * font.h (Vfont_log): Extern it.
13009 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13010
13011 * font.c (font_sort_entities, font_list_entities)
13012 (font_matching_entity, font_open_entity)
13013 (font_close_object): Change font_add_log to FONT_ADD_LOG.
13014 (Vfont_log): Delete static.
13015 (font_log_env_checked): Delete this variable.
13016 (font_add_log): Don't check font_log_env_checked.
13017 (font_deferred_log): Check Vfont_log.
13018 (init_font): New function.
13019
678dca3d
KH
13020 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13021
13022 * w32font.c: Change font_add_log to FONT_ADD_LOG.
13023
13024 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
13025
13026 * xfont.c: Change font_add_log to FONT_ADD_LOG.
13027
13028 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
13029 (face_for_char): Don't call font_deferred_log here.
13030 (font_for_char): Likewise.
13031
8a668709
CY
130322009-06-22 Chong Yidong <cyd@stupidchicken.com>
13033
9a01ee33
CY
13034 * w32term.c (x_draw_glyph_string): Use the glyph string's width
13035 rather than its background_width for drawing the overline and
13036 underline (Bug#489).
13037
13038 * xterm.c (x_draw_glyph_string): Use the glyph string's width
13039 rather than its background_width for drawing the overline and
13040 underline (Bug#489).
ec7c9926
CY
13041 (xg_default_icon_file): New variable.
13042 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
13043 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 13044
8a668709
CY
13045 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
13046 (load_overlay_strings): Remove externs.
13047 (fast_find_position): Function deleted.
13048 (mouse_face_from_buffer_pos): New function, based on
13049 fast_find_position. Correctly handle before-strings,
13050 display-strings, and after-strings (Bug#1220).
13051 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
13052
4d4c02d8
CY
130532009-06-21 Chong Yidong <cyd@stupidchicken.com>
13054
1ac9108a 13055 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
13056 (move_it_in_display_line_to, move_it_in_display_line_to)
13057 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
13058
70243478
CY
130592009-06-21 Chong Yidong <cyd@stupidchicken.com>
13060
13061 * Branch for 23.1.
13062
13087e59
JR
130632009-06-21 Jason Rumney <jasonr@gnu.org>
13064
13065 * w32term.c (keyboard_codepage): New static variable.
13066 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
13067 (w32_read_socket) [WM_CHAR]: Use it to decode character
13068 input (bug#3237).
13069 (w32_initialize): Initialize it.
13070 (codepage_for_locale): New function.
13071
4735b74e
KR
130722009-06-20 Ken Raeburn <raeburn@raeburn.org>
13073
13074 * process.c (status_message): Pass Faset index argument as a lisp
13075 object, so as to work with USE_LISP_UNION_TYPE.
13076
0e727afa
YM
130772009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13078
13079 * coding.c (Ffind_coding_systems_region_internal):
13080 Cache checked characters.
13081
cf299835
KH
130822009-06-18 Kenichi Handa <handa@m17n.org>
13083
1ac9108a 13084 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 13085
90f20d94
AS
130862009-06-18 Andreas Schwab <aschwab@redhat.com>
13087
13088 * xdisp.c (redisplay_internal): Check that the frame is still
13089 live after redisplay of its windows.
13090 (redisplay_windows): Check that the window is still live.
13091
7f1faf1c
KH
130922009-06-17 Andreas Schwab <schwab@linux-m68k.org>
13093
13094 * coding.c (detect_coding_utf_16): Fix previous change.
13095
cc13543e
KH
130962009-06-16 Kenichi Handa <handa@m17n.org>
13097
13098 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
13099 UTF-16 by checking the dispersion of Eth and Oth bytes.
13100
977b85f4
AS
131012009-06-15 Andreas Schwab <schwab@linux-m68k.org>
13102
13103 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
13104
66bd43d1
KH
131052009-06-15 Kenichi Handa <handa@m17n.org>
13106
13107 * process.c (status_message): Fix previous change. Be sure to
13108 decode a localized string.
13109
cb5ca9c5
YM
131102009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13111
13112 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
13113 add comment explaining why.
13114
ec7709ba 131152009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 13116
ec7709ba 13117 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 13118
4b7f335c
AR
131192009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
13120
13121 * nsfont.m (ns_attribute_value): Remove.
13122 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
13123 (ns_has_attribute): Shrink the normal range.
13124 (ns_findfonts): Don't worry about requested spec in determining
13125 need for synthItal.
e41820ee 13126 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 13127
73b26103
SZ
131282009-06-14 Seiji Zenitani <zenitani@mac.com>
13129
13130 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
13131
5753e4da
KH
131322009-06-11 Kenichi Handa <handa@m17n.org>
13133
13134 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13135 overhang for the static composition case.
13136
3561b671
KH
131372009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13138
5753e4da
KH
13139 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13140 overhang for the automatic composition case.
13141
3561b671
KH
13142 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
13143 composition case.
13144
852bbd41
CY
131452009-06-10 Chong Yidong <cyd@stupidchicken.com>
13146
13147 * xdisp.c (get_next_display_element): When handling wrap-prefix
13148 and line-prefix, treat \n as a control character (bug#3502).
13149
9903d1e6
KH
131502009-06-10 Kenichi Handa <handa@m17n.org>
13151
13152 * font.c (font_parse_family_registry): Fix for one-char foundry.
13153 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
13154
0bcbaaaa
CY
131552009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
13156
13157 * process.c (status_message): Fix handling of multibyte signal
13158 string (Bug#3499).
13159
40aa3f13
JM
131602009-06-09 Jim Meyering <meyering@redhat.com>
13161
1f80c7e2
CY
13162 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
13163 color name is missing.
40aa3f13 13164
72d51285
KH
131652009-06-09 Kenichi Handa <handa@m17n.org>
13166
13167 * charset.c (Fmap_charset_chars): In docstring, state clearly that
13168 FROM-CODE and TO-CODE are codepoints of CHARSET.
13169
c1d04d84
AR
131702009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13171
13172 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
13173
131742009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13175
13176 Changes to support :script/:lang/:otf in NS font driver.
13177 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
13178 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
13179 indicate not part of font driver interface, and change callers.
13180 (ns_get_family): Remove pointless null check.
13181 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
13182 ns_spec_to_descriptor, ns_descriptor_to_entity.
13183 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
13184 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
13185 (ns_spec_to_descriptor, ns_descriptor_to_entity)
13186 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
13187 (ns_get_req_script, ns_accumulate_script_ranges)
13188 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
13189 New functions.
13190 (nsfont_list, nsfont_match): Use ns_findfonts.
13191 (nsfont_open): Use font descriptor instead of traits.
13192 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
13193 (dump_glyphstring): Rename to ns_dump_glyphstring.
13194
c7eb9816
AR
13195 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
13196
c1d04d84
AR
13197 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
13198
13199 * fontset.c (fontset_from_font): Remove NS-specific code.
13200
ec7709ba 132012009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
13202
13203 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
13204 nonactive windows.
13205
31fd7c5c 132062009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 13207
1ac9108a 13208 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 13209
68852c13 132102009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
13211
13212 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
13213
6756cd1d
CY
132142009-06-07 Chong Yidong <cyd@stupidchicken.com>
13215
13216 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
13217 account for the overflowing of newlines into the last glyph on the
13218 display line (Bug#3482).
13219
28bf482a
DR
132202009-06-05 David Reitter <david.reitter@gmail.com>
13221
ec7709ba
JB
13222 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
13223 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
13224 Fns_selection_exists_p, Fns_selection_owner_p.
13225
fdb55376
JR
132262009-06-03 Jason Rumney <jasonr@gnu.org>
13227
13228 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
13229 available. (Bug#3379)
13230
05129fbe
KH
132312009-05-29 Kenichi Handa <handa@m17n.org>
13232
1ac9108a
SM
13233 * coding.c (get_translation_table):
13234 Check Venable_character_translation.
05129fbe 13235
ec7709ba 132362009-05-26 David Reitter <david.reitter@gmail.com>
15891144 13237
ec7709ba
JB
13238 * nsterm.m (ns_raise_frame): Only raise frame if visible.
13239 (x_make_frame_visible): Move frame to front rather than calling
15891144 13240 ns_raise_frame().
ec7709ba 13241 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 13242 isn't key window.
ec7709ba 13243 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
13244 drawRect may be called by NSView even if the frame is hidden.
13245
ec7709ba
JB
13246 * nsfns.m (Fx_create_frame): Follow other ports in
13247 determining visibility; default to t. Ensure async_visible is set.
15891144 13248
21f73755
EZ
132492009-05-23 Eli Zaretskii <eliz@gnu.org>
13250
13251 * dired.c (Ffile_attributes): Doc fix.
13252
34001e41
CY
132532009-05-22 Chong Yidong <cyd@stupidchicken.com>
13254
13255 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
13256
46306a17
SM
132572009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
13258
13259 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
13260 and xfont_scratch_props.
13261 (syms_of_xfont): Do it here instead.
13262 (xfont_find_ccl_program): Delete, unused.
13263 (xfont_open): Delete unused var `i'.
13264
ef6e0694
KH
132652009-05-21 Kenichi Handa <handa@m17n.org>
13266
13267 * fontset.c (Qlatin): Don't make it static.
13268
46306a17
SM
13269 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
13270 New functions.
ef6e0694
KH
13271 (xfont_scripts_cache, xfont_scratch_props): New variables.
13272 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
13273 (xfont_list_pattern): Argument changed. Callers changed.
13274 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
13275 (xfont_list): Don't reject a font spec with :script property.
13276 (xfont_has_char): Fix setting of encoding.
13277 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
13278 xfont_scratch_props.
13279
132802009-05-19 Kenichi Handa <handa@m17n.org>
13281
46306a17 13282 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
13283 Callers changed.
13284
132852009-05-18 Kenichi Handa <handa@m17n.org>
13286
13287 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
13288
ac71ced7
SM
132892009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13290
13291 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
13292 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
13293
1c6d1051
YM
132942009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13295
13296 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
13297 (x_delete_terminal): Dissociate resource database from display and
13298 then call XrmDestroyDatabase before closing display.
13299
9b9b779c
AR
133002009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
13301
13302 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
13303 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
13304 whether selected frame is viable before raising it (based on patch
13305 by David Reitter), and improve commentary.
13306 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 13307
cccd42d5
KH
133082009-05-15 Kenichi Handa <handa@m17n.org>
13309
13310 * font.c (Ffont_spec): Check arguments.
13311
337fbd17
CY
133122009-05-14 Chong Yidong <cyd@stupidchicken.com>
13313
13314 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
13315 weight when testing attributes (Bug#3282).
13316
47a6002f
JD
133172009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13318
13319 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
13320 what we expect to get in the next ConfigureNotify event.
13321
9cb363db
YM
13322 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
13323 before Xft one (Bug#1696).
13324
b9126609
CY
133252009-05-07 David Reitter <david.reitter@gmail.com>
13326
13327 * nsfns.m (Fx_display_planes): Compute bitplanes using
13328 NSBitsPerPixelFromDepth (Bug#3207).
13329
27a69fd9
CY
133302009-05-10 Chong Yidong <cyd@stupidchicken.com>
13331
13332 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
13333
00f37552
TTN
133342009-05-10 Ulrich Mueller <ulm@gentoo.org>
13335
13336 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
13337
2d82a920
DR
133382009-05-07 David Reitter <david.reitter@gmail.com>
13339
ec7709ba
JB
13340 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
13341 Respect mouse face background.
2d82a920 13342
46b0d52d
DR
133432009-05-07 David Reitter <david.reitter@gmail.com>
13344
ec7709ba
JB
13345 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
13346 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
13347 in ns_update_begin and ns_update_end.
13348
ce1b23bb
SM
133492009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13350
5996e1b7
SM
13351 * nsfns.m (ns_get_screen): Rewrite.
13352 Don't presume selected-frame is of type `ns'.
13353
ba98e3a0
SM
13354 * font.c (font_update_drivers): Sanity fallback to avoid disabling
13355 all drivers.
13356
ce1b23bb
SM
13357 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
13358
bcda200f
YM
133592009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13360
13361 * keyboard.h (add_user_signal): Fix typo in extern.
13362
13363 * lisp.h (add_user_signal): Remove extern.
13364
13365 * unexelf.c (unexec): Consider a section to precede the .bss section
13366 if its addresses overlap that of .bss.
13367 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
13368 instead of dumping process.
13369
864660a2
SM
133702009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13371
13372 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
13373
50da4e56
SM
133742009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
13375
13376 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
13377
51520a1a
DN
133782009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
13379
13380 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
13381 any statements.
13382
409ea3a1
AS
133832009-05-02 Andreas Schwab <schwab@linux-m68k.org>
13384
59c4c60f
AS
13385 * process.c (read_process_output): Make sure the current buffer is
13386 always restored.
13387
409ea3a1
AS
13388 * coding.c (record_conversion_result): Don't modify
13389 Vlast_code_conversion_error for successful result.
13390 (alloc_destination): Don't clobber conversion result. (Bug#1650)
13391
56f00ed2
KH
133922009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13393
13394 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 13395 (load_charset_map): Remove unnecessary code.
56f00ed2 13396
4491c9d2
DR
133972009-04-30 David Reitter <david.reitter@gmail.com>
13398
35f5b128 13399 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
13400 through f24.
13401
6970f632
CY
134022009-04-30 Chong Yidong <cyd@stupidchicken.com>
13403
13404 * xfaces.c (face_at_buffer_position): New arg base_face_id.
13405
13406 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
13407 face_at_buffer_position.
13408 (face_before_or_after_it_pos, get_next_display_element)
13409 (note_mouse_highlight): Update face_at_buffer_position call.
13410
13411 * term.c (term_mouse_highlight):
13412 * msdos.c (IT_note_mouse_highlight):
13413 * fontset.c (Finternal_char_font):
35f5b128 13414 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
13415
13416 * dispextern.h (face_at_buffer_position): Update prototype.
13417
0c616f63
KH
134182009-04-30 Kenichi Handa <handa@m17n.org>
13419
35f5b128 13420 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 13421
ad3aaf33
AS
134222009-04-29 Andreas Schwab <schwab@linux-m68k.org>
13423
13424 * callproc.c (Fcall_process): Fix GC protection. Make sure
13425 current buffer is always restored.
13426
c3c963a0
YM
134272009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13428
13429 * atimer.c (init_atimer): Also clear stopped_atimers.
13430
13431 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
13432
7e3386cb
YM
13433 * process.c (create_process): Clean up merger residues of
13434 2008-07-17 change.
13435
91f68422
CY
134362009-04-29 Ulrich Mueller <ulm@gentoo.org>
13437
13438 * lread.c (Vread_circle): New variable.
13439 (read1): Disable recursive read if Vread_circle is nil.
13440
24b34550
KH
134412009-04-29 Kenichi Handa <handa@m17n.org>
13442
13443 * fontset.h (set_default_ascii_font): Delete extern.
13444
13445 * fontset.c (set_default_ascii_font): Delete this unused function.
13446
13447 * frame.c (x_set_font): When ARG is a font-object, check if the
13448 font-object matches with the ASCII font-spec of the frame's
9c358bda 13449 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 13450
77bf07e1
AS
134512009-04-28 Andreas Schwab <schwab@linux-m68k.org>
13452
13453 * fns.c (Flocale_info): Protect vector from GC during decoding.
13454
13455 * process.c (Fstart_process): Protect argv strings from GC during
13456 encoding.
13457
2c55aacf
AS
134582009-04-27 Andreas Schwab <schwab@linux-m68k.org>
13459
13460 * sysdep.c: Include <ctype.h>.
13461
b892d3c9
DR
134622009-04-27 David Reitter <david.reitter@gmail.com>
13463
35f5b128 13464 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
13465 Remove commented-out code.
13466
9d0644c4
JB
134672009-04-26 Johan Bockgård <bojohan@gnu.org>
13468
13469 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
13470
b7053016
JR
134712009-04-25 Jason Rumney <jasonr@gnu.org>
13472
13473 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
13474
4e8231f3
YM
134752009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13476
13477 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
13478 Swap bytes in short integer if fringe bitmap width > 8.
13479
493dcf2c
KH
134802009-04-23 Kenichi Handa <handa@m17n.org>
13481
13482 * xfaces.c (Fx_list_fonts): If a font size is specified in
13483 PATTERN, set it in returned scalable fonts.
13484
401e9e57
CY
134852009-04-22 Chong Yidong <cyd@stupidchicken.com>
13486
708e05dc
CY
13487 * keyboard.c (Fset_input_meta_mode): Doc fix.
13488
13489 * dispnew.c (Fsend_string_to_terminal): Doc fix.
13490
1ac9108a 13491 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
13492
13493 * coding.c (Fterminal_coding_system): Doc fix.
13494
13495 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
13496 (Fx_display_pixel_height, Fx_display_planes)
13497 (Fx_display_color_cells, Fx_server_max_request_size)
13498 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13499 (Fx_display_mm_height, Fx_display_mm_width)
13500 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
13501 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
13502 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
13503 (check_x_display_info): Handle terminal objects instead of
13504 terminal ids.
13505
401e9e57
CY
13506 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
13507 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
13508 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
13509 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 13510
df80c7f0
KH
135112009-04-21 Kenichi Handa <handa@m17n.org>
13512
5a8f12af 13513 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 13514 (font_score): Check AVGWIDTH too.
908567ef 13515
df80c7f0
KH
13516 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
13517 worst case.
1ac9108a
SM
13518 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
13519 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 13520
705af33f
JR
135212009-04-19 Jason Rumney <jasonr@gnu.org>
13522
13523 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 13524 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
13525
13526 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
13527 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
13528 get_phys_cursor_geometry.
13529
b71ac3dd 13530 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
13531 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
13532 using get_phys_cursor_geometry.
13533
13534 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
13535 correctly calculated.
13536
dc2933eb
JD
135372009-04-19 Jan Djärv <jan.h.d@swipnet.se>
13538
1ac9108a
SM
13539 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
13540 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
13541 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
13542 is deprecated.
13543
973e7849
AS
135442009-04-18 Andreas Schwab <schwab@linux-m68k.org>
13545
13546 * font.c (font_put_frame_data): Use xfree instead of free.
13547
314d66f4
JB
135482009-04-17 Juanma Barranquero <lekktu@gmail.com>
13549
13550 * w32font.c (Qja, Qko): Remove declarations.
13551 (syms_of_w32font): Don't DEFSYM them.
13552
cf702558
CY
135532009-04-17 Chong Yidong <cyd@stupidchicken.com>
13554
13555 * font.c (Qja, Qko): Move definitions here from ftfont.c.
13556
13557 * font.h (Qja, Qko): Extern them.
13558
13559 * ftfont.c (Qja, Qko): Remove declarations.
13560
13561 * xfont.c (Qja, Qko): Remove declarations.
13562
b50504f5
KH
135632009-04-17 Kenichi Handa <handa@m17n.org>
13564
bde25748
KH
13565 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
13566 string from a vector to handle Latin-1 characters correctly.
13567
b50504f5
KH
13568 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
13569 entity even if the cache hits.
13570
f4646fff
AS
135712009-04-16 Andreas Schwab <schwab@linux-m68k.org>
13572
13573 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 13574 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 13575
e7deaab0
AS
13576 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
13577 * lisp.h: Adjust prototypes.
13578
0a0e7d49
CY
135792009-04-16 Chong Yidong <cyd@stupidchicken.com>
13580
13581 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
13582 change (Bug#3003).
13583
3c908a57
KH
135842009-04-16 Kenichi Handa <handa@m17n.org>
13585
1ac9108a 13586 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
13587
13588 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
13589 adstyle.
13590
13591 * ftfont.c (Qja, Qko): Don't make them static.
13592 (enum ftfont_cache_for): New enum.
13593 (fc_charset_table): Undo the previous change.
13594 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
13595 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
13596 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
13597 non-scarable font, try to get AVERAGE_WIDTH.
13598 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
13599 Change ft_face_cache from a list of a hash-table. Don't check
13600 `ja' and `ko' adstyle here.
13601 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
13602 FTFONT_CACHE_FOR_CHARET.
13603 (ftfont_get_charset): Undo the previous change.
1ac9108a 13604 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
13605 (ftfont_close): Likewise.
13606 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
13607
13608 * font.c (font_sort_entites): Change the meaning of the arg
13609 BEST-ONLY. Don't optimize for VEC of lenght 1.
13610 (font_select_entity): Just return the value of font_sort_entites.
13611
13612 * xfaces.c (merge_face_vectors): Reflect font properties in
13613 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
13614 font_clear_prop if a face attribute doesn't change.
13615
3c908a57
KH
13616 * charset.h (charset_ksc5601): Extern it.
13617
13618 * charset.c (charset_ksc5601): New variable.
13619 (Fdefine_charset_internal): Set charset_ksc5601.
13620 (init_charset_once): Initialize charset_ksc5601 to -1.
13621
d65859c3
DN
136222009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
13623
13624 * fileio.c (history_delete_duplicates): Remove unused declaration.
13625
13626 * callint.c (history_delete_duplicates): New declaration.
13627 (Fcall_interactively): Remove command history duplicates when
13628 history_delete_duplicates is true.
13629
3ba010e5
EZ
136302009-04-14 Eli Zaretskii <eliz@gnu.org>
13631
13632 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
13633
06f19b91
KH
136342009-04-14 Kenichi Handa <handa@m17n.org>
13635
13636 * font.c (Ffont_info): Fix docstring. Fix the second element of
13637 the returned value (bug#2949).
13638
2cce8bfc
CY
136392009-04-14 Chong Yidong <cyd@stupidchicken.com>
13640
13641 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
13642
d156542d
KH
136432009-04-14 Kenichi Handa <handa@m17n.org>
13644
13645 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
13646 encoding charset is ascii_compatible.
13647
13648 * charset.c (Fdefine_charset_internal): Make charset
13649 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
13650 code_offset is 0, and covers all ASCII characters.
13651
86fa089e
SM
136522009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
13653
13654 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
13655 (ns_string_to_pasteboard_internal):
13656 * nsmenu.m (process_dialog):
13657 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
13658 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
13659 * lisp.h (Fx_load_color_file): Declare.
13660
a8a3728b
KH
136612009-04-13 Kenichi Handa <handa@m17n.org>
13662
1ac9108a 13663 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
13664 (font_select_entity): Suppress the code to optimize for the same
13665 kind of fonts.
13666 (font_load_for_lface): Get a font that supports at least ASCII
13667 characters.
13668
13669 * ftfont.c (Qja, Qko): New variables.
13670 (fc_charset_table): Delete uniquifier data for iso8859-1.
13671 (ftfont_get_latin1_charset): New function.
13672 (get_adstyle_property): New function.
13673 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
13674 bitmap fonts.
13675 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
13676 Delete iso-8859-1 range from the charset of fonts whose adstyle is
13677 `ko' or `ja'.
13678 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 13679 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
13680 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
13681 property.
13682 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
13683 (syms_of_ftfont): DEFSYM Qja and Qko.
13684
483670b5
KH
136852009-04-09 Kenichi Handa <handa@m17n.org>
13686
12b55765
KH
13687 * charset.c (map_charset_chars): For a charset of `superset'
13688 method, fix calculation of code range.
13689
483670b5
KH
13690 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
13691 from the list of extra properties.
13692 (font_clear_prop): Be sure to delete `:name' font property.
13693
57d3b93b
KH
136942009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13695
b4b2c2ca
YM
13696 * dispnew.c (redraw_overlapping_rows): Fix detection of
13697 overlapping for topmost and bottommost rows.
13698
1ac9108a 13699 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 13700
472c3609
JR
137012009-04-06 Jason Rumney <jasonr@gnu.org>
13702
13703 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
13704
ab193662
KH
137052009-04-06 Kenichi Handa <handa@m17n.org>
13706
13707 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
13708
13709 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
13710
0c26f026
KH
137112009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13712
13713 * ftfont.c (ftfont_open): Fix checking of the return value of
13714 FT_Load_Char. Fix setting font->underline_thickness.
13715
e173bbce
CY
137162009-04-04 Chong Yidong <cyd@stupidchicken.com>
13717
13718 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
13719 (Fterminal_parameters, Fterminal_parameter)
13720 (Fset_terminal_parameter): In doc string, refer to terminal
13721 objects rather than terminal ids.
13722
693a2698
EZ
137232009-04-04 Eli Zaretskii <eliz@gnu.org>
13724
13725 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
13726 ret_lim_data. (Bug#2867)
13727
d5221487
CY
137282009-04-03 Chong Yidong <cyd@stupidchicken.com>
13729
13730 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
13731 so they don't get wider than the window, matching 2006-01-23
13732 change to the partner function in xdisp.c (Bug#2800).
13733
223509a3
KH
137342009-04-03 Kenichi Handa <handa@m17n.org>
13735
13736 * print.c (print_object): Make each lowest sub_char_table start a
13737 new line (Bug#2866).
13738
74fcd0b1
KH
137392009-04-02 Kenichi Handa <handa@m17n.org>
13740
13741 * fontset.c (fontset_font): Record no-font when a fontset
13742 explicitly tells not to try another font-specs.
13743
c542407d
SM
137442009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
13745
13746 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
13747
e3869731
KH
137482009-03-30 Kenichi Handa <handa@m17n.org>
13749
d8d2f142
KH
13750 * fontset.c (fontset_from_font): Specify only registry in a
13751 font-spec for all characters supported by that registry.
13752
e3869731
KH
13753 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
13754 even if HAVE_M17N_FLT is not defined.
13755
5da5f805
CY
137562009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
13757
13758 * ftfont.c: Conditionalize prototyping and use of
13759 ftfont_variation_glyphs.
13760
ab226c50
SM
137612009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
13762
9628fed7
SM
13763 * frame.c (delete_frame): Work around compiler bug.
13764
13765 * editfns.c (general_insert_function): Adjust to insdel.c changes.
13766 * insdel.c (prepare_to_modify_buffer, signal_before_change):
13767 Some more EMACS_INT.
13768 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
13769
13770 * xdisp.c (dump_glyph): Fix typo.
13771
ae19ba7c
SM
13772 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
13773 (adjust_markers_gap_motion, adjust_markers_for_delete)
13774 (adjust_markers_for_insert, adjust_point)
13775 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
13776 (make_gap, copy_text, count_size_as_multibyte, insert)
13777 (insert_and_inherit, insert_before_markers)
13778 (insert_before_markers_and_inherit, insert_1)
13779 (count_combining_before, count_combining_after, insert_1_both)
13780 (insert_from_string, insert_from_string_before_markers)
13781 (insert_from_string_1, insert_from_gap, insert_from_buffer)
13782 (insert_from_buffer_1, adjust_after_replace)
13783 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
13784 (replace_range_2, del_range, del_range_1, del_range_byte)
13785 (del_range_both, del_range_2, modify_region)
13786 (prepare_to_modify_buffer, signal_before_change)
13787 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
13788 for buffer positions and sizes.
13789 * lisp.h: Adjust prototypes accordingly.
13790
13791 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
13792 (non_regular_inserted, non_regular_nbytes, read_non_regular)
13793 (Finsert_file_contents): Use EMACS_INT for buffer positions.
13794
ab226c50
SM
13795 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
13796
46dfb8fb
JD
137972009-03-27 Jan Djärv <jan.h.d@swipnet.se>
13798
13799 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
13800 lines and columns so we keep the same pixel height and width.
13801
13802 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
13803 the property _NET_WM_STATE has changed.
46dfb8fb
JD
13804 (x_handle_net_wm_state): New function to update frame parameter
13805 fullscreen.
13806 (x_term_init): Initialize atoms for _NET_WM_STATE.
13807
13808 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
13809
d347e494
SM
138102009-03-27 Kevin Ryde <user42@zip.com.au>
13811
13812 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
13813 Gpm_GetEvent as an error that justifies closing the filedescriptor.
13814 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
13815 (Fgpm_mouse_stop): Pass that new parameter.
13816 * termhooks.h (close_gpm): Adjust prototype.
13817
84db11d6
SM
138182009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13819
c95a5008
SM
13820 * lisp.h (Fx_focus_frame): Declare.
13821
84db11d6
SM
13822 * callint.c (Fcall_interactively): For '^' just delegate the work to
13823 handle-shift-selection.
13824 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
13825
0a1958d6
CY
138262009-03-24 Chong Yidong <cyd@stupidchicken.com>
13827
0bfdff23
CY
13828 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
13829
0a1958d6
CY
13830 * data.c (Qinteractive_form): New variable.
13831 (Finteractive_form): Use it.
13832
13833 * eval.c (Fcommandp): Use Qinteractive_form.
13834
58aec0d6
JR
138352009-03-24 Jason Rumney <jasonr@gnu.org>
13836
13837 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
13838 Calculate total size precisely. Decode environment variables
13839 before substituting. (Bug#38)
13840
553dd618
KH
138412009-03-24 Kenichi Handa <handa@m17n.org>
13842
13843 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 13844 encoding (Bug#2722).
553dd618 13845
c39ea606
JD
138462009-03-23 Jan Djärv <jan.h.d@swipnet.se>
13847
13848 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
13849 that gdpy is set.
13850
bc9b2b5e
AM
138512009-03-22 Alan Mackenzie <acm@muc.de>
13852
13853 * callint.c (Finteractive): Clarify the doc string - even
13854 promptless elements need \n separators.
13855
9f995a76
JR
138562009-03-22 Jason Rumney <jasonr@gnu.org>
13857
13858 * w32term.c (syms_of_w32term): Doc fix for
13859 x-use-underline-position-properties.
13860
22749e9a
EZ
138612009-03-21 Eli Zaretskii <eliz@gnu.org>
13862
13863 * w32.c (getpwuid): Change argument type to unsigned.
13864 (struct w32_id): Change type of `rid' member to unsigned.
13865 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
13866 argument ID to unsigned. All callers changed.
13867 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
13868
e00553bf
EZ
138692009-03-20 Eli Zaretskii <eliz@gnu.org>
13870
13871 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
13872 negative, produce a float value.
13873
13874 * dired.c (make_uid, make_gid): New functions.
13875 (Ffile_attributes): Use them to avoid negative UID and GID.
13876
f761d6b6
JB
138772009-03-20 Juanma Barranquero <lekktu@gmail.com>
13878
13879 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
13880 (syms_of_keyboard) <command-hook-internal, input-method-function>:
13881 Fix typos in docstrings.
13882
d507f8d7
KH
138832009-03-19 Kenichi Handa <handa@m17n.org>
13884
13885 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
13886 changed, use font_load_for_lface to get a new font object.
13887 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
13888
13889 * frame.c (x_set_font): Handle the case that ARG is a cons.
13890
c68845e0
GM
138912009-03-19 Glenn Morris <rgm@gnu.org>
13892
13893 * fileio.c (Fsubstitute_in_file_name): Doc fix.
13894
bfa49dd1
CY
138952009-03-19 Chong Yidong <cyd@stupidchicken.com>
13896
13897 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
13898
8458d4c1
KH
138992009-03-19 Kenichi Handa <handa@m17n.org>
13900
13901 * charset.c (load_charset_map_from_file): When a mapfile can't be
13902 loaded, signal an error.
13903
78e7d1fe
EZ
139042009-03-18 Eli Zaretskii <eliz@gnu.org>
13905
13906 * dired.c (Ffile_attributes): Make sure UID and GID are always
13907 positive, even if the value is too large for a positive EMACS_INT.
13908 Doc fix.
13909
13910 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
13911
5da9fdfa
YM
139122009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13913
13914 * xmenu.c (xdialog_show): Move Fredisplay call ...
13915 (Fx_popup_dialog): ... here.
13916
7519c40d
SM
139172009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
13918
13919 * dired.c (file_name_completion): Disable the first optimization just
13920 installed, since it is not implemented correctly.
13921
2cd298e2
SM
139222009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13923
13924 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 13925 only if the entry can affect bestmatch.
2cd298e2
SM
13926 Stop the search early, as Ftry_completion already does.
13927
48d37adf
CY
139282009-03-17 Chong Yidong <cyd@stupidchicken.com>
13929
e10c9c93 13930 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 13931
9286b16a
CY
139322009-03-15 Chong Yidong <cyd@stupidchicken.com>
13933
13934 * keyboard.c (parse_menu_item): Don't display remappings as menu
13935 equivalent bindings (Bug#788).
13936
f7b146dc
JR
139372009-03-15 Jason Rumney <jasonr@gnu.org>
13938
13939 * w32term.h (WM_EMACS_PAINT): New message.
13940 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
13941 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
13942 before passing to lisp thread. (Bug#950)
13943
f761d6b6 139442009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 13945
d93f9575
CY
13946 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
13947 variable as it was never reset.
13948 (ns_term_init): Remove initialization of Lisp-settable defaults
13949 and ns_expand_space.
13950 (-setPanelFromDefaultValues): Remove ns_expand_space.
13951 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
13952 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
13953 i.e. no additional spacing, similar to Carbon port.
13954
d93f9575
CY
13955 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
13956 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 13957
305018ec
JD
139582009-03-14 Jan Djärv <jan.h.d@swipnet.se>
13959
13960 * sound.c (alsa_configure): Remove call to deprecated
13961 snd_pcm_sw_params_set_xfer_align.
13962
f761d6b6 139632009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
13964
13965 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
13966 after clicking in a detached tool bar.
13967 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
13968
46e722a9
SM
139692009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
13970
348db3dd
SM
13971 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
13972 int/Lisp_Object mixup).
46e722a9 13973
a3d16f39
KH
139742009-03-13 Kenichi Handa <handa@m17n.org>
13975
13976 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 13977 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
13978 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
13979 (set_fontset_font): Change ARG to a vector. Handle range_list in
13980 ARG correctly.
13981 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 13982 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
13983 the above change.
13984 (fontset_from_font): Fix previous change.
fe24f56a 13985 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
13986 entry. If FONTSET is the default fontset, don't set the extra
13987 slot of the returning char-table.
13988
b066e6b6
JB
139892009-03-12 Juanma Barranquero <lekktu@gmail.com>
13990
13991 * nsfns.m (Fx_close_connection): Doc fix.
13992 (Fns_do_applescript): Reflow docstring.
13993 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
13994 (Fx_display_pixel_width, Fx_display_pixel_height)
13995 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
13996 Fix typos in docstrings.
13997 (Fns_set_alpha): Fix typos in error messages.
13998
d472514e 139992009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 14000
d472514e 14001 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
14002 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
14003 were used for such events.
14004
d472514e
JB
14005 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14006 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 14007
d472514e 14008 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
14009 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14010
fb930676
KH
140112009-03-11 Kenichi Handa <handa@m17n.org>
14012
ff85581a
KH
14013 * font.h (font_open_by_spec): Extern it.
14014
c50b7e98
KH
14015 * font.c (font_open_by_spec): New function.
14016 (font_open_by_name): Use font_open_by_spec.
14017
fb930676
KH
14018 * frame.c (x_set_font): When ARG is a font-object, don't alter the
14019 fontset of the frame.
14020
14021 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14022 modify the default font of frames that use this fontset.
14023 (num_auto_fontsets): New variable.
14024 (fontset_from_font): Use num_auto_fontsets to decide a fontset
14025 name. Be sure to set FONTSET_ASCII to the correct font name.
14026 (update_auto_fontset_alist): New function.
14027
df4e8455
JB
140282009-03-11 Juanma Barranquero <lekktu@gmail.com>
14029
14030 * makefile.w32-in: Update dependencies.
14031
0a375797
AR
140322009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14033
14034 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
14035
61313fa3
SM
140362009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14037
14038 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
14039
b55103fb
CY
140402009-03-10 Chong Yidong <cyd@stupidchicken.com>
14041
14042 * lread.c (Feval_buffer): Doc fix.
14043
dde2559c
KH
140442009-03-09 Kenichi Handa <handa@m17n.org>
14045
14046 * charset.c (Qfile_name_handler_alist): Extern it.
14047 (load_charset_map_from_file): Temporarily bind
14048 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
14049
df4e8455 140502009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 14051
47f588bb
GM
14052 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
14053 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 14054
4ddf94bd
AR
140552009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14056
4c9bdfc2
AR
14057 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
14058 (x_set_window_size): Change back to calculated method of setting
14059 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
14060 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
14061 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
14062
fe41ae9e
AR
14063 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
14064
4c9bdfc2
AR
14065 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
14066 accelerator in parens under GNUstep.
14067
825d0875
KH
140682009-03-06 Kenichi Handa <handa@m17n.org>
14069
14070 These changes are to detect incorrect composition sequence without
f3b3be74 14071 looking ahead the source. (Bug#2370)
825d0875
KH
14072
14073 * coding.h: Include "composite.h".
14074 (enum compisition_state): New enum.
14075 (struct compisition_status): New struct.
14076 (struct iso_2022_spec): New member cmp_status.
14077 (struct emacs_mule_spec): New struct.
14078 (struct coding_system): New members ctext_extended_segment_len and
14079 embedded_utf_8. Change the union member
14080 spec.emacs_mule_full_support to spec.emacs_mule.
14081
14082 * coding.c (CODING_ISO_CMP_STATUS): New macro.
14083 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 14084 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
14085 (ADD_COMPOSITION_DATA): New arg nbytes.
14086 (emacs_mule_char): New arg cmp_status.
14087 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
14088 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
14089 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
14090 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
14091 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
14092 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
14093 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
14094 (EMACS_MULE_COMPOSITION_END): New macro.
14095 (emacs_mule_finish_composition): New function.
14096 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
14097 (decode_coding_emacs_mule): Avoid long looking ahead while
14098 handling composition.
14099 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
14100 (ENCODE_COMPOSITION_RULE): New macro.
14101 (finish_composition): New function.
14102 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
14103 (DECODE_COMPOSITION_START): New implementation.
14104 (DECODE_COMPOSITION_END): Likewise.
14105 (STORE_COMPOSITION_RULE): New macro.
14106 (decode_coding_iso_2022): Avoid long looking ahead while handling
14107 composition, CTEXT extended segment, and embedded UTF-8.
14108 (setup_coding_system): For a coding of type iso-2022, reset
14109 CODING_ISO_EXTSEGMENT_LEN (coding) and
14110 CODING_ISO_EMBEDDED_UTF_8 (coding).
14111 (get_translation): Delete arguments last_block, from_nchars,
14112 to_nchars. Callers changed.
14113 (produce_chars): Don't modify charbuf. Adjusted for the change of
14114 get_translation.
98a326f7 14115 (produce_composition): Adjust for the new annotation sequence.
825d0875 14116 (handle_composition_annotation): Likewise.
98a326f7 14117 (consume_chars): Adjust for the change of get_translation.
825d0875 14118
ccbc4452
AR
141192009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
14120
4ddf94bd 14121 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 14122
988a7ddb
KH
141232009-03-05 Kenichi Handa <handa@m17n.org>
14124
14125 * font.c (font_select_entity): New function.
14126 (font_find_for_lface): Use font_select_entity to select a font.
14127
14128 * fontset.c (fontset_find_font): If a font found without
a8a3728b 14129 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
14130 font with C restriction.
14131
98a326f7 141322009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 14133
be1bce46 14134 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 14135
10ea2b82
JR
141362009-03-04 Jason Rumney <jasonr@gnu.org>
14137
2c93b248 14138 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 14139 characters that have already been read. (Bug#2569)
2c93b248 14140
10ea2b82
JR
14141 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
14142 Log an error message if check_image_size failed.
14143 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 14144 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 14145
71a0c011
EZ
141462009-03-02 Eli Zaretskii <eliz@gnu.org>
14147
14148 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
14149 when decoding process output.
14150
2f63bba8
RS
141512009-03-01 Richard M Stallman <rms@gnu.org>
14152
14153 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
14154
14155 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
14156
0a9564cb
EZ
141572009-02-28 Eli Zaretskii <eliz@gnu.org>
14158
14159 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
14160 (decode_coding_emacs_mule, decode_coding_iso_2022)
14161 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14162 (decode_coding_raw_text, decode_coding_charset)
14163 (setup_coding_system, decode_eol, decode_coding, consume_chars):
14164 Honor inhibit-eol-conversion. (Bug #2186)
14165
449148b3
JR
141662009-02-28 Jason Rumney <jasonr@gnu.org>
14167
14168 * coding.c (detect_coding_charset): If not checking latin extra,
14169 fail on characters between 0x80 and 0xA0. (Bug#2354)
14170
a4aee864
EZ
141712009-02-28 Eli Zaretskii <eliz@gnu.org>
14172
14173 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 14174 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 14175
d88bee5a
GM
141762009-02-27 Glenn Morris <rgm@gnu.org>
14177
14178 * callint.c (Finteractive): Doc fix.
14179
a808f22d
KH
141802009-02-27 Kenichi Handa <handa@m17n.org>
14181
14182 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
14183
caf8d60c
CY
141842009-02-27 Chong Yidong <cyd@stupidchicken.com>
14185
14186 * font.c (font_style_to_value): Set value for unknown symbols to
14187 100 instead of 255.
b61137ea
CY
14188 (weight_table, slant_table, width_table): Treat "unspecified" as
14189 the default value.
caf8d60c 14190
1a0de25c
JB
141912009-02-26 Juanma Barranquero <lekktu@gmail.com>
14192
14193 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
14194
8fc45744
JB
141952009-02-25 Juanma Barranquero <lekktu@gmail.com>
14196
107bd7d1
JB
14197 * lread.c (Fload): Stop checking Vloads_in_progress and signal
14198 error as soon as a recursive load is detected.
8fc45744 14199
f097e223
AR
142002009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14201
14202 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
14203 before caching.
14204
8810a12f
KH
142052009-02-24 Kenichi Handa <handa@m17n.org>
14206
14207 * fontset.c (fontset_find_font): Fix the condition for checking
14208 unavailable font.
14209
2c7d1565
GM
142102009-02-24 Glenn Morris <rgm@gnu.org>
14211
14212 * xfaces.c (Finternal_set_font_selection_order): Remove leading
14213 whitespace that confuses documentation.
14214
a20878b6
MB
142152009-02-23 Miles Bader <miles@gnu.org>
14216
14217 * process.c (Flist_system_processes, Fprocess_attributes)
14218 (syms_of_process): Rename `system-process-attributes' to
14219 `process-attributes'.
14220
b3b58c01
AS
142212009-02-22 Andreas Schwab <schwab@linux-m68k.org>
14222
1b3b981b
AS
14223 * coding.h (struct coding_system): Make safe_charsets a pointer to
14224 unsigned char.
14225 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
14226 being 255.
14227 (SAFE_CHARSET_P): Likewise.
14228 (setup_iso_safe_charsets): Properly setup safe_charsets.
14229 (Fdefine_coding_system_internal): Likewise.
14230 (setup_coding_system): Likewise. Remove unneeded casts.
14231 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
14232 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
14233 Remove unneeded casts.
1b3b981b 14234
b3b58c01
AS
14235 * insdel.c (del_range_2): Don't modify gap contents when called
14236 from decode_coding_object. (Bug#1809)
14237
0b6f228c
CY
142382009-02-21 Chong Yidong <cyd@stupidchicken.com>
14239
14240 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
14241 Qfont_object.
14242 (Ftype_of): Recognize font objects.
14243
14244 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
14245
bba3e508
SM
14246 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
14247 Definitions moved to data.c.
0b6f228c 14248
52f8870b
AR
142492009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14250
14251 * nsterm.m (x_make_frame_invisible): Unset async_visible,
14252 async_iconified. Based on a patch by Christian Lynbech
14253 <christian.lynbech@tieto.com>.
14254 (EmacsView-windowDidMiniaturize:): Unset async_visible.
14255
7087d5e9
GM
142562009-02-20 Glenn Morris <rgm@gnu.org>
14257
14258 * syntax.c (Fskip_chars_forward): Fix doc typo.
14259
41d2ceef
CY
142602009-02-20 Chong Yidong <cyd@stupidchicken.com>
14261
14262 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
14263
1a3b7ca6
CY
142642009-02-19 Chong Yidong <cyd@stupidchicken.com>
14265
14266 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
14267
73cce38d
KH
142682009-02-19 Kenichi Handa <handa@m17n.org>
14269
14270 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 14271 Don't overflow coding->carryover. (Bug#2370)
73cce38d 14272
a51092ee
DN
142732009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
14274
14275 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
14276
c423ecca
KH
142772009-02-18 Kenichi Handa <handa@m17n.org>
14278
14279 * font.c (font_check_otf_features): Fix handling of `nil' element.
14280 (Ffont_spec): Describe :lang and :otf in the docstring.
14281
4c1958f4
AS
142822009-02-16 Andreas Schwab <schwab@suse.de>
14283
14284 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
14285 string.
14286
5704f39a
KH
142872009-02-16 Kenichi Handa <handa@m17n.org>
14288
14289 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 14290 (Bug#1723)
5704f39a 14291
8f0085aa
CY
142922009-02-14 Chong Yidong <cyd@stupidchicken.com>
14293
a057d86a 14294 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
14295
14296 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
14297 (handle_line_prefix): Suppress wrapping of wrap prefixes.
14298
aff01dd9
EZ
142992009-02-14 Eli Zaretskii <eliz@gnu.org>
14300
14301 * msdos.c (MAX_SCREEN_BUF): New macro.
14302 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
14303 Encode the entire run of glyphs sharing the same face, instead of
14304 doing that one glyph at a time (fixes a bug with displaying
14305 double-size characters).
14306
ba301db3
AR
143072009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
14308
14309 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
14310
14311 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
14312 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 14313 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
14314
14315 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 14316 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 14317
51d861de
SM
143182009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14319
ac146f82 14320 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
14321 invisible areas.
14322
7fed8996
JR
143232009-02-12 Jason Rumney <jasonr@gnu.org>
14324
631ea4fb
JR
14325 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
14326 (add_font_entity_to_list): Call check_face_name even when family
14327 is unspecified.
14328
cb4a3e42
JR
14329 * w32term.c (x_display_pixel_height, x_display_pixel_width):
14330 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 14331 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 14332
7fed8996 14333 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 14334 raster fonts. (Bug#2219)
7fed8996 14335
895416e3
KH
143362009-02-12 Kenichi Handa <handa@m17n.org>
14337
14338 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
14339 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
14340 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 14341 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
14342 (find_automatic_composition): While looking forward and backward,
14343 check static composition. Fix where to stop looking forward.
14344 (composition_adjust_point): Fix checking of static composition.
14345 (Fcomposition_get_gstring): Pay attention to
1dacf998 14346 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
14347
14348 * lisp.h (fast_looking_at): Extern it.
14349
14350 * search.c (fast_looking_at): New function.
14351
51d861de 14352 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
14353 <struct glyph>.u.cmp.to.
14354 (append_composite_glyph): Likewise.
14355
51d861de 14356 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
14357 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
14358 composition.
51d861de 14359 (append_composite_glyph): Adjust for the change of
895416e3
KH
14360 <strcut glyph>.u.cmp.to.
14361
8510724d
JB
143622009-02-11 Juanma Barranquero <lekktu@gmail.com>
14363
14364 * casetab.c (init_casetab_once):
14365 * coding.c (ALLOC_CONVERSION_WORK_AREA):
14366 * font.c (font_update_lface):
14367 * fontset.c (Fnew_fontset):
14368 * ftfont.c (ftfont_drive_otf):
14369 * xfont.c (xfont_open):
14370 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
14371
294fa707
SM
143722009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14373
14374 * fileio.c (Fwrite_region): !NILP -> CONSP.
14375
b5bfebec
AS
143762009-02-10 Andreas Schwab <schwab@suse.de>
14377
14378 * process.c (send_process): Properly relocate pointer into data
adab88bd 14379 when using encoded data. (Bug#2272)
b5bfebec 14380
cb84a2be
KH
143812009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
14382
14383 * coding.c (detect_coding_charset): Fix previous change.
14384
89e09428
JR
143852009-02-08 Jason Rumney <jasonr@gnu.org>
14386
14387 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 14388 disappeared while hourglass was displayed. (Bug #2193)
89e09428 14389
4470a277
AS
143902009-02-07 Andreas Schwab <schwab@suse.de>
14391
14392 * unexelf.c (unexec): Fix error message.
14393
3175b12a
AR
143942009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
14395
14396 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 14397 when modal window is active. (Bug #2152)
3175b12a
AR
14398 (applicationShouldTerminate:): Remove now-unneeded while loop
14399 around NSRunAlertPanel.
14400
14401 * nsmenu.m (popupSession): New file-global variable.
14402 (pop_down_menu): End the popupSession before closing dialog.
14403 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
14404 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
14405 don't query NSApp for events (just sleep instead).
14406
8434d0b8
EZ
144072009-02-07 Eli Zaretskii <eliz@gnu.org>
14408
51d861de
SM
14409 * coding.c (syms_of_coding) <translation-table-for-input>:
14410 Modify doc string to discourage use for character code unification.
8434d0b8 14411
aa82edfd
CY
144122009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14413
14414 * atimer.c (run_timers): Update pending_atimers.
14415
2d283c7c
CY
144162009-02-06 Chong Yidong <cyd@stupidchicken.com>
14417
eb306cab
CY
14418 * image.c (svg_load_image): Fix last change.
14419
2d283c7c
CY
14420 * xfns.c (Fx_create_frame): Signal an error if no font is
14421 found (Bug#2147).
14422
4d8e170e
JB
144232009-02-05 Juanma Barranquero <lekktu@gmail.com>
14424
14425 * character.c (syms_of_character) <script-representative-chars>:
14426 Fix typo in docstring.
14427
c96169a0
AR
144282009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14429
14430 * nsmenu.m (pop_down_menu): New function.
14431 (ns_popup_dialog): Call it on unwind.
14432 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
14433 call timer_check() (Bug#2154).
14434 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
14435 handling_signal is set.
14436 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
14437
31fd7c5c 14438 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
14439
14440 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
14441
14442 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
14443
51d861de
SM
14444 * keyboard.c (poll_for_input_1, handle_async_input):
14445 Set handling_signal under HAVE_NS.
c96169a0 14446
aacd8ba1
GM
144472009-02-04 Glenn Morris <rgm@gnu.org>
14448
14449 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
14450
4cb75c4b
KH
144512009-02-04 Kenichi Handa <handa@m17n.org>
14452
14453 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
14454
14455 * charset.c (Fchar_charset): New optional arg restriction.
14456
14457 * coding.h (coding_system_charset_list): Extern it.
14458
14459 * coding.c (coding_system_charset_list): New function.
14460
14461 * composite.c: Include coding.h and termhooks.h.
14462 (composition_gstring_p): Fix for the terminal case.
14463 (composition_gstring_width): Likewise.
14464 (fill_gstring_body): Likewise.
14465 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
14466 the frame.
14467 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
14468 is within a composition.
867d4bb3 14469 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
14470
14471 * term.c (encode_terminal_code): Fix handling of composition.
14472 (produce_composite_glyph): For static composition, get pixel_width
14473 from struct composition.
14474
826ba17e
AS
144752009-02-02 Andreas Schwab <schwab@suse.de>
14476
14477 * unexelf.c (unexec): Handle unaligned bss offset.
14478
8ad093db
AR
144792009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14480
14481 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
14482 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 14483
8ad093db
AR
14484 * keyboard.c (handle_interrupt): Don't call
14485 quit_throw_to_read_char() under NS.
d0a76a6e 14486
8ad093db
AR
14487 * blockinput.h: Remove NS-specific code.
14488
4d18a7a2
DN
144892009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
14490
db878925
DN
14491 * dispnew.c (window_change_signal): Don't try to get the size of a
14492 suspended tty frame.
14493 * term.c (Fresume_tty): Resize if the size has changed while the
14494 tty was suspended.
14495
4d18a7a2
DN
14496 * alloc.c (mark_stack): Properly conditionalize previous change.
14497
8984df7c
JB
144982009-01-30 Juanma Barranquero <lekktu@gmail.com>
14499
14500 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
14501 * w32term.c (w32_read_socket) [SYNC_INPUT]:
14502 Remove; this code is not used on Windows.
14503
75f4f1ac
EZ
145042009-01-30 Eli Zaretskii <eliz@gnu.org>
14505
14506 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
14507 EOLs that also has stray ^M characters.
14508
07a1e794
JB
145092009-01-30 Juanma Barranquero <lekktu@gmail.com>
14510
14511 * atimer.c (run_timers, alarm_signal_handler):
14512 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
14513 * w32inevt.c (w32_console_read_socket):
14514 * w32term.c (w32_read_socket):
14515 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
14516
a8b11cc9
CY
145172009-01-30 Chong Yidong <cyd@stupidchicken.com>
14518
14519 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
14520 Initialize it as a relative filename pattern.
14521 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
14522 (Fcall_process_region): Simplify temp file creation using
14523 temporary-file-directory.
14524
c279587b
EZ
145252009-01-29 Eli Zaretskii <eliz@gnu.org>
14526
14527 * msdos.c: Rename pending_signals to msdos_pending_signals.
14528 (sig_suspender, sigprocmask): Adjust.
14529
a8fe3242
CY
145302009-01-29 Chong Yidong <cyd@stupidchicken.com>
14531
14532 * keyboard.c (pending_signals): New var.
14533 (poll_for_input, input_available_signal, init_keyboard): Set it.
14534 (process_pending_signals): New function.
14535
14536 * lisp.h (QUIT): Check pending_signals instead of
14537 interrupt_input_pending. Use process_pending_signals.
14538
51d861de 14539 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 14540
51d861de 14541 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
14542
14543 * sysdep.c (emacs_write): Use process_pending_signals.
14544
14545 * xterm.c (XTread_socket): Update pending_signals.
14546
14547 * w32term.c (w32_read_socket): Update pending_signals.
14548
14549 * w32inevt.c (w32_console_read_socket): Update pending_signals.
14550
6570a1c4
KH
145512009-01-29 Kenichi Handa <handa@m17n.org>
14552
14553 * xftfont.c (xftfont_has_char): New function.
14554 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
14555
d72a4afa
AR
145562009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14557
14558 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
14559 under GNUstep.
14560 (ns_query_color): New declaration.
14561
14562 * nsterm.m (ns_confirm_quit): New variable.
14563 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
14564 (EmacsApp-applicationShouldTerminate:): Use it.
14565 (EmacsPrefsController): Let user set it.
14566 (ns_query_color): New function.
14567 (ns_defined_color): Use it.
14568 (ns_initialize): Drop.
14569 (ns_term_init): Add two lines from ns_initialize(), and set
14570 input_interrupt_mode to nil.
14571
14572 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 14573 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 14574
9fe78804
KH
145752009-01-28 Kenichi Handa <handa@m17n.org>
14576
14577 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
14578 (fontset_get_font_group): Remember that no font-group is specified
14579 for C.
9fe78804 14580
fa57de36
CY
145812009-01-27 Chong Yidong <cyd@stupidchicken.com>
14582
930600e9
CY
14583 * fns.c (concat): Check for string overflow (bug#1787).
14584
fa57de36
CY
14585 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
14586 Quadruple undo limits (bug#1501).
14587
7179ce7b
KH
145882009-01-27 Kenichi Handa <handa@m17n.org>
14589
14590 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
14591 directly use GT_Get_Char_index.
14592
14593 * xftfont.c (struct xftfont_info): New member `index'.
14594
14595 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 14596 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 14597
5be8fcc0
CY
145982009-01-26 Kenichi Handa <handa@m17n.org>
14599
14600 * fontset.c (fontset_find_font): Fix handling of non-cons return
14601 value of fontset_get_font_group.
14602 (fontset_font): Revert last change.
14603
19ae3e61
JR
146042009-01-26 Jason Rumney <jasonr@gnu.org>
14605
14606 * w32font.c (w32font_list_internal): Return quickly if registry is
14607 unknown. Simplify final return.
14608 (add_font_entity_to_list): Break complex logic down into more
14609 manageable chunks. Move unknown registry check to
14610 w32font_list_internal.
14611
8612b71a
AR
146122009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
14613
14614 Changes to remove Feval calls from GUI under NS.
14615
d8038940
JB
14616 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
14617 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
14618 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
14619
14620 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
14621 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
14622 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
14623 instead of NON_ASCII_KEYSTROKE_EVENT.
14624 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
14625 (EmacsApp-applicationShouldTerminate:): Query user.
14626 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
14627 instead of Feval.
14628
14629 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
14630
14631 * keyboard.c (kbd_buffer_get_event): Check for it.
14632 (keys_of_keyboard): Define lispy keys for
14633 ns-put/unput-working-text.
14634
14635 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
14636 versions.
14637 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
14638
6288ae55
CY
146392009-01-25 Chong Yidong <cyd@stupidchicken.com>
14640
14641 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 14642 setting current_buffer directly. (Bug#2044)
6288ae55 14643
289e7f8f
CY
146442009-01-24 Chong Yidong <cyd@stupidchicken.com>
14645
5ce87308 14646 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 14647 any work. (Bug#1952, bug#1990).
5ce87308 14648
64cc3cf6 14649 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 14650
b3243e6f
AR
146512009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
14652
14653 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
14654 (ns_no_defaults): New declaration.
14655 (main): Use it.
e0d2e69a 14656
d900b2af 14657 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 14658
d900b2af 14659 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 14660
d900b2af
AR
14661 * nsterm.m (ns_no_defaults): New variable.
14662 (ns_initialize): Don't read defaults when ns_no_defaults.
14663 (EmacsView-readSelectionFromPasteboard:)
14664 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 14665 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
14666 (ns_dumpglyphs_stretch): New function.
14667 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 14668 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 14669
e0d2e69a
AR
14670 * nsimage.m (setPixmapData:): Set to ignore image DPI.
14671
3ac71f5d
CY
146722009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
14673
14674 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
14675 call for Sparc64.
14676
3fe53a83
AR
146772009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14678
14679 * nsfns.m:
14680 * nsgui.h:
14681 * nsmenu.m:
14682 * nsselect.m:
14683 * nsterm.h:
14684 * nsterm.m: Remove '23' comments that indicated code added during
14685 update from emacs-20 -> emacs-23.
14686
10f87c6f 146872009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
14688
14689 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 14690 ns_alternate_modifier. (Bug#1217)
a3b53a85 14691
c7cef62d
AR
14692 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
14693 Display all shortcuts, including those w/o super modifier.
14694
575fb8bd
AR
14695 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
14696
918b848b
CY
146972009-01-22 Chong Yidong <cyd@stupidchicken.com>
14698
14699 * fileio.c (Vwrite_region_post_annotation_function)
14700 (Vwrite_region_annotation_buffers): New vars.
14701 (build_annotations_unwind): Just reset
14702 Vwrite_region_annotation_buffers.
14703 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
14704 Call write-region-post-annotation-function.
14705 (build_annotations): Add to Vwrite_region_annotation_buffers if
14706 buffer changes.
14707
a39e2539
AR
147082009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14709
14710 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
14711 Tiger.
51d861de
SM
14712 * nsfns.m (ns_do_applescript):
14713 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 14714
35ed44db
AR
147152009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14716
14717 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
14718
cbe0b5bf
AR
147192009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14720
14721 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 14722
6049d3a0
AR
14723 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
14724
14725 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
14726 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
14727 handle Ctrl-tab. (Bug#1841)
14728 (ns_get_color): Use unsigned long long for scanned hex string value.
14729 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 14730 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 14731 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 14732 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 14733 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 14734 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 14735 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 14736
d3810c21 14737 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 14738 DPI. (Bug#1316)
d3810c21
AR
14739 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
14740 values in onTiger section.
4c7077c3 14741
e301e634
CY
147422009-01-19 Chong Yidong <cyd@stupidchicken.com>
14743
7f82490b
CY
14744 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
14745 Check return value of font_spec_from_name.
64cc3cf6 14746 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
14747
14748 * font.c (font_spec_from_name): Return Qnil if font name could not
14749 be parsed.
14750 (font_parse_name): Treat a `?' character as part of an XLFD.
14751
e301e634
CY
14752 * fns.c (Fsubstring): Doc fix.
14753
1c0db158
KH
147542009-01-19 Kenichi Handa <handa@m17n.org>
14755
51d861de 14756 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
14757 (ftfont_list): Likewise.
14758
acf20901
JB
147592009-01-18 Juanma Barranquero <lekktu@gmail.com>
14760
fff4e459
JB
14761 * dbusbind.c (Fdbus_register_signal):
14762 * process.c (conv_sockaddr_to_lisp):
14763 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
14764
acf20901
JB
14765 * callproc.c (Fgetenv_internal): Doc fix.
14766
e7abcdfb
CY
147672009-01-16 Chong Yidong <cyd@stupidchicken.com>
14768
14769 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
14770 it is not even used.
14771
b60861e6
GM
147722009-01-16 Glenn Morris <rgm@gnu.org>
14773
14774 * font.c (Ffont_variation_glyphs): Silence compiler.
14775
8db52afe
JB
147762009-01-15 Juanma Barranquero <lekktu@gmail.com>
14777
14778 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
14779 Reported by David Robinow <drobinow@gmail.com>.
14780
4cddb209
KH
147812009-01-15 Kenichi Handa <handa@m17n.org>
14782
51d861de 14783 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 14784
f247f67b
JR
147852009-01-14 Jason Rumney <jasonr@gnu.org>
14786
14787 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 14788 never a fontset. (Bug#1562)
f247f67b 14789
f56a4450
KH
147902009-01-14 Kenichi Handa <handa@m17n.org>
14791
14792 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 14793 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 14794
4e99855e
CY
147952009-01-13 Chong Yidong <cyd@stupidchicken.com>
14796
14797 * font.c (font_clear_prop): If clearing the family, clear the font
14798 width index too.
14799
fff4e459 14800 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 14801
24f01470
JB
148022009-01-12 Juanma Barranquero <lekktu@gmail.com>
14803
14804 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
14805 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
14806 functions, use sizeof.
14807
a41240a3
MR
148082009-01-12 Martin Rudalics <rudalics@gmx.at>
14809
14810 * keyboard.c (read_char): Fix case where last_nonmenu_event
14811 returned a bad value with submenus. (Bug#447)
14812
944636b8
CY
148132009-01-12 Chong Yidong <cyd@stupidchicken.com>
14814
14815 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
14816 family, clear the font width index too.
14817
0dad7c6f
JR
148182009-01-11 Jason Rumney <jasonr@gnu.org>
14819
14820 * keyboard.c (cmd_error_internal): Exit when errors occur before
14821 frame creation and not in daemon mode. (Bug#1836)
14822
7c2363af
CY
148232009-01-10 Chong Yidong <cyd@stupidchicken.com>
14824
14825 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
14826 of a display vector, backtrack.
14827 (try_window_reusing_current_matrix): Check glyph type before
14828 referencing charpos member.
14829
97b1b294
EZ
148302009-01-10 Eli Zaretskii <eliz@gnu.org>
14831
14832 Fix Bug #876:
14833
14834 * coding.c (inhibit_null_byte_detection): New variable.
14835 (detect_coding, detect_coding_system): Don't pay attention to null
14836 bytes if inhibit_null_byte_detection is non-zero.
51d861de 14837 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
14838 <inhibit-iso-escape-detection>: Doc fix.
14839
4624b6e3
JR
148402009-01-09 Jason Rumney <jasonr@gnu.org>
14841
14842 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 14843 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
14844 Only report Unicode Plane 2 fonts as unicode-sip.
14845
323b840c
CY
148462009-01-09 Chong Yidong <cyd@stupidchicken.com>
14847
51d861de
SM
14848 * xfaces.c (Fx_font_family_list): Delete function.
14849 Move compatibility version to faces.el.
323b840c 14850
51d861de 14851 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 14852
eba7400d
MR
148532009-01-09 Martin Rudalics <rudalics@gmx.at>
14854
14855 * frame.c (x_set_frame_parameters): Remember requested value for
14856 fullscreen before it's reset by the parameter handler.
14857
4b09796d
GM
148582009-01-09 Glenn Morris <rgm@gnu.org>
14859
14860 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 14861 (last_command_event): ... and update all users.
4b09796d
GM
14862 (last_input_char): For clarity, rename to...
14863 (last_input_event): ... and update all users.
14864 (last-command-char, last-input-char): Move to subr.el as aliases.
14865 * cmds.c, commands.h: Update for last_command_char rename.
14866
14ccea62
CY
148672009-01-08 Chong Yidong <cyd@stupidchicken.com>
14868
51d861de 14869 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 14870
5f004711
JR
148712009-01-08 Jason Rumney <jasonr@gnu.org>
14872
14873 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
14874 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
14875 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
14876 Don't declare.
fff4e459 14877 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
14878 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
14879
b71f6f73
KH
148802009-01-07 Kenichi Handa <handa@m17n.org>
14881
50b06221 14882 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 14883 remember the coding system used for decoding in
50b06221
KH
14884 coding_system (Bug#1039).
14885
b71f6f73 14886 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 14887 breaking the loop. (Bug#870)
b71f6f73
KH
14888 (decode_coding_utf_16, decode_coding_emacs_mule)
14889 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14890 (decode_coding_charset): Likewise.
14891
56f668f7
MR
148922009-01-05 Martin Rudalics <rudalics@gmx.at>
14893
14894 * frame.c (x_set_frame_parameters): Make sure height (width) get
14895 applied when fullwidth (fullheight) is set. (Bug#1522)
14896
5da9424d
JB
148972009-01-04 Juanma Barranquero <lekktu@gmail.com>
14898
14899 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
14900 (utc_base): Declare as ULONGLONG, not long double.
14901 (convert_time_raw): Delete.
14902 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
14903 (initialize_utc_base): New function.
14904 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
14905 (convert_from_time_t): Use initialize_utc_base; compute result with
14906 64-bit arithmetic.
14907 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
14908
c4605e09
EZ
149092009-01-03 Eli Zaretskii <eliz@gnu.org>
14910
9acef61c 14911 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
14912 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
14913 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
14914 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
14915 [!subprocesses]: Define.
14916 (syms_of_process) [!subprocesses]: Intern and staticpro them.
14917 (Flist_system_processes, Fsystem_process_attributes)
14918 [!subprocesses]: Call list_system_processes and
14919 system_process_attributes instead of returning Qnil.
14920
9acef61c
JB
14921 * dosfns.c (system_process_attributes, list_system_processes):
14922 New functions.
c4605e09
EZ
14923
14924 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
14925
14926 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
14927 Don't use the default (no-op) implementation.
14928
8b7d0a16
JR
149292009-01-03 Jason Rumney <jasonr@gnu.org>
14930
a6d46bc1
JR
14931 * keyboard.c (parse_modifiers_uncached): Wheel events are
14932 clicks (bug#687).
14933
8b7d0a16
JR
14934 * w32term.c (x_query_colors, x_query_color): New functions.
14935
14936 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
14937 (svg_load_image): Cast returned pointers from dynamically loaded
14938 functions. Eliminate W32 specific code.
14939
bfe11752
DN
149402009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
14941
89e2438a
DN
14942 * nsfns.m (x_set_foreground_color, x_set_background_color)
14943 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
14944 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
14945 x_ prefix instead of ns_. Update references.
14946 (syms_of_nsfns): Add a FIXME comment.
14947
14948 * nsterm.m (x_set_cursor_type): New prototype.
14949 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
14950
bfe11752
DN
14951 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
14952 for Solaris instead of incorrectly providing Qutime and Qcutime.
14953
031da700
EZ
149542009-01-02 Eli Zaretskii <eliz@gnu.org>
14955
14956 * w32.c (process_times): Compute sum of utime and stime.
14957 (system_process_attributes): Add Qtime to the alist.
14958
14959 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
14960 and add them to the alist.
14961
14962 * process.c (top level) <Qtime, Qctime>: New variables.
14963 (syms_of_process): staticpro them.
14964 (Fsystem_process_attributes): Add their documentation to the doc
14965 string.
14966
14967 * process.h: Declare Qtime and Qctime.
14968
df23bf08
JR
149692009-01-02 Jason Rumney <jasonr@gnu.org>
14970
9acef61c 14971 * image.c (Qgobject): New symbol.
df23bf08
JR
14972 (syms_of_image): Initialize it.
14973 (init_svg_functions): Load some functions from gobject library.
14974
5bbdf7aa
DN
149752009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
14976
14977 * frame.c (make_terminal_frame): Remove redundant code and useless
14978 block.
14979
63136da6
AS
149802009-01-01 Andreas Schwab <schwab@suse.de>
14981
14982 * process.c (conv_sockaddr_to_lisp): Add workaround for
14983 getsockname bug on BSD.
14984
9ef69046
CY
149852009-01-01 Chong Yidong <cyd@stupidchicken.com>
14986
d6fafbe0
CY
14987 * xfns.c (x_create_tip_frame): Set border width of the X window.
14988
51d861de 14989 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 14990
f9c34147
JR
149912009-01-01 Jason Rumney <jasonr@gnu.org>
14992
9acef61c 14993 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
14994 Don't block input, as per earlier xterm.c changes.
14995
f5497e45
AR
149962008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
14997
14998 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
14999 (ns_appkit_version_int): New function.
15000 (x-server-version): Use ns_appkit_version_int and follow 21+
15001 convention of returning 3 integers.
15002
c19cab20
KH
150032008-12-30 Kenichi Handa <handa@m17n.org>
15004
15005 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15006 (CHAR_SURROGATE_PAIR_P): New macro.
15007
15008 * font.h (struct font_driver): New member get_variation_glyphs.
15009
9acef61c 15010 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
15011 (Ffont_variation_glyphs): New function.
15012 (syms_of_font): Defsubr it.
15013
15014 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15015 ftfont_variation_glyphs.
15016 (setup_otf_gstring): New function.
15017 (ftfont_drive_otf): Use it.
15018 (ftfont_shape_by_flt): Handle variation selector.
15019 (ftfont_variation_glyphs): New function.
15020
28cd591f
MR
150212008-12-30 Martin Rudalics <rudalics@gmx.at>
15022
15023 * frame.c (Vemacs_iconified): Remove.
15024
7f714baf
JR
150252008-12-30 Jason Rumney <jasonr@gnu.org>
15026
15027 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 15028 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 15029
9d2d22ab
CY
150302008-12-30 Chong Yidong <cyd@stupidchicken.com>
15031
15032 * indent.c (Fvertical_motion): Don't advance iterator if we have
15033 reseated to the desired position.
15034
15035 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
15036 checking for pos match.
15037
545312c2
KH
150382008-12-30 Kenichi Handa <handa@m17n.org>
15039
1ede3eb6
KH
15040 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
15041 just get the low 8-bit of the code.
15042
545312c2
KH
15043 * font.c (font_intern_prop): Validate str as multibyte.
15044
bd7bbf29
DN
150452008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15046
31e0750e
DN
15047 * dispextern.h (struct face): Move lface and hash from the middle
15048 of bitfields.
15049
bd7bbf29
DN
15050 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
15051
b5672e7c
DN
150522008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15053
15054 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
15055 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
15056 instead of intervals.h.
15057
d704470f
AS
150582008-12-26 Andreas Schwab <schwab@suse.de>
15059
15060 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
15061 cons.
15062
54b33868
MR
150632008-12-26 Martin Rudalics <rudalics@gmx.at>
15064
15065 * textprop.c (Qminibuffer_prompt): New variable.
15066 (syms_of_textprop): Initialize it.
15067 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
15068 in minibuffer-prompt face. (Bug#1662)
15069
40b615d6
JR
150702008-12-25 Jason Rumney <jasonr@gnu.org>
15071
15072 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
15073
baae5c2d
JR
150742008-12-24 Jason Rumney <jasonr@gnu.org>
15075
15076 * ralloc.c (r_alloc_reset_variable): New function.
15077
15078 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 15079 record of what points where. (Bug#716)
baae5c2d 15080
a9051c88
DN
150812008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
15082
15083 * minibuf.c (read_minibuf): Follow the non-interactive case when
15084 running as a daemon, before detaching.
15085
8b146312
AS
150862008-12-22 Andreas Schwab <schwab@suse.de>
15087
15088 * buffer.c (init_buffer): Use realloc instead of xrealloc.
15089 * gtkutil.c (free_widget_value): Use xfree instead of free.
15090
56f2de10
MR
150912008-12-22 Martin Rudalics <rudalics@gmx.at>
15092
15093 * frame.c (delete_frame): New function derived from
15094 Fdelete_frame to handle Qnoelisp value for FORCE argument.
15095 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
15096 (Fdelete_frame): Call delete_frame. Remove line from doc-string
15097 saying that FORCE non-nil doesn't run `delete-frame-functions'.
15098 * frame.h: Extern delete_frame.
15099 * window.c (window_loop):
15100 * terminal.c (delete_terminal):
15101 * xterm.c (x_connection_closed):
15102 * xfns.c (Fx_hide_tip):
9acef61c 15103 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 15104
1fc200d6
JR
151052008-12-21 Jason Rumney <jasonr@gnu.org>
15106
15107 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
15108 when character maps to .notdef character.
15109
5e252df2
SM
151102008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
15111
15112 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
15113
99b72cc4
JR
151142008-12-20 Jason Rumney <jasonr@gnu.org>
15115
15116 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 15117 a graphical frame on Windows. (Bug#1325)
99b72cc4 15118
acc49a52
JD
151192008-12-20 Jan Djärv <jan.h.d@swipnet.se>
15120
15121 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
15122
6ea15123
CY
151232008-12-20 Chong Yidong <cyd@stupidchicken.com>
15124
15125 * minibuf.c (Fread_buffer): Doc fix.
15126
b2dab6c8
JR
151272008-12-20 Jason Rumney <jasonr@gnu.org>
15128
54ea0c87 15129 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 15130 server name in UNC paths. (Bug#719)
54ea0c87 15131
b2dab6c8 15132 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 15133 charbuf. (Bug#1035)
b2dab6c8 15134
6d1921be
DN
151352008-12-19 Daniel Engeler <engeler@gmail.com>
15136
15137 * sysdep.c (serial_configure): Fix typo.
15138
53934c98
DN
151392008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15140
15141 * sysdep.c: Include alloca.h.
f4f634e8
DN
15142 (system_process_attributes): Add implementation for Solaris.
15143
15144 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 15145
06e111a6
DN
151462008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15147
15148 Reorganize implementation of Flist_system_processes and
15149 Fsystem_process_attributes. No functional changes.
15150 * process.c: Don't #include pwd.h, grp.h and limits.h.
15151 (Flist_system_processes): Just call list_system_processes.
15152 (Fsystem_process_attributes): Just call system_process_attributes.
15153 (procfs_list_system_processes, time_from_jiffies)
15154 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15155 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
15156
15157 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
15158 (list_system_processes): Rename from
15159 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
15160 Provide a do nothing implementation.
15161 (system_process_attributes): Rename from
15162 procfs_list_system_processes.
15163 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 15164 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
15165
15166 * w32.c (list_system_processes): Rename from
15167 w32_list_system_processes.
15168 (system_process_attributes): Rename from
15169 w32_system_process_attributes.
15170
15171 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
15172
15173 * process.h (w32_list_system_processes)
15174 (w32_system_process_attributes): Remove.
362654a6
JB
15175 (list_system_processes, system_process_attributes):
15176 New prototypes.
06e111a6 15177
6a705b23
KH
151782008-12-19 Kenichi Handa <handa@m17n.org>
15179
15180 * xfont.c (xfont_decode_coding_xlfd): New function.
15181 (xfont_encode_coding_xlfd): New function.
15182 (xfont_list_pattern): Decode XLFD by iso-8859-1.
15183 (xfont_list): Decode and encode XLFD by iso-8859-1.
15184 (xfont_match): Likewise.
15185 (xfont_list_family): Likewise.
15186 (xfont_open): Likewise.
15187
d66c0241 15188 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
15189 names are utf-8.
15190
d66c0241 15191 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
15192 names are utf-8.
15193
5a130941
JD
151942008-12-18 Jan Djärv <jan.h.d@swipnet.se>
15195
15196 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
15197 changed.
bfd20325
JD
15198 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
15199 clicked on a detached tool bar button.
5a130941 15200
fd95644b
DN
152012008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
15202
15203 * emacs.c (main): Print and error and exit when no data is read
15204 from the pipe.
15205
e6eee6ae
JR
152062008-12-17 Jason Rumney <jasonr@gnu.org>
15207
15208 * w32font.c (w32font_has_char): Always return -1.
15209
a35dd56b
KH
152102008-12-16 Kenichi Handa <handa@m17n.org>
15211
15212 * font.c (font_open_entity): Fix previous change.
15213
0e3635c2
DN
152142008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
15215
15216 * process.c: Include <limits.h>.
15217
d4835507 152182008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
15219
15220 * font.c (font_update_drivers): Fix mistake in reconstructing the
15221 driver list.
15222
152232008-12-16 Chong Yidong <cyd@stupidchicken.com>
15224
15225 * font.c (font_clear_cache): Fix format of font cache data.
15226
e2cbc401
CY
152272008-12-15 Chong Yidong <cyd@stupidchicken.com>
15228
15229 * xftfont.c (xftfont_open): Free Xft font pattern if
15230 XftFontOpenPattern fails.
15231
15232 * xterm.c (x_free_frame_resources): Remove extraneous call to
15233 free_frame_faces.
15234
b131d535
CY
152352008-12-13 Chong Yidong <cyd@stupidchicken.com>
15236
15237 * xterm.c (x_delete_display): Move xim_close_dpy call to
15238 x_delete_terminal.
15239 (x_delete_terminal): Call xim_close_dpy.
15240
e6df5336
JR
152412008-12-13 Jason Rumney <jasonr@gnu.org>
15242
15243 * w32font.c (intern_font_name): New function.
15244 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
15245 (w32font_open_internal, Fx_select_font): Decode font name.
15246 (fill_in_logfont, list_all_matching_fonts): Encode font name.
15247
15248 * w32font.h (intern_font_name): Declare new function.
15249
15250 * w32uniscribe.c (add_opentype_font_name_to_list):
15251 Use intern_font_name.
15252
20d68145
CY
152532008-12-13 Chong Yidong <cyd@stupidchicken.com>
15254
9f2554de
CY
15255 * frame.c (Fdelete_frame): Call free_font_driver_list.
15256
3d9bec9a
CY
15257 * font.c (free_font_driver_list): Implement missing function.
15258
20d68145
CY
15259 * w32term.c (w32_term_init): Don't initialize the image cache
15260 here; it will be done in init_frame_faces.
15261
15262 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
15263 (struct x_display_info): Remove unused member null_pixel.
15264 New member xim_callback_data.
20d68145
CY
15265
15266 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
15267 (xim_initialize): Save pointer to callback function data.
15268 (xim_close_dpy): Free callback function data. Call XCloseIM,
15269 reverting 2008-11-04 change by David Smith.
15270 (x_term_init): Don't initialize the image cache here; it will be
15271 done in init_frame_faces. Remove ancient "null_pixel" cruft.
15272 (x_delete_display): Free x_dnd_atoms member.
15273
96f9306b
KH
152742008-12-13 Kenichi Handa <handa@m17n.org>
15275
ef1b0ba7 15276 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 15277 Argument type changed. Handle a font-spec too.
96f9306b 15278 (font_score): Check Vface_font_rescale_alist.
6dec9044 15279 (font_open_entity): Likewise. (Bug#1547)
96f9306b 15280
ef1b0ba7 15281 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 15282
8d5b4964
CY
152832008-12-13 Chong Yidong <cyd@stupidchicken.com>
15284
15285 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
15286
e6df5336
JR
152872008-12-12 Jason Rumney <jasonr@gnu.org>
15288
bba3e508
SM
15289 * w32fns.c (x_display_info_for_name, Fx_open_connection):
15290 Set Vwindow_system_version to the real w32 major version.
e6df5336 15291
97c6058a
DN
152922008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
15293
15294 * term.c (init_tty): Move setting the terminal name before the
15295 potential user: maybe_fatal.
15296
ec4e88d7
CY
152972008-12-11 Chong Yidong <cyd@stupidchicken.com>
15298
ef1b0ba7 15299 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 15300 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 15301
b4233ec9
JR
153022008-12-11 Jason Rumney <jasonr@gnu.org>
15303
8ec71e23 15304 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 15305 SYMBOL_CHARSET. (Bug#547)
8ec71e23 15306
b4233ec9 15307 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 15308 size for surrogates. (Bug#1096, bug#872)
b4233ec9 15309
011a0143
JB
153102008-12-11 Juanma Barranquero <lekktu@gmail.com>
15311
15312 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
15313
3c309f34
JB
153142008-12-11 Juanma Barranquero <lekktu@gmail.com>
15315
15316 * process.c (Fsystem_process_attributes, syms_of_process):
15317 Fix typo in name of Ssystem_process_attributes.
15318 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
15319
fedc6ab5
JB
153202008-12-11 Juanma Barranquero <lekktu@gmail.com>
15321
15322 * syntax.c (Fmodify_syntax_entry): Doc fix.
15323
ba3de0e8
JB
153242008-12-10 Juanma Barranquero <lekktu@gmail.com>
15325
15326 * font.c (Ffont_spec): Move usage to end of docstring.
15327
174f1c74
JR
153282008-12-10 Jason Rumney <jasonr@gnu.org>
15329
15330 * w32font.c (Qcham): New symbol.
15331 (font_supported_scripts): Add cham, and comments for other new
15332 scripts in bitfield from OpenType spec.
9d32f818
JR
15333 (add_font_entity_to_list): Limit unicode-sip fonts to those that
15334 contain characters beyond the bmp.
174f1c74 15335
7b649478
KH
153362008-12-10 Kenichi Handa <handa@m17n.org>
15337
15338 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 15339 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
15340 Qunicode_sip.
15341
2133e2d1
JB
153422008-12-10 Juanma Barranquero <lekktu@gmail.com>
15343
15344 * coding.c (QCdefault_char): Rename from QCdefalut_char.
15345 (Fcoding_system_put): Use QCdefault_char.
15346 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
15347
9af886ee
CY
153482008-12-09 Chong Yidong <cyd@stupidchicken.com>
15349
74d819eb
CY
15350 * xftfont.c (syms_of_xftfont): Fix typo.
15351
4ccfa1c0 15352 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 15353
7c19d3ae
DN
153542008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
15355
15356 * emacs.c (main): Close daemon_pipe on exec.
15357
567826bb
CY
153582008-12-08 Chong Yidong <cyd@stupidchicken.com>
15359
15360 * termchar.h (struct tty): New members termcap_term_buffer and
15361 termcap_strings_buffer.
15362
15363 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 15364 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
15365 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
15366 All callers changed.
15367 (init_tty): Store termcap data and string buffers in new struct
15368 tty members termcap_term_buffer and termcap_strings_buffer.
15369 (delete_tty): Free them.
4ccfa1c0 15370 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 15371
aa96c42b
SZ
153722008-12-07 Seiji Zenitani <zenitani@mac.com>
15373
15374 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 15375 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 15376
b7e1d896
CY
153772008-12-06 Chong Yidong <cyd@stupidchicken.com>
15378
15379 * coding.c (make_conversion_work_buffer): Disable buffer
15380 modification hooks in the work buffer.
15381
b5ec91a5
EZ
153822008-12-05 Eli Zaretskii <eliz@gnu.org>
15383
15384 * process.c (procfs_system_process_attributes): If `nread' has a
15385 negative value, assign zero to it.
15386
a5d2a52b
CY
153872008-12-05 Chong Yidong <cyd@stupidchicken.com>
15388
68c5540b 15389 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 15390
7bf1bb21
KH
153912008-12-05 Kenichi Handa <handa@m17n.org>
15392
15393 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
15394 second character is a combining character.
15395
2fdc7d00
EZ
153962008-12-05 Eli Zaretskii <eliz@gnu.org>
15397
15398 * process.c (procfs_system_process_attributes): Don't use cmd,
15399 cmdsize, and q without initializing them first.
15400
bf6bfba8
JR
154012008-12-04 Jason Rumney <jasonr@gnu.org>
15402
15403 * w32font.c (w32font_draw): Initialize orig_clip before getting
15404 it, and delete it when finished.
15405
a3b1a468
DN
154062008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
15407
15408 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
15409 case when running as a daemon before detaching.
15410
8b8be8eb
JB
154112008-12-03 Juanma Barranquero <lekktu@gmail.com>
15412
805f2638 15413 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 15414
b1bde622
KH
154152008-12-03 Kenichi Handa <handa@m17n.org>
15416
e500c47d
KH
15417 * font.c (font_at): Set `multibyte' at first.
15418
ca516334
KH
15419 * coding.c (decode_coding_charset): Check type of an element of
15420 vector VALIDS.
7bf1bb21 15421 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 15422
4ccfa1c0 15423 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
15424 (font_for_char): Likewise.
15425
1e5ecd37
CY
154262008-12-03 Chong Yidong <cyd@stupidchicken.com>
15427
d5b01609 15428 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
15429 (font_update_lface): Handle fonts with corrupted size specs,
15430 i.e. non-int and non-float.
d5b01609 15431
11e3a6e4 15432 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 15433 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 15434 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 15435
ab06788b
CY
15436 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
15437
1e5ecd37 15438 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 15439 underline_minimum_offset for underline position.
1e5ecd37 15440
63c125ab
DN
154412008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
15442
15443 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
15444
15445 * character.c (c_string_width): Specify the type for LEN.
15446
3a8406e1
KH
154472008-12-03 Kenichi Handa <handa@m17n.org>
15448
4ccfa1c0 15449 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 15450 (decode_coding_utf_8): Likewise.
4ccfa1c0 15451 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 15452 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 15453
651df7d9
CY
154542008-12-02 Chong Yidong <cyd@stupidchicken.com>
15455
15456 * keyboard.c (make_lispy_position): Only use PT if the selected
15457 window is current.
15458
1f625c6c
AS
154592008-12-02 Andreas Schwab <schwab@suse.de>
15460
f7741ce9
AS
15461 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
15462
1f625c6c
AS
15463 * doprnt.c (doprnt1): Fix size of charbuf.
15464
92bc2678
CY
154652008-12-02 Chong Yidong <cyd@stupidchicken.com>
15466
15467 * keyboard.c (timer_check): Revert last change.
15468
93b9e8cc
JB
154692008-12-02 Juanma Barranquero <lekktu@gmail.com>
15470
15471 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
15472
fd7a37d5
JB
154732008-12-01 Juanma Barranquero <lekktu@gmail.com>
15474
15475 * makefile.w32-in: Update dependencies.
15476 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
15477
c115043b
AS
154782008-12-01 Andreas Schwab <schwab@suse.de>
15479
15480 * font.c (register_font_driver): Use xmalloc.
15481 (font_put_frame_data): Likewise.
15482
f5668d2a
CY
154832008-12-01 Chong Yidong <cyd@stupidchicken.com>
15484
860d96be
CY
15485 * xfaces.c (realize_x_face): Make abort condition clearer.
15486
f5668d2a
CY
15487 * gtkutil.c (update_frame_tool_bar): Initialize variable.
15488
379c17e7
CY
154892008-11-30 Chong Yidong <cyd@stupidchicken.com>
15490
15491 * keyboard.c (timer_check): After a timer runs, ensure that the
15492 selected window's buffer is current.
15493
35f36d65
JB
154942008-11-30 Juanma Barranquero <lekktu@gmail.com>
15495
f952c61c
JB
15496 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
15497 It was accidentally restored by the Unicode merge.
15498
35f36d65
JB
15499 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
15500
b23077df
JB
155012008-11-29 Juanma Barranquero <lekktu@gmail.com>
15502
15503 * w32proc.c: Include "coding.h".
15504 (Fw32_short_file_name): Encode filename passed to Windows API.
15505 (Fw32_long_file_name): Encode filename passed to Windows API and
15506 decode back the result. (Bug#1433)
15507
b8ebe9dd
KH
155082008-11-29 Kenichi Handa <handa@m17n.org>
15509
8cc53f96
KH
15510 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
15511 not before accessing it.
15512
b8ebe9dd
KH
15513 * charset.c (Fdefine_charset_internal): After calculating
15514 min_char, max_char, and fastmap, copy the charset structure again.
15515 (encode_char): Fix the previous change.
15516
59bc82c0
SZ
155172008-11-28 Seiji Zenitani <zenitani@mac.com>
15518
15519 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
15520
15521 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
15522
15523 * nsterm.m (x_set_frame_alpha): New function.
15524
32247e3d
EZ
155252008-11-27 Eli Zaretskii <eliz@gnu.org>
15526
15527 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
15528
b003e5ff
JB
155292008-11-27 Juanma Barranquero <lekktu@gmail.com>
15530
15531 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
15532 pointer to check_face_name.
15533
708550f5
KH
155342008-11-27 Kenichi Handa <handa@m17n.org>
15535
15536 * category.h (SET_CATEGORY_SET): Call set_category_set.
15537 (set_category_set): Extern it.
15538
15539 * category.c (hash_get_category_set): New function.
bba3e508 15540 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
15541 char_table_ref_and_range. Call hash_get_category_set to get a
15542 category set to store in the table.
15543
15544 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
15545 Funify_charset.
15546
2ae37cf0 15547 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
15548 (DECODE_CHAR): Check if the decoder vector is ready.
15549 (ENCODE_CHAR): Check if the encoder char-table is ready.
15550 (maybe_unify_char): Extern it.
15551
15552 * charset.c (Vchar_unified_charset_table): Delete it.
15553 (inhibit_load_charset_map): New variable.
15554 (temp_charset_work): New variable.
15555 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
15556 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
15557 New macros.
bba3e508
SM
15558 (load_charset_map): Meaning of control_flag changed.
15559 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
15560 temp_charset_work.
15561 (load_charset): New argument control_flag.
15562 (map_charset_for_dump): New function.
15563 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
15564 map_charset_for_dump.
15565 (Fdefine_charset_internal): If the charset method is MAP, load
15566 mapping tables by calling load_charset.
15567 (Funify_charset): Don't load a mapping table but directly set
15568 Vchar_unify_table.
15569 (maybe_unify_char): New function.
15570 (decode_char): Don't handle the deleted method MAP_DEFERRED.
15571 Handle the case of inhibit_load_charset_map being nonzero.
15572 (encode_char): Don't handle the deleted method MAP_DEFERRED.
15573 Handle the case of inhibit_load_charset_map being nonzero.
15574 (Fclear_charset_maps): Just free temp_charset_work.
15575 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
15576 variable.
15577
bba3e508 15578 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
15579 change of char_table_ref_and_range.
15580 (char_table_ref_and_range): Change the meaning of argument FROM
15581 and TO. Now the caller must provide initial values for *FROM
15582 and *TO.
15583
bba3e508 15584 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
15585 char_table_ref_and_range.
15586 (fontset_get_font_group): Likewise.
15587 (Ffontset_info): Likewise.
15588
bba3e508 15589 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
15590 char_table_ref_and_range. For char-table, put boundary between
15591 non-ASCII and 8-bit characters.
15592
15593 * print.c (print_object): For bool-vector, delete unnecessary
15594 check of ASCII_BYTE_P.
15595
9196133b
JR
155962008-11-26 Jason Rumney <jasonr@gnu.org>
15597
15598 * w32font.c (w32font_open_internal): Don't include external
9acef61c 15599 leading in font height. (Bug#879)
9196133b 15600
9f688acf
GM
156012008-11-26 Glenn Morris <rgm@gnu.org>
15602
15603 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
15604 redefinition with ifdef. (Bug#1383)
15605
90d19aff
AR
156062008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15607
15608 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
15609
4ccfa1c0 156102008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
15611
15612 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
15613 New EmacsView methods.
15614 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
15615 Fixes bug #1048,1357,1414.
15616
156172008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15618
15619 Fix bug #1362.
15620 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
15621 is not an indexed color.
15622 * nsterm.m (free_indexed_color): Add argument checking.
15623 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
15624
e7d5ecb3
CY
156252008-11-24 Chong Yidong <cyd@stupidchicken.com>
15626
15627 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
15628 Document confirm-after-completion value for
15629 minibuffer-completion-confirm.
15630
c285743c
JR
156312008-11-24 Jason Rumney <jasonr@gnu.org>
15632
15633 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
15634 warning.
15635
b0857706
JR
156362008-11-23 Jason Rumney <jasonr@gnu.org>
15637
15638 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
15639 restored before returning.
15640
15641 * w32font.c (check_face_name): New function.
15642 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 15643 fonts. (Bug#642)
b0857706 15644
ee50ff07
MR
156452008-11-22 Martin Rudalics <rudalics@gmx.at>
15646
15647 * buffer.c (Fswitch_to_buffer): Reword and mention new option
15648 confirm-nonexistent-file-or-buffer in doc-string.
15649
b8ff72fa
SM
156502008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15651
15652 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
15653 Fix copy/paste typo. Add checks.
15654
cee53ed4
KH
156552008-11-21 Kenichi Handa <handa@m17n.org>
15656
15657 * coding.c (detect_coding_iso_2022): Reject invalid composition
15658 sequence.
15659 (DECODE_COMPOSITION_START): If the current source is the last
15660 block, and the current composition doesn't end, regard this
15661 sequence as invalid.
15662 (decode_coding_iso_2022): Handle invalid composition sequence.
15663
f6ef1e65
MR
156642008-11-20 Martin Rudalics <rudalics@gmx.at>
15665
15666 * window.c (coordinates_in_window): Don't return
15667 ON_VERTICAL_BORDER for the rightmost position of a mode/header
15668 line when the window is not the rightmost one. (Bug#1372)
15669
e08b1705
MR
156702008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
15671
15672 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
15673
ad98e89f
EZ
156742008-11-15 Eli Zaretskii <eliz@gnu.org>
15675
15676 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
15677 and bright_bg if noninteractive is non-zero.
15678
fb098a4b
CY
156792008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15680
15681 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
15682 x_draw_glyph_string_background.
15683
15684 * w32term.c (x_draw_glyph_string): Likewise.
15685
ce952b6e
CY
156862008-11-15 Chong Yidong <cyd@stupidchicken.com>
15687
15688 * xterm.c (x_draw_glyph_string): Stop drawing the background of
15689 the next glyph string once past the overhang width.
15690
15691 * nsterm.m (ns_draw_glyph_string): Likewise.
15692
15693 * w32term.c (x_draw_glyph_string): Likewise.
15694
26ea7079
CY
156952008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
15696
15697 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
15698 double file close.
15699
1c33c906
MR
157002008-11-14 Martin Rudalics <rudalics@gmx.at>
15701
15702 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
15703 dedicated status of window before attempting to display another
15704 buffer in it.
15705
8fc29035
JB
157062008-11-14 Juanma Barranquero <lekktu@gmail.com>
15707
15708 * msdos.c (Fmsdos_long_file_names):
15709 (syms_of_msdos) <dos-unsupported-char-glyph>:
15710 * dosfns.c (Fint86): Fix typos in docstrings.
15711
55fb4286
EZ
157122008-11-14 Eli Zaretskii <eliz@gnu.org>
15713
15714 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
15715
3fda0315
KY
157162008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
15717
15718 * puresize.h (BASE_PURESIZE): Increase to 1260000.
15719
7e849c17
CY
157202008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
15721
15722 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
15723
15724 * frame.h: Negative alpha means "don't touch".
15725
15726 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
15727
15728 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
15729
b9fd67bd
DN
157302008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
15731
15732 * hftctl.c:
15733 * chpdef.h:
15734 * acldef.h: Remove files used only for systems no longer supported.
15735
15736 * Makefile.in: Fix .o alphabetical ordering.
15737 (hftctl.o): Remove dependency, file removed.
15738 (keymap.o, print.o): Depend on charset.h.
15739
d5998e03
KH
157402008-11-10 Kenichi Handa <handa@m17n.org>
15741
2ae37cf0 15742 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 15743
be70e183
CY
157442008-11-08 Chong Yidong <cyd@stupidchicken.com>
15745
15746 * dired.c (file_name_completion): If completion_ignore_case is
15747 enabled, ignore case when checking completion-regexp-list.
15748
7cf94eac
EZ
157492008-11-08 Eli Zaretskii <eliz@gnu.org>
15750
15751 * vm-limit.c (get_lim_data): Fix last change.
15752
ee107a89
KH
157532008-11-08 Kenichi Handa <handa@m17n.org>
15754
15755 * character.c (Fget_byte): New function.
15756 (syms_of_character): Defsubr Fget_byte.
15757
5fd15622
CY
157582008-11-07 Chong Yidong <cyd@stupidchicken.com>
15759
15760 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
15761 cursor position is valid after scrolling.
15762
13d62fad
JB
157632008-11-06 Juanma Barranquero <lekktu@gmail.com>
15764
15765 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
15766
a1dd2936
GM
157672008-11-06 Glenn Morris <rgm@gnu.org>
15768
15769 * xterm.c (handle_one_xevent): Don't let popup menus cause
15770 mouse-autoselect-window related window switching. (Bug#1261)
15771
860cd236
CY
157722008-11-04 David Smith <davidsmith@acm.org> (tiny change)
15773
15774 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
15775
653a3150
AS
157762008-11-04 Andreas Schwab <schwab@suse.de>
15777
15778 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
15779
870f5cac
CY
157802008-11-03 Chong Yidong <cyd@stupidchicken.com>
15781
15782 * xfns.c (Fx_wm_set_size_hint): New function.
15783
1e02f3cb
MR
157842008-11-03 Martin Rudalics <rudalics@gmx.at>
15785
15786 * textprop.c (Fprevious_single_char_property_change): Return 0
15787 when there's no change in a string. (Bug#1301)
15788
e630dfc6
MR
157892008-11-02 Martin Rudalics <rudalics@gmx.at>
15790
15791 * frame.c (do_switch_frame): New argument NORECORD passed to
15792 Fselect_window.
15793 (Fselect_frame): New argument NORECORD passed to
15794 do_switch_frame.
15795 (Fset_frame_selected_window): New argument NORECORD passed to
15796 Fselect_frame.
15797 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
15798 in call of do_switch_frame.
15799 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
15800 Handle NORECORD argument in call of Fselect_frame.
15801 * lisp.h (do_switch_frame, Fselect_frame)
15802 (Fset_frame_selected_window): Adjust declarations.
15803 * window.c (select_frame_norecord): New function.
15804 (run_window_configuration_change_hook): Use it and call
15805 Fselect_frame with NORECORD set.
15806 (Fselect_window): Pass NORECORD to Fselect_frame.
15807 (Fset_window_configuration): Handle NORECORD argument in call of
15808 do_switch_frame.
15809 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
15810 Fset_frame_selected_window.
15811 * keyboard.c (command_loop_1): Handle NORECORD in call of
15812 Fselect_frame (currently ifdefd).
15813
9020b223
GM
158142008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
15815
15816 * emacs.c (USAGE2): Untabify.
15817
793ffee8
SM
158182008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
15819
15820 * composite.c (fill_gstring_header): Fix copy/paste typo.
15821
ab6d1131
MR
158222008-10-31 Martin Rudalics <rudalics@gmx.at>
15823
15824 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
15825 (Fother_window): Rename argument and rewrite doc-string.
15826 (select_window_norecord): Fix return value. (Bug#1276)
15827
601a9cf1
JB
158282008-10-30 Juanma Barranquero <lekktu@gmail.com>
15829
15830 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
15831 new frames overriding foreground for tooltips. Based on similar patch
15832 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
15833
813b0652
CY
158342008-10-29 Chong Yidong <cyd@stupidchicken.com>
15835
15836 * emacs.c (Fdaemon_initialized): Initialize nfd.
15837
4414f58f
MR
158382008-10-29 Martin Rudalics <rudalics@gmx.at>
15839
15840 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
15841 (Fwindow_text_height): Clarify doc-strings.
15842 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
15843 doc-string of window-scroll-functions.
15844
ecdcaa09
RS
158452008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
15846
15847 * category.c (syms_of_category): Fix typo in docstring.
15848
23fe745a
JB
158492008-10-28 Juanma Barranquero <lekktu@gmail.com>
15850
15851 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
15852 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
15853 Fix typos in docstrings.
15854
ff808935
DN
158552008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
15856
15857 * emacs.c (daemon_pipe): Make non-static.
15858 (IS_DAEMON): Move definition ...
15859 * lisp.h (IS_DAEMON): ... here.
15860 (daemon_pipe): Declare.
15861 (is_daemon): Remove.
15862 * dispnew.c (init_display): Use IS_DAEMON.
15863
fc012771
SM
158642008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
15865
15866 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
15867 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
15868
15869 * emacs.c (is_daemon): Remove.
15870 (main): Don't set is_daemon.
15871 (IS_DAEMON): New macro.
15872 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 15873 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
15874 parent exits.
15875 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
15876
d8bdbe6f
CY
158772008-10-27 Chong Yidong <cyd@stupidchicken.com>
15878
d1a072bf
CY
15879 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
15880 over-sized glyph, draw it with the default glyph width.
15881
e2e325aa
CY
15882 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
15883 glyph, draw it with the default glyph width.
15884
15885 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
15886 glyph, draw it with the default glyph width.
15887
d8bdbe6f
CY
15888 * xdisp.c (try_scrolling): When computing the distance from the
15889 scroll margin to PT, try moving some distance past the window
15890 bottom before giving up.
15891
7bfac547
MR
158922008-10-27 Martin Rudalics <rudalics@gmx.at>
15893
15894 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
15895 (Fset_window_buffer): Explain in doc-string that a window can be
15896 "strongly" dedicated to its buffer.
15897
4ff029f6
DN
158982008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
15899
15900 * emacs.c (daemon_name): New variable.
15901 (main): Deal with --daemon=SERVER_NAME.
15902 (Fdaemonp): Return a name if one was passed to --daemon.
15903
5790ef40
DN
159042008-10-26 Romain Francoise <romain@orebokech.com>
15905
f9bd0df9 15906 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
15907 (main): Create a pipe before forking, make the parent exit only after
15908 the child has closed its end of the pipe. Move closing the
15909 descriptors ...
15910 (Fdaemon_initialized): ... here. New function.
15911
f5385255
SM
159122008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
15913
4d632321
SM
15914 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
15915 the previous unoptimized table.
15916
f5385255
SM
15917 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
15918 the distinction between non-nil and non-t value of `dedicated'.
15919
6c56a0f3
CY
159202008-10-25 Chong Yidong <cyd@stupidchicken.com>
15921
15922 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 15923 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 15924
fec89261
MR
159252008-10-25 Martin Rudalics <rudalics@gmx.at>
15926
15927 * window.c (Fget_buffer_window, Fdelete_windows_on)
15928 (Freplace_buffer_in_windows): Make buffer argument optional and
15929 rename to buffer_or_name.
15930
34fcddd0
CY
159312008-10-24 Chong Yidong <cyd@stupidchicken.com>
15932
f5385255
SM
15933 * xdisp.c (handle_single_display_spec, handle_display_prop):
15934 Undo 2005-05-16 change.
34fcddd0
CY
15935 (handle_stop): Pop iterator if it's loaded with an empty string.
15936 (get_overlay_strings_1): Don't save iterator if it's loaded with
15937 an empty string (bug#1201).
15938
064766f2
KH
159392008-10-24 Kenichi Handa <handa@m17n.org>
15940
15941 * ftfont.c (ftfont_otf_features): Fix previous change.
15942 (ftfont_otf_capability): Check FeatureList.FeatureCount before
15943 calling ftfont_otf_features.
15944
f9bd0df9 159452008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
15946
15947 * font.c (font_match_p): Fix for the case that a vector of
15948 characters is in script-representative-chars.
15949
1dae9197
MA
159502008-10-24 Michael Albinus <michael.albinus@gmx.de>
15951
15952 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 15953 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
15954 (xd_read_queued_messages): Catch Qdbus_error from the macros.
15955 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 15956 macro. (Bug#1186)
1dae9197 15957
f9bd0df9 159582008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
15959
15960 * s/sol2-10.h: New file.
15961
878a4584
JB
159622008-10-23 Juanma Barranquero <lekktu@gmail.com>
15963
15964 * xdisp.c (fill_glyph_string): Fix typo in source (though the
15965 poor beast has survived 9+ years and the jump from xterm.c!).
15966
cd265ca6
MR
159672008-10-23 Martin Rudalics <rudalics@gmx.at>
15968
15969 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
15970 Reword doc-string.
f5385255 15971 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 15972
472a4dc9
JB
159732008-10-23 Juanma Barranquero <lekktu@gmail.com>
15974
15975 * character.c (syms_of_character) <script-representative-chars>:
15976 <unicode-category-table>: Doc fixes.
15977
159bd5a2
NF
159782008-10-23 Noah Friedman <friedman@splode.com>
15979
15980 * coding.c (make_conversion_work_buffer): Check that
15981 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
15982 Fget_buffer_create.
15983
49f9c344
KH
159842008-10-23 Kenichi Handa <handa@m17n.org>
15985
15986 * font.c (font_add_log): Check the values of extra properties.
15987
12bb3111
MR
159882008-10-22 Martin Rudalics <rudalics@gmx.at>
15989
15990 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
15991 Reword doc-string.
15992 (Fset_window_parameter): Use NILP.
15993 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 15994 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 15995
bbeb4e99
JB
159962008-10-22 Juanma Barranquero <lekktu@gmail.com>
15997
15998 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
15999
160002008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
16001
16002 * nsfns.m (ns_appkit_version): New function.
16003 (x-server-version): Use it.
16004 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16005 (x-server-vendor): Don't check_ns().
16006
16007 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16008
a9b555d3
JB
160092008-10-22 Juanma Barranquero <lekktu@gmail.com>
16010
16011 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16012 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16013
4626499f
KH
160142008-10-22 Kenichi Handa <handa@m17n.org>
16015
e3681952
KH
16016 * syntax.c (scan_words): Call word_boundary_p instead of comparing
16017 scripts.
16018
4626499f
KH
16019 * category.c (word_boundary_p): Check scripts instead of charset.
16020 Handle nil value in word-separating-categories and
16021 word-combining-categories.
16022 (syms_of_category): Fix docstrings of word-separating-categories
16023 and word-combining-categories.
16024
1560f91a
EZ
160252008-10-21 Eli Zaretskii <eliz@gnu.org>
16026
16027 * coding.c (Fencode_coding_region, Fdecode_coding_region)
16028 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
16029
f4668441
MR
160302008-10-21 Martin Rudalics <rudalics@gmx.at>
16031
16032 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
16033 Rename arg "buffer" to "buffer_or_name".
16034 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
16035 it optional.
16036 (no_switch_window): Remove since the return value is not used.
a9b555d3 16037 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
16038 Consider window as dedicated when Fwindow_dedicated_p returns a
16039 non-nil value.
16040 * lisp.h: Remove prototype for no_switch_window.
16041
fd75ddb2
JD
160422008-10-21 Jan Djärv <jan.h.d@swipnet.se>
16043
16044 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 16045 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 16046
07295713
KH
160472008-10-21 Kenichi Handa <handa@m17n.org>
16048
16049 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
16050 check Vlatin_extra_code_table.
16051
712adc82
EZ
160522008-10-20 Eli Zaretskii <eliz@gnu.org>
16053
16054 * fileio.c (Fset_file_modes): Doc fix.
16055
f549eb0b
MA
160562008-10-19 Michael Albinus <michael.albinus@gmx.de>
16057
16058 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
16059 in arrays.
16060
aac0c6e3
MR
160612008-10-19 Martin Rudalics <rudalics@gmx.at>
16062
16063 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16064 Mention kill-buffer in doc-string.
16065 (Fset_window_buffer): Reinsert tem check removed in last commit.
16066 (Fenlarge_window, Fshrink_window): Have argument names and
16067 doc-string follow Elisp manual more closely.
16068
160692008-10-18 Eli Zaretskii <eliz@gnu.org>
16070
16071 * fileio.c (Fset_file_modes): Doc fix.
16072
160732008-10-18 Martin Rudalics <rudalics@gmx.at>
16074
16075 * window.c (Fwindow_width, Fset_window_start)
16076 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
16077 (Fdelete_windows_on, Freplace_buffer_in_windows):
16078 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
16079 (Fwindow_dedicated_p): Make window argument optional.
16080 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
16081 (Fset_window_buffer): Respect any non-nil dedicated value for
16082 window. Rename "buffer" argument to "buffer_or_name".
16083
160842008-10-18 Ulrich Mueller <ulm@gentoo.org>
16085
16086 * m/sh3.h: New file, machine description for SuperH.
16087
160882008-10-17 Martin Rudalics <rudalics@gmx.at>
16089
16090 * window.c (Fsplit_window): Rename arg horflag to horizontal.
16091
160922008-10-17 Kenichi Handa <handa@m17n.org>
16093
16094 * ftfont.c (ftfont_otf_features): Fix indexing
16095 gsub_gpos->FeatureList.Feature. Check the validity of indices.
16096
160972008-10-16 Magnus Henoch <mange@freemail.hu>
16098
16099 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
16100 (Fdbus_call_method_asynchronously): Ditto.
16101 This change makes C-h f display the argument list.
16102
161032008-10-16 Chong Yidong <cyd@stupidchicken.com>
16104
16105 * fileio.c (Fexpand_file_name): Doc fix.
16106
16107 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
16108 of :foreground and :background equivalent to unspecified (20.x
16109 compatibility).
16110
161112008-10-15 Eli Zaretskii <eliz@gnu.org>
16112
16113 * buffer.c (syms_of_buffer): Doc fix.
16114
161152008-10-14 Kenichi Handa <handa@m17n.org>
16116
16117 * font.c (font_clear_prop): When clearing font width, clear the
16118 average width field too.
16119
161202008-10-12 Andreas Schwab <schwab@suse.de>
16121
16122 * ftfont.c (ftfont_shape_by_flt): Make static.
16123 * ftfont.h (ftfont_shape_by_flt): Don't declare.
16124
16125 * font.c: Don't include <m17n-flt.h>.
16126
161272008-10-10 Eli Zaretskii <eliz@gnu.org>
16128
16129 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
16130
161312008-10-09 Eli Zaretskii <eliz@gnu.org>
16132
16133 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
16134 away code.
16135
161362008-10-09 Chong Yidong <cyd@stupidchicken.com>
16137
16138 * dispnew.c (update_text_area): Avoid looping due to large glyph
16139 overhangs (bug#1070).
16140
161412008-10-09 Kenichi Handa <handa@m17n.org>
16142
16143 * fontset.c (face_for_char): If face->fontset is negative, just
16144 return ascii_face.
16145
f5385255
SM
16146 * font.c (font_delete_unmatched): Fix previous change.
16147 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
16148
161492008-10-09 Martin Rudalics <rudalics@gmx.at>
16150
16151 * frame.c (Fraise_frame): On text-only terminals select frame in
16152 order to make it visible. (Bug#1061)
16153
161542008-10-08 Chong Yidong <cyd@stupidchicken.com>
16155
16156 * fontset.c (fontset_find_font): Check frame validity.
16157
161582008-10-07 Chong Yidong <cyd@stupidchicken.com>
16159
a9b555d3 16160 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
16161 (xg_display_close): Allow Emacs to close all displays (bug#985).
16162
161632008-10-06 Andreas Schwab <schwab@suse.de>
16164
f5385255 16165 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
16166
161672008-10-06 Chong Yidong <cyd@stupidchicken.com>
16168
f5385255 16169 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 16170
a9b555d3 16171 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
16172
16173 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
16174 during initialization.
16175
161762008-10-04 Eli Zaretskii <eliz@gnu.org>
16177
16178 * xdisp.c (redisplay_internal): If frame switched, redisplay the
16179 whole thing on MSDOS frames as well as on a TTY.
16180
16181 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
16182 well as for TTY.
16183 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
16184 well as on a TTY.
16185
16186 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
16187 as well as for TTY.
16188
16189 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
16190
16191 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
16192 MSDOS frames as well.
16193
161942008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16195
16196 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
16197 correct arguments.
b71ac3dd 16198 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
16199
162002008-10-03 Glenn Morris <rgm@gnu.org>
16201
16202 * emacs.c (USAGE1): Add --daemon.
16203
162042008-10-02 Eli Zaretskii <eliz@gnu.org>
16205
16206 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
16207 100, so it's in percents as advertised.
16208
162092008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16210
16211 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
16212 (ns_output.current_cursor, ns_output.desired_cursor)
16213 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
16214 (FRAME_NEW_CURSOR_COLOR): Remove.
16215
16216 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 16217 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
16218 enumeration (HOLLOW_BOX_CURSOR, etc.).
16219
16220 * nsterm.m (ns_frame_rehighlight): Remove commented code.
16221 (draw_window_cursor): Simplify code.
f5385255
SM
16222 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
16223 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 16224 updates manually.
a9b555d3
JB
16225 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
16226 Use core Emacs cursor types.
aac0c6e3 16227
b8ff72fa 16228 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
16229
162302008-10-02 Martin Rudalics <rudalics@gmx.at>
16231
16232 * process.c (Faccept_process_output): Fix doc-string.
16233
162342008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
16235
16236 * gmalloc.c (__sbrk): Also define for uClibc.
16237
16238 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
16239 for uClibc.
16240
162412008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16242
16243 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
16244 styles.
16245 (nsfont_open): Reenable the cache.
16246
162472008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16248
16249 * font.c (font_matching_entity): Reflect ATTRS in font selection.
16250 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
16251
162522008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
16253
16254 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
16255 a suspended terminal.
16256
162572008-09-30 Michael Albinus <michael.albinus@gmx.de>
16258
16259 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
16260
162612008-09-30 Eli Zaretskii <eliz@gnu.org>
16262
16263 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
16264
162652008-09-30 Chong Yidong <cyd@stupidchicken.com>
16266
16267 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
16268 in a continued line coincides with a line beginning.
16269
162702008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
16271
16272 * nsfont.m (nsfont_trait_distance): Fix bug.
16273 (nsfont_list): Return a list rather than a vector (syncs with Handa
16274 changes of 2008-05-14).
16275 (nsfont_open): Improve logging.
16276
162772008-09-29 Andreas Schwab <schwab@suse.de>
16278
16279 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
16280
162812008-09-28 Martin Rudalics <rudalics@gmx.at>
16282
16283 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
16284 name as char-resolve-modifiers.
16285 Reported by: Markus Triska <markus.triska@gmx.at>
16286
162872008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16288
16289 * dispnew.c (init_display): Return earlier when running as a daemon.
16290
162912008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16292
16293 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
16294
162952008-09-27 Eli Zaretskii <eliz@gnu.org>
16296
16297 * composite.c (Fcomposition_get_gstring)
16298 (Fcompose_region_internal, Fcompose_string_internal)
16299 (Ffind_composition_internal): Doc fix.
16300 (syms_of_composite) <compose-chars-after-function>: Doc fix.
16301 (syms_of_composite) <auto-composition-function>: Doc fix.
16302 (syms_of_composite) <composition-function-table>: Doc fix.
16303
163042008-09-25 Chong Yidong <cyd@stupidchicken.com>
16305
16306 * search.c (wordify): New argument for lax word-ends.
16307 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
16308
163092008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
16310
16311 * lisp.h (is_daemon): Declare.
16312 * dispnew.c (init_display): Do not try to initialize the terminal
16313 when running as a daemon.
16314
163152008-09-22 Chong Yidong <cyd@stupidchicken.com>
16316
16317 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
16318 x_display_pixel_height.
16319
163202008-09-22 Martin Rudalics <rudalics@gmx.at>
16321
16322 * undo.c (record_point): Don't call Fundo_boundary for first
16323 change. (Bug#731)
16324
163252008-09-22 Juanma Barranquero <lekktu@gmail.com>
16326
16327 * emacs.c (Fdaemonp): Doc fix.
16328
163292008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
16330
16331 * emacs.c (main): Place #ifdef in the proper place.
16332
163332008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16334
16335 * emacs.c (standard_args): Add --daemon.
16336 (main): Disconnect from the terminal when --daemon is passed.
16337 (is_daemon): New variable.
16338 (Fdaemonp): New function.
16339 (syms_of_emacs): Defsubr it.
16340
163412008-09-20 Chong Yidong <cyd@stupidchicken.com>
16342
16343 * xdisp.c (get_next_display_element): Handle string display
16344 correctly when checking for the end of a box run.
16345
163462008-09-20 Glenn Morris <rgm@gnu.org>
16347
16348 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
16349 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
16350 (Frename_file): Avoid copying to trash if a rename involves
16351 a delete. (Bug#964).
16352
163532008-09-20 Eli Zaretskii <eliz@gnu.org>
16354
16355 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
16356 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
16357 frames as well as termcap frames.
16358 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
16359 get_named_tty.
16360
163612008-09-19 Eli Zaretskii <eliz@gnu.org>
16362
16363 * process.c (procfs_system_process_attributes): Fix cmdline in
16364 case /proc/PID/cmdline is empty.
16365
16366 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
16367 x_display_pixel_height.
16368
163692008-09-19 Juanma Barranquero <lekktu@gmail.com>
16370
16371 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
16372
16373 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
16374 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
16375
163762008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
16377
16378 * dispextern.h (struct it): Move line_wrap away from the middle of
16379 bitfields. Move voffset in struct iterator_stack_entry after the
16380 bitfields. Move tab_width near after another short.
16381
163822008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
16383
16384 * frame.h (struct frame): Move alpha from the middle of bitfields.
16385
16386 * window.h (struct window): Move frozen_window_start_p after the
16387 rest of the bitfields to reduce padding.
16388
163892008-09-18 Chong Yidong <cyd@stupidchicken.com>
16390
16391 * xterm.h (x_display_info): Remove `height' and `width' members.
16392
16393 * nsterm.h (ns_display_info): Remove `height' and `width' members.
16394
16395 * w32term.h (w32_display_info): Remove `height', `width',
16396 `height_in', and `width_in' members.
16397
b8ff72fa
SM
16398 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16399 New functions.
aac0c6e3
MR
16400 (x_calc_absolute_position): Use them.
16401 (x_term_init): Omit removed `height' and `width' members.
16402
b8ff72fa
SM
16403 * w32term.c (x_display_pixel_height, x_display_pixel_width):
16404 New functions.
aac0c6e3
MR
16405 (w32_read_socket, x_calc_absolute_position): Use them.
16406 (w32_initialize_display_info, w32_term_init): Omit removed members
16407 of w32_display_info.
16408
b8ff72fa
SM
16409 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
16410 New functions.
16411 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 16412
b8ff72fa
SM
16413 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16414 New functions.
aac0c6e3
MR
16415 (x_calc_absolute_position): Use them.
16416 (x_term_init): Omit removed `height' and `width' members.
16417
16418 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
16419 (compute_tip_xy):
16420 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
16421 * xmenu.c (menu_position_func): Use x_display_pixel_height and
16422 x_display_pixel_width.
16423
164242008-09-18 Kenichi Handa <handa@m17n.org>
16425
16426 * composite.c (fill_gstring_header): Don't check FROM and TO here.
16427 (composition_compute_stop_pos): Fix handling of static composition.
16428 (Fcomposition_get_gstring): Check FROM and TO at first.
16429
164302008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
16431
46e722a9 16432 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
16433 mixup (YAILOM).
16434
164352008-09-17 Chong Yidong <cyd@stupidchicken.com>
16436
16437 * indent.c (Fvertical_motion): Use position reported by iterator
16438 instead of PT for determining screen motion (bug#943).
16439
164402008-09-17 Romain Francoise <romain@orebokech.com>
16441
16442 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
16443
164442008-09-17 Kenichi Handa <handa@m17n.org>
16445
16446 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
16447
16448 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
16449 if necessary.
16450
164512008-09-16 Kenichi Handa <handa@m17n.org>
16452
16453 * coding.c (make_conversion_work_buffer): Avoid calling
16454 Fget_buffer_create if it is not necessary.
16455
164562008-09-15 Martin Rudalics <rudalics@gmx.at>
16457
16458 * window.c (Fselect_window): Don't update window_select_count and
16459 use_time when norecord is not nil.
16460
164612008-09-14 Kenichi Handa <handa@m17n.org>
16462
16463 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
16464 specpdl_ptr.
16465
164662008-09-12 Kenichi Handa <handa@m17n.org>
16467
16468 * indent.c (scan_for_column): Don't handle automatic composition
16469 if the current buffer is not associated with a window.
16470
16471 * composite.c (composition_reseat_it): If the current buffer is
16472 not associated with a window, ignore the automatic composition.
16473 (find_automatic_composition): Likewise.
16474
164752008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
16476
16477 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
16478 (Fgpm_mouse_stop): Use it.
16479 * termhooks.h (close_gpm): Declare.
16480 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
16481 connection if Gpm_GetEvent fails.
16482
16483 * window.c (set_window_buffer): Always preserve current-buffer.
16484
164852008-09-12 Glenn Morris <rgm@gnu.org>
16486
16487 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
16488
164892008-09-11 Glenn Morris <rgm@gnu.org>
16490
16491 * charset.c (charset-map-path): Doc fix.
16492
164932008-09-10 Kenichi Handa <handa@m17n.org>
16494
16495 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
16496
16497 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
16498 compose a grapheme cluster with the preceding base glyph.
16499
16500 * composite.c (composition_compute_stop_pos): Fix previous change.
16501 Reset cmp_it->id to -1 at first.
16502
165032008-09-10 Glenn Morris <rgm@gnu.org>
16504
16505 * Makefile.in (character.o, chartab.o): Fix config.h typo.
16506
165072008-09-09 Chong Yidong <cyd@stupidchicken.com>
16508
16509 * keyboard.c (read_key_sequence): Reapply translation maps when
16510 switching keyboards.
16511
165122008-09-09 Kenichi Handa <handa@m17n.org>
16513
16514 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
16515 characters.
16516
16517 * composite.c (FORWARD_CHAR): Fix calculation
16518 of (POSITION).pos_byte.
16519 (composition_compute_stop_pos): Limit the search of composition to
16520 at most 500 characters ahead. If we reach the limit or find a
16521 newline, set cmp_it->ch to -2 and return 0.
16522 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
16523
165242008-09-08 Kenichi Handa <handa@m17n.org>
16525
16526 * indent.c (Fvertical_motion): Be sure to set
16527 it_overshoot_expected if it.cmp_it.id is non-negative.
16528
165292008-09-07 Andreas Schwab <schwab@suse.de>
16530
16531 * callproc.c (Fcall_process): Don't hold references to string data
16532 across garbage collection. Move initialisation of new_argv down
16533 to avoid compiler bug.
16534
165352008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16536
16537 * process.c (Fsystem_process_attributes): Doc fix.
16538
165392008-09-07 Chong Yidong <cyd@stupidchicken.com>
16540
16541 * callproc.c (Fcall_process): Canonicalize current directory name.
16542
16543 * xdisp.c (move_it_to): When moving by vpos, ensure that the
16544 iterator advances to the next line if the current line ends in a
16545 continued tab.
16546
165472008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
16548
16549 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
16550 member to point to cmp_from.
16551
16552 * xdisp.c: Doc fix for references to gidx data member.
16553
165542008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16555
16556 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
16557
165582008-09-07 Kenichi Handa <handa@m17n.org>
16559
16560 * composite.c (FORWARD_CHAR): Check STOP after
16561 incrementing (POSITION).pos.
16562
165632008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16564
16565 * process.c (Fsystem_process_attributes): Doc fix.
16566
165672008-09-06 Chong Yidong <cyd@stupidchicken.com>
16568
16569 * keyboard.c (Ftop_level): Doc fix.
16570
165712008-09-06 Eli Zaretskii <eliz@gnu.org>
16572
16573 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
16574 minibuffer, don't let lower part of menu invade the echo area.
16575
16576 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
16577 "char *q" to access menu text and advance through it. Revert the
16578 change that displayed ">" instead of ASCII character 0x10.
16579
165802008-09-05 Eli Zaretskii <eliz@gnu.org>
16581
16582 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
16583 toggle boxes and radio buttons on MS-DOS as well.
16584
165852008-09-05 Kenichi Handa <handa@m17n.org>
16586
16587 * composite.c (autocmp_chars): Check lookback count.
16588 (composition_compute_stop_pos): Set cmp_it->lookback.
16589 (composition_reseat_it): Check lookback count.
16590 (struct position_record): New struct.
16591 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
16592 (find_automatic_composition): New function.
16593 (composition_adjust_point): Use find_automatic_composition.
16594
16595 * dispextern.h (struct composition_it): New member lookback.
16596
165972008-09-02 Chong Yidong <cyd@stupidchicken.com>
16598
16599 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
16600 if moving by a single line.
16601
166022008-09-02 Andreas Schwab <schwab@suse.de>
16603
16604 * xterm.c (x_delete_display): Fix merge error.
16605
16606 * fileio.c (Fexpand_file_name): Remove unused variables.
16607
166082008-09-02 Eli Zaretskii <eliz@gnu.org>
16609
16610 * fileio.c (Fexpand_file_name): Copy argument `name' into local
16611 storage on all platforms, not just on DOS_NT.
16612
166132008-09-02 Jason Rumney <jasonr@gnu.org>
16614
b8ff72fa
SM
16615 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
16616 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
16617
166182008-09-01 Chong Yidong <cyd@stupidchicken.com>
16619
16620 * xfaces.c (Finternal_set_alternative_font_family_alist)
16621 (Finternal_set_alternative_font_registry_alist): Properly copy
16622 entire alist structure.
16623
166242008-09-01 Kenichi Handa <handa@m17n.org>
16625
d66c0241 16626 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 16627 representative chars of the script is a vector.
d66c0241
JB
16628 (ftfont_list): Handle the case where the representative chars of
16629 the script is a vector.
aac0c6e3
MR
16630
16631 * character.c (syms_of_character): Docstring of
16632 script-representative-chars fixed.
16633
166342008-08-31 Eli Zaretskii <eliz@gnu.org>
16635
16636 * msdos.c (BUILD_CHAR_GLYPH): New macro.
16637 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
16638 the menu. Allocate larger buffer for `text', to account for
16639 possible ^C characters.
16640
166412008-08-31 Martin Rudalics <rudalics@gmx.at>
16642
16643 * xdisp.c (prepare_menu_bars): Don't call
16644 Vwindow_size_change_functions with arg Qt.
16645
166462008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16647
16648 * font.h (font_range):
16649 * fileio.c (report_file_error):
46e722a9
SM
16650 * composite.c (composition_update_it): Yet another int/Lisp_Object
16651 mixup (YAILOM).
aac0c6e3
MR
16652
166532008-08-30 Glenn Morris <rgm@gnu.org>
16654
16655 * data.c (Fmake_variable_frame_local): Doc fix.
16656
16657 * frame.c (Fmodify_frame_parameters): Doc fix.
16658
166592008-08-30 Eli Zaretskii <eliz@gnu.org>
16660
16661 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
16662 needed by GetTokenInformation.
16663 (w32_system_process_attributes): Check return values of all system
16664 APIs.
16665
16666 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
16667 only when the state changes.
16668 (IT_update_begin, IT_update_end): Add termscript trace.
16669
16670 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
16671 clipboard is unavailable. Set dst to NULL if it doesn't point to
16672 malloc'ed data.
16673 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
16674 passing random values to xfree.
16675
16676 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 16677 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
16678
166792008-08-29 Jason Rumney <jasonr@gnu.org>
16680
16681 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
16682
166832008-08-29 Eli Zaretskii <eliz@gnu.org>
16684
16685 * composite.c (fill_gstring_body): Avoid compiler warnings.
16686
16687 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
16688 LGLYPH_SET_CODE to avoid compiler warnings.
16689
2ae37cf0 16690 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
16691
16692 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
16693
16694 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
16695 LGLYPH_SET_CODE.
16696
166972008-08-29 Kenichi Handa <handa@m17n.org>
16698
16699 * fileio.c (report_file_error): Don't downcase the first character
16700 of errstring if it is still unibyte.
16701
167022008-08-29 Kenichi Handa <handa@m17n.org>
16703
16704 These changes are to re-implement the automatic composition so
16705 that it doesn't use text properties.
16706
16707 * Makefile.in (ftfont.o): Depend on composite.h.
16708 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
16709
16710 * character.h (Vunicode_category_table): Extern it.
16711
16712 * character.c (Vunicode_category_table): New variable.
16713 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
16714
16715 * chartab.c (optimize_sub_char_table): Perform more greedy
16716 optimization.
16717
b8ff72fa
SM
16718 * composite.h (enum composition_method):
16719 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
16720 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
16721 (Vcomposition_function_table): Extern it.
16722 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
16723 (composition_gstring_put_cache, composition_gstring_from_id)
16724 (composition_gstring_p, composition_gstring_width)
16725 (composition_compute_stop_pos, composition_reseat_it)
16726 (composition_update_it, composition_adjust_point): Extern them.
16727 (Fcomposition_get_gstring): EXFUN it.
16728
d66c0241 16729 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
16730 (Vcomposition_function_table)
16731 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
16732 (gstring_hash_table, gstring_work, gstring_work_headers):
16733 New variables.
aac0c6e3
MR
16734 (gstring_lookup_cache, composition_gstring_put_cache)
16735 (composition_gstring_from_id, composition_gstring_p)
16736 (composition_gstring_width, fill_gstring_header)
16737 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
16738 (composition_reseat_it, composition_update_it)
b8ff72fa 16739 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
16740 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
16741 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 16742 Defsubr composition_get_gstring.
aac0c6e3
MR
16743
16744 * dispextern.h (struct glyph): New union u.cmp. Delete the member
16745 cmp_id.
16746 (struct glyph_string): Delete the member gidx. New members
16747 cmp_id, cmp_from, and cmp_to.
16748 (enum it_method): Delete GET_FROM_COMPOSITION.
16749 (struct composition_it): New struct.
16750 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
16751 Delete c, len, cmp_id, cmp_len in u.comp.
16752
16753 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 16754 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 16755 (enum lglyph_indices): Likewise.
b8ff72fa 16756 (font_range): Adjust extern.
aac0c6e3
MR
16757 (font_fill_lglyph_metrics): Extern it.
16758
16759 * font.c (QCf): New variable.
16760 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16761 (font_prepare_composition): Delete this function.
16762 (font_range): Type and arguments changed.
16763 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
16764 (font_fill_lglyph_metrics): New function.
b8ff72fa 16765 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 16766 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
16767 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
16768 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
16769
16770 * fontset.h (font_for_char): Extern it.
16771
16772 * fontset.c (font_for_char): New function.
16773
16774 * ftfont.c: Include composite.h.
16775 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 16776 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
16777
16778 * indent.c: Include composite.h and dispextern.h.
16779 (check_composition): Delete this function.
16780 (scan_for_column): Handle composition by
16781 composition_compute_stop_pos, composition_reseat_it, and
16782 composition_update_it.
16783 (compute_motion): Likewise.
16784 (Fvertical_motion): Fix checking of composition.
16785
16786 * keyboard.c (adjust_point_for_property): Check composition by
16787 composition_adjust_point.
16788
b8ff72fa 16789 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
16790 struct glyph_string.
16791
b8ff72fa
SM
16792 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
16793 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
16794 struct glyph.
16795 (produce_composite_glyph): Likewise.
16796
b8ff72fa
SM
16797 * w32term.c (x_draw_composite_glyph_string_foreground):
16798 Adjust for the change of struct glyph_string.
aac0c6e3
MR
16799 (x_draw_glyph_string): Likewise.
16800
16801 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
16802 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16803
16804 * xdisp.c: Include font.h.
16805 (it_props): Delete the entry for Qauto_composed.
16806 (init_iterator): Initialize it->cmp_it.id to -1.
16807 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 16808 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
16809 (handle_auto_composed_prop): Delete it.
16810 (handle_composition_prop): Handle only static composition.
16811 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
16812 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 16813 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
16814 (pop_it): Likewise.
16815 (get_next_element): Delete next_element_from_composition.
16816 (CHAR_COMPOSED_P): New macro.
16817 (get_next_display_element): For automatic composition, get a face
16818 from the font in the glyph-string.
16819 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 16820 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
16821 (next_element_from_string): Check if the character at the current
16822 position is composed by CHAR_COMPOSED_P.
16823 (next_element_from_buffer): Likewise.
d66c0241
JB
16824 (next_element_from_composition): Adjust for the change of struct it.
16825 Update it->cmp_it.
b8ff72fa
SM
16826 (dump_glyph): Adjust for the change of struct glyph.
16827 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
16828 it and struct glyph. Don't handle automatic composition here.
16829 (fill_gstring_glyph_string): New function.
16830 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 16831 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
16832 (BUILD_GSTRING_GLYPH_STRING): New macro.
16833 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
16834 automatic composition.
b8ff72fa 16835 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 16836 struct glyph.
b8ff72fa 16837 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 16838
b8ff72fa 16839 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
16840 the change of struct glyph_string.
16841 (x_draw_glyph_string): Likewise.
16842
168432008-08-29 Glenn Morris <rgm@gnu.org>
16844
16845 * buffer.c (word-wrap): Doc fix.
16846 * xdisp.c (truncate-partial-width-windows): Doc fix.
16847 Increase default to 50.
16848
168492008-08-29 Chong Yidong <cyd@stupidchicken.com>
16850
16851 * xdisp.c (update_tool_bar_unwind): New function.
16852 (update_tool_bar): Temporarily set selected frame before building
16853 tool-bar items.
16854
168552008-08-28 Michael Albinus <michael.albinus@gmx.de>
16856
16857 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
16858 snprintf, respectively.
16859 (xd_append_arg): Convert strings with Fstring_make_unibyte.
16860
168612008-08-28 Chong Yidong <cyd@stupidchicken.com>
16862
16863 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
16864 LDFLAGS to GNUstep CC invocation.
16865
168662008-08-27 Chong Yidong <cyd@stupidchicken.com>
16867
16868 * indent.c (Fvertical_motion): Revert last change. Handle the
16869 general case where we are moving forward, and PT spans multiple
16870 screen lines.
16871
16872 * eval.c (find_handler_clause): Temporarily increase
16873 max-lisp-eval-depth while printing the backtrace buffer, to
16874 guarantee that help-mode code can run.
16875
168762008-08-27 Eli Zaretskii <eliz@gnu.org>
16877
16878 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
16879 colors under -rv.
16880 (IT_set_frame_parameters): Don't swap foreground and background
16881 colors if `(reverse . t)' is present in the frame properties.
16882 (internal_terminal_init): Call init_frame_faces only for the
16883 initial frame.
16884
168852008-08-27 Andreas Schwab <schwab@suse.de>
16886
16887 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
16888
168892008-08-27 Andreas Schwab <schwab@suse.de>
16890
16891 * search.c (search_buffer): Set char_base to zero only at the end.
16892
168932008-08-27 Kenichi Handa <handa@m17n.org>
16894
b8ff72fa 16895 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
16896
168972008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
16898
16899 * xterm.c (x_term_init): Temporarily hide the partially
16900 initialized terminal while calling vendor-specific-keysyms.
16901
169022008-08-26 Eli Zaretskii <eliz@gnu.org>
16903
16904 * msdos.c (internal_terminal_init): Most initializations done only
16905 once, especially initial_screen_colors[] and termscript open.
16906
169072008-08-26 Chong Yidong <cyd@stupidchicken.com>
16908
16909 * eval.c (Fcondition_case): Doc fix.
16910
16911 * widgetprv.h (EmacsFramePart): Change font member to the new font
16912 struct.
16913
16914 * widget.c: Include character.h and font.h for XSETFONT.
16915 (setup_frame_gcs): Compute X font id from font struct, just once.
16916
169172008-08-26 Eli Zaretskii <eliz@gnu.org>
16918
16919 * term.c (get_named_tty): Fix last change.
16920
169212008-08-26 Chong Yidong <cyd@stupidchicken.com>
16922
16923 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 16924 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
16925
169262008-08-25 Eli Zaretskii <eliz@gnu.org>
16927
16928 * frame.c (do_switch_frame): Mark previously displayed frame as
16929 obscured for FRAME_MSDOS_P frames as well.
16930
169312008-08-24 Eli Zaretskii <eliz@gnu.org>
16932
16933 * frame.c (make_terminal_frame): Initialize f->terminal,
16934 f->terminal->reference_count, and scroll bars on MS-DOS as well.
16935 Set the top frame to newly created frame.
16936 (Fmake_terminal_frame): Reuse the_only_display_info.
16937
16938 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
16939 estimating available memory.
16940
b97439ce 169412008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
16942
16943 * nsterm.m (ns_draw_window_cursor): Don't call
16944 NSDisableScreenUpdates and NSEnableScreenUpdates on
16945 non-NS_IMPL_COCOA systems.
16946
169472008-08-23 Andreas Schwab <schwab@suse.de>
16948
16949 * process.c (procfs_system_process_attributes): Fix use of
16950 uninitialized variables.
16951
169522008-08-23 Eli Zaretskii <eliz@gnu.org>
16953
16954 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
16955
16956 * dispnew.c (init_display): Remove MS-DOS specific conditions for
16957 calling tty-set-up-initial-frame-faces.
16958
b8ff72fa
SM
16959 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
16960 Allow MSDOS frames along with X frames.
aac0c6e3
MR
16961
16962 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
16963 addition to output_termcap.
16964
16965 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
16966
16967 * termchar.h (FRAME_TTY): Support output_msdos_raw.
16968 (struct tty_display_info) [MSDOS]: Add fields related to mouse
16969 highlight.
16970
16971 * process.c [!subprocesses]: Define QCname.
16972 (syms_of_process): Intern and staticpro it.
16973
16974 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
16975 Adjust for changes in encoding/decoding routines.
16976 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
16977 encode_coding and decode_coding.
16978
b8ff72fa 16979 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
16980
16981 * dosfns.c: Include frame.h before termhooks.h.
16982 (dos_cleanup): Use CURTTY ()->termscript instead of a global
16983 variable termscript.
16984
16985 * s/msdos.h (USER_FULL_NAME): Define.
16986 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
16987
16988 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
16989 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
16990 pw->pw_gecos.
16991
16992 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
16993 SELECTED_FRAME as additional (1st) argument.
16994 (tty_read_avail_input): Handle output_msdos_raw in
16995 addition to output_termcap.
16996
16997 * msdos.c: Include frame.h before termhooks.h.
16998 (mouse_on, mouse_off, mouse_moveto, mouse_init)
16999 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17000 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17001 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17002 (IT_set_terminal_modes, IT_reset_terminal_modes)
17003 (IT_set_frame_parameters): Use tty->termscript instead of a global
17004 variable termscript.
17005 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17006 global variable terminal_coding. Don't refer to
17007 Vnonascii_translation_table.
17008 (internal_terminal_init): Set Vwindow_system in current_kboard.
17009 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
17010 Announce date and time of session start, if termscript is open.
17011 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
17012 term.c:init_tty). Open termscript only of not already open.
17013 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
17014 here instead of dos_ttraw. Don't initialize display if this is an
17015 initial tty. Don't set FRAME_FONT.
17016 (Vwindow_system_version): Bump to 23.
17017 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
17018 is available, set up mouse_position_hook.
17019 (dos_ttraw, IT_set_terminal_modes): If called with initial
17020 terminal, do nothing.
17021 (IT_set_frame_parameters): Handle the Qtty_type frame
17022 parameter by calling internal_terminal_init.
17023 (dos_set_window_size, show_mouse_face)
17024 (clear_mouse_face, IT_note_mode_line_highlight)
17025 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
17026 (dos_rawgetc): Use tty_display_info instead of x_display_info.
17027 (initialize_msdos_display): New function.
17028 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
17029 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
17030 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
17031 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 17032 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
17033 (request_sigio, unrequest_sigio): Don't define, now defined on
17034 sysdep.c.
17035 (IT_write_glyphs): Rewrite to use encode_terminal_code.
17036
17037 * term.c [MSDOS]: Include msdos.h.
17038 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
17039 conditional to DOS_NT. Allow only one call to this function in a
17040 session. Don't allocate a new struct tty_display_info; instead,
17041 reuse the_only_display_info. Call get_tty_size to get screen
17042 dimensions. Call init_baud_rate to set bad_rate.
17043 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
17044 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 17045 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
17046 (get_tty_terminal, get_named_tty, Ftty_type)
17047 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
17048 output_termcap.
b8ff72fa
SM
17049 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
17050 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 17051 only when subprocesses are supported.
aac0c6e3
MR
17052
17053 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
17054 f->output_data.x.
17055 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
17056 terminal devices.
17057
5582fbc7 17058 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
17059 x_output.
17060 (FRAME_FONT): Use output_data.tty.
17061 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
17062 (struct x_display_info): Rename from display_info. Update all users in
17063 msdos.c.
aac0c6e3 17064 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 17065 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
17066 (dos_ttraw): Update prototype.
17067
17068 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
17069 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
17070
170712008-08-23 Jason Rumney <jasonr@gnu.org>
17072
17073 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
17074 (fn_TIFFSetDirectory): New library function used.
17075 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
17076 (tiff_load): Use :index to select among multiple images. Set count
17077 property when multiple images exist.
17078 (gif_format): Use :index, not :image.
17079
170802008-08-23 Chong Yidong <cyd@stupidchicken.com>
17081
17082 * xdisp.c (try_scrolling): Check INT_MAX instead of
17083 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
17084 to obtain INT_MAX.
17085
170862008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
17087
17088 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
17089
170902008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
17091
17092 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
17093 GNUstep library location.
17094
170952008-08-21 Chong Yidong <cyd@stupidchicken.com>
17096
17097 * xfaces.c (x_update_menu_appearance): Check validity of menu font
17098 before using it.
17099
17100 * puresize.h (BASE_PURESIZE): Increase to 1250000.
17101
171022008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17103
17104 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
17105 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
17106 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
17107 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
17108 (EmacsApp-cursor_blink_handler): Remove declaration.
17109 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
17110 match 01 Feb 2008 changes in xterm.c.
17111 (ns_read_socket): Add cast to avoid warning.
17112 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
17113 GNUstep.
17114
171152008-08-20 Chong Yidong <cyd@stupidchicken.com>
17116
17117 * xselect.c (x_get_foreign_selection): Return nil if desired
17118 selection could not be obtained, instead of signalling an error.
17119
171202008-08-20 David Reitter <david.reitter@gmail.com>
17121
17122 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
17123 * nsterm.m: Remove ns-specific code for cursor blinking.
17124 (ns_draw_window_cursor): Clear cursor properly rather than
17125 redrawing the area. Respect width of bar cursors.
17126 These changes enable the use of generic blink-cursor-mode and
17127 generic cursor types in NS and support smooth cursor movements (do
17128 not blink off after command).
17129 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
17130 Nextstep, too.
17131
171322008-08-19 Kenichi Handa <handa@m17n.org>
17133
17134 * font.c (Vfont_log_deferred): New variable.
17135 (font_add_log): Check Vfont_log_deferred.
17136 (font_deferred_log): New function.
17137
17138 * font.h (font_deferred_log): Extern it.
17139
17140 * fontset.c (reorder_font_vector): Use encoding charset of fonts
17141 for sorting.
17142 (face_for_char): Use deferred log.
17143
171442008-08-18 Kenichi Handa <handa@m17n.org>
17145
17146 * fontset.c (face_for_char): Add font log.
17147
17148 * font.c (font_add_log): Add the font properties :script, :lang,
17149 and :otf in the log.
17150
171512008-08-17 Chong Yidong <cyd@stupidchicken.com>
17152
17153 * xdisp.c: Remove dead code.
17154 (handle_invisible_prop, next_overlay_string): Defer call to
17155 setup_for_ellipsis.
17156 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
17157
171582008-08-15 Chong Yidong <cyd@stupidchicken.com>
17159
17160 * xfaces.c (lookup_derived_face): Properly handle possible zero
17161 return value of get_lface_attributes.
17162 (merge_faces): Don't tell lookup_derived_face to signal an error
17163 if face is not found.
17164
17165 * dired.c (Fdirectory_files): Doc fix.
17166
17167 * process.c (make_process): Initialize kill_without_query struct
17168 member.
17169
171702008-08-15 Eli Zaretskii <eliz@gnu.org>
17171
17172 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
17173 Alternative calculation of totphys for Visual Studio 6.
17174
17175 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
17176
17177 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
17178 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
17179 All users changed.
17180 (stat): Only root directory passed to GetDriveType. Allow RAM
17181 disk as well as local fixed disk when w32-get-true-file-attributes
17182 is set to `local'.
17183 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
17184 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
17185 (w32_cached_id, w32_add_to_cache): New functions.
17186 (get_name_and_id): Look account names in the cache before calling
17187 lookup_account_sid.
17188 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
17189 New initialization flags.
17190 (globals_of_w32): Initialize them to zero.
17191 (w32_system_process_attributes): Use w32_cached_id and
17192 w32_add_to_cache.
17193
171942008-08-14 Lawrence Mitchell <wence@gmx.li>
17195
17196 * lread.c (Fread_char, Fread_char_exclusive): If no character
17197 event is read before timeout is reached, return nil, rather than
17198 converting to a number.
17199
172002008-08-14 Chong Yidong <cyd@stupidchicken.com>
17201
17202 * fns.c (use_dialog_box): Doc fix.
17203
17204 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
17205 on OS X.
17206
172072008-08-13 Chong Yidong <cyd@stupidchicken.com>
17208
17209 * frame.c (Qns_parse_geometry): New var.
17210 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
17211
172122008-08-11 Chong Yidong <cyd@stupidchicken.com>
17213
17214 * xdisp.c (x_produce_glyphs): Handle the case when font has no
17215 space character in calculating tabs.
17216
172172008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
17218
17219 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
17220
172212008-08-10 Glenn Morris <rgm@gnu.org>
17222
17223 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
17224 silence gcc "limited range of data type" warnings in some
17225 make_fixnum_or_float calls.
17226
172272008-08-09 Eli Zaretskii <eliz@gnu.org>
17228
17229 * w32.c (w32_system_process_attributes): If the process does not
17230 exist, return nil.
17231
17232 * w32.c: Include thelp32.h, psapi.h and coding.h.
17233 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
17234 declarations.
17235 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
17236 (Process32Next_Proc): New typedefs.
17237 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
17238 (g_b_init_process32_next, g_b_init_open_thread_token)
17239 (g_b_init_impersonate_self, g_b_init_revert_to_self)
17240 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
17241 (g_b_init_get_process_working_set_size)
17242 (g_b_init_global_memory_status_ex): New static variables.
17243 (globals_of_w32): Initialize them.
17244 (create_toolhelp32_snapshot, process32_first, process32_next)
17245 (open_thread_token, impersonate_self, revert_to_self)
17246 (get_process_memory_info, get_process_working_set_size)
17247 (global_memory_status, global_memory_status_ex): New wrapper
17248 functions.
17249 (w32_list_system_processes, w32_system_process_attributes)
17250 (enable_privilege, restore_privilege, ltime, process_times):
17251 New functions.
17252 (convert_time_raw): New function.
17253 (convert_time): Remove conversion of FILETIME into time in 100
17254 nsec units, call convert_time_raw instead.
17255
17256 * process.h (w32_list_system_processes, w32_system_process_attributes):
17257 Add prototypes.
17258 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
17259 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
17260 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
17261 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
17262
17263 * process.c (Fsystem_process_attributes): Doc fix.
17264
172652008-08-08 Chong Yidong <cyd@stupidchicken.com>
17266
17267 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
17268 a continued multi-char glyph; if so, advance to the actual glyph.
17269
172702008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
17271
17272 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
17273
17274 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
17275 (.m.o): Use it.
17276 * config.in: Regenerate.
17277
172782008-08-07 Chong Yidong <cyd@stupidchicken.com>
17279
17280 * xdisp.c (redisplay_window): Revert last change.
17281 (try_window): Check bottom scroll margin too.
17282
172832008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17284
17285 * config.in: Regenerate.
17286
17287 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
17288 -list-load-path-shadows'.
17289 (nsgui.h): Reduce number of things depending on it.
17290
172912008-08-06 Chong Yidong <cyd@stupidchicken.com>
17292
17293 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
17294 instead of window-end which does the wrong thing at eob.
17295 (try_cursor_movement): Minor optimization.
17296 (redisplay_window): If scroll margin is defined, don't assume
17297 window doesn't need scrolling.
17298
172992008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17300
17301 * config.in: Regenerate.
17302
17303 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
17304 (mostlyclean): Don't delete *.d under NS.
17305
17306 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
17307
173082008-08-06 Kenichi Handa <handa@m17n.org>
17309
17310 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
17311
173122008-08-06 Andreas Schwab <schwab@suse.de>
17313
17314 * config.in: Regenerate.
17315
173162008-08-05 Chong Yidong <cyd@stupidchicken.com>
17317
17318 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
17319 forcing a window start.
17320
17321 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
17322 (auto_save_1): Update modtime when auto-save-list-file-name is on.
17323
173242008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17325
17326 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
17327 argument.
17328
173292008-08-05 Juanma Barranquero <lekktu@gmail.com>
17330
17331 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
17332 <scroll-down-aggressively, before-change-functions>:
17333 <after-change-functions>: Reflow docstrings.
17334
173352008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 17336 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
17337
17338 Dock menu customization, based on a patch by Ken Raeburn, plus some
17339 other fixes.
17340 * nsmenu.m (dockMenu): New variable.
17341 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
17342
17343 * nsterm.h (dockMenu): Declare.
17344
17345 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
17346 (ns_term_init): Initialize dockMenu.
17347 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
17348 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
17349 left.
17350
17351 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
17352
173532008-08-04 Chong Yidong <cyd@stupidchicken.com>
17354
17355 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
17356
17357 * config.in: Regenerate.
17358
173592008-08-04 Seiji Zenitani <zenitani@mac.com>
17360
17361 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
17362
173632008-08-04 Chong Yidong <cyd@stupidchicken.com>
17364
17365 * nsterm.h (find_and_call_menu_selection): Fix prototype.
17366
173672008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17368
17369 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
17370
17371 * keyboard.h: Comment an #endif.
17372
17373 * lisp.h (have_menus_p): Adjust comment.
17374
17375 * menu.c (find_and_return_menu_selection): Fix comparison with
17376 client_data.
17377
17378 * nsmenu.m (popup_activated_flag): New variable.
17379 (popup_activated): New function.
17380 (menu-or-popup-active-p): New exported lisp definition.
17381 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
17382 when popup done.
17383 (ns_popup_dialog): Set popup_activated_flag.
17384
17385 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
17386 version for GNUstep (handled by conditional typedef in nsterm.m).
17387 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
17388 in rgb.txt).
17389
17390 * process.c (init_process): Use DARWIN_OS, not DARWIN.
17391
17392 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
17393
17394 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
17395
17396 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
17397 shortcircuit if popup_activated like GTK and X toolkit.
17398
17399 * m/inter386.h: Change DARWIN to DARWIN_OS.
17400
17401 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
17402 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
17403 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
17404 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
17405
174062008-08-03 Chong Yidong <cyd@stupidchicken.com>
17407
17408 * nsterm.m (windowDidResize): Remove stopModal call.
17409
174102008-08-03 Andreas Schwab <schwab@suse.de>
17411
17412 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
17413 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
17414
174152008-08-02 Chong Yidong <cyd@stupidchicken.com>
17416
17417 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
17418 Don't use uninitialized pointer variable when using getrlimit.
17419
174202008-08-02 Jason Rumney <jasonr@gnu.org>
17421
17422 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
17423
174242008-08-02 Eli Zaretskii <eliz@gnu.org>
17425
17426 * alloc.c (NSTATICS): Bump to 0x640.
17427
17428 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
17429
17430 * lisp.h: Add prototype for directory_files_internal.
17431
17432 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
17433 New functions.
17434 (syms_of_process): Defsubr them. Add initializations for various
17435 Q* symbols used in procfs_system_process_attributes.
17436 (procfs_list_system_processes, procfs_system_process_attributes)
17437 [HAVE_PROCFS]: New functions.
17438 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
17439 (procfs_get_total_memory): New functions.
17440
174412008-08-01 Juanma Barranquero <lekktu@gmail.com>
17442
17443 * xfaces.c (Fx_load_color_file): Fix previous change;
17444 it is #ifdef WINDOWSNT, not WINDOWS_NT.
17445
174462008-08-01 Michael Albinus <michael.albinus@gmx.de>
17447
17448 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
17449
174502008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17451
17452 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
17453
174542008-08-01 Chong Yidong <cyd@stupidchicken.com>
17455
17456 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
17457
17458 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
17459 define NSApplicationDelegateReplySuccess.
17460 (EmacsView -converstationIdentifier): Use long instead of
17461 NSInteger for GNUstep, since it doesn't have NSInteger.
17462
17463 * xmenu.c: Revert last change.
17464
17465 * keyboard.h: Fix last change.
17466
174672008-08-01 Juanma Barranquero <lekktu@gmail.com>
17468
17469 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
17470 on Windows.
17471
174722008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17473
17474 Warning clearing and clean-up in NS port.
17475 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
17476 Add prototypes.
17477 * nsgui.h (FACE_DEFAULT): Remove, unused.
17478 (XGCValues): Change colors to unsigned long.
17479 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
17480 nsterm.m.
17481 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
17482 (ns_list_fonts): Remove, unused.
17483 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
17484 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
17485 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
17486 (nsfont_draw): Compare face colors to 0, not nil.
17487 * nsmenu.m (struct widget_value): Drop unneeded declaration.
17488 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
17489 (-addSubmenuWithTitle:): Use NSMenuItem class.
17490 (ns_popup_menu): Use NO, not NULL, for enabled setting.
17491 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
17492 (ns_clip_to_row): Make gc arg a BOOL.
17493 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
17494 ns_clip_to_row() call.
17495 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
17496 used). Cast FRAME_FONT assignments.
17497 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
17498 (ns_string_to_lispmod): Change arg to const char.
17499 (ns_term_init): Use NSMenuItem class.
17500 (EmacsApp -openFile:): Move to different section of file.
17501 (EmacsApp -application:openFiles:): Don't return a value, call
17502 -replyToOpenOrPrint:.
17503 (EmacsView -keyDown:): Fix up cast.
17504 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
17505 (EmacsView -menuDown:): Cast tag in call to
17506 find_and_call_menu_selection().
17507 (ns_list_fonts): Remove, unused.
17508 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
17509 (ns_fontname_to_xlfd): Make static.
17510 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
17511 Remove prototypes (now in keyboard.h).
17512 (next_menubar_widget_id): Remove, unused.
17513 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
17514 Remove prototypes (now in keyboard.h).
17515 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
17516
175172008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
17518
17519 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
17520 (floatfns.o): Depend on syssignal.h.
17521 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
17522
17523 * systty.h: Fix previous change that removed BSD_TERMIOS.
17524 Add comments to #ifdefs.
17525
175262008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17527
17528 * w32fns.c (w32-load-color-file): Remove.
17529 (x-open-connection): Use renamed Fx_load_color_file.
17530 * xfaces.c (x-load-color-file): Add.
17531 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
17532 Emacs.clr.
17533 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
17534
175352008-07-31 Michael Albinus <michael.albinus@gmx.de>
17536
17537 * dbusbind.c (Fdbus_call_method_asynchronously)
17538 (Fdbus_method_error_internal): New defuns.
17539 (xd_read_message): Handle also reply messages.
17540 (Vdbus_registered_functions_table): Extend docstring.
17541
175422008-07-31 Juanma Barranquero <lekktu@gmail.com>
17543
17544 * keyboard.c (gobble_input): Fix previous change.
17545
175462008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17547
17548 * bitmaps/README:
17549 * xfns.c:
17550 * termcap.c:
17551 * term.c:
17552 * syswait.h:
17553 * systty.h:
17554 * systime.h:
17555 * syssignal.h:
17556 * sysdep.c:
17557 * process.h:
17558 * process.c:
17559 * print.c:
17560 * ndir.h:
17561 * lread.c:
17562 * keyboard.c:
17563 * getpagesize.h:
17564 * floatfns.c:
17565 * fileio.c:
17566 * emacs.c:
17567 * doc.c:
17568 * dispnew.c:
17569 * dired.c:
17570 * data.c:
17571 * callproc.c:
17572 * buffer.c:
17573 * README:
17574 * Makefile.in:
17575 * s/template.h:
17576 * s/msdos.h:
17577 * m/vax.h: Remove VMS support.
17578 * s/vms.h:
17579 * vlimit.h:
17580 * uaf.h:
17581 * temacs.opt:
17582 * param.h:
17583 * ioctl.h: Remove file.
17584
175852008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17586
17587 * s/ms-w32.h (MULTI_KBOARD): Remove.
17588 * xterm.c:
17589 * xselect.c:
17590 * xfns.c:
17591 * window.c:
17592 * w32term.c:
17593 * w32fns.c:
17594 * terminal.c:
17595 * termhooks.h:
17596 * term.c:
17597 * sysdep.c:
17598 * keyboard.h:
17599 * keyboard.c:
17600 * frame.h:
17601 * frame.c:
17602 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
17603 * config.in: Regenerate.
17604
176052008-07-30 Jason Rumney <jasonr@gnu.org>
17606
17607 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
17608
17609 * w32font.c (w32font_encode_char): Leave as unicode if in range.
17610 (w32font_open_internal): Get unicode version of textmetrics.
17611 Don't enable or disable glyph indices here.
17612 (w32font_open): Disable use of glyph indices.
17613
17614 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
17615
176162008-07-30 Chong Yidong <cyd@stupidchicken.com>
17617
17618 * minibuf.c (Vread_buffer_function): Doc fix.
17619
176202008-07-30 John Paul Wallington <jpw@pobox.com>
17621
17622 * minibuf.c (read_buffer_completion_ignore_case): New var.
17623 (Fread_buffer): Use it.
17624
176252008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
17626
17627 * systty.h (sensemode): Remove empty #if. Remove reference to
17628 BSD_TERMIOS, unused.
17629
17630 * sysdep.c: Remove reference to DGUX.
17631 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
17632
17633 * config.in: Regenerate.
17634
176352008-07-30 Jason Rumney <jasonr@gnu.org>
17636
17637 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
17638
176392008-07-29 Jason Rumney <jasonr@gnu.org>
17640
17641 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
17642 is populated.
17643 (uniscribe_encode_char): Always use uniscribe.
17644 Avoid using context if cache is populated.
17645
176462008-07-29 Jan Djärv <jan.h.d@swipnet.se>
17647
17648 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
17649 open menu.
17650
17651 * gtkutil.c (menu_nav_ended): Remove.
17652 (create_menus): Remove signal connect for menu_nav_ended.
17653
176542008-07-28 Chong Yidong <cyd@stupidchicken.com>
17655
17656 * xdisp.c (redisplay_window): Check return value of
17657 compute_window_start_on_continuation_line before forcing a window
17658 start.
17659
176602008-07-28 Jason Rumney <jasonr@gnu.org>
17661
17662 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
17663
17664 * w32term.c (w32_enable_unicode_output, cleartype_active):
17665 Remove obsolete display options.
17666 (x_draw_glyph_string_background): Don't use old cleartype_active
17667 workaround.
17668 (w32_initialize): Remove cleartype_active initialization.
17669 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
17670
176712008-07-28 Andreas Schwab <schwab@suse.de>
17672
17673 * lisp.h (init_weak_hash_tables, syms_of_font)
17674 (xd_read_queued_messages, syms_of_dbusbind): Declare.
17675 (remove_hash_entry): Don't declare.
17676 * eval.c (maybe_call_debugger): Make static and move before use.
17677 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
17678 * xdisp.c: Include "gtkutil.h" if USE_GTK.
17679 * xterm.h (x_set_frame_alpha): Declare.
17680
176812008-07-28 Jan Djärv <jan.h.d@swipnet.se>
17682
17683 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
17684 (create_menus): Connect selection-done to menu_nav_ended.
17685
176862008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17687
17688 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
17689 Set Vx_resource_name to a fallback. Replace read of 'buffered'
17690 parameter with read of 'alpha' one.
17691 (Qns_frame_parameter): Remove.
5582fbc7 17692 * nsselect.m (selection-coding-system)
aac0c6e3
MR
17693 (next-selection-coding-system, Vselection_coding_system)
17694 (Vnext_selection_coding_system): Drop.
17695
176962008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17697
17698 * nsfns.m (do-applescript, do_applescript): Rename to
17699 ns-do-applescript, ns_do_applescript, and move within file.
17700
177012008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
17702
17703 Remove support for Mac Carbon.
17704 * mactoolbox.c:
17705 * macterm.h:
17706 * macterm.c:
17707 * macselect.c:
17708 * macmenu.c:
17709 * macgui.h:
17710 * macfns.c:
17711 * mac.c: Remove file.
17712 * s/darwin.h:
17713 * m/intel386.h:
17714 * xfaces.c:
17715 * xdisp.c:
17716 * window.c:
17717 * tparam.c:
17718 * termhooks.h:
17719 * termcap.c:
17720 * term.c:
17721 * syssignal.h:
17722 * sysselect.h:
17723 * sysdep.c:
17724 * process.c:
17725 * lread.c:
17726 * lisp.h:
17727 * keyboard.c:
17728 * image.c:
17729 * fringe.c:
17730 * frame.h:
17731 * frame.c:
17732 * fontset.c:
17733 * font.h:
17734 * font.c:
17735 * fns.c:
17736 * fileio.c:
17737 * emacs.c:
17738 * dispnew.c:
17739 * dispextern.h:
17740 * config.in:
17741 * atimer.c:
2ae37cf0 17742 * Makefile.in: Remove code for Carbon.
aac0c6e3 17743
f0131492 177442008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
17745
17746 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
17747
177482008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17749
17750 * macterm.h (kCGBitmapByteOrder32Host): New define for
17751 non-universal SDKs.
17752
17753 * image.c (mac_create_cg_image_from_image, image_load_image_io)
17754 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17755
17756 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
17757 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17758
177592008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
17760
17761 * w32inevt.c: Include dispextern.h.
17762
177632008-07-26 Andreas Schwab <schwab@suse.de>
17764
17765 * print.c (print_object): Fix off-by-one in last change.
17766
177672008-07-25 Juanma Barranquero <lekktu@gmail.com>
17768
17769 * term.c (syms_of_term): Don't initialize default_orig_pair,
17770 default_set_foreground and default_set_background on Windows.
17771
177722008-07-25 Jason Rumney <jasonr@gnu.org>
17773
17774 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
17775 ScriptItemize. Clean up return value checking. Remove unused
17776 variables.
17777 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
17778 shaping engine.
17779
17780 * w32font.c (w32font_has_char): Handle the case where we can't
17781 determine the script for a character.
17782
177832008-07-25 Chong Yidong <cyd@stupidchicken.com>
17784
17785 * term.c (syms_of_term): Initialize default_orig_pair,
17786 default_set_foreground, and default_set_background.
17787
17788 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17789 clash (bug#86).
17790 (getloadavg): Callers changed.
17791
17792 * image.c (svg_load_image): Fix last change.
17793 (svg_load_image): Use rsvg_handle_get_dimensions to check that
17794 image size is valid. Use g_object_unref instead of deprecated
17795 rsvg_handle_free to free rsvg handle.
17796 (x_from_xcolors): Don't initialize pixmap (silence compiler).
17797
177982008-07-25 Jason Rumney <jasonr@gnu.org>
17799
17800 * w32font.c (w32font_encode_char): Encode characters outside BMP as
17801 surrogates before looking up glyph index.
17802 (w32font_text_extents): Encode as surrogates if falling back to
17803 functions that need UTF-16 wide chars.
17804
17805 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
17806 BMP as surrogates before looking up glyph index.
17807
178082008-07-25 Chong Yidong <cyd@stupidchicken.com>
17809
17810 * image.c (svg_load_image): Check for failure in return value of
17811 rsvg_handle_get_pixbuf. Free rsvg handle when done.
17812
178132008-07-25 Jason Rumney <jasonr@gnu.org>
17814
17815 * w32font.c (Fx_select_font): Reverse sense of second arg.
17816
178172008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
17818
17819 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
17820 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
17821
17822 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
17823 (PURESIZE): Use it.
17824
178252008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
17826
17827 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
17828 * m/alpha.h (TEXT_END):
17829 * m/ibmrs6000.h (TEXT_END):
17830 * m/macppc.h (TEXT_END):
17831 * s/darwin.h (TEXT_END):
17832 * s/msdos.h (TEXT_END): Remove, unused.
17833 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
17834 * s/cygwin.h: Remove comment.
17835
17836 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
17837 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
17838 * m/intel386.h (DOT_GLOBAL_START):
17839 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
17840 (USG): Remove, file not used on USG platforms.
17841
17842 * Makefile.in (HAVE_X11): Remove empty #else.
17843
178442008-07-24 Andreas Schwab <schwab@suse.de>
17845
17846 * fileio.c (Finsert_file_contents): Properly adjust undo list
17847 after format conversion.
17848
178492008-07-24 Jan Djärv <jan.h.d@swipnet.se>
17850
17851 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
17852 (menu_nav_ended): Remove.
17853 (create_menus): Remove signal connect for menu_nav_ended.
17854 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
17855 create_menus.
17856 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
17857
178582008-07-23 Jason Rumney <jasonr@gnu.org>
17859
17860 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
17861 with opened font.
17862 (w32font_open): Set font type to gdi.
17863
17864 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
17865
178662008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
17867
17868 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
17869 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
17870 defines it.
17871 * unexec.c (ADDR_CORRECT): Define unconditionally.
17872
17873 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
17874
17875 * unexec.c: Remove code depending on !COFF and USG, the file is
17876 not used for such systems.
17877
17878 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
17879 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
17880 (LD_SWITCH_SYSTEM_1): Remove, update users.
17881
17882 * s/darwin.h (DATA_END):
17883 * m/intel386.h (DATA_END):
17884 * m/ibmrs6000.h (DATA_END):
17885 * m/alpha.h (DATA_END): Remove, unused.
17886
17887 * config.in: Regenerate.
17888 * s/ms-w32.h (subprocesses): Define unconditionally.
17889 * s/template.h (subprocesses): Update comment.
17890 * s/vms.h (subprocesses):
17891 * s/usg5-4.h (subprocesses):
17892 * s/hpux10-20.h (subprocesses):
17893 * s/gnu-linux.h (subprocesses):
17894 * s/cygwin.h (subprocesses):
17895 * s/bsd-common.h (subprocesses):
17896 * s/aix4-2.h (subprocesses):
17897 * s/darwin.h (subprocesses): Do not define, defined by default now.
17898
17899 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
17900 Remove all references.
17901 (temacs): Add GNUstep specific ld flags.
17902
17903 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
17904 similarly to what X does.
17905
179062008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
17907
17908 * nsfns.m (x-list-fonts): Remove.
17909 (syms_of_nsfns): Drop the x-list-fonts declaration.
17910 * nsterm.m: Get rid of remaining "//" comments.
17911
179122008-07-22 Chong Yidong <cyd@stupidchicken.com>
17913
17914 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
17915
17916 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
17917 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
17918 (Fns_own_selection_internal, Fx_disown_selection_internal)
17919 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
17920
17921 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
17922 ... */' style of docstrings. Doc fixes.
17923
179242008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
17925
17926 * terminfo.c (UP, BC, PC): Undo previous change.
17927
17928 * nsfns.m: Rename ns prefixed functions/variables to the
17929 corresponding x versions. Update references.
17930
179312008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
17932
17933 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
17934
179352008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
17936
17937 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
17938 Remove forwarding functions.
17939 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
17940 non-static.
17941 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
17942 non-static.
17943 (ns_frame_parm_handlers): Use the new names.
17944 (syms_of_nsfns): Move to the end of file.
17945
17946 * nsterm.m (syms_of_nsterm): Move to the end of file.
17947
17948 * dispnew.c (init_display): Remove code for X10.
17949
179502008-07-22 Jason Rumney <jasonr@gnu.org>
17951
17952 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
17953 bare drive.
17954
179552008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
17956
17957 * nsterm.m (syms_of_nsterm): Remove debugging println.
17958
179592008-07-22 David Reitter <david.reitter@gmail.com>
17960
17961 * nsfns.m (do_applescript, F_do_applescript): NS version of the
17962 Carbon implementation of the same functionality: execute arbitrary
17963 AppleScript code.
17964
179652008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
17966
17967 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
17968 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
17969 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17970 (Fx_display_mm_height, Fx_display_mm_width)
17971 (Fx_display_backing_store, Fx_display_visual_class)
17972 (Fx_display_save_under, Fx_open_connection)
17973 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
17974 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
17975 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
17976 (Fx_display_pixel_width, Fx_display_pixel_height)
17977 (Fx_display_usable_bounds, Fx_display_planes)
17978 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
17979 ... */' style of docstrings.
17980
179812008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
17982
17983 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
17984 on this platform.
17985 (mips):
17986 * m/iris4d.h (mips): Do not define.
17987 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
17988
17989 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
17990
17991 * image.c:
17992 * nsfns.m:
17993 * nsselect.m:
17994 * nsterm.h:
17995 * nsterm.m: Rename ns prefixed functions/variables to the
17996 corresponding x versions. Update references.
17997
17998 * m/ibms390x.h (NO_REMAP): Do not undefine.
17999
18000 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18001
180022008-07-21 Chong Yidong <cyd@stupidchicken.com>
18003
18004 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18005 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18006 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18007 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18008 (Fns_display_mm_height, Fns_display_mm_width)
18009 (Fns_display_backing_store, Fns_display_visual_class)
18010 (Fns_display_save_under, Fns_open_connection)
18011 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18012 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18013 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18014 (Fns_display_pixel_width, Fns_display_pixel_height)
18015 (Fns_display_usable_bounds, Fx_display_planes)
18016 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18017
180182008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18019
18020 * print.c (print_object): Check print_depth before searching for
18021 circularities.
18022
180232008-07-21 Michael Albinus <michael.albinus@gmx.de>
18024
18025 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
18026 only sprintf.
18027
180282008-07-21 Kenichi Handa <handa@m17n.org>
18029
18030 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
18031
180322008-07-20 Andreas Schwab <schwab@suse.de>
18033
18034 * syntax.c (find_start_pos, find_start_value)
18035 (find_start_value_byte, find_start_begv, find_defun_start)
18036 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
18037
180382008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18039
18040 * s/sol2-3.h: Insert contents of s/sol2.h.
18041 (LD_SWITCH_SYSTEM): Remove redundant definition.
18042 * s/sol2.h: Remove, unused.
18043
180442008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18045
18046 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
18047
180482008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18049
18050 * Makefile.in (ns_appdir): Fix typo in find command.
18051
180522008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18053
18054 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
18055
18056 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
18057 added not supported anymore.
18058
18059 * s/usg5-4-2.h (LIBS_SYSTEM):
18060 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
18061
18062 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18063 * s/lynxos.h (GETPGRP_NO_ARG):
18064 * s/hpux10-20.h (NO_SIOCTL_H):
18065 * s/gnu.h (GETPGRP_NO_ARG):
18066 * s/gnu-linux.h (NO_SIOCTL_H):
18067 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18068 * s/cygwin.h (GETPGRP_NO_ARG):
18069 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
18070 (C_DEBUG_SWITCH): Remove duplicate definition.
18071
18072 * m/ibms390.h: Remove boilerplate comments.
18073
18074 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
18075
18076 * process.c (HAVE_SERIAL): Consolidate ifdefs.
18077 (wait_reading_process_output): Remove code for SunOS, platform not
18078 supported anymore. Use SOLARIS2 instead of sun.
18079
180802008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18081
18082 * font.c (font_open_by_name): Under NS, default lface height to zero.
18083 (font_open_for_lface): Under NS, set size based on frame fontsize.
18084 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
18085 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
18086
180872008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18088
18089 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
18090 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
18091 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
18092 YES/NO.
18093 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
18094 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
18095 * Makefile.in (clean): Clear out build destination dir.
18096
180972008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18098
18099 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
18100 xterm, xselect.
18101 * lisp.h: Remove declaration of hash_remove.
18102 * nsgui.h: Remove redefinitions of hash_remove.
18103 * fns.c (hash_remove): Rename to hash_remove_from_table.
18104
181052008-07-19 Seiji Zenitani <zenitani@mac.com>
18106
18107 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
18108 strdup() the family UTF8String before modifying it.
18109
181102008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18111
18112 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
18113 NS_FACE_BACKGROUND with 0 instead of nil.
18114 * nsfont.m (nsfont_draw): Same.
18115
181162008-07-19 Chong Yidong <cyd@stupidchicken.com>
18117
18118 * nsfns.m (ns_set_background_color): Fix crash.
18119
181202008-07-18 Chong Yidong <cyd@stupidchicken.com>
18121
18122 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
18123
181242008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
18125
18126 * puresize.h (BASE_PURESIZE): Increase to 1240000.
18127
181282008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18129
18130 * gtkutil.c: Include <config.h> instead of "config.h".
18131
18132 * lisp.h (Foverlay_buffer): Add EXFUN.
18133
18134 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
18135 child process to complete child_setup. Undo 2005-09-21 change.
18136
18137 * s/darwin.h: Mention setsid after vfork.
18138
181392008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18140
18141 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
18142 Depend on macgui.h.
18143
18144 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
18145 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
18146
18147 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
18148 and f19.
18149 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
18150
18151 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
18152 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
18153 Remove enumerators.
18154
18155 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
18156 Check if FACE_FROM_ID returns NULL.
18157
181582008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
18159
18160 * w32inevt.c (change_frame_size): Remove extern declaration.
18161 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
18162 change_frame_size.
18163
181642008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18165
18166 * getloadavg.c: Revert last change (2008-07-15).
18167
181682008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18169
18170 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 18171 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
18172 from configure.
18173
181742008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
18175
18176 * s/sol2.h:
18177 * s/sol2-4.h: Reorganize conditionals.
18178
18179 * ecrt0.c: Remove code depending on m68000, not used anymore.
18180
18181 * fns.c (hash_remove): Make static.
18182 * lisp.h (hash_remove): Don't prototype.
18183
18184 * m/ibmrs6000.h:
18185 * m/ibms390x.h:
18186 * m/macppc.h: Remove boilerplate comments.
18187
18188 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
18189 Solaris, which does not need them.
18190
18191 * m/vax.h: Remove comments about unsupported systems.
18192
18193 * s/darwin.h: Reorganize ifdefs.
18194
181952008-07-17 Andreas Schwab <schwab@suse.de>
18196
18197 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
18198
181992008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18200
18201 Use SDATA. Follow coding convention of placing operators at
18202 beginning of next line rather than end of previous line, and placing
18203 spaces around infix operators.
18204
18205 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
18206 in case it was defined already.
18207 USE @GNUSTEP_MAKEFILES@ rather than envvars.
18208 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
18209 ns_default.
18210 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
18211 Lisp_Objects.
18212 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
18213 (ns_defined_color, ns_color_to_lisp): Declare.
18214 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
18215 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
18216 it's accepted even with USE_LISP_UNION_TYPE.
18217 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
18218 (update_frame_tool_bar): Remove apparently obsolete tests for
18219 non-integerness of f->tool_bar_lines.
18220 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
18221 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
18222 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
18223 (nsfont_open): Don't confuse NULL for Qnil.
18224 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
18225 * menu.h (find_and_call_menu_selection):
18226 * menu.c (find_and_call_menu_selection): Use just int for vector size.
18227 (find_and_return_menu_selection): Always return something.
18228 * frame.h: Include dispextern.h for Display_Info.
18229 (display_x_get_resource): Declare.
18230
182312008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
18232
18233 * syntax.c: Remove stdio.h include accidentally introduced in
18234 Emacs.app commit.
18235 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
18236 NS_IMPL_COCOA.
18237 * keyboard.c (handle_async_input, input_available_signal): Remove
18238 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
18239
182402008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18241
18242 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
18243 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
18244 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
18245 Use SDATA.
18246
18247 * keymap.c: Remove all NS-specific code.
18248 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
18249 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
18250 where_is_preferred_modifier, return a different value depending on how
18251 preferred is the binding.
18252 (where_is_internal): Adjust accordingly.
18253 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
18254 Adjust to new preferred_sequence_p.
18255 (syms_of_keymap): Declare `where-is-preferred-modifier'.
18256 * keyboard.c (parse_solitary_modifier): Not static any more.
18257 * keyboard.h (parse_solitary_modifier): Declare.
18258
182592008-07-16 Andreas Schwab <schwab@suse.de>
18260
18261 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
18262 of easymenu.
18263
182642008-07-16 Chong Yidong <cyd@stupidchicken.com>
18265
18266 * xdisp.c (move_it_in_display_line): Account for word wrap, so
18267 that we don't move off the line.
18268
182692008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18270
18271 * keyboard.c (Qsuper): Remove.
18272 (parse_menu_item): Don't call where_is_internal specially for NS.
18273
182742008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18275
18276 * s/gnu-linux.h: Remove boilerplate comments.
18277
18278 * m/alpha.h (__ELF__): Consolidate conditions.
18279
18280 * m/m68k.h (linux): Use GNU_LINUX instead.
18281 Remove boilerplate comments.
18282
18283 * m/intel386.h: Undo refactoring from previous change.
18284 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
18285 too, remove dead code.
18286 (linux): Use GNU_LINUX instead.
18287
182882008-07-16 Jason Rumney <jasonr@gnu.org>
18289
18290 * w32gui.h: Repeat 26 June changes lost by last change.
18291
182922008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18293
18294 * systty.h: Remove code for Aix on 386, unsupported platform.
18295
18296 * s/ms-w32.h: Remove boilerplate comments.
18297 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
18298
18299 * s/gnu-linux.h (TERM): Remove support.
18300 (HAVE_SYSVIPC): Remove, unused.
18301 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
18302 for this system.
18303
18304 * process.c: Remove support for IRIS, unused.
18305 Remove support for TERM, not relevant anymore.
18306
18307 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
18308 used with the definition.
18309
18310 * s/aix4-2.h (static): Do not undef.
18311
18312 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
18313 only used on Aix.
18314 (HAVE_SYSVIPC): Remove, unused.
18315
18316 * m/hp800.h (CANNOT_DUMP): Do not undef.
18317
18318 * m/alpha.h: Fix comment.
18319
18320 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
18321 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
18322 used by this configuration.
18323 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
18324 * unexec.c: Remove code depending on HPUX and
18325 USG_SHARED_LIBRARIES, not used with this file. Remove code
18326 depending on IRIS, unused. Remove if 0-ed code.
18327
18328 * s/template.h: Remove comments about static.
18329
18330 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
18331 Remove if 0-ed code.
18332 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
18333 were the same as the default.
18334 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
18335 Remove boilerplate comments.
18336 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
18337 (HAVE_SYSVIPC): Remove, unused.
18338 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
18339
18340 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18341 Remove boilerplate comments.
18342 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18343 Remove boilerplate comments.
18344 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18345 Remove boilerplate comments.
18346 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
18347
18348 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
18349 USG systems which do not use DATA_SEG_BITS.
18350 Refactor code. Remove boilerplate comments.
18351
18352 * m/ibms390.h:
18353 * m/m68k.h:
18354 * s/bsd-common.h:
18355 * s/cygwin.h:
18356 * s/darwin.h:
18357 * s/freebsd.h:
18358 * s/gnu.h:
18359 * s/msdos.h: Remove boilerplate comments.
18360
18361 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 18362 do not use this file.
aac0c6e3
MR
18363 (IRIS_4D): Remove, unused.
18364
18365 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 18366 do not use this file.
aac0c6e3
MR
18367 (SIGN_EXTEND_CHAR):
18368 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
18369 * unexmips.c: Remove file, unused.
18370
18371 * editfns.c (Fuser_full_name): Replace the only use of
18372 USER_FULL_NAME with its value.
18373 * config.in: Regenerate.
18374
183752008-07-16 David Reitter <david.reitter@gmail.com>
18376
18377 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
18378 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
18379
183802008-07-16 Glenn Morris <rgm@gnu.org>
18381
18382 * emacs.c (system-type): Doc fix.
18383
183842008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
18385
18386 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
18387 If the cache doesn't work, let's fix it, rather than work around it.
18388
183892008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18390
18391 * Makefile.in: Correct additions for nsfont.o in last commit.
18392 * nsfont.m: New file (forgot last commit).
18393
183942008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
18395
bba3e508
SM
18396 * callproc.c (set_initial_environment):
18397 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
18398 batch-compiling for bootstrap).
18399
184002008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 18401 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 18402
c4cc8b9a
JB
18403 * frame.c (make_initial_frame): Call init_frame_faces(f) in
18404 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
18405
184062008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18407
18408 Changes and additions for NeXTstep windowing system (Cocoa and
18409 GNUstep) support.
18410
18411 * Makefile.in:
18412 * config.in: Support defines and build commands for NS port.
18413 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
18414 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
18415 * dispextern.h: Include nsgui.h and add needed typedefs under NS
18416 windowing.
18417 (struct face): Add synth_ital field.
18418 * dispnew.c: Include nsterm.h when compiling under NS windowing.
18419 (init_display): Initialize Vinitial_window_system to "ns" when so
18420 compiled.
18421 * emacs.c: Include GSConfig.h when compiling under GNUstep.
18422 (display_arg): Use under NS.
18423 (main): Under NS, allocate autorelease pool and handle command line
18424 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
18425 (standard_args): Add NS-specific args.
18426 (shut_down_emacs): Shut down NS terminal if compiled under NS.
18427 * font.c (DEFAULT_ENCODING): New variable.
18428 (font_find_for_lface): Use it.
18429 (syms_of_font): Load syms_of_nsfont under NS.
18430 * font.h: Declare nsfont_driver when compiled under NS.
18431 * fontset.c: When compiling under NS, include nsterm.h.
18432 (fontset_from_font): Autoconstruct fontset under NS.
18433 * frame.c (various): Under NS, include nsterm.h, add Qns window system
18434 symbol, document and use it.
18435 (do_switch_frame): When for_deletion under Cocoa, add
18436 Fraise_frame(Qnil).
18437 (x_set_frame_parameters): Ensure font attribute changes are picked up.
18438 (x_get_arg): Allow "yes" and "no" as boolean values.
18439 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
18440 Qright under Cocoa.
18441 (focus-follows-mouse): Default to 0 under NS.
18442 * frame.h (enum output_method): Add output_ns.
18443 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
18444 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
18445 (FRAME_WINDOW_P): NS-specific definition.
18446 * fringe.c (max_used_fringe_bitmap): Make public.
18447 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
18448 (getloadavg): Use NeXT code under descendant OS's.
18449 * image.c (includes and header section, x_create_bitmap_from_data)
18450 (x_create_bitmap_from_file, free_bitmap_record, image_background)
18451 (image_background_transparent, x_clear_image_1)
18452 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
18453 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
18454 (x_to_xcolors, x_from_xcolors, x_disable_image)
18455 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
18456 other GUIs, including XPM support using code originally written for
18457 Carbon GUI.
18458 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
18459 using NS API.
18460 (image_ascent): Use font metrics macros instead of direct struct field
18461 access.
18462 * keyboard.c (includes): Add nsterm.h when compiling under NS.
18463 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
18464 Also, handle NS as GTK for menu bar purposes.
18465 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
18466 toolkit where they differ.
18467 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
18468 use cachelist, still needed under NS.
18469 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
18470 (struct widget_value): Define it here for menu.c.
18471 * keymap.c (includes): Include modifier internals.
18472 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
18473 NS.
18474 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
18475 support for preferring sequences using certain modifiers, specified by
18476 the FIRSTONLY argument.
18477 * lisp.h (hash_remove): Rename to avoid name clash when compiling
18478 under NS GNUstep implementation.
18479 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
18480 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
18481 * menu.c: Include nsterm.h under NS.
18482 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
18483 (free_menubar_widget_tree_value, update_submenu_strings)
18484 (find_and_call_menu_selection): Treat NS as X and NT.
18485 (find_and_return_menu_selection): New function, used for popup menus.
18486 * nsgui.h:
18487 * nsterm.h:
18488 * nsfns.m:
18489 * nsimage.m:
18490 * nsmenu.m:
18491 * nsselect.m:
18492 * nsterm.m: New files.
18493 * process.c (wait_reading_process_output): Under NS, call ns_select()
18494 instead of plain select().
18495 * syntax.c (char_quoted): Under NS, avoid a crash when called near
18496 beginning of buffer.
18497 * sysselect.h (init_process): Rename when compiling under Cocoa to
18498 avoid name conflict.
18499 * termhooks.h (display_info): Add ns_display_info to union.
18500 * terminal.c (Fterminal_live_p): Add ns to terminal types.
18501 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
18502 COCOA environment.
18503 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
18504 unexec() signature. (Note, this will dump, but the resulting file
18505 crashes; unexosx is used instead; keeping around for reference and
18506 possible aid in getting dump working under GNUstep.)
18507 * w32gui.h (button_type, widget_value): Remove definitions (now in
18508 keyboard.h).
18509 * window.c: Include nsterm.h when compiling under NS.
18510 * xdisp.c (includes): Include nsterm.h when compiling under NS.
18511 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
18512 other GUI windowing systems.
18513 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
18514 GTK.
18515 (x_consider_frame_title): Under NS, set icon type and frame
18516 modified-state indicator; use ns_set_name_as_filename() when using
18517 formatted title.
18518 (update_window_cursor): Make public when compiling under NS.
18519 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
18520 (hourglass_atimer, Vhourglass_delay
18521 * xfaces.c (header section, init_frame_faces, clear_font_table)
18522 (defined_color, unload_color, x_face_list_fonts)
18523 (prepare_face_for_display): Add NS support parallel to other GUIs.
18524 Emulate GCs like other non-X GUIs.
18525 (split_font_name): Don't lowercase font name under NS.
18526 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
18527 under NS.
18528 * s/darwin.h: Add support for compilation under NS.
18529
185302008-07-15 Jason Rumney <jasonr@gnu.org>
18531
18532 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
18533 (w32_show_hourglass): Rename from show_hourglass.
18534 (w32_hide_hourglass): Rename from hide_hourglass.
18535 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
18536 (Vhourglass_delay): Declare extern.
18537 (hourglass_started): Remove.
18538
18539 * xdisp.c (Vhourglass_delay): Remove static.
18540 (hourglass_started, start_hourglass, cancel_hourglass):
18541 Don't include these versions on WINDOWSNT.
18542
185432008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18544
18545 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
18546 variables (formerly in xfns.c).
18547 (show_hourglass, hide_hourglass): New prototypes (same).
18548 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
18549 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
18550 in xfns.c).
18551 (syms_of_xdisp): Declare/initialize display-hourglass,
18552 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
18553 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
18554 formerly in xfns.c.
18555 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18556 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18557 (start_hourglass, cancel_hourglass): Remove.
18558 (show_hourglass, hide_hourglass): Remove prototypes and static
18559 modifiers.
18560 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
18561 hourglass_atimer, hourglass_shown_p declaration/initialization.
18562 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18563 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18564 (start_hourglass, cancel_hourglass): Remove.
18565 (show_hourglass, hide_hourglass): Remove prototypes and static
18566 modifiers.
18567 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
18568 hourglass_atimer, hourglass_shown_p declaration/initialization.
18569 * w32fns.c (display_hourglass_p, Vhourglass_delay)
18570 (DEFAULT_HOURGLASS_DELAY): Remove.
18571 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
18572 hourglass_shown_p declaration/initialization.
18573
185742008-07-14 Jason Rumney <jasonr@gnu.org>
18575
18576 * w32fns.c (w32_get_arg): Remove wrapper function.
18577 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
18578 directly.
18579 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
18580
185812008-07-14 Kenichi Handa <handa@m17n.org>
18582
18583 * xfont.c (xfont_open): Add workaround for X's bug.
18584
185852008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18586
18587 * fontset.c: Include <stdio.h> unconditionally.
18588
185892008-07-13 Michael Albinus <michael.albinus@gmx.de>
18590
18591 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
18592 for filtering.
18593
185942008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
18595
18596 * s/vms.h: Use __GNUC__ instead of _GNUC_.
18597
18598 * m/macppc.h:
18599 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
18600
c4cc8b9a 18601 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
18602 (SPECIAL_EMACS_INT):
18603 * m/ia64.h (SPECIAL_EMACS_INT):
18604 * m/amdx86-64.h (SPECIAL_EMACS_INT):
18605 * s/gnu.h (NLIST_STRUCT):
18606 * s/aix4-2.h (X11R5_INHIBIT_I18N):
18607 * s/gnu-linux.h (LINUX):
18608 * s/msdos.h (HAVE_FACES):
18609 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
18610
18611 * systty.h:
18612 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
18613 anymore.
18614
186152008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
18616
18617 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
18618 always defined as int.
18619
18620 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
18621 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
18622 * s/gnu-linux.h (HAVE_WAIT_HEADER):
18623 * s/freebsd.h (HAVE_WAIT_HEADER):
18624 * s/bsd-common.h (HAVE_UNION_WAIT):
18625 * s/aix4-2.h (HAVE_WAIT_HEADER):
18626 * m/mips.h (HAVE_UNION_WAIT):
18627 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
18628 (COFF, static): Do not define, they are undefined later in the file.
18629
18630 * process.c (update_status): Don't use a union.
18631 (status_convert):
18632 (sigchld_handler): Use int instead of WAITTYPE.
18633
186342008-07-12 Chong Yidong <cyd@stupidchicken.com>
18635
18636 * indent.c (Fvertical_motion): Restore hscroll before moving to
18637 goal column.
18638
186392008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18640
18641 * lisp.h: Remove left over code.
18642
186432008-07-11 Andreas Schwab <schwab@suse.de>
18644
18645 * lisp.h: Fix logic in last change.
18646
18647 * menu.h: New file.
18648 * menu.c: Include it.
18649 * xmenu.c: Likewise.
18650 * Makefile.in: Update dependencies.
18651
186522008-07-11 Kenichi Handa <handa@m17n.org>
18653
18654 * fontset.c (fontset_from_font): Cancel the previous change.
18655
186562008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18657
18658 * lisp.h:
18659 * w32heap.c:
18660 * emacs.c:
18661 * alloc.c: Replace all references of NO_UNION_TYPE with
18662 USE_LISP_UNION_TYPE.
18663
18664 * m/xtensa.h (NO_UNION_TYPE):
18665 * m/vax.h (NO_UNION_TYPE):
18666 * m/template.h (NO_UNION_TYPE):
18667 * m/sparc.h (NO_UNION_TYPE):
18668 * m/mips.h (NO_UNION_TYPE):
18669 * m/macppc.h (NO_UNION_TYPE):
18670 * m/m68k.h (NO_UNION_TYPE):
18671 * m/iris4d.h (NO_UNION_TYPE):
18672 * m/intel386.h (NO_UNION_TYPE):
18673 * m/ibms390x.h (NO_UNION_TYPE):
18674 * m/ibms390.h (NO_UNION_TYPE):
18675 * m/ibmrs6000.h (NO_UNION_TYPE):
18676 * m/ia64.h (NO_UNION_TYPE):
18677 * m/hp800.h (NO_UNION_TYPE):
18678 * m/arm.h (NO_UNION_TYPE):
18679 * m/amdx86-64.h (NO_UNION_TYPE):
18680 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
18681 defining it the same.
18682
186832008-07-10 Chong Yidong <cyd@stupidchicken.com>
18684
18685 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
18686
186872008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
18688
18689 * fileio.c:
50426a04 18690 * sysdep.c:
aac0c6e3
MR
18691 * systty.h:
18692 * m/ibmrs6000.h:
18693 * m/iris4d.h:
18694 * s/aix4-2.h:
18695 * s/freebsd.h:
18696 * s/gnu-linux.h:
18697 * s/hpux10-20.h:
18698 * s/hpux11.h:
18699 * s/netbsd.h:
18700 * s/sol2-3.h:
18701 * s/sol2-4.h:
18702 * s/sol2.h:
18703 * s/usg5-4.h:
18704 * s/vms.h: Remove references to unused variables.
18705
187062008-07-10 Andreas Schwab <schwab@suse.de>
18707
18708 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
18709 pattern before matching the generic family.
18710
187112008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
18712
18713 * unexec.c:
18714 * s/vms.h:
18715 * s/usg5-4-2.h:
18716 * s/sol2-5.h:
18717 * s/freebsd.h:
18718 * s/darwin.h: Remove dead code.
18719
18720 * m/template.h:
18721 * m/sparc.h:
18722 * m/mips.h:
18723 * m/m68k.h:
18724 * m/iris4d.h:
18725 * m/intel386.h:
18726 * m/ibms390x.h:
18727 * m/ibms390.h:
18728 * m/ia64.h:
18729 * m/hp800.h:
18730 * m/arm.h:
18731 * m/amdx86-64.h: Remove dead code and references to unused
18732 and compiler defined symbols.
18733
18734 * unexmips.c:
18735 * unexelf.c: Remove references to desupported systems.
18736
18737 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
18738
18739 * m/powermac.h: Remove boilerplate comments.
18740 (NO_REMAP): Remove unused definition.
18741
18742 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
18743 define them.
18744
187452008-07-10 Kenichi Handa <handa@m17n.org>
18746
18747 * xfont.c (xfont_open): Log the reason of failure.
18748
187492008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
18750
18751 * fontset.c (fontset_get_font_group):
18752 * font.c (font_check_otf): Specify argument types.
18753
187542008-07-09 Kenichi Handa <handa@m17n.org>
18755
18756 * coding.c (detect_coding_utf_8): Set detect_info->found only when
18757 non-ASCII char is found.
18758
18759 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
18760 (reorder_font_vector): Change the arg preferred_family to font.
18761 Prefer the spec matching with font.
18762 (fontset_get_font_group): New function.
18763 (fontset_find_font): Change the format of an element of a realized
18764 fontset. Use fontset_get_font_group.
18765 (fontset_font): Try the current fontset, the default fontset, the
18766 fallbacks of the current fontset, and the fallbacks of the default
18767 fontset in this order.
18768 (face_for_char): Delete the shortcut to use the current font.
18769 (fontset_from_font): Don't set fonts for Latin in the fontset.
18770
18771 * font.h (font_make_object, font_match_p): Adjust prototypes.
18772
18773 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
18774
18775 * font.c (font_make_object): New arg entity and pixelsize.
18776 (font_check_otf_features, font_check_otf): New functions.
18777 (font_match_p): Check :lang, :script, and :otf properties.
18778
18779 * xfont.c (xfont_open): Adjust it for the change of
18780 font_make_object.
18781 (xfont_text_extents): Fix initial setting of metrics.
18782
18783 * ftfont.c (struct ftfont_info): New member index, delete member
18784 fc_charset_idx. Make the member order compatible with struct
18785 xftfont_info.
18786 (fc_charset_table): Change charset names to registry names.
18787 (ftfont_pattern_entity): Delete the args registry and
18788 fc_charset_idx. Change the value of :font-entity property
18789 to (FONTNAME . INDEX). Always set :registry property to
18790 `iso10646-1'.
18791 (struct ftfont_cache_data): New struct.
18792 (ftfont_lookup_cache): New arg for_face.
18793 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
18794 (ftfont_driver): Set the member otf_capability.
18795 (ftfont_get_charset): Adjust it for the change of
18796 fc_charset_table.
18797 (OTF_TAG_SYM): New macro.
18798 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
18799 for the change of fc_charset_table.
18800 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
18801 ftfont_pattern_entity. Add FC_INDEX to objset.
18802 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
18803 and ftfont_pattern_entity.
18804 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
18805 font_make_object, struct ftfont_info.
18806 (ftfont_has_char): Use ftfont_get_fc_charset.
18807 (ftfont_otf_features, ftfont_otf_capability): New functions.
18808 (ftfont_shape): Use ftfont_get_otf.
18809 (ftfont_text_extents): Fix initial setting of metrics.
18810
18811 * xftfont.c (struct xftfont_info): New member ft_size. Make the
18812 member order compatible with struct ftfont_info.
bba3e508
SM
18813 (xftfont_open): Add FC_CHARSET to the pattern.
18814 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
18815 properties if appropriate.
18816 (xftfont_close): Unlock the face.
18817 (xftfont_anchor_point, xftfont_shape): Deleted.
18818 (syms_of_xftfont): Don't set members anchor_point and shape of
18819 xftfont_driver.
18820
18821 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
18822 font_make_object.
18823
18824 * w32font.c (w32font_open): Adjust it for the change of
18825 font_make_object.
18826 (w32font_open_internal): Don't set properties of font_object here.
18827
188282008-07-08 Chong Yidong <cyd@stupidchicken.com>
18829
18830 * macfns.c (x_create_tip_frame):
18831 * w32fns.c (x_create_tip_frame):
18832 * xfns.c (x_create_tip_frame): Pass parameter argument to
18833 face-set-after-frame-default.
18834
18835 * xfaces.c (Finternal_merge_in_global_face): Save merged
18836 attributes for the default face back into the face vector.
18837
188382008-07-08 Andreas Schwab <schwab@suse.de>
18839
18840 * fontset.h: Declare fontset_from_font. Don't declare
18841 new_fontset_from_font and fontset_from_font_name.
18842 * xterm.c: Include "fontset.h".
18843 * Makefile.in (xterm.o): Update dependencies.
18844
188452008-07-08 Glenn Morris <rgm@gnu.org>
18846
18847 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
18848 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
18849
188502008-07-07 Chong Yidong <cyd@stupidchicken.com>
18851
18852 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
18853 (x_set_frame_parameters): Don't bind it.
18854
188552008-07-07 Juanma Barranquero <lekktu@gmail.com>
18856
18857 * w32fns.c (map_w32_filename): Declare extern.
18858
188592008-07-07 Jason Rumney <jasonr@gnu.org>
18860
18861 * w32term.c (WS_EX_LAYERED): Define if not already.
18862
188632008-07-06 Chong Yidong <cyd@stupidchicken.com>
18864
18865 * xfaces.c (set_font_frame_param): Don't try to set the font
18866 parameter if it is still unspecified in the lface.
18867
188682008-07-05 Chong Yidong <cyd@stupidchicken.com>
18869
18870 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
18871 face if it didn't already exist.
18872
18873 * xdisp.c (try_window_id): Give up if word-wrapping is on.
18874
188752008-07-05 Andreas Schwab <schwab@suse.de>
18876
18877 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
18878
188792008-07-05 Chong Yidong <cyd@stupidchicken.com>
18880
18881 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
18882 word-wrapping.
18883 (IT_DISPLAYING_WHITESPACE): New macro.
18884 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
18885 when word-wrapping. Simplify word-wrapping logic. Use correct
18886 pixel positions when saving copies of the iterator.
18887 (display_line): Use proper wrap point if the last character on a
18888 line was preceded by whitespace.
18889
188902008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
18891
18892 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
18893
188942008-07-04 Kenichi Handa <handa@m17n.org>
18895
18896 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
18897
18898 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
18899
189002008-07-02 Jason Rumney <jasonr@gnu.org>
18901
18902 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 18903 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
18904
18905 * xdisp.c (next_element_from_display_vector): Move assignment out
18906 of if statement.
18907
189082008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
18909
18910 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
18911
18912 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
18913 (syms_of_fileio): Initialize and export them.
18914 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
18915
18916 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
18917 (Fsystem_move_file_to_trash): New function.
18918 (syms_of_w32fns): Export it to lisp.
18919
189202008-07-01 Jason Rumney <jasonr@gnu.org>
18921
18922 * w32font.c (w32font_text_extents): Don't count overhang as part
18923 of width.
18924
189252008-06-30 Miles Bader <miles@gnu.org>
18926
18927 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
18928 Add `avoid_cursor_p' field.
18929
18930 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
18931 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
18932 (append_glyph, append_composite_glyph, produce_image_glyph)
18933 (append_stretch_glyph): Initialize avoid_cursor_p.
18934 (get_it_property): Rename from `get_line_height_property'.
18935 (x_produce_glyphs): Use get_it_property.
18936 (handle_line_prefix, push_display_prop): New functions.
18937 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
18938 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
18939 New variables.
18940 (syms_of_xdisp): Initialize them.
18941
189422008-06-30 Kenichi Handa <handa@m17n.org>
18943
18944 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
18945 XftDefaultSubstitute (they are called in XftFontMatch).
18946 (xftfont_open): Fix args to ftfont_font_format.
18947
18948 * ftfont.c (fc_charset_table): New member lang.
18949 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 18950 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
18951 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
18952 (ftfont_open): Fix args to ftfont_font_format.
18953 (ftfont_font_format): New arg filename.
18954
189552008-06-30 Chong Yidong <cyd@stupidchicken.com>
18956
18957 * xfaces.c (Finternal_merge_in_global_face): If default face was
18958 modified, realize it again. Update the font face attribute.
18959
189602008-06-29 Jason Rumney <jasonr@gnu.org>
18961
18962 * w32term.c (x_set_frame_alpha): Fix logic.
18963
189642008-06-29 Kenichi Handa <handa@m17n.org>
18965
18966 * fontset.c (Finternal_char_font): Return font-object instead of
18967 font-name.
18968
18969 * composite.c (get_composition_id): Fix the width calculation for TAB.
18970
189712008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
18972
18973 * indent.c (Fvertical_motion): Properly handle float column arg.
18974
189752008-06-28 Jason Rumney <jasonr@gnu.org>
18976
18977 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
18978 (pfnSetLayeredWindowAttributes): New function pointer.
18979 (w32_initialize): Initialize it when supported.
18980 (x_set_frame_alpha): New function.
18981
18982 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
18983 (w32_frame_parm_handlers): Set alpha handler.
18984
18985 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
18986
189872008-06-27 Jason Rumney <jasonr@gnu.org>
18988
18989 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
18990 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
18991 (w32_to_x_charset, x_to_w32_charset)
18992 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
18993 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
18994 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
18995 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
18996 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
18997 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
18998 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
18999 (Qw32_charset_unicode): Remove.
19000 (syms_of_w32fns): Update for above changes.
19001
19002 * w32font.c (w32_to_x_charset, x_to_w32_charset)
19003 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19004 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19005 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19006 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19007 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19008 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19009 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19010 (syms_of_w32font): Update for above changes.
19011
190122008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
19013
19014 * s/usg5-4.h: Fix previous change: keep the correct branch of a
19015 removed #if.
19016 (USG_SHARED_LIBRARIES): Remove duplicate definition.
19017
190182008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 19019 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
19020
19021 * makefile.w32-in (LOCAL_FLAGS):
19022 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19023
19024 * sysdep.c (_spawnlp, _getpid):
19025 Declare with explicit _cdecl instead of _CRTAPI1.
19026
19027 * editfns.c (Fget_internal_run_time):
19028 Check for WINDOWSNT with #ifdef, not #if.
19029
190302008-06-26 Jason Rumney <jasonr@gnu.org>
19031
19032 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
19033
19034 * w32term.c (x_draw_glyph_string_foreground)
19035 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
19036 Use FONT_HANDLE macro.
19037 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
19038
19039 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19040 (uniscribe_encode_char): Use FONT_HANDLE macro.
19041
19042 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
19043 (w32font_text_extents): Use precast w32_font.
19044 (w32font_close): Free cached metrics.
19045 (w32font_open_internal): Allocate space for name on stack.
19046
190472008-06-26 Chong Yidong <cyd@stupidchicken.com>
19048
19049 * xdisp.c (extend_face_to_end_of_line): Fix last change.
19050
190512008-06-26 Jason Rumney <jasonr@gnu.org>
19052
19053 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
19054 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
19055
190562008-06-26 Juanma Barranquero <lekktu@gmail.com>
19057
19058 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
19059
190602008-06-26 Jason Rumney <jasonr@gnu.org>
19061
19062 * w32bdf.c, w32bdf.h: Remove obsolete files.
19063
19064 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
19065
19066 * w32gui.h: Don't include w32bdf.h.
19067 (XCharStruct, enum w32_char_font_type, W32FontStruct):
19068 Remove obsolete font support.
19069
19070 * w32font.h (struct w32font_info): Remove compat_w32_font.
19071 Add hfont member.
19072 (FONT_COMPAT): Remove obsolete macro.
19073
19074 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
19075 (w32font_encode_char, w32font_text_extents): Use new hfont member.
19076 (w32font_open_internal): Remove compat code. Set new hfont member.
19077 (Fx_select_font): Use new hfont member.
19078
19079 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19080 (uniscribe_encode_char): Use new hfont member.
19081
19082 * w32term.c (x_draw_glyph_string_foreground)
19083 (x_draw_composite_glyph_string_foreground): Use new hfont member.
19084 (x_draw_glyph_string): Use metrics in w32font_info.
19085
190862008-06-26 Kenichi Handa <handa@m17n.org>
19087
19088 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
19089
190902008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
19091
19092 * unexnext.c:
19093 * m/ews4800.h:
19094 * m/hp9000s300.h:
19095 * m/ibm370aix.h:
19096 * m/mips-siemens.h:
19097 * m/ncr386.h:
19098 * m/next.h:
19099 * m/pmax.h:
19100 * m/powerpcle.h:
19101 * m/tandem-s2.h:
19102 * s/386bsd.h:
19103 * s/bsd386.h:
19104 * s/bsd4-1.h:
19105 * s/bsd4-2.h:
19106 * s/bsdos2-1.h:
19107 * s/bsdos2.h:
19108 * s/bsdos3.h:
19109 * s/bsdos4.h:
19110 * s/nextstep.h:
19111 * s/ultrix4-3.h:
19112 * s/usg5-0.h:
19113 * s/usg5-2-2.h:
19114 * s/usg5-2.h:
19115 * s/usg5-4-3.h:
19116 * s/ux4800.h:
19117 * s/uxpds.h:
19118 * s/uxpv.h: Remove support for obsolete systems.
19119 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 19120 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
19121 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
19122 Remove, insert contents in s/aix4-2.h.
19123 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
19124 * s/bsd4-3.h: Rename to ...
19125 * s/bsd-common.h: ... this.
19126 * data.c:
19127 * doc.c:
19128 * ecrt0.c:
19129 * emacs.c:
19130 * fileio.c:
19131 * floatfns.c:
19132 * keyboard.c:
19133 * mem-limits.h:
19134 * print.c:
19135 * process.c:
19136 * sysdep.c:
19137 * syssignal.h:
19138 * systty.h:
19139 * syswait.h:
19140 * term.c:
19141 * unexec.c:
19142 * unexelf.c:
19143 * unexhp9k800.c:
19144 * m/hp800.h:
19145 * m/ibmrs6000.h:
19146 * m/mips.h:
19147 * m/vax.h:
19148 * s/darwin.h:
19149 * s/freebsd.h:
19150 * s/gnu.h:
19151 * s/ms-w32.h:
19152 * s/msdos.h:
19153 * s/netbsd.h:
19154 * s/template.h: Remove references to obsolete variables.
19155
19156 * Makefile.in: Add dependencies for all unexec files.
19157 (admindir): Remove unused variable.
19158 (UNEXEC_SRC): Remove references.
19159
191602008-06-25 Chong Yidong <cyd@stupidchicken.com>
19161
19162 * xfns.c (x_default_font_parameter): If Xft is available, first
19163 try Monospace-12 for the default font.
19164
191652008-06-25 Jason Rumney <jasonr@gnu.org>
19166
19167 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
19168
191692008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
19170
19171 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
19172
19173 * buffer.c (syms_of_buffer): Remove default-word-wrap.
19174
191752008-06-25 Juanma Barranquero <lekktu@gmail.com>
19176
19177 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
19178 <scroll-conservatively>: Fix typo in docstring.
19179
19180 * xselect.c (Fx_send_client_event): Doc fix.
19181
191822008-06-25 Kenichi Handa <handa@m17n.org>
19183
19184 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
19185
19186 * font.c (font_parse_fcname): Remove unused variables.
19187 (font_sort_entites): Delete the arg SPEC. Caller changed.
19188 Fix for the case of ! best_only.
19189 (font_delete_unmatched): Check DPI and AVGWIDTH too.
19190
19191 * lisp.h (Fstring_to_unibyte): EXFUN it.
19192
19193 * character.h (str_to_unibyte): Extern it.
19194
19195 * character.c (str_to_unibyte): New function.
19196
19197 * fns.c (Fstring_to_unibyte): New function.
19198 (syms_of_fns): Defsubr it.
19199
192002008-06-24 Kenichi Handa <handa@m17n.org>
19201
19202 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
19203 DPI too.
19204 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
19205
192062008-06-24 Andreas Schwab <schwab@suse.de>
19207
19208 * Makefile.in (${lispsource}loaddefs.el): Rename from
19209 ../lisp/loaddefs.el.
19210 (bootstrap-clean): Do what distclean does but don't remove
19211 Makefile.
19212 (distclean): Depend on bootstrap-clean and remove Makefile.
19213
192142008-06-24 Chong Yidong <cyd@stupidchicken.com>
19215
19216 * buffer.h (struct buffer): New member word_wrap.
19217
19218 * buffer.c (syms_of_buffer): New variables default-word-wrap and
19219 word-wrap.
19220 (init_buffer_once): Initialize them.
19221
19222 * dispextern.h (struct it): Replace bool truncate_lines_p with a
19223 line_wrap enum possessing three possible values.
19224
19225 * termopts.h: Replace truncate_partial_width_windows with
19226 Vtruncate_partial_width_windows.
19227
19228 * dispnew.c (direct_output_for_insert): Avoid direct output when
19229 inserting a space with word wrap on.
19230
19231 * indent.c (compute_motion): Obey integer values of
19232 truncate-partial-width-windows.
19233
19234 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
19235 replacing truncate_partial_width_windows.
19236 (init_iterator): If Vtruncate_partial_width_windows is an integer,
19237 truncate only if the window width is below that integer.
19238 (start_display, resize_mini_window, produce_stretch_glyph)
19239 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
19240 (back_to_previous_visible_line_start, reseat_1):
19241 Reset string_from_display_prop_p.
aac0c6e3
MR
19242 (display_line): Extend default face to end of line when wrapping.
19243
192442008-06-24 Kim F. Storm <storm@cua.dk>
19245
19246 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
19247 to wrap continued lines at word boundaries.
19248
192492008-06-24 Jason Rumney <jasonr@gnu.org>
19250
19251 * font.c (Ffont_face_attributes): Multiply pixel size before point
19252 conversion to avoid multiplying rounding error.
19253
192542008-06-23 Jason Rumney <jasonr@gnu.org>
19255
19256 * w32term.c (x_draw_glyph_string_background)
19257 (x_draw_glyph_string): Remove old bdf font code.
19258
19259 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
19260
192612008-06-22 Kenichi Handa <handa@m17n.org>
19262
19263 * font.c (font_find_for_lface): Try the adstyle specified in
19264 the property of LFACE_FONT of LFACE (if any).
19265
192662008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 19267 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
19268
19269 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
19270
192712008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
19272
19273 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
19274 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
19275 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
19276 (witness-emacs): Remove.
19277 (lisp, shortlisp): Move loaddefs.el earlier.
19278 (mostlyclean): Forget about witness-emacs.
19279
192802008-06-22 Glenn Morris <rgm@gnu.org>
19281
19282 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
19283 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
19284
192852008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19286
19287 * Makefile.in (PRECOMP): Remove.
19288 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
19289 (witness-emacs): Run `compile-first'.
19290 (.el.elc): Use the new compile-onefile target.
19291
192922008-06-21 Kenichi Handa <handa@m17n.org>
19293
19294 * xftfont.c (xftfont_open): Handle QCembolden only when
19295 FC_EMBOLDEN is defined.
19296
192972008-06-21 Andreas Schwab <schwab@suse.de>
19298
19299 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
19300 (.el.elc): Likewise.
19301
193022008-06-21 Miles Bader <miles@gnu.org>
19303
19304 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
19305 build dir, not the lisp source dir.
19306
193072008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19308
19309 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
19310 (bootstrapclean): Remove.
19311 (.el.elc): New rule.
19312 (PRECOMP): New var.
19313 (../lisp/subdirs.el): Remove.
19314 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
19315 (witness-emacs): New target.
19316 (mostlyclean): Remove witness-emacs as well.
19317 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
19318 Add witness-emacs dependency.
19319
193202008-06-20 Chong Yidong <cyd@stupidchicken.com>
19321
19322 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
19323 defined by the font.
19324
193252008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19326
19327 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
19328 (bootstrap-clean): New target that keeps TAGS around.
19329 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
19330 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
19331
193322008-06-20 Jason Rumney <jasonr@gnu.org>
19333
19334 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
19335 Remove obsolete font code.
19336
19337 * w32font.c (font_matches_spec): Use csb bitfield from font signature
19338 to determine language support.
19339
193402008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19341
19342 * sysdep.c (cfsetspeed): New fun extracted from the code.
19343 (cfmakeraw): Move before first use.
19344
193452008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
19346
19347 * sysdep.c (cfmakeraw): Provide fallback implementation.
19348 (serial_configure): Provide fallback implementation of cfsetspeed.
19349
193502008-06-20 Kenichi Handa <handa@m17n.org>
19351
19352 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
19353 the pattern.
19354
19355 * fontset.c (fontset_from_font): Copy font_spec before changing
19356 the elements.
19357
19358 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
19359
193602008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19361
19362 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
19363 for explicit `font' parameters.
19364
19365 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
19366
193672008-06-19 Kenichi Handa <handa@m17n.org>
19368
19369 * frame.c: Include <ctype.h>.
19370 (x_set_font_backend): Allow spacing characters in the X resource
19371 for FontBackend.
19372
193732008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
19374
19375 * w32fns.c, xfns.c (Qfont_param): New var.
19376 (syms_of_w32fns): Initialize it.
19377 (x_default_font_parameter): Record explicit `font' into
19378 `font-parameter'.
19379
193802008-06-18 Kenichi Handa <handa@m17n.org>
19381
19382 * font.c (font_parse_xlfd): Fix previous change.
19383 (font_parse_fcname): Don't use :fc-unknown-spec.
19384 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
19385 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
19386 (font_add_log): Prepend the driver name to the resulting fonts.
19387
19388 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
19389 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
19390 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
19391
19392 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
19393 (QCembolden): New variables.
19394 (syms_of_xftfont): DEFSYM them.
19395 (xftfont_open): Call XftFontMatch. Don't trust the result of
19396 XftTextExtents8 if the pixel_size is less than 5.
19397
193982008-06-18 Andreas Schwab <schwab@suse.de>
19399
19400 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
19401 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
19402
194032008-06-18 Jason Rumney <jasonr@gnu.org>
19404
19405 * w32font.c (w32font_list, w32font_match): Add logging.
19406
19407 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
19408
194092008-06-17 Chong Yidong <cyd@stupidchicken.com>
19410
19411 * font.c (font_parse_fcname): Store divider characters for
19412 unknown-spec list. For known key symbols, intern using correct
19413 symbol name.
19414
194152008-06-17 Kenichi Handa <handa@m17n.org>
19416
19417 * xfaces.c (realize_default_face): If the frame is not on window
19418 system, set the fontset of face to nil.
19419
194202008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19421
19422 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
19423
194242008-06-16 Juanma Barranquero <lekktu@gmail.com>
19425
19426 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
19427 (build_font_name_from_vector): Delete externs.
19428
19429 * xfaces.c (struct font_name): Don't declare.
19430
194312008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
19432
19433 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
19434
194352008-06-16 Chong Yidong <cyd@stupidchicken.com>
19436
19437 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
19438
194392008-06-16 Juanma Barranquero <lekktu@gmail.com>
19440
19441 * font.c (Ffont_spec): Fix usage in docstring.
19442 (Ffont_face_attributes): Doc fix.
19443
194442008-06-16 Andreas Schwab <schwab@suse.de>
19445
19446 * font.c (Ffont_face_attributes): Fix definition.
19447
194482008-06-16 Jason Rumney <jasonr@gnu.org>
19449
19450 * font.h (font_style_symbolic_from_value): Remove.
19451
19452 * font.c (font_style_symbolic_from_value): Remove.
19453 (font_style_symbolic): Revert to pre 2008-06-13 version.
19454
19455 * w32font.c (w32_to_fc_weight): New function.
19456 (w32font_full_name, logfont_to_fcname): Use it.
19457
194582008-06-16 Kenichi Handa <handa@m17n.org>
19459
19460 * font.c (font_check_object): Delete it.
19461 (font_clear_cache): Check if a font-object is alive.
19462 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
19463 font-object to nil.
19464 (font_close_object): Don't check FONT_CLOSE_OBJECT.
19465 (font_at): Don't call font_check_object.
19466 (Ffont_get): Return a symbol for :weight, :slant, and :width.
19467
194682008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
19469
19470 * puresize.h (BASE_PURESIZE): Increase to 1230000.
19471
194722008-06-16 Chong Yidong <cyd@stupidchicken.com>
19473
19474 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
19475
194762008-06-15 Chong Yidong <cyd@stupidchicken.com>
19477
19478 * font.c (font_parse_fcname): Only one decimal point.
19479 (font_unparse_fcname): Handle data in family and foundry indices
19480 as symbols, not strings.
19481 (font_unparse_gtkname, Ffont_face_attributes): New functions.
19482
19483 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
19484
19485 * font.h (font_unparse_gtkname): Add prototype.
19486
194872008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19488
19489 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
19490
194912008-06-15 Andreas Schwab <schwab@suse.de>
19492
19493 * font.c (font_update_drivers): Fix crash when no drivers match.
19494
194952008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
19496
19497 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
19498 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
19499
195002008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
19501
19502 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
19503
195042008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
19505
19506 * process.c (Fserial_process_configure, Fprocess_send_eof):
19507 Use EQ to compare Lisp_Objects.
19508
195092008-06-13 Jason Rumney <jasonr@gnu.org>
19510
19511 * w32fns.c (Fw32_select_font): Remove old font API function.
19512
19513 * w32font.c (logfont_to_fcname): New function.
19514 (Fx_select_font): New font dialog function compatible with
19515 GTK/fontconfig version.
19516
19517 * font.c (font_style_symbolic_from_value): New function.
19518 (font_style_symbolic): Use it.
19519
19520 * font.h (font_style_symbolic_from_value): Declare new function.
19521
195222008-06-13 Juanma Barranquero <lekktu@gmail.com>
19523
19524 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
19525 <font-width-table>: Fix typos in docstrings.
19526
195272008-06-13 Daniel Engeler <engeler@gmail.com>
19528
19529 These changes add serial port access.
19530 * process.c: Add HAVE_SERIAL.
19531 (Fdelete_process, Fprocess_status, Fset_process_buffer)
19532 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
19533 (list_processes_1, select_wrapper, Fstop_process)
19534 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
19535 (status_notify): Modify to handle serial processes.
19536 [HAVE_SERIAL] (Fserial_process_configure)
19537 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
19538 New functions.
19539 * process.h (struct Lisp_Process): Add `type'.
19540 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
19541 New functions.
19542 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
19543 serial ports.
b71ac3dd 19544 (serial_open, serial_configure): New functions.
aac0c6e3
MR
19545 * w32.h: Add FILE_SERIAL.
19546 (struct _child_process): Add ovl_read, ovl_write.
19547
195482008-06-13 Kenichi Handa <handa@m17n.org>
19549
19550 * dispextern.h (enum lface_attribute_index): New member
19551 LFACE_FOUNDRY_INDEX.
19552
19553 * font.c (font_score): Delete arg alternate_families. Check only
19554 weight, slant, width, and size. Ignore the difference of alias
19555 style symbols.
19556 (font_sort_entites): Adjust for the above change. Reflect the
19557 order of font-driver to scores.
19558 (font_list_entities): Don't check alternate_familes here.
19559 (font_clear_prop): Handle foundry.
19560 (font_update_lface): Don't parse "foundry-family" form here.
19561 Handle FONT_FOUNDRY_INDEX.
19562 (font_find_for_lface): Likewise. Handle alternate families here.
19563 If registry is nil, try iso8859-1 and ascii-0.
19564 (font_open_for_lface): Pay attention to size in ENTITY.
19565 (font_open_by_name): Simplify by calling font_load_for_lface.
19566 (free_font_driver_list): Delete it.
19567 (font_update_drivers): Preserve the order of backends.
19568 (syms_of_font): Setting of sort_shift_bits adjusted for the change
19569 of font_score and font_sort_entites.
19570 (font_update_sort_order): Likewise.
19571
19572 * xfaces.c (LFACE_FOUNDRY): New macro.
19573 (check_lface_attrs): Check foundry.
19574 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
19575 (merge_face_vectors): Check foundry.
19576 (merge_face_ref): Likewise.
19577 (Finternal_set_lisp_face_attribute): Likewise.
19578 (x_update_menu_appearance): Likewise.
19579 (Finternal_get_lisp_face_attribute): Likewise.
19580 (lface_hash): Likewise.
19581 (lface_same_font_attributes_p): Likewise.
19582 (x_supports_face_attributes_p): Likewise.
19583 (tty_supports_face_attributes_p): Likewise.
19584 (Finternal_set_alternative_font_family_alist): Intern strings.
19585 (Finternal_set_alternative_font_registry_alist): Downcase strings.
19586 (realize_default_face): Set LFACE_FOUNDRY (lface).
19587
19588 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
19589 font-driver at first.
19590
19591 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
19592
195932008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19594
19595 * lread.c (Fload): Use xfree, not free on saved_doc_string.
19596
195972008-06-12 Jim Meyering <meyering@redhat.com>
19598
19599 Make unexec_free handle NULL the same way free does.
19600 * unexmacosx.c (unexec_free): Ignore a NULL argument.
19601
196022008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
19603
19604 * character.h (CHAR_TO_BYTE_SAFE): New macro.
19605 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
19606 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
19607 (WEAK_ALIAS): Simplify.
19608 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
19609 when searching a unibyte buffer.
19610
196112008-06-12 Chong Yidong <cyd@stupidchicken.com>
19612
19613 * xfns.c (Fx_select_font): Rename from x-font-dialog.
19614
196152008-06-12 Juanma Barranquero <lekktu@gmail.com>
19616
19617 * w32font.c: Include ctype.h.
19618
196192008-06-11 Jason Rumney <jasonr@gnu.org>
19620
19621 * w32font.c (w32font_encode_char): Detect missing glyphs that are
19622 misreported as space.
19623 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
19624 as aliases for registry iso10646-1.
19625
196262008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
19627
19628 * buffer.c (clone_per_buffer_values): Skip `name'.
19629
196302008-06-11 Chong Yidong <cyd@stupidchicken.com>
19631
19632 * font.c (font_parse_fcname): Fix last change; accept decimal
19633 points in font size.
19634
196352008-06-10 Jason Rumney <jasonr@gnu.org>
19636
19637 * w32uniscribe.c (add_opentype_font_name_to_list):
19638 Skip non unicode fonts.
19639
196402008-06-10 Chong Yidong <cyd@stupidchicken.com>
19641
19642 * xfns.c (Fx_font_dialog): New function.
19643
19644 * gtkutil.c (xg_dialog_response_cb): Rename from
19645 xg_file_response_callback.
19646 (pop_down_dialog): Rename from pop_down_file_dialog.
19647 (xg_get_file_name): Callers changed.
19648 (xg_get_font_name): New function.
19649
19650 * gtkutil.h (xg_get_font_name): Insert prototype.
19651
196522008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19653
19654 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
19655 x_underline_minimum_display_offset.
19656 (syms_of_xdisp): Declare it here rather than in xterm.c.
19657 * dispextern.h (underline_minimum_offset): Declare it.
19658 * w32term.c (x_draw_glyph_string): Use it.
19659 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
19660 (syms_of_xterm): Don't declare it any more.
19661 (x_draw_glyph_string): Adjust to the new name.
19662
8719abec 196632008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
19664
19665 * xterm.c (x_underline_minimum_display_offset): New var.
19666 (x_draw_glyph_string): Use it.
19667 (syms_of_xterm): Declare it.
19668
196692008-06-10 Chong Yidong <cyd@stupidchicken.com>
19670
19671 * font.c (font_parse_fcname): Accept GTK-style font names too.
19672
196732008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19674
19675 * dired.c (file_name_completion): Don't return t if the match is exact
19676 but with different capitalization.
19677 * minibuf.c (Ftry_completion): Simplify.
19678
19679 * window.c (Vwindow_point_insertion_type): New var.
19680 (set_window_buffer): Use it.
19681 (syms_of_window): Init and export it to Lisp.
19682
196832008-06-10 Kenichi Handa <handa@m17n.org>
19684
19685 * font.h (font_intern_prop): Prototype adjusted.
19686
19687 * font.c (font_intern_prop): New arg force_symbol.
19688 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
19689 Adjust for the change of font_intern_prop.
19690
19691 * ftfont.c (ftfont_pattern_entity):
19692 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
19693 (w32_registry):
19694 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
19695 the change of font_intern_prop.
19696
196972008-06-09 Juanma Barranquero <lekktu@gmail.com>
19698
19699 * w32menu.c (digest_single_submenu): Declare extern.
19700
197012008-06-09 Jason Rumney <jasonr@gnu.org>
19702
19703 * w32term.c (x_make_frame_visible): Use alternate restore flags.
19704
19705 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
19706 (parse_single_submenu): Remove.
19707 (digest_single_submenu): Remove.
19708 (syms_of_w32menu): Don't initialise variables that have moved
19709 to menu.c.
19710 (set_frame_menubar): Sync with version in xmenu.c.
19711 (w32_menu_show): Sync with xmenu_show in xmenu.c.
19712
19713 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
19714 Make static again.
19715
197162008-06-09 Jason Rumney <jasonr@gnu.org>
19717
19718 Changes to w32 files related to the move of common menu code
19719 to menu.c on 2008-06-08 by Chong Yidong.
19720
19721 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
19722 defs to w32gui.h.
19723 (single_keymap_panes, push_menu_item, push_menu_pane):
19724 Make globally visible.
19725
19726 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
19727 (local_free, malloc_widget_value, free_widget_value)
19728 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
19729 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
19730 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
19731 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
19732 (menu_items, menu_items_allocated, menu_items_used)
19733 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
19734 (init_menu_items, finish_menu_items, discard_menu_items)
19735 (grow_menu_items, push_submenu_start, push_submenu_end)
19736 (push_left_right_boundary, push_menu_pane, push_menu_item)
19737 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
19738 (free_menubar_widget_tree_value, parse_single_submenu)
19739 (update_submenu_strings): Remove functions.
19740 (xmalloc_widget_value): Remove and declare extern.
19741
19742 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
19743 (OBJ1): Build it.
19744
19745 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
19746 (local_heap, local_alloc, local_free, malloc_widget_value)
19747 (free_widget_value): Define here.
19748
197492008-06-09 Kenichi Handa <handa@m17n.org>
19750
19751 * font.h (Qascii_0): Extern it.
19752
19753 * font.c (Qascii_0): New variable.
19754 (syms_of_font): DEFSYM it.
19755 (font_open_by_name): If the registry "iso8859-1" fails, try also
19756 "ascii-0".
19757
19758 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
19759
197602008-06-08 Kenichi Handa <handa@m17n.org>
19761
19762 * .gdbinit (xfont): New command.
19763
197642008-06-08 Andreas Schwab <schwab@suse.de>
19765
19766 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
19767 * Makefile.in (menu.o): Update dependencies.
19768
19769 * Makefile.in (obj): Always add menu.o.
19770 * emacs.c (main): Always call syms_of_menu.
19771 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
19772
197732008-06-08 Chong Yidong <cyd@stupidchicken.com>
19774
19775 * Makefile.in: Compile menu.c.
19776
19777 * lisp.h: Declare syms_of_menu.
19778
19779 * emacs.c (main): Call syms_of_menu.
19780
19781 * keyboard.h: Relocate platform-independent menu definitions from
19782 xmenu.c.
19783
19784 * menu.c: New file. Relocate platform-independent menu
19785 definitions from xmenu.c. Suggested by Adrian Robert.
19786
19787 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 19788 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
19789 (menu_items_used, menu_items_n_panes)
19790 (menu_items_submenu_depth): Move to keyboard.h.
19791 (init_menu_items, finish_menu_items, unuse_menu_items)
19792 (discard_menu_items, restore_menu_items, save_menu_items)
19793 (grow_menu_items, push_submenu_start, push_submenu_end)
19794 (push_left_right_boundary, push_menu_pane, push_menu_item)
19795 (keymap_panes, single_keymap_panes, single_menu_item)
19796 (list_of_panes, list_of_items, find_and_call_menu_selection)
19797 (xmalloc_widget_value, free_menubar_widget_value_tree)
19798 (parse_single_submenu, digest_single_submenu)
19799 (update_submenu_strings): Move to menu.c.
19800
198012008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
19802
19803 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
19804
198052008-06-06 Miles Bader <miles@gnu.org>
19806
19807 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
19808 face, not frame default.
19809
198102008-06-05 Martin Rudalics <rudalics@gmx.at>
19811
19812 * window.c (pop_up_windows, pop_up_frames)
19813 (display_buffer_reuse_frames, Vpop_up_frame_function)
19814 (Vdisplay_buffer_function, Veven_window_heights)
19815 (Vspecial_display_buffer_names, Vspecial_display_regexps)
19816 (Vspecial_display_function, Vsame_window_buffer_names)
19817 (Vsame_window_regexps, split_height_threshold)
19818 (Vsplit_window_preferred_function): Move those vars to window.el.
19819 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
19820 (Fdisplay_buffer): Move those functions to window.el.
19821 (syms_of_window): Remove corresponding declarations.
19822 (display_buffer): New function.
19823 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
19824 * dispnew.c (Flast_nonminibuf_frame): New function.
19825 * buffer.c (Fpop_to_buffer): Move to window.el.
19826
198272008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19828
19829 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
19830
198312008-06-05 Kenichi Handa <handa@m17n.org>
19832
19833 * coding.c (detect_coding): Fix previous change.
19834 (detect_coding_system): Likewise.
19835
198362008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19837
19838 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
19839
19840 * keymap.c (Vminibuffer_local_filename_must_match_map):
19841 Rename from Vminibuffer_local_must_match_filename_map.
19842 (syms_of_keymap):
19843 * minibuf.c (Fcompleting_read): Adjust accordingly.
19844 * commands.h: Rename declaration as well.
19845
198462008-06-05 Kenichi Handa <handa@m17n.org>
19847
19848 * font.c (Ffont_spec): Don't use font_parse_family_registry for
19849 family name.
19850 (Ffont_put): Likewise.
19851
19852 * fontset.c (fontset_find_font): Call font_open_for_lface with the
19853 current font-spec.
19854
19855 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
19856 is unspecified.
19857
19858 * xfaces.c (realize_x_face): If the font-related face attributes
19859 are the same as those of default face, realize a new fontset from
19860 default->fontset.
19861 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
19862
198632008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19864
19865 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
19866 (move_it_in_display_line): New wrapper.
19867
19868 * window.c (window_scroll_pixel_based_preserve_x)
19869 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
19870 (window_scroll_pixel_based, window_scroll_line_based):
19871 Use them to preserve column positions.
19872 (syms_of_window): Initialize them.
19873
19874 * indent.c (Fvertical_motion): Extend first arg to allow passing an
19875 (HPOS . VPOS) pair.
19876
19877 * dispextern.h (move_it_in_display_line): Declare.
19878
198792008-06-05 Juanma Barranquero <lekktu@gmail.com>
19880
19881 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
19882 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
19883 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
19884
198852008-06-04 Juanma Barranquero <lekktu@gmail.com>
19886
19887 * window.c (Fset_window_parameter): Doc fix.
19888 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
19889
198902008-06-04 Joakim Verona <joakim@verona.se>
19891
19892 * window.h (struct window): Add new member window_parameters.
19893
19894 * window.c (Fwindow_parameters, Fwindow_parameter)
19895 (Fset_window_parameter): New defuns.
19896 (syms_of_window): Defsubr the new defuns.
19897 (make_window): Initialize window_parameters to nil.
19898
198992008-06-04 John Paul Wallington <jpw@pobox.com>
19900
19901 * eval.c (Fdefmacro): Doc fix.
19902
199032008-06-04 Kenichi Handa <handa@m17n.org>
19904
19905 * coding.c (detect_coding): Fix handling of coding->head_ascii.
19906 Be sure to call setup_coding_system when we find a proper coding system.
19907 (detect_coding_system): Fix handling of coding->head_ascii.
19908
199092008-06-03 Andreas Schwab <schwab@suse.de>
19910
19911 * font.c (font_prop_validate_spacing): Fix last change.
19912
199132008-06-03 Kenichi Handa <handa@m17n.org>
19914
19915 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
19916 (font_parse_fcname): Fix handling of unknown key.
19917
19918 * xfont.c (xfont_list): Try an alias.
19919
19920 * charset.c (char_charset): Return NULL if the arg charset_list is
19921 specified and C doesn't belong to any of them.
19922
199232008-06-02 Chip Coldwell <coldwell@redhat.com>
19924
19925 * font.c (font_pixel_size): Don't take cdr of an integer.
19926
199272008-06-02 Jim Meyering <meyering@redhat.com>
19928
19929 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
19930 * alloc.c (xfree): Return right away for a NULL arg.
19931 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
19932 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
19933 * mac.c (create_apple_event_from_event_ref): Likewise.
19934 (create_apple_event_from_drag_ref, cfstring_create_normalized):
19935 Likewise.
19936 * doprnt.c (doprnt1): Likewise.
19937 * frame.c (frame): Likewise.
19938 * keyboard.c (wipe_kboard): Likewise.
19939 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
19940 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
19941 * term.c (tty_default_color_capabilities, maybe_fatal)
19942 (delete_tty): Likewise.
19943 * w16select.c (string): Likewise.
19944 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
19945 * w32bdf.c (w32_free_bdf_font): Likewise.
19946 * w32fns.c (w32_unload_font): Likewise.
19947 * w32font.c (w32font_close): Likewise.
19948 * window.c (size_window): Likewise.
19949 * xselect.c (receive_incremental_selection): Likewise.
19950 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
19951 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
19952 * w32.c (stat): Likewise.
19953
19954 Remove useless if-before-free tests.
19955 * editfns.c (Fset_time_zone_rule): Likewise.
19956 * lread.c (nosuffix): Likewise.
19957 * ralloc.c (get_bloc): Likewise.
19958 * regex.c (reg_free): Likewise.
19959 * xftfont.c (xftfont_open, xftfont_close): Likewise.
19960 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
19961 * xsmfns.c (smc_save_yourself_CB): Likewise.
19962
199632008-06-02 Kenichi Handa <handa@m17n.org>
19964
19965 * font.c (font_find_for_lface): Handle float font size.
19966 (font_open_for_lface): Likewise.
19967
19968 * xfaces.c (x_supports_face_attributes_p): Check face->font before
19969 comparing the properties.
19970
199712008-06-01 Jason Rumney <jasonr@gnu.org>
19972
19973 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
19974 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
19975 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
19976 Don't add empty script list.
19977 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
19978
199792008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
19980
19981 * Makefile.in (dot, dotdot): Remove, update users.
19982 ".." has been used elsewhere in the file for a long time.
19983 (LIBXT_STATIC): Remove conditional based on unused variable.
19984
199852008-06-01 Miles Bader <miles@gnu.org>
19986
19987 * xfaces.c (Vface_remapping_alist): New variable.
19988 (syms_of_xfaces): Initialize it.
19989 (enum named_merge_point_kind): New type.
19990 (struct named_merge_point): Add `named_merge_point_kind' field.
19991 (push_named_merge_point): Make cycle detection respect different
19992 named-merge-point kinds.
19993 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
19994 Remove face-name alias resolution.
19995 (lface_from_face_name): New definition using
19996 `lface_from_face_name_no_resolve'.
19997 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
19998 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
19999 (get_lface_attributes): New definition that layers face-remapping on
20000 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
20001 (lookup_basic_face): New function.
20002 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20003 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20004 `get_lface_attributes'.
20005 (face_at_buffer_position): Use `lookup_basic_face' to lookup
20006 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
20007 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20008
20009 * xdisp.c (init_iterator): Pass base_face_id through
20010 `lookup_basic_face' when we actually use it as a face-id.
20011 (handle_single_display_prop): Use `lookup_basic_face' to lookup
20012 DEFAULT_FACE_ID.
20013
20014 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20015 lookup the initial face-id.
20016
20017 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20018
200192008-06-01 Juanma Barranquero <lekktu@gmail.com>
20020
20021 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20022 (Fremove_text_properties): Fix typos in docstrings.
20023
200242008-05-31 Kenichi Handa <handa@m17n.org>
20025
20026 * font.c (font_list_entities): Fix the car part of data to be
20027 stored in the cache.
20028
20029 * ftfont.c (ftfont_font_format): Don't use strcasestr.
20030
200312008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20032
20033 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
20034 Add a `test' argument so another predicate than `equal' can be used.
20035 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
20036 (map_char_table): Remove unused vars `c' and `i'.
20037 * lisp.h (Foptimize_char_table): Adjust declaration.
20038 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
20039
200402008-05-30 Kenichi Handa <handa@m17n.org>
20041
20042 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
20043 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
20044 defined.
20045
200462008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20047
20048 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20049 (Fmake_variable_frame_local): Disallow mixing buffer-local and
20050 frame-local settings for the same variable.
20051
200522008-05-30 Kenichi Handa <handa@m17n.org>
20053
20054 * fontset.c (Ffont_info): Move to font.c.
20055 (syms_of_fontset): Delete defsubr of Sfont_info.
20056
20057 * font.c (font_style_to_value, font_score): Delete casting of the
20058 args to xstcasecmp.
20059 (register_font_driver): Increment num_font_drivers only when
20060 registering the driver globally.
20061 (Ffont_info): Move from fontset.c. Handle a font object too.
20062 (syms_of_font): Defsubr Sfont_info.
20063
200642008-05-29 Kenichi Handa <handa@m17n.org>
20065
20066 * coding.h (enum define_coding_utf8_arg_index): New enum.
20067 (enum coding_attr_index): Change coding_attr_utf_16_bom to
20068 coding_attr_utf_bom.
20069 (enum utf_bom_type): Rename from utf_16_bom_type.
20070 (struct utf_16_spec): Adjust for the above change.
20071 (struct coding_system): Add utf_8_bom in `spec' union.
20072
20073 * coding.c (CODING_UTF_8_BOM): New macro.
20074 (enum coding_category): Delete coding_category_utf_8, add
20075 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
20076 coding_category_utf_8_sig.
20077 (CATEGORY_MASK_UTF_8): Delete it.
20078 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
20079 (CATEGORY_MASK_UTF_8_SIG): New macros.
20080 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
20081 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
20082 CATEGORY_MASK_UTF_8_SIG.
20083 (CATEGORY_MASK_UTF_8): New macro.
20084 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
20085 (detect_coding_utf_8): Check BOM.
20086 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
20087 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
20088 (encode_coding_utf_16): Likewise.
20089 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
20090 (detect_coding, detect_coding_system): Handle utf-8-auto.
20091 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
20092 (syms_of_coding): Fix setting up of Vcoding_category_table.
20093
200942008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
20095
20096 * process.c (Faccept_process_output): If `millisec' is non-nil,
20097 `seconds' default to 0.
20098 (wait_reading_process_output): Also return non-nil if we read output
20099 from a non-running process.
20100
201012008-05-29 Jason Rumney <jasonr@gnu.org>
20102
20103 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
20104 `raster' specified.
20105 (add_font_entity_to_list): Allow non-opentype truetype fonts back
20106 in the uniscribe backend, but disallow any font that has no
20107 unicode subrange support.
20108
201092008-05-29 Juanma Barranquero <lekktu@gmail.com>
20110
20111 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
20112 Fix typos in docstrings.
20113
201142008-05-29 Kenichi Handa <handa@m17n.org>
20115
20116 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
20117 (Fx_family_fonts): Set frame correctly.
20118
201192008-05-28 Jason Rumney <jasonr@gnu.org>
20120
20121 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
20122
201232008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
20124
20125 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
20126 calling build_annotations.
20127
201282008-05-28 Juanma Barranquero <lekktu@gmail.com>
20129
20130 * coding.c (Fdecode_coding_region, Fencode_coding_region)
20131 (Fencode_coding_string):
20132 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
20133 <latin-extra-code-table>: Fix typos in docstrings.
20134 (syms_of_coding) <coding-system-alist>: Doc fix.
20135 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
20136
201372008-05-28 Kenichi Handa <handa@m17n.org>
20138
20139 * fontset.c (Ffont_info): Don't call font_close_object.
20140
20141 * font.c (font_parse_family_registry): Use Ffont_put to validate
20142 foundry and family.
20143 (font_delete_unmatched): Don't check spacing.
20144 (font_list_entities): Add spacing to the spec to list fonts.
20145
20146 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
20147 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
20148
20149 * coding.c (encode_coding_raw_text): Fix previous change.
20150 (encode_coding_object): When the dst_object is a buffer and is
20151 different from src_object, move gap to PT.
20152
201532008-05-27 Chong Yidong <cyd@stupidchicken.com>
20154
20155 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
20156
201572008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20158
20159 * coding.c (encode_coding_raw_text): Set coding->produced_char for
20160 all branches. Compute it differently.
20161
20162 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
20163
201642008-05-27 Juanma Barranquero <lekktu@gmail.com>
20165
20166 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
20167 into "else if () ... else ...".
20168
201692008-05-27 Jason Rumney <jasonr@gnu.org>
20170
20171 * w32font.c (w32font_open_internal): Determine if glyph indices
20172 are likely to work here.
20173
201742008-05-27 Chong Yidong <cyd@stupidchicken.com>
20175
20176 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
20177 draw overlap glyphs with appropriate highlighting.
20178
201792008-05-27 Kenichi Handa <handa@m17n.org>
20180
20181 * xfont.c (xfont_open): Fix calculation of font->average_width.
20182
201832008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20184
20185 * casefiddle.c (casify_object): Try to guess better whether the
20186 argument is a byte or a char.
20187
201882008-05-26 Andreas Schwab <schwab@suse.de>
20189
20190 * xselect.c (x_reply_selection_request): Properly handle format == 32.
20191 Always send multiples of format size.
20192
20193 * xterm.c (x_set_frame_alpha): Fix type mismatch.
20194
201952008-05-26 Jason Rumney <jasonr@gnu.org>
20196
20197 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
20198 (compute_metrics): Don't set failure if we just cleared the cache.
20199 (w32_weight_table): Remove unused variable.
20200 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
20201 backwards compatibility.
20202
202032008-05-25 Kenichi Handa <handa@m17n.org>
20204
20205 * w32term.c (x_draw_glyph_string):
20206 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
20207
20208 * xfaces.c: Delete unused function prototypes.
20209 (xstrlwr, font_frame): Delete them.
20210 (clear_face_cache): Delete unused variable.
20211
20212 * xftfont.c (xftfont_open): Delete unused variable.
20213 If underline_thickness is not 1, adjust underline_position.
20214
20215 * ftxfont.c (ftxfont_open): Delete unused variable.
20216
20217 * fontset.c (face_for_char): Optimize for the case of no charset
20218 property.
20219
20220 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
20221 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
20222 (otf_open, font_otf_capability, generate_otf_features)
20223 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20224 Comment out by surrounding "#if 0" and "#endif" for the moment.
20225 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
20226 (syms_of_font): Codes for accessing above commented out.
20227
202282008-05-24 Eli Zaretskii <eliz@gnu.org>
20229
20230 * w32proc.c: Include dispextern.h.
20231
20232 * w32.c: Include dispextern.h.
20233
202342008-05-23 Juanma Barranquero <lekktu@gmail.com>
20235
20236 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
20237 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
20238 Fix typos in docstrings.
20239
202402008-05-23 Jason Rumney <jasonr@gnu.org>
20241
20242 * xsmfns.c: Remove includes that are already included by config.h.
20243
202442008-05-23 Kenichi Handa <handa@m17n.org>
20245
20246 * charset.c (Qemacs, charset_emacs): New variables.
20247 (char_charset): Fix for non-Unicode characters.
20248 (syms_of_charset): Define charset_emacs.
20249
20250 * w32term.c (x_draw_glyph_string): Be sure to update
20251 s->underline_thickness and s->underline_position. Be sure to draw
20252 underline within the current line area.
20253
20254 * xterm.c (x_draw_glyph_string): Be sure to update
20255 s->underline_thickness and s->underline_position. Be sure to draw
20256 underline within the current line area.
20257
20258 * fontset.c: Delete unused variables and add casting for char *
20259 throughout the file.
20260 (fontset_font): Try the fallback fonts of the current fontset
20261 before consulting the default fontset.
20262
20263 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
20264
20265 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
20266
202672008-05-22 Jason Rumney <jasonr@gnu.org>
20268
20269 * font.c: Don't include strings.h.
20270
20271 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
20272
20273 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
20274 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
20275 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
20276 to call xstrcasecmp.
20277
20278 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
20279
20280 * fontset.c (fs_query_fontset): Use xstrcasecmp.
20281
20282 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
20283
20284 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
20285
202862008-05-22 Kenichi Handa <handa@m17n.org>
20287
20288 * puresize.h (BASE_PURESIZE): Increase to 1220000.
20289
20290 * font.c (font_prop_validate_style): Adjust for the format
20291 change of font_style_table.
20292
20293 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
20294 two args.
20295
20296 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
20297 two args.
20298
202992008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
20300
20301 * minibuf.c (keys_of_minibuf): Delete.
20302 * lisp.h (keys_of_minibuf): Delete.
20303 * emacs.c (main): Don't call keys_of_minibuf.
20304
203052008-05-22 Kenichi Handa <handa@m17n.org>
20306
20307 * ftfont.c (ftfont_resolve_generic_family): Rename from
20308 ftfont_list_generic_family. Return a single family for each
20309 generic family.
20310 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20311 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
20312 Call font_add_log.
20313 (ftfont_match): Call font_add_log.
20314
20315 * font.h (Ffont_xlfd_name): EXFUN adjusted.
20316 (FONT_DEBUG): Define it.
20317 (font_add_log): Extern it.
20318 (font_assert): Rename from xassert.
20319
20320 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
20321 (xfont_list_family): Call font_add_log.
20322 (xfont_match): Likewise.
20323 (memq_no_quit): Delete.
20324
20325 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
20326 call of Ffont_xlfd_name.
20327
20328 * xfaces.c (struct table_entry, slant_table, weight_table)
20329 (swidth_table): Move to font.c.
20330
20331 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
20332 xassert are changed to font_assert. Delete many unused variables.
20333 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
20334 New variables.
20335 (struct table_entry): Move from xfaces.c and modified.
20336 (weight_table, slant_table, width_table): Move from xfaces.c and
20337 contents adjusted for the change of struct table_entry.
20338 (font_style_to_value, font_style_symbolic): Adjust for the
20339 format change of font_style_table.
20340 (font_parse_family_registry): Don't overwrite existing foundry and
20341 family of font_spec.
20342 (font_score): Fix calculation of diff for sizes.
20343 (font_sort_entites): Call font_add_log.
20344 (font_delete_unmatched): Return a newly created list.
20345 (font_list_entities): Fix previous change. Call font_add_log.
20346 (font_matching_entity, font_open_entity, font_close_entity):
20347 Call font_add_log.
20348 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
20349 (Finternal_set_font_style_table): Delete.
20350 (BUILD_STYLE_TABLE): New macro.
20351 (build_style_table): New function.
20352 (Vfont_log, font_log_env_checked): New variables.
20353 (font_add_log): New function.
20354 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
20355 Declare Lisp variables "font-weight-table", "font-slant-table",
20356 "font-width-table", and "font-log". Initialize font_style_table.
20357
203582008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
20359
20360 * xterm.c (x_set_frame_alpha): Move declarations before statements.
20361
203622008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 20363 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
20364
20365 * frame.c (Qalpha): Add a new frame parameter `alpha'.
20366 (Vframe_alpha_lower_limit): New variable.
20367 (x_set_alpha): New function.
20368
20369 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
20370
20371 * xfns.c (x-create-frame, Qalpha):
20372 Initialize the frame parameter `alpha'.
20373 * xterm.c (OPAQUE, OPACITY): New.
20374 (x_set_frame_alpha): New function.
20375 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
20376
20377 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
20378 * w32fns.c (w32_frame_parm_handlers): Likewise.
20379
203802008-05-20 Jason Rumney <jasonr@gnu.org>
20381
20382 * w32font.c (add_font_entity_to_list): Don't add non-opentype
20383 truetype fonts to opentype list.
20384
203852008-05-20 Juanma Barranquero <lekktu@gmail.com>
20386
20387 * fontset.c (Ffontset_info): Doc fix.
20388 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
20389 <ignore-relative-composition>: Fix typos in docstrings.
20390
20391 * font.c (syms-of-font) <font-encoding-alist>:
20392 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
20393 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
20394 (Ffont_otf_alternates): Doc fixes.
20395
203962008-05-20 Kenichi Handa <handa@m17n.org>
20397
20398 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
20399 font.h through out the file.
20400 (FONT_DRIVERS): Rename from FONTOBJ.
20401 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
20402 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
20403
20404 * emacs.c (main): Call syms_of_font unconditionally.
20405
20406 * font.h (find_font_encoding): Extern it.
20407
20408 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
20409 fontset.c.
194d44e7 20410 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
20411 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
20412 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
20413 only when HAVE_WINDOW_SYSTEM is defined.
20414 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
20415 when HAVE_WINDOW_SYSTEM is defined.
20416
20417 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
20418 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
20419
20420 * xfaces.c: Include font.h unconditionally.
20421 (merge_face_ref, merge_face_vectors)
20422 (Finternal_set_lisp_face_attribute): Cancel the previous change.
20423
204242008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
20425
20426 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
20427 indirect_variable.
20428 * eval.c (lisp_indirect_variable): New fun.
20429 (Fuser_variable_p): Use it.
20430
204312008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20432
20433 * lisp.h (indirect_variable):
20434 * data.c (indirect_variable, let_shadows_buffer_binding_p):
20435 Use Lisp_Symbol pointers rather than Lisp_Object.
20436 Adjust callers.
20437 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
20438 To this end, change calling-convention.
20439
20440 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
20441 if some non-hidden buffers are selected by string&pred.
20442
204432008-05-19 Chong Yidong <cyd@stupidchicken.com>
20444
20445 * process.c (wait_reading_process_output): Always check status
20446 when in batch mode.
20447
204482008-05-19 Kenichi Handa <handa@m17n.org>
20449
20450 * font.c (font_list_entities): Fix handling of cache.
20451 (font_matching_entity): Likewise.
20452
20453 * ftfont.c (cs_iso8859_1): Delete.
20454 (ft_face_cache): New variable.
20455 (struct ftfont_info): New member fc_charset_idx.
20456 (ftfont_build_basic_charsets): Delete.
20457 (fc_charset_table): New variable.
20458 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
20459 . FC_CHARSET_IDX) as :font-entity property in the font entity.
20460 Callers changed.
20461 (ftfont_lookup_cache, ftfont_get_charset): New functions.
20462 (ftfont_spec_pattern): New argument fc_charset_idx.
20463 Check registry more rigidly. Change callers.
20464 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
20465 change of :font-entity property of the font.
20466
20467 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
20468 property of the font.
20469
204702008-05-18 Juanma Barranquero <lekktu@gmail.com>
20471
20472 * coding.c (Fcoding_system_p): Rename argument to match docstring.
20473 (Funencodable_char_position, Fcheck_coding_systems_region)
20474 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
20475 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
20476 (Ffind_operation_coding_system, Fset_coding_system_priority)
20477 (Fcoding_system_eol_type): Doc fixes.
20478
204792008-05-17 Glenn Morris <rgm@gnu.org>
20480
20481 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
20482
204832008-05-16 Eli Zaretskii <eliz@gnu.org>
20484
20485 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
20486 and st_gid.
20487
20488 * frame.c (Fdelete_frame): Don't call font_update_drivers if
20489 HAVE_WINDOW_SYSTEM is not defined.
20490
20491 * xfaces.c (merge_face_ref, merge_face_vectors)
20492 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
20493 HAVE_WINDOW_SYSTEM is defined.
20494 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
20495
204962008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
20497
20498 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
20499
205002008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20501
20502 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
20503
205042008-05-15 Kenichi Handa <handa@m17n.org>
20505
20506 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
20507 preference.
20508
205092008-05-15 Glenn Morris <rgm@gnu.org>
20510
20511 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
20512
205132008-05-15 Chong Yidong <cyd@stupidchicken.com>
20514
20515 * fns.c (init_fns): Don't initialize weak_hash_tables here.
20516 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
20517
20518 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
20519
205202008-05-15 Kenichi Handa <handa@m17n.org>
20521
20522 * ftfont.c (ftfont_list): Downcase family name to check generic
20523 families.
20524
20525 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
20526 font-spec for QCfont value.
20527
20528 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
20529 buffer. Check the return value of it.
20530
205312008-05-14 Jason Rumney <jasonr@gnu.org>
20532
20533 * w32term.c (w32_get_glyph_overhangs): Remove.
20534 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
20535
205362008-05-14 Kenichi Handa <handa@m17n.org>
20537
20538 * font.c (font_prop_validate): Make nil a valid value.
20539 (font_clear_cache): Check if the cached vector of entities is nil
20540 or not.
20541
205422008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20543
20544 * emacs.c (main_thread): Conditionalize on
20545 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20546 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
20547
20548 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
20549 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
20550 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20551
205522008-05-14 Kenichi Handa <handa@m17n.org>
20553
20554 * coding.c (detect_coding_iso_2022): Ignore a coding category that
20555 has no corresponding coding system.
20556
205572008-05-14 Jason Rumney <jasonr@gnu.org>
20558
20559 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
20560
20561 * w32font.h (w32font_open_internal): Update declaration.
20562
20563 * w32font.c (w32font_open_internal): Change last argument from
20564 w32font_info struct to font object. Fill in font object from
20565 font_entity. Get Outline metrics if possible. Use them to
20566 calculate underline position and thickness. Use xlfd name as name
20567 property. Don't set codepage.
20568 (w32font_open): Pass font_object to w32font_open_internal. Don't
20569 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
20570 (w32font_draw): Use s->font.
20571 (clear_cached_metrics): Don't clear non-existent blocks.
20572
20573 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
20574 font was not found.
20575 (x_draw_glyph_string): Use underline position and thickness from font.
20576
20577 * w32uniscribe.c (uniscribe_open): Pass font_object to
20578 w32font_open_internal.
20579
205802008-05-14 Kenichi Handa <handa@m17n.org>
20581
20582 These changes are to delete all legacy font-handling codes, and
20583 make Emacs use only font-backends.
20584
20585 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
20586 (frame.o, image.o, print.o): Depend on $(FONTSRC).
20587
20588 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
20589
20590 * charset.h (Vcharset_non_preferred_head)
20591 (Vcurrent_iso639_language): Extern them.
20592
20593 * charset.c (Vcharset_non_preferred_head): New variable.
20594 (Vcurrent_iso639_language): New variable.
20595 (syms_of_charset): Declare it as a Lisp variable.
20596 (char_charset): Don't check non preferred charsets. As a last
20597 resort, return charset_unicode.
20598 (Fset_charset_priority): Update Vcharset_non_preferred_head.
20599
20600 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
20601 conditionals. Don't check enable_font_backend. Delete all codes
20602 used only when USE_FONT_BACKEND is not defined.
20603
20604 * dispextern.h (struct glyph_string): Change type of `font' to
20605 `struct font *'.
20606 (struct glyph_string): New member underline_position and
20607 underline_thickness.
20608 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
20609 (struct face): Change type of `font' to `struct font *'.
20610 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
20611 (per_char_metric, encode_char): Delete externs.
20612 (calc_pixel_width_or_height): Adjust the prototype.
20613
20614 * emacs.c (enable_font_backend): Delete extern.
20615 (main): Don't set enable_font_backend. Don't check the command
20616 line argument "-disable-font-backend".
20617
20618 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
20619 (enum font_property_index): New members FONT_DPI_INDEX,
20620 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
20621 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
20622 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
20623 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
20624 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
20625 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
20626 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
20627 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
20628 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 20629 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
20630 (struct font): Many members from old "struct font_info" moved to
20631 here. Members font and entity deleted.
20632 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
20633 the new font-related objects.
20634 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
20635 (CHECK_FONT_GET_OBJECT): Likewise.
20636 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 20637 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
20638 (struct font_driver): New members case_sensitive anc check.
20639 Type of the member list and open changed.
aac0c6e3
MR
20640 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
20641 (font_symbolic_width, font_find_object, font_get_spec)
20642 (font_set_lface_from_name): Delete extern.
20643 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
20644
20645 * font.c: Include <strings.h>.
20646 (enable_font_backend): Delete it.
20647 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
20648 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 20649 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
20650 (null_string): Delete it.
20651 (null_vector): Make it static.
20652 (font_family_alist): Delete it.
20653 (Qnormal): Extern it.
20654 (QCextra, QClanguage): Delete it.
20655 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
20656 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 20657 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 20658 the string. Callers changed.
bba3e508 20659 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
20660 objects.
20661 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
20662 (font_style_to_value, font_style_symbolic): New function.
20663 (build_font_family_alist): Delete it.
20664 (font_registry_charsets): Use Fassoc_string instead of
20665 assq_no_quit.
20666 (font_prop_validate_symbol): Don't return null_string.
bba3e508 20667 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
20668 style-related values in a font vector.
20669 (font_property_table): Delete entries for QClanguage and
20670 QCantialias, add entries for QCavgwidth.
20671 (get_font_prop_index): Delete the 2nd argument FROM.
20672 (font_prop_validate): Arguments changed.
bba3e508 20673 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
20674 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
20675 (font_parse_fcname, font_unparse_fcname)
20676 (font_prepare_composition): Likewise.
ef1b0ba7 20677 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 20678 (otf_open): Delete the 1st arg entity.
bba3e508 20679 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
20680 (font_score): New arg alternate_families. Adjusted for the change
20681 of font-related objects.
20682 (font_sort_entites): New arg best_only.
20683 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
20684 Delete them.
20685 (font_match_p): Check alternate families.
20686 (font_find_object): Delete it.
20687 (font_check_object): New function.
bba3e508 20688 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
20689 (font_delete_unmatched): New arg.
20690 (font_list_entities): Call font_driver->list with a spec that
20691 doesn't specify style-related properties.
20692 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 20693 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
20694 (font_close_object, font_has_char, font_encode_char)
20695 (font_get_name, font_get_spec): Likewise.
20696 (font_spec_from_name, font_clear_prop, font_update_lface):
20697 New functions.
20698 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
20699 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 20700 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
20701 (font_range): New function.
20702 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 20703 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 20704 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 20705 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
20706 (Finternal_set_font_style_table): Arguments changed.
20707 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 20708 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
20709 change of font-related objects.
20710 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
20711
20712 * fontset.h (struct font_info): Delete it. Most members go to
20713 struct font.
ef1b0ba7 20714 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
20715 (enum FONT_SPEC_INDEX): Delete it.
20716 (font_info, list_fonts_func, load_font_func, query_font_func)
20717 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
20718 (get_font_repertory_func, new_fontset_from_font_name):
20719 Delete externs.
aac0c6e3
MR
20720 (fontset_from_font_name): Extern it.
20721 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
20722 (FONT_INFO_FROM_FACE): Deleted.
20723 (face_for_font): Adjust prototype.
20724
20725 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
20726 conditionals. Don't check enable_font_backend. Delete all codes
20727 used only when USE_FONT_BACKEND is not defined.
20728 (get_font_info_func, list_font_func, load_font_func)
20729 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
20730 (get_font_repertory_func): Delete them.
20731 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
20732 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
20733 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
20734 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
20735 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
20736 (fontset_compare_rfontdef): New function.
20737 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
20738 rfont-defs by qsort. Adjusted for the change of font-group vector.
20739 (load_font_get_repertory): Deleted.
20740 (fontset_find_font): Use new macros to ref/set elements of
20741 font-def and rfont-def.
20742 (fontset_font): Fix the timing of remembering that no font for C.
20743 (free_face_fontset): Do nothing if the face has no fontset.
20744 (face_suitable_for_char_p): Use new macros to ref/set elements of
20745 rfont-def.
20746 (face_for_char): Likewise. Call face_for_char with font_object.
20747 (fs_load_font): Delete. Delete #pragma surrounding it.
20748 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 20749 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
20750 font-spec.
20751 (Fset_fontset_font): Likewise. Use new macros to set elements of
20752 font-def.
20753 (Fnew_fontset): Use font_unparse_xlfd to generate
20754 FONTSET_ASCII (fontset).
20755 (new_fontset_from_font_name): Deleted.
ef1b0ba7 20756 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
20757 a fontset is already created for the font. FIx updating of
20758 Vfontset_alias_alist.
20759 (fontset_ascii_font): Deleted.
bba3e508 20760 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
20761 (Finternal_char_font): Likewise.
20762 (Ffontset_info): Likewise.
20763 (syms_of_fontset): Don't check load_font_func.
20764
20765 * fns.c (internal_equal): Handle PREV_FONT.
20766
20767 * frame.h: Delete USE_FONT_BACKEND conditional.
20768
20769 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
20770 conditionals. Don't check enable_font_backend. Delete all codes
20771 used only when USE_FONT_BACKEND is not defined.
20772 (x_set_font): Call x_new_font, not x_new_fontset2.
20773 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
20774 already set for the frame.
20775
bba3e508
SM
20776 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
20777 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
20778 of intern_downcase. Use FONT_SET_STYLE to set a style-related
20779 font property. If a font is scalable, set avgwidth property to 0.
20780 Set font-entity property by font_put_extra.
20781 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 20782 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
20783 (ftfont_spec_pattern): New function.
20784 (ftfont_list): Return a list, not vector.
20785 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
20786 (ftfont_list_family): Don't downcase names.
20787 (ftfont_free_entity): Deleted.
20788 (ftfont_open): Return a font-object. Adjusted for the change of
20789 struct font. Get underline_thickness and underline_position from
20790 font property. Don't update dpyinfo->smallest_font_height and
20791 dpyinfo->smallest_char_width.
20792 (ftfont_close): Don't free `struct font'.
bba3e508 20793 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
20794 (ftfont_encode_char, ftfont_text_extents): Likewise.
20795
20796 * ftxfont.c (ftxfont_list): Return a list, not vector.
20797 (ftxfont_open): Return a font-object. Adjusted for the change of
20798 struct font. Get underline_thickness and underline_position from
20799 font property. Don't update dpyinfo->smallest_font_height and
20800 dpyinfo->smallest_char_width.
20801 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 20802 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 20803
bba3e508
SM
20804 * image.c (image_ascent): Don't include "charset.h".
20805 Include "character.h" and "font.h".
aac0c6e3
MR
20806
20807 * lisp.h (enum pvec_type): New member PREV_FONT.
20808 (Fassoc_string): EXFUN it.
20809
20810 * print.c: Include font.h.
20811 (print_object): Handle font-related objects.
20812
20813 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
20814 conditionals. Don't check enable_font_backend. Delete all codes
20815 used only when USE_FONT_BACKEND is not defined.
20816 (handle_auto_composed_prop): Do nothing if it->f is not on a
20817 window system. Check how many following characters can be
20818 displayed by the same font.
20819 (calc_pixel_width_or_height): Type of the 4th arg is changed to
20820 'struct font *'.
20821 (get_char_face_and_encoding): Assign the whole encoding task to
20822 the `encode-char' method of a font driver.
bba3e508 20823 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
20824 face' and `struct glyph_string'.
20825 (fill_glyph_string): Likewise.
20826 (get_per_char_metric): Arguments changed.
bba3e508 20827 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
20828 and `struct glyph_string'.
20829 (produce_stretch_glyph, calc_line_height_property)
20830 (x_produce_glyphs): Likewise.
20831
20832 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
20833 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
20834 used only when USE_FONT_BACKEND is not defined.
20835 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
20836 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
20837 (Qp): Extern them.
20838 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
20839 Deleted.
20840 (struct font_name): Deleted.
20841 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
20842 (compare_fonts_by_sort_order): New function.
20843 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
20844 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
20845 Deleted.
20846 (Fx_family_fonts): Use font_list_entities, and sort fonts by
20847 compare_fonts_by_sort_order.
20848 (Fx_font_family_list): Call Ffont_family_list.
20849 (face_numeric_value, face_numeric_weight, face_numeric_slant)
20850 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
20851 (face_symbolic_slant, face_symbolic_swidth)
20852 (split_font_name_into_vector, build_font_name_from_vector)
20853 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
20854 (font_rescale_ratio, split_font_name, build_font_name)
20855 (free_font_names, sort_fonts, x_face_list_fonts)
20856 (face_font_available_p, sorted_font_list, cmp_font_names)
20857 (font_list_1, concat_font_list, font_list, remove_duplicates):
20858 Deleted.
20859 (Fx_list_fonts): Use Ffont_list.
20860 (LFACE_AVGWIDTH): Deleted.
20861 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
20862 by FONTP.
20863 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
20864 (set_lface_from_font_name): Delete it.
ef1b0ba7 20865 (set_lface_from_font): Rename from
aac0c6e3
MR
20866 set_lface_from_font_and_fontset. Caller changed. Don't set
20867 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
20868 for face.
20869 (merge_face_vectors): Copy font-spec if necessary.
20870 Clear properties of the font-spec if necessary.
20871 (merge_face_ref): Clear properties of the font-spec if necessary.
20872 (Finternal_set_lisp_face_attribute): Likewise.
20873 (set_font_frame_param): Use font_load_for_lface to load a
20874 font-object, and call Fmodify_frame_parameters with it.
20875 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
20876 font name by Ffont_xlfd_name.
20877 (Finternal_lisp_face_attribute_values): Don't check QCweight,
20878 QCslant, and QCwidth.
20879 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
20880 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
20881 Compare fonts by EQ.
20882 (lookup_non_ascii_face): Deleted.
20883 (face_for_font): The 2nd argument changed.
20884 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
20885 Check atomic font properties by case insensitive.
20886 (realize_non_ascii_face): Set face->overstrike correctly.
20887 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
20888 (dump_realized_face): Get font name from
20889 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
20890
20891 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
20892 conditionals. Don't check enable_font_backend. Delete all codes
20893 used only when USE_FONT_BACKEND is not defined.
20894 (xic_create_xfontset): Original code deleted and renamed from
20895 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
20896 (x_make_gc): Don't set GCFont in GCs.
20897 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
20898 opened by "fixed".
20899 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
20900 find_ccl_program_func, query_font_func, set_frame_fontset_func,
20901 get_font_repertory_func.
20902
20903 * xfont.c: Include <stdlib.h> and "ccl.h".
20904 (struct xfont_info): New structure.
20905 (xfont_query_font): Deleted.
ef1b0ba7 20906 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 20907 moved from xterm.c.
bba3e508 20908 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 20909 (compare_font_names): New function.
ef1b0ba7
SM
20910 (xfont_list_pattern): Sort font names case insensitively.
20911 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
20912 (xfont_list): Return a list, not vector.
20913 (xfont_match): If the font doesn't have QCname property, generate
20914 a name from the other font properties.
20915 (xfont_open): Return a font-object. Adjusted for the change of
20916 struct font. Get underline_thickness and underline_position from
20917 font property. Don't update dpyinfo->smallest_font_height and
20918 dpyinfo->smallest_char_width.
20919 (xfont_close): Don't free struct font.
bba3e508 20920 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 20921 (xfont_done_face): Deleted.
bba3e508 20922 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
20923 (xfont_encode_char, xfont_draw): Likewise.
20924 (xfont_check): New function.
20925
bba3e508 20926 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 20927 callback function.
bba3e508
SM
20928 (xftfont_match): Adjust for the format change of font-entity.
20929 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
20930 font-object. Adjusted for the change of struct font. Return a
20931 font-object. Don't update dpyinfo->smallest_font_height and
20932 dpyinfo->smallest_char_width.
20933 (xftfont_close): Block input while calling XftFontClose.
20934 (xftfont_prepare_face): Don't block input while calling
20935 xftfont_get_colors. Adjusted for the change of struct font.
20936 (xftfont_shape): Return value of error case fixed.
20937
20938 * xrdb.c (x_load_resources): Don't setup a fontset resource.
20939
20940 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
20941 conditionals.
20942 (FONT_WIDTH): Return (f)->max_width.
20943 (struct x_display_info): Delete member `font'.
20944 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
20945 (x_find_ccl_program, x_get_font_repertory): Delete externs.
20946 (struct x_output): Change type of `font' to `struct font *'.
20947
20948 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
20949 conditionals. Don't check enable_font_backend. Delete all codes
20950 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
20951 (x_per_char_metric, x_encode_char): Deleted.
20952 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 20953 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
20954 `struct face'.
20955 (x_draw_glyph_string_foreground)
20956 (x_draw_composite_glyph_string_foreground): Likewise.
20957 (x_draw_glyph_string): Likewise. Use font->underline_position and
20958 font->underline_thickness.
ef1b0ba7 20959 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
20960 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
20961 (x_check_font): Call `check' method of a font driver.
20962 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
20963 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 20964 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 20965 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
20966 redisplay_interface'.
20967
20968 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
20969 conditionals. Don't check enable_font_backend. Delete all codes
20970 used only when USE_FONT_BACKEND is not defined. Surround non-used
20971 code by "#ifdef OLD_FONT" and "endif".
20972 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
20973
20974 * w32font.h (struct w32font_info): New member.
20975 (FONT_COMPAT): New macro.
20976 (w32font_open_internal): Prototype adjusted.
20977
20978 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
20979 OLD_FONT" and "endif".
20980
20981 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
20982 conditionals. Don't check enable_font_backend. Delete all codes
20983 used only when USE_FONT_BACKEND is not defined.
20984 (w32font_open): Return a font-object. Make a font-object by
20985 font_make_object. Adjusted for the change of struct w32font_info.
20986 (w32font_close): Don't free struct font. Adjusted for the change
20987 of struct w32font_info.
20988 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 20989 Adjust for the change of struct w32font_info.
aac0c6e3
MR
20990 (w32font_draw): Likewise.
20991 (w32font_list_internal): Return a list, not vector.
20992 (w32font_open_internal): Change the 4th arg to font-object.
20993 Adjusted for the change of struct w32font_info and font-object format.
20994 (add_font_name_to_list): Don't downcase names.
20995 (w32_enumfont_pattern_entity): Make a font-entity by
20996 font_make_entity. Adjusted for the format change of font-entity.
20997 Use FONT_SET_STYLE to set a style-related font property. If a
20998 font is scalable, set avgwidth property to 0. Set font-entity
20999 property by font_put_extra.
bba3e508 21000 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
21001 (w32_weight_table, w32_decode_weight): New variables.
21002 (w32_encode_weight): New function.
bba3e508 21003 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
21004 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21005 weight value.
bba3e508 21006 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
21007
21008 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21009 conditionals. Don't check enable_font_backend. Surround non-used
21010 code by "#ifdef OLD_FONT" and "endif".
21011 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 21012 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
21013
21014 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21015 conditionals. Don't check enable_font_backend. Delete all codes
21016 used only when USE_FONT_BACKEND is not defined. Surround non-used
21017 code by "#ifdef OLD_FONT" and "endif".
21018
21019 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21020 (uniscribe_open): Return value changed to font-object.
21021 Adjusted for the format change of font-object.
bba3e508 21022 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 21023 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 21024 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
21025 font_driver.
21026
210272008-05-13 Chong Yidong <cyd@stupidchicken.com>
21028
21029 * dispnew.c (update_frame_1): Check if tty output is still valid
21030 before flushing it.
21031
210322008-05-13 Jan Djärv <jan.h.d@swipnet.se>
21033
21034 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
21035 to Gtk+ menus.
21036
210372008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
21038
21039 * dired.c (file_name_completion): Tweak the code so as to always do it
21040 in a single pass. Tighten the scope of some variables.
21041
21042 * dired.c (Qdefault_directory): New var.
21043 (file_name_completion): Use it instead of Fexpand_file_name.
21044 (syms_of_dired): Initialize it.
21045
210462008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
21047
21048 * fileio.c (double_dollars): Remove dead code.
21049
210502008-05-10 Eli Zaretskii <eliz@gnu.org>
21051
21052 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
21053 Mention w32-get-true-file-attributes in doc string.
21054
21055 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
21056
210572008-05-09 Glenn Morris <rgm@gnu.org>
21058
21059 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
21060 2008-04-23.
21061
210622008-05-09 Eli Zaretskii <eliz@gnu.org>
21063
21064 Support for reporting owner and group of each file on MS-Windows:
21065 * dired.c (stat_uname, stat_gname): New functions, with special
21066 implementation for w32.
21067 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
21068
21069 * w32.c: Rename the_passwd_* to dflt_passwd_*.
21070 (dflt_group_name): New static variable.
21071 (dflt_group): Rename from the_group.
21072 (init_user_info): Init dflt_group fields. Get user's group name
21073 from LookupAccountSid.
21074 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
21075 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
21076 New initialization states.
21077 (globals_of_w32): Initialize them to zero. Initialize the default
21078 group name to "None".
21079 (GetFileSecurity_Name): New global var, the name of the function
21080 to call for GetFileSecurity.
21081 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
21082 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
21083 (get_file_security, get_security_descriptor_owner)
21084 (get_security_descriptor_group, is_valid_sid)
21085 (get_file_security_desc, get_rid, get_name_and_id)
21086 (get_file_owner_and_group): New functions.
21087 (stat): Use get_file_security_desc and get_file_owner_and_group to
21088 report the owner and primary group of each file. Don't ignore the
21089 high 32 bits of file's size, now that st_size is 64-bit wide.
21090 Fix test when to get true file attributes.
21091 (init_user_info): Use get_rid instead of equivalent inline code.
21092 (fstat): Don't ignore the high 32 bits of file's size.
21093
210942008-05-09 Chong Yidong <cyd@stupidchicken.com>
21095
21096 * image.c (png_load): Use correct bit-depth for setting background
21097 color.
21098
210992008-05-08 Eli Zaretskii <eliz@gnu.org>
21100
21101 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
21102 epa-hook.elc.
21103
211042008-05-08 Juanma Barranquero <lekktu@gmail.com>
21105
21106 * font.c (Ffont_match_p): Don't use `iff' in docstring.
21107
211082008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
21109
21110 * macfns.c (Fx_create_frame): Make a copy of frame parameters
21111 because the original parameters are in pure storage now.
21112 (mac_window): Remove unused params. Update callers.
21113
211142008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
21115
21116 * lread.c (substitute_object_recurse): Use lower-level primitives.
21117 Don't signal errors when traversing sub-char-tables.
21118 Don't loop over all the possible characters when traversing char-tables.
21119
21120 * print.c (print_preprocess): Add sub-char-tables to the print-table,
21121 just like we do in print.c.
21122
211232008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
21124
21125 * minibuf.c (Ftry_completion): Remove code left over from when we used
21126 scmp instead of Fcompare_strings.
21127
211282008-05-04 Juanma Barranquero <lekktu@gmail.com>
21129
21130 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
21131
211322008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21133
21134 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
21135 Create bitmap context in native byte order.
21136
21137 * macterm.c (XDrawLine)
21138 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
21139 context in native byte order.
21140
211412008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21142
21143 * config.in: Regenerate.
21144
21145 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
21146 New definitions for Image I/O support.
21147 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
21148 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
21149 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21150 (mac_data_provider_release_data, image_load_image_io)
21151 [USE_MAC_IMAGE_IO]: New functions.
21152 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
21153 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
21154 (init_image_func_pointer) [MAC_OSX]: Remove function.
21155 (image_load_quartz2d) [MAC_OSX]: Check availability of
21156 CGImageCreateWithPNGDataProvider at compile time.
21157 Use lowercase `false' for boolean constant.
21158 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
21159 Use image_load_image_io.
21160 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
21161 Don't check MyCGImageCreateWithPNGDataProvider.
21162 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
21163 Don't call init_image_func_pointer.
21164
21165 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
21166
21167 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
21168 Make variable non-static.
21169 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
21170 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21171
21172 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
21173 (RED_FROM_ULONG): Mask off higher bits.
21174 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
21175
21176 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
21177 Include AvailabilityMacros.h.
21178 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
21179 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
21180
211812008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
21182
21183 * chartab.c (Fset_char_table_range): If range is t, really set all
21184 chars to that value.
21185
211862008-05-03 Eli Zaretskii <eliz@gnu.org>
21187
21188 * dired.c (Ffile_attributes): Don't allow the device number become
21189 negative.
21190
211912008-05-02 Daiki Ueno <ueno@unixuser.org>
21192
21193 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
21194
211952008-05-02 Juri Linkov <juri@jurta.org>
21196
21197 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
21198 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
21199 DEFAULT argument as a list of default values in docstrings.
21200
212012008-05-01 Chong Yidong <cyd@stupidchicken.com>
21202
21203 * puresize.h (BASE_PURESIZE): Increase to 1210000.
21204
212052008-05-01 Martin Rudalics <rudalics@gmx.at>
21206
21207 * dispnew.c (change_frame_size_1): Preserve small windows when
21208 shrinking frames by calling set_window_height|width with third
21209 arg 2.
21210
21211 * window.h (struct window): Replace field too_small_ok by field
21212 resize_proportionally.
21213
21214 * window.c (make_window): Initialize resize_proportionally.
21215 (enlarge_window): Temporarily set resize_proportionally to make
21216 sure that shrink_windows does scale the window proportionally.
21217 (shrink_windows): When window has resize_proportionally set try
21218 to shrink it proportionally by stealing from other windows.
21219 (struct saved_window, Fset_window_configuration)
21220 (compare_window_configurations): Handle resize_proportionally.
21221 (WINDOW_TOTAL_SIZE): New macro.
21222 (window_min_size, shrink_windows, size_window): Use it.
21223 (check_min_window_sizes): Remove. Invalid values of
21224 window-min-height|width are handled by window_min_size_2 now.
21225 (size_window, Fsplit_window, enlarge_window)
21226 (adjust_window_trailing_edge, grow_mini_window): Don't call
21227 check_min_window_sizes.
21228 (window_min_size_2, window_min_size_1, window_min_size):
21229 New argument safe_p for retrieving "safe" minimum sizes.
21230 (Fdisplay_buffer, Fsplit_window, enlarge_window)
21231 (adjust_window_trailing_edge, grow_mini_window):
21232 Adjust arguments of window_min_size... functions.
21233 (shrink_windows): Argument min_size removed. New argument
21234 safe_p allows shrinking windows to their safe minimum sizes.
21235 Calculate minimum size and decide whether a window shall be
21236 deleted for each window individually.
21237 (size_window): When nodelete_p equals 2, tell shrink_windows to
21238 delete windows only if their new minimum size is no more safe.
21239 (shrink_window_lowest_first): Call window_min_size_1 to make
21240 sure to preserve modeline of bottom-most window when resizing
21241 the minibuffer.
21242 (Fset_window_configuration, Fcurrent_window_configuration)
21243 (compare_window_configurations): Do not handle
21244 window-min-height|width any more.
21245 (syms_of_window): Clarify window-min-height|width doc-strings.
21246
212472008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
21248
21249 * dired.c (file_name_completion): Fix up the encoding/decoding issue
21250 some more. Copy some of the code from Ftry_completions.
21251 Remove special case code that dates back to initial revision when the
21252 slash was only added when necessary and that can't trigger nowadays.
21253
212542008-04-27 Kenichi Handa <handa@m17n.org>
21255
21256 * font.c (font_prop_validate): Signal `error' instead of `font'.
21257
212582008-04-29 Jason Rumney <jasonr@gnu.org>
21259
21260 * w32fns.c (Fw32_battery_status): New defun.
21261 (syms_of_w32fns): Defsubr it.
21262
212632008-04-28 Andreas Schwab <schwab@suse.de>
21264
21265 * dired.c (file_name_completion): Fix another mixing of encoded
21266 and decoded names.
21267
212682008-04-28 Juanma Barranquero <lekktu@gmail.com>
21269
21270 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
21271
212722008-04-27 Juanma Barranquero <lekktu@gmail.com>
21273
21274 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
21275
212762008-04-27 Andreas Schwab <schwab@suse.de>
21277
21278 * dired.c (file_name_completion): Fix inappropriate mixing of
21279 encoded and decoded names.
21280
21281 * xterm.c (XTread_socket): Fix use of uninitialized variable.
21282
21283 * puresize.h (BASE_PURESIZE): Increase to 1200000.
21284
212852008-04-26 Eli Zaretskii <eliz@gnu.org>
21286
21287 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
21288 2008-03-31, it's not needed anymore with `struct stat' definition
21289 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
21290 for the same reasons.
21291
212922008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
21293
21294 * m/sparc.h: Additional redefinitions for GNU/Linux.
21295
212962008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21297
21298 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
21299 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
21300 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
21301 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
21302 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21303 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
21304 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21305 Likewise.
21306
21307 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
21308 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
21309 (mac_ax_number_of_characters): Add externs.
21310 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21311 [USE_MAC_TSM]: Likewise.
21312 (mac_handle_text_input_event) [MAC_OSX]:
21313 Handle kEventTextInputOffsetToPos for no active input area case.
21314 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21315 (mac_handle_document_access_event)
21316 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
21317 (install_application_handler) [MAC_OSX]: Register handlers for
21318 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21319 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21320 Register mac_handle_document_access_event.
21321
21322 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
21323 Make functions non-static.
21324
213252008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
21326
21327 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
21328 (read_file_name_completion_ignore_case, insert_default_directory)
21329 (Qdefault_directory): Move to minibuffer.el.
21330 (Fread_file_name): Call the new `read-file-name' instead.
21331
213322008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21333
21334 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
21335 Make function non-static.
21336 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
21337 Remove function.
21338 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21339 Move to mactoolbox.c.
21340 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
21341
21342 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
21343 (mac_rect_make): New macro.
21344
21345 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
21346 instead of float.
21347 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21348 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
21349 (XSetBackground) [USE_CG_DRAWING]: Likewise.
21350 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
21351 CGRectMake.
21352 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21353 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
21354 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
21355 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21356 instead of WindowRef in argument type.
21357 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
21358 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
21359 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
21360 instead of DISPLAY. All uses changed.
21361 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
21362 (x_calc_absolute_position): Simplify so as not to use
21363 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
21364
21365 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21366 instead of WindowRef in argument type.
21367 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
21368 [TARGET_API_MAC_CARBON]: Remove externs.
21369 (create_apple_event, mac_event_parameters_to_lisp)
21370 [TARGET_API_MAC_CARBON]: Add externs.
21371
21372 * mactoolbox.c (Vmac_ts_script_language_on_focus)
21373 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
21374 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
21375 is clicked.
21376 (x_activate_menubar): Remove extern for saved_menu_event_location.
21377 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21378 Move from mac.c.
21379
213802008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21381
21382 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
21383 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
21384
213852008-04-23 Jason Rumney <jasonr@gnu.org>
21386
21387 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
21388 attributes only for local files.
21389
21390 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
21391 default to Qlocal.
21392
213932008-04-22 Juri Linkov <juri@jurta.org>
21394
21395 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
21396 read-buffer-to-switch instead of using the letter "B".
21397
213982008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
21399
21400 * fileio.c (Qdefault_directory): New variable.
21401 (Fread_file_name): Use it to pass `dir' to the completion functions.
21402
214032008-04-20 Chong Yidong <cyd@stupidchicken.com>
21404
21405 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
21406
214072008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
21408
21409 * keyboard.c (Vpre_help_message): Remove.
21410 (show_help_echo): Remove default C code.
21411
21412 * dired.c (directory_files_internal, file_name_completion):
21413 Only call ENCODE_FILE if the string is indeed decoded.
21414
214152008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21416
21417 * Makefile.in (TOOLKIT_DEFINES): Remove.
21418 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
21419
214202008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21421
21422 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
21423 (mactoolbox.o): New target.
21424
21425 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
21426 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
21427
21428 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
21429 Use mac_set_frame_window_background instead of XSetWindowBackground.
21430 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
21431 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
21432 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
21433 instead of SetWindowTitleWithCFString.
21434 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
21435 Move function to mactoolbox.c.
21436 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
21437 Use mac_set_window_modified instead of SetWindowModified.
21438 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
21439 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
21440 (Fx_focus_frame): Use mac_front_non_floating_window instead of
21441 FrontNonFloatingWindow. Use mac_activate_window instead of
21442 ActivateWindow. Use mac_active_non_floating_window instead of
21443 ActiveNonFloatingWindow.
21444 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
21445 Use mac_show_hourglass and mac_hide_hourglass.
21446 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
21447 instead of GetGlobalMouse.
21448 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
21449 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
21450 Use mac_bring_window_to_front instead of BringToFront.
21451 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
21452 mactoolbox.c.
21453 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
21454 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
21455 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
21456 mactoolbox.c.
21457
21458 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
21459 (XtPointer): Move typedef from macmenu.c.
21460 (enum button_type): Move enum from macmenu.c.
21461 (widget_value): Move typedef from macmenu.c.
21462 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
21463 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21464 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21465 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21466 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21467 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21468 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21469 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
21470 (Selection): Move typedef from macselect.c.
21471 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
21472 macterm.c.
21473 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
21474 (mac_is_window_collapsed, mac_bring_window_to_front)
21475 (mac_send_window_behind, mac_hide_window, mac_show_window)
21476 (mac_collapse_window, mac_front_non_floating_window)
21477 (mac_active_non_floating_window, mac_activate_window)
21478 (mac_move_window_structure, mac_move_window, mac_size_window)
21479 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
21480
21481 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
21482 (enum mac_menu_kind): Move enum to mactoolbox.c.
21483 (min_menu_id): Move variable to mactoolbox.c.
21484 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
21485 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
21486 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21487 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21488 [TARGET_API_MAC_CARBON]: Likewise.
21489 (XtPointer): Move typedef to macgui.h.
21490 (enum button_type): Move enum to macgui.h.
21491 (widget_value): Move typedef to macgui.h.
21492 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21493 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21494 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21495 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21496 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21497 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21498 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
21499 (popup_activated_flag): Make variable non-static.
21500 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
21501 (add_menu_item, fill_menu, dispose_menus):
21502 Move functions to mactoolbox.c.
21503 (restore_show_help_function, menu_target_item_handler)
21504 (install_menu_target_item_handler, mac_handle_dialog_event)
21505 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
21506 [TARGET_API_MAC_CARBON]: Likewise.
21507 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
21508 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21509 (find_and_call_menu_selection, name_is_separator): Make function
21510 non-static.
21511 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
21512 to mactoolbox.c.
21513 (set_frame_menubar): Don't call install_menu_quit_handler.
21514 (menu_item_selection): New variable.
21515 (mac_menu_show): Use create_and_show_popup_menu.
21516 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
21517 selection but set variable menu_item_selection. All uses changed.
21518 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
21519 Call install_menu_quit_handler. Move to mactoolbox.c.
21520
21521 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
21522 (Selection): Move typedef to macgui.h.
21523 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
21524 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
21525 Make variables non-static.
21526 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21527 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
21528 Make functions non-static.
21529 (Vmac_service_selection) [MAC_OSX]: Likewise.
21530 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
21531 (mac_valid_selection_target_p, mac_clear_selection)
21532 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21533 (mac_put_selection_value, mac_selection_has_target_p)
21534 (mac_get_selection_value, mac_get_selection_target_list)
21535 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
21536 Move functions to mactoolbox.c.
21537 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
21538 Likewise.
21539 (copy_scrap_flavor_data, mac_handle_service_event)
21540 (install_service_handler) [MAC_OSX]: Likewise.
21541 (syms_of_macselect) <Vmac_dnd_known_types>:
21542 Use mac_dnd_default_known_types.
21543
21544 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
21545 Move to mactoolbox.c.
21546 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
21547 (Fx_selection_owner_p): Add EXFUN.
21548 (install_window_handler, remove_window_handler, XSetWindowBackground):
21549 Remove externs.
21550 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
21551 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
21552 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
21553 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
21554 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
21555 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
21556 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
21557 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
21558 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
21559 (create_and_show_popup_menu, mac_get_selection_from_symbol)
21560 (mac_valid_selection_target_p, mac_clear_selection)
21561 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21562 (mac_put_selection_value, mac_selection_has_target_p)
21563 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
21564 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
21565 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
21566 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21567 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
21568 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21569 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
21570 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21571 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21572
21573 * mactoolbox.c: New file.
21574
215752008-04-18 Jason Rumney <jasonr@gnu.org>
21576
21577 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
21578
215792008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21580
21581 * character.c (Fmultibyte_char_to_unibyte):
21582 Return latin1 chars unchanged.
21583
21584 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
21585 relocated if it points to `name'.
21586
215872008-04-17 Kenichi Handa <handa@m17n.org>
21588
21589 * data.c (Faset): Allow setting a multibyte character in an
21590 ASCII-only unibyte string.
21591
21592 * lisp.h (STRING_SET_MULTIBYTE): New macro.
21593
215942008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
21595
21596 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
21597 done in config.h.
21598
215992008-04-16 Juanma Barranquero <lekktu@gmail.com>
21600
21601 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
21602 (Fchar_direction): Add usage in the docstring.
21603
216042008-04-15 Chong Yidong <cyd@stupidchicken.com>
21605
21606 * keyboard.c (read_key_sequence): Remove always-true checks.
21607
216082008-04-14 Jason Rumney <jasonr@gnu.org>
21609
21610 * w32font.c (w32font_open_internal): Set max_bounds.descent in
21611 compatibility struct, for better underline positioning.
21612
216132008-04-13 David Hansen <david.hansen@gmx.net>
21614
21615 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
21616 string.
21617
216182008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
21619
21620 * m/hp800.h (XUINT, XSET): Remove.
21621
216222008-04-12 Juanma Barranquero <lekktu@gmail.com>
21623
21624 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
21625 previous change.
21626
216272008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
21628
21629 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
21630 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
21631
216322008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21633
21634 * keymap.h (map_keymap_canonical): Declare.
21635 * xmenu.c (single_keymap_panes): Use it.
21636
216372008-04-11 Glenn Morris <rgm@gnu.org>
21638
21639 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
21640 set the target's value to that of the alias.
21641
216422008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21643
21644 * term.c (set_tty_color_mode): Left over typo.
21645
216462008-04-10 Michael Albinus <michael.albinus@gmx.de>
21647
21648 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
21649 only after check for file name handler functions. Signal, when
21650 native functionality is not supported.
21651 (syms_of_fileio): Declare it unconditionally.
21652
216532008-04-10 Jason Rumney <jasonr@gnu.org>
21654
21655 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
21656 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
21657
21658 * w32.c (logon_network_drive): Also logon to remote drives that
21659 are mapped to drive letters.
21660
216612008-04-10 Glenn Morris <rgm@gnu.org>
21662
21663 * xdisp.c (truncate-partial-width-windows): Doc fix.
21664
216652008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
21666
21667 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
21668 Move functions to minibuffer.el.
21669 (syms_of_fileio): Don't declare them.
21670
216712008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
21672
21673 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
21674 (syms_of_minibuf): Remove its initialization.
21675
21676 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
21677
216782008-04-09 Juanma Barranquero <lekktu@gmail.com>
21679
21680 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
21681
216822008-04-09 Jason Rumney <jasonr@gnu.org>
21683
21684 * makefile.w32-in (distclean): Delete makefile too.
21685 (maintainer-clean): New target.
21686
21687 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
21688
21689 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
21690 for new font backend and composite cases.
21691
216922008-04-09 Jan Djärv <jan.h.d@swipnet.se>
21693
21694 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
21695 Most of the code moved to run_timers.
21696 (do_pending_atimers): Call run_timers.
21697 (run_timers): New function.
21698
21699 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
21700 run atimers.
21701
21702 * process.c (wait_reading_process_output): The same as above.
21703
217042008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
21705
21706 * minibuf.c (last_exact_completion): Remove variable.
21707 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
21708 (complete_and_exit_1, complete_and_exit_2)
21709 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
21710 (Fdisplay_completion_list, display_completion_list_1)
21711 (Fminibuffer_completion_help, Fself_insert_and_exit)
21712 (Fexit_minibuffer, Fminibuffer_message): Move functions to
21713 minibuffer.el.
21714 (syms_of_minibuf): Remove corresponding initializations.
21715
21716 * keyboard.c (Qdeactivate_mark): New var.
21717 (command_loop_1): Use it to call `deactivate-mark'.
21718 (syms_of_keyboard): Initialize it.
21719
21720 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
21721 to another frame.
21722 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
21723 Don't call set_tty_color_mode.
21724 (store_frame_param): Reset previous_frame rather than call
21725 set_tty_color_mode.
21726 * term.c (set_tty_color_mode): Rewrite.
21727 * dispextern.h (set_tty_color_mode): New type.
21728 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
21729
217302008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
21731
21732 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
21733 for generic chars, which do not exist any more in emacs-unicode.
21734
217352008-04-08 Michael Albinus <michael.albinus@gmx.de>
21736
21737 * coding.c (detect_coding_emacs_mule)
21738 (Ffind_operation_coding_system): Fix typo.
21739
217402008-04-08 Jason Rumney <jasonr@gnu.org>
21741
21742 * w32uniscribe.c (SNAME): Extract only symbol name.
21743
21744 * w32font.h (struct w32_metric_cache): New struct.
21745 (w32font_info): Use it.
21746 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
21747 (CACHE_BLOCKSIZE): New constants.
21748
21749 * w32font.c (Qja, Qko, Qzh): New symbols.
21750 (syms_of_w32font): Initialise them.
21751 (font_matches_spec): Use them to filter by language.
21752 (recompute_cached_metrics): Remove function.
21753 (compute_metrics, clear_cached_metrics): New functions.
21754 (w32font_encode_char): Use them to manage metric cache.
21755 (w32font_text_extents): Cache metrics for all glyphs on demand.
21756 Delay converting glyph indices to WORD until needed.
21757 (w32font_open_internal): Initialize metric cache to empty.
21758 (registry_to_w32_charset): Charset should always be a symbol.
21759 (fill_in_logfont, list_all_matching_fonts): Family should
21760 always be a symbol.
21761
217622008-04-06 Jason Rumney <jasonr@gnu.org>
21763
21764 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
21765 Give up if glyph indices not supported. Use uniscribe obtained
21766 ABC widths for individual metrics. Map glyph clusters back to
21767 characters using fClusterStart flag. Return number of glyphs
21768 produced, not chars processed.
21769 (uniscribe_shape): Map char at FROM to current glyph.
21770
217712008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21772
21773 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
21774 Use SetMenuItemHierarchicalMenu.
21775
217762008-04-05 Jason Rumney <jasonr@gnu.org>
21777
21778 * image.c (pbm_load): Allow color values up to 65535.
21779 Throw an error if max_color_idx is outside the supported range.
21780 Report an error when image size is invalid.
21781 Read two bytes at a time when raw images have max_color_idx above 255.
21782
aac0c6e3
MR
217832008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
21784
21785 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
21786 append "CCL: Quitted" when the CCL program is quitted.
21787 (setup_ccl_program): Initialize ccl->quit_silently to zero.
21788
21789 * ccl.h (struct ccl_program): New member quit_silently.
21790
217912008-04-05 Chong Yidong <cyd@stupidchicken.com>
21792
21793 * search.c (compile_pattern_1): Treat non-nil and non-string of
21794 search-spaces-regexp as nil.
21795
21796 * minibuf.c (Fassoc_string): Tweak docstring.
21797
217982008-04-05 Eli Zaretskii <eliz@gnu.org>
21799
21800 * dired.c (Ffile_attributes): Support inode numbers wider than 32
21801 bits. Remove ugly WINDOWSNT-specific kludge introduced on
21802 2008-03-14 to force inode be positive.
21803
21804 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
21805 _S_* ones, since we now use our own sys/stat.h.
21806 (stat, fstat): Don't mangle the inode number.
21807 (init_user_info): Don't restrict UID and GID to 0-60000 range.
21808
218092008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
21810
21811 * frame.h (struct frame): Give one more bit to `visible' since we use
21812 values larger than 1 to indicate obscured frames on ttys.
21813
21814 * keymap.c (Qkeymap_canonicalize): New var.
21815 (Fmap_keymap_internal): New fun.
21816 (describe_map): Use keymap-canonicalize.
21817
21818 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
21819 (Fundo_boundary): Set them.
21820 (syms_of_undo): Initialize them.
21821 (record_point): Use them instead of last_point_position*.
21822 (last_undo_buffer): Change type.
21823
218242008-04-04 Jason Rumney <jasonr@gnu.org>
21825
21826 * w32font.c (w32font_text_extents): Use font's ascent and descent.
21827 (recompute_cached_metrics): Don't set ascent and descent per char.
21828
21829 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
21830 (uniscribe_check_otf): Add GC protection before consing.
21831 Rearrange loop for counting features.
21832
218332008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
21834
21835 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
21836 buffer with byte-size of source buffer.
21837
218382008-04-03 Chong Yidong <cyd@stupidchicken.com>
21839
21840 * callint.c (Fcall_interactively): Handle temporary region even
21841 when shift-select-mode is off.
21842
218432008-04-03 Jason Rumney <jasonr@gnu.org>
21844
21845 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
21846
218472008-04-03 Kenichi Handa <handa@m17n.org>
21848
21849 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
21850 (CATEGORY_MASK_UTF_16): Likewise.
21851 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
21852 binary file.
21853 (detect_coding): Add null-byte detection for a binary file.
21854 (detect_coding_system): Likewise.
21855
218562008-04-03 Jason Rumney <jasonr@gnu.org>
21857
21858 * w32uniscribe.c: New file.
21859
21860 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
21861
21862 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
21863
21864 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
21865 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
21866 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
21867 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
21868 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
21869 (Qphonetic): New symbols.
21870 (syms_of_w32font): Initialize them.
21871 (font_supported_scripts): Use them.
21872 (w32font_list_family): List all charsets.
21873 (w32font_text_extents, recompute_cached_metrics): Fix metric
21874 calculations.
21875 (w32_enumfont_pattern_entity): Make full_type a DWORD.
21876 Give opentype fonts their own format.
21877 (font_matches_spec): New arguments backend and logfont.
21878 Handle :otf spec for uniscribe backend.
21879 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
21880 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
21881
21882 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
21883 font backend.
21884 (globals_of_w32fns): Initialize uniscribe font backend.
21885
21886 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
21887 dependencies.
21888 (w32uniscribe.$(O)): New file to build.
21889 (FONT_OBJ): Include w32uniscribe.$(O).
21890 (LIBS): Add uniscribe libraries.
21891
21892 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
21893
218942008-04-02 Chong Yidong <cyd@stupidchicken.com>
21895
21896 * callint.c (Vshift_select_mode): New var.
21897 (Finteractive): Document new ^ spec.
21898 (Fcall_interactively): Call handle-shift-selection if the ^ spec
21899 is present.
21900
21901 * keyboard.c (Vthis_command_keys_shift_translated): New var.
21902 (command_loop_1): Avoid running the direct display versions of
21903 forward-char and backward-char if shift-selection may occur.
21904 (read_key_sequence): Set Vthis_command_keys_shift_translated if
21905 shift-translation takes place.
21906
21907 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
21908 avoid clobbering by define-minor-mode.
21909
21910 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
21911 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
21912
21913 * syntax.c (Fforward_word): Add ^ interactive spec.
21914
21915 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
21916 (Fscroll_right): Add ^ interactive spec.
21917
219182008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
21919
21920 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
21921
21922 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
21923
21924 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
21925
219262008-03-31 Juri Linkov <juri@jurta.org>
21927
21928 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
21929
219302008-03-30 Jan Djärv <jan.h.d@swipnet.se>
21931
21932 * gtkutil.c (xg_set_geometry): Fix indentation.
21933 (xg_resize_outer_widget): Remove.
21934 (x_wm_size_hint_off): Fix indentation.
21935 (xg_frame_set_char_size): Call flush_and_sync after
21936 gtk_window_resize.
21937 (x_wm_set_size_hint): Pass NULL as geometry window to
21938 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
21939 Add menu bar and tool bar height to base height.
21940 (xg_update_frame_menubar, free_frame_menubar)
21941 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
21942 (update_frame_tool_bar, free_frame_tool_bar):
21943 Change xg_resize_outer_widget to xg_frame_set_char_size.
21944
219452008-03-30 Michael Albinus <michael.albinus@gmx.de>
21946
21947 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
21948 (Fdbus_call_method): New parameter TIMEOUT.
21949 (dbus-send-signal): Optimize UNGCPRO call.
21950
219512008-03-29 Juri Linkov <juri@jurta.org>
21952
21953 * window.c (Fdisplay_buffer): Move call to
21954 Vsplit_window_preferred_function out of conditions that check
21955 if window is eligible for vertical splitting.
21956 When Vsplit_window_preferred_function is non-nil, call it and use
21957 its non-nil return value as window. Otherwise, continue doing
21958 vertical splitting using Fsplit_window with arg horflag=nil.
21959 (syms_of_window) <Vsplit_window_preferred_function>: Change the
21960 default value from `split-window' to nil.
21961
219622008-03-29 Juri Linkov <juri@jurta.org>
21963
21964 * callint.c (Fcall_interactively): Revert 2008-03-16 change
21965 for interactive code letters 'b' and 'B'.
21966
219672008-03-29 Eli Zaretskii <eliz@gnu.org>
21968
21969 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
21970 multibyte string.
21971
219722008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
21973
21974 * keyboard.c (pending_funcalls): New var.
21975 (timer_check): Run it.
21976 (syms_of_keyboard): Initialize it.
21977 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
21978 (Vdelete_terminal_functions): New vars.
21979 (syms_of_terminal): Initialize them.
21980 (Fdelete_terminal): Run delete-terminal-functions.
21981 * xdisp.c (safe_eval): Rewrite.
21982 (safe_call2): New fun.
21983 * frame.c (Qdelete_frame_functions): New var.
21984 (syms_of_frame): Initialize it.
21985 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
21986 * lisp.h (safe_call2, pending_funcalls): Declare.
21987
219882008-03-28 Andreas Schwab <schwab@suse.de>
21989
21990 * indent.c (Fmove_to_column): Move declaration before statements.
21991
219922008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
21993
21994 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
21995 (struct frame): Use bit fields for boolean vars.
21996
21997 * process.c (server_accept_connection): Simplify naming.
21998 (emacs_get_tty_pgrp): Use SDATA.
21999
22000 * coding.c (decode_coding_object): Fix last change.
22001
220022008-03-27 Jason Rumney <jasonr@gnu.org>
22003
22004 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22005
220062008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
22007
22008 * charset.c (Fdefine_charset_internal): Change the way of
22009 registering charsets in Vcharset_order_list.
22010 (syms_of_charset): Make the charset `eight-bit' supplementary.
22011
220122008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
22013
22014 * regex.c (EXTEND_BUFFER): Change order of pointer addition
22015 operations, to avoid having the difference between pointers
22016 overflow.
22017
220182008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
22019
22020 * indent.c (check_display_width): New fun.
22021 (scan_for_column): Use it.
22022
22023 * data.c (syms_of_data): Mark most-positive-fixnum and
22024 most-negative-fixnum as constants.
22025
22026 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
22027
22028 * indent.c (scan_for_column): Extract from current_column_1.
22029 Merge with the same code from Fmove_to_column.
22030 (current_column_1, Fmove_to_column): Use it.
22031
220322008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
22033
22034 * keymap.c (map_keymap_internal): New fun.
22035 (map_keymap): Use it.
22036 (Fmap_keymap_internal): New fun.
22037 (Fmap_keymap): Remove left-out test from before make_save_value.
22038
22039 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
22040
22041 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
22042 Use XCAR/XCDR.
22043
22044 * process.h (struct Lisp_Process): Remove filter_multibyte.
22045 * process.c (QCfilter_multibyte): Remove.
22046 (setup_process_coding_systems): Don't use filter_multibyte.
22047 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
22048 (read_process_output): Don't adjust multibyteness to filter_multibyte.
22049 (Fset_process_filter_multibyte): Change the coding-system to
22050 approximate the previous behavior.
22051 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
22052 coding-system.
22053
22054 * coding.c (decode_coding_object): When not decoding into a buffer,
22055 obey the coding system's preference of (uni|multi)byte.
22056
220572008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
22058
22059 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
22060 every char is changed and has a different byte-length.
22061 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
22062 Fix int -> EMACS_INT.
22063
220642008-03-23 David Hansen <david.hansen@gmx.net>
22065
22066 * dbusbind.c (xd_read_message): Remove extra copying of message
22067 strings. Check for NULL `interface' or `member'.
22068
220692008-03-22 Eli Zaretskii <eliz@gnu.org>
22070
22071 * w32.c (readdir): If FindFirstFile/FindNextFile return in
22072 cFileName a file name that includes `?' characters, use the 8+3
22073 alias in cAlternateFileName instead.
22074
220752008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
22076
22077 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
22078
220792008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22080
22081 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
22082 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
22083 work on current_buffer only instead (that was already the case
22084 for some of the code anyway).
22085 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
22086 (temp_set_point, temp_set_point_both): Use EMACS_INT.
22087 (SET_PT, SET_PT_BOTH): Adjust.
22088 * intervals.h (set_point, temp_set_point, set_point_both)
22089 (temp_set_point_both): Remove redundant declarations.
22090
220912008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22092
22093 * fileio.c (Finsert_file_contents):
22094 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
22095 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
22096 when buffer != current_buffer anyway.
22097
220982008-03-20 Andreas Schwab <schwab@suse.de>
22099
22100 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
22101 as default.
22102
221032008-03-19 Jason Rumney <jasonr@gnu.org>
22104
22105 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
22106 (syms_of_w32fns): Initialize them.
22107 (HOURGLASS_ID): New constant.
22108 (x_window_to_frame): Don't check hourglass_window.
22109 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
22110 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
22111 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
22112 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
22113 Only change the cursor if hourglass is not active.
22114 (Fx_create_frame): Initialize frame's current_cursor.
22115 (hourglass_atimer): Remove.
22116 (hourglass_started): New function.
22117 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
22118 (show_hourglass): Adapt to w32, changing argument to frame.
22119
22120 * w32term.h (struct w32_output): Remove hourglass_window.
22121 Add current_cursor.
22122
22123 * eval.c (call_debugger, Fsignal):
22124 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
22125 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
22126 (Fexecute_extended_command, cancel_hourglass_unwind):
22127 * minibuf.c (read_minibuf):
22128 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
22129
221302008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
22131
22132 * window.c (run_funs): New fun.
22133 (run_window_configuration_change_hook): Use it to run the buffer-local
22134 and the global part of the hook.
22135
22136 * xdisp.c (format_mode_line_unwind_data): Add window argument.
22137 (unwind_format_mode_line): Restore selected window.
22138 (x_consider_frame_title, Fformat_mode_line): Set selected window.
22139
221402008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
22141
22142 * editfns.c (Fchar_equal): Check they are valid characters.
22143
22144 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
22145
221462008-03-17 Andreas Schwab <schwab@suse.de>
22147
22148 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
22149 against a charset.
22150
22151 * lisp.h (Fbuffer_list): Declare.
22152
221532008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 22154
aac0c6e3
MR
22155 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
22156 handlebox_widget is != 0.
22157
221582008-03-16 Juri Linkov <juri@jurta.org>
22159
22160 * callint.c (Fcall_interactively): For interactive code letters
22161 'b' and 'B' put the buffer list into the list of default "future"
22162 values of the minibuffer.
22163
221642008-03-16 Andreas Schwab <schwab@suse.de>
22165
22166 * keyboard.c (read_key_sequence): Fix downcasing of letters with
22167 modifiers.
22168
22169 * regex.c (re_match_2_internal): Correct matching of a charset
22170 against latin-1 characters.
22171
221722008-03-16 Kenichi Handa <handa@m17n.org>
22173
22174 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
22175 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
22176 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
22177 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
22178 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
22179 CHAR_STRING_ADVANCE.
22180 (produce_chars): Fix for the case that the source and the
22181 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
22182 instead of CHAR_STRING_ADVANCE.
22183 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
22184 STRING_CHAR_ADVANCE.
22185
221862008-03-15 Andreas Schwab <schwab@suse.de>
22187
22188 * regex.c (re_match_2_internal): Correct matching of eight bit
22189 characters in unibyte strings.
22190
221912008-03-15 Martin Rudalics <rudalics@gmx.at>
22192
22193 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
22194 at end of range when it coincides with the end of the buffer.
22195
221962008-03-14 Eli Zaretskii <eliz@gnu.org>
22197
22198 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
22199
22200 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
22201
222022008-03-14 Jason Rumney <jasonr@gnu.org>
22203
22204 * editfns.c (initial_tz): New variable.
22205 (syms_of_editfns): Initialize it.
22206 (Fset_time_zone_rule): Set it when first called.
22207 Use it when TZSTRING is nil.
22208
22209 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
22210 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
22211 (monitor_from_point_fn, get_monitor_info_fn): New globals.
22212 (globals_of_w32fns): Initialize them.
22213 (compute_tip_xy): Use them to position tooltips.
22214
222152008-03-14 Glenn Morris <rgm@gnu.org>
22216
22217 * emacs.c (main): Revert previous change.
22218 (standard_args): Revert -internal-script back to -scriptload,
22219 and remove the long-option form.
22220
222212008-03-13 Glenn Morris <rgm@gnu.org>
22222
22223 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
22224 Remove option -enable-font-backend.
22225
222262008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
22227
22228 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
22229
222302008-03-11 Jan Djärv <jan.h.d@swipnet.se>
22231
22232 * xterm.c (x_connection_closed): For GTK: If this is the last
22233 terminal just exit without closing the display.
22234
222352008-03-11 Jason Rumney <jasonr@gnu.org>
22236
22237 * w32font.c (w32font_full_name): Use floor to round.
22238
f0131492 222392008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
22240
22241 * sound.c (alsa_configure): Declare vol at beginning of block.
22242
22243 * fontset.c (Ffontset_info): Remove extra semicolon.
22244
222452008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
22246
22247 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
22248 size of resulting string.
22249
222502008-03-10 Jason Rumney <jasonr@gnu.org>
22251
22252 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
22253
222542008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22255
22256 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
22257 Don't pretend as if characters with display property haven't been
22258 consumed for string-replacing-string case.
22259
222602008-03-08 Kim F. Storm <storm@cua.dk>
22261
22262 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
22263 (get_next_display_element, next_element_from_string)
22264 (next_element_from_ellipsis, next_element_from_buffer): Use it.
22265
222662008-03-08 Andreas Schwab <schwab@suse.de>
22267
22268 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
22269
222702008-03-06 Jason Rumney <jasonr@gnu.org>
22271
22272 * w32font.c (w32_registry): Take font_type argument. Use ANSI
22273 when charset not specified. Only translate ANSI to unicode when
22274 font_type is truetype.
22275 (w32font_coverage_ok): New function.
22276 (add_font_entity_to_list): Use it to filter unsuitable fonts.
22277
222782008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
22279
22280 * lread.c (Fread_char): Resolve modifiers.
22281 (Fread_char_exclusive): Likewise.
22282
22283 * character.c (char_resolve_modifier_mask): New function.
22284 (char_string): Use char_resolve_modifier_mask.
22285 (Fchar_resolve_modifiers): New function.
22286 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
22287 function.
22288
222892008-03-04 Jason Rumney <jasonr@gnu.org>
22290
22291 * makefile.w32-in: Always include w32font.c in the build.
22292 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
22293
222942008-03-04 Andreas Schwab <schwab@suse.de>
22295
22296 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
22297 (versionclean): Likewise.
22298
222992008-03-04 Juanma Barranquero <lekktu@gmail.com>
22300
22301 * .cvsignore: Add oo.
22302
223032008-03-03 Andreas Schwab <schwab@suse.de>
22304
22305 * coding.c (decode_coding_object): Inhibit gap shrinking while
22306 decoding in place.
22307
223082008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
22309
22310 * w32term.c: Remove unused include "gnu.h".
22311 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
22312
22313 * gnu.h: Rename to ...
22314 * emacs-icon.h: ... this.
22315 * xterm.c: Use emacs-icon.h instead of gnu.h.
22316 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
22317
223182008-03-03 Juanma Barranquero <lekktu@gmail.com>
22319
22320 * w32font.c: Include math.h.
22321
223222008-03-03 Jason Rumney <jasonr@gnu.org>
22323
22324 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
22325 Compute options separately.
22326 (w32font_open_internal): Set glyph_idx before caching metrics.
22327
22328 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
22329 Define if system headers don't.
22330 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
22331 (w32font_encode_char): Don't declare here.
22332
22333 * w32font.c (Quniscribe, QCformat): New symbols.
22334 (syms_of_w32font): Define them.
22335 (w32font_has_char): Indicate uncertainty.
22336 (w32font_encode_char): Encode as glyph point. Make static.
22337 (recompute_cached_metrics): New function.
22338 (w32font_open_internal): Use it. Set font to use glyph points
22339 initially. Set format based on type of font.
22340 (w32font_text_extents, w32font_draw): Optionally use glyph points.
22341 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
22342 on it. Set format based on information available here.
22343 (add_font_entity_to_list): Identify backend based on opentype_only.
22344
223452008-03-02 Andreas Schwab <schwab@suse.de>
22346
22347 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
22348
22349 * coding.c (decode_coding_big5, produce_chars):
22350 Fix typos in last change.
22351
223522008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
22353
22354 * gnu.h: New icon.
22355
223562008-03-02 Kenichi Handa <handa@m17n.org>
22357
22358 * coding.c (decode_coding_utf_8): When eol-type of CODING is
22359 `dos', don't decode '\r' if that is the last in the source.
22360 (decode_coding_utf_16, decode_coding_emacs_mule)
22361 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22362 (decode_coding_raw_text, decode_coding_charset): Likewise.
22363 (produce_chars): Don't decode EOL here. Use EMACS_INT.
22364
223652008-03-01 Jason Rumney <jasonr@gnu.org>
22366
22367 * w32font.c (w32font_full_name): Report point size for scalable fonts.
22368
223692008-03-01 Kim F. Storm <storm@cua.dk>
22370
22371 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
22372
223732008-03-01 Jason Rumney <jasonr@gnu.org>
22374
22375 * w32font.c (w32font_full_name): New function.
22376 (w32font_open_internal): Use it.
22377
223782008-03-01 Kim F. Storm <storm@cua.dk>
22379
22380 * dispnew.c (line_draw_cost): Fix invalid glyph check.
22381
223822008-03-01 Jason Rumney <jasonr@gnu.org>
22383
22384 * font.c (font_unparse_fcname): Increase len when style is a symbol.
22385
223862008-03-01 Jan Djärv <jan.h.d@swipnet.se>
22387
22388 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
22389 xg_frame_resized when the event is for the edit widget.
22390
ef1b0ba7 22391 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
22392
22393 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
22394 set_char_size.
ef1b0ba7 22395 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
22396 operations on widgets here. Just set frame size if needed.
22397 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
22398 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
22399 (x_wm_set_size_hint): Set size hints on the edit widget only, not
22400 the whole frame.
22401 (xg_create_tool_bar): Move attachment of the tool bar to
22402 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
22403 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
22404
224052008-03-01 Jason Rumney <jasonr@gnu.org>
22406
22407 * w32fns.c (w32_msg_pump): Disable debug code.
22408
224092008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22410
22411 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
22412
224132008-02-29 Chong Yidong <cyd@stupidchicken.com>
22414
22415 * xdisp.c (next_overlay_string): Don't set
22416 overlay_strings_at_end_processed_p if we're currently reading from
22417 a display string.
22418
224192008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
22420
22421 * xdisp.c (get_overlay_strings_1): Fix typo.
22422
224232008-02-29 Chong Yidong <cyd@stupidchicken.com>
22424
22425 * xdisp.c (get_overlay_strings_1): Add missing argument type.
22426
224272008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
22428
22429 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
22430
22431 * xdisp.c (display_mode_element): Cancel the previous change.
22432 (decode_mode_spec): Likewise.
22433 (handle_auto_composed_prop): Don't make composition if it->string
22434 is a string.
22435
224362008-02-27 Kim F. Storm <storm@cua.dk>
22437
22438 * lisp.h (GLYPH): Change type from int to struct with separate char
22439 and face_id members.
22440 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
22441 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
22442 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
22443 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
22444 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
22445 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
22446 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
22447 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
22448 handle new Lisp glyph code encoding, either an integer or a cons.
22449
22450 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
22451 (GLYPH_ALIAS): Delete.
22452 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
22453 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
22454 (GLYPH_FROM_CHAR): Replace macro by ...
22455 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
22456
22457 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
22458 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
22459 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
22460 (GLYPH_INVALID_P): New macro.
22461 (spec_glyph_lookup_face): Update prototype.
22462
22463 * dispnew.c (line_draw_cost): Adapt to new glyph type.
22464 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
22465 new glyph code encoding.
22466 (spec_glyph_lookup_face): No return value; update passed glyph instead.
22467 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
22468
22469 * xdisp.c (get_next_display_element, next_element_from_display_vector):
22470 Adapt to new glyph type and new glyph code encoding.
22471
22472 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
22473
22474 * indent.c (current_column, current_column_1, Fmove_to_column)
22475 (compute_motion): Adapt to new glyph code encoding.
22476
22477 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
22478
224792008-02-27 Chong Yidong <cyd@stupidchicken.com>
22480
22481 * process.c (wait_reading_process_output): Check for window
22482 changes caused by timers.
22483 Suggested by Johan Bockgård.
22484
224852008-02-27 Glenn Morris <rgm@gnu.org>
22486
22487 * emacs.c (USAGE1): Add `--disable-font-backend'.
22488
224892008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
22490
22491 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
22492 is made to the buffer.
22493
224942008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
22495
22496 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
22497 (face_at_string_position):
22498 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
22499 (face_at_string_position):
22500 * xdisp.c (display_string, next_overlay_change):
22501 * buffer.h (overlays_at):
22502 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
22503 Update callers.
22504
225052008-02-26 Chong Yidong <cyd@stupidchicken.com>
22506
22507 * editfns.c (Fformat): Doc fix.
22508
225092008-02-26 Juanma Barranquero <lekktu@gmail.com>
22510
22511 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
22512 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
22513 (Ffont_otf_alternates, Fquery_font): Doc fixes.
22514
225152008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
22516
22517 * buffer.c (Fbuffer_swap_text): New function.
22518 (syms_of_buffer): Defsubr it.
22519
225202008-02-25 Chong Yidong <cyd@stupidchicken.com>
22521
22522 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
22523
225242008-02-25 Jason Rumney <jasonr@gnu.org>
22525
22526 * w32font.c (w32font_draw): Draw one character at a time when padding.
22527
225282008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
22529
22530 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
22531 Handle a nil arg. Use run_window_configuration_change_hook.
22532 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
22533 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
22534 Use run_window_configuration_change_hook.
22535
225362008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22537
22538 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
22539 1-pixel width.
22540
225412008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22542
22543 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
22544 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
22545 if the glyph in the font is zero pixel with.
22546
22547 * dispextern.h (struct glyph_string): New member padding_p.
22548
22549 * w32font.c (w32font_draw): Pay attention to s->padding_p.
22550
22551 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
22552
22553 * xfont.c (xfont_draw): Pay attention to s->padding_p.
22554
22555 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
22556
22557 * font.c: If the font driver doesn't have `shape' function, return Qnil.
22558
225592008-02-25 Jason Rumney <jasonr@gnu.org>
22560
22561 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
22562
225632008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
22564
22565 Allow fine-grained image-cache flushing.
22566 * dispextern.h (struct image): Add `dependencies' field.
22567 (clear_image_caches): Change arg to Lisp_Object.
22568 * image.c (make_image): Initialize `dependencies' field.
22569 (clear_image_cache): Change arg to allow fine-grained flushing.
22570 Perform the flush even if image-cache-eviction-delay is nil.
22571 (clear_image_caches): Change arg to Lisp_Object.
22572 (Fclear_image_cache): Expand meaning of the argument.
22573 (mark_image): Mark `dependencies' field.
22574 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
22575 (lface_hash): Use XHASH rather than XFASTINT.
22576 (face_at_buffer_position): Fix int -> EMACS_INT position.
22577 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
22578 (select_frame_for_redisplay): Remove code duplication.
22579 (redisplay_internal): Adapt arg to call to clear_image_caches.
22580
225812008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
22582
22583 * s/vms4-0.h:
22584 * s/vms4-2.h:
22585 * s/vms4-4.h:
22586 * s/vms5-5.h: Remove, unused.
22587
22588 * s/irix5-2.h:
22589 * s/irix6-0.h:
22590 * s/riscos5.h:
22591 * s/mach-bsd4-3.h:
22592 * m/mips4.h: Remove files for obsolete systems.
22593
22594 * Makefile.in:
22595 * filelock.c:
22596 * unexmips.c:
22597 * m/hp9000s300.h:
22598 * m/iris4d.h:
22599 * s/aix3-1.h:
22600 * s/hpux.h:
22601 * s/msdos.h:
22602 * s/usg5-0.h:
22603 * s/usg5-2-2.h:
22604 * s/usg5-2.h:
22605 * s/usg5-3.h: Remove references to obsolete variables.
22606
22607 * s/irix5-0.h: Remove, move all the contents ...
22608 * s/irix6-5.h: ... here. Simplify.
22609 * config.in: Regenerate.
22610
226112008-02-24 Jason Rumney <jasonr@gnu.org>
22612
22613 * w32term.c (x_draw_glyph_string_background): Clear the background
22614 manually when cleartype is in use.
22615 (x_draw_glyph_string_foreground): Draw text transparently when
22616 cleartype is in use.
22617
22618 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
22619 a font into it unless we have to.
22620
226212008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
22622
22623 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
22624 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 22625
aac0c6e3
MR
226262008-02-18 Jason Rumney <jasonr@gnu.org>
22627
22628 * w32fns.c (Fw32_shell_execute): Encode parameters.
22629
226302008-02-09 Eli Zaretskii <eliz@gnu.org>
22631
22632 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
22633
226342008-02-05 Juanma Barranquero <lekktu@gmail.com>
22635
22636 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
22637
226382008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
22639
22640 * xterm.c (x_set_offset): Don't change the gravity if
22641 CHANGE_GRAVITY is -1.
22642
226432008-02-23 Chong Yidong <cyd@stupidchicken.com>
22644
22645 * fileio.c (auto_save_error_occurred): New var.
22646 (auto_save_error): Set it.
22647 (Fdo_auto_save): Don't overwrite the error message if an auto-save
22648 error occurred.
22649
226502008-02-23 Eli Zaretskii <eliz@gnu.org>
22651
22652 * w32.c (globals_of_w32): Add initializations for
22653 g_b_init_get_sid_sub_authority and
22654 g_b_init_get_sid_sub_authority_count.
22655
226562008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
22657
22658 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
22659 (font_parse_xlfd): Use them for sanity check.
22660 (Finternal_set_font_style_table): Make sure the table is bijective.
22661
22662 Consolidate the image_cache to the terminal struct.
22663 * termhooks.h (P_): Remove redundant def.
22664 (struct terminal): New field `image_cache'.
22665 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
22666 of FRAME_X_IMAGE_CACHE.
22667 * xterm.h (struct x_display_info): Remove image_cache field.
22668 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22669 * w32term.h (struct w32_display_info): Remove image_cache field.
22670 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22671 * macterm.h (struct mac_display_info): Remove image_cache field.
22672 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22673 * xterm.c (x_term_init):
22674 * w32term.c (w32_term_init):
22675 * macterm.c (mac_term_init): Set the image_cache in the terminal.
22676 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
22677 Remove declarations.
22678 (clear_image_caches, mark_image_cache): New declarations.
22679 * xfaces.c (clear_face_cache):
22680 * xdisp.c (redisplay_internal): Use clear_image_caches.
22681 * image.c (clear_image_cache): Don't check that a frame is on
22682 a window-system before checking if it shares the same cache.
22683 (clear_image_caches): New function.
22684 (Fclear_image_cache): Use it.
22685 (mark_image): Move from allo.c.
22686 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
22687 * alloc.c (mark_image, mark_image_cache): Move to image.c.
22688 (mark_object): Don't call mark_image_cache for frames.
22689 (mark_terminals): Call mark_image_cache.
22690
22691 * lisp.h (Fdelete_terminal): Declare.
22692
22693 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
22694 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
22695 wrong_type_argument.
22696
226972008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
22698
22699 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
22700 malayalam.el, and tamil.el. Add sinhala.el.
22701
227022008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
22703
22704 * xterm.c (x_connection_closed): Consolidate identical tests.
22705 (x_delete_terminal): Don't crash if called via x_connection_closed.
22706
227072008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
22708
22709 * xdisp.c (decode_mode_spec): New arg string.
22710 (display_mode_element): Adjust for the above change.
22711
227122008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
22713
22714 * callint.c (Fcall_interactively): Use AREF.
22715
227162008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
22717
22718 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
22719
227202008-02-18 Jan Djärv <jan.h.d@swipnet.se>
22721
22722 * xfns.c (Fx_show_tip): Set string to " " if empty.
22723
227242008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
22725
22726 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
22727 with Qt.
22728
227292008-02-17 Kenichi Handa <handa@m17n.org>
22730
22731 * ftfont.c (ftfont_shape): Return Lispy number.
22732
22733 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
22734 for GCs.
22735 (Finternal_set_font_selection_order): Call font_update_sort_order
22736 only when enable_font_backend is set.
22737 (realize_x_face): Set face->font_info to that of default face only
22738 when enable_font_backend is set.
22739
22740 * xdisp.c (handle_composition_prop): Set it->c to the fist
22741 character of the composed region.
22742 (fill_composite_glyph_string): Set base_face->font_info to
22743 s->font_info. Get a face for ascii from base_face->ascii_face.
22744 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
22745 with a face already decided.
22746 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
22747 non-negative.
22748 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
22749 call font_prepare_composition unconditionally.
22750
22751 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
22752
22753 * xterm.h (struct x_display_info): New member font.
22754
22755 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
22756 (x_set_mouse_face_gc, x_new_font): Likewise.
22757 (x_term_init): Setup display_info->font.
22758 (x_delete_terminal): Free display_info->font.
22759
22760 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
22761
22762 * ftxfont.c (ftxfont_default_fid): Delete it.
22763 (ftxfont_open): Set xfont->fid to 0.
22764 (ftxfont_end_for_frame): Clear data specific to the frame and the
22765 font-driver.
22766
22767 * xftfont.c (xftfont_default_fid): Delete it.
22768 (xftfont_open): Set xfont->fid to 0.
22769
22770 * fontset.c (FONTSET_OBJLIST): New macro.
22771 (fontset_find_font): Update font-object list of the fontset.
22772 (free_realized_fontset): New function.
22773 (free_face_fontset): Call free_realized_fontset.
22774 (Ffont_info): Call font_close_object only when enable_font_backend
22775 is set.
22776
22777 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
22778 [HAVE_NTGUI]: Include w32term.h.
22779 [MAC_OS]: Include macterm.ch.
22780 (font_otf_ValueRecord): Use make_number.
22781 (font_finish_cache): Fix handling of reference count.
22782 (font_clear_cache): Update num_fonts.
22783 (font_open_entity): Update smallest_char_width and
22784 smallest_font_height of the frame.
22785 (font_close_object): Update num_fonts.
22786 (Fclear_font_cache): Fix finding the target cache data.
22787
227882008-02-16 Glenn Morris <rgm@gnu.org>
22789
22790 * fontset.c (Finternal_char_font): Fix compilation warning.
22791
227922008-02-16 Eli Zaretskii <eliz@gnu.org>
22793
22794 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
22795 instead of char arrays. Enlarge the size of array passed to
22796 get_token_information.
22797
22798 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
22799 warnings.
22800
228012008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
22802
22803 * .gdbinit: Don't set `args', it breaks gdb --args.
22804
228052008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
22806
22807 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
22808 within a narrowed buffer.
22809
228102008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
22811
22812 * coding.c (decode_coding_object, encode_coding_object):
22813 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
22814
228152008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
22816
22817 * coding.c (coding_set_destination): Use BEG_BYTE rather than
22818 hardcoding 1.
22819 (detect_coding_system):
22820 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
22821 (string_char_to_byte, string_byte_to_char, insert_from_gap):
22822 * insdel.c (insert_from_gap):
22823 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
22824 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
22825 (string_to_multibyte):
22826 * character.c (chars_in_text, multibyte_chars_in_text):
22827 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
22828
22829 * character.h (FETCH_STRING_CHAR_ADVANCE)
22830 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
22831 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
22832 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
22833
22834 * casefiddle.c (casify_region): Only call after-change and composition
22835 functions on the part of the region that was changed.
22836
22837 * keyboard.c (read_avail_input):
22838 * frame.c (Fdelete_frame): Call Fdelete_terminal.
22839
228402008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22841
22842 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
22843 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
22844
228452008-02-11 Juanma Barranquero <lekktu@gmail.com>
22846
22847 * w32menu.c (push_submenu_start, push_submenu_end)
22848 (push_left_right_boundary, push_menu_pane, push_menu_item):
22849 * keyboard.c (read_key_sequence): Don't pass args with side effects
22850 to AREF, it fails when compiling with -DENABLE_CHECKING.
22851
228522008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
22853
22854 * Makefile.in (${lispsource}international/charprop.el):
22855 Delete this target.
22856
22857 * search.c (boyer_moore): Fix incorrect synching of the trunk and
22858 emacs-unicode-2.
22859
228602008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22861
22862 * terminal.c (Fdelete_terminal): Clean up the `force' path.
22863
228642008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
22865
22866 * frame.c (Qnoelisp): New symbol.
22867 (syms_of_frame): Initialize it.
22868 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
22869 harmless Elisp code, from a strong `force' from x_connection_closed.
22870 * frame.h (Qnoelisp): Declare.
22871 * xterm.c (x_connection_closed): Pass `noelisp'.
22872
22873 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
22874 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
22875 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
22876 rather than `int' for the type of `type'.
22877
228782008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
22879
22880 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
22881
22882 * Makefile.in (GNUC): Remove support for gcc-1.x.
22883
228842008-02-10 Richard Stallman <rms@gnu.org>
22885
22886 * lisp.h (ASET): Use AREF, not ASLOT.
22887
228882008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
22889
22890 * lisp.h (ASET): Check bounds.
22891
228922008-02-10 Glenn Morris <rgm@gnu.org>
22893
22894 * buffer.c (mode-name): Doc fix.
22895
228962008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
22897
22898 * Makefile.in:
22899 * emacs.c:
22900 * gmalloc.c:
22901 * keyboard.c:
22902 * lisp.h:
22903 * m/ibm370aix.h:
22904 * process.c:
22905 * regex.c:
22906 * s/hpux.h:
22907 * sysdep.c:
22908 * sysselect.h:
22909 * systty.h:
22910 * unexec.c:
22911 * w32term.c:
22912 * xsmfns.c:
22913 * xterm.c: Remove code that deals with obsolete variables.
22914
22915 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
22916
22917 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
22918 nothing else needs it anymore.
22919
229202008-02-09 Eli Zaretskii <eliz@gnu.org>
22921
22922 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
22923 instead of unibyte_char_to_multibyte.
22924
229252008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
22926
22927 * s/gnu-linux.h: Remove commented out code.
22928
22929 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
22930
22931 * Makefile.in: Update what RMS says about using autoconf.
22932 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
22933 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
22934 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
22935 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
22936
229372008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
22938
22939 * keymap.c (Fkey_description): Move side effect outside of macro call.
22940
22941 * xfaces.c (Finternal_make_lisp_face):
22942 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
22943
22944 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
22945 (syms_of_fontset): Use ASET.
22946
22947 * fns.c (concat): Move side effect outside of macro call.
22948 (hash_clear): Use ASET.
22949
229502008-02-08 Richard Stallman <rms@gnu.org>
22951
22952 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
22953 If FORCE, and frame has a surrogate minibuffer for another frame,
22954 delete the other frame first.
22955
229562008-02-07 Timo Savola <timo.savola@iki.fi>
22957
22958 * xterm.c (x_detect_focus_change): Handle embed client message.
22959 (handle_one_xevent): Ditto.
22960 (handle_one_xevent): If embedded and we get a button press/release,
22961 request focus.
22962 (xembed_set_info, xembed_send_message): New functions.
22963 (x_make_frame_visible): Call xembed_set_info if embedded.
22964 (x_make_frame_invisible): Call xembed_set_info if embedded.
22965 (x_term_init): Initialize Xatom_XEMBED.
22966 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
22967 (x_iconify_frame): Ditto.
22968
22969 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
22970 (enum xembed_info, enum xembed_message, enum xembed_focus)
22971 (enum xembed_modifier, enum xembed_accelerator): New.
22972 (xembed_set_info, xembed_send_message): Declare.
22973 (FRAME_X_EMBEDDED_P): New.
22974
22975 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
22976 gtk_plug_new.
22977
22978 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
22979 window ID of a frame.
22980 (x_window): Reparent frame if embedded.
22981 (Fx_create_frame): Don't set border width if embedded.
22982
22983 * emacs.c (USAGE3): Add --parent-id.
22984 (standard_args): Ditto.
22985
229862008-02-07 Jan Djärv <jan.h.d@swipnet.se>
22987
22988 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
22989
229902008-02-07 Jim Meyering <meyering@redhat.com>
22991
22992 Use "do...while (0)", not "if (1)...else" in macro definitions.
22993 The latter provokes a warning from gcc about the empty else, when
22994 followed by ";". Also, without that trailing semicolon, it would
22995 silently swallow up any following statement.
22996 * syntax.h (SETUP_SYNTAX_TABLE)
22997 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
22998 * buffer.h (DECODE_POSITION): Likewise.
22999 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23000 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23001 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23002 (FETCH_CHAR_ADVANCE): Likewise.
23003 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23004
230052008-02-07 Jim Meyering <meyering@redhat.com>
23006
23007 * lread.c [lint]: Don't include <sys/inode.h>.
23008
230092008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
23010
23011 * xselect.c (x_handle_dnd_message):
23012 * xmenu.c (digest_single_submenu, xmenu_show):
23013 * xdisp.c (with_echo_area_buffer_unwind_data)
23014 (format_mode_line_unwind_data, unwind_format_mode_line)
23015 (display_menu_bar):
23016 * eval.c (Ffetch_bytecode):
23017 * doc.c (store_function_docstring):
23018 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23019 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23020 * buffer.c (add_overlay_mod_hooklist): Use ASET.
23021
230222008-02-07 Kenichi Handa <handa@m17n.org>
23023
23024 * ftxfont.c (ftxfont_open): Don't set
23025 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
23026
23027 * ftfont.c (ftfont_open): Fix previous change.
23028
230292008-02-06 Jason Rumney <jasonr@gnu.org>
23030
23031 * w32font.c (w32font_text_extents): Fill in lbearing metric.
23032 Use cached metrics for ASCII characters.
23033 (w32font_open_internal): Don't set font's owning_frame.
23034 Cache metrics for ASCII characters.
23035
23036 * w32font.h (struct w32font_info): Add ascii_metrics.
23037 Remove owning_frame.
23038
230392008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
23040
23041 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
23042 to negative value.
23043
23044 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
23045
23046 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
23047
23048 * charset.c (syms_of_charset): Set QCtest and Qeq.
23049
230502008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
23051
23052 * process.c (Fstart_process):
23053 * callproc.c (Fcall_process): Handle the case where
23054 Funhandled_file_name_directory returns nil.
23055
23056 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
23057 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
23058 * font.c (check_gstring): Use them and AREF to access the vector before
23059 we know it's really a gstring.
23060 (Ffont_shape_text): Fix typo.
46e722a9 23061 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
23062
23063 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
23064 Declare.
23065
23066 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
23067
230682008-02-05 Jason Rumney <jasonr@gnu.org>
23069
23070 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
23071 Set smallest_font_height and smallest_char_width in display info.
23072
230732008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
23074
23075 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
23076
230772008-02-05 Miles Bader <miles@gnu.org>
23078
23079 * xfaces.c (get_lface_attributes, merge_named_face)
23080 (lookup_named_face, lookup_derived_face, realize_named_face):
23081 Revert 2008-02-01 change by cyd@stupidchicken.com.
23082
230832008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
23084
23085 * fontset.c (Ffontset_info): Handle the case of inhibitting the
23086 fallback fonts.
23087 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
23088
230892008-02-04 Jason Rumney <jasonr@gnu.org>
23090
23091 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
23092 set full_name.
23093 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
23094
230952008-02-03 Jason Rumney <jasonr@gnu.org>
23096
23097 * makefile.w32-in (OBJ1): Include font.o here.
23098 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
23099
231002008-02-02 Jason Rumney <jasonr@gnu.org>
23101
23102 * makefile.w32-in (temacs): Bump EMHEAP to 21.
23103
231042008-02-01 Jason Rumney <jasonr@gnu.org>
23105
23106 * s/cygwin.h: Define VIRT_ADDR_VARIES.
23107
23108 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
23109
231102008-02-01 Andreas Schwab <schwab@suse.de>
23111
23112 * Makefile.in (shortlisp, lisp): Update for rename of
23113 ../lisp/language/myanmar.el.
23114
231152008-02-01 Chong Yidong <cyd@stupidchicken.com>
23116
23117 * xfaces.c (get_lface_attributes): Delete function.
23118 (merge_named_face, lookup_named_face, lookup_derived_face)
23119 (realize_named_face): Call lface_from_face_name directly, and use
23120 the fact that merge_face_vectors does not alter its FROM argument.
23121
231222008-02-01 Jason Rumney <jasonr@gnu.org>
23123
23124 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
23125 input in the default locale. Handle non-Unicode multibyte input.
23126
231272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23128
23129 * fontset.c (reorder_font_vector): Exclude nil elements from the
23130 font group. Don't try multiple fonts.
23131 (fontset_font): Adjust for the above change.
23132 (Finternal_char_font): Return nil if the found font doesn't
23133 contain the character ch.
23134
23135 * Makefile.in (lisp, shortlisp): Add cham.el.
23136
231372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23138
23139 * font.h (FONTP): Make it return 1 also for a font-object.
23140
23141 * .gdbinit (xfontset): New function.
23142
23143 * font.c (font_find_for_lface): Check if the character C is
23144 supported or not only for the first font.
23145
23146 * fontset.c (reorder_font_vector): Fix typo.
23147 (fontset_find_font): Don't add a font-spec specifying a script.
23148 Use 0 (not Qt) for the indication of empty font-group. Change the
23149 format of RFONT-DEF. Return Qt if no font in the font-group
23150 support the character.
23151 (fontset_font): Adjust for the above change. If no font was
23152 found the character, remember that.
23153 (face_for_char): Adjust for the change of RFONT-DEF.
23154 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
23155 no font for the target.
23156 (Finternal_char_font): Adjust for the change of RFONT-DEF.
23157
231582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23159
23160 * font.c (font_load_for_face): Handle the case that the font in
23161 face->lface is a string.
23162
231632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23164
23165 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
23166
231672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23168
23169 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
23170 Fix previous change. If the frame is not on a window system,
23171 signal an error.
23172
231732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23174
bba3e508
SM
23175 * coding.c (decode_coding_object, encode_coding_object):
23176 Adjust marker positions after conversion.
aac0c6e3
MR
23177
23178 * lisp.h (struct Lisp_Marker): New member need_adjustment.
23179
231802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23181
23182 * font.c (font_find_for_lface): Fix the handling of the return
23183 value of font_has_char.
23184 (Ffont_shape_text): Fix previous change.
23185
23186 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
23187 (fontset_ref_and_range): Delete it.
23188 (fontset_find_font): Call char_table_ref_and_range instead of
23189 FONTSET_REF_AND_RANGE.
23190 (make_fontset): Don't setup font groups of Latin here.
23191 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
23192 (new_fontset_from_font): Make the specified font the default for
23193 all Latin characters.
23194
231952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23196
23197 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
23198 is on a window system before accessing the fontset of the frame.
23199
232002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23201
23202 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
23203
23204 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
23205 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
23206
23207 * font.c (Ffont_shape_text): If the font driver doesn't have a
23208 shaper function, make zero-width glyphs to have at least one-pixel
23209 width. Fix setting of `to' field of glyphs.
23210
232112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23212
23213 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
23214 glyphs.
23215
23216 * font.h (struct font_driver): Improve docstring of member `shape'.
23217
232182008-02-01 Kenichi Handa <handa@m17n.org>
23219
23220 * composite.c (syms_of_composite): Fix docstring of
23221 auto-composition-function.
23222
23223 * font.h (LGLYPH_SIZE): New macro.
23224
23225 * font.c (Ffont_fill_gstring): Stop filling when a character not
23226 supported by the font is found.
23227 (Ffont_shape_text): When a shape callback function returns nil,
23228 try at most two more times with larger gstring.
23229 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
23230
23231 * xdisp.c (handle_auto_composed_prop): Change the argument to
23232 auto-composition-function.
23233
23234 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
23235 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
23236 Lispy glyph and store it in the lgstring.
23237
23238 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
23239
23240 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
23241
232422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23243
23244 * font.c (Ffont_shape_text): Avoid unnecessary composition.
23245
23246 * fontset.c (Vfont_encoding_charset_alist): New variable.
23247 (syms_of_fontset): DEFVAR it.
23248 (reorder_font_vector, fontset_find_font): Optimize for the case of
23249 no need of reordering.
23250 (face_for_char): Map the charset property by
23251 Vfont_encoding_charset_alist.
23252
232532008-02-01 Jason Rumney <jasonr@gnu.org>
23254
23255 * w32font.c (logfonts_match): Don't check adstyle here.
23256 (font_matches_spec): Check here against physical font instead.
23257 (add_font_entity_to_list): Avoid some substitutions.
23258
23259 * font.c (font_parse_fcname): Default weight and slant to normal.
23260 (font_score): Prefer normal fonts if weight or slant unspecified.
23261 (font_score) [WINDOWSNT]: Scale weight difference down to closer
23262 match freetype scores.
23263
232642008-02-01 Jason Rumney <jasonr@gnu.org>
23265
23266 * w32font.c (w32font_text_extents): Don't use the frame stored in the
23267 font, as it may have been deleted.
23268 (w32_enumfont_pattern_entity): Map generic family to adstyle using
23269 most common hyphenless variation.
23270 (logfonts_match): Check generic family.
23271 (font_matches_spec): Don't check generic family here.
23272 (fill_in_logfont): Set generic family based on adstyle.
23273
23274 * w32font.h (w32font_get_cache): Update declaration.
23275
232762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23277
23278 * ftfont.c (ftfont_get_cache): Adjust the argument type.
23279
23280 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
23281 If none of the new drivers are available, call font_update_drivers
23282 with the old drivers.
23283
23284 * w32font.c (w32font_get_cache): Adjust the argument type.
23285
23286 * xfont.c (xfont_get_cache): Adjust the argument type.
23287
23288 * font.h (struct font_driver): Change argument type of get_cache.
23289
23290 * xftfont.c (xftfont_start_for_frame): Delete prototype.
23291
23292 * font.c (Ffont_get): Fix arguments to Fassoc.
23293 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
23294 (font_clear_cache): New function.
23295 (font_list_entities, font_matching_entity): Use font_get_cache.
23296 (font_update_drivers): Call font_clear_cache when finishing a driver.
23297
23298 * fontset.c (fontset_find_font): Fix previous change.
23299
233002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23301
23302 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
23303 dpyinfo->font_table.
23304 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
23305 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
23306
23307 * font.c (font_at): Handle the case that the arg C is negative.
23308 Handle the unibyte case.
23309 (Ffont_at): Call font_at with the arg C -1.
23310
23311 * xdisp.c (handle_auto_composed_prop): Don't get a character at
23312 the position here, and call font_at with the arg C -1.
23313 Don't check the range of the existing composition at the point.
23314
233152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23316
23317 * fontset.c (fontset_add): New args charset_id and family.
23318 Change caller.
23319 (load_font_get_repertory, fontset_find_font): Assume that
23320 font_spec is always a font-spec object.
23321 (Fset_fontset_font): Always store a font-spec object in a fontset.
23322
23323 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
23324 instead of get_property_and_range.
23325
233262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23327
23328 * xftfont.c (struct xftfont_info): Delete the member ft_face.
23329 (xftfont_open): Don't keep locking face.
23330 (xftfont_close): Don't unlock face.
23331 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
23332
23333 * fontset.c (fontset_find_font): Don't prefer a font of
23334 supplementary charset.
23335
233362008-02-01 Kenichi Handa <handa@m17n.org>
23337
23338 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
23339 script, langsys_tag to langsys, new member script.
23340 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 23341 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
23342 listing to the script specified in that property. Fix arg to
23343 OTF_check_features.
23344
233452008-02-01 Jason Rumney <jasonr@gnu.org>
23346
23347 * w32font.h: New file.
23348
23349 * w32font.c: Include it.
23350 (struct w32font_info): Add owning_frame field. Move to w32font.h.
23351 (w32font_open): Set owning_frame.
23352 (w32font_text_extents): Use owning_frame.
23353 (struct font_callback_data): Add opentype_only field.
23354 (add_font_entity_to_list): Use it to filter fonts.
23355 Don't check against full name.
23356 (w32font_list_internal): New function.
23357 (w32font_list): Use it.
23358 (w32font_match_internal): New function.
23359 (w32font_match): Use it.
23360 (w32font_open_internal): New function.
23361 (w32font_open): Use it.
23362 (w32font_get_cache, w32font_close, w32font_has_char)
23363 (w32font_encode_char, w32font_text_extents, w32font_draw):
23364 Make non-static.
23365
23366 * makefile.w32-in (w32font.o): Depend on w32font.h.
23367
233682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23369
23370 * charset.c (Fdefine_charset_internal): Record a supplementary
23371 charset at the tail of Vcharset_order_list.
23372
23373 * font.c (Ffont_shape_text): Fix the return value.
23374
23375 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
23376
23377 * xdisp.c (handle_auto_composed_prop): Fix previous change.
23378
233792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23380
23381 * ftfont.c (struct OpenTypeSpec): New struct.
23382 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
23383 (ftfont_get_open_type_spec): New function.
23384 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
23385
23386 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
23387
233882008-02-01 Jason Rumney <jasonr@gnu.org>
23389
23390 * w32font.c (add_font_entity_to_list): Compare only the beginning
23391 of full name.
23392
233932008-02-01 Kenichi Handa <handa@m17n.org>
23394
23395 * xdisp.c (handle_auto_composed_prop): Simplify the code.
23396 Never return HANDLED_RECOMPUTE_PROPS.
23397
233982008-02-01 Kenichi Handa <handa@m17n.org>
23399
23400 * font.c (font_gstring_produce): Delete it.
23401
23402 * composite.h (COMPOSITION_METHOD):
23403 Handle COMPOSITION_WITH_GLYPH_STRING.
23404
234052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23406
23407 * xfont.c (Qx): Delete.
23408 (syms_of_xfont): Don't initialize Qx.
23409
23410 * composite.h (enum composition_method):
23411 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
23412
234132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23414
23415 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
23416 (choose_face_font): Accept new form of font-spec.
23417
23418 * frame.h (font_driver_list): Declare it unconditionally.
23419 (struct frame): Define members font_driver_list and font_data_list
23420 unconditionally.
23421
23422 * fontset.c: Include "font.h" unconditionally.
23423 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
23424 (Fset_fontset_font): Accept a font-spec object.
23425
23426 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
23427 PIXEL_SIZE part a wild card.
23428
23429 * dispextern.h (struct glyph_string): Define members clip and
23430 num_clips unconditionally.
23431 (struct face): Define members font_info and extra unconditionally.
23432
23433 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
23434 ftfont_info only when HAVE_LIBOTF is defined.
23435
234362008-02-01 Andreas Schwab <schwab@suse.de>
23437
23438 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
23439 and end.
23440
234412008-02-01 Jason Rumney <jasonr@gnu.org>
23442
23443 * w32font.c (w32font_driver): Add new fields.
23444
234452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23446
23447 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
23448 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
23449 (LIBES): Add @M17N_FLT_CFLAGS@.
23450
23451 * composite.c (compose_text): Don't treat the new style
23452 composition specially.
23453
23454 * emacs.c (main): Call syms_of_font unconditionally.
23455
23456 * font.h (FONT_ENTITY_NOT_LOADABLE)
23457 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
23458 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
23459 (struct font_driver): New member shape.
23460 (font_registry_charsets): Extern it.
23461 (font_find_for_lface, font_prepare_composition): Adjust prototype.
23462 (font_otf_capability, font_drive_otf): Delete their externs.
23463
23464 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
23465 (font_charset_alist, font_registry_charsets): Move from xfont.c
23466 and rename.
23467 (font_prop_validate_otf): New function.
23468 (font_property_table): Register it for QCotf.
23469 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
23470 (font_drive_otf): Delete.
23471 (font_prepare_composition): New arg F. Adjust for the change of
23472 lispy gstring.
23473 (font_find_for_lface): New arg C.
23474 (font_load_for_face): Adjust for the change of font_find_for_lface.
23475 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
23476 lispy gstring.
23477 (Ffont_shape_text): New function.
23478 (Fopen_font): If the font size is not given, use 12-pixel.
23479 (Ffont_at): New arg STRING.
40b1a3a9 23480 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
23481 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
23482 conditionally.
23483
23484 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
23485 fonts of the same font-spec. Change the format of RFONT-DEF.
23486 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
23487 Adjust for the change of RFONT-DEF.
23488 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
23489
23490 * ftfont.h: New file.
23491
23492 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
23493 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
23494 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
23495 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
23496 font_otf_capability and font_drive_otf, set ftfont_shape.
23497 (ftfont_list): Adjust for the change of :otf property value.
23498 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
23499 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
23500 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
23501 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
23502 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
23503 (otf_gstring, gstring, m17n_flt_initialized): New variables.
23504
23505 * w32term.c (x_draw_composite_glyph_string_foreground):
23506 Adjust for the change of lispy gstring.
23507
23508 * xdisp.c (handle_composition_prop): Adjust for the change of
23509 lispy gstring. Call a function for auto-composition with the
23510 third arg it->window.
23511 (fill_composite_glyph_string): Adjust for the change of lispy string.
23512 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
23513
23514 * xfaces.c (set_font_frame_param): Adjust for the change of
23515 font_find_for_lface.
23516
23517 * xfont.c (x_font_charset_alist): Move to font.c and rename.
23518 (xfont_registry_charsets): Likewise. Change caller.
23519 (syms_of_xfont): Don't handle x_font_charset_alist.
23520
23521 * xftfont.c: Include "ftfont.h".
23522 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
23523 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
23524 (xftfont_close) [HAVE_LIBOTF]: Close otf.
23525 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
23526 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
23527 Set xftfont_driver.shape to xftfont_shape.
23528
23529 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23530 the change of lispy gstring.
23531
235322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23533
23534 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
23535
235362008-02-01 Jason Rumney <jasonr@gnu.org>
23537
23538 * w32font.c (w32font_draw): Fill background manually.
23539
235402008-02-01 Jason Rumney <jasonr@gnu.org>
23541
23542 * font.c (Qfontp): Remove unused symbol.
23543 (QCantialias): New symbol.
23544 (syms_of_font): Define it.
23545 (font_property_table): Set a validator for QCantialias.
23546
23547 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
23548 Define if not already.
23549 (QCfamily): Share with xfaces.c.
23550 (Qstandard, Qsubpixel, Qnatural): New symbols.
23551 (syms_of_w32font): Define them. Don't define QCfamily here.
23552 (w32_antialias_type, lispy_antialias_type): New functions.
23553 (w32_enumfont_pattern_entity): New arg requested_font.
23554 Set antialias parameter if non-default was requested.
23555 (fill_in_logfont): Fill in lfQuality if :antialias specified.
23556
235572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23558
23559 * lread.c (read1): Undo the previous change.
23560
235612008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
23562
23563 * frame.c (Fdelete_frame): Call font_update_drivers only when
23564 USE_FONT_BACKEND is defined.
23565
235662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23567
23568 * font.h (struct font_bitmap): New member bits_per_pixel.
23569 (struct font_driver): New members start_for_frame and end_for_frame.
23570 (struct font_data_list): New struct.
23571 (font_put_frame_data, font_get_frame_data): Extern them.
23572
23573 * frame.h (struct frame): New member font_data_list.
23574
23575 * font.c (font_update_drivers): Call driver->start_for_frame and
23576 driver->end_for_frame at proper timings.
23577 (font_put_frame_data, font_get_frame_data): New functions.
23578 (Ffont_spec): Add usage in the docstring.
23579
23580 * frame.c (make_frame): Initialize f->font_data_list to NULL.
23581 (Fdelete_frame): Call font_update_drivers.
23582
23583 * xftfont.c (struct xftface_info): Delete the member xft_draw.
23584 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
23585 (xftfont_get_xft_draw): New function.
23586 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
23587 (xftfont_end_for_frame): New function.
23588 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
23589
23590 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
23591 Change argument. Cache GCs in the per-frame data.
23592 (struct ftxfont_frame_data): New struct.
23593 (ftxfont_draw_bitmap): New arg gc_fore and flush.
23594 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
23595 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
23596 (ftxfont_end_for_frame): New function.
23597 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
23598
23599 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
23600
236012008-02-01 Kenichi Handa <handa@m17n.org>
23602
23603 * xselect.c (Vselection_coding_system)
23604 (Vnext_selection_coding_system): Delete them.
23605 (syms_of_xselect): Don't declare selection-coding-system and
23606 next-selection-coding-system. They are declared in select.el.
23607
236082008-02-01 Jason Rumney <jasonr@gnu.org>
23609
23610 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
23611
23612 * w32fns.c: Include imm.h.
23613 (get_composition_string_fn, get_ime_context_fn): New optional
23614 system functions.
23615 (globals_of_w32fns): Load them from imm32.dll.
23616 (ignore_ime_char): New flag.
23617 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
23618 WM_IME_ENDCOMPOSITION messages.
23619
23620 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
23621 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
23622
236232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23624
23625 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
23626 (READCHAR_REPORT_MULTIBYTE): New macro.
23627 (readchar): New 2nd arg MULTIBYTE.
23628 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
23629 Make symbol's name multibyte according to the multibyteness of the
23630 source.
23631
236322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23633
23634 * xfaces.c (face_for_overlay_string): Call lookup_face with
23635 correct arguments (fix of synching with the trunk).
23636
236372008-02-01 Kenichi Handa <handa@m17n.org>
23638
23639 * font.c (font_prop_validate_symbol, font_prop_validate_style)
23640 (font_prop_validate_non_neg, font_prop_validate_spacing):
23641 Delete argument prop_index.
23642 (font_property_table): Change arguments to validater. Change Callers.
23643 (font_lispy_object): Delete.
23644 (font_at): Use font_find_object instead fo font_lispy_object.
23645
236462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23647
23648 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
23649 and file names.
23650
236512008-02-01 Jason Rumney <jasonr@gnu.org>
23652
23653 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
23654 (font_matches_spec): Remove debug output.
23655 (add_font_entity_to_list): Avoid using substituted fonts.
23656
236572008-02-01 Jason Rumney <jasonr@gnu.org>
23658
23659 * doc.c (Fsnarf_documentation):
23660 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
23661
236622008-02-01 Miles Bader <miles@gnu.org>
23663
23664 * dispextern.h (struct glyph_row): Only define "clip" field if
23665 HAVE_WINDOW_SYSTEM is defined.
23666
236672008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23668
23669 Fix up multi-tty merge.
23670
23671 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
23672 and indentation.
23673
23674 * xfaces.c (free_realized_face, clear_face_gcs):
23675 Include font_done_for_face in the input_blocked section, just in case.
23676
23677 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
23678 (get_char_face_and_encoding): Undo last change and remove the *other*
23679 duplicate definition (i.e. keep the one that's better scoped and that
23680 includes code for the font-backend).
23681
23682 * terminal.c (create_terminal): Default keyboard_coding to
23683 `no-conversion' and terminal_coding to `undecided'.
23684
23685 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
23686
23687 * fontset.c (free_realized_fontsets): Check that the table entry does
23688 contain a fontset before trying to compare it to `base'.
23689
23690 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
23691 syms_of_charset, and syms_of_coding earlier because init_window_once
23692 now needs Vcoding_system_hash_table to be setup.
23693
23694 * coding.h (default_buffer_file_coding): Remove.
23695
23696 * coding.c (default_buffer_file_coding): Remove.
23697 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
23698 than ->symbol, and use the terminal-local coding system.
23699 (syms_of_coding): Don't setup the coding-systems that are not
23700 terminal-local.
23701 (Fdefine_coding_system_internal): Use XCAR/XCDR.
23702
23703 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
23704 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
23705
23706 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
23707 in chartab.c and were re-added here by mistake.
23708 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
23709
23710 * doc.c (Fsnarf_documentation):
23711 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
23712 src to etc.
23713
23714 * ChangeLog.10: Add mistakenly removed entry.
23715
237162008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
23717
23718 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
23719
237202008-02-01 Miles Bader <miles@gnu.org>
23721
23722 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
23723 Add extra args to FACE_FOR_CHAR.
23724
237252008-02-01 Kenichi Handa <handa@m17n.org>
23726
23727 * keymap.c (where_is_internal_1): If key is a cons, store the copy
23728 in sequence.
23729
23730 * chartab.c (map_sub_char_table, map_char_table): If the range
23731 contains just one character, call the function with that character
23732 even if the depth is not 3.
23733
237342008-02-01 Jason Rumney <jasonr@gnu.org>
23735
23736 * w32font.c (w32font_text_extents): Calculate metrics for the
23737 whole string.
23738
237392008-02-01 Jason Rumney <jasonr@gnu.org>
23740
23741 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
23742
237432008-02-01 Jason Rumney <jasonr@gnu.org>
23744
bba3e508
SM
23745 * w32term.c (x_set_glyph_string_clipping):
23746 Use get_glyph_string_clip_rects.
aac0c6e3
MR
23747 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23748 Adjust for the change of struct glyph_string.
23749
23750 * w32font.c (w32font_draw): Do clipping here.
23751
237522008-02-01 Kenichi Handa <handa@m17n.org>
23753
23754 * xftfont.c (xftfont_draw): Adjust for the change of struct
23755 glyph_string.
23756
bba3e508
SM
23757 * xterm.c (x_set_glyph_string_clipping):
23758 Use get_glyph_string_clip_rects.
aac0c6e3
MR
23759 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23760 Adjust for the change of struct glyph_string.
23761
23762 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
23763 the resulting clip(s}.
23764 (expose_overlaps): Add arg r. Change callers. Set it to
23765 row->clip temporarily.
23766 (expose_window): Redraw rows overlapping the exposed area.
23767
23768 * dispextern.h (struct glyph_row): New member clip.
23769 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
23770 clip_height, new member clip, and num_clips.
23771
237722008-02-01 Kenichi Handa <handa@m17n.org>
23773
23774 * data.c (Fchar_or_string_p): Fix docstring.
23775
237762008-02-01 Kenichi Handa <handa@m17n.org>
23777
23778 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
23779 create a temporary XftDraw object.
23780
237812008-02-01 Kenichi Handa <handa@m17n.org>
23782
23783 * font.c (Ffontp): Fix docstring.
23784
23785 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
23786 strong evidence of ISO-2022.
23787
237882008-02-01 Kenichi Handa <handa@m17n.org>
23789
23790 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
23791 SYNTAX_ENTRY_FOLLOW_PARENT.
23792
237932008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23794
23795 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
23796 its type.
23797 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23798 Update to the new type of weak_hash_tables and next_weak.
23799
23800 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
23801 a plain C pointer to Lisp_Hash_Table.
23802
23803 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
23804 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
23805 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
23806 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
23807 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
23808 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
23809 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
23810 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
23811 (GC_EQ): Remove since they've been identical to their non-GC_
23812 alter-egos ever since the markbit was eradicated.
23813
23814 * alloc.c:
23815 * buffer.c:
23816 * buffer.h:
23817 * data.c:
23818 * fileio.c:
23819 * filelock.c:
23820 * fns.c:
23821 * frame.h:
23822 * lisp.h:
23823 * macterm.c:
23824 * print.c:
23825 * process.c:
23826 * w32fns.c:
23827 * w32menu.c:
23828 * w32term.c:
23829 * xfns.c:
23830 * xmenu.c:
23831 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
23832
238332008-02-01 Kenichi Handa <handa@m17n.org>
23834
23835 * chartab.c (map_sub_char_table): Make it work for the top-level
23836 char-table. Fix handling of parent char-table.
23837 (map_char_table): Adjust for the above change.
23838
238392008-02-01 Jason Rumney <jasonr@gnu.org>
23840
23841 * w32font.c (Qgdi): Rename from Qw32.
23842
238432008-02-01 Jason Rumney <jasonr@gnu.org>
23844
23845 * w32bdf.c (get_quoted_string): Make function static.
23846
238472008-02-01 Kenichi Handa <handa@m17n.org>
23848
23849 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
23850 bigger ascent and descent than those of the font, use them as
23851 font's ascent and descent.
23852
238532008-02-01 Kenichi Handa <handa@m17n.org>
23854
23855 * Makefile.in (${lispsource}international/charprop.el): Move this
23856 target within "#ifdef HAVE_UNIDATA" and "#endif".
23857
238582008-02-01 Kenichi Handa <handa@m17n.org>
23859
23860 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
23861 (shortlisp): Add ../lisp/language/tai-viet.el.
23862
238632008-02-01 Ulrich Mueller <ulm@gentoo.org>
23864
23865 * Makefile.in (${lispsource}international/charprop.el): Depend on
23866 temacs${EXEEXT}.
23867
238682008-02-01 Jason Rumney <jasonr@gnu.org>
23869
23870 * w32font.c (w32font_close): Delete the GDI font object.
23871
23872 * w32menu.c: Include character.h.
23873
23874 * w32proc.c: Likewise.
23875
23876 * w32select.c: Likewise.
23877
23878 * makefile.w32-in (w32proc.o): Depend on character.h.
23879
238802008-02-01 Jason Rumney <jasonr@gnu.org>
23881
23882 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
23883
23884 * w32menu.c (syms_of_w32menu): Likewise.
23885
23886 * w32proc.c (syms_of_ntproc): Likewise.
23887
23888 * w32select.c (syms_of_w32select): Likewise.
23889
23890 * w32term.c (syms_of_w32term): Likewise.
23891
238922008-02-01 Jason Rumney <jasonr@gnu.org>
23893
23894 * w32font.c (w32font_draw): Delete brush after using it.
23895
238962008-02-01 Jason Rumney <jasonr@gnu.org>
23897
23898 * w32font.c (w32font_open): Don't set font_idx.
23899 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
23900 to font settings.
23901 (w32font_draw): Fill background explicitly.
23902
239032008-02-01 Jason Rumney <jasonr@gnu.org>
23904
23905 * w32term.c (w32_initialize): Don't call w32font_initialize.
23906
23907 * w32font.c (w32font_info): Remove subranges.
23908 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
23909 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
23910 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
23911 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
23912 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
23913 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
23914 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
23915 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
23916 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
23917 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
23918 New symbols.
23919 (font_callback_data): New struct.
23920 (w32font_list, w32font_match): Use it.
23921 (w32font_open): Don't populate subranges.
23922 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
23923 (w32font_encode_char): Always return unicode code-point as-is.
23924 (w32font_text_extents): Supply a transformation matrix to
23925 GetGlyphOutline. Never look up by glyph index. Avoid looping
23926 twice. Use unicode version of GetTexExtentPoint32 instead of
23927 glyph index version.
23928 (set_fonts_frame): Remove.
23929 (w32_enumfont_pattern_entity): Add frame parameter, use it to
23930 set frame parameter. Use backward compatible fake foundries.
23931 Save generic family in extra slot under QCfamily. Make width slot
23932 constant. Save QCspacing value. Save list of scripts instead of
23933 binary subranges.
23934 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
23935 (add_font_entity_to_list): Use font_callback_data struct.
23936 Filter unwanted fonts.
aac0c6e3
MR
23937 (add_one_font_entity_to_list): Use font_callback_data struct.
23938 (w32_registry): Default to iso10646_1.
23939 (fill_in_logfont): Use dpi from extra slot. Don't bother with
23940 string font registries. Don't fill in font name if it is a generic
23941 family name, fill family instead. Use spacing, family and script
23942 extra info to fill pitch, family and charset fields.
23943 (list_all_matching_fonts): Use font_callback_data struct.
23944 (unicode_range_for_char): Remove.
23945 (font_supported_scripts): New function.
23946 (w32font_initialize): Remove.
23947 (syms_of_w32font): Update which symbols are defined.
23948
239492008-02-01 Jason Rumney <jasonr@gnu.org>
23950
23951 * font.c (font_pixel_size): Reverse assq_no_quit args.
23952
23953 * w32term.h (FONT_WIDTH): Report max width, not average.
23954 (FONT_MAX_WIDTH): Remove.
23955 (FONT_AVG_WIDTH): New macro.
23956
23957 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
23958 redefinition of FONT_WIDTH.
23959
23960 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
23961 (w32_cache_char_metrics): Use FONT_WIDTH.
23962
23963 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
23964
239652008-02-01 Jason Rumney <jasonr@gnu.org>
23966
23967 * w32font.c (w32font_open): Make lfHeight negative.
23968
23969 * w32fns.c (x_default_font_parameter): Use new style font name.
23970 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
23971
239722008-02-01 Jason Rumney <jasonr@gnu.org>
23973
23974 * w32font.c (QCsubranges): New symbol.
23975 (w32font_open, w32font_has_char): Get subranges from subproperty
23976 of extra.
23977 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
23978 (syms_of_w32font): Define :subranges symbol.
23979
23980 * font.c (font_put_extra): Expose externally.
23981
23982 * font.h (font_put_extra): Move declaration from font.c.
23983
23984 * font.c (Ffont_get): Use font driver to determine otf capability.
23985 (adjust_anchor): Check if driver defines anchor_point before using.
23986
23987 * w32font.c (w32font_open): Handle size, height and pixel_size better.
23988 (w32font_draw): Use options.
23989 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
23990 Fix detection of truetype fonts.
23991 (registry_to_w32_charset): Handle charsets other than iso8859-1
23992 expressed as lisp symbols.
23993 (w32_registry): Express charset as lisp symbol.
23994 (fill_in_logfont): Reverse pixel and point height logic.
23995 Don't set width here. Set quality to default.
23996
23997 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
23998 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
23999
24000 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24001 Remove redundant loop and allocation.
24002
24003 * makefile.w32-in (font.o, w32font.o): New objects.
24004 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24005 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24006
24007 * xdisp.c (fill_composite_glyph_string): Make the first arg to
24008 STORE_XCHARB a valid l-value.
24009
24010 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24011 calculations for non-Truetype fonts.
24012 (x_draw_glyph_string): Sync with xterm.c.
24013 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24014 Remove redundant code.
24015 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24016
24017 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24018 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24019
24020 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24021 (x_to_w32_charset, w32_to_x_charset): Expose externally.
24022
24023 * w32font.c: New file for w32 font backend.
24024
240252008-02-01 Kenichi Handa <handa@m17n.org>
24026
24027 * term.c: Don't include "buffer.h" twice.
24028
240292008-02-01 Kenichi Handa <handa@m17n.org>
24030
24031 * character.c (Funibyte_string): New function.
24032 (syms_of_character): Defsubr it.
24033
240342008-02-01 Jason Rumney <jasonr@gnu.org>
24035
24036 * w32term.c [USE_FONT_BACKEND]:
24037 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
24038 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
24039 (x_draw_glyph_string, x_draw_glyph_string_foreground)
24040 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
24041 (x_free_frame_resources): Sync with xterm.c.
24042
240432008-02-01 Andreas Schwab <schwab@suse.de>
24044
24045 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
24046 char-table size.
24047
240482008-02-01 Kenichi Handa <handa@m17n.org>
24049
24050 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
24051
240522008-02-01 Kenichi Handa <handa@m17n.org>
24053
24054 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
24055 font_otf_gpos, add font_drive_otf.
24056
24057 * fontset.c (fontset_find_font): Pay attention to font size
24058 specified for a font.
24059 (reorder_font_vector): Check contents of font_def.
24060
24061 * font.c (struct otf_list): Delete it.
24062 (otf_list): Make it a lisp variable.
24063 (otf_open): Use lispy otf_list.
24064 (generate_otf_features): Rename from parse_gsub_gpos_spec.
24065 (check_otf_features): New function.
24066 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
24067 New functions.
24068 (font_drive_otf): New function merging font_otf_gsub and
24069 font_otf_gpos.
24070 (font_open_for_lface): New arg spec. Change argument order.
24071 (font_load_for_face): Adjust for the change of font_open_for_lface.
24072 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
24073 Ffont_otf_gpos.
24074 (syms_of_font): Staticpro otf_list. Delete defsubr of
24075 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
24076
24077 * xfaces.c (set_font_frame_param): Adjust for the change of
24078 font_open_for_lface.
24079
24080 * font.h (font_open_for_lface): Adjust prototype.
24081 (struct font_driver): Delete members otf_gsub and otf_gpos, add
24082 member otf_drive.
24083 (font_otf_gsub, font_otf_gpos): Delete externs.
24084 (font_drive_otf): Extern it.
24085
240862008-02-01 Kenichi Handa <handa@m17n.org>
24087
24088 * font.c (font_at): If the window W is not on a window system,
24089 return Qnil.
24090
24091 * coding.c (produce_chars, encode_coding): Don't call
24092 insert_from_gap if no characters to produce.
24093
240942008-02-01 Kenichi Handa <handa@m17n.org>
24095
24096 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
24097 Fclear_face_cache.
24098
24099 * xfaces.c (face_for_font): Check also face->font==font->font.font.
24100
241012008-02-01 Miles Bader <miles@gnu.org>
24102
24103 * emacs.c (main): Change default value of `enable_font_backend' to 1.
24104 Parse "--disable-font-backend" option.
24105 (standard_args): Add "--disable-font-backend" option.
24106
241072008-02-01 Kenichi Handa <handa@m17n.org>
24108
24109 * fontset.c (fontset_find_font): New function.
24110 (fontset_font): Use fontset_find_font.
24111 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
24112 Register the specified font for all Latin characters.
24113 (new_fontset_from_font): Register the specified font for all Latin
24114 characters.
24115 (dump_fontset): For a realized fontset, include the base fontset
24116 name in the returned vector.
24117
241182008-02-01 Kenichi Handa <handa@m17n.org>
24119
24120 * character.h (CHAR_STRING): Cast C to unsigned on calling
24121 char_string.
24122
24123 * character.c (char_string): Type of arg C changed to unsigned.
24124 Signal an error if C is an invalid character code.
24125
24126 * editfns.c (general_insert_function, Fchar_to_string):
24127 Use CHARACTERP, not INTEGERP.
24128
241292008-02-01 Kenichi Handa <handa@m17n.org>
24130
24131 * character.h (MIN_MULTIBYTE_LEADING_CODE)
24132 (MAX_MULTIBYTE_LEADING_CODE): New macros.
24133
24134 * regex.c (analyse_first): Fix for multibyte characters in "case
24135 charset:" and "case categoryspec:".
24136
241372008-02-01 Andreas Schwab <schwab@suse.de>
24138
24139 * Makefile.in (LIBES): Move standard libraries to the end.
24140
241412008-02-01 Kenichi Handa <handa@m17n.org>
24142
24143 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
24144 nonzero, don't shrink the buffer nextb.
24145
24146 * buffer.h (struct buffer_text): New member inhibit_shrinking.
24147
24148 * coding.c (coding_alloc_by_making_gap): New arg offset.
24149 (alloc_destination): Call coding_alloc_by_making_gap with the arg
24150 offset.
24151 (decode_coding_iso_2022): Update coding->safe_charsets.
24152 (decode_coding_gap): Temporarily set
24153 current_buffer->text->inhibit_shrinking to 1.
24154
241552008-02-01 Kenichi Handa <handa@m17n.org>
24156
bba3e508
SM
24157 * xterm.c (x_draw_composite_glyph_string_foreground):
24158 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
24159
241602008-02-01 Juanma Barranquero <lekktu@gmail.com>
24161
24162 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
24163
241642008-02-01 Kenichi Handa <handa@m17n.org>
24165
24166 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
24167 target_multibyte instead of multibyte.
24168 (re_match_2_internal): Call bcmp_translate with target_multibyte.
24169 (bcmp_translate): Change the argument name from multibyte to
24170 target_multibyte.
24171
241722008-02-01 Kenichi Handa <handa@m17n.org>
24173
24174 These changes are to compile a regexp into a pattern that can be
24175 used both for multibyte and unibyte targets.
24176
24177 * Makefile.in (search.o): Depend on charset.h.
24178
24179 * character.c (multibyte_char_to_unibyte_safe): New function.
24180
24181 * search.c: Include "charset.h".
24182 (compile_pattern_1): Delete argument multibyte. Don't set
24183 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
24184 (compile_pattern): Don't compare cp->buf.target_multibyte.
24185 Compare cp->buf.charset_unibyte.
24186 (compile_pattern): Set cp->buf.target_multibyte.
24187
24188 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
24189
24190 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
24191
24192 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
24193 multibyte. Change callers.
24194 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
24195 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
24196 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
24197 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
24198 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
24199 (regex_compile): Make the compiled pattern usable both for
24200 multibyte and unibyte targets.
24201 (analyse_first): Make the fastmap usable both for multibyte and
24202 unibyte targets.
24203 (TRANSLATE_VIA_MULTIBYTE): Delete.
24204 (re_match_2_internal): Pay attention to the case that the
24205 multibyteness of bufp and target may be different.
24206
242072008-02-01 Kenichi Handa <handa@m17n.org>
24208
24209 * xdisp.c (x_produce_glyphs): When a font is not found, make the
24210 empty box occupy at least one column width.
24211
242122008-02-01 Miles Bader <miles@gnu.org>
24213
24214 * Makefile.in: Remove redundant HAVE_XFT clause.
24215
242162008-02-01 Kenichi Handa <handa@m17n.org>
24217
24218 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
24219
242202008-02-01 Kenichi Handa <handa@m17n.org>
24221
24222 * fontset.c (Finternal_char_font): Fix for the case of POSITION
24223 being nil.
24224
242252008-02-01 Kenichi Handa <handa@m17n.org>
24226
24227 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
24228
242292008-02-01 Kenichi Handa <handa@m17n.org>
24230
24231 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
24232
242332008-02-01 Kenichi Handa <handa@m17n.org>
24234
24235 * search.c (simple_search): Fix previous change.
24236
242372008-02-01 Kenichi Handa <handa@m17n.org>
24238
24239 * xftfont.c (ftfont_font_format): Extern declaration.
24240
24241 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
24242
24243 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
24244 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
24245
24246 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
24247 (ftfont_font_format): Fix previous change.
24248
24249 * font.h (Ffont_xlfd_name): EXFUN it.
24250
24251 * font.c (font_parse_xlfd): Fix the array size of `f'.
24252 (register_font_driver): Use EQ to compare driver->type.
24253
24254 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
24255 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
24256 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
24257
242582008-02-01 Kenichi Handa <handa@m17n.org>
24259
24260 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
24261 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
24262
242632008-02-01 Kenichi Handa <handa@m17n.org>
24264
24265 * xfont.c (xfont_open): Set font->format.
24266
24267 * xftfont.c (xftfont_open): Set font->format.
24268
24269 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
24270 (ftfont_list): Include FC_FONTFORMAT in FcObject.
24271 (ftfont_open): Set font->format.
24272 (ftfont_font_format): New function.
24273
24274 * font.h (struct font): New member format.
24275
24276 * font.c (Qopentype): New variable.
24277 (syms_of_font): Defsym it.
24278 (Fquery_font): Change the format of the last element of the return
24279 value.
24280
242812008-02-01 Kenichi Handa <handa@m17n.org>
24282
24283 * xfns.c (xic_create_xfontset): Try the default fontset name as a
24284 last resort.
24285
242862008-02-01 Kenichi Handa <handa@m17n.org>
24287
24288 * coding.c (detect_coding_charset): Fix detection of multi-byte
24289 charset.
24290
242912008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
24292
24293 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
24294
242952008-02-01 Kenichi Handa <handa@m17n.org>
24296
24297 * xdisp.c (get_next_display_element): Set it->face_id for the
24298 first component of a composition.
24299 (x_produce_glyphs): Check if the font is changed or not for composition.
24300
243012008-02-01 Kenichi Handa <handa@m17n.org>
24302
24303 * fontset.c (Qlatin): New variable.
24304 (syms_of_fontset): Define it as a lisp symbol.
24305 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
24306
243072008-02-01 Kenichi Handa <handa@m17n.org>
24308
24309 * font.c (font_unparse_fcname): Pay attention to the case that
24310 some of font property is a null string.
24311
243122008-02-01 Kenichi Handa <handa@m17n.org>
24313
24314 * term.c: Include "composite.h".
24315 (encode_terminal_code): Output all components of composition.
24316 Check the size of encode_terminal_src.
24317 (produce_glyphs): For composition, call produce_composite_glyph.
24318 (append_composite_glyph, produce_composite_glyph): New functions.
24319
24320 * xdisp.c (x_produce_glyphs): In handling composition, if a font
24321 is not found, get font_info from the current ascii face.
24322
243232008-02-01 Kenichi Handa <handa@m17n.org>
24324
24325 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
24326 buffer-file-name to Qnil before calling insert_from_buffer.
24327
24328 * font.c (font_unparse_fcname): Pay attention to the case that
24329 foundry is a null string.
24330
243312008-02-01 Kenichi Handa <handa@m17n.org>
24332
24333 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
24334
24335 * font.c (Qunicode_sip): New variable.
24336 (syms_of_font): Declare it as a Lisp symbol.
24337
24338 * font.h (Qunicode_sip): Extern it.
24339
243402008-02-01 Kenichi Handa <handa@m17n.org>
24341
24342 * composite.c (get_composition_id): Pay attention to TAB component.
24343
24344 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
24345 TAB. Adjust for the change of s->char2b which always points to
24346 the first element of allocated memory.
24347
24348 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
24349
24350 * xdisp.c (handle_composition_prop): Set it->c to the first
24351 non-TAB component.
24352 (fill_composite_glyph_string): Change argument.
24353 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
24354 (x_produce_glyphs): Fix handling of left/right padding.
24355
243562008-02-01 Kenichi Handa <handa@m17n.org>
24357
24358 * coding.c (detect_coding_system): Fix for handling off
24359 inhibit_iso_escape_detection. Fix for the case that no coding
24360 system is defined for a specific coding category.
24361
243622008-02-01 Kenichi Handa <handa@m17n.org>
24363
24364 * font.c (font_matching_entity): Delete unused local var.
24365
24366 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
24367 opening a font.
24368
24369 * fileio.c (Finsert_file_contents): On recovering a file, assume
24370 Unix-like eol.
24371 (choose_write_coding_system): On auto-saving a file, force
24372 Unix-like eol.
24373
24374 * coding.c (setup_coding_system): Fix setting of
24375 coding->common_flags based on eol_type.
24376 (coding_inherit_eol_type): If PARENT is not nil, be sure to
24377 inherit from it.
24378
243792008-02-01 Kenichi Handa <handa@m17n.org>
24380
24381 * alloc.c (NSTATICS): Increas to 0x600.
24382
243832008-02-01 Kenichi Handa <handa@m17n.org>
24384
24385 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
24386 (ftfont_list): Don't check :name property.
24387 (ftfont_match): New function.
24388 (ftfont_pattern_entity): If the pattern doesn't contain
24389 FC_SPACING, don't assume FC_MONO.
24390
24391 * font.h (struct font_driver): New member `match'.
24392 (font_update_drivers): Adjust prototype.
24393
24394 * font.c (font_parse_fcname, font_parse_name): Don't change :name
24395 property of FONT.
bba3e508
SM
24396 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
24397 Define them unconditionally.
aac0c6e3
MR
24398 (font_matching_entity): New function.
24399 (font_open_by_name): Try font_matching_entity if exact match is
24400 not found.
24401 (font_update_drivers): Delete the arg FONT. Return a list of
24402 actually used backends. Don't free faces, font caches here.
24403 Don't store data in frame parameters. Don't call x_set_font.
24404 (Ffont_spec): Store :name property as is.
24405 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
24406 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
24407 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
24408 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
24409 Call font->driver->otf_gsub instead of font_otf_gsub.
24410
24411 * frame.c (x_set_font_backend): Do more works that were done in
24412 font_update_drivers before.
24413
24414 * xfont.c (xfont_match): New function.
24415 (xfont_driver): Set xfont_driver.match to xfont_match.
24416 (xfont_draw): Set font in GC if necessary.
24417
24418 * ftxfont.c (ftxfont_match): New function.
24419 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
24420
24421 * xftfont.c (xftfont_match): New function.
24422 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
24423
244242008-02-01 Kenichi Handa <handa@m17n.org>
24425
24426 * font.h (struct font): New member scalable.
24427 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
24428 (font_otf_gsub): Adjust prototype.
24429
24430 * font.c (font_otf_capability): Fix handling of the default langsys.
24431 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
24432 Check the contents of SPEC.
24433 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
24434 (check_gstring): New function.
24435 (REPLACEMENT_CHARACTER): New macro.
24436 (font_otf_gsub): New arg alternate_subst. Be sure to set all
24437 glyph codes of GSTRING.
24438 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
24439 (font_prepare_composition): Set cmp->glyph_len.
24440 (font_open_entity): Set font->scalable.
24441 (Ffont_get): Handle :otf property.
bba3e508
SM
24442 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
24443 New functions.
aac0c6e3
MR
24444 (Fquery_font): Use font->font.full_name.
24445 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
24446 Sfont_otf_alternates.
24447
24448 * ftfont.c (ftfont_open): Set font->font.full_name and
24449 font->font.name properly. Fix calculation of font->font.height
24450 and font->min_width.
24451
24452 * ftxfont.c (ftxfont_create_gcs): New function.
24453 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
24454 (ftxfont_draw_backgrond): Fix filling region.
24455 (ftxfont_default_fid): New function.
24456 (ftxfont_open): Set xfont->fid to the return value of
24457 ftxfont_default_fid.
24458 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
24459 (ftxfont_done_face): Free only GCs that are created by
24460 ftxfont_create_gcs.
24461 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
24462
24463 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
24464 Clip to src->width, etc (not src->clip_XXX).
24465
24466 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
24467 FontBackend frame parameter.
24468
244692008-02-01 Kenichi Handa <handa@m17n.org>
24470
24471 * font.h (struct font_driver_list): New member `on'.
24472 (Fclear_font_cache): EXFUN it.
24473 (font_update_drivers): Extern it.
24474
24475 * font.c (font_unparse_fcname): Fix typo (swidth->width).
24476 (font_list_entities): Check driver_list->on.
40b1a3a9 24477 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
24478 (font_update_drivers): New function.
24479 (Fclear_font_cache): Check driver_list->on.
24480
24481 * frame.h (Qfont_backend): Extern it.
24482 (x_set_font_backend): Extern it.
24483
24484 * frame.c (Qfont_backend): New variable.
24485 (frame_parms): New element for font-backend.
24486 (x_set_font_backend): New function.
24487
24488 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
24489 FontBackend frame parameter.
24490 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
24491 x_set_font_backend.
24492
24493 * xfont.c (xfont_list): Don't try listing by :name property if the
24494 name is not for XLFD.
24495
244962008-02-01 Kenichi Handa <handa@m17n.org>
24497
24498 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
24499 (LGLYPH_SET_TO): New macros.
24500 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
24501 element of G is vector or not.
24502 (font_at): Extern it.
24503
24504 * font.c: Include window.h.
24505 (font_lispy_object): New function.
24506 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
24507 end of valid glyph.
24508 (font_close_object): Fix getting (struct font *).
24509 (font_at): New function.
24510 (Ffont_get): If FONT is a font-object, get entity from it.
24511 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
24512 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
24513 Fix range check.
aac0c6e3
MR
24514 (Ffont_at): New function.
24515 (syms_of_font): Defsubr Sfont_at.
24516
24517 * xdisp.c (it_props): Move the entry for Qauto_composed to just
24518 before the entry for Qcomposition.
24519 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
24520 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
24521 the font in gstring.
24522 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
24523 LGLYPH_FORM (g) to detect the end of valid glyph.
24524 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
24525 we are composing with gstring.
24526
24527 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
24528 Check if adjustment is vector or not.
24529
24530 * Makefile.in (font.o): Make it depends on window.h.
24531
245322008-02-01 Kenichi Handa <handa@m17n.org>
24533
24534 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
24535 adjustment is vector or not.
24536
245372008-02-01 Miles Bader <miles@gnu.org>
24538
24539 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
24540
245412008-02-01 Kenichi Handa <handa@m17n.org>
24542
24543 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 24544 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
24545 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
24546
24547 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
24548 (DEVICE_DELTA): Fix typo.
24549 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
24550 LGLYPH format.
24551
24552 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24553 the change of LGLYPH format.
24554
245552008-02-01 Kenichi Handa <handa@m17n.org>
24556
24557 * ftfont.c (ftfont_list): Fix typo.
24558 (ftfont_build_basic_charsets): Don't include letters with diacritics.
24559
245602008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24561
24562 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
24563
24564 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
24565 xftface_info is non-NULL.
24566
245672008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24568
24569 * ftfont.c (ftfont_list): Move misplaced #endif.
24570
245712008-02-01 Kenichi Handa <handa@m17n.org>
24572
24573 * ftfont.c (ftfont_list): Pay attention to the case that
24574 FC_CAPABILITY is not defined.
24575
245762008-02-01 Kenichi Handa <handa@m17n.org>
24577
24578 * xftfont.c (xftfont_open): Set charset related members to -1.
24579
24580 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
24581 QCname.
24582 (ftfont_open): Set charset related members to -1.
24583
24584 * fontset.c (Votf_script_alist): New variable.
24585 (syms_of_fontset): Initialize it.
24586 (fontset_font): Delete unused variable.
24587
24588 * fontset.h (Votf_script_alist): Extern it.
24589
24590 * font.c (font_find_for_lface): Optimize code.
24591
24592 * font.h (font_close_object, font_merge_old_spec): Extern them.
24593
245942008-02-01 Kenichi Handa <handa@m17n.org>
24595
24596 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
24597 (syms_of_font): Initialize them.
24598 (font_pixel_size): Allow float value in dpi.
24599 (font_prop_validate_type): Delete.
24600 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
24601 Change caller.
24602 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
24603 (font_prop_validate_extra): Delete.
24604 (font_prop_validate_spacing): New function.
24605 (font_property_table): Add elements for all known properties.
bba3e508
SM
24606 (get_font_prop_index): Rename from check_font_prop_name.
24607 New argument FROM. Change caller.
aac0c6e3
MR
24608 (font_prop_validate): Validate all known properties.
24609 (font_put_extra): Delete argument force. Change caller.
24610 (font_expand_wildcards): Make it static. Fix the way of shrinking
24611 the possible range.
24612 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
24613 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
24614 Change caller.
24615 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
24616 (font_parse_fcname): Delete argument merge. Fix parsing of point
24617 size. Don't validate properties values here. Change caller.
24618 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
24619 (font_open_by_name): Delete unused variable.
24620 (Ffont_spec): Likewise. Validate property values.
24621 (Ffont_match_p): New function.
24622
24623 * font.h (QCscalable): Extern it.
24624 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
24625
24626 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
24627
24628 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
24629 (xfont_list_pattern): New function.
24630 (xfont_list): Use xfont_list_pattern.
24631
246322008-02-01 Kenichi Handa <handa@m17n.org>
24633
24634 * font.h (Flist_fonts): EXFUN it.
24635
246362008-02-01 Jason Rumney <jasonr@gnu.org>
24637
24638 * w32term.c (w32_initialize): Add back smoothing_type and
24639 smoothing_enabled definitions.
24640
246412008-02-01 Kenichi Handa <handa@m17n.org>
24642
24643 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
24644 s->face->font on determining underline position.
24645
246462008-02-01 Kenichi Handa <handa@m17n.org>
24647
24648 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
24649 (font_has_char): Accept font-object too.
24650 (font_find_for_lface): Try at first with a size specified in face.
24651
246522008-02-01 Kenichi Handa <handa@m17n.org>
24653
24654 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
24655 font_open_by_name.
24656
246572008-02-01 Kenichi Handa <handa@m17n.org>
24658
24659 * font.h (QCspacing, QCdpi): Extern them.
24660 (enum font_spacing): New enum.
24661 (FONT_PIXEL_SIZE_QUANTUM): New macro.
24662
24663 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
24664 (QCspacing, QCdpi): New variables.
24665 (syms_of_font): Initialize them.
24666 (font_pixel_size): New function.
24667 (font_put_extra): New function.
24668 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
24669 in FONT_EXTRA.
24670 (font_parse_fcname): Handle enumerated values (e.g. bold).
24671 Fix handling font size. Add QCname property that contains only
24672 unknown properties.
24673 (font_score): Change argument. Change caller. Pay attention to
24674 FONT_PIXEL_SIZE_QUANTUM.
24675 (font_sort_entites, font_list_entities, font_find_for_lface)
24676 (font_open_for_lface, font_open_by_name): Fix handling of font size.
24677 (Ffont_spec): Add QCname property that contains only unknown properties.
24678
bba3e508
SM
24679 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
24680 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
24681 listed font. Don't include scalable in pattern. Pay attention to
24682 FONT_PIXEL_SIZE_QUANTUM.
24683
246842008-02-01 Kenichi Handa <handa@m17n.org>
24685
24686 * font.c (font_parse_fcname): Fix parsing of point-size.
24687 (font_unparse_fcname): Produce symbolic names for style properties.
24688 (font_list_entities): Handle float size correctly.
24689 (font_open_by_name): Prefer `normal' property values if the name
24690 doesn't specify them.
24691
24692 * fontset.c (Finternal_char_font): Use font_get_name, not
24693 Ffont_xlfd_name.
24694
24695 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
24696 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
24697 pattern. Don't force scalable.
24698
24699 * xftfont.c (xftfont_open): For generating a name, start from
24700 96-byte buffer.
24701
247022008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24703
24704 * frame.h (x_new_fontset2): Fix prototype.
24705
247062008-02-01 Kenichi Handa <handa@m17n.org>
24707
24708 * font.h (struct font_driver): Delete member parse_name.
24709 (font_match_p, font_get_spec, font_parse_fcname)
24710 (font_unparse_fcname): Extern them.
24711 (font_get_name): Adjust prototype.
24712
24713 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
24714 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
24715 (font_expand_wildcards): Fix handling ENCODING field.
24716 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
24717 (font_parse_fcname): New function.
24718 (font_unparse_fcname): New function.
24719 (font_parse_name): New function.
24720 (font_match_p): New function.
24721 (font_get_name): Change return value to Lisp string.
24722 (font_get_spec): New function.
24723 (Qunspecified, Qignore_defface): Don't extern them.
24724 (font_find_for_lface): Assume that LFACE is fully specified.
24725 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
24726 object, use it for FACE.
24727 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
24728 driver->parse_name.
24729 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
24730
24731 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
24732 prototype.
24733
24734 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
24735 argument F. Don't call Fnew_fontset. Instead, directly call
24736 make_fontset.
24737
24738 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
24739
24740 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
24741 of x_new_fontset2.
24742
24743 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
24744 (Qsans__serif): New variables.
24745 (ftfont_generic_family_list): New variable.
24746 (syms_of_ftfont): Initialize the above variables.
24747 (ftfont_pattern_entity): Delete argument NAME.
24748 (ftfont_list_generic_family): New function.
24749 (ftfont_parse_name): Delete this function.
24750 (ftfont_list): Try generic family only when FcFontList found no font.
24751 (ftfont_list_family): Fix args to FcObjectSetBuild.
24752
24753 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
24754 object in attrs[LFACE_FONT_INDEX].
24755 (set_lface_from_font_name): Cancel all changes for font-backend.
24756 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
24757 function.
24758 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
24759 font object in QCfont attribute.
24760 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
24761 (realize_default_face) [USE_FONT_BACKEND]: Call
24762 set_lface_from_font_and_fontset.
24763
24764 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
24765 "fixed", and signal error here if no suitable font was found.
24766
24767 * xfont.c (xfont_parse_name): Delete this function.
24768
24769 * xftfont.c (xftfont_open): Change coding style of error
24770 handling. Generate fontconfig's fontname pattern.
24771
24772 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
24773 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
24774
24775 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
24776 Both args FONTSET and FONT_OBJECT must be existing ones.
24777
247782008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24779
24780 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
24781
247822008-02-01 Kenichi Handa <handa@m17n.org>
24783
24784 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
24785
24786 * font.h (struct font): Fix typo.
24787
24788 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
24789 XLFD_XXX_INDEX.
24790 (enum xlfd_field_mask): New enum.
ef1b0ba7 24791 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
24792 are followed by non-digits, return a symbol.
24793 (font_expand_wildcards): New function.
24794 (font_parse_xlfd): Fix wildcard handling.
24795 (Ffont_spec): If :name is specified, reflect the info in the other
24796 properties.
24797
24798 * ftfont.c (ftfont_pattern_entity): Fix typo.
24799 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
24800 locale.
24801
248022008-02-01 Kenichi Handa <handa@m17n.org>
24803
24804 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
24805
24806 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
24807 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
24808 registry doesn't specify encoding part.
24809 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
24810 (font_open_by_name): At first try parsing the name.
24811 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
24812 as Lisp symbols.
24813
24814 * fontset.c (reorder_font_vector): Pay attention to the case that
24815 the 3rd element of font_def is nil.
24816 (fontset_font): For the default fontset, append one more fontset
24817 elements for a script-based font specification. Don't add script
24818 attribute on finding a font.
24819 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
24820 font name.
24821 (fontset_ascii_font): If a font can't be opened, return nil.
24822
24823 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
24824 (ftfont_pattern_entity): New function.
24825 (ftfont_get_cache): Assume that freetype_font_cache is already
24826 initialized.
24827 (ftfont_list): Handle the case that a file is specified in font
24828 name. Use ftfont_pattern_entity to generate entities.
24829 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
24830 (syms_of_ftfont): Initialize freetype_font_cache.
24831
24832 * xftfont.c (xftfont_open): Make the font name fontconfig's
24833 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
24834 (xftfont_close): Free font->font.name if not NULL.
24835
24836 * xfont.c (xfont_list): If script is specified for a font, return
24837 null_vector.
24838 (xfont_list_family): Declare argument type.
24839
24840 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
24841 name, set LFACE_FONT (lface) to nil.
24842
24843 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
24844 return Qnil.
24845
248462008-02-01 Kenichi Handa <handa@m17n.org>
24847
24848 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
24849 (standard_args): Add "-enable-font-backend".
24850
248512008-02-01 Kenichi Handa <handa@m17n.org>
24852
24853 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
24854 (struct xftdraw_list, xftdraw_list): Delete them.
24855 (register_xftdraw, check_xftdraw): Delete them.
24856 (xftfont_prepare_face): Don't call register_xftdraw.
24857 (xftfont_done_face): Don't call check_xftdraw.
24858 (xftfont_draw): Get background color only when with_background is
24859 nonzero.
24860
24861 * xfont.c (xfont_encode_char): Fix calculation of char2b.
24862
248632008-02-01 Kenichi Handa <handa@m17n.org>
24864
24865 These changes are for the new font handling codes.
24866
24867 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
24868 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
24869 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
24870 (FONTSRC, FONTOBJ): New variables.
24871 (obj): Add $(FONTOBJ).
24872 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
24873 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
24874 @LIBOTF_LIBS@.
24875 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
24876 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
24877
24878 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
24879
24880 * character.h (Vscript_representative_chars): Extern it.
24881
24882 * character.c (Vscript_representative_chars): New variable.
24883 (syms_of_character): Declare it as a Lisp variable.
24884
24885 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
24886 enable_font_backend is nonzero, accept the composition method
24887 COMPOSITION_WITH_GLYPH_STRING.
24888
24889 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
24890 enumeration COMPOSITION_WITH_GLYPH_STRING.
24891
24892 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
24893 members clip_x, clip_y, clip_width, and clip_height.
24894 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
24895
24896 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
24897 --enable-font-backend. Call syms_of_font.
24898
24899 * fns.c (assoc_no_quit): New function.
24900
24901 * fontset.h (FONT_INFO_FROM_FACE): New macro.
24902 (face_for_font, new_fontset_from_font)
24903 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
24904
24905 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
24906 (fontset_font, fontset_ascii, face_for_char)
24907 (make_fontset_for_ascii_face, Ffont_info)
24908 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
24909 is nonzero, use font-backend mechanism.
24910 (find_font_encoding): Make it non-static.
24911 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
24912 New functions.
24913
24914 * frame.h (struct frame): New members resx and resy.
24915 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
24916 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
24917
24918 * frame.c [USE_FONT_BACKEND]: Include "font.h".
24919 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
24920
24921 * lisp.h (assoc_no_quit): Extern it.
24922
24923 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
24924 Through out the file, use FONT_INFO_FROM_FACE instead of
24925 FONT_INFO_FROM_ID, use get_per_char_metric instead of
24926 rif->per_char_metric.
24927 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
24928 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
24929 (get_glyph_face_and_encoding, fill_composite_glyph_string)
24930 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24931 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
24932 nonzero, use font-backend mechanism.
24933 (get_per_char_metric): New function.
24934
24935 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
24936 (set_lface_from_font_name)
24937 (set_font_frame_param, free_realized_face)
24938 (prepare_face_for_display, clear_face_gcs)
24939 (Finternal_set_font_selection_order, realize_x_face)
24940 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
24941 font-backend mechanism.
24942 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
24943 (load_face_font) [USE_FONT_BACKEND]: Abort.
24944 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
24945 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
24946
24947 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
24948 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
24949 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
24950 nonzero, register all available font drivers.
24951 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
24952 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
24953
24954 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
24955 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
24956 (x_set_glyph_string_clipping_exactly)
24957 (x_compute_glyph_string_overhangs)
24958 (x_draw_glyph_string_foreground)
24959 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
24960 (x_free_frame_resources) [USE_FONT_BACKEND]: If
24961 enable_font_backend is nonzero, use font-backend mechanism.
24962 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
24963
249642008-02-01 Kenichi Handa <handa@m17n.org>
24965
24966 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
24967 system_eol_type.
24968 (syms_of_coding): Initialize system_eol_type.
24969
24970 * process.c (Fset_process_coding_system): Inherit system's eol
24971 format if necessary.
24972
249732008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24974
24975 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
24976
249772008-02-01 Kenichi Handa <handa@m17n.org>
24978
24979 * coding.c (decode_eol): Pay attention to buffer relocation in
24980 del_range_2.
24981 (decode_coding): Call decode_eol before restoring undo_list.
24982
249832008-02-01 Kenichi Handa <handa@m17n.org>
24984
24985 * charset.c (Fdefine_charset_internal): Fix setting of
24986 emacs_mule_bytes.
24987
249882008-02-01 Kenichi Handa <handa@m17n.org>
24989
24990 * keyboard.c (read_char): Check if C is a character or not before
24991 looking up Vkeyboard_translate_table.
24992
249932008-02-01 Kenichi Handa <handa@m17n.org>
24994
bba3e508
SM
24995 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
24996 Fix condition to terminate the loop.
aac0c6e3
MR
24997
249982008-02-01 Kenichi Handa <handa@m17n.org>
24999
25000 * coding.c (produce_composition): Compare charbuf[i] instead of
25001 args[i] against 0.
25002 (Fterminal_coding_system): Use EQ to compare Lisp objects.
25003
250042008-02-01 Kenichi Handa <handa@m17n.org>
25005
25006 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25007 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25008 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25009 detect_coding.
25010 (emacs_mule_char): Handle old style (Emacs 20) component character
25011 of a composition.
25012 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25013 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25014 composition rule.
25015 (decode_coding_emacs_mule): Handle invalid bytes correctly.
25016
250172008-02-01 Kenichi Handa <handa@m17n.org>
25018
25019 * coding.c (encode_coding_ccl): Allocate destination dynamically
25020 when necessary.
25021
250222008-02-01 Kenichi Handa <handa@m17n.org>
25023
25024 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
25025 the loop. When quitted, show a proper error message.
25026
250272008-02-01 Kenichi Handa <handa@m17n.org>
25028
bba3e508
SM
25029 * xterm.c (x_set_glyph_string_clipping_exactly):
25030 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
25031
25032 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
25033 character sequence.
25034 (Fccl_execute_on_string): Use ASET, not XSET.
25035
250362008-02-01 Kenichi Handa <handa@m17n.org>
25037
25038 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
25039
250402008-02-01 Kenichi Handa <handa@m17n.org>
25041
25042 * coding.c (decode_coding): Fix the condition of terminating the
25043 decoding loop.
25044
250452008-02-01 Kenichi Handa <handa@m17n.org>
25046
25047 * data.c (Faset): On setting a character bigger than 255 in a
25048 unibyte string, signal an error instead of make the string multibyte.
25049
250502008-02-01 Kenichi Handa <handa@m17n.org>
25051
25052 * charset.c (map_charset_chars): Fix for ascii-compatible charset
25053 made by a mapping table.
25054
250552008-02-01 Kenichi Handa <handa@m17n.org>
25056
25057 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
25058 not.
25059 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
25060 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
25061
bba3e508
SM
25062 * xterm.c (x_draw_composite_glyph_string_foreground):
25063 Check s->face is NULL or not.
aac0c6e3
MR
25064
250652008-02-01 Kenichi Handa <handa@m17n.org>
25066
25067 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
25068 (x_draw_glyph_string): Fix drawing of right_overhang and
25069 left_overhang around/on cursor.
25070
25071 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
25072
250732008-02-01 Kenichi Handa <handa@m17n.org>
25074
25075 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
25076
250772008-02-01 Kenichi Handa <handa@m17n.org>
25078
25079 * coding.c (Fdefine_coding_system_internal)
25080 (Fdefine_coding_system_alias): Avoid a duplicated element in
25081 Vcoding_system_alist.
25082
250832008-02-01 Kenichi Handa <handa@m17n.org>
25084
25085 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
25086
25087 * coding.c (Qcoding_system_define_form): New variable.
25088 (syms_of_coding): Intern and staticpro it.
25089 (Fcoding_system_p): Check Qcoding_system_define_form.
25090 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
25091
25092 * coding.h (CODING_SYSTEM_P): If ID is not available, call
25093 Fcoding_system_p.
25094 (CHECK_CODING_SYSTEM): If ID is not available, call
25095 Fcheck_coding_system.
25096 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
25097 Try also Fcheck_coding_system.
25098
250992008-02-01 Kenichi Handa <handa@m17n.org>
25100
25101 * coding.c (code_conversion_restore): GCPRO arg.
25102
251032008-02-01 Kenichi Handa <handa@m17n.org>
25104
25105 * character.c (lisp_string_width): Check multibyteness of STRING.
25106
251072008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25108
25109 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
25110 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
25111 (decode_mac_font_name): Use decode_coding_c_string instead of
25112 decode_coding.
bba3e508
SM
25113 (x_load_font): Initialize fontp->fontset to -1.
25114 Set fontp->encoding_type.
aac0c6e3
MR
25115
251162008-02-01 Kenichi Handa <handa@m17n.org>
25117
25118 * search.c (search_buffer): Give up BM search on case-fold-search
25119 if one of a target character has a case-equivalence of different
3b59c351 25120 byte length even if that target character is an ASCII.
aac0c6e3
MR
25121 (simple_search): Fix calculation of byte length of matched text.
25122 (boyer_moore): Fix handling of case-equivalent multibyte characters.
25123
251242008-02-01 Kenichi Handa <handa@m17n.org>
25125
25126 * coding.c (decode_coding): Fix handling of invalid bytes.
25127
251282008-02-01 Kenichi Handa <handa@m17n.org>
25129
25130 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
25131 Unicode characters.
25132
251332008-02-01 Kenichi Handa <handa@m17n.org>
25134
25135 * coding.c (encode_coding_object): If a pre-write-conversion
25136 function makes a new buffer, kill it.
25137
251382008-02-01 Kenichi Handa <handa@m17n.org>
25139
25140 * coding.c (QCascii_compatible_p): New variable.
25141 (syms_of_coding): Initialize it.
25142 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
25143 calling string_char.
25144 (record_conversion_result): Add `default:' case.
25145 (coding_charset_list): Delete unused variable `coding_type'.
25146 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
25147 property in the plist of the coding system.
25148 (Fcoding_system_put): Check QCascii_compatible_p.
25149
251502008-02-01 Miles Bader <miles@gnu.org>
25151
25152 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
25153 removed calculation of frame `f', as it's now used.
25154
251552008-02-01 Kenichi Handa <handa@m17n.org>
25156
25157 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
25158 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
25159 (UNIDATA): New variable.
25160 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
25161 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
25162 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
25163
251642008-02-01 Kenichi Handa <handa@m17n.org>
25165
25166 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
25167 (admindir): New variable.
25168 ($(lispsource)international/charprop.el): New target.
25169
251702008-02-01 Miles Bader <miles@gnu.org>
25171
25172 * character.c (chars-in-region): Remove obsolete function.
25173 (syms_of_character): Remove its initialization.
25174
251752008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
25176
25177 * w32select.c (validate_coding_system)
25178 (setup_windows_coding_system): New functions.
bba3e508
SM
25179 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
25180 Use setup_windows_coding_system.
25181 (setup_config, Fw32_get_clipboard_data):
25182 Use validate_coding_system.
aac0c6e3
MR
25183 (Fx_selection_exists): Move call to setup_config to a place
25184 where signals are allowed.
25185
25186 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
25187 (Fcheck_coding_system): Add declarations.
25188
251892008-02-01 Kenichi Handa <handa@m17n.org>
25190
25191 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
25192
251932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25194
25195 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
25196 string as the second argument for x_new_fontset.
25197
251982008-02-01 Kenichi Handa <handa@m17n.org>
25199
25200 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
25201 (encode_coding_object): Use safe_call instead of call2.
25202
252032008-02-01 Kenichi Handa <handa@m17n.org>
25204
25205 * fontset.c (Fset_fontset_font): Check family element of a given vector.
25206
25207 * Makefile.in (lisp): Include charprop.el.
25208
252092008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25210
25211 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
25212 Not sure if it's unnecessary.
25213
252142008-02-01 Steven Tamm <steventamm@mac.com>
25215
25216 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
25217 some possibly unnecessary fontset checking code that crashed
25218 when creating a new frame.
25219
252202008-02-01 Kenichi Handa <handa@m17n.org>
25221
25222 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
25223 lookup_face.
25224
25225 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
25226
25227 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
25228
252292008-02-01 Kenichi Handa <handa@m17n.org>
25230
25231 * coding.c: Cancel the change done in HEAD on 2008-02-01.
25232 (coding_charset_list): New function.
25233
25234 * coding.h (coding_charset_list): Extern it.
25235
252362008-02-01 Kenichi Handa <handa@m17n.org>
25237
25238 * fontset.c (Fset_fontset_font): Call find_font_encoding with
25239 concatenation of family and registry.
25240
252412008-02-01 Kenichi Handa <handa@m17n.org>
25242
25243 * character.h (BYTE8_STRING): Fix typo.
25244
25245 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
25246 string to multibyte (sync to HEAD).
25247
25248 * casefiddle.c (casify_region): Handle changes in byte-length
25249 using replace_range_2 (sync to HEAD).
25250
252512008-02-01 Andreas Schwab <schwab@suse.de>
25252
25253 * chartab.c (map_char_table): GCPRO table and arg.
25254
252552008-02-01 Kenichi Handa <handa@m17n.org>
25256
25257 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
25258 already at limit.
25259
252602008-02-01 Kenichi Handa <handa@m17n.org>
25261
25262 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
25263 instead of fast_c_string_match_ignore_case.
bba3e508
SM
25264 (find_font_encoding): Change argument to Lisp_Object.
25265 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
25266 fast_c_string_match_ignore_case. Change caller.
25267
252682008-02-01 Kenichi Handa <handa@m17n.org>
25269
25270 * xdisp.c (get_next_display_element): In unibyte case, decide to
25271 display in octal form by checking a character by
25272 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
25273
25274 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
25275
25276 * character.c (unibyte_has_multibyte_table): New variable.
25277
25278 * character.h (unibyte_has_multibyte_table): Extern it.
25279 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
25280
252812008-02-01 Kenichi Handa <handa@m17n.org>
25282
25283 * coding.c (encode_coding_iso_2022): Fix handling of charset
25284 annotation.
25285
252862008-02-01 Kenichi Handa <handa@m17n.org>
25287
25288 * coding.c (setup_coding_system): If coding_system is nil, use
25289 Qundecided.
25290 (Fterminal_coding_system): Return nil if terminal coding system is
25291 `undecided'.
bba3e508
SM
25292 (syms_of_coding): Define coding-system `undecided' here.
25293 Setup terminal_coding as `undecided'.
aac0c6e3
MR
25294
252952008-02-01 Kenichi Handa <handa@m17n.org>
25296
bba3e508
SM
25297 * xdisp.c (message_dolog, set_message_1):
25298 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
25299
25300 * lread.c (read1): Fix reading of a char-table.
25301
25302 * print.c (print_object): Include sub char-table in circularities
25303 detection.
25304
253052008-02-01 Kenichi Handa <handa@m17n.org>
25306
25307 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
25308 Append the found sequences in car of ARGS instead of prepending.
25309
253102008-02-01 Kenichi Handa <handa@m17n.org>
25311
25312 * fileio.c (report_file_error): Make a unibyte string from
25313 strerror (errorno).
25314 (Fsubstitute_in_file_name): Fix the arg to
25315 unibyte_char_to_multibyte. It is evaluated twice.
25316
253172008-02-01 Kenichi Handa <handa@m17n.org>
25318
25319 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
25320
253212008-02-01 Kenichi Handa <handa@m17n.org>
25322
25323 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
25324 BOM is not found.
25325 (detect_coding, detect_coding_system): Optimization for ISO-2022
25326 when no 8-bit data is found.
25327
253282008-02-01 Jason Rumney <jasonr@gnu.org>
25329
25330 * w32fns.c (x_to_w32_font): Update to use new coding struct.
25331
253322008-02-01 Kenichi Handa <handa@m17n.org>
25333
25334 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
25335 CHARS.
25336
253372008-02-01 Steven Tamm <steventamm@mac.com>
25338
25339 * macterm.c (mac_encode_char): Add charset argument and update
25340 to use encoding_type.
25341 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
25342 switch to pure fontset.
25343 (decode_mac_font_name): Temporarily remove decoding.
25344 (x_font_name_to_mac_font_name): Temporarily remove encoding.
25345 (x_load_font): Temporarily remove encoding.
25346
253472008-02-01 Kenichi Handa <handa@m17n.org>
25348
25349 * xfaces.c (Fface_font): If frame is not on a window system,
25350 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
25351 refer to face->font.
25352 (split_font_name_into_vector, build_font_name_from_vector)
25353 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
25354 when HAVE_WINDOW_SYSTEM is defined.
25355
253562008-02-01 Kenichi Handa <handa@m17n.org>
25357
25358 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
25359 (x_produce_glyphs): Fix setting of members of cmp in case
25360 cmp->glyph_len is zero.
25361
25362 * fontset.c (Fset_fontset_font): Fix docstring.
25363 (Ffontset_info): Make it backward compatible. New arg ALL.
25364
253652008-02-01 Kim F. Storm <storm@cua.dk>
25366
25367 * process.c (read_process_output): Grow decoding_buf when needed;
25368 this could cause a crash in allocate_string and compact_small_strings.
25369
253702008-02-01 Kenichi Handa <handa@m17n.org>
25371
25372 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
25373
253742008-02-01 Kenichi Handa <handa@m17n.org>
25375
25376 * coding.c (setup_coding_system): Set coding->common_flags
25377 correctly for raw-text.
25378 (consume_chars): On encoding unibyte text by raw-text, don't check
25379 multibyte form.
25380 (encode_coding): On encoding by raw-text, never use translation tables.
25381
25382 * fileio.c (e_write): Short cut for the case of no encoding.
25383
253842008-02-01 Kenichi Handa <handa@m17n.org>
25385
25386 * coding.c (detect_coding, detect_coding_system): Delete unused
25387 variables.
25388
253892008-02-01 Kenichi Handa <handa@m17n.org>
25390
25391 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
25392 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
25393
253942008-02-01 Kenichi Handa <handa@m17n.org>
25395
bba3e508
SM
25396 * coding.c (Ffind_coding_systems_region_internal):
25397 Include raw-text and no-conversion in the result.
aac0c6e3
MR
25398
253992008-02-01 Kenichi Handa <handa@m17n.org>
25400
25401 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
25402 (load_font_get_repertory): Delete unnecessary check of ENCODING of
25403 FONT_DEF.
25404 (font_def_arg, add_arg, from_arg, to_arg): New args.
25405 (set_fontset_font): Change argument.
25406 (Fset_fontset_font): Fix for the case that TARGET is a script
25407 name and charset name.
25408 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
25409
254102008-02-01 Kenichi Handa <handa@m17n.org>
25411
25412 * fontset.c (fontset_font): Rename from fontset_face. Change return
25413 value.
25414 (face_suitable_for_char_p, face_for_char): Adjust for the change
25415 of fontset_font.
25416 (make_fontset_for_ascii_face): Fix setting of the fontset element
25417 for ASCII.
25418 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
25419 to get a font name.
25420 (Ffontset_info): Adjust for the change of fontset_font.
25421
25422 * coding.c (emacs_mule_char): Check invalid code more rigidly.
25423
25424 * character.h (LEADING_CODE_LATIN_1_MIN)
25425 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
25426
254272008-02-01 Kenichi Handa <handa@m17n.org>
25428
25429 * editfns.c (check_translation): New function.
25430 (Ftranslate_region_internal): Handle M:N mapping.
25431
254322008-02-01 Kenichi Handa <handa@m17n.org>
25433
25434 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
25435
254362008-02-01 Kenichi Handa <handa@m17n.org>
25437
25438 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
25439 goto invalid_code.
25440 (decode_coding_iso_2022): Fix handling of invalid designation.
25441
25442 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
25443 after calling code_conversion_save.
25444
254452008-02-01 Kenichi Handa <handa@m17n.org>
25446
25447 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
25448
25449 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
25450
25451 * fontset.c: Include "intervals.h".
25452 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
25453 (free_face_fontset, new_fontset_from_font_name):
25454 Fix Lisp_Object/int mixup.
aac0c6e3
MR
25455
25456 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
25457
25458 * coding.c: Add many prototypes for static functions.
25459 (get_translation_table): Allow max_lookup to be NULL.
25460 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
25461 (Funencodable_char_position, Fcheck_coding_systems_region):
25462 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
25463
254642008-02-01 Kenichi Handa <handa@m17n.org>
25465
25466 * coding.c (get_translation_table): Declare it as Lisp_Object.
25467 (LOOKUP_TRANSLATION_TABLE): New macro.
25468 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
25469 instead of CHAR_TABLE_REF.
25470
254712008-02-01 Kenichi Handa <handa@m17n.org>
25472
25473 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
25474 annotation data format.
25475 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
25476 Change arguments FROM and TO to single argument NCHARS. Change caller.
25477 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
25478 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25479 (decode_coding_ccl, decode_coding_charset): Pay attention to
25480 coding->charbuf_used.
25481 (get_translation): New function.
25482 (produce_chars): New arguments translation_table and last_block.
25483 Translate characters here. Return number of carryover chars.
25484 Change caller.
25485 (produce_composition): New argument pos. Change caller.
25486 Adjust for the change of annotation data format.
25487 (produce_charset, produce_annotation): Likewise.
25488 (decode_coding, encode_coding): Don't call translate_chars.
25489 (consume_chars): New arg translation_table. Change caller.
25490 (translate_chars): Delete.
25491 (syms_of_coding): Make translation-table's number of extra slots 2.
25492
254932008-02-01 Kenichi Handa <handa@m17n.org>
25494
25495 * search.c (simple_search): Fix setting this_pos_byte in backward
25496 search.
25497
25498 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
25499 byte sequence.
25500 (detect_coding_ccl): Fix setting of the variable valids.
25501
255022008-02-01 Kenichi Handa <handa@m17n.org>
25503
25504 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
25505
25506 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
25507
25508 * editfns.c (Ftranslate_region_internal): Rename from
25509 Ftranslate_region. Accept a char-table in TABLE.
25510 (syms_of_editfns): Defsubr Stranslate_region_internal.
25511
25512 * xfaces.c (set_lface_from_font_name): If a font is specified for
25513 a frame, generate a fontset from the font.
25514 (build_scalable_font_name): If the scalable font is requested for
25515 a specific size, don't change that size.
25516 (try_font_list): Try a scalable font also in the case that a
25517 pattern string is specified.
25518
255192008-02-01 Kenichi Handa <handa@m17n.org>
25520
25521 * xfaces.c (Fface_font): New optional arg CHARACTER.
25522
255232008-02-01 Kenichi Handa <handa@m17n.org>
25524
25525 * charset.h (CHARSET_OFFSET): New macro.
25526
255272008-02-01 Kenichi Handa <handa@m17n.org>
25528
25529 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
25530
25531 * fontset.c (fontset_face): Handle the case that repertory is a
25532 char-table.
25533 (find_font_encoding): Return nil for unknown encoding.
25534 (Fset_fontset_font): Ignore a font of unknown encoding.
25535
255362008-02-01 Kenichi Handa <handa@m17n.org>
25537
25538 * keymap.c (describe_vector): Handle default value of a char table.
25539
25540 * fontset.c (fontset_face): Handle fallback fonts correctly.
25541 (Ffontset_info): Return infomation about fallback fonts.
25542
255432008-02-01 Kenichi Handa <handa@m17n.org>
25544
25545 * fontset.c (FONTSET_DEFAULT): New macro.
25546 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
25547 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
25548 the case that it is nil.
25549 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
25550 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
25551
25552 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
25553 subset or superset.
25554
255552008-02-01 Kenichi Handa <handa@m17n.org>
25556
25557 * emacs.c (main): Call init_charset after syms_of_XXX.
25558
25559 * charset.c (Vcharset_map_directory): Delete.
25560 (Vcharset_map_path): New variable.
25561 (load_charset_map_from_file): Use Vcharset_map_path instead.
25562 (init_charset): Initialize Vcharset_map_path.
25563 (syms_of_charset): Delete declaration of "charset-map-directory",
25564 add declaration of "charset-map-path".
25565
255662008-02-01 Kenichi Handa <handa@m17n.org>
25567
25568 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
25569 ASCII only string.
25570
25571 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
25572
25573 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
25574 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
25575
255762008-02-01 Kenichi Handa <handa@m17n.org>
25577
25578 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
25579
25580 * coding.c (QCmnemonic, QCdefalut_char)
25581 (QCdecode_translation_table, QCencode_translation_table)
25582 (QCpost_read_conversion, QCpre_write_conversion): New variables.
25583 (get_translation_table): Return a list of translation tables if
25584 necessary.
25585 (decode_coding): Call get_translation_table with ENCODEP 0.
25586 (char_encodable_p): If translation_table is non-nil, always call
25587 translate_char.
25588 (Fdefine_coding_system_internal): Accept list of translation
25589 tables as :encode-translation-table and :decode-translation-table.
25590 (Fcoding_system_put): New function.
bba3e508
SM
25591 (syms_of_coding): Declare new symbols.
25592 Defsubr Scoding_system_put.
aac0c6e3
MR
25593 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
25594 typically JISX0212.
25595
25596 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
25597 when the charset is superset type.
25598
25599 * character.c (translate_char): Accept list of translation tables.
25600
256012008-02-01 Kenichi Handa <handa@m17n.org>
25602
25603 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
25604 (CODING_ATTR_TRANS_TBL): New macro.
25605
25606 * coding.c (get_translation_table): New function.
25607 (translate_chars): Fix the bug of skipping annotation data.
25608 (decode_coding, encode_coding): Utilize get_translation_table.
25609 (char_encodable_p, Funencodable_char_position): Translate char if
25610 necessary.
25611 (Ffind_coding_systems_region_internal)
25612 (Fcheck_coding_systems_region): Setup translation table for encode
25613 in a coding system attribute vector in advance.
25614 (Fdefine_coding_system_internal): Allow a symbol as translation
25615 table. For shift-jis type coding system, allow 4th charset.
25616
256172008-02-01 Kenichi Handa <handa@m17n.org>
25618
25619 * coding.c (decode_coding_sjis): Check the first byte rigidly.
25620
25621 * xdisp.c (get_next_display_element): Pass -1 as POS to
25622 FACE_FOR_CHAR if displaying a C-string.
25623
256242008-02-01 Kenichi Handa <handa@m17n.org>
25625
25626 * composite.c (get_composition_id): Handle xoff and yoff in a
25627 composition rule.
25628
25629 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
25630 (struct composition): New member lbearing and rbearing.
25631
25632 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
25633 (x_get_glyph_overhangs): Handle a composition glyph.
25634 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
25635
25636 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
25637 composition glyph.
25638
256392008-02-01 Kenichi Handa <handa@m17n.org>
25640
25641 * print.c: Include charset.h.
25642 (Vprint_charset_text_property): New variable.
25643 (Qdefault): Extern it.
25644 (PRINT_STRING_NON_CHARSET_FOUND)
25645 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
25646 (print_check_string_result): New variable.
25647 (print_check_string_charset_prop): New function.
25648 (print_prune_charset_plist): New variable.
25649 (print_prune_string_charset): New function.
25650 (print_object): Call print_prune_string_charset if
25651 Vprint_charset_text_property is not t.
25652 (print_interval): Print nothing if interval->plist is nil.
25653 (syms_of_print): Declare Vprint_charset_text_property as a lisp
25654 variable. Init and staticpro print_prune_charset_plist.
25655
256562008-02-01 Kenichi Handa <handa@m17n.org>
25657
25658 * fontset.c (new_fontset_from_font_name): Use the specified font
25659 for all characters in the new fontset.
25660
25661 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25662 OBJECT args.
25663
25664 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
25665 OBJECT args for composition too.
25666
25667 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25668 OBJECT args.
25669
256702008-02-01 Kenichi Handa <handa@m17n.org>
25671
25672 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
25673
25674 * fontset.c (reorder_font_vector): Adjust for the change of
25675 FONT_DEF format.
25676 (fontset_face): New arg id. Change caller.
25677 (face_for_char): New args pos and object.
25678 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
25679 (fs_query_fontset): Check NAME by Fassoc too.
25680 (Fset_fontset_font): Allow non-XLFD font name.
25681 (Ffontset_info): Adjust for the change of FONT_DEF format.
25682
25683 * fontset.h (face_for_char): Adjust prototype.
25684
25685 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
25686 (append_space, extend_face_to_end_of_line)
25687 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25688 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
25689
25690 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
25691 POS and OBJECT args.
25692
25693 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
25694 POS and OBJECT args.
25695
256962008-02-01 Jason Rumney <jasonr@gnu.org>
25697
25698 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
25699 of GlobalAlloc'ed memory.
25700
257012008-02-01 Kenichi Handa <handa@m17n.org>
25702
25703 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
25704
25705 * charset.h (charset_table_used): Delete extern.
25706
25707 * charset.c (charset_table_used): Make it static.
25708 (map_charset_chars): Fix args to c_function with.
25709
25710 * chartab.c (map_sub_char_table_for_charset): Fix args to
25711 c_function with.
25712
bba3e508
SM
25713 * coding.h (enum coding_result_code):
25714 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
25715
25716 * coding.c (Qinsufficient_source, Qinconsistent_eol)
25717 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
25718 (Vlast_code_conversion_error): New variables.
25719 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
25720 (ONE_MORE_BYTE): Record error if any instead of signaling an
25721 error. If non-ASCII multibyte char is found, return the negative
25722 value of the code. All callers changed to check it.
25723 (ONE_MORE_BYTE_NO_CHECK): Likewise.
25724 (record_conversion_result): New function. Change all codes setting
25725 coding->result to call this function.
25726 (detect_coding_utf_8, decode_coding_utf_8)
25727 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
25728 Don't use the local variable incomplete.
25729 (emacs_mule_char): Change the second arg to `const'.
25730 (decode_coding): Fix of flushing out unprocessed data.
25731 (make_conversion_work_buffer): Fix making of a work buffer.
25732 (decode_coding_object): Return coding->dst_object.
25733
25734 * fontset.c (set_fontset_font): Fix args.
25735
25736 * lisp.h (CHARACTERBITS): Define as 22.
25737
25738 * process.c (send_process): Be sure to set coding->src_multibyte.
25739
25740 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
25741
257422008-02-01 Kenichi Handa <handa@m17n.org>
25743
25744 * xdisp.c (handle_auto_composed_prop): Give limit to
25745 Fnext_single_char_property_change.
25746
257472008-02-01 Kenichi Handa <handa@m17n.org>
25748
25749 * composite.c (syms_of_composite): Don't make the composition hash
25750 table weak.
25751
25752 * fontset.c (Fset_fontset_font): Fix docstring.
25753
25754 * lisp.h (detect_coding_system): Adjust prototype.
25755
25756 * fileio.c (kill_workbuf_unwind): Delete this function.
25757 (Finsert_file_contents): Adjust the call of detect_coding_system.
25758 Get conversion_buffer by code_conversion_save. Use the macro
25759 CODING_MAY_REQUIRE_DECODING. After decoding, update
25760 coding_system.
25761
25762 * coding.h (make_conversion_work_buffer): Delete extern.
25763 (code_conversion_save): Extern it.
25764
25765 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
25766 (CODING_GET_INFO): Delete argument eol_type. Change callers.
25767 (decode_coding_utf_8): Don't do eol converion.
25768 (detect_coding_utf_16): Check coding->src_chars, not
25769 coding->src_bytes. Add heuristics for those that have no signature.
25770 (decode_coding_emacs_mule, decode_coding_iso_2022)
25771 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25772 Don't do eol converion.
25773 (adjust_coding_eol_type): Return a new coding system.
25774 (detect_coding): Don't detect eol. Fix for utf-16 detection.
25775 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
25776 each change.
25777 (decode_coding): Pay attention to undo_list. Do eol conversion for
25778 all types of coding-systems (if necessary).
25779 (Vcode_conversion_work_buf_list): Delete it.
25780 (Vcode_conversion_reused_workbuf): Rename from
25781 Vcode_conversion_reused_work_buf.
25782 (Vcode_conversion_workbuf_name): New variable.
25783 (reused_workbuf_in_use): New variable.
25784 (make_conversion_work_buffer): Delete the arg DEPTH.
25785 (code_conversion_restore): Change argument to cons.
25786 (code_conversion_save): Delete the argument BUFFER. Change callers.
25787 (detect_coding_system): New argument src_chars. Change callers.
25788 Fix for utf-16 detection.
25789 (init_coding_once): Don't use ISO_carriage_return.
25790 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
25791 reused_workbuf_in_use.
25792
257932008-02-01 Kenichi Handa <handa@m17n.org>
25794
25795 * keymap.c (store_in_keymap): Pay attention to the case that idx
25796 is a cons specifying a character range.
25797
257982008-02-01 Kenichi Handa <handa@m17n.org>
25799
25800 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
25801 HANDLED_RECOMPUTE_PROPS.
25802
25803 * coding.c (Fdefine_coding_system_internal): Fix checking of
25804 ascii compatibility.
25805
258062008-02-01 Kenichi Handa <handa@m17n.org>
25807
25808 * charset.c (find_charsets_in_text): Delete unused locale variable.
25809 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
25810
25811 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
25812 Resync charset_list to Vemacs_mule_charset_list.
25813
25814 * keymap.c (store_in_keymap): Pay attention to the case that idx
25815 is a cons specifying a character range.
25816
258172008-02-01 Kenichi Handa <handa@m17n.org>
25818
25819 * composite.c (update_compositions): Bind inhibit-read-only, etc
25820 to t before calling remove-list-of-text-properties.
25821
25822 * print.c (print_object): Always print ASCII chars as is.
25823
258242008-02-01 Kenichi Handa <handa@m17n.org>
25825
25826 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
25827
25828 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
25829 is a char table.
25830
258312008-02-01 Kenichi Handa <handa@m17n.org>
25832
25833 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
25834
258352008-02-01 Kenichi Handa <handa@m17n.org>
25836
25837 * xfaces.c (set_lface_from_font_name): Fix for the case that
25838 FONTNAME is not fontset name.
25839
258402008-02-01 Kenichi Handa <handa@m17n.org>
25841
25842 * fns.c (base64_encode_1): Fix previous change.
25843
258442008-02-01 Kenichi Handa <handa@m17n.org>
25845
25846 * fontset.c (set_fontset_font): New function.
25847 (Fset_fontset_font): If a font is specified for a charset, use
25848 map_charset_chars to store the font spec in a fontset.
25849
258502008-02-01 Kenichi Handa <handa@m17n.org>
25851
25852 * fontset.c (fontset_face): Create a fallback fontset on demand.
25853 (make_fontset): Don't create a fallback fontset here.
25854 (free_face_fontset): Free a fallback fontset (if any) too.
25855 (n_auto_fontsets): Delete this variable.
25856 (auto_fontset_alist): New variable.
25857 (new_fontset_from_font_name): Check auto_fontset_alist.
25858 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
25859 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
25860 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
25861 Defsubr Sfontset_list_all.
25862
258632008-02-01 Kenichi Handa <handa@m17n.org>
25864
25865 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
25866
258672008-02-01 Kenichi Handa <handa@m17n.org>
25868
25869 * fontset.c (Fnew_fontset): Check NAME more rigidly.
25870
258712008-02-01 Kenichi Handa <handa@m17n.org>
25872
25873 * editfns.c (Fgoto_char): Fix docstring.
25874
258752008-02-01 Kenichi Handa <handa@m17n.org>
25876
25877 * insdel.c (insert_from_gap): Adjust intervals correctly.
25878
258792008-02-01 Jason Rumney <jasonr@gnu.org>
25880
25881 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
25882 (pfnGetFontUnicodeRanges): New dynamically loaded function.
25883 (w32_initialize): Try to load it.
25884 (x_get_font_repertory): Use it if available.
25885 (w32_encode_char): Add shortcut for unicode output.
25886
25887 * w32fns.c (w32_load_system_font): Default charset to -1.
25888 (x_to_w32_charset): Match all fonts for unicode.
25889 (w32_to_x_charset): New parameter matching. Don't return partial
25890 or wildcard charsets.
25891 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
25892 (w32_codepage_for_font): Return CP_UNICODE for unicode.
25893 (w32_to_x_font): Match charset to real charset.
25894 (enum_font_cb2): Always list unicode versions.
25895
25896 * makefile.w32-in (temacs): Increase EMHEAP.
25897
258982008-02-01 Jason Rumney <jasonr@gnu.org>
25899
25900 * w32term.c (w32_encode_char): New charset parameter.
25901 font_info.encoding becomes encoding_type.
25902 (x_get_font_repertory): New function. Warning: stub only!
25903 (x_new_font): Return quickly if font already set.
25904 (x_new_fontset): fontsetname parameter is Lisp_Object.
25905 Use new fs_query_fontset. Try new_fontset_from_font_name.
25906 Use fontset_name for return value.
25907
25908 * w32term.h: Declare x_get_font_repertory.
25909
25910 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
25911 place of find_charset_in_text. Use encode_coding_object in place
25912 of encode_coding.
25913 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
25914 decode_coding.
25915
25916 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
25917 of x_new_fontset.
25918 (w32_load_system_font): Initialize charset as unicode.
25919 font_info.encoding becomes encoding_type.
25920 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
25921 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
25922 (syms_of_w32fns): Set get_font_repertory_func.
25923
25924 * w32console.c: Include character.h. Use terminal_encode_buffer
25925 from term.c.
bba3e508
SM
25926 (write_glyphs): Use new version of encode_terminal_code.
25927 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
25928
25929 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
25930 encoding becomes encoding_type.
25931
25932 * term.c (terminal_encode_buffer): Make externally visible.
25933
25934 * makefile.w32-in: Add character.h dependancies.
25935 (character.o, chartab.o): New targets.
25936
259372008-02-01 Kenichi Handa <handa@m17n.org>
25938
25939 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
25940 CODING_ID_EOL_TYPE.
25941
259422008-02-01 Andreas Schwab <schwab@suse.de>
25943
25944 * coding.c (produce_chars): Revert last change.
25945
259462008-02-01 Kenichi Handa <handa@m17n.org>
25947
25948 * charset.h (charset_unicode): Extern it.
25949
25950 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
25951 (find_charsets_in_text): Change format of the arc CHARSETS.
25952 New arg MULTIBYTE.
aac0c6e3
MR
25953 (Ffind_charset_region, Ffind_charset_string): Adjust for the
25954 change of find_charsets_in_text.
25955 (Fsplit_char): Fix doc. Never return unknown.
25956
25957 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
25958
bba3e508
SM
25959 * coding.c (Fdefine_coding_system_alias):
25960 Update Vcoding_system_list.
aac0c6e3
MR
25961
25962 * fontset.c (load_font_get_repertory): Pay attention to the case
25963 that ENCODING of a font is specified by a char-table.
25964
25965 * xterm.c (x_get_font_repertory): Handle the case that the
25966 encoding of font is other than Unicode.
25967
259682008-02-01 Kenichi Handa <handa@m17n.org>
25969
bba3e508
SM
25970 * term.c (encode_terminal_code): Don't handle glyph-table.
25971 Check if a character is encodable by the terminal coding system.
25972 If not, produces proper number of `?'s. Update
aac0c6e3
MR
25973 terminal_encode_buffer and terminal_encode_buf_size if necessary.
25974 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
25975
259762008-02-01 Kenichi Handa <handa@m17n.org>
25977
bba3e508
SM
25978 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
25979 New variables.
aac0c6e3
MR
25980 (encode_terminal_code): Change argument. Encode multiple
25981 characters at once. Store the result of encoding in
25982 terminal_encode_buffer.
25983 (write_glyphs, insert_glyphs): Adjust for the change of
25984 encode_terminal_code.
25985 (term_init): Initialize terminal_encode_buffer and
25986 terminal_encode_buf_size.
25987
25988 * coding.c (consume_chars): If coding->src_object is nil, don't
25989 check annotation.
25990
259912008-02-01 Kenichi Handa <handa@m17n.org>
25992
25993 * character.c (char_string): Use ASCII_CHAR_P instead of
25994 SINGLE_BYTE_CHAR_P.
25995
259962008-02-01 Kenichi Handa <handa@m17n.org>
25997
25998 * xdisp.c (handle_auto_composed_prop): Check if the last
25999 characters of auto-composed region is newly composed with the
26000 following characters.
26001 (handle_composition_prop): Fix checking of point being inside
26002 composition.
26003
260042008-02-01 Kenichi Handa <handa@m17n.org>
26005
26006 * fns.c (concat): Don't change multibyteness of the result by
26007 concatenating an 8-bit character.
26008
26009 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
26010 multibyteness of the result when newelt is an 8-bit character.
26011
260122008-02-01 Dave Love <fx@gnu.org>
26013
26014 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26015 EMACS_INT.
26016
26017 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26018
26019 * xfaces.c (face_numeric_value): Declare dim size_t.
26020 (Finternal_lisp_face_equal_p): Remove unused f.
26021
26022 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26023 (MATRIX_ROW): Remove unused vars.
26024 (draw_glyphs, x_insert_glyphs, fast_find_position)
26025 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
26026 byte/char counts.
26027
26028 * regex.c (regex_compile): Remove unused var.
26029
26030 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26031
26032 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
26033 (Faccessible_keymaps, where_is_internal): Remove unused vars.
26034
26035 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
26036
26037 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
26038
26039 * fileio.c (Fwrite_region): Remove unused var.
26040
26041 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
26042 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
26043
26044 * composite.c (Fremove_list_of_text_properties): Declare.
26045
26046 * coding.c (inhibit_pre_post_conversion): Remove (unused).
26047 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
26048 (coding_inherit_eol_type): Remove unused attrs.
26049 (detect_coding): Cast arg of detect_eol.
26050
26051 * charset.c (syms_of_charset): Remove unused var p.
26052 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
26053 byte/char counts.
26054
26055 * casetab.c (set_case_table): Remove unused var.
26056
bba3e508
SM
26057 * window.c (Fdisplay_buffer, Fframe_selected_window):
26058 Remove unused vars.
aac0c6e3
MR
26059
260602008-02-01 Dave Love <fx@gnu.org>
26061
26062 * xterm.c (x_bitmap_mask): Declare.
26063
260642008-02-01 Dave Love <fx@gnu.org>
26065
26066 * xterm.c (x_term_init): Fix type error.
26067
26068 * lisp.h: Add Funibyte_char_to_multibyte.
26069
26070 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
26071 (Fset_coding_system_priority): Doc fix.
26072
26073 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
26074
26075 * indent.c (check_composition): Make start and end EMACS_INT.
26076
26077 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
26078
26079 * xdisp.c (handle_composition_prop, check_point_in_composition):
26080 Make buffer positions EMACS_INT.
26081
26082 * composite.c (find_composition, run_composition_function)
26083 (update_compositions, Ffind_composition_internal): Make buffer
26084 positions EMACS_INT.
26085
bba3e508
SM
26086 * composite.h (find_composition, update_compositions):
26087 Make position args EMACS_INT.
aac0c6e3
MR
26088
26089 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
26090
26091 * intervals.c (get_property_and_range):
26092 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
26093
26094 * unexalpha.c: Don't include varargs.h.
26095
260962008-02-01 Dave Love <fx@gnu.org>
26097
26098 * coding.h (ENCODE_UTF_8): New.
26099
26100 * Makefile.in (gtkutil.o): Depend on coding.h.
26101
26102 * coding.c (Fset_coding_system_priority): Doc fix.
26103
261042008-02-01 Kenichi Handa <handa@m17n.org>
26105
26106 * fileio.c (Finsert_file_contents): Call setup_coding_system in
26107 the case of auto saving.
26108
261092008-02-01 Andreas Schwab <schwab@suse.de>
26110
bba3e508
SM
26111 * chartab.c (map_char_table, map_char_table_for_charset):
26112 Protect `range' from GC.
aac0c6e3
MR
26113
261142008-02-01 Kenichi Handa <handa@m17n.org>
26115
26116 * coding.c (decode_coding_sjis): Check bytes more rigidly.
26117
261182008-02-01 Kenichi Handa <handa@m17n.org>
26119
26120 * fileio.c (choose_write_coding_system): Return a decided coding system.
26121 (Fwrite_region): Set Vlast_coding_system_used to the return value
26122 of choose_write_coding_system.
26123
261242008-02-01 Kenichi Handa <handa@m17n.org>
26125
26126 * charset.c (Fset_charset_priority): Pay attention to duplicated
26127 arguments.
26128
26129 * coding.c (QCcategory): New variable.
26130 (syms_of_coding): Defsym it. Set all elements of
26131 Vcoding_category_table and their symbol values.
26132 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
26133 coding-category-XXX, and coding-category-list.
26134 (Fdefine_coding_system_internal): Add category in the plist.
26135
261362008-02-01 Kenichi Handa <handa@m17n.org>
26137
26138 * callproc.c (Fcall_process): Handle carryover correctly.
26139
26140 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
26141 (raw_text_coding_system): Check NILP (coding_system).
26142 (coding_inherit_eol_type): Check NILP (coding_system) and
26143 NILP (parent).
26144 (consume_chars): Fix for the case of raw-text.
26145
26146 * process.c (read_process_output): Handle carryover correctly.
26147
261482008-02-01 Dave Love <fx@gnu.org>
26149
26150 * regex.c (re_search_2): Fix last change.
26151
261522008-02-01 Kenichi Handa <handa@m17n.org>
26153
26154 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
26155 target_multibyte. Even in a unibyte case, return a converted
26156 multibyte char.
26157 (GET_CHAR_AFTER): New macro.
26158 (PATFETCH): Translate via multibyte char.
26159 (HANDLE_UNIBYTE_RANGE): Delete this macro.
26160 (SETUP_MULTIBYTE_RANGE): New macro.
26161 (regex_compile): Setup compiled code so that its multibyteness
26162 matches that of a target. Fix the handling of "[X-YZ]" using
26163 SETUP_MULTIBYTE_RANGE.
26164 (analyse_first) <charset>: For filling fastmap for all multibyte
26165 characters, don't check by BASE_LEADING_CODE_P.
26166 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
26167 the same as RE_MULTIBYTE_P (bufp) now.
26168 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
26169 (TARGET_CHAR_AND_LENGTH): Delete this macro.
26170 (TRANSLATE_VIA_MULTIBYTE): New macro.
26171 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
26172 It is the same as RE_MULTIBYTE_P (bufp) now.
26173 <exactn>: Translate via multibyte.
bba3e508
SM
26174 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
26175 Don't translate it.
aac0c6e3
MR
26176 <charset, charset_not>: Fetch a character by
26177 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
26178 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
26179 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
26180 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
26181 by GET_CHAR_AFTER.
26182 (bcmp_translate): Likewise.
26183
26184 * search.c (compile_pattern): Check the member target_multibyte,
26185 not the member multibyte of buf.
26186
26187 * lread.c (read1): While reading a string, set force_singlebyte
26188 and force_multibyte correctly.
26189
26190 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
26191 up of unibyte_to_multibyte_table.
26192
261932008-02-01 Kenichi Handa <handa@m17n.org>
26194
26195 * coding.c (setup_coding_system): If coding has
26196 post-read-conversion or pre-write-conversion, set
26197 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
26198 respectively.
26199 (decode_coding_gap): Run post-read-conversion if any.
26200
26201 * fileio.c (Finsert_file_contents): Even if we read into a
26202 unibyte buffer, check if we must decode the result or not.
26203
262042008-02-01 Kenichi Handa <handa@m17n.org>
26205
26206 * coding.c (make_conversion_work_buffer): Change the work buffer
26207 name to the same one as that of Emacs 21.
26208
262092008-02-01 Kenichi Handa <handa@m17n.org>
26210
26211 * coding.h (make_conversion_work_buffer): Adjust prototype.
26212 (code_conversion_restore): Don't extern it.
26213
26214 * coding.c (detected_mask): Delete unused variable.
26215 (decode_coding_iso_2022): Pay attention to the byte sequence of
26216 CTEXT extended segment, and retain those bytes as is.
26217 (decode_coding_ccl): Delete unused variable `valids'.
26218 (setup_coding_system): Delete unused variable `category'.
26219 (consume_chars): Delete unused variable `category'. Make it work
26220 for non-multibyte case.
26221 (make_conversion_work_buffer): Change argument.
26222 (saved_coding): Delete unused variable.
26223 (code_conversion_restore): Don't check saved_coding->destination.
26224 (code_conversion_save): New function.
26225 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
26226 instead of record_unwind_protect.
26227 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
26228 (detect_coding_system): Delete unused variable `mask'.
26229 (Fdefine_coding_system_internal): Delete unused variable id.
26230
26231 * fileio.c (kill_workbuf_unwind): New function.
26232 (Finsert_file_contents): On replacing, call
26233 make_conversion_work_buffer with correct args, and call
26234 record_unwind_protect with the first arg kill_workbuf_unwind.
26235
26236 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
26237
262382008-02-01 Kenichi Handa <handa@m17n.org>
26239
26240 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
26241 (fontset_add): Fix for the case that TO is less than TO1.
26242 (Ffontset_info): Don't use fallback fontset on checking the
26243 default fontset.
26244 (dump_fontset): New function for debugging.
26245
26246 * coding.c (Fdefine_coding_system_internal): Fix for the case that
26247 coding_type is Qcharset.
26248
262492008-02-01 Kenichi Handa <handa@m17n.org>
26250
26251 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
26252 (map_char_table): Don't inherit the value from the parent on
26253 initializing VAL. Adjust for the above change.
26254
262552008-02-01 Kenichi Handa <handa@m17n.org>
26256
26257 * coding.c (Qsignature, Qendian): Delete these variables.
26258 (syms_of_coding): Don't initialize them.
26259 (CATEGORY_MASK_UTF_16_AUTO): New macro.
26260 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
26261 detect_info->found.
26262 (decode_coding_utf_16): Don't detect BOM here.
26263 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
26264 is NOT utf_16_without_bom.
26265 (setup_coding_system): For a coding system of type utf-16, check
26266 if the attribute :endian is Qbig or not (not nil or not), and set
26267 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
26268 (detect_coding): If coding type is utf-16 and BOM detection is
26269 required, detect it.
26270 (Fdefine_coding_system_internal): For a coding system of type
26271 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
26272
262732008-02-01 Kenichi Handa <handa@m17n.org>
26274
26275 * coding.c (coding_set_source): Fix for the case that the current
26276 buffer is different from coding->src_object.
26277 (decode_coding_object): Don't use the conversion work buffer if
26278 DST_OBJECT is a buffer.
26279
262802008-02-01 Dave Love <fx@gnu.org>
26281
26282 * lread.c (read_emacs_mule_char) [len==2]: Index
26283 emacs_mule_charset correctly.
26284
262852008-02-01 Dave Love <fx@gnu.org>
26286
26287 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
26288 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
26289 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
26290 treated specially.)
26291 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
26292 (detected_mask): Remove Big5 bits.
26293
262942008-02-01 Kenichi Handa <handa@m17n.org>
26295
26296 The following changes are to make the font rescaling facility
26297 compatible with Emacs 21.
26298
26299 * xfaces.c (Vface_font_rescale_alist): Rename from
26300 Vface_resizing_fonts.
26301 (struct font_name): Rename member resizing_ratio to rescale_ratio.
26302 (font_rescale_ratio): Rename from font_resizing_ratio.
26303 (split_font_name): Set font->rescale_ratio.
26304 (better_font_p): Pay attention to font->rescale_ratio.
26305 (build_scalable_font_name): Likewise. Change RESX, and RESY
26306 fields.
26307 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
26308
263092008-02-01 Kenichi Handa <handa@m17n.org>
26310
26311 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
26312 (Qutf_16_le): Remove these variables.
26313 (syms_of_coding): Don't DEFSYM them.
26314 (decode_coding_utf_16): Fix handling of BOM.
26315 (encode_coding_utf_16): Fix handling of BOM.
26316
263172008-02-01 Kenichi Handa <handa@m17n.org>
26318
26319 * fileio.c (Finsert_file_contents): On replacing, before decoding
26320 the file into the work buffer, set point of the work buffer to the end.
26321
263222008-02-01 Dave Love <fx@gnu.org>
26323
26324 * coding.c (Fcheck_coding_systems_region): Fix type errors.
26325
263262008-02-01 Dave Love <fx@gnu.org>
26327
26328 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26329 and fix C types.
26330
263312008-02-01 Kenichi Handa <handa@m17n.org>
26332
26333 * xdisp.c (SKIP_GLYPHS): New macro.
26334 (set_cursor_from_row): Pay attention to string display properties.
26335
26336 * category.c (copy_category_entry): Fix for the case that RANGE
26337 is an integer.
26338
26339 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
26340
26341 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
26342
263432008-02-01 Kenichi Handa <handa@m17n.org>
26344
26345 * charset.c (Fcharset_id_internal): New function.
26346 (syms_of_charset): Defsubr it.
26347
26348 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
26349 with the last arg charset_list acquired from coding.
26350 (Fdefine_coding_system_internal): For ccl-based coding system, fix
26351 the attribute coding_attr_ccl_valids.
26352
26353 * coding.h (enum define_coding_ccl_arg_index): Set the first
26354 member coding_arg_ccl_decoder to coding_arg_max.
26355
26356 * ccl.h (ccl_driver): Adjust prototype.
26357
26358 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
26359 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 26360 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
26361 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
26362 last arg Qnil.
26363
263642008-02-01 Kenichi Handa <handa@m17n.org>
26365
26366 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
26367 call encode_char.
26368
26369 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
26370
263712008-02-01 Dave Love <fx@gnu.org>
26372
26373 * composite.c (syms_of_composite): Make composition_hash_table weak.
26374
263752008-02-01 Kenichi Handa <handa@m17n.org>
26376
26377 * dispextern.h (check_face_attributes, generate_ascii_font_name)
26378 (font_name_registry): Don't extern them.
26379 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
26380
26381 * fontset.h (Qfontset): Don't extern it.
26382 (new_fontset_from_font_name): Extern it.
26383
26384 * fontset.c: Give 8 extra slots to fontset objects.
26385 (Qfontset_info): New variable.
26386 (syms_of_fontset): Defsym it.
26387 (FONTSET_FALLBACK): New macro.
26388 (fontset_face): Try also the default fontset.
26389 (make_fontset): Realize a fallback fontset from the default fontset.
26390 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
26391 using split_font_name_into_vector and build_font_name_from_vector.
26392 (Fset_fontset_font): Access the elements of font_spec by enum
26393 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
26394 name by using split_font_name_into_vector.
26395 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
26396 generate a proper font name from the fontset name.
26397 Update Vfontset_alias_alist.
aac0c6e3
MR
26398 (n_auto_fontsets): New variable.
26399 (new_fontset_from_font_name): New function.
26400 (Ffont_info): Store the information about fonts generated from the
26401 default fontset in the first extra slot of the returned char-table.
26402
26403 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
26404 (font_name_registry): Delete function.
26405 (split_font_name_into_vector): New function.
26406 (build_font_name_from_vector): New function.
26407 (font_list): The argument REGISTRY is now a list of registry names.
26408 (choose_face_font): If we are choosing an ASCII font, and ATTRS
26409 specifies an explicit font name, return the name as is. Make a
26410 list of registy names.
26411
26412 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
26413 of x_new_fontset.
26414 (Fx_create_frame): Don't call x_new_fontset here. Just use
26415 x_list_fonts to check the existence of fonts.
26416
26417 * xterm.h (x_new_fontset): Adjust prototype.
26418
26419 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
26420 string. Use new_fontset_from_font_name to create a fontset from a
26421 font name.
26422
264232008-02-01 Kenichi Handa <handa@m17n.org>
26424
26425 * syntax.c (Vfind_word_boundary_function_table): New name for
26426 Vnext_word_boundary_function_table.
26427 (find-word-boundary-function-table): New name for
26428 next-word-boundary-function-table.
26429
264302008-02-01 Dave Love <fx@gnu.org>
26431
26432 * Makefile.in: Fix some dependencies.
26433
26434 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
26435 set it to nil before returning.
26436
26437 * composite.c (update_compositions): Fix type error.
26438
26439 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
26440
264412008-02-01 Kenichi Handa <handa@m17n.org>
26442
26443 * xterm.c (x_new_font): Optimize for the case that the font is
26444 already set for the frame.
26445
264462008-02-01 Kenichi Handa <handa@m17n.org>
26447
26448 * chartab.c (char_table_ascii): Check if the char table contents
26449 is sub-char-table or not.
26450 (char_table_set, char_table_set_range): Fix argument to
26451 char_table_ascii.
26452
26453 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
26454 (detect_coding_utf_8, detect_coding_utf_16)
26455 (detect_coding_emacs_mule, detect_coding_iso_2022)
26456 (detect_coding_sjis, detect_coding_big5)
26457 (detect_coding_ccl, detect_coding_charset): Change argument MASK
26458 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
26459 sequence is valid in this coding system. Change callers.
26460 (MAX_ANNOTATION_LENGTH): New macro.
26461 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
26462 (ADD_COMPOSITION_DATA): Change argument. Change callers.
26463 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
26464 (ADD_CHARSET_DATA): New macro.
26465 (emacs_mule_char): New argument ID. Change callers.
26466 (decode_coding_emacs_mule, decode_coding_iso_2022)
26467 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26468 Produce charset annotation data in coding->charbuf.
26469 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
26470 to charset annotation data in coding->charbuf.
26471 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
26472 coding->common_flags if the coding system is iso-2022 based and
26473 uses designation.
26474 (produce_composition): Adjust for the new annotation data format.
26475 (produce_charset): New function.
26476 (produce_annotation): Handle charset annotation.
bba3e508
SM
26477 (handle_composition_annotation, handle_charset_annotation):
26478 New functions.
aac0c6e3
MR
26479 (consume_chars): Handle charset annotation. Utilize the above two
26480 functions.
26481 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
26482 buffer, get the deleted text as a string and set
26483 coding->src_object to that string.
26484 (detect_coding, detect_coding_system): Use the new struct
26485 coding_detection_info.
26486
26487 * coding.h (struct coding_detection_info): New structure.
26488 (struct coding_system): Adjust prototype of the member `detector'.
26489 (CODING_ANNOTATE_CHARSET_MASK): New macro.
26490
264912008-02-01 Kenichi Handa <handa@m17n.org>
26492
26493 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
26494
264952008-02-01 Dave Love <fx@gnu.org>
26496
26497 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
26498 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
26499 to new local and nullify apropos_accumulate before returning.
26500 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
26501
265022008-02-01 Kenichi Handa <handa@m17n.org>
26503
26504 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
26505 correctly.
e3eea1fc 26506
aac0c6e3
MR
265072008-02-01 Dave Love <fx@gnu.org>
26508
26509 * fns.c (Flanginfo): Call synchronize_system_time_locale.
26510
265112008-02-01 Kenichi Handa <handa@m17n.org>
26512
26513 The following changes are to make character composition happen
26514 automatically on displaying.
26515
26516 * Makefile.in (lisp, shortlisp): Add composite.elc.
26517
26518 * composite.h (Qauto_composed, Vauto_composition_function)
26519 (Qauto_composition_function): Extern them.
26520
26521 * composite.c (Vcomposition_function_table)
26522 (Qcomposition_function_table): Delete variables.
26523 (Qauto_composed, Vauto_composition_function)
26524 (Qauto_composition_function): New variables.
26525 (run_composition_function): Don't call
26526 compose-chars-after-function.
26527 (update_compositions): Clear `auto-composed' text property.
26528 (compose_chars_in_text): Delete this function.
26529 (syms_of_composite): Staticpro Qauto_composed and
26530 Qauto_composition_function. Declare Vauto_composition_function as
26531 a Lisp variable.
26532
26533 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
26534
26535 * xdisp.c (it_props): Add an entry for Qauto_composed.
26536 (handle_auto_composed_prop): New function.
26537
26538 * xselect.c (selection_data_to_lisp_data): Don't call
26539 compose_chars_in_text.
26540
265412008-02-01 Dave Love <fx@gnu.org>
26542
26543 * keyboard.c (read_char): Modify checking around use of
26544 Vkeyboard_translate_table.
26545
26546 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26547 and fix C types.
26548
265492008-02-01 Kenichi Handa <handa@m17n.org>
26550
26551 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
26552 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26553 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
26554 the case that the last byte is '\r' correctly.
26555 (decode_coding): Flush out the unprocessed data correctly.
26556 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
26557
265582008-02-01 Dave Love <fx@gnu.org>
26559
26560 * xterm.c (XTread_socket): Fix changes for defined keysyms.
26561 Add XK_ISO... case.
26562 (xaw_scroll_callback): Revert last change.
26563
265642008-02-01 Kenichi Handa <handa@m17n.org>
26565
26566 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
26567
265682008-02-01 Kenichi Handa <handa@m17n.org>
26569
26570 * xfaces.c (Vface_resizing_fonts): New variable.
26571 (struct font_name): New member `resizing_ratio'.
26572 (font_resizing_ratio): New function.
26573 (split_font_name): Set font->resizing_ratio.
26574 (better_font_p): Pay attention to font->resizing_ratio.
26575 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
26576 RESX, and RESY fields.
26577 (try_alternative_families): Try scalable fonts if
26578 Vscalable_fonts_allowed is not Qt.
26579 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
26580
265812008-02-01 Dave Love <fx@gnu.org>
26582
26583 * xterm.c (xaw_scroll_callback): Cast correctly.
26584
265852008-02-01 Dave Love <fx@gnu.org>
26586
26587 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
26588 (lispy_kana_keys): Comment out.
26589 (make_lispy_event) [XK_kana_A]: Comment out.
26590
26591 * xterm.c (xaw_scroll_callback): Cast call_data.
26592 (XTread_socket): Deal with ASCII keysyms.
26593 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
26594
265952008-02-01 Dave Love <fx@gnu.org>
26596
26597 * xterm.c (Vx_keysym_table): New.
26598 (syms_of_xterm): Initialize it.
26599 (XTread_socket): Use it.
26600 From head: Eliminate incorrect optimization that tried to avoid
26601 decoding the output of X*LookupString.
26602 (x_get_font_repertory): Delete charset declaration.
26603
266042008-02-01 Kenichi Handa <handa@m17n.org>
26605
26606 * coding.c (detect_coding_charset): If only ASCII bytes are found,
26607 return 0.
bba3e508
SM
26608 (Fdefine_coding_system_internal):
26609 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
26610
266112008-02-01 Dave Love <fx@gnu.org>
26612
26613 * coding.c (Fcheck_coding_system): Doc fix.
26614
26615 * editfns.c (Finsert_byte): Return a proper value.
26616
266172008-02-01 Kenichi Handa <handa@m17n.org>
26618
bba3e508
SM
26619 * coding.c (decode_coding): Fix args to translate_chars.
26620 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
26621 (encode_coding): Fix args to translate_chars. Pay attention to
26622 Vstandard_translation_table_for_encode.
26623
26624 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
26625 SINGLE_BYTE_CHAR_P.
26626
26627 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
26628 not by SINGLE_BYTE_CHAR_P.
26629
26630 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
26631 SINGLE_BYTE_CHAR_P.
26632
26633 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
26634 SINGLE_BYTE_CHAR_P.
26635
26636 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
26637 by SINGLE_BYTE_CHAR_P.
26638
26639 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
26640 SINGLE_BYTE_CHAR_P.
26641
266422008-02-01 Dave Love <fx@gnu.org>
26643
26644 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
26645
266462008-02-01 Dave Love <fx@gnu.org>
26647
26648 * fns.c (Flanginfo): Fix typo.
26649
26650 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
26651
266522008-02-01 Kenichi Handa <handa@m17n.org>
26653
26654 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
26655 (detect_coding_emacs_mule, detect_coding_iso_2022)
26656 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
26657 incomplete byte sequence. Don't update *mask when correctly detected.
26658 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
26659 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
26660 (detect_coding, detect_coding_system): Adjust for the changes above.
26661
266622008-02-01 Kenichi Handa <handa@m17n.org>
26663
26664 * character.c (char_string): Rename from
26665 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
26666 (string_char): Rename from string_char.
26667
26668 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
26669 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
26670 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
26671 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
26672
266732008-02-01 Dave Love <fx@gnu.org>
26674
26675 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
26676
266772008-02-01 Kenichi Handa <handa@m17n.org>
26678
26679 * keymap.c (push_key_description): Pay attention to force_multibyte.
26680
26681 * regex.c (re_search_2): Fix for the case of unibyte buffer.
26682
266832008-02-01 Dave Love <fx@gnu.org>
26684
26685 * charset.c (define_charset_internal): Rename `supprementary'.
26686
26687 * Makefile.in (lisp, shortlisp): Remove latin-N.
26688
266892008-02-01 Dave Love <fx@gnu.org>
26690
26691 * xfns.c (x_window, x_window): Use use_xim.
26692
26693 * xterm.c (use_xim): Initialize.
26694 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
26695 (x_term_init): Maybe set use_xim.
26696
26697 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
26698
266992008-02-01 Kenichi Handa <handa@m17n.org>
26700
26701 * search.c (search_buffer): Fix case-fold-search of multibyte
26702 characters.
26703 (boyer_moore): Rename the last argument to char_high_bits.
26704
267052008-02-01 Kenichi Handa <handa@m17n.org>
26706
26707 * xdisp.c (display_string): Fix for the case of zero width glyph.
26708
26709 * xfns.c (x_set_font): Change the error message of the case that
26710 x_new_fontset returns Qt.
26711
26712 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
26713 (Finternal_set_lisp_face_attribute): Use signal_error for the
26714 error of invalid fontset.
26715
26716 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
26717 fontset, return Qt.
26718
267192008-02-01 Dave Love <fx@gnu.org>
26720
26721 * unexelf.c (unexec): Make .got handling not SGI-specific.
26722
26723 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
26724
26725 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
26726
26727 * keyboard.c (read_key_sequence): Fix type error.
26728
bba3e508
SM
26729 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
26730 Fix type error.
aac0c6e3
MR
26731
26732 * fontset.c (fontset_add): Return Lisp_Object.
26733
267342008-02-01 Dave Love <fx@gnu.org>
26735
26736 * charset.h (charset_ordered_list_tick): Declare extern.
26737
267382008-02-01 Kenichi Handa <handa@m17n.org>
26739
26740 The following changes (and some of 2008-02-01 changes of mine) are
26741 for handling syntax, category, and case conversion for unibyte
26742 characters by converting them to multibyte on the fly. With these
26743 changes, we don't have to setup syntax and case tables for unibyte
26744 characters in each language environment.
26745
26746 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
26747 multibyte if necessary.
26748
26749 * bytecode.c (Fbyte_code): Likewise.
26750
26751 * character.h (LEADING_CODE_LATIN_1_MIN)
26752 (LEADING_CODE_LATIN_1_MAX): New macros.
26753 (unibyte_to_multibyte_table): Extern it.
26754 (unibyte_char_to_multibyte): New macro.
26755 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
26756 (CHAR_LEADING_CODE): New macro.
26757 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
26758
26759 * character.c (unibyte_to_multibyte_table): New variable.
26760 (unibyte_char_to_multibyte): Move to character.h and define as macro.
26761 (multibyte_char_to_unibyte): If C is an eight-bit character,
26762 convert it to the corresponding byte value.
26763
26764 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
26765 not 1, signals an error. Update the elements of
26766 unibyte_to_multibyte_table.
26767 (init_charset_once): Initialize unibyte_to_multibyte_table.
26768 (syms_of_charset): Define the charset `iso-8859-1'.
26769
26770 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
26771 as is without converting it to unibyte. In a unibyte buffer,
26772 convert C to multibyte before checking the syntax.
26773
26774 * lisp.h (unibyte_char_to_multibyte): Delete extern.
26775
26776 * minibuf.c (Fminibuffer_complete_word): Use the macro
26777 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
26778
26779 * regex.h (struct re_pattern_buffer): New member target_multibyte.
26780
26781 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
26782 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
26783 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
26784 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
26785 non-emacs case.
26786 (PATFETCH): Convert an eight-bit char to multibyte.
26787 (HANDLE_UNIBYTE_RANGE): New macro.
26788 (regex_compile): Setup the compiled pattern for multibyte chars
26789 even if the given regex string is unibyte. Use PATFETCH_RAW
26790 instead of PATFETCH in many places. To handle `charset'
26791 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
26792 only for ASCII chars.
26793 (analyse_first) <exactn>: Simplify because the compiled pattern
26794 is multibyte.
26795 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
26796 <charset>: Use CHAR_LEADING_CODE to get leading codes.
26797 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
26798 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
26799 multibyte always 1.
26800 (re_search_2): In emacs, set the locale variable multibyte to 1,
26801 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
26802 to decide the multibyteness of STR1 and STR2.
26803 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
26804 before translating and checking fastmap.
26805 (TARGET_CHAR_AND_LENGTH): New macro.
26806 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
26807 to 1, otherwise to 0. New local variable target_multibyte.
26808 Check it to decide the multibyteness of STR1 and STR2.
26809 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
26810 <charset, charset_not>: If multibyte is nonzero, check fastmap
26811 only for ASCII chars. Call bcmp_translate with
26812 target_multibyte, not with multibyte.
26813 <begline>: Declare the local variable C as `unsigned'.
26814 (bcmp_translate): Change the last arg name to target_multibyte.
26815
26816 * search.c (compile_pattern_1): Don't adjust the multibyteness of
26817 the regexp pattern and the matching target. Set cp->buf.multibyte
26818 to the multibyteness of the regexp pattern. Set
26819 cp->but.target_multibyte to the multibyteness of the matching target.
26820 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
26821 FETCH_STRING_CHAR_ADVANCE.
26822 (Freplace_match): Convert unibyte chars to multibyte.
26823
26824 * syntax.c (char_quoted, back_comment, scan_words)
26825 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
26826 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
26827 unibyte chars to multibyte.
26828 (skip_chars): Delete the arg syntaxp, and move the code for
26829 handling syntaxes to skip_syntaxes. Change callers.
26830 Fix the case that the multibyteness of STRING and the current
26831 buffer doesn't match.
26832 (skip_syntaxes): New function.
26833 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
26834 SINGLE_BYTE_CHAR_P.
26835
268362008-02-01 Kenichi Handa <handa@m17n.org>
26837
26838 * xfaces.c (QCfontset): New variable.
26839 (LFACE_FONTSET): New macro.
26840 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
26841 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
26842 (Finternal_set_lisp_face_attribute)
26843 (Finternal_get_lisp_face_attribute): Handle QCfontset.
26844 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
26845 check also LFACE_FONTSET_INDEX.
26846 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
26847 attrs[LFACE_FONT_INDEX].
26848 (syms_of_xfaces): Intern and staticpro QCfontset.
26849
26850 * dispextern.h (enum lface_attribute_index): New member
26851 LFACE_FONTSET_INDEX.
26852
26853 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
26854
268552008-02-01 Kenichi Handa <handa@m17n.org>
26856
26857 * coding.c (coding_set_destination): Fix coding->destination for
26858 the case converting a region.
26859 (encode_coding_utf_8): Encode eight-bit chars as single byte.
26860 (encode_coding_object): Fix coding->dst_pos and
26861 coding->dst_pos_byte for the case converting a region.
26862
26863 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
26864
26865 * character.h (BYTE8_STRING): New macro.
26866
26867 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
26868
268692008-02-01 Kenichi Handa <handa@m17n.org>
26870
26871 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
26872 characters by octal form.
26873
26874 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
26875
26876 * buffer.h (_fetch_multibyte_char_len): Delete extern.
26877 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
26878 _fetch_multibyte_char_len.
26879 (FETCH_CHAR_AS_MULTIBYTE): New macro.
26880
26881 * casetab.c (set_canon, set_identity, shuffle): Simplify.
26882
26883 * casefiddle.c (casify_object): Simplify. Handle the case that
26884 the case conversion change the byte length.
26885 (casify_region): Likewise.
26886
26887 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
26888
26889 * character.c (_fetch_multibyte_char_len): Delete this variable.
26890 (syms_of_character): Setup Vprintable_chars.
26891
26892 * editfns.c (Fchar_equal): Fix for the unibyte case.
26893 (Finsert_byte): New function.
26894 (syms_of_editfns): Defsubr it.
26895
26896 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
26897 of direct code 0x3ffff.
26898
26899 * search.c (Freplace_match): Fix for the unibyte case.
26900
269012008-02-01 Kenichi Handa <handa@m17n.org>
26902
26903 * lread.c (safe_to_load_p): Fix the logic.
26904
26905 * syntax.c (scan_words): Don't treat characters belonging to
26906 different scripts as constituting a word.
26907
26908 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26909
26910 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
26911
26912 * emacs.c (main): In the case of --unibyte, instead of aborting on
26913 finding non-empty buffer, make it unibyte.
26914
269152008-02-01 Kenichi Handa <handa@m17n.org>
26916
26917 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
26918 to create a fontset.
26919
269202008-02-01 Dave Love <fx@gnu.org>
26921
26922 * character.c (Funibyte_char_to_multibyte): Doc fix.
26923
26924 * xfns.c [HAVE_STDLIB_H]: Fix last change.
26925
269262008-02-01 Kenichi Handa <handa@m17n.org>
26927
26928 * fontset.c (fontset_add): Make the type `int'.
26929 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
26930
26931 * character.c (unibyte_char_to_multibyte)
26932 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
26933 charset_unibyte, not charset_primary.
26934
26935 * charset.h (charset_unibyte): Extern it instead of charset_primary.
26936
26937 * charset.c (charset_unibyte): Rename from charset_primary.
26938 (Funibyte_charset): Rename from Fprimary_charset.
26939 (Fset_unibyte_charset): Rename from Fset_primary_charset.
26940 (syms_of_charset): Adjust for the above changes.
26941
26942 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
26943 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
26944 it->multibyte_p is zero.
26945
26946 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
26947 Delete extern.
26948
269492008-02-01 Kenichi Handa <handa@m17n.org>
26950
26951 * coding.c (Fdefine_coding_system_internal): Fix category setting
26952 for a coding system of type iso-2022.
26953
269542008-02-01 Kenichi Handa <handa@m17n.org>
26955
26956 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
26957
269582008-02-01 Kenichi Handa <handa@m17n.org>
26959
26960 * syntax.c (Vnext_word_boundary_function_table): New variable.
26961 (next-word-boundary-function-table): Declare it as a Lisp variable
26962 in syms_of_syntax.
26963 (scan_words): Call functions in Vnext_word_boundary_function_table
26964 if any.
26965
26966 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
26967
26968 * fontset.c (fs_load_font): If fontp->charset is not negative,
26969 return fontp without setting its members.
26970
269712008-02-01 Dave Love <fx@gnu.org>
26972
26973 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
26974
26975 * m/sparc.h (HAVE_ALLOCA): Delete.
26976
26977 * s/irix6-5.h: Don't include strings.h.
26978 (bcopy, bzero, bcmp): Don't undef.
26979
26980 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
26981
26982 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
26983 (TIOCSIGSEND): Don't test IRIX6.
26984 (bcopy, bzero, bcmp): Define conditionally.
26985
269862008-02-01 Kenichi Handa <handa@m17n.org>
26987
26988 * buffer.c (Qas, Qmake, Qto): New variables.
26989 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
26990 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
26991
26992 * callproc.c (Fcall_process): Don't call insert_1_both directly if
26993 we are inserting a process output into a multibyte buffer.
26994
26995 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
26996 multibyte_char_to_unibyte.
26997
26998 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
26999 by the primary charset, make it eight-bit char.
27000 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27001
27002 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27003 (charset_8_bit__control, charset_8_bit_graphic)
27004 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27005 (define_charset_internal): New function.
27006 (syms_of_charset): Call define_charset_internal for pre-defined
27007 charsets.
27008
27009 * charset.h (charset_8_bit): Extern it.
27010
27011 * coding.c (make_conversion_work_buffer): Adjust for the change
27012 of Fset_buffer_multibyte.
27013 (encode_coding_raw_text): Increment p0 in the loop.
27014
27015 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27016
bba3e508
SM
27017 * xdisp.c (setup_echo_area_for_printing, set_message_1):
27018 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
27019
27020 * fns.c (Fstring_to_multibyte): New function.
27021 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27022
270232008-02-01 Dave Love <fx@gnu.org>
27024
27025 * xfns.c (x_put_x_image): Declare args.
27026
27027 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
27028 (try_font_list): Declare an arg.
27029
27030 * xdisp.c (message2_nolog, set_message): Declare an arg.
27031
27032 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
27033
27034 * syntax.c (scan_sexps_forward): Declare an arg.
27035
27036 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
27037 Declare an arg.
27038
27039 * lisp.h (Fnew_fontset): Declare.
27040
27041 * keymap.c (push_key_description): Call CHARACTERP correctly.
27042
27043 * fontset.c (fontset_add): Declare args. Call make_number correctly.
27044 (face_for_char): Delete unused vars.
27045 (Fset_fontset_font): Doc fix. Delete unused vars.
27046
27047 * doc.c (Fsubstitute_command_keys): Delete unused vars.
27048
27049 * composite.c (update_compositions): Declare arg.
27050
27051 * cm.c (calccost, cmgoto): Declare args.
27052
27053 * charset.c: Remove `emacs' conditional. Doc fixes.
27054 (map_char_table_for_charset): Declare.
27055
27056 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
27057
27058 * ccl.c: Remove `emacs' conditional.
27059
270602008-02-01 Kenichi Handa <handa@m17n.org>
27061
27062 The following changes are to allow specifying multiple font
27063 patterns for a character range (specified by script or charset).
27064
27065 * Makefile.in (abbrev.o): Depend on syntax.h.
27066 (xfaces.o): Depend on charset.h.
27067
27068 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
27069 SINGLE_BYTE_CHAR_P.
27070
27071 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
27072
27073 * character.h (Vchar_script_table): Extern it.
27074
27075 * character.c (Vscript_alist): Delete.
27076 (Vchar_script_table, Qchar_script_table): New variable.
27077 (syms_of_character): Declare Vchar_script_table as a lisp variable
27078 and initialize it.
27079
27080 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
27081 have property char-table-extra-slots, make no extra slot.
27082
27083 * dispextern.h (struct face): Delete member `charset'.
27084 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
27085 SINGLE_BYTE_CHAR_P.
27086 (choose_face_font, lookup_non_ascii_face, font_name_registry):
27087 Add prototypes.
27088 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
27089 (generate_ascii_font_name): Rename from generate_ascii_font.
27090
27091 * fontset.h (get_font_repertory_func): New prototype.
27092 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
27093 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
27094
27095 * fontset.c (Qprepend, Qappend): New variables.
27096 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
27097 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
27098 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
27099 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
27100 (fontset_ref_and_range, fontset_add, reorder_font_vector)
27101 (load_font_get_repertory): New functions.
27102 (fontset_set): Delete.
27103 (fontset_face): New arg FACE. Return face ID, not face.
27104 Complete re-write to handle new fontset structure. Change caller.
27105 (free_face_fontset): Use ASET istead of AREF (X) = Y.
27106 (face_for_char): Don't call lookup_face.
27107 (make_fontset_for_ascii_face): New arg FACE.
27108 (fs_load_font): New arg CHARSET_ID. Don't check
27109 Vfont_encoding_alist here.
27110 (find_font_encoding): New function.
27111 (list_fontsets): Use STRINGP, not ! NILP.
27112 (accumulate_script_ranges): New function.
bba3e508
SM
27113 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
27114 Completely re-written to handle new fontset structure.
aac0c6e3 27115 (Ffontset_font): Return a copy of element.
bba3e508
SM
27116 (syms_of_fontset): Define symbols Qprepend and Qappend.
27117 Fix docstring of font-encoding-alist.
aac0c6e3
MR
27118
27119 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
27120 (Fset_fotset_font): Fix arguments to 5.
27121
27122 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
27123
27124 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
27125 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27126 (highlight_trailing_whitespace): Adjust for the change of
27127 lookup_named_face.
27128
27129 * xfaces.c: Include charset.h.
27130 (load_face_font): Delete argument C. Change caller.
27131 (generate_ascii_font_name): Rename from generate_ascii_font.
27132 (font_name_registry): New function.
27133 (cache_face): Store ascii faces before non-ascii faces in buckets.
27134 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
27135 Lookup only ascii faces.
27136 (lookup_non_ascii_face): New function.
27137 (lookup_named_face): Delete argument C. Change caller.
27138 (lookup_derived_face): Delete argument C. Change caller.
27139 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
27140 a string, just call font_list with it.
27141 (choose_face_font): Delete arguments FACE and C. New arg
27142 FONT_SPEC. Change caller.
27143 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
27144 Change caller.
27145 (realize_non_ascii_face): New function.
27146 (realize_x_face): Call load_face_font here.
27147 (realize_tty_face): Delete argument C. Change caller.
27148 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
27149 get a face ID.
27150 (dump_realized_face): Don't print charset of FACE.
27151
27152 * xfns.c (x_set_font): Always call x_new_fontset and
27153 store_frame_parameter.
27154 (Fx_create_frame): Call x_new_fontset, not x_new_font.
27155 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
27156
27157 * xterm.h (x_get_font_repertory): Extern it.
27158
27159 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27160 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27161 it->multibyte_p is zero.
27162 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27163 (x_new_fontset): If FONTSETNAME doesn't match any existing
27164 fontsets, create a new one.
27165 (x_get_font_repertory): New function.
27166
271672008-02-01 Kenichi Handa <handa@m17n.org>
27168
27169 * coding.c (Ffind_coding_systems_region_internal): Detect an
27170 ASCII only string correctly.
27171
27172 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
27173 version is 0.
27174
271752008-02-01 Kenichi Handa <handa@m17n.org>
27176
27177 * lread.c: Include "coding.h".
27178 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
27179 (load_each_byte, unread_char): New variables.
27180 (readchar_backlog): Delete.
27181 (readchar): Return a character unless load_each_byte is nonzero.
27182 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
27183 cons. If unread_char is not -1, simply return it.
27184 (unreadchar): Handle the case that readcharfun is
27185 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
27186 (read_multibyte): Delete.
27187 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
27188 (read_emacs_mule_char): New functions.
27189 (Fload): Even if the file doesn't have the extension ".elc", if
27190 safe_to_load_p returns a positive version number, assume that the
27191 file contains bytecompiled code. If the version is less than 22,
27192 load the file while decoding multibyte sequences by emacs-mule.
27193 (readevalloop): Don't use readchar_backlog.
27194 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
27195 (Fread_from_string): Pay attention to the case that STREAM is a cons.
27196 (read_escape): Delete the arg BYTEREP.
27197 (read1): Set load_each_byte to 1 temporarily while handling
27198 #@NUMBER. Don't call read_multibyte.
27199 (read_vector): Call Fread with a cons. If readcharfun is
27200 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
27201 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
27202 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
27203 and Qload_force_doc_strings.
27204
272052008-02-01 Kenichi Handa <handa@m17n.org>
27206
bba3e508
SM
27207 * xdisp.c (face_before_or_after_it_pos):
27208 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
27209
272102008-02-01 Kenichi Handa <handa@m17n.org>
27211
27212 * character.h (TRAILING_CODE_P): New macro.
27213 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
27214 (string_char_with_unification): Fix prototype.
27215 (Vscript_alist): Extern it.
27216
27217 * character.c (Vscript_alist): New variable.
27218 (string_char_with_unification, str_as_unibyte)
27219 (string_escape_byte8): Add `const' to local variables.
27220 (syms_of_character): Declare script-alist as a Lisp variable.
27221
27222 * charset.h (Vcharset_ordered_list): Extern it.
27223 (charset_ordered_list_tick): Extern it.
27224 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
27225 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
27226 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
27227 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
27228 (Funify_charset): Adjust for the change of Funify_charset.
27229
27230 * charset.c (charset_ordered_list_tick): New variable.
27231 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
27232 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 27233 deunify instead of unify a charset.
aac0c6e3
MR
27234 (string_xstring_p): Add `const' to local variables.
27235 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
27236 (encode_char): Adjust for the change of Funify_charset.
27237 Fix detecting of invalid code.
aac0c6e3
MR
27238 (Fset_charset_priority): Increment charset_ordered_list_tick.
27239 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
27240 and TO_CODE.
27241
27242 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
27243 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
27244 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
27245 (decode_coding_ccl, consume_chars)
27246 (Ffind_coding_systems_region_internal)
27247 (Fcheck_coding_systems_region): Add `const' to local variables.
27248
27249 * print.c (print_object): Use octal form for printing the
27250 contents of a bool vector.
27251
272522008-02-01 Dave Love <fx@gnu.org>
27253
27254 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
27255 <version == 20>: Refuse to load.
27256
272572008-02-01 Dave Love <fx@gnu.org>
27258
27259 * fns.c: Move coding.h.
27260 (Qcodeset, Qdays, Qmonths): New.
27261 (concat): Use CHARACTERP instead of INTEGERP.
27262 (Flocale_codeset): Delete.
27263 (Flanginfo): New function.
27264 (syms_of_fns): Change accordingly.
27265
27266 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
27267
272682008-02-01 Dave Love <fx@gnu.org>
27269
bba3e508
SM
27270 * casetab.c (init_casetab_once, init_casetab_once):
27271 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
27272
27273 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
27274
27275 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
27276
27277 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
27278 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
27279 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
27280
27281 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
27282
27283 * coding.c (ENCODE_DESIGNATION, decode_eol)
27284 (make_conversion_work_buffer, code_conversion_restore)
27285 (Fdefine_coding_system_internal): Convert Lisp types.
27286 (code_conversion_restore): Use EQ, not ==.
27287 (Fencode_coding_string): Fix code_convert_string call.
27288
27289 * coding.h (code_convert_region): Fix prototype.
27290
27291 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
27292
27293 * fontset.c (fontset_ref, fontset_set, fs_load_font)
27294 (Ffontset_info): Convert Lisp types.
27295
27296 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
27297
27298 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
27299
27300 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
27301
27302 * chartab.c: Include "...h", not <...h> in some cases.
27303
27304 * callproc.c (Fcall_process): Remove unused variables.
27305
273062008-02-01 Dave Love <fx@gnu.org>
27307
27308 * coding.c (Fset_coding_system_priority): Allow null arg list.
27309
273102008-02-01 Dave Love <fx@gnu.org>
27311
27312 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
27313 (Fself_insert_and_exit): Use CHARACTERP.
27314
27315 * callproc.c (Fcall_process): Remove unused vars.
27316
27317 * xterm.c (XTread_socket): Add extra dead keysyms.
27318
27319 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
27320
27321 * dispextern.h: Remove prototypes for redraw_frame,
27322 redraw_garbaged_frames.
27323
27324 * cmds.c (Fself_insert_command): Use CHARACTERP.
27325
27326 * chartab.c (make_sub_char_table): Remove unused var.
27327 (Fset_char_table_default, Fmap_char_table): Doc fix.
27328
27329 * keymap.c (access_keymap): Remove generic char code.
27330 (push_key_description): Use CHARACTERP.
27331
273322008-02-01 Dave Love <fx@gnu.org>
27333
27334 * charset.c: Doc fixes.
27335 (Funify_charset): Extra checking.
27336
273372008-02-01 Dave Love <fx@gnu.org>
27338
27339 * lread.c: Remove some unused variables.
27340 (safe_to_load_p): If safe, return the magic number version byte.
27341 (Fload): Maybe use load-with-code-conversion.
27342
273432008-02-01 Kenichi Handa <handa@m17n.org>
27344
27345 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
27346 of category_set for characters out of the range.
27347 Avoid unnecessary modification.
aac0c6e3
MR
27348
27349 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
27350 Vchar_unify_table. The default value of the table is now nil.
27351
27352 * character.c (syms_of_character): Setup Vchar_width_table for
27353 eight-bit-control and raw-byte chars.
27354
bba3e508
SM
27355 * charset.h (enum define_charset_arg_index):
27356 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
27357 charset_arg_superset.
27358 (enum charset_attr_index): Delete charset_parents and add
27359 charset_subset and charset_superset.
27360 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
27361 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
27362 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
27363 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
27364 (CHARSET_SUPERSET): New macros.
27365 (charset_work): Extern it.
27366 (ENCODE_CHAR): Use charset_work.
27367 (CHAR_CHARSET_P): Adjust for the change of encoder format.
27368 (map_charset_chars): Extern it.
27369
27370 * charset.c (load_charset_map): Set the default value of encoder
27371 and deunifier char-tables to nil.
bba3e508
SM
27372 (map_charset_chars): Change argument. Change callers.
27373 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
27374 (Fmap_charset_chars): New optional args from_code and to_code.
27375 (Fdefine_charset_internal): Adjust for the change of
27376 `define-charset' (:parents -> :subset or :superset).
27377 (charset_work): New variable.
27378 (encode_char, syms_of_charset): Adjust for the change of
27379 Fdefine_charset_internal.
27380 (Ffind_charset_string): Setup the vector `charsets' correctly.
27381
bba3e508
SM
27382 * chartab.c (sub_char_table_ref_and_range): New arg default.
27383 Fix the previous change.
aac0c6e3
MR
27384 (char_table_ref_and_range): Adjust for the above change.
27385 (map_sub_char_table_for_charset): New function.
27386 (map_char_table_for_charset): New function.
27387
27388 * keymap.c (describe_vector): Handle a char-table directly here.
27389 (describe_char_table): Delete.
27390
27391 * lisp.h (map_charset_chars): Delete.
27392
273932008-02-01 Dave Love <fx@gnu.org>
27394
27395 * fns.c (count_combining): Comment out (unused).
27396 (Flocale_codeset): New.
27397 (syms_of_fns): Defsubr it.
27398
27399 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
27400 (size_t): Remove.
27401
274022008-02-01 Dave Love <fx@gnu.org>
27403
27404 * Makefile.in (chartab.o): Depend on charset.h.
27405
274062008-02-01 Kenichi Handa <handa@m17n.org>
27407
27408 * character.c (syms_of_character): Set the default value of
27409 Vprintable_chars to Qnil.
27410
274112008-02-01 Dave Love <fx@gnu.org>
27412
27413 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
27414
274152008-02-01 Kenichi Handa <handa@m17n.org>
27416
27417 * charset.c (load_charset_map): Handle the case that from < to
27418 correctly.
27419
27420 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
27421 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
27422 Pay attention to raw-8-bit chars.
27423
274242008-02-01 Kenichi Handa <handa@m17n.org>
27425
27426 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
27427 It is not bytecompiled now.
27428
27429 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
27430 (charset_jisx0208): New variables.
27431 (Fdefine_charset_internal): Setup them if appropriate.
27432 (init_charset_once): Initialize them to -1.
27433
27434 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
27435 (charset_jisx0208): Extern them.
27436
27437 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
27438 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
27439 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
27440 (setup_iso_safe_charsets): Fix arguments to Fassq.
27441 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
27442 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
27443 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
27444 (encode_coding_iso_2022): Change the 1st arg to
27445 ENCODE_ISO_CHARACTER to a variable.
27446
274472008-02-01 Kenichi Handa <handa@m17n.org>
27448
27449 * charset.h (enum define_charset_arg_index): New enums
27450 charset_arg_min_code and charset_arg_max_code.
27451 (struct charset): New member char_index_offset.
27452
27453 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
27454 Take charset->char_index_offset into account.
27455 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
27456 args[charset_arg_max_code]. Setup charset.char_index_offset.
27457 (syms_of_charset): Fix args to Fdefine_charset_internal.
27458
274592008-02-01 Dave Love <fx@gnu.org>
27460
27461 * coding.c (decode_coding_utf_8): Reject overlong sequences.
27462
274632008-02-01 Dave Love <fx@gnu.org>
27464
27465 * coding.c: Doc fixes.
27466 (Fcoding_system_aliases): Fix return value.
27467 (Qmac): Remove (duplicated) definition.
27468
274692008-02-01 Dave Love <fx@gnu.org>
27470
362654a6
JB
27471 * charset.c (Fcharset_priority_list, Fset_charset_priority):
27472 New functions.
aac0c6e3
MR
27473
27474 * character.c (Fstring): Doc fix.
27475
27476 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
27477
362654a6 27478 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
27479 (font-encoding-alist): Doc fix.
27480
274812008-02-01 Dave Love <fx@gnu.org>
27482
27483 * term.c (costs_set): Declare static, non-initialized for pcc.
27484 (encode_terminal_code): Remove unused var.
27485
27486 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
27487 for K&R.
27488
27489 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
27490
27491 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
27492 (suffixes): Move out of make_subsidiaries for K&R.
27493
27494 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
27495
27496 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
27497
274982008-02-01 Dave Love <fx@gnu.org>
27499
27500 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
27501
27502 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
27503
275042008-02-01 Yong Lu <lyongu@asia-infonet.com>
27505
27506 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
27507
27508 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
27509
275102008-02-01 Kenichi Handa <handa@m17n.org>
27511
27512 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
27513 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
27514
275152008-02-01 Kenichi Handa <handa@m17n.org>
27516
27517 * coding.c (decode_coding_charset): Adjust for the change of
27518 Fdefine_coding_system_internal.
27519 (Fdefine_coding_system_internal): For a coding system of
27520 `charset' type, store a list of charset IDs in
27521 `charset_attr_charset_valids' element of coding attributes.
27522
275232008-02-01 Kenichi Handa <handa@m17n.org>
27524
27525 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
27526 (emacs_mule_char): New arg src. Delete arg `composition'.
27527 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
27528 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
27529 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
27530 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
27531 (DECODE_EMACS_MULE_21_COMPOSITION):
27532 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
27533 sequence.
27534 (decode_coding_emacs_mule): Handle composition correctly. Rewind
27535 `src' and `consumed_chars' correctly before calling emacs_mule_char.
27536 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
27537 and alt&rule composition.
27538 (decode_coding_iso_2022): Handle composition correctly.
27539 (init_coding_once): Setup emacs_mule_bytes for private charsets.
27540
27541 * charset.c (Fdefine_charset_internal): Fix bug for the case of
27542 re-defining a charset. If the charset has :emacs-mule-id, setup
27543 emacs_mule_bytes.
27544 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
27545
275462008-02-01 Kenichi Handa <handa@m17n.org>
27547
27548 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
27549 (encode_coding_big5, encode_coding_charset): If coding requires safe
27550 encoding, produce a character specified by
27551 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
27552
275532008-02-01 Dave Love <fx@gnu.org>
27554
27555 * xterm.c (XSetIMValues): Declare.
27556
27557 * process.c: Conditionally include sys/wait.h, pty.h.
27558
27559 * print.c (print_object): Fix print format for 64-bit systems.
27560
27561 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
27562
27563 * buffer.c (emacs_strerror): Declare.
27564
27565 * fontset.c (Fclear_face_cache): Declare.
27566 (accumulate_font_info): Comment-out (unused).
27567 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
27568 variables.
27569
27570 * character.h (string_escape_byte8): Declare.
27571
bba3e508
SM
27572 * charset.c (load_charset_map, load_charset_map_from_file):
27573 Remove unused vars.
aac0c6e3
MR
27574 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
27575 (Fmap_charset_chars): Doc fix.
27576
27577 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
27578 (Fset_coding_system_priority, Fset_coding_system_priority)
27579 (Fdefine_coding_system_internal): Doc fix.
27580
275812008-02-01 Dave Love <fx@gnu.org>
27582
27583 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
27584
275852008-02-01 Kenichi Handa <handa@m17n.org>
27586
27587 * character.c (string_escape_byte8): Make multibyte string with
27588 correct size.
27589
27590 * charset.c (Fmake_char): Delete unnecessary code.
27591
275922008-02-01 Kenichi Handa <handa@m17n.org>
27593
27594 * xfns.c (x_encode_text): Allocate coding.destination here, and
27595 call encode_coding_object with dst_object Qnil.
27596
27597 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
27598 multibyte form correctly.
27599
27600 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
27601 against Vfont_encoding_alist.
27602
27603 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
27604 handling of charset list.
27605 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
27606 (decode_coding_object): Move point to coding->dst_pos before
27607 calling post-read-conversion function.
27608 (encode_coding_object): Give correct arguments to
27609 pre-write-conversion. Ignore the return value of
27610 pre-write-conversion function. Pay attention to the case that
27611 pre-write-conversion changes the current buffer. If dst_object is
27612 Qt, even if coding->src_bytes is zero, allocate at least one byte
27613 to coding->destination.
27614
27615 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
27616
27617 * charset.c (Fmake_char): Make it more backward compatible.
27618 (Fmap_charset_chars): Fix docstring.
27619
276202008-02-01 Dave Love <fx@gnu.org>
27621
27622 * coding.c: Doc fixes.
27623 (Fdefine_coding_system_alias): Use names, not symbols, in
27624 coding-system-alist.
27625
276262008-02-01 Kenichi Handa <handa@m17n.org>
27627
27628 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
27629 of calling free_realized_face.
27630
276312008-02-01 Yong Lu <lyongu@asia-infonet.com>
27632
27633 * charset.c (read_hex): Don't treat SPC as a comment starter.
27634 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
27635 (Fdecode_char): Fix typo.
27636
276372008-02-01 Kenichi Handa <handa@m17n.org>
27638
27639 * charset.h (struct charset): New member `code_space_mask'.
27640
27641 * coding.c (coding_set_source): Delete the local variable beg_byte.
27642 (encode_coding_charset, Fdefine_coding_system_internal):
27643 Delete the local variable charset.
bba3e508
SM
27644 (Fdefine_coding_system_internal):
27645 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
27646
27647 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
27648 member to check if CODE is valid or not.
27649 (Fdefine_charset_internal): Initialize `code_space_mask' member.
27650 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
27651 is within the range of charset->min_code and carset->max_code.
27652
276532008-02-01 Dave Love <fx@gnu.org>
27654
27655 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
27656
27657 * dispextern.h (generate_ascii_font): Fix return type.
27658
27659 * xfaces.c (generate_ascii_font): Fix arg declaration.
27660
27661 * coding.c (coding_inherit_eol_type)
27662 (Fset_terminal_coding_system_internal)
27663 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
27664
276652008-02-01 Kenichi Handa <handa@m17n.org>
27666
bba3e508
SM
27667 * coding.c (decode_coding_charset, encode_coding_charset):
27668 Handle multiple charsets correctly.
aac0c6e3
MR
27669
276702008-02-01 Kenichi Handa <handa@m17n.org>
27671
27672 * search.c (boyer_moore): Fix handling of multibyte character
27673 translation.
27674
27675 * xdisp.c (display_mode_element): When the variable `elt' is
27676 changed, update `this' and `lisp_string'.
27677
276782008-02-01 Kenichi Handa <handa@m17n.org>
27679
27680 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
27681
27682 * callproc.c (Fcall_process): Be sure to give the current buffer
27683 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
27684
27685 * charset.c (struct charset_map_entries): New struct.
27686 (load_charset_map): Rename from parse_charset_map. New args
27687 entries and n_entries. Change caller.
27688 (load_charset_map_from_file): Rename from load_charset_map.
27689 Change caller. New arg control_flag. Call load_charset_map at
27690 the tail.
27691 (load_charset_map_from_vector): New function.
27692 (Fdefine_charset_internal): Setup charset.compact_codes_p.
27693 (encode_char): If the charset is compact, change a character index
27694 to a code point.
27695
27696 * coding.c (coding_alloc_by_making_gap): Check the case that the
27697 source and destination are the same correctly.
27698 (decode_coding_raw_text): Set coding->consumed_char and
27699 coding->consumed to 0.
27700 (produce_chars): If coding->chars_at_source is nonzero, update
27701 coding->consumed_char and coding->consumed before calling
27702 alloc_destination.
27703 (Fdefine_coding_system_alias): Register ALIAS in
27704 Vcoding_system_alist.
27705 (syms_of_coding): Define `no-conversion' coding system at the tail.
27706
27707 * fileio.c (Finsert_file_contents): Set coding_system instead of
27708 val. If the current buffer is multibyte, always call
27709 decode_coding_gap.
27710
27711 * xfaces.c (try_font_list): Give higher priority to fontset's
27712 family than face's family.
27713
277142008-02-01 Kenichi Handa <handa@m17n.org>
27715
27716 * callproc.c (Fcall_process): Be sure to give the current buffer
27717 to decode_coding_c_string.
27718
27719 * xfaces.c (try_font_list): Give a family specified in a fontset
27720 higher priority than a family specified in a face.
27721
277222008-02-01 Kenichi Handa <handa@m17n.org>
27723
27724 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
27725 Fix arguments to insert_from_buffer.
27726
27727 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
27728
277292008-02-01 Kenichi Handa <handa@m17n.org>
27730
27731 * coding.c (produce_chars): Set the variable `multibytep' correctly.
27732 (decode_coding_gap): Set coding->dst_multibyte correctly.
27733
277342008-02-01 Kenichi Handa <handa@m17n.org>
27735
27736 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
27737 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
27738 (encode_coding_utf_16): Substitute coding->default_char for
27739 non-Unicode characters.
27740 (decode_coding): Don't call record_insert here.
27741 (setup_coding_system): Initialize `surrogate' of
27742 coding->spec.utf_16 to 0.
27743 (EMIT_ONE_BYTE): Fix for multibyte case.
27744
27745 * insdel.c (insert_from_gap): Call record_insert.
27746
277472008-02-01 Kenichi Handa <handa@m17n.org>
27748
27749 * casefiddle.c (casify_region): Fix multibyte case.
27750
27751 * character.c (c_string_width): Add return type `int'.
27752 (char_string_with_unification): Delete arg ADVANCED.
27753
27754 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
27755 (CHAR_STRING): Adjust for the change of char_string_with_unification.
27756 (CHAR_STRING_ADVANCE): Make it do-while statement.
27757
27758 * chartab.c (sub_char_table_set_range): Optimize for the case
27759 DEPTH == 3. Add workaround code for a GCC optimization bug.
27760
27761 * charset.c (parse_charset_map): Remove an unused variable.
27762
27763 * coding.c: Delete unused variables.
27764
27765 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
27766 earlier. If inserted is zero and the coding system doesn't
27767 require flushing, don't call decode_coding_gap.
27768
27769 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
27770
277712008-02-01 Kenichi Handa <handa@m17n.org>
27772
27773 The following changes are for using Unicode as an internal
27774 character model, and use UTF-8 format for buffer/string
27775 representation.
27776
27777 * .gdbinit (xchartable): Adjust for the change of char table structure.
27778 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
27779
27780 * Makefile.in (obj): Add character.o and chartab.o.
27781 (lisp, shortlisp): Remove utf-8.elc.
27782 (*.o): For many files, change dependency on charset.h to
27783 character.h, and add dependency on character.h.
27784 (character.o, chartab.o): New targets.
27785
27786 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
27787 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
27788 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
27789 of "charset.h".
27790
27791 * dired.c, filelock.c: Include "character.h".
27792
27793 * alloc.c: Include "character.h" instead of "charset.h".
27794 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
27795 (syms_of_alloc): Remove defsubr for Smake_char_table.
27796
27797 * buffer.c: Include "character.h" instead of "charset.h", don't
27798 include "coding.h".
27799 (Fset_buffer_multibyte): Adjust for UTF-8.
27800
27801 * buffer.h: EXFUN Fbuffer_live_p.
27802
27803 * callproc.c: Include "character.h" instead of "charset.h".
27804 (Fcall_process): Big change for the new code-conversion APIs.
27805
27806 * casetab.c: Include "character.h" instead of "charset.h".
27807 (set_canon, set_identity, shuffle): Adjust for the new
27808 map_char_table spec.
27809 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
27810 accessing the char table structure.
27811
27812 * chartab.c: New file that implements char table.
27813
27814 * category.c: Include "character.h".
27815 (copy_category_entry): New function.
27816 (copy_category_table): Call map_char_table and copy_category_entry.
27817 (Fmake_category_table): Initialize all top-level slots.
27818 (char_category_set): New function.
27819 (modify_lower_category_set): Delete.
27820 (Fmodify_category_entry): Call char_table_ref_and_range.
27821
27822 * category.h (CATEGORY_SET): Just call char_category_set.
27823
27824 * ccl.c: Include "character.h".
27825 (Qccl, Qcclp): New variables.
27826 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
27827 it's less than 256.
27828 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
27829 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
27830 and DST type.
27831 (ccl_driver): Change types of argument, adjust code accordingly.
27832 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
27833 ccl_driver.
27834 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
27835
27836 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
27837 New members src_multibyte, dst_multibyte, consumed, and produced.
27838 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
27839 (CODING_SPEC_CCL_PROGRAM): New macro.
27840 (ccl_driver): Update prototype.
27841 (Qccl, Qcclp, Fccl_program_p): Extern them.
27842 (CHECK_CCL_PROGRAM): New macro.
27843
27844 * character.c, character.h, chartab.c: New files.
27845
27846 * charset.c: Mostly re-written. Move character and multibyte sequence
27847 handling codes to character.c.
27848
27849 * charset.h: Mostly re-written. Move character and multibyte sequence
27850 handling codes to character.h.
27851
27852 * coding.c, coding.h: Mostly re-written.
27853
27854 * composite.c: Include "character.h" instead of "charset.h".
27855 (CHAR_WIDTH): Move to character.h.
27856 (HASH_KEY, HASH_VALUE): Delete.
27857
27858 * composite.h (enum composition_method): Change order of enumeration
27859 symbols.
27860
27861 * data.c: Include "character.h" instead of "charset.h".
27862 (Faref): Call CHAR_TABLE_REF for a char table.
27863 (Faset): Call CHAR_TABLE_SET for a char table.
27864
27865 * dispextern.h (free_realized_face, check_face_attribytes)
27866 (generate_ascii_font): Extern them.
27867 (free_realized_multibyte_face): Delete extern.
27868
27869 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
27870 table structure.
27871
27872 * editfns.c: Include "character.h" instead of "charset.h".
27873 (Fchar_to_string): Always call CHAR_STRING.
27874
27875 * emacs.c (main): Call init_charset_once, init_charset,
27876 syms_of_chartab, and syms_of_character.
27877
27878 * fileio.c: Include "character.h" instead of "charset.h".
27879 (Finsert_file_contents): Big change for the new code-conversion API.
27880 (choose_write_coding_system, Fwrite_region): Likewise.
27881 (build_annotations_2): Delete.
27882 (e_write): Big change for the new code-conversion API.
27883
27884 * fns.c: Include "character.h" instead of "charset.h".
27885 (copy_sub_char_table): Move to chartab.c.
27886 (Fcopy_sequence): Call copy_char_table for a char table.
27887 (concat): Delete codes calling count_multibyte.
27888 (string_char_to_byte, string_byte_to_char): Adjust for the new
27889 multibyte form.
27890 (internal_equal): Adjust for the change of char table structure.
27891 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
27892 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
27893 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
27894 (char_table_translate, optimize_sub_char_table)
27895 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
27896 chartab.c.
27897 (char_table_ref_and_index): Delete.
27898 (HASH_KEY, HASH_VALUE): Move to lisp.h.
27899 (Fmd5): Call preferred_coding_system instead of accessing
27900 Vcoding_category_list. Adjust for the new code-conversion API.
27901 (syms_of_fns): Move defsubr for char table related functions to
27902 chartab.c.
27903
27904 * fontset.c: Mostly re-written.
27905
27906 * fontset.h (struct font_info): Change type of the member encoding_type.
27907 (enum FONT_SPEC_INDEX): New enum.
27908 (fontset_font_pattern, fs_load_font): Update prototype.
27909 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
27910
27911 * indent.c: Include "character.h" instead of "charset.h".
27912 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
27913
27914 * insdel.c: Include "character.h" instead of "charset.h".
27915 (copy_text): Don't refer to Vnonascii_translation_table.
27916 (insert_from_gap): New function.
27917
27918 * keyboard.c: Include "character.h" instead of "charset.h".
27919 (command_loop_1): Never call direct_output_forward_char before
27920 a non-ASCII character.
27921 (read_char): If Vkeyboard_translate_table is a char table, always
27922 translate a character.
27923
27924 * keymap.c: Include "character.h".
27925 (store_in_keymap): Handle the case that IDX is a cons.
27926 (Fdefine_key): Handle the case that KEY is a cons and the car part
27927 is also a cons (range).
27928 (push_key_description): Adjust for the new character code.
27929 (describe_vector): Call describe_char_table for a char table.
27930 (describe_char_table): New function.
27931
27932 * keymap.h (describe_char_table): Extern it.
27933
27934 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
27935 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
27936 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
27937 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
27938 Delete.
27939 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
27940 structure.
27941 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
27942 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
27943 (CHARTAB_SIZE_BITS_3): New macros.
27944 (chartab_size): Extern it.
27945 (struct Lisp_Char_Table): Re-design.
27946 (struct Lisp_Sub_Char_Table): New structure.
27947 (HASH_KEY, HASH_VALUE): Move from fns.c.
27948 (CHARACTERBITS): Define as 22.
27949 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
27950 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
27951 (GC_SUB_CHAR_TABLE_P): New macro.
27952 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 27953 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
27954 (init_character_once, syms_of_character, init_charset)
27955 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
27956
27957 * lread.c: Include "character.h".
27958 (read_multibyte): New arg NBYTES.
27959 (read_escape): Change the meaning of returned *BYTEREP.
27960 (to_multibyte): Delete.
27961 (read1): Adjust the handling of char table and string.
27962
27963 * print.c: Include "character.h" instead of "charset.h".
27964 (print_string): Convert 8-bit raw bytes to octal form by
27965 string_escape_byte8.
27966 (print_object): Adjust for the new multibyte form. Print 8-bit
27967 raw bytes always in octal form. Handle sub char table correctly.
27968
27969 * process.c: Include "character.h" instead of "charset.h".
27970 (read_process_output, send_process): Adjust for the new
27971 code-conversion API.
27972
27973 * puresize.h (BASE_PURESIZE): Increase.
27974
27975 * regex.c: Include "character.h" instead of "charset.h".
27976 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
27977 (regex_compile): Accept a range whose starting and ending
27978 character have different leading bytes.
27979 (analyse_first): Adjust for the above change.
27980
27981 * search.c: Include "character.h" instead of "charset.h".
27982 (search_buffer, boyer_moore): Adjust for the new multibyte form.
27983 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
27984
27985 * syntax.c: Include "character.h" instead of "charset.h".
27986 (syntax_parent_lookup): Delete.
27987 (Fmodify_syntax_entry): Accept a cons as CHAR.
27988 (skip_chars): Adjust for the new multibyte form.
27989 (init_syntax_once): Call char_table_set_range instead of directly
27990 accessing the structure of a char table.
27991
27992 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
27993 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
27994 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
27995 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
27996
27997 * term.c: Include "buffer.h" and "character.h".
27998 (encode_terminal_code, write_glyphs): Adjust for the new
27999 code-conversion API.
28000 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28001
28002 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28003
28004 * xdisp.c: Include "character.h".
28005 (get_next_display_element): Adjust for the new multibyte form.
28006 (disp_char_vector): Adjust for the new char table structure.
28007 (decode_mode_spec_coding): Adjust for the new structure of
28008 coding system.
28009 (decode_mode_spec): Adjust for the new code-conversion API.
28010
28011 * xfaces.c: Include "character.h" instead of "charset.h".
28012 (load_face_font): Adjust for the change of choose_face_font and
28013 FS_LOAD_FONT.
28014 (generate_ascii_font): New function.
28015 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28016 (set_font_frame_param): Adjust for the change of choose_face_font.
28017 (free_realized_face): Make it public.
28018 (free_realized_faces_for_fontset): Rename from
28019 free_realized_multibyte_face. Free also faces realized for ASCII.
28020 (choose_face_font): Change arguments. Adjust for the change of
28021 fontset_font_pattern and FS_LOAD_FONT.
28022
28023 * xfns.c: Include "character.h".
28024 (x_encode_text): Adjust for the new code-conversion API.
28025
28026 * xselect.c: Don't include "charset.h".
28027 (selection_data_to_lisp_data): Adjust for the new code conversion API.
28028
28029 * xterm.c: Include "character.h".
28030 (x_encode_char): New argument CHARSET. Change caller.
28031 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
28032 Call ENCODE_CHAR instead of SPLIT_CHAR.
28033 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
28034 CHAR_WIDTH instead of CHARSET_WIDTH.
28035 (XTread_socket): Adjust for the new code-conversion API.
28036 (x_new_font): Adjust for the change of FS_LOAD_FONT.
28037 (x_load_font): Adjust for the change of struct font.
28038
280392008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
28040
28041 * xfaces.c (face_at_buffer_position): Remove unused vars.
28042
280432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28044
28045 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
28046 Fix overflow checking.
28047
280482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28049
28050 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
28051 Cancel previous change.
28052
280532008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28054
28055 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
28056 ccl->eight_bit_control. Fix check for buffer overflow.
28057 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
28058 (ccl_driver): Initialize extra_bytes to 0.
28059
280602008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28061
28062 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
28063 return it ORed with ctrl_modifier.
28064
280652008-01-29 Miles Bader <miles@gnu.org>
28066
28067 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
28068
280692008-01-28 Jason Rumney <jasonr@gnu.org>
28070
28071 * w32.c (stat): Don't double check for networked drive.
28072
280732008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
28074
28075 * window.c (run_window_configuration_change_hook): New function.
28076 Code extracted from set_window_buffer. Set the selected frame.
28077 (set_window_buffer): Use it.
28078 * window.h (run_window_configuration_change_hook): Declare.
28079 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
28080
28081 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
28082
280832008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
28084
28085 * Makefile.in: Remove references to unused macros.
28086
280872008-01-26 Eli Zaretskii <eliz@gnu.org>
28088
28089 * w32.c (g_b_init_get_sid_sub_authority)
28090 (g_b_init_get_sid_sub_authority_count): New static variables.
28091 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
28092 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
28093 (init_user_info): Use them to retrieve uid and gid.
28094 Use 500/513, the Windows defaults, as Administrator's uid/gid.
28095 (fstat): Use pw_uid and pw_gid from the_passwd structure for
28096 st_uid and st_gid of the file.
28097
280982008-01-26 Jason Rumney <jasonr@gnu.org>
28099
28100 * w32.c (logon_network_drive): New function.
28101 (stat): Use it.
28102
281032008-01-26 Chong Yidong <cyd@stupidchicken.com>
28104
28105 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
28106 invisible text covered with an ellipsis.
28107
281082008-01-25 Richard Stallman <rms@gnu.org>
28109
28110 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
28111 jump back to beginning. Move some other initializations after that.
28112 (Qwindow_text_change_functions, Vwindow_text_change_functions):
28113 New variables.
28114 (syms_of_xdisp): Init them.
28115
28116 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
28117
28118 * buffer.c (reset_buffer_local_variables):
28119 Implement `permanent-local-hook'.
28120 (Qpermanent_local_hook): New variable.
28121 (syms_of_buffer): Init and staticpro it.
28122
281232008-01-25 Michael Albinus <michael.albinus@gmx.de>
28124
28125 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
28126
281272008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
28128
28129 * fns.c (Fclrhash): Return TABLE.
28130
281312008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28132
28133 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
28134 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
28135 is set even without positional changes.
28136 (x_scroll_bar_clear): Set bar->redraw_needed_p.
28137
28138 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
28139
281402008-01-23 Jason Rumney <jasonr@gnu.org>
28141
28142 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
28143
28144 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
28145 the unicode range available in MULE by locale-coding-system.
28146 Improve dbcs lead byte detection. Set event timestamp and modifiers
28147 earlier.
28148
281492008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28150
28151 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
28152 [MAC_OSX] (init_mac_osx_environment): Initialize it.
28153 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
28154 when used on child processes.
28155
281562008-01-21 Michael Albinus <michael.albinus@gmx.de>
28157
28158 * dbusbind.c (Fdbus_method_return_internal): Rename from
28159 Fdbus_method_return.
28160 (Fdbus_unregister_object): Move to dbus.el.
28161 (Fdbus_call_method, Fdbus_method_return_internal)
28162 (Fdbus_send_signal): Improve debug messages.
28163
281642008-01-20 Martin Rudalics <rudalics@gmx.at>
28165
28166 * undo.c (undo_inhibit_record_point): New variable.
28167 (syms_of_undo): Initialize it.
28168 (record_point): Don't record point when undo_inhibit_record_point
28169 is set.
28170
281712008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
28172
28173 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
28174
28175 * xdisp.c (Qauto_hscroll_mode): New var.
28176 (syms_of_xdisp): Initialize it.
28177 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
28178 window's buffer.
28179 (hscroll_windows): Don't check automatic_hscrolling_p here.
28180
28181 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
28182 vscroll if we're setting window-buffer to the value it already has.
28183
281842008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
28185
28186 * m/intel386.h: Remove references to XENIX.
28187
281882008-01-17 Andreas Schwab <schwab@suse.de>
28189
28190 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
28191 instead of HAVE_X86_64_LIB64_DIR.
28192 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
28193
281942008-01-17 Glenn Morris <rgm@gnu.org>
28195
28196 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
28197 to HAVE_X86_64_LIB64_DIR.
28198
281992008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
28200
28201 * s/irix3-3.h:
28202 * s/irix4-0.h:
28203 * s/386-ix.h:
28204 * s/domain.h:
28205 * s/hpux9-x11r4.h:
28206 * s/hpux9shxr4.h: Remove files for systems no longer supported.
28207
28208 * sysdep.c: Remove code containing references to symbols defined
28209 by unsupported systems.
28210
282112008-01-16 Glenn Morris <rgm@gnu.org>
28212
28213 * coding.c (select-safe-coding-system-function): Doc fix.
28214
282152008-01-15 Glenn Morris <rgm@gnu.org>
28216
28217 * config.in: Revert 2008-01-13 change: this is a generated file.
28218
282192008-01-13 Tom Tromey <tromey@redhat.com>
28220
28221 * lisp.h: Fix typo.
28222
282232008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28224
28225 * m/sequent-ptx.h:
28226 * m/sequent.h:
28227 * s/ptx.h:
28228 * s/ptx4-2.h:
28229 * s/ptx4.h: Remove files for systems no longer supported.
28230
28231 * callproc.c (Fcall_process): Fix previous change.
28232
282332008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28234
28235 * unexsunos4.c: Remove file, system not supported anymore.
28236
28237 * m/mips.h:
28238 * m/intel386.h:
28239 * callproc.c:
28240 * config.in:
28241 * ecrt0.c:
28242 * emacs.c:
28243 * fileio.c:
28244 * frame.c:
28245 * getpagesize.h:
28246 * keyboard.c:
28247 * lread.c:
28248 * process.c:
28249 * puresize.h:
28250 * sysdep.c:
28251 * systty.h:
28252 * syswait.h:
28253 * unexec.c:
28254 * xdisp.c:
28255 * alloc.c: Remove code containing references to symbols defined by
28256 unsupported systems.
28257
282582008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
28259
28260 * coding.c (detect_coding_mask): Fix previous change.
28261
282622008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
28263
28264 * coding.c (detect_coding_iso2022): New arg
28265 latin_extra_code_state. Allow Latin extra codes only
28266 when *latin_extra_code_state is nonzero.
28267 (detect_coding_mask): If there is a NULL byte, detect the encoding
28268 as UTF-16 or binary. If Latin extra codes exist, detect the
28269 encoding as ISO-2022 only when there's no other proper encoding is
28270 found.
28271
282722008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28273
28274 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
28275 #ifdef MAC_OS.
28276
282772008-01-08 Richard Stallman <rms@gnu.org>
28278
28279 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
28280
282812008-01-06 Nick Roberts <nickrob@snap.net.nz>
28282
28283 * keyboard.c (parse_menu_item): Don't enclose key bindings on
28284 menu bar in parentheses.
28285
282862008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
28287
28288 * m/7300.h:
28289 * m/acorn.h:
28290 * m/alliant-2800.h:
28291 * m/alliant.h:
28292 * m/alliant1.h:
28293 * m/alliant4.h:
28294 * m/altos.h:
28295 * m/amdahl.h:
28296 * m/apollo.h:
28297 * m/att3b.h:
28298 * m/aviion-intel.h:
28299 * m/aviion.h:
28300 * m/celerity.h:
28301 * m/clipper.h:
28302 * m/cnvrgnt.h:
28303 * m/convex.h:
28304 * m/cydra5.h:
28305 * m/delta88k.h:
28306 * m/dpx2.h:
28307 * m/dual.h:
28308 * m/elxsi.h:
28309 * m/f301.h:
28310 * m/gould-np1.h:
28311 * m/gould.h:
28312 * m/i860.h:
28313 * m/ibmps2-aix.h:
28314 * m/ibmrt-aix.h:
28315 * m/ibmrt.h:
28316 * m/irist.h:
28317 * m/is386.h:
28318 * m/isi-ov.h:
28319 * m/mega68.h:
28320 * m/mg1.h:
28321 * m/news-r6.h:
28322 * m/news-risc.h:
28323 * m/news.h:
28324 * m/nh3000.h:
28325 * m/nh4000.h:
28326 * m/ns16000.h:
28327 * m/ns32000.h:
28328 * m/nu.h:
28329 * m/orion.h:
28330 * m/orion105.h:
28331 * m/paragon.h:
28332 * m/pfa50.h:
28333 * m/plexus.h:
28334 * m/pyramid.h:
28335 * m/pyrmips.h:
28336 * m/sh3el.h:
28337 * m/sps7.h:
28338 * m/sr2k.h:
28339 * m/stride.h:
28340 * m/sun1.h:
28341 * m/sun2.h:
28342 * m/sun3-68881.h:
28343 * m/sun3-fpa.h:
28344 * m/sun3-soft.h:
28345 * m/sun3.h:
28346 * m/sun386.h:
28347 * m/symmetry.h:
28348 * m/tad68k.h:
28349 * m/tahoe.h:
28350 * m/targon31.h:
28351 * m/tek4300.h:
28352 * m/tekxd88.h:
28353 * m/tower32.h:
28354 * m/tower32v3.h:
28355 * m/ustation.h:
28356 * m/wicat.h:
28357 * m/xps100.h:
28358 * s/cxux.h:
28359 * s/cxux7.h:
28360 * s/dgux.h:
28361 * s/dgux4.h:
28362 * s/dgux5-4-3.h:
28363 * s/dgux5-4r2.h:
28364 * s/esix.h:
28365 * s/esix5r4.h:
28366 * s/hiuxmpp.h:
28367 * s/hiuxwe2.h:
28368 * s/iris3-5.h:
28369 * s/iris3-6.h:
28370 * s/isc2-2.h:
28371 * s/isc3-0.h:
28372 * s/isc4-0.h:
28373 * s/isc4-1.h:
28374 * s/newsos5.h:
28375 * s/newsos6.h:
28376 * s/osf1.h:
28377 * s/osf5-0.h:
28378 * s/riscix1-1.h:
28379 * s/riscix12.h:
28380 * s/sco4.h:
28381 * s/sco5.h:
28382 * s/sunos4-0.h:
28383 * s/sunos4-1.h:
28384 * s/sunos413.h:
28385 * s/sunos4shr.h:
28386 * s/umax.h:
28387 * s/unipl5-2.h:
28388 * s/xenix.h:
28389 * cxux-crt0.s:
28390 * unexapollo.c:
28391 * unexconvex.c:
28392 * unexenix.c:
28393 * unexsni.c: Remove files for systems no longer supported.
28394
28395 * m/intel386.h: Remove references to unsupported systems.
28396
28397 * w32.c (get_emacs_configuration): Remove reference to i860.
28398
28399 * sysdep.c: Remove dead code.
28400
284012008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
28402
28403 * s/rtu.h:
28404 * m/masscomp.h: Remove files. Platform is obsolete.
28405
284062008-01-04 Michael Albinus <michael.albinus@gmx.de>
28407
28408 * dbusbind.c (Fdbus_method_return): New function.
28409 (xd_read_message): Add the serial number to the event.
28410 (Fdbus_register_method): Activate the function.
28411
284122008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
28413
28414 * keyboard.c (read_key_sequence): Fix typo.
28415
284162008-01-03 Michael Albinus <michael.albinus@gmx.de>
28417
28418 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
28419 (xd_signature, xd_append_arg): Handle element type detection for
28420 empty arrays.
28421 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
28422 SDATA () calls; this must be solved more general.
28423 (Fdbus_register_signal): Use SBYTES instead of strlen.
28424
284252008-01-03 Magnus Henoch <magnus@zemdatav>
28426
28427 * dbusbind.c (xd_append_arg): Use unsigned char instead of
28428 unsigned int for byte values (necessary for big-endian platform).
28429 (Fdbus_call_method): Handle the case of no returned arguments.
28430
284312007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
28432
28433 * dbusbind.c (xd_read_message): Use non-static input_event struct.
28434
284352007-12-31 Magnus Henoch <mange@freemail.hu>
28436
28437 * dbusbind.c (xd_signature): Signature of variant is just "v".
28438
284392007-12-30 Michael Albinus <michael.albinus@gmx.de>
28440
28441 * dbusbind.c: Fix several errors and compiler warnings.
28442 Reported by Tom Tromey <tromey@redhat.com>.
28443 (XD_ERROR, XD_DEBUG_MESSAGE)
28444 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
28445 (xd_append_arg): Part for basic D-Bus types rewritten.
28446 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
28447 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
28448 appropriate.
28449 (xd_read_message): Return Qnil. Don't signal an error; it is not
28450 useful during event reading.
28451 (Fdbus_register_signal): Signal an error if the check for
28452 FUNCTIONP fails.
28453 (Fdbus_register_method): New function. The implementation is not
28454 complete, the call of the function signals an error therefore.
28455 (Fdbus_unregister_object): New function, renamed from
28456 Fdbus_unregister_signal. The initial check signals an error, if
28457 the object is not well formed.
28458
284592007-12-30 Richard Stallman <rms@gnu.org>
28460
28461 * textprop.c (get_char_property_and_overlay):
28462 Signal error if POSITION is out of range in a buffer.
28463
284642007-12-29 Martin Rudalics <rudalics@gmx.at>
28465
28466 * w32fns.c (Fx_create_frame): Make copy of frame parameters
28467 because the original parameters are in pure storage now.
28468
284692007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28470
28471 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
28472
284732007-12-22 Eli Zaretskii <eliz@gnu.org>
28474
28475 * callint.c (syms_of_callint) <command-history>: Add reference to
28476 history-length in the doc string.
28477
284782007-12-17 Jason Rumney <jasonr@gnu.org>
28479
28480 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
28481 before passing as wParam.
28482
284832007-12-22 Michael Albinus <michael.albinus@gmx.de>
28484
28485 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
28486 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
28487 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
28488 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
28489 as number.
28490 (Fdbus_call_method): Fix docstring.
28491
284922007-12-21 Michael Albinus <michael.albinus@gmx.de>
28493
28494 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
28495 New macros.
28496 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
28497 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
28498 Simplify.
28499 (xd_signature): New function.
28500 (xd_append_arg): Compute also signatures. Major rewrite.
28501 (xd_retrieve_arg): Make debug messages friendly.
28502 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
28503 Check for signatures of arguments.
28504
285052007-12-19 Michael Albinus <michael.albinus@gmx.de>
28506
28507 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
28508 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
28509 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
28510 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
28511 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
28512 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
28513 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
28514 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
28515 (xd_retrieve_value): Remove. Functionality included in ...
28516 (xd_append_arg): New function.
28517 (Fdbus_call_method, Fdbus_send_signal): Apply it.
28518
285192007-12-16 Michael Albinus <michael.albinus@gmx.de>
28520
28521 * dbusbind.c (top): Include <stdio.h>.
28522 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
28523 dbus_message_new_method_call and dbus_message_new_signal.
28524 (Fdbus_register_signal): Rename unique_name to uname.
28525 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
28526 non-existing unique name. Fix typos in matching rule. Return an
28527 object which is useful in Fdbus_unregister_signal.
28528 (Fdbus_unregister_signal): Reimplementation, in order to remove
28529 only the corresponding entry.
28530 (Vdbus_registered_functions_table): Change the order of entries.
28531 Apply these changes in xd_read_message and Fdbus_register_signal.
28532
285332007-12-16 Andreas Schwab <schwab@suse.de>
28534
28535 * fileio.c (Finsert_file_contents): Fix overflow check to not
28536 depend on undefined integer overflow.
28537
285382007-12-14 Jason Rumney <jasonr@gnu.org>
28539
28540 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
28541 for characters above 127.
28542
285432007-12-13 Jason Rumney <jasonr@gnu.org>
28544
28545 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
28546 before dereferencing array.
28547 (lookup_vk_code): Remove zero comparison.
28548
285492007-12-14 Michael Albinus <michael.albinus@gmx.de>
28550
28551 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
28552 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
28553 Use `unsigned int' instead of `uint'.
28554 (xd_read_message, Fdbus_register_signal): Split expressions into
28555 multiple lines before operators "&&" and "||", according to the
28556 GNU Coding Standards.
28557
285582007-12-14 Eli Zaretskii <eliz@gnu.org>
28559
28560 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
28561
285622007-12-12 Juri Linkov <juri@jurta.org>
28563
28564 * buffer.c (Frename_buffer): In interactive spec replace
28565 `read-buffer' with `read-string' that uses `buffer-name-history'
28566 as history, and the current buffer's name as default.
28567
285682007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
28569
28570 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
28571 manipulating the backtrace manually.
28572 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
28573 (struct backtrace, backtrace_list): Remove.
28574 (command_loop_1): Remove dead var `no_direct'.
28575
28576 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
28577 preserve non-built-in buffer-local variables.
28578 (Fkill_all_local_variables): Don't re-create&re-set permanent
28579 buffer-local variables.
28580
285812007-12-09 Juri Linkov <juri@jurta.org>
28582
28583 * buffer.c (Frename_buffer): Change interactive spec from "s" to
28584 Lisp code that uses `read-buffer' with current buffer as default.
28585
285862007-12-08 Michael Albinus <michael.albinus@gmx.de>
28587
28588 * dbusbind.c (xd_read_message): Generate an event for every
28589 registered handler. There might be several handlers registered
28590 for the same signal.
28591 (Fdbus_register_signal): Don't overwrite a registration for the
28592 same signal. Add a new registration if handlers are different.
28593 (Vdbus_registered_functions_table): Rework doc string.
28594
285952007-12-07 Michael Albinus <michael.albinus@gmx.de>
28596
28597 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
28598 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
28599 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
28600 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
28601 Unify argument lists.
28602 (xd_read_message, Fdbus_register_signal): Reorder and extend event
28603 arguments and hash table keys. Use unique name for service.
28604 (Fdbus_unregister_signal): Remove checks.
28605 (Vdbus_registered_functions_table): Fix doc string.
28606
286072007-12-05 Magnus Henoch <mange@freemail.hu>
28608
28609 * process.c (make_process): Initialize pty_flag to 0.
28610
286112007-12-05 Jason Rumney <jasonr@gnu.org>
28612
28613 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
28614 specified XBMs.
28615
286162007-12-05 Richard Stallman <rms@gnu.org>
28617
28618 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
28619
286202007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28621
28622 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
28623 New variable.
28624 (mac_try_close_socket) [MAC_OSX]: New function.
28625 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
28626 Update cfsockets_for_select. Replace invalid CFRunLoop source.
28627
28628 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
28629 Use mac_try_close_socket.
28630
286312007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28632
28633 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
28634 reloc_base.
28635 (copy_dysymtab): Compute relocation base here.
28636 (rebase_reloc_address) [__ppc64__]: New function.
28637 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
28638 changed.
28639
286402007-12-05 Jason Rumney <jasonr@gnu.org>
28641
28642 * w32proc.c (sys_spawnve): Quote args with wildcards.
28643
286442007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28645
28646 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
28647 __objc_* sections.
28648 (unrelocate) [_LP64]: Set relocation base to address of data segment.
28649
286502007-12-05 Michael Albinus <michael.albinus@gmx.de>
28651
28652 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
28653 Move check for Vdbus_registered_functions_table to
28654 xd_read_queued_messages.
28655 (xd_read_queued_messages): Protect xd_read_message calls by
28656 internal_condition_case_1.
28657
286582007-12-04 Michael Albinus <michael.albinus@gmx.de>
28659
28660 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
28661 Qdbus_system_bus and Qdbus_session_bus, respectively.
28662 (Vdbus_intern_symbols): Remove.
28663 (Vdbus_registered_functions_table): New hash table.
28664 (XD_SYMBOL_INTERN_SYMBOL): Remove.
28665 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
28666 Rewrite in order to manage registered functions by hash table
28667 Vdbus_registered_functions_table.
28668
286692007-12-03 Jan Djärv <jan.h.d@swipnet.se>
28670
28671 * xterm.c: Update URL to Window Manager Specification in comment.
28672
286732007-12-02 Michael Albinus <michael.albinus@gmx.de>
28674
28675 * config.in (HAVE_DBUS): Add.
28676
28677 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
28678 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
28679 (obj): Add $(DBUS_OBJ).
28680 (LIBES): Add $(DBUS_LIBS).
28681 (dbusbind.o): New target.
28682
28683 * dbusbind.c: New file.
28684
28685 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
28686
28687 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
28688 (Qdbus_event): New Lisp symbol.
28689 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
28690 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 28691 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
28692
28693 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
28694
286952007-12-01 Richard Stallman <rms@gnu.org>
28696
28697 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
28698
286992007-11-30 Jason Rumney <jasonr@gnu.org>
28700
28701 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
28702 (w32con_reset_terminal_modes): Clear screen buffer.
28703 (w32_face_attributes): Don't use color indexes that are out of range.
28704 Only reverse the default colors.
28705
28706 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
28707 WINDOWSNT.
28708
28709 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
28710
287112007-11-29 Jason Rumney <jasonr@gnu.org>
28712
28713 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
28714 (w32_face_attributes): Use Vtty_defined_color_alist to determine
28715 if the terminal colors are initialized.
28716 (unspecified_fg, unspecified_bg): Remove unused declarations.
28717
287182007-11-29 Andreas Schwab <schwab@suse.de>
28719
28720 * keyboard.c (apply_modifiers): Fix typo.
28721
287222007-11-29 Richard Stallman <rms@gnu.org>
28723
28724 * keymap.c (Fcurrent_local_map): Doc fix.
28725
287262007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
28727
28728 * s/gnu-kfreebsd.h: New file.
28729
287302007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
28731
28732 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
28733 Don't cast redundantly.
28734
28735 * keyboard.c (KEY_TO_CHAR): New macro.
28736 (parse_modifiers, apply_modifiers): Accept integer arguments.
28737 (read_key_sequence): Use them to unify the "shift->unshift" mapping
28738 for chars and symbol keys.
28739 After doing such remapping, apply function-key-map again.
28740
287412007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
28742
28743 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
28744 compiled anymore.
28745
287462007-11-26 Andreas Schwab <schwab@suse.de>
28747
28748 * process.c (list_processes_1): Fix indentation level of the
28749 command column.
28750
287512007-11-23 Andreas Schwab <schwab@suse.de>
28752
28753 * editfns.c (Fformat): Handle %c specially since it requires the
28754 argument to be of type int.
28755
287562007-11-23 Markus Triska <markus.triska@gmx.at>
28757
28758 * emacs.c (main): Call init_editfns before init_process, since
28759 init_process sets Vprocess_connection_type depending on OS release.
28760
287612007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
28762
28763 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
28764 (find_symbol_value): Use do_symval_forwarding.
28765
28766 * data.c (set_internal): Set the value in the `cons-cell' (for
28767 Buffer_Local_values) not only for frame-local variables.
28768
287692007-11-22 Andreas Schwab <schwab@suse.de>
28770
28771 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
28772 values to sprintf.
28773 * keymap.c (Fsingle_key_description): Likewise.
28774 * print.c (print_object): Likewise.
28775
287762007-11-22 Jan Djärv <jan.h.d@swipnet.se>
28777
28778 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
28779 file for image is nil.
28780
287812007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
28782
28783 * term.c: Include stdarg.h.
28784 (fatal): Implement using varargs.
28785 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
28786
287872007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28788
28789 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
28790 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
28791 Update call to buffer_slot_type_mismatch.
28792 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
28793 (buffer_slot_type_mismatch): Update.
28794 * buffer.c (buffer_local_types): Remove.
28795 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
28796 (defvar_per_buffer): Set the type in the buffer_objfwd.
28797
287982007-11-21 Jason Rumney <jasonr@gnu.org>
28799
28800 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
28801 CreateFileMapping returns NULL on failure.
28802
288032007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28804
28805 * search.c (Fset_match_data): Remove the `evaporate' feature.
28806 (unwind_set_match_data): Don't use the `evaporate' feature.
28807
288082007-11-21 Jason Rumney <jasonr@gnu.org>
28809
28810 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
28811
28812 * w32console.c (w32con_write_glyphs): Remove unused variables.
28813
288142007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
28815
28816 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
28817
28818 * s/darwin.h (MULTI_KBOARD): Remove.
28819
28820 * macfns.c (x_create_tip_frame, Fx_create_frame)
28821 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
28822
288232007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
28824
28825 * buffer.c (Fbuffer_local_value): Remove redundant test.
28826 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
28827 than in `current-buffer' to match the comment.
28828 Do the swap using swap_in_global_binding.
28829
28830 * data.c (store_symval_forwarding, set_internal):
28831 * eval.c (specbind): Remove dead code.
28832
28833 * coding.c (detect_coding, Fupdate_coding_systems_internal):
28834 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
28835 Since we do not want to see internal Lisp_*fwd objects here.
28836
288372007-11-18 Jan Djärv <jan.h.d@swipnet.se>
28838
28839 * sysdep.c (init_system_name): Use getaddrinfo if available.
28840
28841 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
28842 (x_scroll_bar_note_movement): start, end, with, height in struct
28843 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
28844
288452007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
28846
28847 * puresize.h (BASE_PURESIZE): Increase to 1190000.
28848
288492007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
28850
28851 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
28852 This undoes Richard's change of 14-Oct-2002.
28853
28854 * alloc.c (allocate_other_vector):
28855 * lisp.h (allocate_other_vector): Remove.
28856
28857 * window.c (struct save_window_data): Move non-lisp data to the end
28858 and make it `int' rather than Lisp_Object.
28859 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
28860 Done wrap/unwrap integer values.
28861 (Fset_window_configuration, compare_window_configurations):
28862 Update use of fields to their new types.
28863
28864 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
28865 Turn integer fields into `int'. Merge x_window_low and x_window_high.
28866 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
28867 (SET_SCROLL_BAR_X_WINDOW): Remove.
28868 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
28869 Access the new x_window field directly.
28870 * xterm.c (x_scroll_bar_create): Use a pseudovector.
28871 Don't wrap/unwrap integers into Lisp_Objects.
28872 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
28873 (x_scroll_bar_report_motion):
28874 Don't wrap/unwrap integers into Lisp_Objects.
28875 (x_term_init): Use SDATA.
28876 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
28877 (x_scroll_bar_set_handle, x_scroll_bar_remove)
28878 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
28879 (x_scroll_bar_report_motion, x_scroll_bar_clear):
28880 * xfns.c (x_set_background_color):
28881 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
28882 Access the new x_window field directly.
28883
28884 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
28885 (allocate_pseudovector): Make non-static.
28886
28887 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
28888 (allocate_pseudovector): Declare.
28889 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
28890
288912007-11-15 Andreas Schwab <schwab@suse.de>
28892
28893 * editfns.c (Fformat): Correctly format EMACS_INT values.
28894 Also take precision into account when formatting an integer.
28895
28896 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
28897
288982007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
28899
28900 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
28901 (syms_of_keyboard): Defsubr it.
28902
28903 * data.c (swap_in_global_binding): Fix longstanding bug where
28904 store_symval_forwarding was not called with the right second argument,
28905 thus causing objfwd-ing from being dropped.
28906
289072007-11-14 Juanma Barranquero <lekktu@gmail.com>
28908
28909 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
28910 (Fx_display_pixel_height, Fx_display_planes)
28911 (Fx_display_color_cells, Fx_server_max_request_size)
28912 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
28913 (Fx_display_visual_class, Fx_display_save_under):
28914 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
28915 (Fx_display_pixel_height, Fx_display_planes)
28916 (Fx_display_color_cells, Fx_server_max_request_size)
28917 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
28918 (Fx_display_mm_height, Fx_display_mm_width)
28919 (Fx_display_backing_store, Fx_display_visual_class)
28920 (Fw32_select_font, Fx_display_save_under):
28921 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
28922 (Fx_display_pixel_height, Fx_display_planes)
28923 (Fx_display_color_cells, Fx_server_max_request_size)
28924 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
28925 (Fx_display_save_under): Fix typos in docstrings.
28926
289272007-11-14 Juanma Barranquero <lekktu@gmail.com>
28928
28929 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
28930 corresponding to deleted entries; they are an implementation detail.
28931 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
28932 Remove variables.
28933 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
28934 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
28935 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
28936 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
28937 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
28938 (Fw32_define_rgb_color, Fw32_load_color_file)
28939 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
28940 Fix typos in docstrings.
28941 (Fx_server_version): Reflow docstring.
28942 (Fw32_shell_execute): Doc fixes.
28943
289442007-11-13 Juanma Barranquero <lekktu@gmail.com>
28945
28946 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
28947 if w32_parse_hot_key returned nil.
28948
289492007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
28950
28951 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
28952
289532007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 28954
aac0c6e3
MR
28955 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
28956
28957 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
28958
28959 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
28960 Remove W32_SCROLL_BAR_CLICK_EVENT.
28961
28962 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
28963 Add MULTIMEDIA_KEY_EVENT.
28964
28965 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
28966 (lispy_multimedia_keys) [WINDOWSNT]: New array.
28967 (make_lispy_event) [WINDOWSNT]: Use it to translate
28968 MULTIMEDIA_KEY_EVENT.
28969
28970 * w32term.h (WM_APPCOMMAND): Define if not already.
28971 (GET_APPCOMMAND_LPARAM): Likewise.
28972
28973 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
28974 WM_APPCOMMAND.
28975
28976 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
28977 (syms_of_w32fns): Export and initialize it.
28978 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
28979
289802007-11-09 Chong Yidong <cyd@stupidchicken.com>
28981
28982 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
28983 twice.
28984
28985 * xdisp.c (handle_face_prop): Fix last change.
28986
289872007-11-09 Richard Stallman <rms@gnu.org>
28988
28989 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
28990 not just for after-strings and before-strings.
28991 Call face_for_overlay_string and pass the overlay to it.
28992 (handle_display_prop): Determine whether property came from an overlay.
28993 Pass OVERLAY arg to handle_single_display_spec.
28994 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
28995 (load_overlay_strings): Fill in it->string_overlays.
28996 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
28997
28998 * xfaces.c (face_for_overlay_string): Function renamed from
28999 face_at_buffer_position_no_overlays, and add arg OVERLAY.
29000
29001 * dispextern.h (struct it): New elt string_overlays.
29002 New elt from_overlay, also in stack.
29003 Rearrange a few elements.
29004 (face_for_overlay_string): Decl renamed from
29005 face_at_buffer_position_no_overlays, and add argument.
29006
290072007-11-09 Richard Stallman <rms@gnu.org>
29008
29009 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29010 to get the base face for an overlay string.
29011
29012 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29013
29014 * xfaces.c (face_at_buffer_position_no_overlays): New function.
29015
29016 * xdisp.c (handle_stop): Move some code out of loop.
29017
290182007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29019
29020 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29021 Fix conversion from Lisp object to ATSUFontID.
29022
290232007-11-09 Jason Rumney <jasonr@gnu.org>
29024
29025 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
29026
290272007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29028
29029 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
29030 Don't assume regions are aligned to page boundary.
29031 (print_load_command_name): Add LC_UUID if defined.
29032
290332007-11-09 Richard Stallman <rms@gnu.org>
29034
29035 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
29036
290372007-11-07 Jason Rumney <jasonr@gnu.org>
29038
29039 * s/windows95.h: Remove.
29040
290412007-11-06 Jan Djärv <jan.h.d@swipnet.se>
29042
29043 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
29044 abort with a message on unhandled store_type values.
29045
290462007-11-01 Jan Djärv <jan.h.d@swipnet.se>
29047
29048 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
29049 Remove HAVE_X11R5 and HAVE_X11R4.
29050
290512007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29052
29053 * Makefile.in: Remove references to sunfns.c and sunfns.o.
29054
290552007-11-01 Johan Bockgård <bojohan@gnu.org>
29056
29057 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
29058 Don't set s->stippled_p here, since it has already been set by
29059 x_set_glyph_string_gc from x_draw_glyph_string.
29060
290612007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29062
29063 * sunfns.c: Remove file.
29064
29065 * m/sun386.h:
29066 * m/sun2.h:
29067 * m/sparc.h: Remove Sun windows code.
29068
290692007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
29070
29071 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
29072 (init_keyboard): Set current_kboard's window-system to nil.
29073 (tty_read_avail_input): Typo.
29074 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
29075
290762007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
29077
29078 * s/usg5-4.h:
29079 * s/usg5-3.h:
29080 * s/ptx.h:
29081 * m/is386.h:
29082 * m/ibmps2-aix.h:
29083 * Makefile.in: Remove all mentions of X10.
29084
29085 * dispnew.c (syms_of_display): Don't mention version 10.
29086
290872007-10-28 Juanma Barranquero <lekktu@gmail.com>
29088
29089 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
29090 ($(BLD)/abbrev.$(O)): Remove.
29091
290922007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
29093
29094 Rewrite abbrev.c in Elisp.
29095 * image.c (Qcount): Don't declare as extern.
29096 (syms_of_image): Initialize and staticpro `Qcount'.
29097 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
29098 * emacs.c (main): Don't call syms_of_abbrev.
29099 * Makefile.in (obj): Remove abbrev.o.
29100 (abbrev.o): Remove.
29101 * abbrev.c: Remove.
29102
291032007-10-26 Martin Rudalics <rudalics@gmx.at>
29104
29105 * window.c (window_min_size_2): Don't count header-line.
29106
291072007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
29108
29109 * frame.h (struct frame): Move all bit fields after the first bit
29110 field to take advantage of the available space. Group all the
29111 chars together to reduce wasted space due to padding.
29112
291132007-10-26 Juanma Barranquero <lekktu@gmail.com>
29114
29115 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
29116
29117 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
29118 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
29119 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
29120 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
29121 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
29122 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
29123 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
29124 (last_marked, mark_object_loop_halt): Make static.
29125
29126 * frame.c (syms_of_frame) <delete-frame-functions>:
29127 Fix typo in docstring.
29128
291292007-10-25 Juanma Barranquero <lekktu@gmail.com>
29130
29131 * w32.c (init_environment): Fix tiny memory leak.
29132 (w32_get_resource): Remove unused variable `ok'.
29133
291342007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
29135
29136 Make `window-system' into a keyboard-local variable (rather than
29137 frame-local as done originally by multi-tty).
29138
29139 * keyboard.h (struct kboard): Add Vwindow_system.
29140 * keyboard.c (init_kboard): Set a default for Vwindow_system.
29141 (mark_kboards): Mark Vwindow_system.
29142
29143 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
29144 (init_display): Don't set the obsolete `window-system' frame-param.
29145
29146 * xterm.c (x_term_init):
29147 * w32term.c (w32_create_terminal):
29148 * term.c (init_tty): Set Vwindow_system.
29149 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
29150 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
29151
29152 * xfns.c (Fx_create_frame, x_create_tip_frame):
29153 * w32fns.c (Fx_create_frame, x_create_tip_frame):
29154 * macfns.c (Fx_create_frame):
29155 Don't set the obsolete `window-system' frame-param.
29156
29157 * frame.h (Qwindow_system): Remove.
29158 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
29159 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
29160
291612007-10-24 Richard Stallman <rms@gnu.org>
29162
29163 * frame.c (x_figure_window_size): For fullscreen case,
29164 set USPosition | PPosition without clobbering rest of window_prompting.
29165
29166 * keyboard.c (Fcurrent_idle_time): Doc fix.
29167
29168 * print.c (Fwith_output_to_temp_buffer): Doc fix.
29169
291702007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
29171
29172 * process.c (unwind_request_sigio): Only define if __ultrix__.
29173
29174 * callproc.c (child_setup): Remove spurious *.
29175
29176 * lisp.h (Fget_text_property): Declare.
29177 (have_menus_p): Declare it here rather than in sys-dep header files.
29178 * macterm.h (have_menus_p):
29179 * msdos.h (have_menus_p):
29180 * xterm.h (have_menus_p): Remove.
29181
29182 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
29183 (Fmake_variable_frame_local): Just check the variable's const-ness
29184 rather than checking nil or t.
29185
291862007-10-22 Jason Rumney <jasonr@gnu.org>
29187
29188 * w32fns.c: Include math.h.
29189 (w32_abort): Declaration moved to nt/config.nt.
29190
29191 * s/ms-w32.h (HAVE_STDLIB_H): Define.
29192 (abort): Redefinition moved to nt/config.nt.
29193
29194 * m/windowsnt.h: Remove.
29195
291962007-10-22 Juanma Barranquero <lekktu@gmail.com>
29197
29198 * emacs.c (Fdump_emacs): Fix typo in message.
29199 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
29200 <installation-directory>: Reflow docstring.
29201
292022007-10-22 Juri Linkov <juri@jurta.org>
29203
29204 * minibuf.c: Allow minibuffer default to be a list of default values.
29205 With empty input use the first element of this list as returned default.
29206 (string_to_object)
29207 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
29208 (read_minibuf): If defalt is cons, set histstring to its car.
29209 (Fread_string): If default_value is cons, set val to its car.
29210 (Fread_buffer): If def is cons, use its car.
29211 (Fcompleting_read): If defalt is cons, set val to its car.
29212
292132007-10-21 Michael Albinus <michael.albinus@gmx.de>
29214
29215 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
29216
292172007-10-20 Juanma Barranquero <lekktu@gmail.com>
29218
29219 * doc.c (Fdocumentation): Check for advice in all cases.
29220
292212007-10-19 Chong Yidong <cyd@stupidchicken.com>
29222
29223 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
29224
292252007-10-19 Richard Stallman <rms@gnu.org>
29226
29227 * doc.c (Fdocumentation): Check for and handle an advised function.
29228
292292007-10-19 Juanma Barranquero <lekktu@gmail.com>
29230
29231 * process.c (Fset_process_filter): Doc fix.
29232
292332007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
29234
29235 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
29236 which caused key-translation-map to applied repeatedly (thus breaking
29237 double-mode).
29238
292392007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29240
29241 * xselect.c (x_own_selection, x_handle_selection_clear)
29242 (x_clear_frame_selections):
29243 * w32menu.c (list_of_panes, list_of_items):
29244 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
29245 * textprop.c (validate_plist, interval_has_all_properties)
29246 (interval_has_some_properties, interval_has_some_properties_list)
29247 (add_properties, text_property_list):
29248 * process.c (Fget_buffer_process, list_processes_1, status_notify):
29249 * minibuf.c (Fassoc_string):
29250 * macselect.c (x_own_selection, x_clear_frame_selections)
29251 (Fx_disown_selection_internal):
29252 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
29253 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
29254
292552007-10-17 Chong Yidong <cyd@stupidchicken.com>
29256
29257 * process.c: Link to libs for calling res_init() if available.
29258 (Fmake_network_process): Call res_init() before getaddrinfo or
29259 gethostbyname, if possible.
29260
292612007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29262
29263 * lread.c (read1): Set pvectype for char_tables.
29264
29265 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
29266 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
29267 Add type checks.
29268 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
29269
29270 * alloc.c (free_misc): Use XMISCTYPE.
29271 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
29272
292732007-10-17 Glenn Morris <rgm@gnu.org>
29274
29275 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
29276 (syms_of_minibuf): Add Qcompletion_ignore_case.
29277 * dired.c (Qcompletion_ignore_case): Change to external.
29278 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
29279 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
29280 (Fread_file_name): Use it rather than intern'ing.
29281
29282 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
29283 (Fread_coding_system): Ignore case of user input.
29284
292852007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29286
29287 * xdisp.c (handle_display_prop): Ignore display specs after
29288 replacing one when string text is being replaced.
29289 (handle_single_display_spec): Pretend as if characters with display
29290 property haven't been consumed only when buffer text is being replaced.
29291
292922007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
29293
29294 * xfns.c (Fx_create_frame, Fx_display_list):
29295 * window.c (window_fixed_size_p, enlarge_window)
29296 (shrink_window_lowest_first):
29297 * macterm.c (init_font_name_table):
29298 * macfns.c (Fx_create_frame, Fx_display_list):
29299 * lread.c (close_load_descs):
29300 * keyboard.c (read_char_x_menu_prompt):
29301 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
29302 * coding.c (code_convert_region_unwind): Test the type of an object
29303 rather than just !NILP before extracting data from it.
29304
29305 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
29306
29307 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
29308 (XMISCANY): New macro.
29309 (XMISCTYPE): Use it.
29310 (struct Lisp_Misc_Any): New type.
29311 (union Lisp_Misc): Use it.
29312 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
29313 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
29314 (find_symbol_value, set_internal, default_value, Fset_default)
29315 (Fmake_variable_buffer_local, Fmake_local_variable)
29316 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
29317 (Flocal_variable_if_set_p, Fvariable_binding_locus):
29318 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
29319 * alloc.c (allocate_buffer): Set the size and tag.
29320 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
29321 Use XMISCANY.
29322 (die): Follow the GNU convention for error messages.
29323 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
29324 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
29325 tag any more.
29326 (set_buffer_internal_1):
29327 * frame.c (store_frame_param):
29328 * eval.c (specbind):
29329 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
29330
29331 * doc.c (Fsnarf_documentation): Simplify.
29332
293332007-10-14 Juanma Barranquero <lekktu@gmail.com>
29334
29335 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
29336 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
29337
293382007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
29339
29340 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
29341
293422007-10-14 Juanma Barranquero <lekktu@gmail.com>
29343
29344 * eval.c (do_autoload): Don't save autoloads.
29345
29346 * data.c (Ffset): Save autoload of the function being set.
29347
293482007-10-07 John Paul Wallington <jpw@pobox.com>
29349
29350 * xfns.c (x_create_tip_frame): Set the `display-type' frame
29351 parameter before setting up faces.
29352
293532007-10-13 Eli Zaretskii <eliz@gnu.org>
29354
29355 * ccl.c (Fregister_code_conversion_map):
29356 * keyboard.c (append_tool_bar_item): Reformat last change.
29357
29358 * lisp.h (eabs): Rename from `abs'. All callers changed.
29359
293602007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
29361
29362 * buffer.c (add_overlay_mod_hooklist):
29363 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
29364 * fontset.c (make_fontset):
29365 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
29366 (append_tool_bar_item):
29367 * macmenu.c (grow_menu_items):
29368 * w32menu.c (grow_menu_items):
29369 * xmenu.c (grow_menu_items): Use larger_vector.
29370
293712007-10-13 Eli Zaretskii <eliz@gnu.org>
29372
29373 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
29374 selected frame'' on MSDOS).
29375
293762007-10-12 Martin Rudalics <rudalics@gmx.at>
29377
29378 * frame.c (Qexplicit_name): New variable.
29379 (x_report_frame_params): Report it in parameter alist.
29380 (syms_of_frame): Intern and staticpro it.
29381
293822007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
29383
29384 * macfns.c (x_create_tip_frame): Set terminal for frame.
29385
293862007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
29387
29388 * frame.c (Qenvironment): Remove.
29389 (syms_of_frame) <Qenvironment>: Don't initialize.
29390 (Fdelete_frame): Don't treat the `environment' param specially.
29391 * frame.h (Qenvironment): Don't declare.
29392 * callproc.c (set_initial_environment): Don't set unused frame param.
29393
29394 * frame.c (Fframe_with_environment): Remove.
29395 (syms_of_frame) <Sframe_with_environment>: Don't declare.
29396
29397 * lisp.h (Fframe_with_environment): Don't declare.
29398
293992007-10-10 Juanma Barranquero <lekktu@gmail.com>
29400
29401 * indent.c (indent_tabs_mode, last_known_column)
29402 (last_known_column_modified): Make static.
29403 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
29404
294052007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
29406
29407 * puresize.h (BASE_PURESIZE): Increase to 1170000.
29408
294092007-10-09 Jason Rumney <jasonr@gnu.org>
29410
29411 * w32term.c (x_set_window_size): Disable code that attempts to tell
29412 Lisp code about a size change before it actually happens.
29413
294142007-10-09 Richard Stallman <rms@gnu.org>
29415
29416 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
29417 return HANDLED_RETURN.
29418
294192007-10-08 Martin Rudalics <rudalics@gmx.at>
29420
29421 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
29422 when there's an unread command event.
29423
29424 * frame.c (focus_follows_mouse): Move here from frame.el to allow
29425 window autoselection act appropriately when leaving selected frame.
29426 (syms_of_frame): Initialize focus_follows_mouse.
29427 * frame.h (focus_follows_mouse): Extern it.
29428 * macterm.c (XTread_socket): When focus_follows_mouse is nil
29429 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
29430 * msdos.c (dos_rawgetc): Likewise.
29431 * w32term.c (w32_read_socket): Likewise.
29432 * xterm.c (handle_one_xevent): Likewise.
29433 * xdisp.c (syms_of_xdisp): In doc-string of
29434 mouse-autoselect-window mention focus-follows-mouse.
29435
294362007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29437
29438 * macterm.c (mac_load_query_font): Fix missing return value.
29439 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
29440 Add BLOCK_INPUT.
29441
294422007-10-08 Richard Stallman <rms@gnu.org>
29443
29444 * xdisp.c (get_window_cursor_type): Implement documented behavior
29445 for cursor-in-non-selected-windows = t.
29446
294472007-10-08 Jason Rumney <jasonr@gnu.org>
29448
29449 * w32.c (w32_get_resource): Always close registry keys.
29450
294512007-10-08 Jason Rumney <jasonr@gnu.org>
29452
29453 * makefile.w32-in (LIBS): Add COMCTL32.
29454
29455 * w32fns.c (globals_of_w32fns): Init common controls.
29456
294572007-10-08 Richard Stallman <rms@gnu.org>
29458
29459 * image.c (our_memory_buffer): Rename from omfib_buffer.
29460
294612007-10-08 Richard Stallman <rms@gnu.org>
29462
29463 * buffer.c (Foverlays_at): Doc fix.
29464
294652007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
29466
29467 * fns.c (Fplist_put): Preserve uneven tail data.
29468
294692007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
29470
29471 * termhooks.h (enum event_kind): Remove trailing comma.
29472
29473 * frame.h (enum): Remove trailing comma.
29474
294752007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
29476
29477 * w32proc.c (delete_child): Don't terminate threads of zombies.
29478
294792007-10-08 Martin Rudalics <rudalics@gmx.at>
29480
29481 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
29482
29483 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
29484 last-repeatable-command.
29485 (init_kboard): Initialize Vlast_repeatable_command.
29486 (command_loop_1): Set it to real_this_command unless that was
29487 bound to an input event.
29488 (mark_kboards): Mark it.
29489
294902007-10-08 Richard Stallman <rms@gnu.org>
29491
29492 * eval.c (condition-case): Doc fix.
29493
294942007-10-08 Masatake YAMATO <jet@gyve.org>
29495
29496 * xfaces.c (tty_supports_face_attributes_p): Fix code
29497 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
29498 was copied and not edited.
29499
295002007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
29501
29502 Add new `input-decode-map' keymap and use it for terminal
29503 escape sequences.
29504 * keyboard.h (struct kboard): Add Vinput_decode_map.
29505 Remove Vlocal_key_translation_map.
29506 * keyboard.c (read_key_sequence): Add support for input-decode-map.
29507 (init_kboard): Init input-decode-map.
29508 Replace local-key-translation-map back with key-translation-map.
29509 (syms_of_keyboard): Declare input-decode-map.
29510 Remove local-key-translation-map. Update docstrings.
29511 (mark_kboards): Mark Vinput_decode_map.
29512 Don't mark Vlocal_key_translation_map.
29513 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
29514 Replace local-key-translation-map back with key-translation-map.
29515 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
29516 Bind in input-decode-map rather than function-key-map.
29517
29518 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
29519 This was made redundant by the previous introduction of XSETPVECTYPE.
29520
295212007-10-09 Richard Stallman <rms@gnu.org>
29522
29523 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
29524
295252007-09-29 Richard Stallman <rms@gnu.org>
29526
29527 * eval.c (internal_condition_case_2, internal_condition_case_1)
29528 (internal_condition_case): Reenable abort if x_catching_errors ()
29529 to see if that really happens and why.
29530
295312007-10-06 Andreas Schwab <schwab@suse.de>
29532
29533 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
29534
295352007-10-04 Juanma Barranquero <lekktu@gmail.com>
29536
29537 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
29538
295392007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
29540
29541 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
29542
295432007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
29544
29545 * window.h (struct window):
29546 * window.c (struct save_window_data, struct saved_window):
29547 * termhooks.h (struct terminal):
29548 * process.h (struct Lisp_Process):
29549 * frame.h (struct frame):
29550 * buffer.h (struct buffer):
29551 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
29552 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
29553 The size field of (pseudo)vectors is now unsigned.
29554 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
29555
29556 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
29557 Turn `count' into an integer.
29558
29559 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
29560 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
29561 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
29562 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
29563 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
29564
29565 * alloc.c (allocate_pseudovector): New fun.
29566 (ALLOCATE_PSEUDOVECTOR): New macro.
29567 (allocate_window, allocate_terminal, allocate_frame)
29568 (allocate_process): Use it.
29569 (mark_vectorlike): New function.
29570 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
29571 (mark_terminals): Use it.
29572 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
29573 (Fmake_byte_code): Use XSETPVECTYPE.
29574
29575 * frame.c (Fframe_parameters): Minor simplification.
29576
29577 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
29578
29579 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
29580
29581 * buffer.c (Fget_buffer_create, init_buffer_once):
29582 * lread.c (defsubr):
29583 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
29584
29585 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
29586 defined differently in the m/*.h files.
29587 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
29588 (XSETPVECTYPE): New macro.
29589 (XSETPSEUDOVECTOR): Use it.
29590
29591 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
29592 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
29593
29594 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
29595 * lread.c (defvar_per_buffer):
29596 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
29597
29598 * window.c (candidate_window_p): Only consider as visible frames that
29599 are on the same terminal.
29600
29601 * m/ibms390x.h (MARKBIT): Remove unused macro.
29602
296032007-10-01 Juanma Barranquero <lekktu@gmail.com>
29604
29605 * lread.c (Fload): Fix typo in docstring.
29606
296072007-10-01 Michaël Cadilhac <michael@cadilhac.name>
29608
29609 * floatfns.c (Fexpt): Manually check for overflows, so that a power
29610 of a non-zero value can't yield zero.
29611
296122007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
29613
29614 * term.c (term_clear_mouse_face, term_mouse_highlight)
29615 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
29616
29617 * print.c (safe_debug_print): Use XHASH.
29618
29619 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
29620 Lisp elements such as tags.
29621 (XHASH): New macro.
29622 (EQ): Use it.
29623 (SREF, SSET, STRING_COPYIN): Use SDATA.
29624 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
29625
29626 * alloc.c (mark_terminal): Remove left-over declaration.
29627 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
29628 (allocate_vectorlike): Remove type argument. Adjust callers.
29629 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
29630 Only handle the one remaining MEM_TYPE_VECTORLIKE.
29631
29632 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
29633 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
29634 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
29635 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
29636 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
29637 Use them.
29638
29639 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
29640 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
29641 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
29642
296432007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
29644
29645 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
29646 loaded by default.
29647
296482007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
29649
29650 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
29651 on this tty.
29652 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
29653
29654 * term.c (mouse_face_window): Rename from Qmouse_face_window.
29655 Update all users.
29656 (handle_one_term_event): Use Gpm_DrawPointer.
29657 (Fgpm_mouse_start): Rename from Fterm_open_connection.
29658 Signal errors instead of returning nil. Always return nil.
29659 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
29660 Make it a noop if gpm-mouse was not activated.
29661 (syms_of_term): Update names.
29662
296632007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
29664
29665 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
29666 (init_sys_modes): Check that gpm_tty is the current tty.
29667
29668 * alloc.c (allocate_terminal): Set the vector size to only count the
29669 lisp fields. Initialize those to nil.
29670 (mark_object): Don't treat terminals specially.
29671 (mark_terminal): Remove.
29672 (mark_terminals): Use mark_object instead.
29673
29674 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
29675 the GC to the beginning.
29676
29677 * indent.h:
29678 * indent.c: Use EMACS_INT for ints coming from Elisp data.
29679
29680 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
29681
296822007-09-25 Jason Rumney <jasonr@gnu.org>
29683
29684 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
29685
29686 * w32console.c (create_w32cons_output): Remove.
29687
29688 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
29689
29690 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
29691 (reset_sys_modes): Use reset_terminal_modes_hook.
29692
296932007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
29694
29695 * eval.c (do_autoload): Don't output any message.
29696
296972007-09-24 Juri Linkov <juri@jurta.org>
29698
29699 * emacs.c (standard_args): Change priority of "--no-splash"
29700 from 40 to 3. Add "--no-desktop" with the same priority.
29701
297022007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
29703
29704 * alloc.c (gc_sweep): Check cons cell mark bits word by word
29705 and optimize the case where they are all 1.
29706
297072007-09-23 Johannes Weiner <hannes@saeurebad.de>
29708
29709 * lisp.h (abs): Define if not defined.
29710 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
29711 Don't define `abs', since it's defined in lisp.h.
29712
297132007-09-22 Eli Zaretskii <eliz@gnu.org>
29714
29715 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
29716 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
29717 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
29718 (init_tty): Use DEV_TTY instead of "/dev/tty".
29719 [WINDOWSNT]: No need to protect from NAME arg being null.
29720
297212007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
29722
29723 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
29724 up the tty state.
29725
297262007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
29727
29728 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
29729 (gpm_tty): Change its type.
29730 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
29731 (gpm_tty): Change its type and initialize it.
29732 (Fterm_open_connection): Check the frame is indeed a tty.
29733 Use the new gpm_tty.
29734 (Fterm_close_connection): Use the new gpm_tty.
29735 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
29736 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
29737
297382007-09-21 Juanma Barranquero <lekktu@gmail.com>
29739
29740 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
29741 underline_color, to draw strike-through.
29742
297432007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
29744
29745 * lisp.h (allocate_terminal): Declare.
29746
29747 * window.c (candidate_window_p): Consider frames that are being placed
29748 by the user as somewhere between visible and iconified.
29749 (window_loop): Prefer windows on the current frame.
29750 (Fselect_window): Move the use of select-frame to the beginning so we
29751 can just delegate all the work (it'll call us back anyway).
29752
29753 * frame.c (Qdisplay_environment_variable):
29754 * frame.h (Qdisplay_environment_variable): Delete.
29755
29756 * .gdbinit (xbacktrace): Print the arg's address rather than the value
29757 of the first arg, since that value may be a union.
29758
29759 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
29760 parameter rather than Qdisplay_environment_variable. If all else
29761 fails, look for DISPLAY in initial-environment.
29762
297632007-09-21 Glenn Morris <rgm@gnu.org>
29764
29765 * Makefile.in (emacstool): Remove target.
29766 (lisp, shortlisp): Remove termdev.elc.
29767
297682007-09-21 Markus Triska <markus.triska@gmx.at>
29769
29770 * xterm.c (x_delete_display): Compile session management conditionally.
29771
297722007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
29773
29774 * callproc.c (getenv_internal_1): New function.
29775 (getenv_internal): Use it.
29776 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
29777
29778 * terminal.c (get_terminal): Don't accept ints to represent terminals.
29779 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
29780 (Fset_terminal_parameter): Work with dead terminals as well.
29781 (Fmodify_terminal_parameters): Remove.
29782
29783 * terminal.c (get_terminal): Handle terminals.
29784 Make sure the terminal returned is live.
29785 (create_terminal): Use allocate_terminal.
29786 (mark_terminals): Move to alloc.c.
29787 (delete_terminal): Use terminal->name as liveness status.
29788 NULL out fields after freeing their contents.
29789 Don't deallocate the object.
29790 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
29791 rather than an int.
29792 (Fterminal_live_p): Accept non-integer arguments.
29793 (Fterminal_list): Return terminal objects rather than an ints.
29794
29795 * alloc.c (enum mem_type): New member for `terminal' objects.
29796 (allocate_terminal): New function.
29797 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
29798 Handle terminals.
29799 (mark_terminal): New fun.
29800 (mark_terminals): Move from terminal.c.
29801
29802 * term.c (get_tty_terminal): Don't treat output_initial specially.
29803 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
29804 (delete_tty): Use terminal->name as liveness status.
29805
29806 * termhooks.h (struct terminal): Make it into a pseudovector.
29807 Remove `deleted' replaced by checking `name's nullness.
29808
29809 * print.c (print_object): Handle terminals.
29810
29811 * lisp.h (enum pvec_type): New `terminal' pseudovector.
29812 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
29813
29814 * frame.c (make_terminal_frame):
29815 * keyboard.c (tty_read_avail_input):
29816 * w32term.c (x_delete_terminal):
29817 * xfns.c (Fx_create_frame, x_create_tip_frame):
29818 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
29819
298202007-09-20 Glenn Morris <rgm@gnu.org>
29821
29822 * process.c (Fmake_network_process): Doc fix.
29823
298242007-09-19 Jason Rumney <jasonr@gnu.org>
29825
29826 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
29827
298282007-09-19 Michaël Cadilhac <michael@cadilhac.name>
29829
29830 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
29831 Fix a C warning regarding variable constness.
29832
29833 * xterm.c (handle_one_xevent): Fix a C warning.
29834
298352007-09-18 Jason Rumney <jasonr@gnu.org>
29836
29837 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
29838
298392007-09-17 Jan Djärv <jan.h.d@swipnet.se>
29840
29841 * gtkutil.c (gdpy_def): New variable.
29842 (xg_initialize): Initialize gdpy_def.
29843 (xg_display_close): If no other display exists, set gdpy_def to a
29844 new connection.
29845
298462007-09-16 Jan Djärv <jan.h.d@swipnet.se>
29847
29848 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
29849 when we have no file name for the icon.
29850 (xg_tool_bar_expose_callback): Remove.
29851 (xg_create_tool_bar): Don't connect expose signal to
29852 xg_tool_bar_expose_callback.
29853 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
29854
298552007-09-16 Andreas Schwab <schwab@suse.de>
29856
29857 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
29858 values instead of zapping them.
29859
298602007-09-14 Glenn Morris <rgm@gnu.org>
29861
29862 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
29863 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
29864 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
29865 scope and rename to omfib_buffer for clarity.
29866 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
29867
298682007-09-14 Kenichi Handa <handa@m17n.org>
29869
29870 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
29871
298722007-09-13 Jason Rumney <jasonr@gnu.org>
29873
29874 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
29875
29876 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
29877
29878 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
29879 (mac_term_init): Call here instead, passing rif.
29880
298812007-09-13 Glenn Morris <rgm@gnu.org>
29882
29883 * s/hpux.h: No longer define `static' as nothing.
29884
298852007-09-13 Johan Bockgård <bojohan@gnu.org>
29886
29887 * callint.c (Fcall_interactively): Remove unused var `fun'.
29888
298892007-09-12 Romain Francoise <romain@orebokech.com>
29890
29891 * window.c (prefer_window_split_horizontally, display_buffer):
29892 Revert 2007-09-08 change.
29893
298942007-09-12 Glenn Morris <rgm@gnu.org>
29895
29896 * alloca.c: Remove file.
29897 * Makefile.in (alloca): Do not undef.
29898 (allocaobj, alloca.o): Remove.
29899 (otherobj): Remove allocaobj.
29900 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
29901 * regex.c (C_ALLOCA): Remove all references and code that was only
29902 used when this was defined.
29903 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
29904 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
29905 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
29906
29907 * Makefile.in (SOURCES, unlock, relock): Delete.
29908
29909 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
29910 (menu_grab_callback): All uses changed.
29911
29912 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
29913 (x_reply_selection_request): All uses changed.
29914
299152007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
29916
29917 * lread.c (load_warn_old_style_backquotes): Change message to look
29918 better when it appears in the middle of byte-compiler messages.
29919
299202007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
29921
29922 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
29923
29924 * xterm.c (x_create_terminal): Add comment.
29925
29926 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
29927
299282007-09-10 Richard Stallman <rms@gnu.org>
29929
29930 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
29931
299322007-09-10 Michaël Cadilhac <michael@cadilhac.name>
29933
29934 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
29935 (DEFUN): Document `intspec', use it instead of `prompt'.
29936
29937 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
29938
29939 * data.c (Finteractive_form): If the interactive specification starts
29940 with a `(', use it as a Lisp form.
29941
29942 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
29943 name and file modes.
29944
29945 * callint.c (Fcall_interactively): Comment fixes.
29946
299472007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
29948
29949 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
29950 and compiled functions.
29951
299522007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
29953
29954 * window.c (prefer_window_split_horizontally): New variable.
29955 (display_buffer): Consider splitting window horizontally depending
29956 on prefer_window_split_horizontally.
29957
299582007-09-08 Eli Zaretskii <eliz@gnu.org>
29959
29960 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
29961
299622007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
29963
29964 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
29965
29966 * frame.c (x_set_frame_parameters): Check number is positive before
29967 using XFASTINT.
29968
29969 * window.c (freeze_window_start): Don't presume selected_window holds
29970 a window object.
29971 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
29972
299732007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
29974
29975 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
29976
299772007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
29978
29979 * window.c (Vsplit_window_preferred_function): New var.
29980 (Fdisplay_buffer): Use it.
29981 (syms_of_window): Export, and initialize it.
29982
299832007-09-06 Pixel <pixel@mandriva.com> (tiny change)
29984
29985 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
29986
299872007-09-06 Glenn Morris <rgm@gnu.org>
29988
29989 * gtkutil.c (menu_grab_callback) <cnt>:
29990 * xselect.c (x_reply_selection_request) <cnt>: Move static
29991 variable to file scope.
29992
299932007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
29994
29995 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
29996 consistent values of selected_frame and selected_window.
29997
299982007-09-04 Jason Rumney <jasonr@gnu.org>
29999
30000 * w32console.c (initialize_w32_display): Zero unused hooks.
30001
300022007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30003
30004 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30005 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30006
300072007-09-04 Jason Rumney <jasonr@gnu.org>
30008
30009 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30010 in w32console.c. Set up input. Remove XXX comments that have been
30011 confirmed as correct.
30012
30013 * s/ms-w32.h (MULTI_KBOARD): Define.
30014
30015 * w32console.c (one_and_only_w32cons): Remove.
30016 (initialize_w32_display): Take terminal argument.
30017
30018 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30019 initialize_w32_display.
30020 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30021
30022 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30023
30024 * keyboard.c (discard_mouse_events): Discard it.
30025 (make_lispy_event): Translate it to a lisp event.
30026 (lispy_wheel_names): Add wheel-left and right events.
30027 (syms_of_keyboard): Enlarge wheel_syms.
30028
30029 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
30030 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
30031
30032 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
30033
30034 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
30035 from WM_MOUSEHWHEEL.
30036 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
30037
30038 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
30039 terminal.
30040
30041 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
30042 keyboard for the terminal.
30043
300442007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30045
30046 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
30047 (Vresume_tty_hook): Rename from Vresume_tty_functions.
30048 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
30049 and resume-tty-function to resume-tty-hook.
30050 (Fsuspend_tty, Fresume_tty): Use new names.
30051
300522007-09-02 Jan Djärv <jan.h.d@swipnet.se>
30053
30054 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
30055 if it starts with "n:".
30056
300572007-08-31 Jan Djärv <jan.h.d@swipnet.se>
30058
30059 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
30060
300612007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
30062
30063 * frame.h:
30064 * frame.c (Qterm_environment_variable): Remove.
30065 (syms_of_frame): Don't init and staticpro it.
30066
30067 * callproc.c (getenv_internal): Remove special case for $TERM.
30068
30069 * callproc.c (Vinitial_environment): New variable.
30070 (set_initial_environment): Initialize it.
30071 (syms_of_callproc): Declare it.
30072 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
30073 TERM under which a process runs is never related to the TERM in which
30074 Emacs is running.
30075
300762007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30077
30078 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
30079 * s/darwin.h: ... do it here.
30080
300812007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
30082
30083 * lisp.h (set_initial_environment): Rename from set_global_environment.
30084
30085 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
30086 removed by mistake on the multi-tty branch.
30087
30088 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
30089 (Fmodify_frame_parameters): Return a value.
30090
30091 * image.c (png_load): Comment-out var only used in commented-out code.
30092
30093 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
30094 before passing it to mark_object.
30095
30096 * xfaces.c (internal_resolve_face_name): Return a value.
30097 (internal_resolve_face_name, resolve_face_name_error): Comment out.
30098
30099 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
30100 (x_icon): Comment-out var only used in commented-out code.
30101
301022007-08-29 Romain Francoise <romain@orebokech.com>
30103
30104 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
30105 QUIT hasn't been provided.
30106
301072007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30108
30109 * callproc.c (child_setup, getenv_internal): Use the
30110 display-environment-variable and term-environment-variable frame params.
30111 (set_initial_environment): Initialise Vprocess_environment.
30112
30113 * config.in: Disable multi-keyboard support on a mac.
30114
30115 * frame.c (Qterm_environment_variable)
30116 (Qdisplay_environment_variable): New variables.
30117 (syms_of_frame): Intern and staticpro them.
30118 (Fmake_terminal_frame): Disable output method test.
30119
30120 * frame.h: Declare them here.
30121
30122 * macfns.c (x_set_mouse_color): Get rif from the frame.
30123 (x_set_tool_bar_lines): Don't use updating_frame.
30124 (mac_window): Add 2 new parameters for consistency with other systems.
30125 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
30126 frame parameters following what is done in X11 and w32. Don't use
30127 FRAME_MAC_DISPLAY_INFO.
30128 (Fx_open_connection, start_hourglass): Remove window-system check.
30129 (x_create_tip_frame): Get the keyboard from the terminal.
30130
30131 * macmenu.c: Reorder includes.
30132 (Fx_popup_menu): Use terminal specific mouse_position_hook.
30133
30134 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
30135 terminal parameter.
30136 (x_clear_frame): Add a frame parameter.
30137 (note_mouse_movement): Get rif from the frame.
30138 (mac_term_init): Initialize the terminal.
30139 (mac_initialize): Make static and move terminal initialization ...
30140 (mac_create_terminal): ... to this new function.
30141
30142 * macterm.h (struct mac_display_info): Add terminal.
30143 (mac_initialize): Delete declaration.
30144
30145 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
30146
30147 * sysdep.c: Comment out text after #endif.
30148
30149 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
30150 is defined. Better initialize ttys in windows. Use terminal
30151 specific mouse_position_hook.
30152
30153 * termhooks.h (union display_info): Add mac_display_info.
30154
30155 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
30156 Set the default minibuffer frame, window_system and the rest of the
30157 frame parameters following what is done in X11.
30158
30159 * w32term.c (w32_initialize): Make static.
30160
30161 * xselect.c (x_handle_selection_clear): Only access
30162 terminal->kboard when MULTI_KBOARD is defined.
30163
30164 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
30165 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
30166
301672007-08-29 Jason Rumney <jasonr@gnu.org>
30168
30169 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
30170 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
30171
30172 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
30173 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
30174
30175 * keyboard.c (restore_kboard_configuration): Only define when
30176 MULTI_KBOARD defined.
30177
30178 * makefile.w32-in: Update dependancies from Makefile.in.
30179 (OBJ1): Add terminal.$(O)
30180
30181 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
30182 Don't define function body.
30183 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
30184
30185 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
30186
30187 * w32.c (request_sigio, unrequest_sigio): Remove.
30188
30189 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
30190 (w32con_clear_frame, w32con_clear_end_of_line)
30191 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
30192 (w32con_delete_glyphs, w32con_set_terminal_window)
30193 (scroll_line, w32_sys_ring_bell): Add frame arg.
30194 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
30195 Add terminal arg.
30196 (PICK_FRAME): Remove.
30197 (w32con_write_glyphs): Use frame specific terminal coding.
30198 (one_and_only_w32cons): New global variable.
30199 (initialize_w32_display): Use it for storing hooks.
30200 (create_w32cons_output): New function.
30201
30202 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
30203 arg a frame.
30204
30205 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
30206 Set window_system.
30207 (x_set_tool_bar_lines): Don't use updating_frame.
30208 (Fx_create_frame): Set terminal and ref count.
30209 (Fx_open_connection): Remove window-system check.
30210
30211 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
30212
30213 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
30214 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
30215 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
30216 Add frame arg.
30217 (x_delete_terminal, w32_create_terminal): New functions.
30218 (w32_term_init): Create a terminal.
30219 (w32_initialize): Move terminal specific initialization to
30220 w32_create_terminal.
30221
30222 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
30223 (w32_clear_rect, w32_clear_area): Use background from frame.
30224 (w32_display_info): Add terminal.
30225 (w32_sys_ring_bell, x_delete_display): Declare here.
30226
30227 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
30228
30229 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
30230
302312007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
30232
30233 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
30234 Fix get_named_tty calls for the controlling tty.
30235
302362007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
30237
194d44e7 30238 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
30239
302402007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
30241
30242 * term.c (tty_insert_glyphs): Add missing first parameter.
30243
302442007-08-29 Károly Lőrentey <karoly@lorentey.hu>
30245
30246 * buffer.c (Fbuffer_list, Fbury_buffer):
30247 Take frame->buried_buffer_list into account.
30248
30249 * cm.c (current_tty): New variable, for cmputc().
30250 (cmputc): Use it.
30251 (cmcheckmagic): Add tty parameter, look up terminal streams there.
30252 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
30253 (cmgoto): Add tty parameter. Pass it on to calccost().
30254 Use emacs_tputs() instead of tputs().
30255
30256 * cm.h (emacs_tputs): New macro to set current_tty, and then call
30257 tputs().
30258 (current_tty): New variable, for cmputc().
30259 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
30260
30261 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
30262 (internal_condition_case, internal_condition_case_1)
30263 (internal_condition_case_2): Don't abort when x_catching_errors.
30264
30265 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
30266 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
30267 prevent crashes caused by bogus longjmps in read_char.
30268
30269 * keymap.h (Fset_keymap_parent): Add EXFUN.
30270
30271 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
30272 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30273 Remove redundant definition.
30274
30275 * macfns.c (x_set_mouse_color, x_make_gc):
30276 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30277
30278 * w32term.c (x_free_frame_resources):
30279 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30280 (w32_initialize): Use the accessor macros for terminal characteristics.
30281
30282 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
30283 Use the accessor macros for terminal characteristics.
30284 * msdos.c (internal_terminal_init): Use the accessor macros for
30285 terminal characteristics.
30286 (ScreenVisualBell, internal_terminal_init):
30287 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30288
30289 * termopts.h (no_redraw_on_reenter): Declare.
30290
30291 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
30292 (mark_terminals, mark_ttys): Declare.
30293 (Fgarbage_collect): Call them.
30294 (mark_object): Mark buried_buffer_list.
30295
30296 * prefix-args.c: Include stdlib.h for exit.
30297
30298 * syssignal.h: Add comment.
30299
30300 * indent.c: Include stdio.h.
30301
30302 * window.h (Vinitial_window_system): Declare.
30303 (Vwindow_system): Delete declaration.
30304
30305 * fontset.c (Finternal_char_font): Use FRAME_RIF.
30306
30307 * image.c (lookup_image): Don't initialize `c' until the xasserts
30308 have been run.
30309
30310 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
30311 FRAME_FOREGROUND_PIXEL.
30312
30313 * print.c (print_preprocess): Don't lose print_depth levels while
30314 iterating.
30315
30316 * widget.c (update_from_various_frame_slots):
30317 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30318
30319 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
30320 frames.
30321 (window_internal_height): Remove bogus make_number call.
30322 (init_window_once): Call make_terminal_frame with two zero parameters.
30323
30324 * fileio.c (Fread_file_name): Update comment.
30325
30326 * callint.c (Fcall_interactively):
30327 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
30328 Make sure it is correctly unwound.
30329
30330 * xsmfns.c (x_session_close): New function.
30331
30332 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
30333 Delete declarations.
30334
30335 * xterm.h: Remove declaration for x_fully_uncatch_errors.
30336 (x_output): Remove background_pixel and foreground_pixel fields.
30337 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
30338 (x_delete_device, x_session_close): Declare.
30339
30340 * lread.c: Include setjmp.h. Update declaration of `read_char'.
30341 (read_filtered_event): Call `read_char' with a local
30342 `wrong_kboard_jmpbuf'.
30343
30344 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
30345 Don't call single_kboard_state. Use FRAME_RIF.
30346
30347 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
30348 systems.
30349
30350 * lisp.h (set_process_environment): Rename to `set_global_environment'.
30351 (Fframe_with_environment, Fset_input_meta_mode)
30352 (Fset_quit_char): EXFUN.
30353 (x_create_device, tty_output, terminal, tty_display_info): Declare.
30354 (init_sys_modes, reset_sys_modes): Update prototypes.
30355 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
30356
30357 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
30358 Vlocal_key_translation_map, and Vkeyboard_translate_table.
30359 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
30360 Delete declarations.
30361 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
30362 (temporarily_switch_to_single_kboard, tty_read_avail_input):
30363 New declarations.
30364
30365 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
30366 already does that during init_display(). Call syms_of_keymap
30367 before syms_of_keyboard. Call `syms_of_terminal'.
30368 Call set_initial_environment, not set_process_environment.
30369 (shut_down_emacs): Call reset_all_sys_modes() instead of
30370 reset_sys_modes().
30371
30372 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
30373 (internal_resolve_face_name, resolve_face_name_error): New functions.
30374 (resolve_face_name): Protect against loops and errors thrown by Fget.
30375 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
30376 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
30377
30378 * scroll.c: Replace CURTTY() with local variables throughout the
30379 file (where applicable).
30380 (calculate_scrolling, calculate_direct_scrolling)
30381 (scrolling_1, scroll_cost): Use the accessor macros for terminal
30382 characteristics.
30383
30384 * keymap.c (Vfunction_key_map): Remove.
30385 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
30386 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
30387 (Vkey_translation_map): Remove.
30388 (syms_of_keymap): Remove DEFVAR for key-translation-map.
30389 (Fdescribe_buffer_bindings)
30390 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
30391 Update for terminal-local key-translation-map.
30392
30393 * Makefile.in (callproc.o): Update dependencies.
30394 (lisp, shortlisp): Add termdev.elc.
30395 (obj): Add terminal.o.
30396 (terminal.o): Add dependencies.
30397 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
30398 (data.o, fns.o): Add termhooks.h dependency.
30399 (SOME_MACHINE_LISP): Add dnd.elc.
30400 (minibuf.o): Fix typo.
30401 Update dependencies.
30402
30403 * data.c (do_symval_forwarding, store_symval_forwarding)
30404 (find_symbol_value): Use the selected frame's keyboard, not
30405 current_kboard.
30406
30407 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
30408 Vwindow_system.
30409
30410 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
30411 Fmenu_bar_open.
30412 (syms_of_xmenu): Update defsubr.
30413 (mouse_position_for_popup, Fx_popup_menu)
30414 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
30415 (set_frame_menubar, free_frame_menubar)
b97439ce 30416 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
30417 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
30418 an X frame.
30419
30420 * xselect.c (x_own_selection): Abort if not an X frame.
30421 (some_frame_on_display): Check if it is an X frame.
30422 (x_handle_selection_clear): Deal with MULTI_KBOARD.
30423
30424 * coding.c: Include frame.h and termhooks.h.
30425 (terminal_coding, keyboard_coding): Delete.
30426 (Fset_terminal_coding_system_internal)
30427 (Fset_keyboard_coding_system_internal)
30428 (Fkeyboard_coding_system)
30429 (Fterminal_coding_system): Add a terminal parameter.
30430 Get terminal_coding from the terminal.
30431 (init_coding_once): Don't call setup_coding_system here.
30432
30433 * dispextern.h (set_scroll_region, turn_off_insert)
30434 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
30435 (tty_clear_end_of_line, tty_setup_colors)
30436 (delete_tty, updating_frame)
30437 (produce_special_glyphs, produce_glyphs, write_glyphs)
30438 (insert_glyphs): Remove.
30439 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
30440 (tty_turn_off_highlight, get_tty_size): Add declaration.
30441 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
30442
30443 * frame.h (enum output_method): Add output_initial.
30444 (struct x_output): Delete.
30445 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30446 Access foreground_pixel and background_pixel directly from the frame.
30447 (tty_display): Delete.
30448 (struct frame): Add buried_buffer_list, foreground_pixel,
30449 background_pixel and terminal. Delete kboard.
30450 (union output_data): Add tty.
30451 (FRAME_KBOARD): Get the kboard from the terminal.
30452 (FRAME_INITIAL_P): New macro.
30453 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
30454 (Qterm_environment_variable, Qdisplay_environment_variable)
30455 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
30456 New declarations.
30457
30458 * termchar.h (tty_output, tty_display_info): New structures.
30459 (tty_list): Declare.
30460 (FRAME_TTY, CURTTY): New macros.
30461 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
30462 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
30463 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
30464 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
30465
30466 * callproc.c: Include frame.h and termhooks.h, for terminal
30467 parameters.
30468 (add_env): New function.
30469 (child_setup): Use it.
30470 (child_setup, getenv_internal): Handle the new Vprocess_environment.
30471 (getenv_internal): Fix get_terminal_param call.
30472 (Fgetenv_internal, egetenv): Update doc.
30473 (syms_of_callproc): Initialize Vprocess_environment to nil.
30474 Register and initialize them. Remove obsolete defvars. Update doc
30475 strings.
30476 (child_setup): Handle Vlocal_environment_variables.
30477 (getenv_internal): Add terminal parameter.
30478 Handle Vlocal_environment_variables.
30479 (Fgetenv_internal): Add terminal parameter.
30480 (child_setup, getenv_internal, Fgetenv_internal): Store the local
30481 environment in a frame (not terminal) parameter. Update doc strings.
30482 (set_initial_environment): Rename from set_global_environment.
30483 Store Emacs environment in initial frame parameter.
30484
30485 * xdisp.c (redisplay_internal): Update references to
30486 `previous_terminal_frame'.
30487 (display_mode_line, Fformat_mode_line): Replace calls to
30488 `push_frame_kboard' with `push_kboard'.
30489 (get_glyph_string_clip_rects): Add extra parentheses and
30490 braces to prevent compiler warnings.
30491 (calc_pixel_width_or_height): Add xassert to check that the
30492 frame is alive. Don't call `lookup_image' on a termcap frame.
30493 (message2_nolog, message3_nolog, redisplay_internal)
30494 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
30495 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
30496 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
30497 (Fx_display_pixel_width, Fx_display_pixel_height)
30498 (Fx_display_planes, Fx_display_color_cells)
30499 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
30500 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
30501 (Fx_display_backing_store, Fx_display_visual_class)
30502 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
30503 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
30504
30505 * xfns.c (x_set_foreground_color x_set_background_color)
30506 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
30507 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30508 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
30509 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
30510 terminal that is being deleted.
30511 (Fx_create_frame): Use `store_frame_param' to set `window-system'
30512 frame parameter, and make sure it overrides any user-supplied setting.
30513 (Fx_close_connection, Fx_synchronize): Unify argument names with
30514 the rest of the DEFUNs.
30515
30516 * dispnew.c (Fsend_string_to_terminal): Update call to
30517 `get_tty_terminal'.
30518 (Fredraw_frame, Fsend_string_to_terminal)
30519 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
30520 FRAME_TERMCAP_P and FRAME_TTY.
30521 (window_change_signal): Don't believe width/height values that are
30522 impossibly small.
30523 (Vinitial_window_system): Rename from Vwindow_system.
30524 (termscript, Wcm, rif): Delete.
30525
30526 * termhooks.h (struct terminal): New struct containing the
30527 previously global text display hooks and new members NAME,
30528 DELETED and PARAM_ALIST.
30529 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
30530 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
30531 (FRAME_RIF): New macros.
30532 (get_terminal_param, get_device): New declarations.
30533 (termscript): Delete declaration.
30534
30535 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
30536 (XTflash, x_free_frame_resources, x_scroll_bar_create)
30537 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
30538 FRAME_FOREGROUND_PIXEL.
30539 (x_fully_uncatch_errors): Disable definition.
30540 (x_scroll_bar_expose): Fix reference to foreground pixel.
30541 (XTread_socket): Disable loop on all X displays.
30542 (x_delete_terminal): Don't set terminal->deleted and let
30543 delete_terminal delete the frames on the terminal.
30544 (x_delete_display): Doc update to reflect changes in
30545 delete_terminal.
30546 (x_display_info) <terminal>: Move member earlier in the struct.
30547 (deleting_tty): Remove old variable.
30548 (Fsuspend_tty): Call clear_tty_hooks.
30549 (Fresume_tty, init_tty): Call set_tty_hooks.
30550 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
30551 errors on X frames.
30552 (x_catch_errors_unwind): Abort if x_error_message is NULL.
30553 (handle_one_xevent): Initialize `f' to NULL.
30554 (x_delete_terminal, x_create_terminal): New functions.
30555 (XTset_terminal_modes, XTreset_terminal_modes)
30556 (XTread_socket, x_connection_closed, x_term_init)
30557 (x_term_init, x_delete_display): Add terminal parameter.
30558 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
30559 X connections.
30560
30561 * frame.c: Include termchar.h.
30562 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
30563 (Qwindow_system, Qenvironment, Qterm_environment_variable)
30564 (Qdisplay_environment_variable): New vars.
30565 (Fframep): Deal with output_initial.
30566 (Fframe-live-p): Doc fix.
30567 (Fwindow-system): New function.
30568 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
30569 (make_terminal_frame): Don't create frames on a terminal that is
30570 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30571 (store_frame_param): Check for found_for_frame before calling XFRAME.
30572 (Fmake_terminal_frame): Handle NULL tty names correctly.
30573 (syms_of_frame): Enhance doc string of `default-frame-alist'.
30574 (Fdelete_frame): Remove unused variable `count'. Don't allow other
30575 frames to refer to a deleted frame in their 'environment parameter.
30576 (Fframe_with_environment): New function.
30577 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
30578 (get_future_frame_param): New function.
30579 (Fmake_terminal_frame): Use it.
30580 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
30581
30582 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
30583 * sysdep.c (reset_sys_modes): Update for renames.
30584
30585 * keyboard.c (tty_read_avail_input): New function.
30586 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
30587 (syms_of_keyboard): Defsubr them.
30588 (Fset_input_meta_mode, Fset_quit_char): New functions.
30589 (Fset_input_mode): Split to above functions.
30590 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
30591 parameter. Use it in call to `read_char'.
30592 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
30593 Set wrong_kboard_jmpbuf correctly in recursive calls.
30594 Use current_kboard to access Vkeyboard_translate_table.
30595 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
30596 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
30597 Update longjmp invocations. Remember the original current_kboard,
30598 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
30599 changes it. Comment out unnecessary calls to
30600 `record_single_kboard_state' and `any_kboard_state'.
30601 Update recursive calls.
30602 (wrong_kboard_jmpbuf): Remove global variable.
30603 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
30604 Handle deleted interrupted_kboards correctly; that is a legal
30605 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
30606 and read_char calls. Abort if interrupted_kboard died in read_char.
30607 (any_kboard_state, single_kboard_state)
30608 (push_frame_kboard): Remove function.
30609 (pop_kboard): Switch out of single_kboard mode if the kboard has
30610 been deleted. Remove unused variable. Help debugging by not
30611 changing current_kboard unnecessarily. Set current_kboard to the
30612 kboard of the selected frame when the stored kboard object has
30613 been deleted before pop_kboard.
30614 (temporarily_switch_to_single_kboard): Change first parameter to a
30615 frame pointer. Throw an error when caller wants to change kboards
30616 while in single_kboard mode. Don't push_kboard if we weren't in
30617 single kboard state. Don't pop_kboard if we popped into any
30618 kboard state.
30619 (restore_kboard_configuration): Abort if pop_kboard changed the
30620 kboard in single_kboard mode. Call pop_kboard only after setting
30621 up single_kboard mode.
30622 (Frecursive_edit): Switch to single_kboard mode only in nested
30623 command loops.
30624 (cmd_error, command_loop, command_loop_1, timer_check):
30625 Comment out unnecessary call to `any_kboard_state' and
30626 `record_single_kboard_state'.
30627 (delete_kboard): Exit single_kboard mode if we have just deleted
30628 that kboard. Use FRAME_KBOARD.
30629 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
30630 `fatal_error_signal'.
30631 (record_single_kboard_state): Don't push_kboard if we weren't in
30632 single kboard state. Don't pop_kboard if we popped into any
30633 kboard state.
30634 (push_frame_kboard): Rename to push_kboard.
30635 (kbd_buffer_get_event): Use FRAME_TERMINAL.
30636 (read_avail_input): Read input from all terminals.
30637 (mark_kboards): Also mark Vkeyboard_translate_table.
30638 (kbd_buffer_store_event_hold): Simplify condition.
30639 (read_key_sequence): Reinitialize fkey and keytran at each replay.
30640 (Vkeyboard_translate_table): Move to struct kboard.
30641 (init_kboard): Initialize Vkeyboard_translate_table.
30642 (syms_of_keyboard): Use DEFVAR_KBOARD to define
30643 Vkeyboard_translate_table. Update doc strings. Update docs of
30644 local-function-key-map and function-key-map.
30645
30646 * terminal.c: New file.
30647
30648 * term.c: Include errno.h.
30649 (Vring_bell_function, device_list, initial_device)
30650 (next_device_id, ring_bell, update_begin, update_end)
30651 (set_terminal_window, cursor_to, raw_cursor_to)
30652 (clear_to_end, clear_frame, clear_end_of_line)
30653 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
30654 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
30655 (syms_of_term): Move their initialization to terminal.c.
30656 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
30657 (Ftty_display_color_cells)
30658 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
30659 (clear_tty_hooks, set_tty_hooks)
30660 (init_tty, maybe_fatal): New functions.
30661 (Ftty_type): Return nil if terminal is not on a tty instead of
30662 throwing an error. Doc update.
30663 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
30664 Doc update. Initialize new subrs and variables.
30665 (delete_tty): Use terminal->deleted.
30666 (tty_set_terminal_modes): Rename from set_terminal_modes.
30667 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
30668 (set_scroll_region): Rename to `tty_set_scroll_region'.
30669 (turn_on_insert): Rename to `tty_turn_on_insert'.
30670 (turn_off_insert): Rename to `tty_turn_off_insert'.
30671 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
30672 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
30673 (toggle_highligh): Rename to `tty_toggle_highlight'.
30674 (background_highlight): Rename to `tty_background_highlight'.
30675 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
30676 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
30677 (tty_set_scroll_region, tty_background_highlight)
30678 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
30679 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
30680 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
30681 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
30682 Add static modifier.
30683 (tty_reset_terminal_modes, tty_set_terminal_window)
30684 (tty_set_scroll_region, tty_background_highlight)
30685 (tty_highlight_if_desired, tty_cursor_to)
30686 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
30687 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
30688 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
30689 renames.
30690
306912007-08-28 Jan Djärv <jan.h.d@swipnet.se>
30692
30693 * keyboard.c: Qrtl is new.
30694 (parse_tool_bar_item): Handle :rtl keyword.
30695 (syms_of_keyboard): Intern :rtl keyword.
30696
30697 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
30698
30699 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
30700 so no Lisp code is executed.
30701 (file_for_image, find_rtl_image): New functions.
30702 (xg_get_image_for_pixmap): Use file_for_image.
30703 (update_frame_tool_bar): If direction is RTL, use RTL image if
30704 defined. Use Gtk stock images if defined.
30705
307062007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30707
30708 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
30709 for nonexistent or zero-width glyph in composition glyph.
30710
307112007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
30712
30713 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
30714
30715 * xdisp.c (Finvisible_p): New function.
30716 (syms_of_xdisp): defsubr it.
30717
307182007-08-24 Juanma Barranquero <lekktu@gmail.com>
30719
30720 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
30721 Doc fixes.
30722
307232007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30724
30725 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
30726
307272007-08-24 Martin Rudalics <rudalics@gmx.at>
30728
30729 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
30730 whether decoding has modified buffer contents.
30731
307322007-08-24 Jason Rumney <jasonr@gnu.org>
30733
30734 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
30735 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
30736 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
30737 (init_svg_functions) [HAVE_NTGUI]: New function.
30738 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
30739 (svg_load_image): Use them.
30740 (svg_load_image) [HAVE_NTGUI]: Implement background.
30741
307422007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30743
30744 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
30745 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
30746 (LIBX): Remove @RSVG_LIBS@.
30747 (LIBES): Add $(RSVG_LIBS).
30748
30749 * image.c (svg_load_image): Blend with specified background if exists.
30750 Use IMAGE_BACKGROUND. Add Mac OS Support.
30751
30752 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
30753 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
30754 Remove macros.
30755 [MAC_OSX] (socket_callback): Do nothing.
30756 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
30757 ReceiveNextEvent.
30758 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
30759 socket_callback.
30760 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
30761
307622007-08-22 Glenn Morris <rgm@gnu.org>
30763
30764 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
30765
307662007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
30767
30768 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
30769
30770 * image.c: Add support for SVG images. Some additional comments
30771 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
30772 (svg_image_p): New function to test for SVG image.
30773 (svg_load): New function to load SVG image.
30774 (svg_load_image): New function, helper for svg_load.
30775 (Qsvg): New Lisp_object.
30776 (svg_keyword_index): New enum.
30777 (svg_format): New static `image_keyword' struct.
30778 (svg_type): New static `image_type' struct.
30779 (librsvg/rsvg.h): Include it.
30780
307812007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
30782
30783 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
30784
307852007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
30786
30787 * lread.c (Qold_style_backquotes): New var.
30788 (syms_of_lread): Init and staticpro it.
30789 (load_warn_old_style_backquotes): New fun.
30790 (Fload): Use them to warn about old style backquotes.
30791 (end_of_file_error, Fload): Remove unused vars.
30792
30793 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
30794
30795 * lread.c (Vold_style_backquotes): New var.
30796 (syms_of_lread): Init and export it to Elisp.
30797 (read1): Set it when we find an old-style (back)quote.
30798
307992007-08-22 Jason Rumney <jasonr@gnu.org>
30800
30801 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
30802
308032007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
30804
30805 * puresize.h (BASE_PURESIZE): Increase to 1140000.
30806
308072007-08-19 Richard Stallman <rms@gnu.org>
30808
30809 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
30810
308112007-08-19 Andreas Schwab <schwab@suse.de>
30812
30813 * alloc.c (pure): Round PURESIZE up.
30814
308152007-08-17 Jan Djärv <jan.h.d@swipnet.se>
30816
30817 * xterm.c (handle_one_xevent): Remove check that mouse click is in
30818 active frame.
30819
308202007-08-16 Richard Stallman <rms@gnu.org>
30821
30822 * eval.c (Fcommandp): Add parens to clarify.
30823
30824 * minibuf.c (Fall_completions): Use enum for type of table.
30825
30826 * emacs.c (USAGE2): Improve text.
30827
308282007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
30829
30830 * term.c (tty_default_color_capabilities): Declare static
30831 variables in file scope, to avoid HPUX compiler problem.
30832
308332007-08-13 Jan Djärv <jan.h.d@swipnet.se>
30834
30835 * gtkutil.c (update_frame_tool_bar): Use -1 as index
30836 to gtk_toolbar_insert.
30837
308382007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
30839
30840 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
30841
30842 * insdel.c (reset_var_on_error): New fun.
30843 (signal_before_change, signal_after_change):
30844 Use it to reset (after|before)-change-functions to nil in case of error.
30845 Bind inhibit-modification-hooks to t.
30846 Don't bind (after|before)-change-functions to nil while they run.
30847
308482007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30849
30850 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
30851 filling pixmap with stippled background.
30852
308532007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30854
30855 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
30856 Don't use invisible frame as parent window for repositioning.
30857
308582007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
30859
30860 * print.c (new_backquote_output): Rename from old_backquote_output.
30861 (print): Inverse its logic (according to its name) so as to match the
30862 behavior of new_backquote_flag in lread.c.
30863
308642007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30865
30866 * gmalloc.c (posix_memalign): New function.
30867
30868 * macterm.c (frame_highlight, frame_unhighlight): Don't call
30869 ActivateControl/DeactivateControl here.
30870 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
30871 frame-notice-user-settings is non-nil.
30872 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
30873 for kEventParamFMFontStyle.
30874 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
30875 mac_pass_command_to_system and mac_pass_control_to_system here.
30876 (XTread_socket): Call ActivateControl/DeactivateControl here.
30877 (XTread_socket) [TARGET_API_MAC_CARBON]:
30878 Check mac_pass_command_to_system and mac_pass_control_to_system here.
30879 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
30880 for window repositioning.
30881
308822007-08-08 Glenn Morris <rgm@gnu.org>
30883
30884 * Replace `iff' in doc-strings and comments.
30885
308862007-08-07 Chong Yidong <cyd@stupidchicken.com>
30887
30888 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
30889
308902007-08-07 Martin Rudalics <rudalics@gmx.at>
30891
30892 * fileio.c (Finsert_file_contents): Run format-decode and
30893 after_insert_file_functions on entire buffer when REPLACE is
30894 non-nil and inhibit modification_hooks and point_motion_hooks.
30895 For consistency, run after_insert_file_functions iff something
30896 got inserted. Move signal_after_change and update_compositions
30897 after code running after_insert_file_functions. Make sure that
30898 undo_list doesn't record intermediate steps of the decoding process.
30899
309002007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30901
30902 * emacs.c (main)
30903 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
30904 Call malloc_enable_thread on interactive startup.
30905
30906 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
30907 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
30908 [USE_PTHREAD]: Conditionalize with it.
30909 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
30910 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
30911 New functions.
30912
309132007-08-06 Chong Yidong <cyd@stupidchicken.com>
30914
30915 * xdisp.c (redisplay_window): When restoring original buffer
30916 position, make sure it is still valid.
30917
30918 * image.c (png_load): Ignore png-supplied background color.
30919
309202007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30921
30922 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
30923 Use kCFAbsoluteTimeIntervalSince1970.
30924
30925 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
30926 New variable.
30927 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
30928 event loop should be quit.
30929 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
30930 Quit dialog event loop if quit_dialog_event_loop is set.
30931
30932 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
30933 (Selection): New typedef. Use instead of ScrapRef.
30934 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
30935 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
30936 (mac_clear_selection): Rename from clear_scrap.
30937 (get_flavor_type_from_symbol): New argument SEL and subsume function of
30938 scrap_has_target_type. All uses changed.
30939 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
30940 (mac_selection_has_target_p): New functions.
30941 (mac_put_selection_value): Rename from put_scrap_string.
30942 (mac_get_selection_value): Rename from get_scrap_string.
30943 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
30944 (put_scrap_private_timestamp, scrap_has_target_type)
30945 (get_scrap_private_timestamp): Remove functions.
30946 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
30947 (x_own_selection, x_get_local_selection):
30948 Use mac_valid_selection_value_p.
30949 (x_own_selection): Don't use put_scrap_private_timestamp.
30950 Record OWNERSHIP-INFO into Vselection_alist instead.
30951 (x_get_local_selection): Don't check type if request is local.
30952 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
30953 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
30954
309552007-08-04 Jan Djärv <jan.h.d@swipnet.se>
30956
30957 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
30958 add comment explaining why.
30959
309602007-08-03 Richard Stallman <rms@gnu.org>
30961
30962 * fileio.c (Fvisited_file_modtime): Use make_time.
30963
309642007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
30965
30966 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
30967 build.
30968
309692007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
30970
30971 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
30972
309732007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
30974
30975 * puresize.h (BASE_PURESIZE): Increase to 1130000.
30976
309772007-07-30 Richard Stallman <rms@gnu.org>
30978
30979 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
30980
309812007-07-29 Jan Djärv <jan.h.d@swipnet.se>
30982
30983 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
30984
309852007-07-28 Nick Roberts <nickrob@snap.net.nz>
30986
30987 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
30988 remote default-directory.
30989
30990 * buffer.c (mode-line-format): Update doc string.
30991
309922007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30993
30994 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
30995 scroll bar gap.
30996 (x_scroll_bar_create): Set bar->fringe_extended_p.
30997 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
30998 on frame edge. Check fringe background extension. Don't clear
30999 extended fringe background area.
31000
31001 * w32term.h (struct scroll_bar): New member fringe_extended_p.
31002 (w32_fill_area): Enclose multiple statements with do ... while (0).
31003
31004 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31005 Extend fringe background to scroll bar gap.
31006 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31007 Set bar->fringe_extended_p.
31008 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31009 Put leftmost/rightmost scroll bars on frame edge. Check fringe
31010 background extension. Don't clear extended fringe background area.
31011
31012 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31013 New member fringe_extended_p.
31014
310152007-07-25 Glenn Morris <rgm@gnu.org>
31016
31017 * Relicense all FSF files to GPLv3 or later.
31018
31019 * COPYING: Switch to GPLv3.
31020
310212007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
31022
31023 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
31024
31025 * data.c (Finteractive_form): Check for the presence of an
31026 `interactive-form' symbol property more thoroughly.
31027
31028 * data.c (Finteractive_form): Use an `interactive-form' property if
31029 present, analogous to the function-documentation property.
31030
310312007-07-24 Jason Rumney <jasonr@gnu.org>
31032
31033 * w32fns.c (x_real_positions): Get real position from OS instead of
31034 calculating it.
31035
310362007-07-23 Jason Rumney <jasonr@gnu.org>
31037
31038 * filelock.c (current_lock_owner): Allow for @ sign in username.
31039
310402007-07-22 Nick Roberts <nickrob@snap.net.nz>
31041
31042 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
31043 remote default-directory.
31044
31045 * buffer.c (mode-line-format): Describe above case in doc string.
31046
310472007-07-20 Eli Zaretskii <eliz@gnu.org>
31048
31049 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
31050 Define if not defined.
31051
310522007-07-18 Jason Rumney <jasonr@gnu.org>
31053
31054 * w32proc.c (w32_executable_type): Handle 64 bit executables.
31055
310562007-07-18 Richard Stallman <rms@gnu.org>
31057
31058 * data.c (Fsetq_default): Doc fix.
31059
31060 * eval.c (Fsetq): Doc fix.
31061
310622007-07-18 Juanma Barranquero <lekktu@gmail.com>
31063
31064 * coding.c (Ffind_operation_coding_system):
31065 * eval.c (For, Fand): Doc fixes.
31066 Reported by Johan Bockgård.
31067
310682007-07-18 Jan Djärv <jan.h.d@swipnet.se>
31069
31070 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
31071
31072 * xterm.h: Declare x_ewmh_activate_frame.
31073
31074 * xterm.c (x_ewmh_activate_frame): New function.
31075 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
31076
310772007-07-17 Martin Rudalics <rudalics@gmx.at>
31078
31079 * window.c (Fdisplay_buffer): If largest or LRU window is the
31080 only window, split it even if it is not eligible for splitting.
31081 This restores the original behavior broken by the 2007-07-15
31082 change.
31083
310842007-07-17 Glenn Morris <rgm@gnu.org>
31085
31086 * abbrev.c (abbrev_check_chars): New function.
31087 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
31088 Call abbrev_check_chars to check abbrev characters are word
31089 constituents. Doc fix.
31090
310912007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
31092
31093 * process.c (Fstart_process, Fmake_network_process)
31094 (read_process_output): Fix up last changes.
31095
310962007-07-16 Eli Zaretskii <eliz@gnu.org>
31097
31098 * makefile.w32-in (clean): Don't delete *~.
31099
311002007-07-16 Andreas Schwab <schwab@suse.de>
31101
31102 * window.c (Fdisplay_buffer): Use NILP.
31103 (Fset_window_scroll_bars): Likewise.
31104
311052007-07-15 Martin Rudalics <rudalics@gmx.at>
31106
31107 * window.c (window_min_size_2): New function.
31108 (window_min_size_1, size_window, Fdisplay_buffer)
31109 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
31110 windows without mode- or header-lines when window-min-height is
31111 too small.
31112 (size_window): Reset nodelete_p after testing it, following an
31113 earlier note by Kim F. Storm.
31114 (display_buffer): Do not set split_height_threshold to twice the
31115 value of window_min_height to avoid changing the value of a
31116 customizable variable. Rather explicitly check whether the
31117 height of the window that shall be splitted is at least as large
31118 as split_height_threshold.
31119 (Fwindow_full_width_p): New defun.
31120 (syms_of_window): Defsubr it.
31121
31122 * window.h: Add EXFUN for Fwindow_full_width_p.
31123
311242007-07-14 Jason Rumney <jasonr@gnu.org>
31125
31126 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
31127
311282007-07-14 Richard Stallman <rms@gnu.org>
31129
31130 * eval.c (maybe_call_debugger): New function.
31131 (find_handler_clause): Use maybe_call_debugger.
31132 Call it when the handler says `debug'.
31133 Eliminate DEBUGGER_VALUE_PTR.
31134 (Fsignal): Eliminate debugger_value.
31135 (Qdebug): New variable.
31136 (syms_of_eval): Initialize it.
31137
311382007-07-14 Juanma Barranquero <lekktu@gmail.com>
31139
31140 * eval.c (Fprogn):
31141 * keyboard.c (Ftrack_mouse):
31142 * print.c (Fwith_output_to_temp_buffer):
31143 * window.c (Fsave_window_excursion): Doc fix.
31144
311452007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
31146
31147 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
31148
311492007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
31150
31151 * process.h (struct Lisp_Process): Turn slots infd, outfd,
31152 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
31153 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
31154 read_output_delay, and read_output_skip from Lisp_Objects to ints.
31155 Remove unused encoding_carryover.
31156 * process.c: Adjust all functions accordingly.
31157
311582007-07-12 Richard Stallman <rms@gnu.org>
31159
31160 * term.c: Include unistd.h only if HAVE_UNISTD_H.
31161
311622007-07-11 Jason Rumney <jasonr@gnu.org>
31163
31164 * makefile.w32-in (LIBS): Include OLE32.
31165
31166 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
31167 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
31168
311692007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
31170
31171 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
31172 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
31173 from a Lisp_Object into a bare pointer.
31174 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
31175 Adjust the code correspondingly.
31176
31177 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
31178
31179 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
31180 (term_show_mouse_face): Remove unused var `j'.
31181 (handle_one_term_event): Remove unused vars `i' and `j'.
31182 Don't cast return value of ttyname since it's not necessary.
31183
311842007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
31185
31186 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
31187 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
31188
31189 * fns.c (map_char_table): Use an array of int for `indices' rather than
31190 an array of Lisp_Objects (which are only ever integers anyway).
31191 (Fmap_char_table): Update caller.
31192 * lisp.h: Update prototype.
31193 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
31194 * fontset.c (Ffontset_info):
31195 * casetab.c (set_case_table): Update callers.
31196
31197 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
31198
31199 * keymap.c (struct accessible_keymaps_data)
31200 (struct where_is_internal_data): New structures.
31201 (accessible_keymaps_1, where_is_internal_1): Use them to change
31202 interface to adhere to the one used by map_keymap.
31203 (Faccessible_keymaps, where_is_internal): Use map_keymap.
31204 (accessible_keymaps_char_table, where_is_internal_2): Remove.
31205
31206 * keymap.h (map_keymap_function_t): More informative prototype.
31207
312082007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
31209
31210 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
31211 (looking_at_1): Don't change search_regs and last_thing_searched
31212 if `inhibit-changing-match-data' is non-nil.
31213 (string_match_1, search_buffer, set_search_regs): Likewise.
31214 (syms_of_search): Add Lisp level definition for
31215 `inhibit-changing-match-data' and set it to nil.
31216 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
31217 start and end of the match, instead of using values in search_regs.
31218
312192007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
31220
31221 * minibuf.c (Fcompleting_read): New value `confirm-only'
31222 for `require-match'.
31223
312242007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
31225
31226 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
31227 part of the 2007-06-27 change to syms_of_fileio.
31228
312292007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31230
31231 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
31232 Check WINDOWP before using XWINDOW. Consolidate return statements.
31233
312342007-06-27 Richard Stallman <rms@gnu.org>
31235
31236 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
31237
312382007-06-27 Juanma Barranquero <lekktu@gmail.com>
31239
31240 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
31241
312422007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31243
31244 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
31245 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
31246 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
31247 (_free_internal, memalign): Use them.
31248 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
31249 Initialize to PTHREAD_MUTEX_INITIALIZER.
31250 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
31251 (morecore_nolock): Rename from morecore. All uses changed.
31252 Use only nolock versions of internal allocation functions.
31253 (_malloc_internal_nolock, _realloc_internal_nolock)
31254 (_free_internal_nolock): New functions created from
31255 _malloc_internal, _realloc_internal, and _free_internal.
31256 (_malloc_internal, _realloc_internal, _free_internal): Use them.
31257 Copy hook value to automatic variable before its use.
31258 (memalign): Copy hook value to automatic variable before its use.
31259
312602007-06-26 Kenichi Handa <handa@m17n.org>
31261
31262 * coding.c (Ffind_operation_coding_system): Docstring improved.
31263 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
31264
312652007-06-25 David Kastrup <dak@gnu.org>
31266
31267 * keymap.c (Fcurrent_active_maps): Add `position' argument.
31268 (Fwhere_is_internal): Adjust call to `current-active-maps' to
31269 cater for additional parameter.
31270
31271 * keymap.h: Adjust number of parameters to `current-active-maps'.
31272
31273 * doc.c (Fsubstitute_command_keys): Adjust call of
31274 `current-active-maps'.
31275
312762007-06-25 David Kastrup <dak@gnu.org>
31277
31278 * callint.c (Fcall_interactively): Make the parsing of interactive
31279 specs somewhat more readable.
31280
312812007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31282
31283 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
31284 to scroll bar gap also when bitmap fills fringe. Draw only foreground
31285 if extended background has already been filled.
31286
312872007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31288
31289 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
31290 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
31291
31292 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
31293 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
31294 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
31295 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
31296 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
31297 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
31298 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
31299 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
31300 Run timers during dialog popup.
31301 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
31302
313032007-06-21 Jason Rumney <jasonr@gnu.org>
31304
31305 * image.c (convert_mono_to_color_image): Swap fore and background.
31306
313072007-06-20 Jason Rumney <jasonr@gnu.org>
31308
31309 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
31310 (w32_free_bdf_font): Unmap memory not handle.
31311
313122007-06-20 Sam Steingold <sds@gnu.org>
31313
31314 * gmalloc.c (__morecore): Fix the declaration to comply with the
31315 definition.
31316
313172007-06-20 Juanma Barranquero <lekktu@gmail.com>
31318
31319 * w32term.c (w32_delete_display): Remove leftover declaration.
31320 (w32_define_cursor, w32_initialize): Make static.
31321
31322 * w32.c (_wsa_errlist): Fix typo in error message.
31323 (init_environment): Ignore any environment variable from the
31324 registry having a null value.
31325
313262007-06-20 Glenn Morris <rgm@gnu.org>
31327
31328 * Makefile.in (LIBGIF): Default to -lgif.
31329
313302007-06-17 Jason Rumney <jasonr@gnu.org>
31331
31332 * w32menu.c (add_menu_item): Don't use multibyte string functions on
31333 unicode strings.
31334
313352007-06-16 Juanma Barranquero <lekktu@gmail.com>
31336
31337 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
31338 Fix typo in docstring.
31339
313402007-06-16 Eli Zaretskii <eliz@gnu.org>
31341
31342 * w32menu.c (add_menu_item): Escape `&' characters in menu items
31343 and their keybindings.
31344
313452007-06-15 Chong Yidong <cyd@stupidchicken.com>
31346
31347 * composite.c (update_compositions): Fix last fix.
31348
313492007-06-14 Jason Rumney <jasonr@gnu.org>
31350
31351 * w32.c (get_process_times_fn): New function pointer.
31352 (globals_of_w32): Intialize it if present in kernel32.dll.
31353 (w32_get_internal_run_time): New function.
31354
31355 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
31356
313572007-06-14 Kenichi Handa <handa@etlken.m17n.org>
31358
31359 * composite.c (update_compositions): Check the validness of
31360 compositions.
31361
313622007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31363
31364 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
31365 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
31366
31367 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
31368 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
31369
31370 * macgui.h (USE_MAC_TOOLBAR): New define.
31371
31372 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31373 Return immediately unless popup is activated.
31374
31375 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
31376 background to scroll bar gap.
31377 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
31378 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
31379 scroll bars on frame edge. Check fringe background extension.
31380 Don't clear extended fringe background area.
31381 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
31382 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
31383 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
31384 [USE_MAC_TOOLBAR]: New macros.
31385 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
31386 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
31387 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
31388 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
31389 [USE_MAC_TOOLBAR]: New functions.
31390 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
31391 manually if previous repositioning has failed.
31392 (mac_handle_keyboard_event): Use precomputed event kind.
31393 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
31394 as tool bar item click. Handle mouse movement over tool bar items.
31395
31396 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
31397 toolbar_win_gravity.
31398 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
31399 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
31400 Add externs.
31401
31402 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
31403 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
31404
314052007-06-14 Chong Yidong <cyd@stupidchicken.com>
31406
31407 * image.c (search_image_cache): Remove unused variable.
31408
314092007-06-13 Chong Yidong <cyd@stupidchicken.com>
31410
31411 * xfns.c, xmenu.c: Link to xaw3d if available.
31412
314132007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31414
31415 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
31416 frame_foreground and frame_background.
31417
31418 * image.c (lookup_image): Save frame foreground and background colors.
31419 (search_image_cache): Check if saved and current frame colors match.
31420
314212007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
31422
31423 * regex.c (regex_compile): Remove the `regnum' counter.
31424 Use bufp->re_nsub instead. Add support for \(?N:RE\).
31425
314262007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
31427
31428 * term.c: Include intervals.h to declare Fget_text_property.
31429
314302007-06-10 Jason Rumney <jasonr@gnu.org>
31431
31432 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
31433
314342007-06-08 Juanma Barranquero <lekktu@gmail.com>
31435
31436 * callint.c (Fcall_interactively):
31437 * editfns.c (Fdelete_and_extract_region):
31438 * fileio.c (Fread_file_name):
31439 * fns.c (Fmapconcat):
31440 * keyboard.c (cmd_error_internal):
31441 * keymap.c (Fkey_description):
31442 * lread.c (openp):
31443 * minibuf.c (read_minibuf):
31444 * search.c (wordify):
31445 * sunfns.c (sel_read):
31446 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
31447 * xfns.c (x_default_scroll_bar_color_parameter):
31448 * xmenu.c (menu_help_callback):
31449 * xselect.c (Fx_get_atom_name):
31450 * xterm.c (x_term_init): Use empty_unibyte_string.
31451
314522007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
31453
31454 * alloc.c (init_strings): Initialize canonical empty strings.
31455 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
31456 canonical empty string when the requested size is 0.
31457
31458 * emacs.c (empty_unibyte_string): Rename from empty_string.
31459 (empty_multibyte_string): New canonical empty string.
31460 (syms_of_emacs): Don't initialize empty_string.
31461
31462 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
31463 string, if appropriate.
31464 (empty_unibyte_string, empty_multibyte_string): New externs.
31465 (empty_string): Remove extern.
31466
31467 * lread.c (syms_of_lread): Use empty_unibyte_string.
31468
314692007-06-07 Jason Rumney <jasonr@gnu.org>
31470
31471 * s/ms-w32.h: Don't define HAVE_TZNAME.
31472
31473 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
31474
314752007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31476
31477 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
31478
31479 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
31480 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
31481
31482 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31483 Don't call next handler.
31484 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
31485 Remove argument. Install handler to application.
31486 (set_frame_menubar): Don't change deep_p.
31487 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
31488 FRAME_OUTER_TO_INNER_DIFF_Y.
31489 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
31490 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
31491 [HAVE_DIALOGS]: New macros.
31492 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
31493 Use them.
31494 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
31495
31496 * macselect.c [MAC_OSX] (install_service_handler): Rename from
31497 init_service_handler. All callers changed. Return OSStatus value.
31498
31499 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
31500 All callers changed so as not to call SetPortWindowPort.
31501 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
31502 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
31503 mac_draw_string_common.
31504 (mac_draw_image_string_qd): Likewise.
31505 (mac_draw_string_common): Use them. Add INLINE.
31506 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
31507 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
31508 GetGlobalMouse.
31509 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
31510 and FRAME_OUTER_TO_INNER_DIFF_Y.
31511 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
31512 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
31513 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
31514 repositioning window to mac_handle_window_event.
31515 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
31516 saving window location to mac_handle_window_event
31517 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
31518 (install_menu_target_item_handler): Remove argument in extern.
31519 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
31520 Also accept command events.
31521 (do_keystroke): New function created from XTread_socket.
31522 (init_command_handler): Remove functions.
31523 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
31524 and save window location by kEventWindowShowing and kEventWindowHiding
31525 handlers here. Don't call next handler for window state change and
31526 focus events.
31527 (mac_handle_application_event, mac_handle_keyboard_event)
31528 [TARGET_API_MAC_CARBON]: New functions.
31529 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
31530 kEventWindowShowing and kEventWindowHiding events. Move installation
31531 of mouse, font, text input and menu target item handlers to
31532 install_application_handler.
31533 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
31534 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
31535 New function.
31536 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
31537 Register it.
31538 (XTread_socket) [TARGET_API_MAC_CARBON]:
31539 Consolidate SendEventToEventTarget calls.
31540 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
31541 Move application activation handler to mac_handle_application_event.
31542 Move keyboard handler to mac_handle_keyboard_event.
31543 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
31544 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
31545 init_command_handler. Call install_application_handler.
31546
31547 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
31548 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
31549
315502007-06-07 Glenn Morris <rgm@gnu.org>
31551
31552 * emacs.c (main): Use `emacs-copyright' in --version output.
31553
315542007-06-06 Chong Yidong <cyd@stupidchicken.com>
31555
31556 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
31557
315582007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31559
31560 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
31561
31562 * macgui.h: Replace WindowPtr with WindowRef.
31563
31564 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31565 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31566 Replace ControlHandle with ControlRef.
31567 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
31568
31569 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31570 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31571 Replace ControlHandle with ControlRef.
31572 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
31573 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
31574
31575 * macterm.h (struct scroll_bar): Rename member control_handle_low
31576 and control_handle_high to control_ref_low and control_ref_high.
31577 All uses changed.
31578 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
31579 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
31580 respectively. All uses changed.
31581 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
31582 (install_window_handler, remove_window_handler): Replace WindowPtr
31583 with WindowRef in externs.
31584
315852007-06-05 Juanma Barranquero <lekktu@gmail.com>
31586
31587 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
31588
315892007-06-03 Nick Roberts <nickrob@snap.net.nz>
31590
31591 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
31592
31593 * frame.c (Fmouse_position, Fmouse_pixel_position):
31594 Condition on HAVE_GPM too.
31595
31596 * term.c (term_mouse_highlight): Remove unused variables.
31597 (Fterm_open_connection): Set gpm_zerobased to 1.
31598 (term_mouse_movement, term_mouse_click, handle_one_term_event):
31599 Use zero based co-ordinates.
31600 (handle_one_term_event): Report a drag as mouse movement too.
31601
31602 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
31603
316042007-06-03 Chong Yidong <cyd@stupidchicken.com>
31605
31606 * image.c (search_image_cache): New function. Require background
31607 color match if background color is unspecified in the image spec.
31608 (uncache_image, lookup_image): Use it.
31609
316102007-06-01 Juanma Barranquero <lekktu@gmail.com>
31611
31612 * window.c (Fshrink_window): Reflow docstring.
31613
316142007-06-02 Chong Yidong <cyd@stupidchicken.com>
31615
31616 * Version 22.1 released.
31617
316182007-06-01 Richard Stallman <rms@gnu.org>
31619
31620 * xfns.c (x_encode_text): Add GCPRO.
31621
316222007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31623
31624 * xfns.c (x_set_name_internal): Save encoded name before
31625 x_encode_text in case string data is relocated.
31626
316272007-05-31 Richard Stallman <rms@gnu.org>
31628
31629 * buffer.c (syms_of_buffer): Doc fix.
31630
316312007-05-30 Nick Roberts <nickrob@snap.net.nz>
31632
31633 * sysdep.c (init_sys_modes): Add rather than replace with
31634 O_NONBLOCK.
31635
31636 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
31637 term_mouse_moveto.
31638
31639 * termhooks.h (term_mouse_moveto): New extern.
31640
31641 * term.c (mouse_face_window): Rename...
31642 (Qmouse_face_window): ...to this.
31643 (term_show_mouse_face, term_clear_mouse_face)
31644 (term_mouse_highlight): Use Qmouse_face_window.
31645 (term_mouse_moveto): New function.
31646 (term_mouse_position): Make it work.
31647 (syms_of_term): Uncomment assignment to mouse_position_hook.
31648 Staticpro Qmouse_face_window.
31649
316502007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31651
31652 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
31653 around current_column call.
31654
316552007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
31656
31657 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
31658 * xdisp.c (next_element_from_buffer):
31659 * window.c (delete_window):
31660 * term.c (term_mouse_highlight):
31661 * msdos.c (getdefdir):
31662 * macterm.c (mac_create_bitmap_from_bitmap_data)
31663 (init_font_name_table):
31664 * fns.c (Fsxhash):
31665 * data.c (Fmake_local_variable):
31666 * ccl.c (ccl_driver): Likewise.
31667
316682007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31669
31670 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
31671 Call mac_wakeup_from_rne on window size change.
31672
316732007-05-25 Chong Yidong <cyd@stupidchicken.com>
31674
31675 * image.c (uncache_image): Fix typo.
31676
316772007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
31678
31679 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
31680
316812007-05-22 Richard Stallman <rms@gnu.org>
31682
31683 * xterm.c (x_connection_closed): Remove NO_RETURN.
31684
316852007-05-22 Martin Rudalics <rudalics@gmx.at>
31686
31687 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
31688
316892007-05-21 Chong Yidong <cyd@stupidchicken.com>
31690
31691 * image.c (uncache_image): New function.
31692 (Fimage_refresh): New function.
31693
316942007-05-20 Jan Djärv <jan.h.d@swipnet.se>
31695
31696 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
31697
316982007-05-20 Nick Roberts <nickrob@snap.net.nz>
31699
31700 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
31701 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
31702
317032007-05-20 Nick Roberts <nickrob@snap.net.nz>
31704
31705 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
31706 conditional on [HAVE_GPM_H].
31707
317082007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
31709
31710 * syntax.c (skip_chars): Update syntax-table only after we checked that
31711 the new location is valid.
31712
317132007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31714
31715 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
31716 mac_get_window_bounds.
31717
317182007-05-20 Nick Roberts <nickrob@snap.net.nz>
31719
31720 * Makefile.in (LIBGPM): Allow it to be set from configure.
31721 If set then link Emacs with it.
31722
31723 * config.in: Regenerate.
31724
31725 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
31726 New externs.
31727
31728 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
31729 Include gpm.h.
31730 (handle_one_term_event, term_gpm): New externs.
31731
31732 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
31733 and allow it to be interrupted by SIGIO.
31734
31735 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
31736 (wait_reading_process_output): Wait on gpm_fd too.
31737 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
31738 (add_gpm_wait_descriptor_called_flag): New variable.
31739 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
31740
31741 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
31742 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
31743 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
31744 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
31745 (make_lispy_event): Add case GPM_CLICK_EVENT.
31746 (read_avail_input): Handle mouse input.
31747
31748 * term.c (write_glyphs_with_face): New function.
31749 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
31750 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
31751 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
31752 (mouse_face_face_id, term_gpm, pos_x, pos_y)
31753 (last_mouse_x, last_mouse_y): New variables.
31754 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
31755 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
31756 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
31757 (Fterm_close_connection): New functions.
31758 (term_init): Initialise mouse_face_window.
31759
317602007-05-19 Chong Yidong <cyd@stupidchicken.com>
31761
31762 * xdisp.c (redisplay_window): If first window line is a
31763 continuation line, recompute the new window start instead of
31764 recentering.
31765
317662007-05-18 Glenn Morris <rgm@gnu.org>
31767
31768 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
31769 Suggested by Alfred M. Szmidt <ams@gnu.org>.
31770
317712007-05-17 Glenn Morris <rgm@gnu.org>
31772
31773 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
31774
317752007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31776
31777 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
31778 dead key repeat and up events.
31779
317802007-05-14 Chong Yidong <cyd@stupidchicken.com>
31781
31782 * image.c (pbm_load): Check image size for monochrome pbm.
31783
317842007-05-13 Chong Yidong <cyd@stupidchicken.com>
31785
31786 * xterm.c (XTread_socket): Revert last change.
31787
317882007-05-12 Chong Yidong <cyd@stupidchicken.com>
31789
31790 * image.c (pbm_load): Correctly check image size for greyscale pbm.
31791
31792 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
31793
317942007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31795
31796 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
31797 mixup (YAILOM).
31798
317992007-05-07 Andreas Schwab <schwab@suse.de>
31800
31801 * keymap.c (Flookup_key): Fix typo in last change.
31802
318032007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31804
31805 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
31806 mapping for unibyte strings.
31807
318082007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31809
31810 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
31811 (Fx_popup_dialog) [MAC_OSX]: Likewise.
31812
318132007-04-29 Richard Stallman <rms@gnu.org>
31814
31815 * insdel.c (replace_range): For undo, record insertion first.
31816
318172007-04-29 Andreas Schwab <schwab@suse.de>
31818
31819 * lisp.h (VECSIZE): Use OFFSETOF.
31820
318212007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31822
31823 * xdisp.c (try_window_reusing_current_matrix): Fix number of
31824 disabled lines.
31825
318262007-04-28 Richard Stallman <rms@gnu.org>
31827
31828 * lread.c (read_escape): In a string, \s is always space.
31829
318302007-04-27 Jan Djärv <jan.h.d@swipnet.se>
31831
31832 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
31833
31834 * gtkutil.c (xg_update_menubar, create_menus): Create empty
31835 submenu for menu bar items.
31836
31837See ChangeLog.10 for earlier changes.
31838
31839;; Local Variables:
31840;; coding: utf-8
aac0c6e3
MR
31841;; End:
31842
73b0cd50 31843 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
31844
31845 This file is part of GNU Emacs.
31846
31847 GNU Emacs is free software: you can redistribute it and/or modify
31848 it under the terms of the GNU General Public License as published by
31849 the Free Software Foundation, either version 3 of the License, or
31850 (at your option) any later version.
31851
31852 GNU Emacs is distributed in the hope that it will be useful,
31853 but WITHOUT ANY WARRANTY; without even the implied warranty of
31854 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31855 GNU General Public License for more details.
31856
31857 You should have received a copy of the GNU General Public License
31858 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.